Version 1.13.20.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.13.20\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-11 20:58+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3 ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30 ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31 ../tools/virt-win-reg.pl:35
22 msgid "NAME"
23 msgstr ""
24
25 #. type: textblock
26 #: ../align/virt-alignment-scan.pod:5
27 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
28 msgstr ""
29
30 #. type: =head1
31 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7 ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34 ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35 ../tools/virt-win-reg.pl:39
32 msgid "SYNOPSIS"
33 msgstr ""
34
35 #. type: verbatim
36 #: ../align/virt-alignment-scan.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-alignment-scan [--options] -d domname\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../align/virt-alignment-scan.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: =head1
52 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16 ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18 ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18 ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29 ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15 ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11 ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40 ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77 ../tools/virt-win-reg.pl:63
53 msgid "DESCRIPTION"
54 msgstr ""
55
56 #. type: textblock
57 #: ../align/virt-alignment-scan.pod:15
58 msgid ""
59 "When older operating systems install themselves, the partitioning tools "
60 "place partitions at a sector misaligned with the underlying storage "
61 "(commonly the first partition starts on sector C<63>).  Misaligned "
62 "partitions can result in an operating system issuing more I/O than should be "
63 "necessary."
64 msgstr ""
65
66 #. type: textblock
67 #: ../align/virt-alignment-scan.pod:21
68 msgid ""
69 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
70 "machines and disk images and warns you if there are alignment problems."
71 msgstr ""
72
73 #. type: textblock
74 #: ../align/virt-alignment-scan.pod:25
75 msgid ""
76 "Currently there is no virt tool for fixing alignment problems.  You can only "
77 "reinstall the guest operating system.  The following NetApp document "
78 "summarises the problem and possible solutions: "
79 "L<http://media.netapp.com/documents/tr-3747.pdf>"
80 msgstr ""
81
82 #. type: =head1
83 #: ../align/virt-alignment-scan.pod:30
84 msgid "OUTPUT"
85 msgstr ""
86
87 #. type: textblock
88 #: ../align/virt-alignment-scan.pod:32
89 msgid "To run this tool on a disk image directly, use the I<-a> option:"
90 msgstr ""
91
92 #. type: verbatim
93 #: ../align/virt-alignment-scan.pod:34
94 #, no-wrap
95 msgid ""
96 " $ virt-alignment-scan -a winxp.img\n"
97 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
98 "\n"
99 msgstr ""
100
101 #. type: verbatim
102 #: ../align/virt-alignment-scan.pod:37
103 #, no-wrap
104 msgid ""
105 " $ virt-alignment-scan -a fedora16.img\n"
106 " /dev/sda1      1048576         1024K   ok\n"
107 " /dev/sda2      2097152         2048K   ok\n"
108 " /dev/sda3    526385152         2048K   ok\n"
109 "\n"
110 msgstr ""
111
112 #. type: textblock
113 #: ../align/virt-alignment-scan.pod:42
114 msgid ""
115 "To run the tool on a guest known to libvirt, use the I<-d> option and "
116 "possibly the I<-c> option:"
117 msgstr ""
118
119 #. type: verbatim
120 #: ../align/virt-alignment-scan.pod:45
121 #, no-wrap
122 msgid ""
123 " # virt-alignment-scan -d RHEL5\n"
124 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
125 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
126 "\n"
127 msgstr ""
128
129 #. type: verbatim
130 #: ../align/virt-alignment-scan.pod:49
131 #, no-wrap
132 msgid ""
133 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
134 " /dev/sda1      1048576         1024K   ok\n"
135 " /dev/sda2    105906176         1024K   ok\n"
136 " /dev/sdb1        65536           64K   ok\n"
137 "\n"
138 msgstr ""
139
140 #. type: textblock
141 #: ../align/virt-alignment-scan.pod:54
142 msgid ""
143 "The output consists of 4 or more whitespace-separated columns.  Only the "
144 "first 4 columns are signficant if you want to parse this from a program.  "
145 "The columns are:"
146 msgstr ""
147
148 #. type: =item
149 #: ../align/virt-alignment-scan.pod:60
150 msgid "col 1"
151 msgstr ""
152
153 #. type: textblock
154 #: ../align/virt-alignment-scan.pod:62
155 msgid ""
156 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
157 "on the first block device)"
158 msgstr ""
159
160 #. type: =item
161 #: ../align/virt-alignment-scan.pod:65
162 msgid "col 2"
163 msgstr ""
164
165 #. type: textblock
166 #: ../align/virt-alignment-scan.pod:67
167 msgid "the start of the partition in bytes"
168 msgstr ""
169
170 #. type: =item
171 #: ../align/virt-alignment-scan.pod:69
172 msgid "col 3"
173 msgstr ""
174
175 #. type: textblock
176 #: ../align/virt-alignment-scan.pod:71
177 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
178 msgstr ""
179
180 #. type: =item
181 #: ../align/virt-alignment-scan.pod:73
182 msgid "col 4"
183 msgstr ""
184
185 #. type: textblock
186 #: ../align/virt-alignment-scan.pod:75
187 msgid ""
188 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
189 "can cause performance problems"
190 msgstr ""
191
192 #. type: =item
193 #: ../align/virt-alignment-scan.pod:78
194 msgid "cols 5+"
195 msgstr ""
196
197 #. type: textblock
198 #: ../align/virt-alignment-scan.pod:80
199 msgid "optional free-text explanation."
200 msgstr ""
201
202 #. type: textblock
203 #: ../align/virt-alignment-scan.pod:84
204 msgid ""
205 "The exit code from the program changes depending on whether poorly aligned "
206 "partitions were found.  See L</EXIT STATUS> below."
207 msgstr ""
208
209 #. type: textblock
210 #: ../align/virt-alignment-scan.pod:87
211 msgid "If you just want the exit code with no output, use the I<-q> option."
212 msgstr ""
213
214 #. type: =head1
215 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../clone/virt-sysprep.pod:36 ../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:83 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
216 msgid "OPTIONS"
217 msgstr ""
218
219 #. type: =item
220 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../clone/virt-sysprep.pod:40 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
221 msgid "B<--help>"
222 msgstr ""
223
224 #. type: textblock
225 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
226 msgid "Display brief help."
227 msgstr ""
228
229 #. type: =item
230 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../clone/virt-sysprep.pod:44 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
231 msgid "B<-a> file"
232 msgstr ""
233
234 #. type: =item
235 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
236 msgid "B<--add> file"
237 msgstr ""
238
239 #. type: textblock
240 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:48
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:50 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
246 msgid ""
247 "The format of the disk image is auto-detected.  To override this and force a "
248 "particular format use the I<--format=..> option."
249 msgstr ""
250
251 #. type: =item
252 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../clone/virt-sysprep.pod:53 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
253 msgid "B<-c> URI"
254 msgstr ""
255
256 #. type: =item
257 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../clone/virt-sysprep.pod:55 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
258 msgid "B<--connect> URI"
259 msgstr ""
260
261 #. type: textblock
262 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../clone/virt-sysprep.pod:57 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
263 msgid ""
264 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
265 "to the default libvirt hypervisor."
266 msgstr ""
267
268 #. type: textblock
269 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../clone/virt-sysprep.pod:60 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
270 msgid ""
271 "If you specify guest block devices directly (I<-a>), then libvirt is not "
272 "used at all."
273 msgstr ""
274
275 #. type: =item
276 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
277 msgid "B<-d> guest"
278 msgstr ""
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../clone/virt-sysprep.pod:65 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
282 msgid "B<--domain> guest"
283 msgstr ""
284
285 #. type: textblock
286 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../clone/virt-sysprep.pod:67 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
287 msgid ""
288 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
289 "instead of names."
290 msgstr ""
291
292 #. type: =item
293 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../clone/virt-sysprep.pod:89 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
294 msgid "B<--format=raw|qcow2|..>"
295 msgstr ""
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../clone/virt-sysprep.pod:91 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
299 msgid "B<--format>"
300 msgstr ""
301
302 #. type: textblock
303 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../clone/virt-sysprep.pod:93 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
304 msgid ""
305 "The default for the I<-a> option is to auto-detect the format of the disk "
306 "image.  Using this forces the disk format for I<-a> options which follow on "
307 "the command line.  Using I<--format> with no argument switches back to "
308 "auto-detection for subsequent I<-a> options."
309 msgstr ""
310
311 #. type: textblock
312 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../clone/virt-sysprep.pod:98 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
313 msgid "For example:"
314 msgstr ""
315
316 #. type: verbatim
317 #: ../align/virt-alignment-scan.pod:134
318 #, no-wrap
319 msgid ""
320 " virt-alignment-scan --format=raw -a disk.img\n"
321 "\n"
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../clone/virt-sysprep.pod:102 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
326 msgid "forces raw format (no auto-detection) for C<disk.img>."
327 msgstr ""
328
329 #. type: verbatim
330 #: ../align/virt-alignment-scan.pod:138
331 #, no-wrap
332 msgid ""
333 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
334 "\n"
335 msgstr ""
336
337 #. type: textblock
338 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../clone/virt-sysprep.pod:106 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
339 msgid ""
340 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
341 "auto-detection for C<another.img>."
342 msgstr ""
343
344 #. type: textblock
345 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../clone/virt-sysprep.pod:109 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
346 msgid ""
347 "If you have untrusted raw-format guest disk images, you should use this "
348 "option to specify the disk format.  This avoids a possible security problem "
349 "with malicious guests (CVE-2010-3851)."
350 msgstr ""
351
352 #. type: =item
353 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:414 ../sparsify/virt-sparsify.pod:153
354 msgid "B<-q>"
355 msgstr ""
356
357 #. type: =item
358 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:416 ../sparsify/virt-sparsify.pod:155
359 msgid "B<--quiet>"
360 msgstr ""
361
362 #. type: textblock
363 #: ../align/virt-alignment-scan.pod:151
364 msgid ""
365 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
366 "below)."
367 msgstr ""
368
369 #. type: =item
370 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../clone/virt-sysprep.pod:122 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
371 msgid "B<-v>"
372 msgstr ""
373
374 #. type: =item
375 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../clone/virt-sysprep.pod:124 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
376 msgid "B<--verbose>"
377 msgstr ""
378
379 #. type: textblock
380 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../clone/virt-sysprep.pod:126 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
381 msgid "Enable verbose messages for debugging."
382 msgstr ""
383
384 #. type: =item
385 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../clone/virt-sysprep.pod:128 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484 ../sparsify/virt-sparsify.pod:165
386 msgid "B<-V>"
387 msgstr ""
388
389 #. type: =item
390 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../clone/virt-sysprep.pod:130 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486 ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69 ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169 ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
391 msgid "B<--version>"
392 msgstr ""
393
394 #. type: textblock
395 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../clone/virt-sysprep.pod:132 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
396 msgid "Display version number and exit."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../clone/virt-sysprep.pod:134 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171 ../tools/virt-tar.pl:158
401 msgid "B<-x>"
402 msgstr ""
403
404 #. type: textblock
405 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../clone/virt-sysprep.pod:136 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
406 msgid "Enable tracing of libguestfs API calls."
407 msgstr ""
408
409 #. type: =head1
410 #: ../align/virt-alignment-scan.pod:172
411 msgid "RECOMMENDED ALIGNMENT"
412 msgstr ""
413
414 #. type: textblock
415 #: ../align/virt-alignment-scan.pod:174
416 msgid ""
417 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
418 "first sector of the first partition at sector 63, with a 512 byte sector "
419 "size.  This happens because of a historical accident.  Drives have to report "
420 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
421 "completely meaningless on modern drives, but it happens that the geometry "
422 "reported always has 63 sectors per track.  The operating system therefore "
423 "places the first partition at the start of the second \"track\", at sector "
424 "63."
425 msgstr ""
426
427 #. type: textblock
428 #: ../align/virt-alignment-scan.pod:183
429 msgid ""
430 "When the guest OS is virtualized, the host operating system and hypervisor "
431 "may prefer accesses aligned to one of:"
432 msgstr ""
433
434 #. type: =item
435 #: ../align/virt-alignment-scan.pod:188
436 msgid "* 512 bytes"
437 msgstr ""
438
439 #. type: textblock
440 #: ../align/virt-alignment-scan.pod:190
441 msgid ""
442 "if the host OS uses local storage directly on hard drive partitions, and the "
443 "hard drive has 512 byte physical sectors."
444 msgstr ""
445
446 #. type: =item
447 #: ../align/virt-alignment-scan.pod:193
448 msgid "* 4 Kbytes"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:195
453 msgid ""
454 "for local storage on new hard drives with 4Kbyte physical sectors; for "
455 "file-backed storage on filesystems with 4Kbyte block size; or for some types "
456 "of network-attached storage."
457 msgstr ""
458
459 #. type: =item
460 #: ../align/virt-alignment-scan.pod:199
461 msgid "* 64 Kbytes"
462 msgstr ""
463
464 #. type: textblock
465 #: ../align/virt-alignment-scan.pod:201
466 msgid ""
467 "for high-end network-attached storage.  This is the optimal block size for "
468 "some NetApp hardware."
469 msgstr ""
470
471 #. type: =item
472 #: ../align/virt-alignment-scan.pod:204
473 msgid "* 1 Mbyte"
474 msgstr ""
475
476 #. type: textblock
477 #: ../align/virt-alignment-scan.pod:206
478 msgid "see L</1 MB PARTITION ALIGNMENT> below."
479 msgstr ""
480
481 #. type: textblock
482 #: ../align/virt-alignment-scan.pod:210
483 msgid ""
484 "Partitions which are not aligned correctly to the underlying storage cause "
485 "extra I/O.  For example:"
486 msgstr ""
487
488 #. type: verbatim
489 #: ../align/virt-alignment-scan.pod:213
490 #, no-wrap
491 msgid ""
492 "                       sect#63\n"
493 "                       +--------------------------+------\n"
494 "                       |         guest            |\n"
495 "                       |    filesystem block      |\n"
496 " ---+------------------+------+-------------------+-----+---\n"
497 "    |  host block             |  host block             |\n"
498 "    |                         |                         |\n"
499 " ---+-------------------------+-------------------------+---\n"
500 "\n"
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:222
505 msgid ""
506 "In this example, each time a 4K guest block is read, two blocks on the host "
507 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
508 "written, two host blocks must first be read, the old and new data combined, "
509 "and the two blocks written back (4x I/O)."
510 msgstr ""
511
512 #. type: =head2
513 #: ../align/virt-alignment-scan.pod:227
514 msgid "LINUX HOST BLOCK AND I/O SIZE"
515 msgstr ""
516
517 #. type: textblock
518 #: ../align/virt-alignment-scan.pod:229
519 msgid ""
520 "New versions of the Linux kernel expose the physical and logical block size, "
521 "and minimum and recommended I/O size."
522 msgstr ""
523
524 #. type: textblock
525 #: ../align/virt-alignment-scan.pod:232
526 msgid "For a typical hard drive with 512 byte sectors:"
527 msgstr ""
528
529 #. type: verbatim
530 #: ../align/virt-alignment-scan.pod:234
531 #, no-wrap
532 msgid ""
533 " $ cat /sys/block/sda/queue/physical_block_size\n"
534 " 512\n"
535 " $ cat /sys/block/sda/queue/logical_block_size\n"
536 " 512\n"
537 " $ cat /sys/block/sda/queue/minimum_io_size\n"
538 " 512\n"
539 " $ cat /sys/block/sda/queue/optimal_io_size\n"
540 " 0\n"
541 "\n"
542 msgstr ""
543
544 #. type: textblock
545 #: ../align/virt-alignment-scan.pod:243
546 msgid "For a NetApp LUN:"
547 msgstr ""
548
549 #. type: verbatim
550 #: ../align/virt-alignment-scan.pod:245
551 #, no-wrap
552 msgid ""
553 " $ cat /sys/block/sdc/queue/logical_block_size\n"
554 " 512\n"
555 " $ cat /sys/block/sdc/queue/physical_block_size\n"
556 " 512\n"
557 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
558 " 4096\n"
559 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
560 " 65536\n"
561 "\n"
562 msgstr ""
563
564 #. type: textblock
565 #: ../align/virt-alignment-scan.pod:254
566 msgid ""
567 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
568 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
569 msgstr ""
570
571 #. type: textblock
572 #: ../align/virt-alignment-scan.pod:258
573 msgid ""
574 "For detailed information about what these numbers mean, see "
575 "L<http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/newstorage-iolimits.html>"
576 msgstr ""
577
578 #. type: textblock
579 #: ../align/virt-alignment-scan.pod:261
580 msgid ""
581 "[Thanks to Mike Snitzer for providing NetApp data and additional "
582 "information.]"
583 msgstr ""
584
585 #. type: =head2
586 #: ../align/virt-alignment-scan.pod:264
587 msgid "1 MB PARTITION ALIGNMENT"
588 msgstr ""
589
590 #. type: textblock
591 #: ../align/virt-alignment-scan.pod:266
592 msgid ""
593 "Microsoft picked 1 MB as the default alignment for all partitions starting "
594 "with Windows 2008 Server, and Linux has followed this."
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:269
599 msgid ""
600 "Assuming 512 byte sectors in the guest, you will now see the first partition "
601 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
602 "multiple of 2048 sectors."
603 msgstr ""
604
605 #. type: textblock
606 #: ../align/virt-alignment-scan.pod:273
607 msgid ""
608 "1 MB alignment is compatible with all current alignment requirements (4K, "
609 "64K) and provides room for future growth in physical block sizes."
610 msgstr ""
611
612 #. type: =head2
613 #: ../align/virt-alignment-scan.pod:276
614 msgid "SETTING ALIGNMENT"
615 msgstr ""
616
617 #. type: textblock
618 #: ../align/virt-alignment-scan.pod:278
619 msgid ""
620 "Currently there is no virt tool for fixing alignment problems in guests.  "
621 "This is a difficult problem to fix because simply moving partitions around "
622 "breaks the bootloader, necessitating either manual reinstallation of the "
623 "bootloader using a rescue disk, or complex and error-prone hacks."
624 msgstr ""
625
626 #. type: textblock
627 #: ../align/virt-alignment-scan.pod:284
628 msgid ""
629 "L<virt-resize(1)> does not change the alignment of the first partition, but "
630 "it does align the second and subsequent partitions to a multiple of 64 or "
631 "128 sectors (depending on the version of virt-resize, 128 in virt-resize "
632 "E<ge> 1.13.19).  For operating systems that have a separate boot partition, "
633 "virt-resize could be used to align the main OS partition, so that the "
634 "majority of OS accesses except at boot will be aligned."
635 msgstr ""
636
637 #. type: textblock
638 #: ../align/virt-alignment-scan.pod:292
639 msgid ""
640 "The easiest way to correct partition alignment problems is to reinstall your "
641 "guest operating systems.  If you install operating systems from templates, "
642 "ensure these have correct partition alignment too."
643 msgstr ""
644
645 #. type: textblock
646 #: ../align/virt-alignment-scan.pod:297
647 msgid ""
648 "For older versions of Windows, the following NetApp document contains useful "
649 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
650 msgstr ""
651
652 #. type: textblock
653 #: ../align/virt-alignment-scan.pod:300
654 msgid ""
655 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
656 "an explicit C<%pre> section that creates aligned partitions using "
657 "L<parted(8)>.  Do not use the Kickstart C<part> command.  The NetApp "
658 "document above contains an example."
659 msgstr ""
660
661 #. type: =head1
662 #: ../align/virt-alignment-scan.pod:305 ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../clone/virt-sysprep.pod:359 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
663 msgid "SHELL QUOTING"
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:307 ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../clone/virt-sysprep.pod:361 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
668 msgid ""
669 "Libvirt guest names can contain arbitrary characters, some of which have "
670 "meaning to the shell such as C<#> and space.  You may need to quote or "
671 "escape these characters on the command line.  See the shell manual page "
672 "L<sh(1)> for details."
673 msgstr ""
674
675 #. type: =head1
676 #: ../align/virt-alignment-scan.pod:312 ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../clone/virt-sysprep.pod:366 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1113 ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227 ../test-tool/libguestfs-test-tool.pod:90
677 msgid "EXIT STATUS"
678 msgstr ""
679
680 #. type: textblock
681 #: ../align/virt-alignment-scan.pod:314
682 msgid "This program returns:"
683 msgstr ""
684
685 #. type: =item
686 #: ../align/virt-alignment-scan.pod:318 ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330 ../align/virt-alignment-scan.pod:337 ../clone/virt-sysprep.pod:213 ../clone/virt-sysprep.pod:217 ../clone/virt-sysprep.pod:221 ../clone/virt-sysprep.pod:225 ../clone/virt-sysprep.pod:240 ../clone/virt-sysprep.pod:244 ../clone/virt-sysprep.pod:248 ../clone/virt-sysprep.pod:252 ../clone/virt-sysprep.pod:256 ../clone/virt-sysprep.pod:292 ../clone/virt-sysprep.pod:314 ../clone/virt-sysprep.pod:318 ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266 ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276 ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291 ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102 ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132 ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227 ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235 ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243 ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398 ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412 ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143 ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151 ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163 ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177 ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185 ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279 ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335 ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596 ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610 ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026 ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393 ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802 ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816 ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824 ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976 ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041 ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461 ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475 ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018 ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636 ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047 ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060 ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083 ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322 ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
687 msgid "*"
688 msgstr ""
689
690 #. type: textblock
691 #: ../align/virt-alignment-scan.pod:320
692 msgid "0"
693 msgstr ""
694
695 #. type: textblock
696 #: ../align/virt-alignment-scan.pod:322
697 msgid "successful exit, all partitions are aligned E<ge> 64K for best performance"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:326
702 msgid "1"
703 msgstr ""
704
705 #. type: textblock
706 #: ../align/virt-alignment-scan.pod:328
707 msgid "an error scanning the disk image or guest"
708 msgstr ""
709
710 #. type: textblock
711 #: ../align/virt-alignment-scan.pod:332
712 msgid "2"
713 msgstr ""
714
715 #. type: textblock
716 #: ../align/virt-alignment-scan.pod:334
717 msgid ""
718 "successful exit, some partitions have alignment E<lt> 64K which can result "
719 "in poor performance on high end network storage"
720 msgstr ""
721
722 #. type: textblock
723 #: ../align/virt-alignment-scan.pod:339
724 msgid "3"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:341
729 msgid ""
730 "successful exit, some partitions have alignment E<lt> 4K which can result in "
731 "poor performance on most hypervisors"
732 msgstr ""
733
734 #. type: =head1
735 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495 ../clone/virt-sysprep.pod:370 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1267 ../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:308 ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39 ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288 ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36 ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:746
736 msgid "SEE ALSO"
737 msgstr ""
738
739 #. type: textblock
740 #: ../align/virt-alignment-scan.pod:348
741 msgid ""
742 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
743 "L<virt-resize(1)>, L<http://libguestfs.org/>."
744 msgstr ""
745
746 #. type: =head1
747 #: ../align/virt-alignment-scan.pod:355 ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507 ../clone/virt-sysprep.pod:384 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635 ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
748 msgid "AUTHOR"
749 msgstr ""
750
751 #. type: textblock
752 #: ../align/virt-alignment-scan.pod:357 ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509 ../clone/virt-sysprep.pod:386 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
753 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
754 msgstr ""
755
756 #. type: =head1
757 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511 ../clone/virt-sysprep.pod:388 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114 ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401 ../fish/guestfish.pod:1299 ../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:323 ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56 ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52 ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:776
758 msgid "COPYRIGHT"
759 msgstr ""
760
761 #. type: textblock
762 #: ../align/virt-alignment-scan.pod:361 ../clone/virt-sysprep.pod:390 ../sparsify/virt-sparsify.pod:270
763 msgid "Copyright (C) 2011 Red Hat Inc."
764 msgstr ""
765
766 #. type: textblock
767 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../clone/virt-sysprep.pod:392 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1304 ../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:328 ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643 ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:780
768 msgid ""
769 "This program is free software; you can redistribute it and/or modify it "
770 "under the terms of the GNU General Public License as published by the Free "
771 "Software Foundation; either version 2 of the License, or (at your option) "
772 "any later version."
773 msgstr ""
774
775 #. type: textblock
776 #: ../align/virt-alignment-scan.pod:368 ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../clone/virt-sysprep.pod:397 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1309 ../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:333 ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648 ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:785
777 msgid ""
778 "This program is distributed in the hope that it will be useful, but WITHOUT "
779 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
780 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
781 "more details."
782 msgstr ""
783
784 #. type: textblock
785 #: ../align/virt-alignment-scan.pod:373 ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525 ../clone/virt-sysprep.pod:402 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1314 ../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:338 ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653 ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:790
786 msgid ""
787 "You should have received a copy of the GNU General Public License along with "
788 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
789 "Ave, Cambridge, MA 02139, USA."
790 msgstr ""
791
792 #. type: textblock
793 #: ../cat/virt-cat.pod:5
794 msgid "virt-cat - Display files in a virtual machine"
795 msgstr ""
796
797 #. type: verbatim
798 #: ../cat/virt-cat.pod:9
799 #, no-wrap
800 msgid ""
801 " virt-cat [--options] -d domname file [file ...]\n"
802 "\n"
803 msgstr ""
804
805 #. type: verbatim
806 #: ../cat/virt-cat.pod:11
807 #, no-wrap
808 msgid ""
809 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
810 "\n"
811 msgstr ""
812
813 #. type: textblock
814 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
815 msgid "Old-style:"
816 msgstr ""
817
818 #. type: verbatim
819 #: ../cat/virt-cat.pod:15
820 #, no-wrap
821 msgid ""
822 " virt-cat domname file\n"
823 "\n"
824 msgstr ""
825
826 #. type: verbatim
827 #: ../cat/virt-cat.pod:17
828 #, no-wrap
829 msgid ""
830 " virt-cat disk.img file\n"
831 "\n"
832 msgstr ""
833
834 #. type: textblock
835 #: ../cat/virt-cat.pod:21
836 msgid ""
837 "C<virt-cat> is a command line tool to display the contents of C<file> where "
838 "C<file> exists in the named virtual machine (or disk image)."
839 msgstr ""
840
841 #. type: textblock
842 #: ../cat/virt-cat.pod:24
843 msgid ""
844 "Multiple filenames can be given, in which case they are concatenated "
845 "together.  Each filename must be a full path, starting at the root directory "
846 "(starting with '/')."
847 msgstr ""
848
849 #. type: textblock
850 #: ../cat/virt-cat.pod:28
851 msgid ""
852 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
853 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
854 "tool (see L</USING GUESTFISH> below)."
855 msgstr ""
856
857 #. type: =head1
858 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43 ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41 ../fish/guestfish.pod:1050 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75 ../tools/virt-tar.pl:50
859 msgid "EXAMPLES"
860 msgstr ""
861
862 #. type: textblock
863 #: ../cat/virt-cat.pod:34
864 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
865 msgstr ""
866
867 #. type: verbatim
868 #: ../cat/virt-cat.pod:37
869 #, no-wrap
870 msgid ""
871 " virt-cat -d mydomain /etc/fstab\n"
872 "\n"
873 msgstr ""
874
875 #. type: textblock
876 #: ../cat/virt-cat.pod:39
877 msgid "List syslog messages from a VM disk image file:"
878 msgstr ""
879
880 #. type: verbatim
881 #: ../cat/virt-cat.pod:41
882 #, no-wrap
883 msgid ""
884 " virt-cat -a disk.img /var/log/messages | tail\n"
885 "\n"
886 msgstr ""
887
888 #. type: textblock
889 #: ../cat/virt-cat.pod:43
890 msgid "Find out what DHCP IP address a VM acquired:"
891 msgstr ""
892
893 #. type: verbatim
894 #: ../cat/virt-cat.pod:45
895 #, no-wrap
896 msgid ""
897 " virt-cat -d mydomain /var/log/messages | \\\n"
898 "   grep 'dhclient: bound to' | tail\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-cat.pod:48
904 msgid "Find out what packages were recently installed:"
905 msgstr ""
906
907 #. type: verbatim
908 #: ../cat/virt-cat.pod:50
909 #, no-wrap
910 msgid ""
911 " virt-cat -d mydomain /var/log/yum.log | tail\n"
912 "\n"
913 msgstr ""
914
915 #. type: textblock
916 #: ../cat/virt-cat.pod:52
917 msgid "Find out who is logged on inside a virtual machine:"
918 msgstr ""
919
920 #. type: verbatim
921 #: ../cat/virt-cat.pod:54
922 #, no-wrap
923 msgid ""
924 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
925 " who /tmp/utmp\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-cat.pod:57
931 msgid "or who was logged on:"
932 msgstr ""
933
934 #. type: verbatim
935 #: ../cat/virt-cat.pod:59
936 #, no-wrap
937 msgid ""
938 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
939 " last -f /tmp/wtmp\n"
940 "\n"
941 msgstr ""
942
943 #. type: textblock
944 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
945 msgid ""
946 "Add I<file> which should be a disk image from a virtual machine.  If the "
947 "virtual machine has multiple block devices, you must supply all of them with "
948 "separate I<-a> options."
949 msgstr ""
950
951 #. type: =item
952 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
953 msgid "B<--echo-keys>"
954 msgstr ""
955
956 #. type: textblock
957 #: ../cat/virt-cat.pod:100
958 msgid ""
959 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
960 "so you cannot see what you are typing.  If you are not worried about Tempest "
961 "attacks and there is no one else in the room you can specify this flag to "
962 "see what you are typing."
963 msgstr ""
964
965 #. type: verbatim
966 #: ../cat/virt-cat.pod:116
967 #, no-wrap
968 msgid ""
969 " virt-cat --format=raw -a disk.img file\n"
970 "\n"
971 msgstr ""
972
973 #. type: verbatim
974 #: ../cat/virt-cat.pod:120
975 #, no-wrap
976 msgid ""
977 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
978 "\n"
979 msgstr ""
980
981 #. type: =item
982 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
983 msgid "B<--keys-from-stdin>"
984 msgstr ""
985
986 #. type: textblock
987 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
988 msgid ""
989 "Read key or passphrase parameters from stdin.  The default is to try to read "
990 "passphrases from the user by opening C</dev/tty>."
991 msgstr ""
992
993 #. type: =head1
994 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
995 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
996 msgstr ""
997
998 #. type: textblock
999 #: ../cat/virt-cat.pod:154
1000 msgid "Previous versions of virt-cat allowed you to write either:"
1001 msgstr ""
1002
1003 #. type: verbatim
1004 #: ../cat/virt-cat.pod:156
1005 #, no-wrap
1006 msgid ""
1007 " virt-cat disk.img [disk.img ...] file\n"
1008 "\n"
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1013 msgid "or"
1014 msgstr ""
1015
1016 #. type: verbatim
1017 #: ../cat/virt-cat.pod:160
1018 #, no-wrap
1019 msgid ""
1020 " virt-cat guestname file\n"
1021 "\n"
1022 msgstr ""
1023
1024 #. type: textblock
1025 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1026 msgid ""
1027 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1028 "the confusing case where a disk image might have the same name as a guest."
1029 msgstr ""
1030
1031 #. type: textblock
1032 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1033 msgid "For compatibility the old style is still supported."
1034 msgstr ""
1035
1036 #. type: =head1
1037 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1038 msgid "USING GUESTFISH"
1039 msgstr ""
1040
1041 #. type: textblock
1042 #: ../cat/virt-cat.pod:170
1043 msgid ""
1044 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1045 "C<virt-cat> doesn't work."
1046 msgstr ""
1047
1048 #. type: textblock
1049 #: ../cat/virt-cat.pod:173
1050 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1051 msgstr ""
1052
1053 #. type: verbatim
1054 #: ../cat/virt-cat.pod:175
1055 #, no-wrap
1056 msgid ""
1057 " guestfish --ro -i -d domname download file -\n"
1058 "\n"
1059 msgstr ""
1060
1061 #. type: textblock
1062 #: ../cat/virt-cat.pod:177
1063 msgid ""
1064 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1065 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1066 msgstr ""
1067
1068 #. type: textblock
1069 #: ../cat/virt-cat.pod:181
1070 msgid ""
1071 "The command above uses libguestfs's guest inspection feature and so does not "
1072 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1073 "disk images that don't contain guests.  To display a file from a disk image "
1074 "directly, use:"
1075 msgstr ""
1076
1077 #. type: verbatim
1078 #: ../cat/virt-cat.pod:186
1079 #, no-wrap
1080 msgid ""
1081 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1082 "\n"
1083 msgstr ""
1084
1085 #. type: textblock
1086 #: ../cat/virt-cat.pod:188
1087 msgid ""
1088 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1089 "the disk image, and C<file> is the full path to the file."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374 ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351 ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377 ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1094 msgid "This program returns 0 if successful, or non-zero if there was an error."
1095 msgstr ""
1096
1097 #. type: textblock
1098 #: ../cat/virt-cat.pod:205
1099 msgid ""
1100 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
1101 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
1102 msgstr ""
1103
1104 #. type: textblock
1105 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:641
1106 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1107 msgstr ""
1108
1109 #. type: textblock
1110 #: ../cat/virt-filesystems.pod:5
1111 msgid ""
1112 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1113 "virtual machine or disk image"
1114 msgstr ""
1115
1116 #. type: verbatim
1117 #: ../cat/virt-filesystems.pod:9
1118 #, no-wrap
1119 msgid ""
1120 " virt-filesystems [--options] -d domname\n"
1121 "\n"
1122 msgstr ""
1123
1124 #. type: verbatim
1125 #: ../cat/virt-filesystems.pod:11
1126 #, no-wrap
1127 msgid ""
1128 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1129 "\n"
1130 msgstr ""
1131
1132 #. type: textblock
1133 #: ../cat/virt-filesystems.pod:15
1134 msgid ""
1135 "This tool allows you to discover filesystems, partitions, logical volumes, "
1136 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1137 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1138 msgstr ""
1139
1140 #. type: textblock
1141 #: ../cat/virt-filesystems.pod:20
1142 msgid ""
1143 "One use for this tool is from shell scripts to iterate over all filesystems "
1144 "from a disk image:"
1145 msgstr ""
1146
1147 #. type: verbatim
1148 #: ../cat/virt-filesystems.pod:23
1149 #, no-wrap
1150 msgid ""
1151 " for fs in $(virt-filesystems -a disk.img); do\n"
1152 "   # ...\n"
1153 " done\n"
1154 "\n"
1155 msgstr ""
1156
1157 #. type: textblock
1158 #: ../cat/virt-filesystems.pod:27
1159 msgid ""
1160 "Another use is to list partitions before using another tool to modify those "
1161 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1162 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1163 msgstr ""
1164
1165 #. type: textblock
1166 #: ../cat/virt-filesystems.pod:32
1167 msgid ""
1168 "Various command line options control what this program displays.  You need "
1169 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1170 "guest respectively.  If you just specify that then the program shows "
1171 "filesystems found, one per line, like this:"
1172 msgstr ""
1173
1174 #. type: verbatim
1175 #: ../cat/virt-filesystems.pod:37
1176 #, no-wrap
1177 msgid ""
1178 " $ virt-filesystems -a disk.img\n"
1179 " /dev/sda1\n"
1180 " /dev/vg_guest/lv_root\n"
1181 "\n"
1182 msgstr ""
1183
1184 #. type: textblock
1185 #: ../cat/virt-filesystems.pod:41
1186 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
1187 msgstr ""
1188
1189 #. type: verbatim
1190 #: ../cat/virt-filesystems.pod:44
1191 #, no-wrap
1192 msgid ""
1193 " $ virt-filesystems -a disk.img -l\n"
1194 " Name                   Type         VFS   Label  Size\n"
1195 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1196 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1197 "\n"
1198 msgstr ""
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:49
1202 msgid ""
1203 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1204 "shown as well:"
1205 msgstr ""
1206
1207 #. type: verbatim
1208 #: ../cat/virt-filesystems.pod:52
1209 #, no-wrap
1210 msgid ""
1211 " $ virt-filesystems -a disk.img --extra\n"
1212 " /dev/sda1\n"
1213 " /dev/vg_guest/lv_root\n"
1214 " /dev/vg_guest/lv_swap\n"
1215 " /dev/vg_guest/lv_data\n"
1216 "\n"
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:58
1221 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
1222 msgstr ""
1223
1224 #. type: verbatim
1225 #: ../cat/virt-filesystems.pod:60
1226 #, no-wrap
1227 msgid ""
1228 " $ virt-filesystems -a disk.img --partitions\n"
1229 " /dev/sda1\n"
1230 " /dev/sda2\n"
1231 "\n"
1232 msgstr ""
1233
1234 #. type: textblock
1235 #: ../cat/virt-filesystems.pod:64
1236 msgid ""
1237 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
1238 "I<--physical-volumes>, I<--block-devices> to list those items."
1239 msgstr ""
1240
1241 #. type: textblock
1242 #: ../cat/virt-filesystems.pod:67
1243 msgid ""
1244 "You can use these options in combination as well (if you want a combination "
1245 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1246 "items fall into several categories (eg. C</dev/sda1> might be both a "
1247 "partition and a filesystem).  These items are listed several times.  To get "
1248 "a list which includes absolutely everything that virt-filesystems knows "
1249 "about, use the I<--all> option."
1250 msgstr ""
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:74
1254 msgid ""
1255 "UUIDs (because they are quite long) are not shown by default.  Add the "
1256 "I<--uuid> option to display device and filesystem UUIDs in the long output."
1257 msgstr ""
1258
1259 #. type: textblock
1260 #: ../cat/virt-filesystems.pod:78
1261 msgid ""
1262 "I<--all --long --uuid> is a useful combination to display all possible "
1263 "information about everything."
1264 msgstr ""
1265
1266 #. type: verbatim
1267 #: ../cat/virt-filesystems.pod:81
1268 #, no-wrap
1269 msgid ""
1270 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1271 " Name      Type       VFS  Label           Size Parent   UUID\n"
1272 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1273 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1274 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1275 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1276 " /dev/sda  device     -    -               20G  -        -\n"
1277 "\n"
1278 msgstr ""
1279
1280 #. type: textblock
1281 #: ../cat/virt-filesystems.pod:89
1282 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1283 msgstr ""
1284
1285 #. type: =item
1286 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1287 msgid "B<--all>"
1288 msgstr ""
1289
1290 #. type: textblock
1291 #: ../cat/virt-filesystems.pod:112
1292 msgid ""
1293 "Display everything.  This is currently the same as specifying these options: "
1294 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
1295 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
1296 "be added to this list in future)."
1297 msgstr ""
1298
1299 #. type: textblock
1300 #: ../cat/virt-filesystems.pod:117
1301 msgid "See also I<--long>."
1302 msgstr ""
1303
1304 #. type: =item
1305 #: ../cat/virt-filesystems.pod:119
1306 msgid "B<--blkdevs>"
1307 msgstr ""
1308
1309 #. type: =item
1310 #: ../cat/virt-filesystems.pod:121
1311 msgid "B<--block-devices>"
1312 msgstr ""
1313
1314 #. type: textblock
1315 #: ../cat/virt-filesystems.pod:123
1316 msgid "Display block devices."
1317 msgstr ""
1318
1319 #. type: =item
1320 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1321 msgid "B<--csv>"
1322 msgstr ""
1323
1324 #. type: textblock
1325 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1326 msgid ""
1327 "Write out the results in CSV format (comma-separated values).  This format "
1328 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1329 "ABOUT CSV FORMAT> below."
1330 msgstr ""
1331
1332 #. type: textblock
1333 #: ../cat/virt-filesystems.pod:150
1334 msgid ""
1335 "When prompting for keys and passphrases, virt-filesystems normally turns "
1336 "echoing off so you cannot see what you are typing.  If you are not worried "
1337 "about Tempest attacks and there is no one else in the room you can specify "
1338 "this flag to see what you are typing."
1339 msgstr ""
1340
1341 #. type: =item
1342 #: ../cat/virt-filesystems.pod:155
1343 msgid "B<--extra>"
1344 msgstr ""
1345
1346 #. type: textblock
1347 #: ../cat/virt-filesystems.pod:157
1348 msgid ""
1349 "This causes filesystems that are not ordinary, mountable filesystems to be "
1350 "displayed.  This category includes swapspace, and filesystems that are empty "
1351 "or contain unknown data."
1352 msgstr ""
1353
1354 #. type: textblock
1355 #: ../cat/virt-filesystems.pod:161
1356 msgid "This option implies I<--filesystems>."
1357 msgstr ""
1358
1359 #. type: =item
1360 #: ../cat/virt-filesystems.pod:163
1361 msgid "B<--filesystems>"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:165
1366 msgid ""
1367 "Display mountable filesystems.  If no display option was selected then this "
1368 "option is implied."
1369 msgstr ""
1370
1371 #. type: textblock
1372 #: ../cat/virt-filesystems.pod:168
1373 msgid "With I<--extra>, non-mountable filesystems are shown too."
1374 msgstr ""
1375
1376 #. type: verbatim
1377 #: ../cat/virt-filesystems.pod:181
1378 #, no-wrap
1379 msgid ""
1380 " virt-filesystems --format=raw -a disk.img\n"
1381 "\n"
1382 msgstr ""
1383
1384 #. type: verbatim
1385 #: ../cat/virt-filesystems.pod:185
1386 #, no-wrap
1387 msgid ""
1388 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1389 "\n"
1390 msgstr ""
1391
1392 #. type: =item
1393 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352 ../df/virt-df.pod:125 ../fish/guestfish.pod:156 ../tools/virt-list-partitions.pl:109
1394 msgid "B<-h>"
1395 msgstr ""
1396
1397 #. type: =item
1398 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1399 msgid "B<--human-readable>"
1400 msgstr ""
1401
1402 #. type: textblock
1403 #: ../cat/virt-filesystems.pod:198
1404 msgid "In I<--long> mode, display sizes in human-readable format."
1405 msgstr ""
1406
1407 #. type: =item
1408 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1409 msgid "B<-l>"
1410 msgstr ""
1411
1412 #. type: =item
1413 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1414 msgid "B<--long>"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-filesystems.pod:209
1419 msgid "Display extra columns of data (\"long format\")."
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-filesystems.pod:211
1424 msgid "A title row is added unless you also specify I<--no-title>."
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../cat/virt-filesystems.pod:213
1429 msgid ""
1430 "The extra columns displayed depend on what output you select, and the "
1431 "ordering of columns may change in future versions.  Use the title row, "
1432 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
1433 "programs."
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-filesystems.pod:218
1438 msgid ""
1439 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1440 "default is to show raw numbers of I<bytes>."
1441 msgstr ""
1442
1443 #. type: textblock
1444 #: ../cat/virt-filesystems.pod:221
1445 msgid "Use I<--uuid> to display UUIDs too."
1446 msgstr ""
1447
1448 #. type: =item
1449 #: ../cat/virt-filesystems.pod:223
1450 msgid "B<--lvs>"
1451 msgstr ""
1452
1453 #. type: =item
1454 #: ../cat/virt-filesystems.pod:225
1455 msgid "B<--logvols>"
1456 msgstr ""
1457
1458 #. type: =item
1459 #: ../cat/virt-filesystems.pod:227
1460 msgid "B<--logical-volumes>"
1461 msgstr ""
1462
1463 #. type: textblock
1464 #: ../cat/virt-filesystems.pod:229
1465 msgid ""
1466 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1467 "of whether the LVs contain filesystems."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:232
1472 msgid "B<--no-title>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:234
1477 msgid "In I<--long> mode, don't add a title row."
1478 msgstr ""
1479
1480 #. type: textblock
1481 #: ../cat/virt-filesystems.pod:236
1482 msgid ""
1483 "Note that the order of the columns is not fixed, and may change in future "
1484 "versions of virt-filesystems, so using this option may give you unexpected "
1485 "surprises."
1486 msgstr ""
1487
1488 #. type: =item
1489 #: ../cat/virt-filesystems.pod:240
1490 msgid "B<--parts>"
1491 msgstr ""
1492
1493 #. type: =item
1494 #: ../cat/virt-filesystems.pod:242
1495 msgid "B<--partitions>"
1496 msgstr ""
1497
1498 #. type: textblock
1499 #: ../cat/virt-filesystems.pod:244
1500 msgid ""
1501 "Display partitions.  In this mode, these are displayed irrespective of "
1502 "whether the partitions contain filesystems."
1503 msgstr ""
1504
1505 #. type: =item
1506 #: ../cat/virt-filesystems.pod:247
1507 msgid "B<--pvs>"
1508 msgstr ""
1509
1510 #. type: =item
1511 #: ../cat/virt-filesystems.pod:249
1512 msgid "B<--physvols>"
1513 msgstr ""
1514
1515 #. type: =item
1516 #: ../cat/virt-filesystems.pod:251
1517 msgid "B<--physical-volumes>"
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-filesystems.pod:253
1522 msgid "Display LVM physical volumes."
1523 msgstr ""
1524
1525 #. type: =item
1526 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1527 msgid "B<--uuid>"
1528 msgstr ""
1529
1530 #. type: =item
1531 #: ../cat/virt-filesystems.pod:257
1532 msgid "B<--uuids>"
1533 msgstr ""
1534
1535 #. type: textblock
1536 #: ../cat/virt-filesystems.pod:259
1537 msgid "In I<--long> mode, display UUIDs as well."
1538 msgstr ""
1539
1540 #. type: =item
1541 #: ../cat/virt-filesystems.pod:273
1542 msgid "B<--vgs>"
1543 msgstr ""
1544
1545 #. type: =item
1546 #: ../cat/virt-filesystems.pod:275
1547 msgid "B<--volgroups>"
1548 msgstr ""
1549
1550 #. type: =item
1551 #: ../cat/virt-filesystems.pod:277
1552 msgid "B<--volume-groups>"
1553 msgstr ""
1554
1555 #. type: textblock
1556 #: ../cat/virt-filesystems.pod:279
1557 msgid "Display LVM volume groups."
1558 msgstr ""
1559
1560 #. type: =head1
1561 #: ../cat/virt-filesystems.pod:287
1562 msgid "COLUMNS"
1563 msgstr ""
1564
1565 #. type: textblock
1566 #: ../cat/virt-filesystems.pod:289
1567 msgid ""
1568 "Note that columns in the output are subject to reordering and change in "
1569 "future versions of this tool."
1570 msgstr ""
1571
1572 #. type: =item
1573 #: ../cat/virt-filesystems.pod:294
1574 msgid "B<Name>"
1575 msgstr ""
1576
1577 #. type: textblock
1578 #: ../cat/virt-filesystems.pod:296
1579 msgid "The filesystem, partition, block device or LVM name."
1580 msgstr ""
1581
1582 #. type: textblock
1583 #: ../cat/virt-filesystems.pod:298
1584 msgid ""
1585 "For device and partition names these are displayed as canonical libguestfs "
1586 "names, so that for example C</dev/sda2> is the second partition on the first "
1587 "device."
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-filesystems.pod:302
1592 msgid ""
1593 "If the I<--long> option is B<not> specified, then only the name column is "
1594 "shown in the output."
1595 msgstr ""
1596
1597 #. type: =item
1598 #: ../cat/virt-filesystems.pod:305
1599 msgid "B<Type>"
1600 msgstr ""
1601
1602 #. type: textblock
1603 #: ../cat/virt-filesystems.pod:307
1604 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1605 msgstr ""
1606
1607 #. type: =item
1608 #: ../cat/virt-filesystems.pod:309
1609 msgid "B<VFS>"
1610 msgstr ""
1611
1612 #. type: textblock
1613 #: ../cat/virt-filesystems.pod:311
1614 msgid ""
1615 "If there is a filesystem, then this column displays the filesystem type if "
1616 "one could be detected, eg. C<ext4>."
1617 msgstr ""
1618
1619 #. type: =item
1620 #: ../cat/virt-filesystems.pod:314
1621 msgid "B<Label>"
1622 msgstr ""
1623
1624 #. type: textblock
1625 #: ../cat/virt-filesystems.pod:316
1626 msgid ""
1627 "If the object has a label (used for identifying and mounting filesystems) "
1628 "then this column contains the label."
1629 msgstr ""
1630
1631 #. type: =item
1632 #: ../cat/virt-filesystems.pod:319
1633 msgid "B<Size>"
1634 msgstr ""
1635
1636 #. type: textblock
1637 #: ../cat/virt-filesystems.pod:321
1638 msgid ""
1639 "The size of the object in bytes.  If the I<--human> option is used then the "
1640 "size is displayed in a human-readable form."
1641 msgstr ""
1642
1643 #. type: =item
1644 #: ../cat/virt-filesystems.pod:324
1645 msgid "B<Parent>"
1646 msgstr ""
1647
1648 #. type: textblock
1649 #: ../cat/virt-filesystems.pod:326
1650 msgid ""
1651 "The parent column records the parent relationship between objects.  For "
1652 "example, if the object is a partition, then this column contains the name of "
1653 "the containing device.  If the object is a logical volume, then this column "
1654 "is the name of the volume group."
1655 msgstr ""
1656
1657 #. type: =item
1658 #: ../cat/virt-filesystems.pod:331
1659 msgid "B<UUID>"
1660 msgstr ""
1661
1662 #. type: textblock
1663 #: ../cat/virt-filesystems.pod:333
1664 msgid ""
1665 "If the object has a UUID (used for identifying and mounting filesystems and "
1666 "block devices) then this column contains the UUID as a string."
1667 msgstr ""
1668
1669 #. type: textblock
1670 #: ../cat/virt-filesystems.pod:337
1671 msgid "The UUID is only displayed if the I<--uuid> option is given."
1672 msgstr ""
1673
1674 #. type: =head1
1675 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1676 msgid "NOTE ABOUT CSV FORMAT"
1677 msgstr ""
1678
1679 #. type: textblock
1680 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1681 msgid ""
1682 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1683 "should be easy to parse, but it is definitely not easy to parse."
1684 msgstr ""
1685
1686 #. type: textblock
1687 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1688 msgid ""
1689 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1690 "reliably.  This example has two columns:"
1691 msgstr ""
1692
1693 #. type: verbatim
1694 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1695 #, no-wrap
1696 msgid ""
1697 " \"foo,bar\",baz\n"
1698 "\n"
1699 msgstr ""
1700
1701 #. type: textblock
1702 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1703 msgid ""
1704 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1705 "reliably.  This example has one row:"
1706 msgstr ""
1707
1708 #. type: verbatim
1709 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1710 #, no-wrap
1711 msgid ""
1712 " \"foo\n"
1713 " bar\",baz\n"
1714 "\n"
1715 msgstr ""
1716
1717 #. type: textblock
1718 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1719 msgid ""
1720 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1721 "packaged in major Linux distributions)."
1722 msgstr ""
1723
1724 #. type: textblock
1725 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1726 msgid ""
1727 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1728 "or Python's built-in csv library)."
1729 msgstr ""
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1733 msgid "Most spreadsheets and databases can import CSV directly."
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../cat/virt-filesystems.pod:379
1738 msgid ""
1739 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1740 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1741 "L<http://libguestfs.org/>."
1742 msgstr ""
1743
1744 #. type: textblock
1745 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1746 msgid "Copyright (C) 2010 Red Hat Inc."
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../cat/virt-ls.pod:5
1751 msgid "virt-ls - List files in a virtual machine"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-ls.pod:9
1756 #, no-wrap
1757 msgid ""
1758 " virt-ls [--options] -d domname directory [directory ...]\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: verbatim
1763 #: ../cat/virt-ls.pod:11
1764 #, no-wrap
1765 msgid ""
1766 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1767 "...]\n"
1768 "\n"
1769 msgstr ""
1770
1771 #. type: textblock
1772 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1773 msgid "Old style:"
1774 msgstr ""
1775
1776 #. type: verbatim
1777 #: ../cat/virt-ls.pod:15
1778 #, no-wrap
1779 msgid ""
1780 " virt-ls [--options] domname directory\n"
1781 "\n"
1782 msgstr ""
1783
1784 #. type: verbatim
1785 #: ../cat/virt-ls.pod:17
1786 #, no-wrap
1787 msgid ""
1788 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1789 "\n"
1790 msgstr ""
1791
1792 #. type: textblock
1793 #: ../cat/virt-ls.pod:21
1794 msgid ""
1795 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1796 "more from a virtual machine or disk image."
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:24
1801 msgid ""
1802 "Multiple directory names can be given, in which case the output from each is "
1803 "concatenated."
1804 msgstr ""
1805
1806 #. type: textblock
1807 #: ../cat/virt-ls.pod:27
1808 msgid ""
1809 "To list directories from a libvirt guest use the I<-d> option to specify the "
1810 "name of the guest.  For a disk image, use the I<-a> option."
1811 msgstr ""
1812
1813 #. type: textblock
1814 #: ../cat/virt-ls.pod:31
1815 msgid ""
1816 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1817 "may need to use L<guestfish(1)>, or write a program directly to the "
1818 "L<guestfs(3)> API."
1819 msgstr ""
1820
1821 #. type: textblock
1822 #: ../cat/virt-ls.pod:37
1823 msgid "Get a list of all files and directories in a virtual machine:"
1824 msgstr ""
1825
1826 #. type: verbatim
1827 #: ../cat/virt-ls.pod:39
1828 #, no-wrap
1829 msgid ""
1830 " virt-ls -R -d guest /\n"
1831 "\n"
1832 msgstr ""
1833
1834 #. type: textblock
1835 #: ../cat/virt-ls.pod:41
1836 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1837 msgstr ""
1838
1839 #. type: verbatim
1840 #: ../cat/virt-ls.pod:43
1841 #, no-wrap
1842 msgid ""
1843 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1844 "\n"
1845 msgstr ""
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:45
1849 msgid "List all public-writable directories in a Linux virtual machine:"
1850 msgstr ""
1851
1852 #. type: verbatim
1853 #: ../cat/virt-ls.pod:47
1854 #, no-wrap
1855 msgid ""
1856 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1857 "\n"
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:49
1862 msgid "List all Unix domain sockets in a Linux virtual machine:"
1863 msgstr ""
1864
1865 #. type: verbatim
1866 #: ../cat/virt-ls.pod:51
1867 #, no-wrap
1868 msgid ""
1869 " virt-ls -lR -d guest / | grep '^s'\n"
1870 "\n"
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-ls.pod:53
1875 msgid "List all regular files with filenames ending in '.png':"
1876 msgstr ""
1877
1878 #. type: verbatim
1879 #: ../cat/virt-ls.pod:55
1880 #, no-wrap
1881 msgid ""
1882 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1883 "\n"
1884 msgstr ""
1885
1886 #. type: textblock
1887 #: ../cat/virt-ls.pod:57
1888 msgid "To display files larger than 10MB in home directories:"
1889 msgstr ""
1890
1891 #. type: verbatim
1892 #: ../cat/virt-ls.pod:59
1893 #, no-wrap
1894 msgid ""
1895 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1896 "\n"
1897 msgstr ""
1898
1899 #. type: textblock
1900 #: ../cat/virt-ls.pod:61
1901 msgid "Find everything modified in the last 7 days:"
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-ls.pod:63
1906 #, no-wrap
1907 msgid ""
1908 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1909 "\n"
1910 msgstr ""
1911
1912 #. type: textblock
1913 #: ../cat/virt-ls.pod:65
1914 msgid "Find regular files modified in the last 24 hours:"
1915 msgstr ""
1916
1917 #. type: verbatim
1918 #: ../cat/virt-ls.pod:67
1919 #, no-wrap
1920 msgid ""
1921 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1922 "\n"
1923 msgstr ""
1924
1925 #. type: =head2
1926 #: ../cat/virt-ls.pod:69
1927 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1928 msgstr ""
1929
1930 #. type: textblock
1931 #: ../cat/virt-ls.pod:71
1932 msgid ""
1933 "Find the differences between files in a guest and an earlier snapshot of the "
1934 "same guest."
1935 msgstr ""
1936
1937 #. type: verbatim
1938 #: ../cat/virt-ls.pod:74
1939 #, no-wrap
1940 msgid ""
1941 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1942 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1943 " diff -u old new | less\n"
1944 "\n"
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-ls.pod:78
1949 msgid ""
1950 "The commands above won't find files where the content has changed but the "
1951 "metadata (eg. file size and modification date) is the same.  To do that, you "
1952 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1953 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1954 "of every regular file in the virtual machine."
1955 msgstr ""
1956
1957 #. type: =head1
1958 #: ../cat/virt-ls.pod:84
1959 msgid "OUTPUT MODES"
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../cat/virt-ls.pod:86
1964 msgid ""
1965 "C<virt-ls> has four output modes, controlled by different combinations of "
1966 "the I<-l> and I<-R> options."
1967 msgstr ""
1968
1969 #. type: =head2
1970 #: ../cat/virt-ls.pod:89
1971 msgid "SIMPLE LISTING"
1972 msgstr ""
1973
1974 #. type: textblock
1975 #: ../cat/virt-ls.pod:91
1976 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1977 msgstr ""
1978
1979 #. type: verbatim
1980 #: ../cat/virt-ls.pod:93
1981 #, no-wrap
1982 msgid ""
1983 " $ virt-ls -d guest /\n"
1984 " bin\n"
1985 " boot\n"
1986 " [etc.]\n"
1987 "\n"
1988 msgstr ""
1989
1990 #. type: =head2
1991 #: ../cat/virt-ls.pod:98
1992 msgid "LONG LISTING"
1993 msgstr ""
1994
1995 #. type: textblock
1996 #: ../cat/virt-ls.pod:100
1997 msgid ""
1998 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1999 "(more specifically, like the C<guestfs_ll> function)."
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../cat/virt-ls.pod:103
2004 #, no-wrap
2005 msgid ""
2006 " $ virt-ls -l -d guest /\n"
2007 " total 204\n"
2008 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2009 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2010 " [etc.]\n"
2011 "\n"
2012 msgstr ""
2013
2014 #. type: textblock
2015 #: ../cat/virt-ls.pod:109
2016 msgid ""
2017 "Note that while this is useful for displaying a directory, do not try "
2018 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2019 "instead."
2020 msgstr ""
2021
2022 #. type: =head2
2023 #: ../cat/virt-ls.pod:113
2024 msgid "RECURSIVE LISTING"
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:115
2029 msgid ""
2030 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2031 "and directories recursively:"
2032 msgstr ""
2033
2034 #. type: verbatim
2035 #: ../cat/virt-ls.pod:118
2036 #, no-wrap
2037 msgid ""
2038 " $ virt-ls -R -d guest /tmp\n"
2039 " foo\n"
2040 " foo/bar\n"
2041 " [etc.]\n"
2042 "\n"
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../cat/virt-ls.pod:123
2047 msgid ""
2048 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2049 "converts C<\\0> characters to C<\\n>."
2050 msgstr ""
2051
2052 #. type: =head2
2053 #: ../cat/virt-ls.pod:126
2054 msgid "RECURSIVE LONG LISTING"
2055 msgstr ""
2056
2057 #. type: textblock
2058 #: ../cat/virt-ls.pod:128
2059 msgid ""
2060 "Using I<-lR> options together changes the output to display directories "
2061 "recursively, with file stats, and optionally other features such as "
2062 "checksums and extended attributes."
2063 msgstr ""
2064
2065 #. type: textblock
2066 #: ../cat/virt-ls.pod:132
2067 msgid ""
2068 "Most of the interesting features of C<virt-ls> are only available when using "
2069 "I<-lR> mode."
2070 msgstr ""
2071
2072 #. type: textblock
2073 #: ../cat/virt-ls.pod:135
2074 msgid ""
2075 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2076 "you cannot use the output in another program (because filenames can contain "
2077 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2078 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2079 "on you by creating filenames with embedded newline characters.  To B<safely> "
2080 "parse the output in another program, use the I<--csv> (Comma-Separated "
2081 "Values) option."
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../cat/virt-ls.pod:143
2086 msgid ""
2087 "Note that this output format is completely unrelated to the C<ls -lR> "
2088 "command."
2089 msgstr ""
2090
2091 #. type: verbatim
2092 #: ../cat/virt-ls.pod:146
2093 #, no-wrap
2094 msgid ""
2095 " $ virt-ls -lR -d guest /bin\n"
2096 " d 0555       4096 /bin\n"
2097 " - 0755        123 /bin/alsaunmute\n"
2098 " - 0755      28328 /bin/arch\n"
2099 " l 0777          4 /bin/awk -> gawk\n"
2100 " - 0755      27216 /bin/basename\n"
2101 " - 0755     943360 /bin/bash\n"
2102 " [etc.]\n"
2103 "\n"
2104 msgstr ""
2105
2106 #. type: textblock
2107 #: ../cat/virt-ls.pod:155
2108 msgid "These basic fields are always shown:"
2109 msgstr ""
2110
2111 #. type: =item
2112 #: ../cat/virt-ls.pod:159
2113 msgid "type"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:161
2118 msgid ""
2119 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2120 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2121 "link), C<s> (socket) or C<u> (unknown)."
2122 msgstr ""
2123
2124 #. type: =item
2125 #: ../cat/virt-ls.pod:171
2126 msgid "permissions"
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../cat/virt-ls.pod:173
2131 msgid "The Unix permissions, displayed as a 4 digit octal number."
2132 msgstr ""
2133
2134 #. type: =item
2135 #: ../cat/virt-ls.pod:175
2136 msgid "size"
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../cat/virt-ls.pod:177
2141 msgid ""
2142 "The size of the file.  This is shown in bytes unless I<-h> or "
2143 "I<--human-readable> option is given, in which case this is shown as a "
2144 "human-readable number."
2145 msgstr ""
2146
2147 #. type: =head2
2148 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2149 msgid "path"
2150 msgstr ""
2151
2152 #. type: textblock
2153 #: ../cat/virt-ls.pod:183
2154 msgid "The full path of the file or directory."
2155 msgstr ""
2156
2157 #. type: =item
2158 #: ../cat/virt-ls.pod:185
2159 msgid "link"
2160 msgstr ""
2161
2162 #. type: textblock
2163 #: ../cat/virt-ls.pod:187
2164 msgid "For symbolic links only, the link target."
2165 msgstr ""
2166
2167 #. type: textblock
2168 #: ../cat/virt-ls.pod:191
2169 msgid ""
2170 "In I<-lR> mode, additional command line options enable the display of more "
2171 "fields."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:194
2176 msgid ""
2177 "With the I<--uids> flag, these additional fields are displayed before the "
2178 "path:"
2179 msgstr ""
2180
2181 #. type: =item
2182 #: ../cat/virt-ls.pod:199
2183 msgid "uid"
2184 msgstr ""
2185
2186 #. type: =item
2187 #: ../cat/virt-ls.pod:201
2188 msgid "gid"
2189 msgstr ""
2190
2191 #. type: textblock
2192 #: ../cat/virt-ls.pod:203
2193 msgid ""
2194 "The UID and GID of the owner of the file (displayed numerically).  Note "
2195 "these only make sense in the context of a Unix-like guest."
2196 msgstr ""
2197
2198 #. type: textblock
2199 #: ../cat/virt-ls.pod:208
2200 msgid "With the I<--times> flag, these additional fields are displayed:"
2201 msgstr ""
2202
2203 #. type: =item
2204 #: ../cat/virt-ls.pod:212
2205 msgid "atime"
2206 msgstr ""
2207
2208 #. type: textblock
2209 #: ../cat/virt-ls.pod:214
2210 msgid "The time of last access."
2211 msgstr ""
2212
2213 #. type: =item
2214 #: ../cat/virt-ls.pod:216
2215 msgid "mtime"
2216 msgstr ""
2217
2218 #. type: textblock
2219 #: ../cat/virt-ls.pod:218
2220 msgid "The time of last modification."
2221 msgstr ""
2222
2223 #. type: =item
2224 #: ../cat/virt-ls.pod:220
2225 msgid "ctime"
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../cat/virt-ls.pod:222
2230 msgid "The time of last status change."
2231 msgstr ""
2232
2233 #. type: textblock
2234 #: ../cat/virt-ls.pod:226
2235 msgid ""
2236 "The time fields are displayed as string dates and times, unless one of the "
2237 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2238 msgstr ""
2239
2240 #. type: textblock
2241 #: ../cat/virt-ls.pod:229
2242 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2243 msgstr ""
2244
2245 #. type: =item
2246 #: ../cat/virt-ls.pod:233
2247 msgid "device"
2248 msgstr ""
2249
2250 #. type: textblock
2251 #: ../cat/virt-ls.pod:235
2252 msgid ""
2253 "The device containing the file (displayed as major:minor).  This may not "
2254 "match devices as known to the guest."
2255 msgstr ""
2256
2257 #. type: =item
2258 #: ../cat/virt-ls.pod:238
2259 msgid "inode"
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:240
2264 msgid "The inode number."
2265 msgstr ""
2266
2267 #. type: =item
2268 #: ../cat/virt-ls.pod:242
2269 msgid "nlink"
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../cat/virt-ls.pod:244
2274 msgid "The number of hard links."
2275 msgstr ""
2276
2277 #. type: =item
2278 #: ../cat/virt-ls.pod:246
2279 msgid "rdev"
2280 msgstr ""
2281
2282 #. type: textblock
2283 #: ../cat/virt-ls.pod:248
2284 msgid "For block and char special files, the device (displayed as major:minor)."
2285 msgstr ""
2286
2287 #. type: =item
2288 #: ../cat/virt-ls.pod:251
2289 msgid "blocks"
2290 msgstr ""
2291
2292 #. type: textblock
2293 #: ../cat/virt-ls.pod:253
2294 msgid "The number of 512 byte blocks allocated to the file."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:257
2299 msgid ""
2300 "With the I<--checksum> flag, the checksum of the file contents is shown "
2301 "(only for regular files).  Computing file checksums can take a considerable "
2302 "amount of time."
2303 msgstr ""
2304
2305 #. type: =item
2306 #: ../cat/virt-ls.pod:280
2307 msgid "B<--checksum>"
2308 msgstr ""
2309
2310 #. type: =item
2311 #: ../cat/virt-ls.pod:282
2312 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2313 msgstr ""
2314
2315 #. type: textblock
2316 #: ../cat/virt-ls.pod:284
2317 msgid ""
2318 "Display checksum over file contents for regular files.  With no argument, "
2319 "this defaults to using I<md5>.  Using an argument, you can select the "
2320 "checksum type to use."
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358 ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408 ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2325 msgid ""
2326 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2327 "LISTING> above."
2328 msgstr ""
2329
2330 #. type: textblock
2331 #: ../cat/virt-ls.pod:316
2332 msgid ""
2333 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2334 "so you cannot see what you are typing.  If you are not worried about Tempest "
2335 "attacks and there is no one else in the room you can specify this flag to "
2336 "see what you are typing."
2337 msgstr ""
2338
2339 #. type: =item
2340 #: ../cat/virt-ls.pod:321
2341 msgid "B<--extra-stats>"
2342 msgstr ""
2343
2344 #. type: textblock
2345 #: ../cat/virt-ls.pod:323
2346 msgid "Display extra stats."
2347 msgstr ""
2348
2349 #. type: verbatim
2350 #: ../cat/virt-ls.pod:339
2351 #, no-wrap
2352 msgid ""
2353 " virt-ls --format=raw -a disk.img /dir\n"
2354 "\n"
2355 msgstr ""
2356
2357 #. type: verbatim
2358 #: ../cat/virt-ls.pod:343
2359 #, no-wrap
2360 msgid ""
2361 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2362 "\n"
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:356
2367 msgid "Display file sizes in human-readable format."
2368 msgstr ""
2369
2370 #. type: =item
2371 #: ../cat/virt-ls.pod:370
2372 msgid "B<-R>"
2373 msgstr ""
2374
2375 #. type: =item
2376 #: ../cat/virt-ls.pod:372
2377 msgid "B<--recursive>"
2378 msgstr ""
2379
2380 #. type: textblock
2381 #: ../cat/virt-ls.pod:374
2382 msgid ""
2383 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2384 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2385 "LISTING>."
2386 msgstr ""
2387
2388 #. type: textblock
2389 #: ../cat/virt-ls.pod:378
2390 msgid ""
2391 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
2392 "L</LONG LISTING>."
2393 msgstr ""
2394
2395 #. type: textblock
2396 #: ../cat/virt-ls.pod:381
2397 msgid ""
2398 "C<virt-ls -R> produces a recursive list of files starting at the named "
2399 "directory.  See L</RECURSIVE LISTING>."
2400 msgstr ""
2401
2402 #. type: textblock
2403 #: ../cat/virt-ls.pod:384
2404 msgid ""
2405 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2406 "parsed.  See L</RECURSIVE LONG LISTING>."
2407 msgstr ""
2408
2409 #. type: =item
2410 #: ../cat/virt-ls.pod:387
2411 msgid "B<--times>"
2412 msgstr ""
2413
2414 #. type: textblock
2415 #: ../cat/virt-ls.pod:389
2416 msgid "Display time fields."
2417 msgstr ""
2418
2419 #. type: =item
2420 #: ../cat/virt-ls.pod:394
2421 msgid "B<--time-days>"
2422 msgstr ""
2423
2424 #. type: textblock
2425 #: ../cat/virt-ls.pod:396
2426 msgid "Display time fields as days before now (negative if in the future)."
2427 msgstr ""
2428
2429 #. type: textblock
2430 #: ../cat/virt-ls.pod:398
2431 msgid ""
2432 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2433 "of the file is between 0 and 86399 seconds."
2434 msgstr ""
2435
2436 #. type: =item
2437 #: ../cat/virt-ls.pod:404
2438 msgid "B<--time-relative>"
2439 msgstr ""
2440
2441 #. type: textblock
2442 #: ../cat/virt-ls.pod:406
2443 msgid "Display time fields as seconds before now (negative if in the future)."
2444 msgstr ""
2445
2446 #. type: =item
2447 #: ../cat/virt-ls.pod:411
2448 msgid "B<--time-t>"
2449 msgstr ""
2450
2451 #. type: textblock
2452 #: ../cat/virt-ls.pod:413
2453 msgid "Display time fields as seconds since the Unix epoch."
2454 msgstr ""
2455
2456 #. type: =item
2457 #: ../cat/virt-ls.pod:418
2458 msgid "B<--uids>"
2459 msgstr ""
2460
2461 #. type: textblock
2462 #: ../cat/virt-ls.pod:420
2463 msgid "Display UID and GID fields."
2464 msgstr ""
2465
2466 #. type: textblock
2467 #: ../cat/virt-ls.pod:445
2468 msgid "Previous versions of virt-ls allowed you to write either:"
2469 msgstr ""
2470
2471 #. type: verbatim
2472 #: ../cat/virt-ls.pod:447
2473 #, no-wrap
2474 msgid ""
2475 " virt-ls disk.img [disk.img ...] /dir\n"
2476 "\n"
2477 msgstr ""
2478
2479 #. type: verbatim
2480 #: ../cat/virt-ls.pod:451
2481 #, no-wrap
2482 msgid ""
2483 " virt-ls guestname /dir\n"
2484 "\n"
2485 msgstr ""
2486
2487 #. type: textblock
2488 #: ../cat/virt-ls.pod:497
2489 msgid ""
2490 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
2491 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2492 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2493 msgstr ""
2494
2495 #. type: textblock
2496 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
2497 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2498 msgstr ""
2499
2500 #. type: textblock
2501 #: ../clone/virt-sysprep.pod:5
2502 msgid "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2503 msgstr ""
2504
2505 #. type: verbatim
2506 #: ../clone/virt-sysprep.pod:9
2507 #, no-wrap
2508 msgid ""
2509 " virt-sysprep [--options] -d domname\n"
2510 "\n"
2511 msgstr ""
2512
2513 #. type: verbatim
2514 #: ../clone/virt-sysprep.pod:11
2515 #, no-wrap
2516 msgid ""
2517 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
2518 "\n"
2519 msgstr ""
2520
2521 #. type: textblock
2522 #: ../clone/virt-sysprep.pod:15
2523 msgid ""
2524 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
2525 "can be made from it.  Steps in this process include removing SSH host keys, "
2526 "removing persistent network MAC configuration, and removing user accounts.  "
2527 "Each step can be enabled or disabled as required."
2528 msgstr ""
2529
2530 #. type: textblock
2531 #: ../clone/virt-sysprep.pod:21
2532 msgid ""
2533 "Virt-sysprep is a simple shell script, allowing easy inspection or "
2534 "customization by the system administrator."
2535 msgstr ""
2536
2537 #. type: textblock
2538 #: ../clone/virt-sysprep.pod:24
2539 msgid ""
2540 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
2541 "be shut down.  If you want to preserve the existing contents of the guest, "
2542 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> "
2543 "below."
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../clone/virt-sysprep.pod:29
2548 msgid ""
2549 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
2550 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
2551 "machines in preparation for cloning them.  Having said that, virt-sysprep "
2552 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
2553 "Windows sysprepping in a future version, and we already have code to do it."
2554 msgstr ""
2555
2556 #. type: =item
2557 #: ../clone/virt-sysprep.pod:70
2558 msgid "B<--enable=...>"
2559 msgstr ""
2560
2561 #. type: textblock
2562 #: ../clone/virt-sysprep.pod:72
2563 msgid ""
2564 "Choose which sysprep operations to perform.  Give a comma-separated list of "
2565 "operations, for example:"
2566 msgstr ""
2567
2568 #. type: verbatim
2569 #: ../clone/virt-sysprep.pod:75
2570 #, no-wrap
2571 msgid ""
2572 " --enable=ssh-hostkeys,udev-persistent-net\n"
2573 "\n"
2574 msgstr ""
2575
2576 #. type: textblock
2577 #: ../clone/virt-sysprep.pod:77
2578 msgid "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
2579 msgstr ""
2580
2581 #. type: textblock
2582 #: ../clone/virt-sysprep.pod:79
2583 msgid ""
2584 "If the I<--enable> option is not given, then we default to trying all "
2585 "possible sysprep operations.  But some sysprep operations are skipped for "
2586 "some guest types."
2587 msgstr ""
2588
2589 #. type: textblock
2590 #: ../clone/virt-sysprep.pod:83
2591 msgid ""
2592 "Use I<--list-operations> to list operations supported by a particular "
2593 "version of virt-sysprep."
2594 msgstr ""
2595
2596 #. type: textblock
2597 #: ../clone/virt-sysprep.pod:86
2598 msgid "See L</OPERATIONS> below for a list and an explanation of each operation."
2599 msgstr ""
2600
2601 #. type: verbatim
2602 #: ../clone/virt-sysprep.pod:100
2603 #, no-wrap
2604 msgid ""
2605 " virt-sysprep --format=raw -a disk.img\n"
2606 "\n"
2607 msgstr ""
2608
2609 #. type: verbatim
2610 #: ../clone/virt-sysprep.pod:104
2611 #, no-wrap
2612 msgid ""
2613 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
2614 "\n"
2615 msgstr ""
2616
2617 #. type: =item
2618 #: ../clone/virt-sysprep.pod:113
2619 msgid "B<--hostname> newhostname"
2620 msgstr ""
2621
2622 #. type: textblock
2623 #: ../clone/virt-sysprep.pod:115
2624 msgid ""
2625 "Change the hostname.  See the L</hostname> operation below.  If not given, "
2626 "defaults to C<localhost.localdomain>."
2627 msgstr ""
2628
2629 #. type: =item
2630 #: ../clone/virt-sysprep.pod:118
2631 msgid "B<--list-operations>"
2632 msgstr ""
2633
2634 #. type: textblock
2635 #: ../clone/virt-sysprep.pod:120
2636 msgid "List the operations supported by the virt-sysprep program."
2637 msgstr ""
2638
2639 #. type: =head1
2640 #: ../clone/virt-sysprep.pod:140
2641 msgid "OPERATIONS"
2642 msgstr ""
2643
2644 #. type: textblock
2645 #: ../clone/virt-sysprep.pod:142
2646 msgid ""
2647 "If the I<--enable> option is I<not> given, then all sysprep operations in "
2648 "the list below are enabled, although some are skipped depending on the type "
2649 "of guest."
2650 msgstr ""
2651
2652 #. type: textblock
2653 #: ../clone/virt-sysprep.pod:146
2654 msgid ""
2655 "Operations can be individually enabled using the I<--enable> option.  Use a "
2656 "comma-separated list, for example:"
2657 msgstr ""
2658
2659 #. type: verbatim
2660 #: ../clone/virt-sysprep.pod:149
2661 #, no-wrap
2662 msgid ""
2663 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
2664 "\n"
2665 msgstr ""
2666
2667 #. type: textblock
2668 #: ../clone/virt-sysprep.pod:151
2669 msgid ""
2670 "To list the operations supported by the current version of virt-sysprep, use "
2671 "I<--list-operations>."
2672 msgstr ""
2673
2674 #. type: =head2
2675 #: ../clone/virt-sysprep.pod:154
2676 msgid "hostname"
2677 msgstr ""
2678
2679 #. type: textblock
2680 #: ../clone/virt-sysprep.pod:156
2681 msgid ""
2682 "This changes the hostname of the guest to the value given in the "
2683 "I<--hostname> parameter."
2684 msgstr ""
2685
2686 #. type: textblock
2687 #: ../clone/virt-sysprep.pod:159
2688 msgid ""
2689 "If the I<--hostname> parameter is not given, then the hostname is changed to "
2690 "C<localhost.localdomain>."
2691 msgstr ""
2692
2693 #. type: =head2
2694 #: ../clone/virt-sysprep.pod:162
2695 msgid "net-hwaddr"
2696 msgstr ""
2697
2698 #. type: textblock
2699 #: ../clone/virt-sysprep.pod:164
2700 msgid ""
2701 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
2702 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
2703 msgstr ""
2704
2705 #. type: =head2
2706 #: ../clone/virt-sysprep.pod:167
2707 msgid "ssh-hostkeys"
2708 msgstr ""
2709
2710 #. type: textblock
2711 #: ../clone/virt-sysprep.pod:169
2712 msgid "This erases the SSH host keys in the guest."
2713 msgstr ""
2714
2715 #. type: textblock
2716 #: ../clone/virt-sysprep.pod:171
2717 msgid ""
2718 "The SSH host keys are regenerated (differently) next time the guest is "
2719 "booted."
2720 msgstr ""
2721
2722 #. type: textblock
2723 #: ../clone/virt-sysprep.pod:174
2724 msgid ""
2725 "If, after cloning, the guest gets the same IP address, ssh will give you a "
2726 "stark warning about the host key changing:"
2727 msgstr ""
2728
2729 #. type: verbatim
2730 #: ../clone/virt-sysprep.pod:177
2731 #, no-wrap
2732 msgid ""
2733 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2734 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
2735 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
2736 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
2737 "\n"
2738 msgstr ""
2739
2740 #. type: =head2
2741 #: ../clone/virt-sysprep.pod:182
2742 msgid "udev-persistent-net"
2743 msgstr ""
2744
2745 #. type: textblock
2746 #: ../clone/virt-sysprep.pod:184
2747 msgid ""
2748 "This erases udev persistent net rules which map the guest's existing MAC "
2749 "address to a fixed ethernet device (eg. eth0)."
2750 msgstr ""
2751
2752 #. type: textblock
2753 #: ../clone/virt-sysprep.pod:187
2754 msgid ""
2755 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
2756 "address occupies the old name (eg. eth0), this means the fresh MAC address "
2757 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
2758 "Erasing the udev persistent net rules avoids this."
2759 msgstr ""
2760
2761 #. type: =head1
2762 #: ../clone/virt-sysprep.pod:192
2763 msgid "COPYING AND CLONING"
2764 msgstr ""
2765
2766 #. type: textblock
2767 #: ../clone/virt-sysprep.pod:194
2768 msgid ""
2769 "Virt-sysprep can be used as part of a process of cloning guests, or to "
2770 "prepare a template from which guests can be cloned.  There are many "
2771 "different ways to achieve this using the virt tools, and this section is "
2772 "just an introduction."
2773 msgstr ""
2774
2775 #. type: textblock
2776 #: ../clone/virt-sysprep.pod:199
2777 msgid "A virtual machine (when switched off) consists of two parts:"
2778 msgstr ""
2779
2780 #. type: =item
2781 #: ../clone/virt-sysprep.pod:203
2782 msgid "I<configuration>"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../clone/virt-sysprep.pod:205
2787 msgid ""
2788 "The configuration or description of the guest.  eg. The libvirt XML (see "
2789 "C<virsh dumpxml>), the running configuration of the guest, or another "
2790 "external format like OVF."
2791 msgstr ""
2792
2793 #. type: textblock
2794 #: ../clone/virt-sysprep.pod:209
2795 msgid "Some configuration items that might need to be changed:"
2796 msgstr ""
2797
2798 #. type: textblock
2799 #: ../clone/virt-sysprep.pod:215
2800 msgid "name"
2801 msgstr ""
2802
2803 #. type: textblock
2804 #: ../clone/virt-sysprep.pod:219 ../clone/virt-sysprep.pod:246
2805 msgid "UUID"
2806 msgstr ""
2807
2808 #. type: textblock
2809 #: ../clone/virt-sysprep.pod:223
2810 msgid "path to block device(s)"
2811 msgstr ""
2812
2813 #. type: textblock
2814 #: ../clone/virt-sysprep.pod:227
2815 msgid "network card MAC address"
2816 msgstr ""
2817
2818 #. type: =item
2819 #: ../clone/virt-sysprep.pod:231
2820 msgid "I<block device(s)>"
2821 msgstr ""
2822
2823 #. type: textblock
2824 #: ../clone/virt-sysprep.pod:233
2825 msgid ""
2826 "One or more hard disk images, themselves containing files, directories, "
2827 "applications, kernels, configuration, etc."
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../clone/virt-sysprep.pod:236
2832 msgid "Some things inside the block devices that might need to be changed:"
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../clone/virt-sysprep.pod:242
2837 msgid "hostname and other net configuration"
2838 msgstr ""
2839
2840 #. type: textblock
2841 #: ../clone/virt-sysprep.pod:250
2842 msgid "SSH host keys"
2843 msgstr ""
2844
2845 #. type: textblock
2846 #: ../clone/virt-sysprep.pod:254
2847 msgid "Windows unique security ID (SID)"
2848 msgstr ""
2849
2850 #. type: textblock
2851 #: ../clone/virt-sysprep.pod:258
2852 msgid "Puppet registration"
2853 msgstr ""
2854
2855 #. type: =head2
2856 #: ../clone/virt-sysprep.pod:264
2857 msgid "COPYING THE BLOCK DEVICE"
2858 msgstr ""
2859
2860 #. type: textblock
2861 #: ../clone/virt-sysprep.pod:266
2862 msgid ""
2863 "Starting with an original guest, you probably wish to copy the guest block "
2864 "device and its configuration to make a template.  Then once you are happy "
2865 "with the template, you will want to make many clones from it."
2866 msgstr ""
2867
2868 #. type: verbatim
2869 #: ../clone/virt-sysprep.pod:271
2870 #, no-wrap
2871 msgid ""
2872 "                        virt-sysprep\n"
2873 "                             |\n"
2874 "                             v\n"
2875 " original guest --------> template ---------->\n"
2876 "                                      \\------> cloned\n"
2877 "                                       \\-----> guests\n"
2878 "                                        \\---->\n"
2879 "\n"
2880 msgstr ""
2881
2882 #. type: textblock
2883 #: ../clone/virt-sysprep.pod:279
2884 msgid ""
2885 "You can, of course, just copy the block device on the host using L<cp(1)> or "
2886 "L<dd(1)>."
2887 msgstr ""
2888
2889 #. type: verbatim
2890 #: ../clone/virt-sysprep.pod:282
2891 #, no-wrap
2892 msgid ""
2893 "                   dd                 dd\n"
2894 " original guest --------> template ---------->\n"
2895 "                                      \\------> cloned\n"
2896 "                                       \\-----> guests\n"
2897 "                                        \\---->\n"
2898 "\n"
2899 msgstr ""
2900
2901 #. type: textblock
2902 #: ../clone/virt-sysprep.pod:288
2903 msgid "There are some smarter (and faster) ways too:"
2904 msgstr ""
2905
2906 #. type: verbatim
2907 #: ../clone/virt-sysprep.pod:294
2908 #, no-wrap
2909 msgid ""
2910 "                          snapshot\n"
2911 "                template ---------->\n"
2912 "                            \\------> cloned\n"
2913 "                             \\-----> guests\n"
2914 "                              \\---->\n"
2915 "\n"
2916 msgstr ""
2917
2918 #. type: textblock
2919 #: ../clone/virt-sysprep.pod:300
2920 msgid ""
2921 "Use the block device as a backing file and create a snapshot on top for each "
2922 "guest.  The advantage is that you don't need to copy the block device (very "
2923 "fast) and only changes are stored (less storage required)."
2924 msgstr ""
2925
2926 #. type: textblock
2927 #: ../clone/virt-sysprep.pod:305
2928 msgid ""
2929 "Note that writing to the backing file once you have created guests on top of "
2930 "it is not possible: you will corrupt the guests."
2931 msgstr ""
2932
2933 #. type: textblock
2934 #: ../clone/virt-sysprep.pod:308
2935 msgid ""
2936 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 "
2937 "-o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
2938 "filesystems (such as btrfs) and most Network Attached Storage devices can "
2939 "also create cheap snapshots from files or LUNs."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../clone/virt-sysprep.pod:316
2944 msgid "Get your NAS to snapshot and/or duplicate the LUN."
2945 msgstr ""
2946
2947 #. type: textblock
2948 #: ../clone/virt-sysprep.pod:320
2949 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
2950 msgstr ""
2951
2952 #. type: =head2
2953 #: ../clone/virt-sysprep.pod:324
2954 msgid "VIRT-CLONE"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../clone/virt-sysprep.pod:326
2959 msgid ""
2960 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
2961 "and/or modify the external libvirt configuration of a guest.  It will reset "
2962 "the name, UUID and MAC address of the guest in the libvirt XML."
2963 msgstr ""
2964
2965 #. type: textblock
2966 #: ../clone/virt-sysprep.pod:331
2967 msgid ""
2968 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
2969 "image.  This was the original motivation to write virt-sysprep."
2970 msgstr ""
2971
2972 #. type: =head2
2973 #: ../clone/virt-sysprep.pod:334
2974 msgid "SPARSIFY"
2975 msgstr ""
2976
2977 #. type: verbatim
2978 #: ../clone/virt-sysprep.pod:336
2979 #, no-wrap
2980 msgid ""
2981 "              virt-sparsify\n"
2982 " original guest --------> template\n"
2983 "\n"
2984 msgstr ""
2985
2986 #. type: textblock
2987 #: ../clone/virt-sysprep.pod:339
2988 msgid ""
2989 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
2990 "it easier to compress and/or faster to copy."
2991 msgstr ""
2992
2993 #. type: textblock
2994 #: ../clone/virt-sysprep.pod:342
2995 msgid ""
2996 "Notice that since virt-sparsify also copies the image, you can use it to "
2997 "make the initial copy (instead of C<dd>)."
2998 msgstr ""
2999
3000 #. type: =head2
3001 #: ../clone/virt-sysprep.pod:345
3002 msgid "RESIZE"
3003 msgstr ""
3004
3005 #. type: verbatim
3006 #: ../clone/virt-sysprep.pod:347
3007 #, no-wrap
3008 msgid ""
3009 "                         virt-resize\n"
3010 "                template ---------->\n"
3011 "                            \\------> cloned\n"
3012 "                             \\-----> guests\n"
3013 "                              \\---->\n"
3014 "\n"
3015 msgstr ""
3016
3017 #. type: textblock
3018 #: ../clone/virt-sysprep.pod:353
3019 msgid ""
3020 "If you want to give people cloned guests, but let them pick the size of the "
3021 "guest themselves (eg. depending on how much they are prepared to pay for "
3022 "disk space), then instead of copying the template, you can run "
3023 "L<virt-resize(1)>.  Virt-resize performs a copy and resize, and thus is "
3024 "ideal for cloning guests from a template."
3025 msgstr ""
3026
3027 #. type: textblock
3028 #: ../clone/virt-sysprep.pod:368
3029 msgid "This program returns 0 on success, or 1 if there was an error."
3030 msgstr ""
3031
3032 #. type: textblock
3033 #: ../clone/virt-sysprep.pod:372
3034 msgid ""
3035 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, "
3036 "L<virt-resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<qemu-img(1)>, "
3037 "L<lvcreate(8)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3038 msgstr ""
3039
3040 #. type: textblock
3041 #: ../df/virt-df.pod:5
3042 msgid "virt-df - Display free space on virtual filesystems"
3043 msgstr ""
3044
3045 #. type: verbatim
3046 #: ../df/virt-df.pod:9
3047 #, no-wrap
3048 msgid ""
3049 " virt-df [--options]\n"
3050 "\n"
3051 msgstr ""
3052
3053 #. type: verbatim
3054 #: ../df/virt-df.pod:11
3055 #, no-wrap
3056 msgid ""
3057 " virt-df [--options] -d domname\n"
3058 "\n"
3059 msgstr ""
3060
3061 #. type: verbatim
3062 #: ../df/virt-df.pod:13
3063 #, no-wrap
3064 msgid ""
3065 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3066 "\n"
3067 msgstr ""
3068
3069 #. type: verbatim
3070 #: ../df/virt-df.pod:17
3071 #, no-wrap
3072 msgid ""
3073 " virt-df [--options] domname\n"
3074 "\n"
3075 msgstr ""
3076
3077 #. type: verbatim
3078 #: ../df/virt-df.pod:19
3079 #, no-wrap
3080 msgid ""
3081 " virt-df [--options] disk.img [disk.img ...]\n"
3082 "\n"
3083 msgstr ""
3084
3085 #. type: textblock
3086 #: ../df/virt-df.pod:23
3087 msgid ""
3088 "C<virt-df> is a command line tool to display free space on virtual machine "
3089 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3090 "allocated to a virtual machine, but can look inside disk images to see how "
3091 "much space is really being used."
3092 msgstr ""
3093
3094 #. type: textblock
3095 #: ../df/virt-df.pod:28
3096 msgid ""
3097 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3098 "to get a list of all active and inactive guests, and performs a C<df>-type "
3099 "operation on each one in turn, printing out the results."
3100 msgstr ""
3101
3102 #. type: textblock
3103 #: ../df/virt-df.pod:32
3104 msgid ""
3105 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
3106 "C<df>-type operation on either the single named libvirt domain, or on the "
3107 "disk image(s) listed on the command line (which must all belong to a single "
3108 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
3109 "single guest>.  If you want to run on multiple guests, then you have to "
3110 "invoke C<virt-df> multiple times."
3111 msgstr ""
3112
3113 #. type: textblock
3114 #: ../df/virt-df.pod:39
3115 msgid ""
3116 "Use the I<--csv> option to get a format which can be easily parsed by other "
3117 "programs.  Other options are similar to the standard L<df(1)> command."
3118 msgstr ""
3119
3120 #. type: textblock
3121 #: ../df/virt-df.pod:45
3122 msgid ""
3123 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3124 "output human-readable:"
3125 msgstr ""
3126
3127 #. type: verbatim
3128 #: ../df/virt-df.pod:48
3129 #, no-wrap
3130 msgid ""
3131 " # virt-df -d F14x64 -h\n"
3132 " Filesystem                       Size     Used  Available  Use%\n"
3133 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3134 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3135 "\n"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../df/virt-df.pod:53
3140 msgid "Show disk usage for a disk image file called C<test.img>:"
3141 msgstr ""
3142
3143 #. type: verbatim
3144 #: ../df/virt-df.pod:55
3145 #, no-wrap
3146 msgid ""
3147 " $ virt-df -a test1.img\n"
3148 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3149 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3150 "\n"
3151 msgstr ""
3152
3153 #. type: verbatim
3154 #: ../df/virt-df.pod:112
3155 #, no-wrap
3156 msgid ""
3157 " virt-df --format=raw -a disk.img\n"
3158 "\n"
3159 msgstr ""
3160
3161 #. type: verbatim
3162 #: ../df/virt-df.pod:116
3163 #, no-wrap
3164 msgid ""
3165 " virt-df --format=raw -a disk.img --format -a another.img\n"
3166 "\n"
3167 msgstr ""
3168
3169 #. type: textblock
3170 #: ../df/virt-df.pod:129
3171 msgid "Print sizes in human-readable format."
3172 msgstr ""
3173
3174 #. type: textblock
3175 #: ../df/virt-df.pod:131
3176 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3177 msgstr ""
3178
3179 #. type: =item
3180 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
3181 msgid "B<-i>"
3182 msgstr ""
3183
3184 #. type: =item
3185 #: ../df/virt-df.pod:135
3186 msgid "B<--inodes>"
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../df/virt-df.pod:137
3191 msgid "Print inodes instead of blocks."
3192 msgstr ""
3193
3194 #. type: =item
3195 #: ../df/virt-df.pod:139
3196 msgid "B<--one-per-guest>"
3197 msgstr ""
3198
3199 #. type: textblock
3200 #: ../df/virt-df.pod:141
3201 msgid ""
3202 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3203 "disks from several guests to a single libguestfs appliance."
3204 msgstr ""
3205
3206 #. type: textblock
3207 #: ../df/virt-df.pod:144
3208 msgid "You might use this option in the following circumstances:"
3209 msgstr ""
3210
3211 #. type: textblock
3212 #: ../df/virt-df.pod:150
3213 msgid ""
3214 "If you think an untrusted guest might actively try to exploit the libguestfs "
3215 "appliance kernel, then this prevents one guest from interfering with the "
3216 "stats printed for another guest."
3217 msgstr ""
3218
3219 #. type: textblock
3220 #: ../df/virt-df.pod:156
3221 msgid ""
3222 "If the kernel has a bug which stops it from accessing a filesystem in one "
3223 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3224 "and report stats for further guests."
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../df/virt-df.pod:165
3229 msgid ""
3230 "Print UUIDs instead of names.  This is useful for following a guest even "
3231 "when the guest is migrated or renamed, or when two guests happen to have the "
3232 "same name."
3233 msgstr ""
3234
3235 #. type: textblock
3236 #: ../df/virt-df.pod:169
3237 msgid ""
3238 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3239 "images, we still print the disk image name even when this option is "
3240 "specified."
3241 msgstr ""
3242
3243 #. type: textblock
3244 #: ../df/virt-df.pod:229
3245 msgid ""
3246 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
3247 "L<http://libguestfs.org/>."
3248 msgstr ""
3249
3250 #. type: textblock
3251 #: ../edit/virt-edit.pod:5
3252 msgid "virt-edit - Edit a file in a virtual machine"
3253 msgstr ""
3254
3255 #. type: verbatim
3256 #: ../edit/virt-edit.pod:9
3257 #, no-wrap
3258 msgid ""
3259 " virt-edit [--options] -d domname file [file ...]\n"
3260 "\n"
3261 msgstr ""
3262
3263 #. type: verbatim
3264 #: ../edit/virt-edit.pod:11
3265 #, no-wrap
3266 msgid ""
3267 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3268 "\n"
3269 msgstr ""
3270
3271 #. type: verbatim
3272 #: ../edit/virt-edit.pod:13
3273 #, no-wrap
3274 msgid ""
3275 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3276 "\n"
3277 msgstr ""
3278
3279 #. type: verbatim
3280 #: ../edit/virt-edit.pod:17
3281 #, no-wrap
3282 msgid ""
3283 " virt-edit domname file\n"
3284 "\n"
3285 msgstr ""
3286
3287 #. type: verbatim
3288 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3289 #, no-wrap
3290 msgid ""
3291 " virt-edit disk.img [disk.img ...] file\n"
3292 "\n"
3293 msgstr ""
3294
3295 #. type: =head1
3296 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23 ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15 ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19 ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3297 msgid "WARNING"
3298 msgstr ""
3299
3300 #. type: textblock
3301 #: ../edit/virt-edit.pod:23
3302 msgid ""
3303 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3304 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3305 "doing this, but doesn't catch all cases."
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../edit/virt-edit.pod:29
3310 msgid ""
3311 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3312 "exists in the named virtual machine (or disk image)."
3313 msgstr ""
3314
3315 #. type: textblock
3316 #: ../edit/virt-edit.pod:32
3317 msgid ""
3318 "Multiple filenames can be given, in which case they are each edited in "
3319 "turn.  Each filename must be a full path, starting at the root directory "
3320 "(starting with '/')."
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../edit/virt-edit.pod:36
3325 msgid "If you want to just view a file, use L<virt-cat(1)>."
3326 msgstr ""
3327
3328 #. type: textblock
3329 #: ../edit/virt-edit.pod:38
3330 msgid ""
3331 "For more complex cases you should look at the L<guestfish(1)> tool (see "
3332 "L</USING GUESTFISH> below)."
3333 msgstr ""
3334
3335 #. type: textblock
3336 #: ../edit/virt-edit.pod:41
3337 msgid ""
3338 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3339 "that and much more."
3340 msgstr ""
3341
3342 #. type: textblock
3343 #: ../edit/virt-edit.pod:46
3344 msgid "Edit the named files interactively:"
3345 msgstr ""
3346
3347 #. type: verbatim
3348 #: ../edit/virt-edit.pod:48
3349 #, no-wrap
3350 msgid ""
3351 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3352 "\n"
3353 msgstr ""
3354
3355 #. type: verbatim
3356 #: ../edit/virt-edit.pod:50
3357 #, no-wrap
3358 msgid ""
3359 " virt-edit -d mydomain /etc/passwd\n"
3360 "\n"
3361 msgstr ""
3362
3363 #. type: textblock
3364 #: ../edit/virt-edit.pod:52
3365 msgid "For Windows guests, some Windows paths are understood:"
3366 msgstr ""
3367
3368 #. type: verbatim
3369 #: ../edit/virt-edit.pod:54
3370 #, no-wrap
3371 msgid ""
3372 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3373 "\n"
3374 msgstr ""
3375
3376 #. type: textblock
3377 #: ../edit/virt-edit.pod:56
3378 msgid ""
3379 "If Perl is installed, you can also edit files non-interactively (see "
3380 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
3381 msgstr ""
3382
3383 #. type: verbatim
3384 #: ../edit/virt-edit.pod:60
3385 #, no-wrap
3386 msgid ""
3387 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3388 "\n"
3389 msgstr ""
3390
3391 #. type: =item
3392 #: ../edit/virt-edit.pod:81
3393 msgid "B<-b> extension"
3394 msgstr ""
3395
3396 #. type: =item
3397 #: ../edit/virt-edit.pod:83
3398 msgid "B<--backup> extension"
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../edit/virt-edit.pod:85
3403 msgid ""
3404 "Create a backup of the original file I<in the guest disk image>.  The backup "
3405 "has the original filename with C<extension> added."
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../edit/virt-edit.pod:88
3410 msgid ""
3411 "Usually the first character of C<extension> would be a dot C<.> so you would "
3412 "write:"
3413 msgstr ""
3414
3415 #. type: verbatim
3416 #: ../edit/virt-edit.pod:91
3417 #, no-wrap
3418 msgid ""
3419 " virt-edit -b .orig [etc]\n"
3420 "\n"
3421 msgstr ""
3422
3423 #. type: textblock
3424 #: ../edit/virt-edit.pod:93
3425 msgid "By default, no backup file is made."
3426 msgstr ""
3427
3428 #. type: =item
3429 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:96 ../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
3430 msgid "B<-c URI>"
3431 msgstr ""
3432
3433 #. type: =item
3434 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:98 ../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
3435 msgid "B<--connect URI>"
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../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
3440 msgid ""
3441 "If you specify guest block devices directly, then libvirt is not used at "
3442 "all."
3443 msgstr ""
3444
3445 #. type: textblock
3446 #: ../edit/virt-edit.pod:114
3447 msgid ""
3448 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3449 "off so you cannot see what you are typing.  If you are not worried about "
3450 "Tempest attacks and there is no one else in the room you can specify this "
3451 "flag to see what you are typing."
3452 msgstr ""
3453
3454 #. type: =item
3455 #: ../edit/virt-edit.pod:119
3456 msgid "B<-e> EXPR"
3457 msgstr ""
3458
3459 #. type: =item
3460 #: ../edit/virt-edit.pod:121
3461 msgid "B<--expr> EXPR"
3462 msgstr ""
3463
3464 #. type: textblock
3465 #: ../edit/virt-edit.pod:123
3466 msgid ""
3467 "Instead of launching the external editor, non-interactively apply the Perl "
3468 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3469 "EDITING> below."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../edit/virt-edit.pod:127
3474 msgid ""
3475 "Be careful to properly quote the expression to prevent it from being altered "
3476 "by the shell."
3477 msgstr ""
3478
3479 #. type: textblock
3480 #: ../edit/virt-edit.pod:130
3481 msgid "Note that this option is only available when Perl 5 is installed."
3482 msgstr ""
3483
3484 #. type: =item
3485 #: ../edit/virt-edit.pod:132
3486 msgid "B<--format> raw|qcow2|..."
3487 msgstr ""
3488
3489 #. type: verbatim
3490 #: ../edit/virt-edit.pod:143
3491 #, no-wrap
3492 msgid ""
3493 " virt-edit --format=raw -a disk.img file\n"
3494 "\n"
3495 msgstr ""
3496
3497 #. type: verbatim
3498 #: ../edit/virt-edit.pod:147
3499 #, no-wrap
3500 msgid ""
3501 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3502 "\n"
3503 msgstr ""
3504
3505 #. type: textblock
3506 #: ../edit/virt-edit.pod:181
3507 msgid "Previous versions of virt-edit allowed you to write either:"
3508 msgstr ""
3509
3510 #. type: verbatim
3511 #: ../edit/virt-edit.pod:187
3512 #, no-wrap
3513 msgid ""
3514 " virt-edit guestname file\n"
3515 "\n"
3516 msgstr ""
3517
3518 #. type: =head1
3519 #: ../edit/virt-edit.pod:195
3520 msgid "NON-INTERACTIVE EDITING"
3521 msgstr ""
3522
3523 #. type: textblock
3524 #: ../edit/virt-edit.pod:197
3525 msgid ""
3526 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3527 "administrator can interactively edit the file."
3528 msgstr ""
3529
3530 #. type: textblock
3531 #: ../edit/virt-edit.pod:200
3532 msgid ""
3533 "There are two ways also to use C<virt-edit> from scripts in order to make "
3534 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3535 "like this, it's less error-prone to write scripts directly using the "
3536 "libguestfs API and Augeas for configuration file editing.)"
3537 msgstr ""
3538
3539 #. type: textblock
3540 #: ../edit/virt-edit.pod:206
3541 msgid ""
3542 "The first method is to temporarily set C<$EDITOR> to any script or program "
3543 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3544 "update C<tmpfile> in place however it likes."
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../edit/virt-edit.pod:210
3549 msgid ""
3550 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3551 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3552 "instances of C<foo> with C<bar> in a file:"
3553 msgstr ""
3554
3555 #. type: verbatim
3556 #: ../edit/virt-edit.pod:214
3557 #, no-wrap
3558 msgid ""
3559 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3560 "\n"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../edit/virt-edit.pod:216
3565 msgid ""
3566 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3567 "For example to delete root's password you could do:"
3568 msgstr ""
3569
3570 #. type: verbatim
3571 #: ../edit/virt-edit.pod:219
3572 #, no-wrap
3573 msgid ""
3574 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3575 "\n"
3576 msgstr ""
3577
3578 #. type: textblock
3579 #: ../edit/virt-edit.pod:221
3580 msgid ""
3581 "What really happens is that the snippet is evaluated as a Perl expression "
3582 "for each line of the file.  The line, including the final C<\\n>, is passed "
3583 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3584 msgstr ""
3585
3586 #. type: textblock
3587 #: ../edit/virt-edit.pod:226
3588 msgid ""
3589 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3590 "C<apache> user account from the password file you can do:"
3591 msgstr ""
3592
3593 #. type: verbatim
3594 #: ../edit/virt-edit.pod:229
3595 #, no-wrap
3596 msgid ""
3597 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3598 "\n"
3599 msgstr ""
3600
3601 #. type: textblock
3602 #: ../edit/virt-edit.pod:231
3603 msgid ""
3604 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3605 "the end of the file is rather difficult this way since there is no concept "
3606 "of \"last line of the file\" - your expression just doesn't get called "
3607 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3608 "want to do this."
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../edit/virt-edit.pod:237
3613 msgid ""
3614 "The variable C<$lineno> contains the current line number.  As is "
3615 "traditional, the first line in the file is number C<1>."
3616 msgstr ""
3617
3618 #. type: textblock
3619 #: ../edit/virt-edit.pod:240
3620 msgid ""
3621 "The return value from the expression is ignored, but the expression may call "
3622 "C<die> in order to abort the whole program, leaving the original file "
3623 "untouched."
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../edit/virt-edit.pod:244
3628 msgid ""
3629 "Remember when matching the end of a line that C<$_> may contain the final "
3630 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3631 "newline then neither of these.  Thus to match or substitute some text at the "
3632 "end of a line, use this regular expression:"
3633 msgstr ""
3634
3635 #. type: verbatim
3636 #: ../edit/virt-edit.pod:249
3637 #, no-wrap
3638 msgid ""
3639 " /some text(\\r?\\n)?$/\n"
3640 "\n"
3641 msgstr ""
3642
3643 #. type: textblock
3644 #: ../edit/virt-edit.pod:251
3645 msgid ""
3646 "Alternately, use the perl C<chomp> function, being careful not to chomp "
3647 "C<$_> itself (since that would remove all newlines from the file):"
3648 msgstr ""
3649
3650 #. type: verbatim
3651 #: ../edit/virt-edit.pod:255
3652 #, no-wrap
3653 msgid ""
3654 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3655 "\n"
3656 msgstr ""
3657
3658 #. type: =head1
3659 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3660 msgid "WINDOWS PATHS"
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../edit/virt-edit.pod:259
3665 msgid ""
3666 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3667 "paths (eg. C<E:\\foo\\bar.txt>)."
3668 msgstr ""
3669
3670 #. type: textblock
3671 #: ../edit/virt-edit.pod:262
3672 msgid "If and only if the guest is running Windows then:"
3673 msgstr ""
3674
3675 #. type: textblock
3676 #: ../edit/virt-edit.pod:268
3677 msgid ""
3678 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3679 "to the correct filesystem."
3680 msgstr ""
3681
3682 #. type: textblock
3683 #: ../edit/virt-edit.pod:273
3684 msgid ""
3685 "Any backslash (C<\\>) characters in the path are replaced with forward "
3686 "slashes so that libguestfs can process it."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../edit/virt-edit.pod:278
3691 msgid ""
3692 "The path is resolved case insensitively to locate the file that should be "
3693 "edited."
3694 msgstr ""
3695
3696 #. type: textblock
3697 #: ../edit/virt-edit.pod:283
3698 msgid "There are some known shortcomings:"
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../edit/virt-edit.pod:289
3703 msgid "Some NTFS symbolic links may not be followed correctly."
3704 msgstr ""
3705
3706 #. type: textblock
3707 #: ../edit/virt-edit.pod:293
3708 msgid "NTFS junction points that cross filesystems are not followed."
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../edit/virt-edit.pod:299
3713 msgid ""
3714 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3715 "C<virt-edit> doesn't work."
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../edit/virt-edit.pod:302
3720 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3721 msgstr ""
3722
3723 #. type: verbatim
3724 #: ../edit/virt-edit.pod:304
3725 #, no-wrap
3726 msgid ""
3727 " guestfish --rw -i -d domname edit /file\n"
3728 "\n"
3729 msgstr ""
3730
3731 #. type: textblock
3732 #: ../edit/virt-edit.pod:306
3733 msgid ""
3734 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3735 "path to the file."
3736 msgstr ""
3737
3738 #. type: textblock
3739 #: ../edit/virt-edit.pod:309
3740 msgid ""
3741 "The command above uses libguestfs's guest inspection feature and so does not "
3742 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3743 "disk images that don't contain guests.  To edit a file on a disk image "
3744 "directly, use:"
3745 msgstr ""
3746
3747 #. type: verbatim
3748 #: ../edit/virt-edit.pod:314
3749 #, no-wrap
3750 msgid ""
3751 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3752 "\n"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../edit/virt-edit.pod:316
3757 msgid ""
3758 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3759 "the disk image to edit, and C</file> is the full path to the file."
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../edit/virt-edit.pod:320
3764 msgid ""
3765 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3766 "C<write> or C<upload> instead:"
3767 msgstr ""
3768
3769 #. type: verbatim
3770 #: ../edit/virt-edit.pod:323
3771 #, no-wrap
3772 msgid ""
3773 " guestfish --rw -i -d domname touch /newfile\n"
3774 "\n"
3775 msgstr ""
3776
3777 #. type: verbatim
3778 #: ../edit/virt-edit.pod:325
3779 #, no-wrap
3780 msgid ""
3781 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3782 "\n"
3783 msgstr ""
3784
3785 #. type: verbatim
3786 #: ../edit/virt-edit.pod:327
3787 #, no-wrap
3788 msgid ""
3789 " guestfish --rw -i -d domname upload localfile /newfile\n"
3790 "\n"
3791 msgstr ""
3792
3793 #. type: =head1
3794 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1118 ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232 ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
3795 msgid "ENVIRONMENT VARIABLES"
3796 msgstr ""
3797
3798 #. type: =item
3799 #: ../edit/virt-edit.pod:333
3800 msgid "C<EDITOR>"
3801 msgstr ""
3802
3803 #. type: textblock
3804 #: ../edit/virt-edit.pod:335
3805 msgid ""
3806 "If set, this string is used as the editor.  It may contain arguments, "
3807 "eg. C<\"emacs -nw\">"
3808 msgstr ""
3809
3810 #. type: textblock
3811 #: ../edit/virt-edit.pod:338
3812 msgid "If not set, C<vi> is used."
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../edit/virt-edit.pod:356
3817 msgid ""
3818 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
3819 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
3820 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3821 msgstr ""
3822
3823 #. type: textblock
3824 #: ../erlang/examples/guestfs-erlang.pod:5
3825 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3826 msgstr ""
3827
3828 #. type: verbatim
3829 #: ../erlang/examples/guestfs-erlang.pod:9
3830 #, no-wrap
3831 msgid ""
3832 " {ok, G} = guestfs:create(),\n"
3833 " ok = guestfs:add_drive_opts(G, Disk,\n"
3834 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3835 " ok = guestfs:launch(G),\n"
3836 " [Device] = guestfs:list_devices(G),\n"
3837 " ok = guestfs:close(G).\n"
3838 "\n"
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../erlang/examples/guestfs-erlang.pod:18
3843 msgid ""
3844 "This manual page documents how to call libguestfs from the Erlang "
3845 "programming language.  This page just documents the differences from the C "
3846 "API and gives some examples.  If you are not familiar with using libguestfs, "
3847 "you also need to read L<guestfs(3)>."
3848 msgstr ""
3849
3850 #. type: =head2
3851 #: ../erlang/examples/guestfs-erlang.pod:23
3852 msgid "OPENING AND CLOSING THE HANDLE"
3853 msgstr ""
3854
3855 #. type: textblock
3856 #: ../erlang/examples/guestfs-erlang.pod:25
3857 msgid ""
3858 "The Erlang bindings are implemented using an external program called "
3859 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
3860 "should specify the full path to the program:"
3861 msgstr ""
3862
3863 #. type: verbatim
3864 #: ../erlang/examples/guestfs-erlang.pod:29
3865 #, no-wrap
3866 msgid ""
3867 " {ok, G} = guestfs:create().\n"
3868 "\n"
3869 msgstr ""
3870
3871 #. type: verbatim
3872 #: ../erlang/examples/guestfs-erlang.pod:31
3873 #, no-wrap
3874 msgid ""
3875 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3876 "\n"
3877 msgstr ""
3878
3879 #. type: textblock
3880 #: ../erlang/examples/guestfs-erlang.pod:33
3881 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../erlang/examples/guestfs-erlang.pod:36
3886 msgid "To close the handle:"
3887 msgstr ""
3888
3889 #. type: verbatim
3890 #: ../erlang/examples/guestfs-erlang.pod:38
3891 #, no-wrap
3892 msgid ""
3893 " ok = guestfs:close(G).\n"
3894 "\n"
3895 msgstr ""
3896
3897 #. type: =head2
3898 #: ../erlang/examples/guestfs-erlang.pod:40
3899 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3900 msgstr ""
3901
3902 #. type: textblock
3903 #: ../erlang/examples/guestfs-erlang.pod:42
3904 msgid ""
3905 "For functions that take optional arguments, the first arguments are the "
3906 "non-optional ones.  The last argument is a list of tuples supplying the "
3907 "remaining optional arguments."
3908 msgstr ""
3909
3910 #. type: verbatim
3911 #: ../erlang/examples/guestfs-erlang.pod:46
3912 #, no-wrap
3913 msgid ""
3914 " ok = guestfs:add_drive_opts(G, Disk,\n"
3915 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3916 "\n"
3917 msgstr ""
3918
3919 #. type: textblock
3920 #: ../erlang/examples/guestfs-erlang.pod:49
3921 msgid "If the last argument would be an empty list, you can also omit it:"
3922 msgstr ""
3923
3924 #. type: verbatim
3925 #: ../erlang/examples/guestfs-erlang.pod:51
3926 #, no-wrap
3927 msgid ""
3928 " ok = guestfs:add_drive_opts(G, Disk).\n"
3929 "\n"
3930 msgstr ""
3931
3932 #. type: =head2
3933 #: ../erlang/examples/guestfs-erlang.pod:53
3934 msgid "RETURN VALUES AND ERRORS"
3935 msgstr ""
3936
3937 #. type: textblock
3938 #: ../erlang/examples/guestfs-erlang.pod:55
3939 msgid ""
3940 "On success, most functions return a C<Result> term (which could be a list, "
3941 "string, tuple etc.).  If there is nothing for the function to return, then "
3942 "the atom C<ok> is returned."
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../erlang/examples/guestfs-erlang.pod:59
3947 msgid "On error, you would see one of the following tuples:"
3948 msgstr ""
3949
3950 #. type: =item
3951 #: ../erlang/examples/guestfs-erlang.pod:63
3952 msgid "C<{error, Msg, Errno}>"
3953 msgstr ""
3954
3955 #. type: textblock
3956 #: ../erlang/examples/guestfs-erlang.pod:65
3957 msgid "This indicates an ordinary error from the function."
3958 msgstr ""
3959
3960 #. type: textblock
3961 #: ../erlang/examples/guestfs-erlang.pod:67
3962 msgid ""
3963 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3964 "(integer)."
3965 msgstr ""
3966
3967 #. type: textblock
3968 #: ../erlang/examples/guestfs-erlang.pod:70
3969 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3970 msgstr ""
3971
3972 #. type: =item
3973 #: ../erlang/examples/guestfs-erlang.pod:72
3974 msgid "C<{unknown, Function}>"
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../erlang/examples/guestfs-erlang.pod:74
3979 msgid ""
3980 "This indicates that the function you called is not known.  Generally this "
3981 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3982 "which you should not do."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../erlang/examples/guestfs-erlang.pod:78
3987 msgid "C<Function> is the name of the unknown function."
3988 msgstr ""
3989
3990 #. type: =item
3991 #: ../erlang/examples/guestfs-erlang.pod:80
3992 msgid "C<{unknownarg, Arg}>"
3993 msgstr ""
3994
3995 #. type: textblock
3996 #: ../erlang/examples/guestfs-erlang.pod:82
3997 msgid ""
3998 "This indicates that you called a function with optional arguments, with an "
3999 "unknown argument name."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../erlang/examples/guestfs-erlang.pod:85
4004 msgid "C<Arg> is the name of the unknown argument."
4005 msgstr ""
4006
4007 #. type: =head1
4008 #: ../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
4009 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4010 msgstr ""
4011
4012 #. type: textblock
4013 #: ../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
4014 msgid "@EXAMPLE1@"
4015 msgstr ""
4016
4017 #. type: =head1
4018 #: ../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
4019 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4020 msgstr ""
4021
4022 #. type: textblock
4023 #: ../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
4024 msgid "@EXAMPLE2@"
4025 msgstr ""
4026
4027 #. type: textblock
4028 #: ../erlang/examples/guestfs-erlang.pod:99
4029 msgid ""
4030 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4031 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4032 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
4033 "L<http://libguestfs.org/>."
4034 msgstr ""
4035
4036 #. type: =head1
4037 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../fish/guestfish.pod:1295 ../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:319 ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52 ../python/examples/guestfs-python.pod:54 ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333 ../test-tool/libguestfs-test-tool.pod:106
4038 msgid "AUTHORS"
4039 msgstr ""
4040
4041 #. type: textblock
4042 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../fish/guestfish.pod:1297 ../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:321 ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54 ../python/examples/guestfs-python.pod:56 ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335 ../test-tool/libguestfs-test-tool.pod:108
4043 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4044 msgstr ""
4045
4046 #. type: textblock
4047 #: ../erlang/examples/guestfs-erlang.pod:116 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4048 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4049 msgstr ""
4050
4051 #. type: textblock
4052 #: ../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
4053 msgid ""
4054 "The examples in this manual page may be freely copied, modified and "
4055 "distributed without any restrictions."
4056 msgstr ""
4057
4058 #. type: textblock
4059 #: ../erlang/examples/guestfs-erlang.pod:121 ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408 ../java/examples/guestfs-java.pod:69 ../ocaml/examples/guestfs-ocaml.pod:102 ../perl/examples/guestfs-perl.pod:63 ../python/examples/guestfs-python.pod:65 ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4060 msgid ""
4061 "This library is free software; you can redistribute it and/or modify it "
4062 "under the terms of the GNU Lesser General Public License as published by the "
4063 "Free Software Foundation; either version 2 of the License, or (at your "
4064 "option) any later version."
4065 msgstr ""
4066
4067 #. type: textblock
4068 #: ../erlang/examples/guestfs-erlang.pod:126 ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413 ../java/examples/guestfs-java.pod:74 ../ocaml/examples/guestfs-ocaml.pod:107 ../perl/examples/guestfs-perl.pod:68 ../python/examples/guestfs-python.pod:70 ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4069 msgid ""
4070 "This library is distributed in the hope that it will be useful, but WITHOUT "
4071 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4072 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4073 "for more details."
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../erlang/examples/guestfs-erlang.pod:131 ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418 ../java/examples/guestfs-java.pod:79 ../ocaml/examples/guestfs-ocaml.pod:112 ../perl/examples/guestfs-perl.pod:73 ../python/examples/guestfs-python.pod:75 ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4078 msgid ""
4079 "You should have received a copy of the GNU Lesser General Public License "
4080 "along with this library; if not, write to the Free Software Foundation, "
4081 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../examples/guestfs-examples.pod:5
4086 msgid "guestfs-examples - Examples of using libguestfs from C"
4087 msgstr ""
4088
4089 #. type: verbatim
4090 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4091 #, no-wrap
4092 msgid ""
4093 " #include <guestfs.h>\n"
4094 " \n"
4095 msgstr ""
4096
4097 #. type: verbatim
4098 #: ../examples/guestfs-examples.pod:11
4099 #, no-wrap
4100 msgid ""
4101 " guestfs_h *g = guestfs_create ();\n"
4102 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4103 " guestfs_launch (g);\n"
4104 "\n"
4105 msgstr ""
4106
4107 #. type: verbatim
4108 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4109 #, no-wrap
4110 msgid ""
4111 " cc prog.c -o prog -lguestfs\n"
4112 "or:\n"
4113 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4114 "\n"
4115 msgstr ""
4116
4117 #. type: textblock
4118 #: ../examples/guestfs-examples.pod:21
4119 msgid ""
4120 "This manual page contains examples of calling libguestfs from the C "
4121 "programming language.  If you are not familiar with using libguestfs, you "
4122 "also need to read L<guestfs(3)>."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../examples/guestfs-examples.pod:35
4127 msgid ""
4128 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
4129 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
4130 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4131 msgstr ""
4132
4133 #. type: textblock
4134 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
4135 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4136 msgstr ""
4137
4138 #. type: =end
4139 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4140 msgid "comment"
4141 msgstr ""
4142
4143 #. type: textblock
4144 #: ../examples/guestfs-recipes.pod:5
4145 msgid ""
4146 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4147 "here.  The only way which works for both sorts of output is to just write "
4148 "the URL directly.  Do NOT use L<...> for URLs."
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../examples/guestfs-recipes.pod:9
4153 msgid ""
4154 "We break with tradition here and don't use ALL CAPS for the section "
4155 "headings, as this makes them much easier to read."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../examples/guestfs-recipes.pod:16
4160 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../examples/guestfs-recipes.pod:20
4165 msgid ""
4166 "This page contains recipes for and links to things you can do using "
4167 "libguestfs, L<guestfish(1)> and the virt tools."
4168 msgstr ""
4169
4170 #. type: =head1
4171 #: ../examples/guestfs-recipes.pod:23
4172 msgid "Audit a virtual machine for setuid files"
4173 msgstr ""
4174
4175 #. type: textblock
4176 #: ../examples/guestfs-recipes.pod:25
4177 msgid ""
4178 "The link below contains a small program which can be used to audit a Linux "
4179 "virtual machine to see what setuid and setgid files it contains."
4180 msgstr ""
4181
4182 #. type: textblock
4183 #: ../examples/guestfs-recipes.pod:28
4184 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
4185 msgstr ""
4186
4187 #. type: =head1
4188 #: ../examples/guestfs-recipes.pod:30
4189 msgid "Change the background image in a Windows XP VM"
4190 msgstr ""
4191
4192 #. type: textblock
4193 #: ../examples/guestfs-recipes.pod:32
4194 msgid ""
4195 "The links below explain how to use L<guestfish(1)> to change the background "
4196 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4197 "be substantially different for each version of Windows."
4198 msgstr ""
4199
4200 #. type: textblock
4201 #: ../examples/guestfs-recipes.pod:37
4202 msgid ""
4203 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
4204 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4205 msgstr ""
4206
4207 #. type: =head1
4208 #: ../examples/guestfs-recipes.pod:40
4209 msgid "Cloning a virtual machine (Linux)"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../examples/guestfs-recipes.pod:42
4214 msgid ""
4215 "The guestfish technique described in the link below works well for most "
4216 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4217 "slightly."
4218 msgstr ""
4219
4220 #. type: textblock
4221 #: ../examples/guestfs-recipes.pod:46
4222 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
4223 msgstr ""
4224
4225 #. type: textblock
4226 #: ../examples/guestfs-recipes.pod:48
4227 msgid ""
4228 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4229 "discussion."
4230 msgstr ""
4231
4232 #. type: textblock
4233 #: ../examples/guestfs-recipes.pod:51
4234 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4235 msgstr ""
4236
4237 #. type: =head1
4238 #: ../examples/guestfs-recipes.pod:53
4239 msgid "Cloning a virtual machine (Windows)"
4240 msgstr ""
4241
4242 #. type: textblock
4243 #: ../examples/guestfs-recipes.pod:55
4244 msgid ""
4245 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4246 "straightforward.  Currently there is code in the Aeolus Oz project which "
4247 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4248 "we may add sysprepping ability."
4249 msgstr ""
4250
4251 #. type: textblock
4252 #: ../examples/guestfs-recipes.pod:60
4253 msgid ""
4254 "https://github.com/clalancette/oz "
4255 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4256 msgstr ""
4257
4258 #. type: =head1
4259 #: ../examples/guestfs-recipes.pod:63
4260 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4261 msgstr ""
4262
4263 #. type: textblock
4264 #: ../examples/guestfs-recipes.pod:65
4265 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4266 msgstr ""
4267
4268 #. type: verbatim
4269 #: ../examples/guestfs-recipes.pod:67
4270 #, no-wrap
4271 msgid ""
4272 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4273 "\n"
4274 msgstr ""
4275
4276 #. type: textblock
4277 #: ../examples/guestfs-recipes.pod:69
4278 msgid "To export just a subdirectory, eg. C</files>, do:"
4279 msgstr ""
4280
4281 #. type: verbatim
4282 #: ../examples/guestfs-recipes.pod:71
4283 #, no-wrap
4284 msgid ""
4285 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4286 "\n"
4287 msgstr ""
4288
4289 #. type: =head1
4290 #: ../examples/guestfs-recipes.pod:73
4291 msgid "Create empty disk images"
4292 msgstr ""
4293
4294 #. type: textblock
4295 #: ../examples/guestfs-recipes.pod:75
4296 msgid ""
4297 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4298 "The useful guide below explains the options available."
4299 msgstr ""
4300
4301 #. type: textblock
4302 #: ../examples/guestfs-recipes.pod:78
4303 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
4304 msgstr ""
4305
4306 #. type: =head1
4307 #: ../examples/guestfs-recipes.pod:80
4308 msgid "Dump raw filesystem content from inside a disk image or VM"
4309 msgstr ""
4310
4311 #. type: textblock
4312 #: ../examples/guestfs-recipes.pod:82
4313 msgid ""
4314 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4315 "filesystem content from any filesystem in a disk image or a VM (even one "
4316 "which is encrypted or buried inside an LV):"
4317 msgstr ""
4318
4319 #. type: verbatim
4320 #: ../examples/guestfs-recipes.pod:86
4321 #, no-wrap
4322 msgid ""
4323 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4324 "\n"
4325 msgstr ""
4326
4327 #. type: verbatim
4328 #: ../examples/guestfs-recipes.pod:88
4329 #, no-wrap
4330 msgid ""
4331 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4332 "\n"
4333 msgstr ""
4334
4335 #. type: textblock
4336 #: ../examples/guestfs-recipes.pod:90
4337 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4338 msgstr ""
4339
4340 #. type: =head1
4341 #: ../examples/guestfs-recipes.pod:92
4342 msgid "Edit grub configuration in a VM"
4343 msgstr ""
4344
4345 #. type: textblock
4346 #: ../examples/guestfs-recipes.pod:94
4347 msgid "You can use this to:"
4348 msgstr ""
4349
4350 #. type: textblock
4351 #: ../examples/guestfs-recipes.pod:100
4352 msgid "Fix a virtual machine that does not boot."
4353 msgstr ""
4354
4355 #. type: textblock
4356 #: ../examples/guestfs-recipes.pod:104
4357 msgid "Change which kernel is used to boot the VM."
4358 msgstr ""
4359
4360 #. type: textblock
4361 #: ../examples/guestfs-recipes.pod:108
4362 msgid "Change kernel command line options."
4363 msgstr ""
4364
4365 #. type: textblock
4366 #: ../examples/guestfs-recipes.pod:112
4367 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4368 msgstr ""
4369
4370 #. type: verbatim
4371 #: ../examples/guestfs-recipes.pod:114
4372 #, no-wrap
4373 msgid ""
4374 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4375 "\n"
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../examples/guestfs-recipes.pod:116
4380 msgid ""
4381 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4382 "this:"
4383 msgstr ""
4384
4385 #. type: verbatim
4386 #: ../examples/guestfs-recipes.pod:119
4387 #, no-wrap
4388 msgid ""
4389 " virt-rescue -d BrokenGuest\n"
4390 "\n"
4391 msgstr ""
4392
4393 #. type: =head1
4394 #: ../examples/guestfs-recipes.pod:121
4395 msgid "Export any directory from a VM"
4396 msgstr ""
4397
4398 #. type: textblock
4399 #: ../examples/guestfs-recipes.pod:123
4400 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4401 msgstr ""
4402
4403 #. type: verbatim
4404 #: ../examples/guestfs-recipes.pod:126
4405 #, no-wrap
4406 msgid ""
4407 " virt-copy-out -d Guest /home .\n"
4408 "\n"
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592 ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457 ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670 ../tools/virt-win-reg.pl:706
4413 msgid "Notes:"
4414 msgstr ""
4415
4416 #. type: textblock
4417 #: ../examples/guestfs-recipes.pod:134
4418 msgid ""
4419 "The final dot of the command is not a printing error.  It means we want to "
4420 "copy out to the current directory."
4421 msgstr ""
4422
4423 #. type: textblock
4424 #: ../examples/guestfs-recipes.pod:139
4425 msgid "This creates a directory called C<home> under the current directory."
4426 msgstr ""
4427
4428 #. type: textblock
4429 #: ../examples/guestfs-recipes.pod:143
4430 msgid ""
4431 "If the guest is a Windows guest then you can use drive letters and "
4432 "backslashes, but you must prefix the path with C<win:> and quote it to "
4433 "protect it from the shell, like this:"
4434 msgstr ""
4435
4436 #. type: verbatim
4437 #: ../examples/guestfs-recipes.pod:147
4438 #, no-wrap
4439 msgid ""
4440 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4441 "\n"
4442 msgstr ""
4443
4444 #. type: textblock
4445 #: ../examples/guestfs-recipes.pod:149
4446 msgid "To get the output as a compressed tarball, do:"
4447 msgstr ""
4448
4449 #. type: verbatim
4450 #: ../examples/guestfs-recipes.pod:151
4451 #, no-wrap
4452 msgid ""
4453 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4454 "\n"
4455 msgstr ""
4456
4457 #. type: textblock
4458 #: ../examples/guestfs-recipes.pod:153
4459 msgid ""
4460 "Although it sounds tempting, this is usually not a reliable way to get a "
4461 "backup from a running guest.  See the entry in the FAQ: "
4462 "http://libguestfs.org/FAQ.html#backup"
4463 msgstr ""
4464
4465 #. type: =head1
4466 #: ../examples/guestfs-recipes.pod:157
4467 msgid "Find out which user is using the most space"
4468 msgstr ""
4469
4470 #. type: textblock
4471 #: ../examples/guestfs-recipes.pod:159
4472 msgid ""
4473 "This simple script examines a Linux guest to find out which user is using "
4474 "the most space in their home directory:"
4475 msgstr ""
4476
4477 #. type: verbatim
4478 #: ../examples/guestfs-recipes.pod:162
4479 #, no-wrap
4480 msgid ""
4481 " #!/bin/sh -\n"
4482 " \n"
4483 msgstr ""
4484
4485 #. type: verbatim
4486 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
4487 #, no-wrap
4488 msgid ""
4489 " set -e\n"
4490 " \n"
4491 msgstr ""
4492
4493 #. type: verbatim
4494 #: ../examples/guestfs-recipes.pod:166
4495 #, no-wrap
4496 msgid ""
4497 " vm=\"$1\"\n"
4498 " dir=/home\n"
4499 " \n"
4500 msgstr ""
4501
4502 #. type: verbatim
4503 #: ../examples/guestfs-recipes.pod:169
4504 #, no-wrap
4505 msgid ""
4506 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4507 " \n"
4508 msgstr ""
4509
4510 #. type: verbatim
4511 #: ../examples/guestfs-recipes.pod:171
4512 #, no-wrap
4513 msgid ""
4514 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4515 "     echo -n \"$dir/$d\"\n"
4516 "     echo -ne '\\t'\n"
4517 "     guestfish --remote du \"$dir/$d\";\n"
4518 " done | sort -nr -k 2\n"
4519 " \n"
4520 msgstr ""
4521
4522 #. type: verbatim
4523 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4524 #, no-wrap
4525 msgid ""
4526 " guestfish --remote exit\n"
4527 "\n"
4528 msgstr ""
4529
4530 #. type: =head1
4531 #: ../examples/guestfs-recipes.pod:179
4532 msgid "Get DHCP address from a VM"
4533 msgstr ""
4534
4535 #. type: textblock
4536 #: ../examples/guestfs-recipes.pod:181
4537 msgid ""
4538 "The link below explains the many different possible techniques for getting "
4539 "the last assigned DHCP address of a virtual machine."
4540 msgstr ""
4541
4542 #. type: textblock
4543 #: ../examples/guestfs-recipes.pod:184
4544 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../examples/guestfs-recipes.pod:186
4549 msgid ""
4550 "In the libguestfs source examples directory you will find the latest version "
4551 "of the C<virt-dhcp-address.c> program."
4552 msgstr ""
4553
4554 #. type: =head1
4555 #: ../examples/guestfs-recipes.pod:189
4556 msgid "Get the operating system product name string"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../examples/guestfs-recipes.pod:191
4561 msgid "Save the following script into a file called C<product-name.sh>:"
4562 msgstr ""
4563
4564 #. type: verbatim
4565 #: ../examples/guestfs-recipes.pod:193
4566 #, no-wrap
4567 msgid ""
4568 " #!/bin/sh -\n"
4569 " set -e\n"
4570 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4571 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4572 " guestfish --remote inspect-get-product-name \"$root\"\n"
4573 " guestfish --remote exit\n"
4574 "\n"
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../examples/guestfs-recipes.pod:200
4579 msgid "Make the script executable and run it on a named guest:"
4580 msgstr ""
4581
4582 #. type: verbatim
4583 #: ../examples/guestfs-recipes.pod:202
4584 #, no-wrap
4585 msgid ""
4586 " # product-name.sh RHEL60x64\n"
4587 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4588 "\n"
4589 msgstr ""
4590
4591 #. type: textblock
4592 #: ../examples/guestfs-recipes.pod:205
4593 msgid ""
4594 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4595 "C<xpath> command line tool or from your favourite programming language:"
4596 msgstr ""
4597
4598 #. type: verbatim
4599 #: ../examples/guestfs-recipes.pod:209
4600 #, no-wrap
4601 msgid ""
4602 " # virt-inspector RHEL60x64 > xml\n"
4603 " # xpath '//product_name' < xml\n"
4604 " Found 1 nodes:\n"
4605 " -- NODE --\n"
4606 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
4607 "(Santiago)</product_name>\n"
4608 "\n"
4609 msgstr ""
4610
4611 #. type: =head1
4612 #: ../examples/guestfs-recipes.pod:215
4613 msgid "Get the default boot kernel for a Linux VM"
4614 msgstr ""
4615
4616 #. type: textblock
4617 #: ../examples/guestfs-recipes.pod:217
4618 msgid ""
4619 "The link below contains a program to print the default boot kernel for a "
4620 "Linux VM."
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../examples/guestfs-recipes.pod:220
4625 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
4626 msgstr ""
4627
4628 #. type: textblock
4629 #: ../examples/guestfs-recipes.pod:222
4630 msgid ""
4631 "It uses Augeas, and the technique is generally applicable for many different "
4632 "tasks, such as:"
4633 msgstr ""
4634
4635 #. type: textblock
4636 #: ../examples/guestfs-recipes.pod:229
4637 msgid "listing the user accounts in the guest"
4638 msgstr ""
4639
4640 #. type: textblock
4641 #: ../examples/guestfs-recipes.pod:233
4642 msgid "what repositories is it configured to use"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../examples/guestfs-recipes.pod:237
4647 msgid "what NTP servers does it connect to"
4648 msgstr ""
4649
4650 #. type: textblock
4651 #: ../examples/guestfs-recipes.pod:241
4652 msgid "what were the boot messages last time it booted"
4653 msgstr ""
4654
4655 #. type: textblock
4656 #: ../examples/guestfs-recipes.pod:245
4657 msgid "listing who was logged in recently"
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../examples/guestfs-recipes.pod:249
4662 msgid "http://augeas.net/"
4663 msgstr ""
4664
4665 #. type: =head1
4666 #: ../examples/guestfs-recipes.pod:251
4667 msgid "Install RPMs in a guest"
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../examples/guestfs-recipes.pod:253
4672 msgid ""
4673 "The link below contains a method to install RPMs in a guest.  In fact the "
4674 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4675 "installs them next time the guest is booted.  You could use this technique "
4676 "to install vital security updates in an offline guest."
4677 msgstr ""
4678
4679 #. type: textblock
4680 #: ../examples/guestfs-recipes.pod:259
4681 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4682 msgstr ""
4683
4684 #. type: =head1
4685 #: ../examples/guestfs-recipes.pod:261
4686 msgid "List applications installed in a VM"
4687 msgstr ""
4688
4689 #. type: textblock
4690 #: ../examples/guestfs-recipes.pod:263
4691 msgid "Save the following to a file C<list-apps.sh>:"
4692 msgstr ""
4693
4694 #. type: verbatim
4695 #: ../examples/guestfs-recipes.pod:265
4696 #, no-wrap
4697 msgid ""
4698 " #!/bin/sh -\n"
4699 " set -e\n"
4700 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4701 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4702 " guestfish --remote inspect-list-applications \"$root\"\n"
4703 " guestfish --remote exit\n"
4704 "\n"
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../examples/guestfs-recipes.pod:272
4709 msgid ""
4710 "Make the file executable and then you can run it on any named virtual "
4711 "machine:"
4712 msgstr ""
4713
4714 #. type: verbatim
4715 #: ../examples/guestfs-recipes.pod:275
4716 #, no-wrap
4717 msgid ""
4718 " # list-apps.sh WinGuest\n"
4719 " [0] = {\n"
4720 "   app_name: Mozilla Firefox (3.6.12)\n"
4721 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4722 "   app_epoch: 0\n"
4723 "   app_version: 3.6.12 (en-GB)\n"
4724 "   app_release:\n"
4725 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4726 "   app_trans_path:\n"
4727 "   app_publisher: Mozilla\n"
4728 "   app_url: http://www.mozilla.com/en-GB/\n"
4729 "   app_source_package:\n"
4730 "   app_summary:\n"
4731 "   app_description: Mozilla Firefox\n"
4732 " }\n"
4733 " [1] = {\n"
4734 "   app_name: VLC media player\n"
4735 "   app_display_name: VLC media player 1.1.5\n"
4736 "   app_epoch: 0\n"
4737 "   app_version: 1.1.5\n"
4738 "   app_release:\n"
4739 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4740 "   app_trans_path:\n"
4741 "   app_publisher: VideoLAN\n"
4742 "   app_url: http://www.videolan.org/\n"
4743 "   app_source_package:\n"
4744 "   app_summary:\n"
4745 "   app_description:\n"
4746 " }\n"
4747 "\n"
4748 msgstr ""
4749
4750 #. type: textblock
4751 #: ../examples/guestfs-recipes.pod:305
4752 msgid ""
4753 "If you want to run the script on disk images (instead of libvirt virtual "
4754 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
4755 "L<virt-inspector(1)>."
4756 msgstr ""
4757
4758 #. type: =head1
4759 #: ../examples/guestfs-recipes.pod:309
4760 msgid "List files and directories in a VM"
4761 msgstr ""
4762
4763 #. type: textblock
4764 #: ../examples/guestfs-recipes.pod:311
4765 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4766 msgstr ""
4767
4768 #. type: verbatim
4769 #: ../examples/guestfs-recipes.pod:313
4770 #, no-wrap
4771 msgid ""
4772 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4773 "\n"
4774 msgstr ""
4775
4776 #. type: =head1
4777 #: ../examples/guestfs-recipes.pod:315
4778 msgid "List services in a Windows VM"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../examples/guestfs-recipes.pod:317
4783 msgid ""
4784 "The link below contains a script that can be used to list out the services "
4785 "from a Windows VM, and whether those services run at boot time or are loaded "
4786 "on demand."
4787 msgstr ""
4788
4789 #. type: textblock
4790 #: ../examples/guestfs-recipes.pod:321
4791 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
4792 msgstr ""
4793
4794 #. type: =head1
4795 #: ../examples/guestfs-recipes.pod:323
4796 msgid "Make a disk image sparse"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../examples/guestfs-recipes.pod:325
4801 msgid ""
4802 "The link below contains some guides for making a disk image sparse (or "
4803 "reintroducing sparseness)."
4804 msgstr ""
4805
4806 #. type: textblock
4807 #: ../examples/guestfs-recipes.pod:328
4808 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4809 msgstr ""
4810
4811 #. type: =head1
4812 #: ../examples/guestfs-recipes.pod:330
4813 msgid "Monitor disk usage over time"
4814 msgstr ""
4815
4816 #. type: textblock
4817 #: ../examples/guestfs-recipes.pod:332
4818 msgid ""
4819 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4820 "The link below contains a guide."
4821 msgstr ""
4822
4823 #. type: textblock
4824 #: ../examples/guestfs-recipes.pod:335
4825 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4826 msgstr ""
4827
4828 #. type: =head1
4829 #: ../examples/guestfs-recipes.pod:337
4830 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4831 msgstr ""
4832
4833 #. type: textblock
4834 #: ../examples/guestfs-recipes.pod:339
4835 msgid ""
4836 "L<guestfish(1)> plus the tools described in the link below can be used to "
4837 "read out the Windows Event Log from any virtual machine running Windows "
4838 "Vista or a later version."
4839 msgstr ""
4840
4841 #. type: textblock
4842 #: ../examples/guestfs-recipes.pod:343
4843 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
4844 msgstr ""
4845
4846 #. type: =head1
4847 #: ../examples/guestfs-recipes.pod:345
4848 msgid "Remove root password (Linux)"
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../examples/guestfs-recipes.pod:347
4853 msgid ""
4854 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4855 "files.  One use is to remove the root password from a Linux guest:"
4856 msgstr ""
4857
4858 #. type: verbatim
4859 #: ../examples/guestfs-recipes.pod:350
4860 #, no-wrap
4861 msgid ""
4862 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4863 "\n"
4864 msgstr ""
4865
4866 #. type: =head1
4867 #: ../examples/guestfs-recipes.pod:352
4868 msgid "Remove Administrator password (Windows)"
4869 msgstr ""
4870
4871 #. type: textblock
4872 #: ../examples/guestfs-recipes.pod:354
4873 msgid ""
4874 "The link below contains one technique for removing the Administrator "
4875 "password from a Windows VM, or to be more precise, it gives you a command "
4876 "prompt the next time you log in which you can use to bypass any security:"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../examples/guestfs-recipes.pod:359
4881 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
4882 msgstr ""
4883
4884 #. type: =head1
4885 #: ../examples/guestfs-recipes.pod:361
4886 msgid "Unpack a live CD"
4887 msgstr ""
4888
4889 #. type: textblock
4890 #: ../examples/guestfs-recipes.pod:363
4891 msgid ""
4892 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4893 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4894 "layers, as outlined in the guide below."
4895 msgstr ""
4896
4897 #. type: textblock
4898 #: ../examples/guestfs-recipes.pod:367
4899 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
4900 msgstr ""
4901
4902 #. type: =head1
4903 #: ../examples/guestfs-recipes.pod:369
4904 msgid "Uploading and downloading files"
4905 msgstr ""
4906
4907 #. type: textblock
4908 #: ../examples/guestfs-recipes.pod:371
4909 msgid ""
4910 "The link below contains general tips on uploading (copying in)  and "
4911 "downloading (copying out) files from VMs."
4912 msgstr ""
4913
4914 #. type: textblock
4915 #: ../examples/guestfs-recipes.pod:374
4916 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4917 msgstr ""
4918
4919 #. type: =head1
4920 #: ../examples/guestfs-recipes.pod:376
4921 msgid "Use libguestfs tools on VMware ESX guests"
4922 msgstr ""
4923
4924 #. type: textblock
4925 #: ../examples/guestfs-recipes.pod:378
4926 msgid ""
4927 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4928 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../examples/guestfs-recipes.pod:382
4933 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../examples/guestfs-recipes.pod:386
4938 msgid ""
4939 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
4940 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
4941 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
4942 "L<http://libguestfs.org/>."
4943 msgstr ""
4944
4945 #. type: textblock
4946 #: ../examples/guestfs-recipes.pod:403
4947 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4948 msgstr ""
4949
4950 #. type: =head2
4951 #: ../fish/guestfish-actions.pod:1
4952 msgid "add-cdrom"
4953 msgstr ""
4954
4955 #. type: verbatim
4956 #: ../fish/guestfish-actions.pod:3
4957 #, no-wrap
4958 msgid ""
4959 " add-cdrom filename\n"
4960 "\n"
4961 msgstr ""
4962
4963 #. type: textblock
4964 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4965 msgid "This function adds a virtual CD-ROM disk image to the guest."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4970 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:15
4975 msgid ""
4976 "This call checks for the existence of C<filename>.  This stops you from "
4977 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4978 "and C<http:> URLs.  To specify those, use the general L</config> call "
4979 "instead."
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../fish/guestfish-actions.pod:22
4984 msgid ""
4985 "If you just want to add an ISO file (often you use this as an efficient way "
4986 "to transfer large files into the guest), then you should probably use "
4987 "L</add-drive-ro> instead."
4988 msgstr ""
4989
4990 #. type: textblock
4991 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
4992 msgid ""
4993 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4994 "instead."
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166 ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026 ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400 ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468 ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429 ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474 ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161 ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393 ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719 ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816 ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857 ../src/guestfs-actions.pod:8040
4999 msgid ""
5000 "Deprecated functions will not be removed from the API, but the fact that "
5001 "they are deprecated indicates that there are problems with correct use of "
5002 "these functions."
5003 msgstr ""
5004
5005 #. type: =head2
5006 #: ../fish/guestfish-actions.pod:35
5007 msgid "add-domain"
5008 msgstr ""
5009
5010 #. type: =head2
5011 #: ../fish/guestfish-actions.pod:37
5012 msgid "domain"
5013 msgstr ""
5014
5015 #. type: verbatim
5016 #: ../fish/guestfish-actions.pod:39
5017 #, no-wrap
5018 msgid ""
5019 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
5020 "[allowuuid:..]\n"
5021 "\n"
5022 msgstr ""
5023
5024 #. type: textblock
5025 #: ../fish/guestfish-actions.pod:41
5026 msgid ""
5027 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5028 "It works by connecting to libvirt, requesting the domain and domain XML from "
5029 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5030 msgstr ""
5031
5032 #. type: textblock
5033 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5034 msgid ""
5035 "The number of disks added is returned.  This operation is atomic: if an "
5036 "error is returned, then no disks are added."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5041 msgid ""
5042 "This function does some minimal checks to make sure the libvirt domain is "
5043 "not running (unless C<readonly> is true).  In a future version we will try "
5044 "to acquire the libvirt lock on each disk."
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5049 msgid ""
5050 "Disks must be accessible locally.  This often means that adding disks from a "
5051 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5052 "unless those disks are accessible via the same device path locally too."
5053 msgstr ""
5054
5055 #. type: textblock
5056 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5057 msgid ""
5058 "The optional C<libvirturi> parameter sets the libvirt URI (see "
5059 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
5060 "default libvirt URI (or one set through an environment variable, see the "
5061 "libvirt documentation for full details)."
5062 msgstr ""
5063
5064 #. type: textblock
5065 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5066 msgid ""
5067 "The optional C<live> flag controls whether this call will try to connect to "
5068 "a running virtual machine C<guestfsd> process if it sees a suitable "
5069 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5070 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5071 "DAEMONS> for more information."
5072 msgstr ""
5073
5074 #. type: textblock
5075 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5076 msgid ""
5077 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5078 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5079 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5080 "as usual."
5081 msgstr ""
5082
5083 #. type: textblock
5084 #: ../fish/guestfish-actions.pod:76
5085 msgid ""
5086 "The other optional parameters are passed directly through to "
5087 "L</add-drive-opts>."
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784 ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040 ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369 ../fish/guestfish-actions.pod:3504
5092 msgid ""
5093 "This command has one or more optional arguments.  See L</OPTIONAL "
5094 "ARGUMENTS>."
5095 msgstr ""
5096
5097 #. type: =head2
5098 #: ../fish/guestfish-actions.pod:81
5099 msgid "add-drive"
5100 msgstr ""
5101
5102 #. type: verbatim
5103 #: ../fish/guestfish-actions.pod:83
5104 #, no-wrap
5105 msgid ""
5106 " add-drive filename\n"
5107 "\n"
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../fish/guestfish-actions.pod:85
5112 msgid ""
5113 "This function is the equivalent of calling L</add-drive-opts> with no "
5114 "optional parameters, so the disk is added writable, with the format being "
5115 "detected automatically."
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../fish/guestfish-actions.pod:89
5120 msgid ""
5121 "Automatic detection of the format opens you up to a potential security hole "
5122 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5123 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5124 "you should think about replacing calls to this function with calls to "
5125 "L</add-drive-opts>, and specifying the format."
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../fish/guestfish-actions.pod:96
5130 msgid "add-drive-opts"
5131 msgstr ""
5132
5133 #. type: =head2
5134 #: ../fish/guestfish-actions.pod:98
5135 msgid "add"
5136 msgstr ""
5137
5138 #. type: verbatim
5139 #: ../fish/guestfish-actions.pod:100
5140 #, no-wrap
5141 msgid ""
5142 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
5143 "\n"
5144 msgstr ""
5145
5146 #. type: textblock
5147 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
5148 msgid ""
5149 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5150 "The first time you call this function, the disk appears as C</dev/sda>, the "
5151 "second time as C</dev/sdb>, and so on."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
5156 msgid ""
5157 "You don't necessarily need to be root when using libguestfs.  However you "
5158 "obviously do need sufficient permissions to access the filename for whatever "
5159 "operations you want to perform (ie. read access if you just want to read the "
5160 "image or write access if you want to modify the image)."
5161 msgstr ""
5162
5163 #. type: textblock
5164 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
5165 msgid "This call checks that C<filename> exists."
5166 msgstr ""
5167
5168 #. type: textblock
5169 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5170 msgid "The optional arguments are:"
5171 msgstr ""
5172
5173 #. type: =item
5174 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5175 msgid "C<readonly>"
5176 msgstr ""
5177
5178 #. type: textblock
5179 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5180 msgid ""
5181 "If true then the image is treated as read-only.  Writes are still allowed, "
5182 "but they are stored in a temporary snapshot overlay which is discarded at "
5183 "the end.  The disk that you add is not modified."
5184 msgstr ""
5185
5186 #. type: =item
5187 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5188 msgid "C<format>"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../fish/guestfish-actions.pod:127
5193 msgid ""
5194 "This forces the image format.  If you omit this (or use L</add-drive> or "
5195 "L</add-drive-ro>) then the format is automatically detected.  Possible "
5196 "formats include C<raw> and C<qcow2>."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5201 msgid ""
5202 "Automatic detection of the format opens you up to a potential security hole "
5203 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5204 "RHBZ#642934.  Specifying the format closes this security hole."
5205 msgstr ""
5206
5207 #. type: =item
5208 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5209 msgid "C<iface>"
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../fish/guestfish-actions.pod:138
5214 msgid ""
5215 "This rarely-used option lets you emulate the behaviour of the deprecated "
5216 "L</add-drive-with-if> call (q.v.)"
5217 msgstr ""
5218
5219 #. type: =head2
5220 #: ../fish/guestfish-actions.pod:145
5221 msgid "add-drive-ro"
5222 msgstr ""
5223
5224 #. type: =head2
5225 #: ../fish/guestfish-actions.pod:147
5226 msgid "add-ro"
5227 msgstr ""
5228
5229 #. type: verbatim
5230 #: ../fish/guestfish-actions.pod:149
5231 #, no-wrap
5232 msgid ""
5233 " add-drive-ro filename\n"
5234 "\n"
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../fish/guestfish-actions.pod:151
5239 msgid ""
5240 "This function is the equivalent of calling L</add-drive-opts> with the "
5241 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5242 "is added read-only, with the format being detected automatically."
5243 msgstr ""
5244
5245 #. type: =head2
5246 #: ../fish/guestfish-actions.pod:156
5247 msgid "add-drive-ro-with-if"
5248 msgstr ""
5249
5250 #. type: verbatim
5251 #: ../fish/guestfish-actions.pod:158
5252 #, no-wrap
5253 msgid ""
5254 " add-drive-ro-with-if filename iface\n"
5255 "\n"
5256 msgstr ""
5257
5258 #. type: textblock
5259 #: ../fish/guestfish-actions.pod:160
5260 msgid ""
5261 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5262 "interface emulation to use at run time."
5263 msgstr ""
5264
5265 #. type: =head2
5266 #: ../fish/guestfish-actions.pod:170
5267 msgid "add-drive-with-if"
5268 msgstr ""
5269
5270 #. type: verbatim
5271 #: ../fish/guestfish-actions.pod:172
5272 #, no-wrap
5273 msgid ""
5274 " add-drive-with-if filename iface\n"
5275 "\n"
5276 msgstr ""
5277
5278 #. type: textblock
5279 #: ../fish/guestfish-actions.pod:174
5280 msgid ""
5281 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5282 "interface emulation to use at run time."
5283 msgstr ""
5284
5285 #. type: =head2
5286 #: ../fish/guestfish-actions.pod:184
5287 msgid "aug-clear"
5288 msgstr ""
5289
5290 #. type: verbatim
5291 #: ../fish/guestfish-actions.pod:186
5292 #, no-wrap
5293 msgid ""
5294 " aug-clear augpath\n"
5295 "\n"
5296 msgstr ""
5297
5298 #. type: textblock
5299 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5300 msgid ""
5301 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5302 "L<augtool(1)> C<clear> command."
5303 msgstr ""
5304
5305 #. type: =head2
5306 #: ../fish/guestfish-actions.pod:191
5307 msgid "aug-close"
5308 msgstr ""
5309
5310 #. type: verbatim
5311 #: ../fish/guestfish-actions.pod:193
5312 #, no-wrap
5313 msgid ""
5314 " aug-close\n"
5315 "\n"
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../fish/guestfish-actions.pod:195
5320 msgid ""
5321 "Close the current Augeas handle and free up any resources used by it.  After "
5322 "calling this, you have to call L</aug-init> again before you can use any "
5323 "other Augeas functions."
5324 msgstr ""
5325
5326 #. type: =head2
5327 #: ../fish/guestfish-actions.pod:200
5328 msgid "aug-defnode"
5329 msgstr ""
5330
5331 #. type: verbatim
5332 #: ../fish/guestfish-actions.pod:202
5333 #, no-wrap
5334 msgid ""
5335 " aug-defnode name expr val\n"
5336 "\n"
5337 msgstr ""
5338
5339 #. type: textblock
5340 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5341 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5342 msgstr ""
5343
5344 #. type: textblock
5345 #: ../fish/guestfish-actions.pod:207
5346 msgid ""
5347 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5348 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5349 "containing that single node."
5350 msgstr ""
5351
5352 #. type: textblock
5353 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5354 msgid ""
5355 "On success this returns a pair containing the number of nodes in the "
5356 "nodeset, and a boolean flag if a node was created."
5357 msgstr ""
5358
5359 #. type: =head2
5360 #: ../fish/guestfish-actions.pod:215
5361 msgid "aug-defvar"
5362 msgstr ""
5363
5364 #. type: verbatim
5365 #: ../fish/guestfish-actions.pod:217
5366 #, no-wrap
5367 msgid ""
5368 " aug-defvar name expr\n"
5369 "\n"
5370 msgstr ""
5371
5372 #. type: textblock
5373 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5374 msgid ""
5375 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5376 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5377 msgstr ""
5378
5379 #. type: textblock
5380 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5381 msgid ""
5382 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5383 "evaluates to something which is not a nodeset."
5384 msgstr ""
5385
5386 #. type: =head2
5387 #: ../fish/guestfish-actions.pod:226
5388 msgid "aug-get"
5389 msgstr ""
5390
5391 #. type: verbatim
5392 #: ../fish/guestfish-actions.pod:228
5393 #, no-wrap
5394 msgid ""
5395 " aug-get augpath\n"
5396 "\n"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5401 msgid ""
5402 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5403 "node, the C<value> is returned."
5404 msgstr ""
5405
5406 #. type: =head2
5407 #: ../fish/guestfish-actions.pod:233
5408 msgid "aug-init"
5409 msgstr ""
5410
5411 #. type: verbatim
5412 #: ../fish/guestfish-actions.pod:235
5413 #, no-wrap
5414 msgid ""
5415 " aug-init root flags\n"
5416 "\n"
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5421 msgid ""
5422 "Create a new Augeas handle for editing configuration files.  If there was "
5423 "any previous Augeas handle associated with this guestfs session, then it is "
5424 "closed."
5425 msgstr ""
5426
5427 #. type: textblock
5428 #: ../fish/guestfish-actions.pod:241
5429 msgid "You must call this before using any other L</aug-*> commands."
5430 msgstr ""
5431
5432 #. type: textblock
5433 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5434 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5435 msgstr ""
5436
5437 #. type: textblock
5438 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5439 msgid ""
5440 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5441 "logical I<or> of the following integers:"
5442 msgstr ""
5443
5444 #. type: =item
5445 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5446 msgid "C<AUG_SAVE_BACKUP> = 1"
5447 msgstr ""
5448
5449 #. type: textblock
5450 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5451 msgid "Keep the original file with a C<.augsave> extension."
5452 msgstr ""
5453
5454 #. type: =item
5455 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5456 msgid "C<AUG_SAVE_NEWFILE> = 2"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5461 msgid ""
5462 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5463 "original.  Overrides C<AUG_SAVE_BACKUP>."
5464 msgstr ""
5465
5466 #. type: =item
5467 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5468 msgid "C<AUG_TYPE_CHECK> = 4"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5473 msgid "Typecheck lenses."
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../fish/guestfish-actions.pod:266
5478 msgid ""
5479 "This option is only useful when debugging Augeas lenses.  Use of this option "
5480 "may require additional memory for the libguestfs appliance.  You may need to "
5481 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5482 msgstr ""
5483
5484 #. type: =item
5485 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5486 msgid "C<AUG_NO_STDINC> = 8"
5487 msgstr ""
5488
5489 #. type: textblock
5490 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5491 msgid "Do not use standard load path for modules."
5492 msgstr ""
5493
5494 #. type: =item
5495 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5496 msgid "C<AUG_SAVE_NOOP> = 16"
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5501 msgid "Make save a no-op, just record what would have been changed."
5502 msgstr ""
5503
5504 #. type: =item
5505 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5506 msgid "C<AUG_NO_LOAD> = 32"
5507 msgstr ""
5508
5509 #. type: textblock
5510 #: ../fish/guestfish-actions.pod:281
5511 msgid "Do not load the tree in L</aug-init>."
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../fish/guestfish-actions.pod:285
5516 msgid "To close the handle, you can call L</aug-close>."
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5521 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5522 msgstr ""
5523
5524 #. type: =head2
5525 #: ../fish/guestfish-actions.pod:289
5526 msgid "aug-insert"
5527 msgstr ""
5528
5529 #. type: verbatim
5530 #: ../fish/guestfish-actions.pod:291
5531 #, no-wrap
5532 msgid ""
5533 " aug-insert augpath label true|false\n"
5534 "\n"
5535 msgstr ""
5536
5537 #. type: textblock
5538 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5539 msgid ""
5540 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5541 "or after C<path> (depending on the boolean flag C<before>)."
5542 msgstr ""
5543
5544 #. type: textblock
5545 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5546 msgid ""
5547 "C<path> must match exactly one existing node in the tree, and C<label> must "
5548 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5549 msgstr ""
5550
5551 #. type: =head2
5552 #: ../fish/guestfish-actions.pod:301
5553 msgid "aug-load"
5554 msgstr ""
5555
5556 #. type: verbatim
5557 #: ../fish/guestfish-actions.pod:303
5558 #, no-wrap
5559 msgid ""
5560 " aug-load\n"
5561 "\n"
5562 msgstr ""
5563
5564 #. type: textblock
5565 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5566 msgid "Load files into the tree."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5571 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5572 msgstr ""
5573
5574 #. type: =head2
5575 #: ../fish/guestfish-actions.pod:310
5576 msgid "aug-ls"
5577 msgstr ""
5578
5579 #. type: verbatim
5580 #: ../fish/guestfish-actions.pod:312
5581 #, no-wrap
5582 msgid ""
5583 " aug-ls augpath\n"
5584 "\n"
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:314
5589 msgid ""
5590 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5591 "resulting nodes into alphabetical order."
5592 msgstr ""
5593
5594 #. type: =head2
5595 #: ../fish/guestfish-actions.pod:317
5596 msgid "aug-match"
5597 msgstr ""
5598
5599 #. type: verbatim
5600 #: ../fish/guestfish-actions.pod:319
5601 #, no-wrap
5602 msgid ""
5603 " aug-match augpath\n"
5604 "\n"
5605 msgstr ""
5606
5607 #. type: textblock
5608 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5609 msgid ""
5610 "Returns a list of paths which match the path expression C<path>.  The "
5611 "returned paths are sufficiently qualified so that they match exactly one "
5612 "node in the current tree."
5613 msgstr ""
5614
5615 #. type: =head2
5616 #: ../fish/guestfish-actions.pod:325
5617 msgid "aug-mv"
5618 msgstr ""
5619
5620 #. type: verbatim
5621 #: ../fish/guestfish-actions.pod:327
5622 #, no-wrap
5623 msgid ""
5624 " aug-mv src dest\n"
5625 "\n"
5626 msgstr ""
5627
5628 #. type: textblock
5629 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5630 msgid ""
5631 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5632 "C<dest> is overwritten if it exists."
5633 msgstr ""
5634
5635 #. type: =head2
5636 #: ../fish/guestfish-actions.pod:332
5637 msgid "aug-rm"
5638 msgstr ""
5639
5640 #. type: verbatim
5641 #: ../fish/guestfish-actions.pod:334
5642 #, no-wrap
5643 msgid ""
5644 " aug-rm augpath\n"
5645 "\n"
5646 msgstr ""
5647
5648 #. type: textblock
5649 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5650 msgid "Remove C<path> and all of its children."
5651 msgstr ""
5652
5653 #. type: textblock
5654 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5655 msgid "On success this returns the number of entries which were removed."
5656 msgstr ""
5657
5658 #. type: =head2
5659 #: ../fish/guestfish-actions.pod:340
5660 msgid "aug-save"
5661 msgstr ""
5662
5663 #. type: verbatim
5664 #: ../fish/guestfish-actions.pod:342
5665 #, no-wrap
5666 msgid ""
5667 " aug-save\n"
5668 "\n"
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5673 msgid "This writes all pending changes to disk."
5674 msgstr ""
5675
5676 #. type: textblock
5677 #: ../fish/guestfish-actions.pod:346
5678 msgid ""
5679 "The flags which were passed to L</aug-init> affect exactly how files are "
5680 "saved."
5681 msgstr ""
5682
5683 #. type: =head2
5684 #: ../fish/guestfish-actions.pod:349
5685 msgid "aug-set"
5686 msgstr ""
5687
5688 #. type: verbatim
5689 #: ../fish/guestfish-actions.pod:351
5690 #, no-wrap
5691 msgid ""
5692 " aug-set augpath val\n"
5693 "\n"
5694 msgstr ""
5695
5696 #. type: textblock
5697 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5698 msgid "Set the value associated with C<path> to C<val>."
5699 msgstr ""
5700
5701 #. type: textblock
5702 #: ../fish/guestfish-actions.pod:355
5703 msgid ""
5704 "In the Augeas API, it is possible to clear a node by setting the value to "
5705 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5706 "this call.  Instead you must use the L</aug-clear> call."
5707 msgstr ""
5708
5709 #. type: =head2
5710 #: ../fish/guestfish-actions.pod:360
5711 msgid "available"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../fish/guestfish-actions.pod:362
5716 #, no-wrap
5717 msgid ""
5718 " available 'groups ...'\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5724 msgid ""
5725 "This command is used to check the availability of some groups of "
5726 "functionality in the appliance, which not all builds of the libguestfs "
5727 "appliance will be able to provide."
5728 msgstr ""
5729
5730 #. type: textblock
5731 #: ../fish/guestfish-actions.pod:368
5732 msgid ""
5733 "The libguestfs groups, and the functions that those groups correspond to, "
5734 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5735 "runtime by calling L</available-all-groups>."
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5740 msgid ""
5741 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
5742 "\"augeas\"]> would check for the availability of the Linux inotify functions "
5743 "and Augeas (configuration file editing) functions."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5748 msgid "The command returns no error if I<all> requested groups are available."
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5753 msgid ""
5754 "It fails with an error if one or more of the requested groups is unavailable "
5755 "in the appliance."
5756 msgstr ""
5757
5758 #. type: textblock
5759 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5760 msgid ""
5761 "If an unknown group name is included in the list of groups then an error is "
5762 "always returned."
5763 msgstr ""
5764
5765 #. type: textblock
5766 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5767 msgid "I<Notes:>"
5768 msgstr ""
5769
5770 #. type: textblock
5771 #: ../fish/guestfish-actions.pod:392
5772 msgid "You must call L</launch> before calling this function."
5773 msgstr ""
5774
5775 #. type: textblock
5776 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5777 msgid ""
5778 "The reason is because we don't know what groups are supported by the "
5779 "appliance/daemon until it is running and can be queried."
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5784 msgid ""
5785 "If a group of functions is available, this does not necessarily mean that "
5786 "they will work.  You still have to check for errors when calling individual "
5787 "API functions even if they are available."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5792 msgid ""
5793 "It is usually the job of distro packagers to build complete functionality "
5794 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5795 "with all requirements satisfied, will support everything."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:414
5800 msgid ""
5801 "This call was added in version C<1.0.80>.  In previous versions of "
5802 "libguestfs all you could do would be to speculatively execute a command to "
5803 "find out if the daemon implemented it.  See also L</version>."
5804 msgstr ""
5805
5806 #. type: =head2
5807 #: ../fish/guestfish-actions.pod:421
5808 msgid "available-all-groups"
5809 msgstr ""
5810
5811 #. type: verbatim
5812 #: ../fish/guestfish-actions.pod:423
5813 #, no-wrap
5814 msgid ""
5815 " available-all-groups\n"
5816 "\n"
5817 msgstr ""
5818
5819 #. type: textblock
5820 #: ../fish/guestfish-actions.pod:425
5821 msgid ""
5822 "This command returns a list of all optional groups that this daemon knows "
5823 "about.  Note this returns both supported and unsupported groups.  To find "
5824 "out which ones the daemon can actually support you have to call "
5825 "L</available> on each member of the returned list."
5826 msgstr ""
5827
5828 #. type: textblock
5829 #: ../fish/guestfish-actions.pod:431
5830 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5831 msgstr ""
5832
5833 #. type: =head2
5834 #: ../fish/guestfish-actions.pod:433
5835 msgid "base64-in"
5836 msgstr ""
5837
5838 #. type: verbatim
5839 #: ../fish/guestfish-actions.pod:435
5840 #, no-wrap
5841 msgid ""
5842 " base64-in (base64file|-) filename\n"
5843 "\n"
5844 msgstr ""
5845
5846 #. type: textblock
5847 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5848 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782 ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902 ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766 ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5853 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5854 msgstr ""
5855
5856 #. type: =head2
5857 #: ../fish/guestfish-actions.pod:442
5858 msgid "base64-out"
5859 msgstr ""
5860
5861 #. type: verbatim
5862 #: ../fish/guestfish-actions.pod:444
5863 #, no-wrap
5864 msgid ""
5865 " base64-out filename (base64file|-)\n"
5866 "\n"
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5871 msgid ""
5872 "This command downloads the contents of C<filename>, writing it out to local "
5873 "file C<base64file> encoded as base64."
5874 msgstr ""
5875
5876 #. type: =head2
5877 #: ../fish/guestfish-actions.pod:451
5878 msgid "blockdev-flushbufs"
5879 msgstr ""
5880
5881 #. type: verbatim
5882 #: ../fish/guestfish-actions.pod:453
5883 #, no-wrap
5884 msgid ""
5885 " blockdev-flushbufs device\n"
5886 "\n"
5887 msgstr ""
5888
5889 #. type: textblock
5890 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5891 msgid "This tells the kernel to flush internal buffers associated with C<device>."
5892 msgstr ""
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469 ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488 ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513 ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532 ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548 ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696 ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727 ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796 ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5896 msgid "This uses the L<blockdev(8)> command."
5897 msgstr ""
5898
5899 #. type: =head2
5900 #: ../fish/guestfish-actions.pod:460
5901 msgid "blockdev-getbsz"
5902 msgstr ""
5903
5904 #. type: verbatim
5905 #: ../fish/guestfish-actions.pod:462
5906 #, no-wrap
5907 msgid ""
5908 " blockdev-getbsz device\n"
5909 "\n"
5910 msgstr ""
5911
5912 #. type: textblock
5913 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5914 msgid "This returns the block size of a device."
5915 msgstr ""
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5919 msgid ""
5920 "(Note this is different from both I<size in blocks> and I<filesystem block "
5921 "size>)."
5922 msgstr ""
5923
5924 #. type: =head2
5925 #: ../fish/guestfish-actions.pod:471
5926 msgid "blockdev-getro"
5927 msgstr ""
5928
5929 #. type: verbatim
5930 #: ../fish/guestfish-actions.pod:473
5931 #, no-wrap
5932 msgid ""
5933 " blockdev-getro device\n"
5934 "\n"
5935 msgstr ""
5936
5937 #. type: textblock
5938 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5939 msgid ""
5940 "Returns a boolean indicating if the block device is read-only (true if "
5941 "read-only, false if not)."
5942 msgstr ""
5943
5944 #. type: =head2
5945 #: ../fish/guestfish-actions.pod:480
5946 msgid "blockdev-getsize64"
5947 msgstr ""
5948
5949 #. type: verbatim
5950 #: ../fish/guestfish-actions.pod:482
5951 #, no-wrap
5952 msgid ""
5953 " blockdev-getsize64 device\n"
5954 "\n"
5955 msgstr ""
5956
5957 #. type: textblock
5958 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5959 msgid "This returns the size of the device in bytes."
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:486
5964 msgid "See also L</blockdev-getsz>."
5965 msgstr ""
5966
5967 #. type: =head2
5968 #: ../fish/guestfish-actions.pod:490
5969 msgid "blockdev-getss"
5970 msgstr ""
5971
5972 #. type: verbatim
5973 #: ../fish/guestfish-actions.pod:492
5974 #, no-wrap
5975 msgid ""
5976 " blockdev-getss device\n"
5977 "\n"
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5982 msgid ""
5983 "This returns the size of sectors on a block device.  Usually 512, but can be "
5984 "larger for modern devices."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:497
5989 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5990 msgstr ""
5991
5992 #. type: =head2
5993 #: ../fish/guestfish-actions.pod:502
5994 msgid "blockdev-getsz"
5995 msgstr ""
5996
5997 #. type: verbatim
5998 #: ../fish/guestfish-actions.pod:504
5999 #, no-wrap
6000 msgid ""
6001 " blockdev-getsz device\n"
6002 "\n"
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
6007 msgid ""
6008 "This returns the size of the device in units of 512-byte sectors (even if "
6009 "the sectorsize isn't 512 bytes ... weird)."
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:509
6014 msgid ""
6015 "See also L</blockdev-getss> for the real sector size of the device, and "
6016 "L</blockdev-getsize64> for the more useful I<size in bytes>."
6017 msgstr ""
6018
6019 #. type: =head2
6020 #: ../fish/guestfish-actions.pod:515
6021 msgid "blockdev-rereadpt"
6022 msgstr ""
6023
6024 #. type: verbatim
6025 #: ../fish/guestfish-actions.pod:517
6026 #, no-wrap
6027 msgid ""
6028 " blockdev-rereadpt device\n"
6029 "\n"
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
6034 msgid "Reread the partition table on C<device>."
6035 msgstr ""
6036
6037 #. type: =head2
6038 #: ../fish/guestfish-actions.pod:523
6039 msgid "blockdev-setbsz"
6040 msgstr ""
6041
6042 #. type: verbatim
6043 #: ../fish/guestfish-actions.pod:525
6044 #, no-wrap
6045 msgid ""
6046 " blockdev-setbsz device blocksize\n"
6047 "\n"
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
6052 msgid "This sets the block size of a device."
6053 msgstr ""
6054
6055 #. type: =head2
6056 #: ../fish/guestfish-actions.pod:534
6057 msgid "blockdev-setro"
6058 msgstr ""
6059
6060 #. type: verbatim
6061 #: ../fish/guestfish-actions.pod:536
6062 #, no-wrap
6063 msgid ""
6064 " blockdev-setro device\n"
6065 "\n"
6066 msgstr ""
6067
6068 #. type: textblock
6069 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
6070 msgid "Sets the block device named C<device> to read-only."
6071 msgstr ""
6072
6073 #. type: =head2
6074 #: ../fish/guestfish-actions.pod:542
6075 msgid "blockdev-setrw"
6076 msgstr ""
6077
6078 #. type: verbatim
6079 #: ../fish/guestfish-actions.pod:544
6080 #, no-wrap
6081 msgid ""
6082 " blockdev-setrw device\n"
6083 "\n"
6084 msgstr ""
6085
6086 #. type: textblock
6087 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
6088 msgid "Sets the block device named C<device> to read-write."
6089 msgstr ""
6090
6091 #. type: =head2
6092 #: ../fish/guestfish-actions.pod:550
6093 msgid "btrfs-filesystem-resize"
6094 msgstr ""
6095
6096 #. type: verbatim
6097 #: ../fish/guestfish-actions.pod:552
6098 #, no-wrap
6099 msgid ""
6100 " btrfs-filesystem-resize mountpoint [size:..]\n"
6101 "\n"
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
6106 msgid "This command resizes a btrfs filesystem."
6107 msgstr ""
6108
6109 #. type: textblock
6110 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
6111 msgid ""
6112 "Note that unlike other resize calls, the filesystem has to be mounted and "
6113 "the parameter is the mountpoint not the device (this is a requirement of "
6114 "btrfs itself)."
6115 msgstr ""
6116
6117 #. type: textblock
6118 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
6119 msgid "The optional parameters are:"
6120 msgstr ""
6121
6122 #. type: =item
6123 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
6124 msgid "C<size>"
6125 msgstr ""
6126
6127 #. type: textblock
6128 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
6129 msgid ""
6130 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6131 "resized to the maximum size."
6132 msgstr ""
6133
6134 #. type: textblock
6135 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
6136 msgid "See also L<btrfs(8)>."
6137 msgstr ""
6138
6139 #. type: =head2
6140 #: ../fish/guestfish-actions.pod:575
6141 msgid "case-sensitive-path"
6142 msgstr ""
6143
6144 #. type: verbatim
6145 #: ../fish/guestfish-actions.pod:577
6146 #, no-wrap
6147 msgid ""
6148 " case-sensitive-path path\n"
6149 "\n"
6150 msgstr ""
6151
6152 #. type: textblock
6153 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6154 msgid ""
6155 "This can be used to resolve case insensitive paths on a filesystem which is "
6156 "case sensitive.  The use case is to resolve paths which you have read from "
6157 "Windows configuration files or the Windows Registry, to the true path."
6158 msgstr ""
6159
6160 #. type: textblock
6161 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6162 msgid ""
6163 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6164 "(and probably others), which is that although the underlying filesystem is "
6165 "case-insensitive, the driver exports the filesystem to Linux as "
6166 "case-sensitive."
6167 msgstr ""
6168
6169 #. type: textblock
6170 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6171 msgid ""
6172 "One consequence of this is that special directories such as C<c:\\windows> "
6173 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6174 "precise details of how they were created.  In Windows itself this would not "
6175 "be a problem."
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6180 msgid ""
6181 "Bug or feature? You decide: "
6182 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
6183 msgstr ""
6184
6185 #. type: textblock
6186 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6187 msgid ""
6188 "This function resolves the true case of each element in the path and returns "
6189 "the case-sensitive path."
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../fish/guestfish-actions.pod:601
6194 msgid ""
6195 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
6196 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
6197 "how the directories were originally created under Windows)."
6198 msgstr ""
6199
6200 #. type: textblock
6201 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6202 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:609
6207 msgid "See also L</realpath>."
6208 msgstr ""
6209
6210 #. type: =head2
6211 #: ../fish/guestfish-actions.pod:611
6212 msgid "cat"
6213 msgstr ""
6214
6215 #. type: verbatim
6216 #: ../fish/guestfish-actions.pod:613
6217 #, no-wrap
6218 msgid ""
6219 " cat path\n"
6220 "\n"
6221 msgstr ""
6222
6223 #. type: textblock
6224 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
6225 msgid "Return the contents of the file named C<path>."
6226 msgstr ""
6227
6228 #. type: textblock
6229 #: ../fish/guestfish-actions.pod:617
6230 msgid ""
6231 "Note that this function cannot correctly handle binary files (specifically, "
6232 "files containing C<\\0> character which is treated as end of string).  For "
6233 "those you need to use the L</read-file> or L</download> functions which have "
6234 "a more complex interface."
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757 ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057 ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259 ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647 ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676 ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784 ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877 ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573 ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704 ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182 ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249 ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554 ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442 ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577 ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783 ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132 ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821 ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
6239 msgid ""
6240 "Because of the message protocol, there is a transfer limit of somewhere "
6241 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6242 msgstr ""
6243
6244 #. type: =head2
6245 #: ../fish/guestfish-actions.pod:625
6246 msgid "checksum"
6247 msgstr ""
6248
6249 #. type: verbatim
6250 #: ../fish/guestfish-actions.pod:627
6251 #, no-wrap
6252 msgid ""
6253 " checksum csumtype path\n"
6254 "\n"
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6259 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6264 msgid ""
6265 "The type of checksum to compute is given by the C<csumtype> parameter which "
6266 "must have one of the following values:"
6267 msgstr ""
6268
6269 #. type: =item
6270 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6271 msgid "C<crc>"
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6276 msgid ""
6277 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6278 "C<cksum> command."
6279 msgstr ""
6280
6281 #. type: =item
6282 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6283 msgid "C<md5>"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6288 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6289 msgstr ""
6290
6291 #. type: =item
6292 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6293 msgid "C<sha1>"
6294 msgstr ""
6295
6296 #. type: textblock
6297 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6298 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6299 msgstr ""
6300
6301 #. type: =item
6302 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6303 msgid "C<sha224>"
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6308 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6309 msgstr ""
6310
6311 #. type: =item
6312 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6313 msgid "C<sha256>"
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6318 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6319 msgstr ""
6320
6321 #. type: =item
6322 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6323 msgid "C<sha384>"
6324 msgstr ""
6325
6326 #. type: textblock
6327 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6328 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6329 msgstr ""
6330
6331 #. type: =item
6332 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6333 msgid "C<sha512>"
6334 msgstr ""
6335
6336 #. type: textblock
6337 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6338 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6339 msgstr ""
6340
6341 #. type: textblock
6342 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6343 msgid "The checksum is returned as a printable string."
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:670
6348 msgid "To get the checksum for a device, use L</checksum-device>."
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:672
6353 msgid "To get the checksums for many files, use L</checksums-out>."
6354 msgstr ""
6355
6356 #. type: =head2
6357 #: ../fish/guestfish-actions.pod:674
6358 msgid "checksum-device"
6359 msgstr ""
6360
6361 #. type: verbatim
6362 #: ../fish/guestfish-actions.pod:676
6363 #, no-wrap
6364 msgid ""
6365 " checksum-device csumtype device\n"
6366 "\n"
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:678
6371 msgid ""
6372 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6373 "device named C<device>.  For the types of checksums supported see the "
6374 "L</checksum> command."
6375 msgstr ""
6376
6377 #. type: =head2
6378 #: ../fish/guestfish-actions.pod:682
6379 msgid "checksums-out"
6380 msgstr ""
6381
6382 #. type: verbatim
6383 #: ../fish/guestfish-actions.pod:684
6384 #, no-wrap
6385 msgid ""
6386 " checksums-out csumtype directory (sumsfile|-)\n"
6387 "\n"
6388 msgstr ""
6389
6390 #. type: textblock
6391 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6392 msgid ""
6393 "This command computes the checksums of all regular files in C<directory> and "
6394 "then emits a list of those checksums to the local output file C<sumsfile>."
6395 msgstr ""
6396
6397 #. type: textblock
6398 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6399 msgid ""
6400 "This can be used for verifying the integrity of a virtual machine.  However "
6401 "to be properly secure you should pay attention to the output of the checksum "
6402 "command (it uses the ones from GNU coreutils).  In particular when the "
6403 "filename is not printable, coreutils uses a special backslash syntax.  For "
6404 "more information, see the GNU coreutils info file."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:700
6409 msgid "chmod"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:702
6414 #, no-wrap
6415 msgid ""
6416 " chmod mode path\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6422 msgid ""
6423 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6424 "supported."
6425 msgstr ""
6426
6427 #. type: textblock
6428 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6429 msgid ""
6430 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6431 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6432 "C<700>."
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132 ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281 ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948 ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
6437 msgid "The mode actually set is affected by the umask."
6438 msgstr ""
6439
6440 #. type: =head2
6441 #: ../fish/guestfish-actions.pod:713
6442 msgid "chown"
6443 msgstr ""
6444
6445 #. type: verbatim
6446 #: ../fish/guestfish-actions.pod:715
6447 #, no-wrap
6448 msgid ""
6449 " chown owner group path\n"
6450 "\n"
6451 msgstr ""
6452
6453 #. type: textblock
6454 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6455 msgid "Change the file owner to C<owner> and group to C<group>."
6456 msgstr ""
6457
6458 #. type: textblock
6459 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
6460 msgid ""
6461 "Only numeric uid and gid are supported.  If you want to use names, you will "
6462 "need to locate and parse the password file yourself (Augeas support makes "
6463 "this relatively easy)."
6464 msgstr ""
6465
6466 #. type: =head2
6467 #: ../fish/guestfish-actions.pod:723
6468 msgid "command"
6469 msgstr ""
6470
6471 #. type: verbatim
6472 #: ../fish/guestfish-actions.pod:725
6473 #, no-wrap
6474 msgid ""
6475 " command 'arguments ...'\n"
6476 "\n"
6477 msgstr ""
6478
6479 #. type: textblock
6480 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6481 msgid ""
6482 "This call runs a command from the guest filesystem.  The filesystem must be "
6483 "mounted, and must contain a compatible operating system (ie. something "
6484 "Linux, with the same or compatible processor architecture)."
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../fish/guestfish-actions.pod:732
6489 msgid ""
6490 "The single parameter is an argv-style list of arguments.  The first element "
6491 "is the name of the program to run.  Subsequent elements are parameters.  The "
6492 "list must be non-empty (ie. must contain a program name).  Note that the "
6493 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6498 msgid "The return value is anything printed to I<stdout> by the command."
6499 msgstr ""
6500
6501 #. type: textblock
6502 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6503 msgid ""
6504 "If the command returns a non-zero exit status, then this function returns an "
6505 "error message.  The error message string is the content of I<stderr> from "
6506 "the command."
6507 msgstr ""
6508
6509 #. type: textblock
6510 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6511 msgid ""
6512 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
6513 "C</bin>.  If you require a program from another location, you should provide "
6514 "the full path in the first parameter."
6515 msgstr ""
6516
6517 #. type: textblock
6518 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6519 msgid ""
6520 "Shared libraries and data files required by the program must be available on "
6521 "filesystems which are mounted in the correct places.  It is the caller's "
6522 "responsibility to ensure all filesystems that are needed are mounted at the "
6523 "right locations."
6524 msgstr ""
6525
6526 #. type: =head2
6527 #: ../fish/guestfish-actions.pod:760
6528 msgid "command-lines"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../fish/guestfish-actions.pod:762
6533 #, no-wrap
6534 msgid ""
6535 " command-lines 'arguments ...'\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../fish/guestfish-actions.pod:764
6541 msgid "This is the same as L</command>, but splits the result into a list of lines."
6542 msgstr ""
6543
6544 #. type: textblock
6545 #: ../fish/guestfish-actions.pod:767
6546 msgid "See also: L</sh-lines>"
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:772
6551 msgid "compress-device-out"
6552 msgstr ""
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:774
6556 #, no-wrap
6557 msgid ""
6558 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6564 msgid ""
6565 "This command compresses C<device> and writes it out to the local file "
6566 "C<zdevice>."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:779
6571 msgid ""
6572 "The C<ctype> and optional C<level> parameters have the same meaning as in "
6573 "L</compress-out>."
6574 msgstr ""
6575
6576 #. type: =head2
6577 #: ../fish/guestfish-actions.pod:786
6578 msgid "compress-out"
6579 msgstr ""
6580
6581 #. type: verbatim
6582 #: ../fish/guestfish-actions.pod:788
6583 #, no-wrap
6584 msgid ""
6585 " compress-out ctype file (zfile|-) [level:..]\n"
6586 "\n"
6587 msgstr ""
6588
6589 #. type: textblock
6590 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6591 msgid ""
6592 "This command compresses C<file> and writes it out to the local file "
6593 "C<zfile>."
6594 msgstr ""
6595
6596 #. type: textblock
6597 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6598 msgid ""
6599 "The compression program used is controlled by the C<ctype> parameter.  "
6600 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6601 "Some compression types may not be supported by particular builds of "
6602 "libguestfs, in which case you will get an error containing the substring "
6603 "\"not supported\"."
6604 msgstr ""
6605
6606 #. type: textblock
6607 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6608 msgid ""
6609 "The optional C<level> parameter controls compression level.  The meaning and "
6610 "default for this parameter depends on the compression program being used."
6611 msgstr ""
6612
6613 #. type: =head2
6614 #: ../fish/guestfish-actions.pod:807
6615 msgid "config"
6616 msgstr ""
6617
6618 #. type: verbatim
6619 #: ../fish/guestfish-actions.pod:809
6620 #, no-wrap
6621 msgid ""
6622 " config qemuparam qemuvalue\n"
6623 "\n"
6624 msgstr ""
6625
6626 #. type: textblock
6627 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6628 msgid ""
6629 "This can be used to add arbitrary qemu command line parameters of the form "
6630 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6631 "setting some parameters which would interfere with parameters that we use."
6632 msgstr ""
6633
6634 #. type: textblock
6635 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6636 msgid "The first character of C<param> string must be a C<-> (dash)."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6641 msgid "C<value> can be NULL."
6642 msgstr ""
6643
6644 #. type: =head2
6645 #: ../fish/guestfish-actions.pod:820
6646 msgid "copy-size"
6647 msgstr ""
6648
6649 #. type: verbatim
6650 #: ../fish/guestfish-actions.pod:822
6651 #, no-wrap
6652 msgid ""
6653 " copy-size src dest size\n"
6654 "\n"
6655 msgstr ""
6656
6657 #. type: textblock
6658 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6659 msgid ""
6660 "This command copies exactly C<size> bytes from one source device or file "
6661 "C<src> to another destination device or file C<dest>."
6662 msgstr ""
6663
6664 #. type: textblock
6665 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6666 msgid ""
6667 "Note this will fail if the source is too short or if the destination is not "
6668 "large enough."
6669 msgstr ""
6670
6671 #. type: =head2
6672 #: ../fish/guestfish-actions.pod:830
6673 msgid "cp"
6674 msgstr ""
6675
6676 #. type: verbatim
6677 #: ../fish/guestfish-actions.pod:832
6678 #, no-wrap
6679 msgid ""
6680 " cp src dest\n"
6681 "\n"
6682 msgstr ""
6683
6684 #. type: textblock
6685 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6686 msgid ""
6687 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6688 "destination filename or destination directory."
6689 msgstr ""
6690
6691 #. type: =head2
6692 #: ../fish/guestfish-actions.pod:837
6693 msgid "cp-a"
6694 msgstr ""
6695
6696 #. type: verbatim
6697 #: ../fish/guestfish-actions.pod:839
6698 #, no-wrap
6699 msgid ""
6700 " cp-a src dest\n"
6701 "\n"
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6706 msgid ""
6707 "This copies a file or directory from C<src> to C<dest> recursively using the "
6708 "C<cp -a> command."
6709 msgstr ""
6710
6711 #. type: =head2
6712 #: ../fish/guestfish-actions.pod:844
6713 msgid "dd"
6714 msgstr ""
6715
6716 #. type: verbatim
6717 #: ../fish/guestfish-actions.pod:846
6718 #, no-wrap
6719 msgid ""
6720 " dd src dest\n"
6721 "\n"
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6726 msgid ""
6727 "This command copies from one source device or file C<src> to another "
6728 "destination device or file C<dest>.  Normally you would use this to copy to "
6729 "or from a device or partition, for example to duplicate a filesystem."
6730 msgstr ""
6731
6732 #. type: textblock
6733 #: ../fish/guestfish-actions.pod:853
6734 msgid ""
6735 "If the destination is a device, it must be as large or larger than the "
6736 "source file or device, otherwise the copy will fail.  This command cannot do "
6737 "partial copies (see L</copy-size>)."
6738 msgstr ""
6739
6740 #. type: =head2
6741 #: ../fish/guestfish-actions.pod:857
6742 msgid "df"
6743 msgstr ""
6744
6745 #. type: verbatim
6746 #: ../fish/guestfish-actions.pod:859
6747 #, no-wrap
6748 msgid ""
6749 " df\n"
6750 "\n"
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
6755 msgid "This command runs the C<df> command to report disk space used."
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6760 msgid ""
6761 "This command is mostly useful for interactive sessions.  It is I<not> "
6762 "intended that you try to parse the output string.  Use L</statvfs> from "
6763 "programs."
6764 msgstr ""
6765
6766 #. type: =head2
6767 #: ../fish/guestfish-actions.pod:867
6768 msgid "df-h"
6769 msgstr ""
6770
6771 #. type: verbatim
6772 #: ../fish/guestfish-actions.pod:869
6773 #, no-wrap
6774 msgid ""
6775 " df-h\n"
6776 "\n"
6777 msgstr ""
6778
6779 #. type: textblock
6780 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
6781 msgid ""
6782 "This command runs the C<df -h> command to report disk space used in "
6783 "human-readable format."
6784 msgstr ""
6785
6786 #. type: =head2
6787 #: ../fish/guestfish-actions.pod:878
6788 msgid "dmesg"
6789 msgstr ""
6790
6791 #. type: verbatim
6792 #: ../fish/guestfish-actions.pod:880
6793 #, no-wrap
6794 msgid ""
6795 " dmesg\n"
6796 "\n"
6797 msgstr ""
6798
6799 #. type: textblock
6800 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
6801 msgid ""
6802 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6803 "This is sometimes useful for extended debugging of problems."
6804 msgstr ""
6805
6806 #. type: textblock
6807 #: ../fish/guestfish-actions.pod:886
6808 msgid ""
6809 "Another way to get the same information is to enable verbose messages with "
6810 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6811 "before running the program."
6812 msgstr ""
6813
6814 #. type: =head2
6815 #: ../fish/guestfish-actions.pod:891
6816 msgid "download"
6817 msgstr ""
6818
6819 #. type: verbatim
6820 #: ../fish/guestfish-actions.pod:893
6821 #, no-wrap
6822 msgid ""
6823 " download remotefilename (filename|-)\n"
6824 "\n"
6825 msgstr ""
6826
6827 #. type: textblock
6828 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
6829 msgid ""
6830 "Download file C<remotefilename> and save it as C<filename> on the local "
6831 "machine."
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
6836 msgid "C<filename> can also be a named pipe."
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:900
6841 msgid "See also L</upload>, L</cat>."
6842 msgstr ""
6843
6844 #. type: =head2
6845 #: ../fish/guestfish-actions.pod:904
6846 msgid "download-offset"
6847 msgstr ""
6848
6849 #. type: verbatim
6850 #: ../fish/guestfish-actions.pod:906
6851 #, no-wrap
6852 msgid ""
6853 " download-offset remotefilename (filename|-) offset size\n"
6854 "\n"
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
6859 msgid ""
6860 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6861 "region must be within the file or device)."
6862 msgstr ""
6863
6864 #. type: textblock
6865 #: ../fish/guestfish-actions.pod:914
6866 msgid ""
6867 "Note that there is no limit on the amount of data that can be downloaded "
6868 "with this call, unlike with L</pread>, and this call always reads the full "
6869 "amount unless an error occurs."
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:919
6874 msgid "See also L</download>, L</pread>."
6875 msgstr ""
6876
6877 #. type: =head2
6878 #: ../fish/guestfish-actions.pod:923
6879 msgid "drop-caches"
6880 msgstr ""
6881
6882 #. type: verbatim
6883 #: ../fish/guestfish-actions.pod:925
6884 #, no-wrap
6885 msgid ""
6886 " drop-caches whattodrop\n"
6887 "\n"
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
6892 msgid ""
6893 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6894 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6895 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6896 msgstr ""
6897
6898 #. type: textblock
6899 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
6900 msgid "Setting C<whattodrop> to 3 should drop everything."
6901 msgstr ""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
6905 msgid ""
6906 "This automatically calls L<sync(2)> before the operation, so that the "
6907 "maximum guest memory is freed."
6908 msgstr ""
6909
6910 #. type: =head2
6911 #: ../fish/guestfish-actions.pod:937
6912 msgid "du"
6913 msgstr ""
6914
6915 #. type: verbatim
6916 #: ../fish/guestfish-actions.pod:939
6917 #, no-wrap
6918 msgid ""
6919 " du path\n"
6920 "\n"
6921 msgstr ""
6922
6923 #. type: textblock
6924 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
6925 msgid ""
6926 "This command runs the C<du -s> command to estimate file space usage for "
6927 "C<path>."
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
6932 msgid ""
6933 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6934 "estimate includes the contents of the directory and all subdirectories "
6935 "(recursively)."
6936 msgstr ""
6937
6938 #. type: textblock
6939 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
6940 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6941 msgstr ""
6942
6943 #. type: =head2
6944 #: ../fish/guestfish-actions.pod:951
6945 msgid "e2fsck-f"
6946 msgstr ""
6947
6948 #. type: verbatim
6949 #: ../fish/guestfish-actions.pod:953
6950 #, no-wrap
6951 msgid ""
6952 " e2fsck-f device\n"
6953 "\n"
6954 msgstr ""
6955
6956 #. type: textblock
6957 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
6958 msgid ""
6959 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6960 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6961 "clean (I<-f>)."
6962 msgstr ""
6963
6964 #. type: textblock
6965 #: ../fish/guestfish-actions.pod:959
6966 msgid ""
6967 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6968 "should use L</fsck>."
6969 msgstr ""
6970
6971 #. type: =head2
6972 #: ../fish/guestfish-actions.pod:962
6973 msgid "echo-daemon"
6974 msgstr ""
6975
6976 #. type: verbatim
6977 #: ../fish/guestfish-actions.pod:964
6978 #, no-wrap
6979 msgid ""
6980 " echo-daemon 'words ...'\n"
6981 "\n"
6982 msgstr ""
6983
6984 #. type: textblock
6985 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
6986 msgid ""
6987 "This command concatenates the list of C<words> passed with single spaces "
6988 "between them and returns the resulting string."
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
6993 msgid "You can use this command to test the connection through to the daemon."
6994 msgstr ""
6995
6996 #. type: textblock
6997 #: ../fish/guestfish-actions.pod:971
6998 msgid "See also L</ping-daemon>."
6999 msgstr ""
7000
7001 #. type: =head2
7002 #: ../fish/guestfish-actions.pod:973
7003 msgid "egrep"
7004 msgstr ""
7005
7006 #. type: verbatim
7007 #: ../fish/guestfish-actions.pod:975
7008 #, no-wrap
7009 msgid ""
7010 " egrep regex path\n"
7011 "\n"
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
7016 msgid "This calls the external C<egrep> program and returns the matching lines."
7017 msgstr ""
7018
7019 #. type: =head2
7020 #: ../fish/guestfish-actions.pod:983
7021 msgid "egrepi"
7022 msgstr ""
7023
7024 #. type: verbatim
7025 #: ../fish/guestfish-actions.pod:985
7026 #, no-wrap
7027 msgid ""
7028 " egrepi regex path\n"
7029 "\n"
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
7034 msgid "This calls the external C<egrep -i> program and returns the matching lines."
7035 msgstr ""
7036
7037 #. type: =head2
7038 #: ../fish/guestfish-actions.pod:993
7039 msgid "equal"
7040 msgstr ""
7041
7042 #. type: verbatim
7043 #: ../fish/guestfish-actions.pod:995
7044 #, no-wrap
7045 msgid ""
7046 " equal file1 file2\n"
7047 "\n"
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
7052 msgid ""
7053 "This compares the two files C<file1> and C<file2> and returns true if their "
7054 "content is exactly equal, or false otherwise."
7055 msgstr ""
7056
7057 #. type: textblock
7058 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
7059 msgid "The external L<cmp(1)> program is used for the comparison."
7060 msgstr ""
7061
7062 #. type: =head2
7063 #: ../fish/guestfish-actions.pod:1002
7064 msgid "exists"
7065 msgstr ""
7066
7067 #. type: verbatim
7068 #: ../fish/guestfish-actions.pod:1004
7069 #, no-wrap
7070 msgid ""
7071 " exists path\n"
7072 "\n"
7073 msgstr ""
7074
7075 #. type: textblock
7076 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
7077 msgid ""
7078 "This returns C<true> if and only if there is a file, directory (or anything) "
7079 "with the given C<path> name."
7080 msgstr ""
7081
7082 #. type: textblock
7083 #: ../fish/guestfish-actions.pod:1009
7084 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7085 msgstr ""
7086
7087 #. type: =head2
7088 #: ../fish/guestfish-actions.pod:1011
7089 msgid "fallocate"
7090 msgstr ""
7091
7092 #. type: verbatim
7093 #: ../fish/guestfish-actions.pod:1013
7094 #, no-wrap
7095 msgid ""
7096 " fallocate path len\n"
7097 "\n"
7098 msgstr ""
7099
7100 #. type: textblock
7101 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7102 msgid ""
7103 "This command preallocates a file (containing zero bytes) named C<path> of "
7104 "size C<len> bytes.  If the file exists already, it is overwritten."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7109 msgid ""
7110 "Do not confuse this with the guestfish-specific C<alloc> command which "
7111 "allocates a file in the host and attaches it as a device."
7112 msgstr ""
7113
7114 #. type: textblock
7115 #: ../fish/guestfish-actions.pod:1023
7116 msgid ""
7117 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7118 "instead."
7119 msgstr ""
7120
7121 #. type: =head2
7122 #: ../fish/guestfish-actions.pod:1030
7123 msgid "fallocate64"
7124 msgstr ""
7125
7126 #. type: verbatim
7127 #: ../fish/guestfish-actions.pod:1032
7128 #, no-wrap
7129 msgid ""
7130 " fallocate64 path len\n"
7131 "\n"
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1038
7136 msgid ""
7137 "Note that this call allocates disk blocks for the file.  To create a sparse "
7138 "file use L</truncate-size> instead."
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:1041
7143 msgid ""
7144 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7145 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7146 "maximum size of files created through that call to 1GB."
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7151 msgid ""
7152 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7153 "commands which create a file in the host and attach it as a device."
7154 msgstr ""
7155
7156 #. type: =head2
7157 #: ../fish/guestfish-actions.pod:1050
7158 msgid "fgrep"
7159 msgstr ""
7160
7161 #. type: verbatim
7162 #: ../fish/guestfish-actions.pod:1052
7163 #, no-wrap
7164 msgid ""
7165 " fgrep pattern path\n"
7166 "\n"
7167 msgstr ""
7168
7169 #. type: textblock
7170 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7171 msgid "This calls the external C<fgrep> program and returns the matching lines."
7172 msgstr ""
7173
7174 #. type: =head2
7175 #: ../fish/guestfish-actions.pod:1060
7176 msgid "fgrepi"
7177 msgstr ""
7178
7179 #. type: verbatim
7180 #: ../fish/guestfish-actions.pod:1062
7181 #, no-wrap
7182 msgid ""
7183 " fgrepi pattern path\n"
7184 "\n"
7185 msgstr ""
7186
7187 #. type: textblock
7188 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7189 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
7190 msgstr ""
7191
7192 #. type: =head2
7193 #: ../fish/guestfish-actions.pod:1070
7194 msgid "file"
7195 msgstr ""
7196
7197 #. type: verbatim
7198 #: ../fish/guestfish-actions.pod:1072
7199 #, no-wrap
7200 msgid ""
7201 " file path\n"
7202 "\n"
7203 msgstr ""
7204
7205 #. type: textblock
7206 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7207 msgid ""
7208 "This call uses the standard L<file(1)> command to determine the type or "
7209 "contents of the file."
7210 msgstr ""
7211
7212 #. type: textblock
7213 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7214 msgid ""
7215 "This call will also transparently look inside various types of compressed "
7216 "file."
7217 msgstr ""
7218
7219 #. type: textblock
7220 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7221 msgid ""
7222 "The exact command which runs is C<file -zb path>.  Note in particular that "
7223 "the filename is not prepended to the output (the I<-b> option)."
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7228 msgid ""
7229 "The output depends on the output of the underlying L<file(1)> command and it "
7230 "can change in future in ways beyond our control.  In other words, the output "
7231 "is not guaranteed by the ABI."
7232 msgstr ""
7233
7234 #. type: textblock
7235 #: ../fish/guestfish-actions.pod:1088
7236 msgid ""
7237 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7238 "(etc), L</is-zero>."
7239 msgstr ""
7240
7241 #. type: =head2
7242 #: ../fish/guestfish-actions.pod:1091
7243 msgid "file-architecture"
7244 msgstr ""
7245
7246 #. type: verbatim
7247 #: ../fish/guestfish-actions.pod:1093
7248 #, no-wrap
7249 msgid ""
7250 " file-architecture filename\n"
7251 "\n"
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7256 msgid ""
7257 "This detects the architecture of the binary C<filename>, and returns it if "
7258 "known."
7259 msgstr ""
7260
7261 #. type: textblock
7262 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7263 msgid "Currently defined architectures are:"
7264 msgstr ""
7265
7266 #. type: =item
7267 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7268 msgid "\"i386\""
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7273 msgid ""
7274 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7275 "irrespective of the precise processor requirements of the binary."
7276 msgstr ""
7277
7278 #. type: =item
7279 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7280 msgid "\"x86_64\""
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7285 msgid "64 bit x86-64."
7286 msgstr ""
7287
7288 #. type: =item
7289 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7290 msgid "\"sparc\""
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7295 msgid "32 bit SPARC."
7296 msgstr ""
7297
7298 #. type: =item
7299 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7300 msgid "\"sparc64\""
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7305 msgid "64 bit SPARC V9 and above."
7306 msgstr ""
7307
7308 #. type: =item
7309 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7310 msgid "\"ia64\""
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7315 msgid "Intel Itanium."
7316 msgstr ""
7317
7318 #. type: =item
7319 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7320 msgid "\"ppc\""
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7325 msgid "32 bit Power PC."
7326 msgstr ""
7327
7328 #. type: =item
7329 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7330 msgid "\"ppc64\""
7331 msgstr ""
7332
7333 #. type: textblock
7334 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7335 msgid "64 bit Power PC."
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7340 msgid "Libguestfs may return other architecture strings in future."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7345 msgid "The function works on at least the following types of files:"
7346 msgstr ""
7347
7348 #. type: textblock
7349 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7350 msgid "many types of Un*x and Linux binary"
7351 msgstr ""
7352
7353 #. type: textblock
7354 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7355 msgid "many types of Un*x and Linux shared library"
7356 msgstr ""
7357
7358 #. type: textblock
7359 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7360 msgid "Windows Win32 and Win64 binaries"
7361 msgstr ""
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7365 msgid "Windows Win32 and Win64 DLLs"
7366 msgstr ""
7367
7368 #. type: textblock
7369 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7370 msgid "Win32 binaries and DLLs return C<i386>."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7375 msgid "Win64 binaries and DLLs return C<x86_64>."
7376 msgstr ""
7377
7378 #. type: textblock
7379 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7380 msgid "Linux kernel modules"
7381 msgstr ""
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7385 msgid "Linux new-style initrd images"
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7390 msgid "some non-x86 Linux vmlinuz kernels"
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7395 msgid "What it can't do currently:"
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7400 msgid "static libraries (libfoo.a)"
7401 msgstr ""
7402
7403 #. type: textblock
7404 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7405 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7406 msgstr ""
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7410 msgid "x86 Linux vmlinuz kernels"
7411 msgstr ""
7412
7413 #. type: textblock
7414 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7415 msgid ""
7416 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7417 "compressed code, and are horribly hard to unpack.  If you want to find the "
7418 "architecture of a kernel, use the architecture of the associated initrd or "
7419 "kernel module(s) instead."
7420 msgstr ""
7421
7422 #. type: =head2
7423 #: ../fish/guestfish-actions.pod:1196
7424 msgid "filesize"
7425 msgstr ""
7426
7427 #. type: verbatim
7428 #: ../fish/guestfish-actions.pod:1198
7429 #, no-wrap
7430 msgid ""
7431 " filesize file\n"
7432 "\n"
7433 msgstr ""
7434
7435 #. type: textblock
7436 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7437 msgid "This command returns the size of C<file> in bytes."
7438 msgstr ""
7439
7440 #. type: textblock
7441 #: ../fish/guestfish-actions.pod:1202
7442 msgid ""
7443 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
7444 "L</is-file> etc.  To get the size of block devices, use "
7445 "L</blockdev-getsize64>."
7446 msgstr ""
7447
7448 #. type: =head2
7449 #: ../fish/guestfish-actions.pod:1206
7450 msgid "fill"
7451 msgstr ""
7452
7453 #. type: verbatim
7454 #: ../fish/guestfish-actions.pod:1208
7455 #, no-wrap
7456 msgid ""
7457 " fill c len path\n"
7458 "\n"
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7463 msgid ""
7464 "This command creates a new file called C<path>.  The initial content of the "
7465 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
7466 "C<[0..255]>."
7467 msgstr ""
7468
7469 #. type: textblock
7470 #: ../fish/guestfish-actions.pod:1214
7471 msgid ""
7472 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7473 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7474 "L</fill-pattern>."
7475 msgstr ""
7476
7477 #. type: =head2
7478 #: ../fish/guestfish-actions.pod:1219
7479 msgid "fill-pattern"
7480 msgstr ""
7481
7482 #. type: verbatim
7483 #: ../fish/guestfish-actions.pod:1221
7484 #, no-wrap
7485 msgid ""
7486 " fill-pattern pattern len path\n"
7487 "\n"
7488 msgstr ""
7489
7490 #. type: textblock
7491 #: ../fish/guestfish-actions.pod:1223
7492 msgid ""
7493 "This function is like L</fill> except that it creates a new file of length "
7494 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7495 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7496 "bytes."
7497 msgstr ""
7498
7499 #. type: =head2
7500 #: ../fish/guestfish-actions.pod:1228
7501 msgid "find"
7502 msgstr ""
7503
7504 #. type: verbatim
7505 #: ../fish/guestfish-actions.pod:1230
7506 #, no-wrap
7507 msgid ""
7508 " find directory\n"
7509 "\n"
7510 msgstr ""
7511
7512 #. type: textblock
7513 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7514 msgid ""
7515 "This command lists out all files and directories, recursively, starting at "
7516 "C<directory>.  It is essentially equivalent to running the shell command "
7517 "C<find directory -print> but some post-processing happens on the output, "
7518 "described below."
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7523 msgid ""
7524 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7525 "structure was:"
7526 msgstr ""
7527
7528 #. type: verbatim
7529 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7530 #, no-wrap
7531 msgid ""
7532 " /tmp/a\n"
7533 " /tmp/b\n"
7534 " /tmp/c/d\n"
7535 "\n"
7536 msgstr ""
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:1244
7540 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7541 msgstr ""
7542
7543 #. type: verbatim
7544 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7545 #, no-wrap
7546 msgid ""
7547 " a\n"
7548 " b\n"
7549 " c\n"
7550 " c/d\n"
7551 "\n"
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7556 msgid "If C<directory> is not a directory, then this command returns an error."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7561 msgid "The returned list is sorted."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:1257
7566 msgid "See also L</find0>."
7567 msgstr ""
7568
7569 #. type: =head2
7570 #: ../fish/guestfish-actions.pod:1262
7571 msgid "find0"
7572 msgstr ""
7573
7574 #. type: verbatim
7575 #: ../fish/guestfish-actions.pod:1264
7576 #, no-wrap
7577 msgid ""
7578 " find0 directory (files|-)\n"
7579 "\n"
7580 msgstr ""
7581
7582 #. type: textblock
7583 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7584 msgid ""
7585 "This command lists out all files and directories, recursively, starting at "
7586 "C<directory>, placing the resulting list in the external file called "
7587 "C<files>."
7588 msgstr ""
7589
7590 #. type: textblock
7591 #: ../fish/guestfish-actions.pod:1270
7592 msgid "This command works the same way as L</find> with the following exceptions:"
7593 msgstr ""
7594
7595 #. type: textblock
7596 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7597 msgid "The resulting list is written to an external file."
7598 msgstr ""
7599
7600 #. type: textblock
7601 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7602 msgid ""
7603 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7604 "L<find(1)> option I<-print0>."
7605 msgstr ""
7606
7607 #. type: textblock
7608 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7609 msgid "This command is not limited in the number of names that it can return."
7610 msgstr ""
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7614 msgid "The result list is not sorted."
7615 msgstr ""
7616
7617 #. type: =head2
7618 #: ../fish/guestfish-actions.pod:1297
7619 msgid "findfs-label"
7620 msgstr ""
7621
7622 #. type: verbatim
7623 #: ../fish/guestfish-actions.pod:1299
7624 #, no-wrap
7625 msgid ""
7626 " findfs-label label\n"
7627 "\n"
7628 msgstr ""
7629
7630 #. type: textblock
7631 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7632 msgid ""
7633 "This command searches the filesystems and returns the one which has the "
7634 "given label.  An error is returned if no such filesystem can be found."
7635 msgstr ""
7636
7637 #. type: textblock
7638 #: ../fish/guestfish-actions.pod:1305
7639 msgid "To find the label of a filesystem, use L</vfs-label>."
7640 msgstr ""
7641
7642 #. type: =head2
7643 #: ../fish/guestfish-actions.pod:1307
7644 msgid "findfs-uuid"
7645 msgstr ""
7646
7647 #. type: verbatim
7648 #: ../fish/guestfish-actions.pod:1309
7649 #, no-wrap
7650 msgid ""
7651 " findfs-uuid uuid\n"
7652 "\n"
7653 msgstr ""
7654
7655 #. type: textblock
7656 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7657 msgid ""
7658 "This command searches the filesystems and returns the one which has the "
7659 "given UUID.  An error is returned if no such filesystem can be found."
7660 msgstr ""
7661
7662 #. type: textblock
7663 #: ../fish/guestfish-actions.pod:1315
7664 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7665 msgstr ""
7666
7667 #. type: =head2
7668 #: ../fish/guestfish-actions.pod:1317
7669 msgid "fsck"
7670 msgstr ""
7671
7672 #. type: verbatim
7673 #: ../fish/guestfish-actions.pod:1319
7674 #, no-wrap
7675 msgid ""
7676 " fsck fstype device\n"
7677 "\n"
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7682 msgid ""
7683 "This runs the filesystem checker (fsck) on C<device> which should have "
7684 "filesystem type C<fstype>."
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7689 msgid ""
7690 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7691 "codes from C<fsck>."
7692 msgstr ""
7693
7694 #. type: textblock
7695 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7696 msgid "Multiple status codes can be summed together."
7697 msgstr ""
7698
7699 #. type: textblock
7700 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7701 msgid ""
7702 "A non-zero return code can mean \"success\", for example if errors have been "
7703 "corrected on the filesystem."
7704 msgstr ""
7705
7706 #. type: textblock
7707 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
7708 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
7713 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7714 msgstr ""
7715
7716 #. type: =head2
7717 #: ../fish/guestfish-actions.pod:1349
7718 msgid "get-append"
7719 msgstr ""
7720
7721 #. type: verbatim
7722 #: ../fish/guestfish-actions.pod:1351
7723 #, no-wrap
7724 msgid ""
7725 " get-append\n"
7726 "\n"
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
7731 msgid ""
7732 "Return the additional kernel options which are added to the guest kernel "
7733 "command line."
7734 msgstr ""
7735
7736 #. type: textblock
7737 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
7738 msgid "If C<NULL> then no options are added."
7739 msgstr ""
7740
7741 #. type: =head2
7742 #: ../fish/guestfish-actions.pod:1358
7743 msgid "get-attach-method"
7744 msgstr ""
7745
7746 #. type: verbatim
7747 #: ../fish/guestfish-actions.pod:1360
7748 #, no-wrap
7749 msgid ""
7750 " get-attach-method\n"
7751 "\n"
7752 msgstr ""
7753
7754 #. type: textblock
7755 #: ../fish/guestfish-actions.pod:1362
7756 msgid "Return the current attach method.  See L</set-attach-method>."
7757 msgstr ""
7758
7759 #. type: =head2
7760 #: ../fish/guestfish-actions.pod:1364
7761 msgid "get-autosync"
7762 msgstr ""
7763
7764 #. type: verbatim
7765 #: ../fish/guestfish-actions.pod:1366
7766 #, no-wrap
7767 msgid ""
7768 " get-autosync\n"
7769 "\n"
7770 msgstr ""
7771
7772 #. type: textblock
7773 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
7774 msgid "Get the autosync flag."
7775 msgstr ""
7776
7777 #. type: =head2
7778 #: ../fish/guestfish-actions.pod:1370
7779 msgid "get-direct"
7780 msgstr ""
7781
7782 #. type: verbatim
7783 #: ../fish/guestfish-actions.pod:1372
7784 #, no-wrap
7785 msgid ""
7786 " get-direct\n"
7787 "\n"
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
7792 msgid "Return the direct appliance mode flag."
7793 msgstr ""
7794
7795 #. type: =head2
7796 #: ../fish/guestfish-actions.pod:1376
7797 msgid "get-e2label"
7798 msgstr ""
7799
7800 #. type: verbatim
7801 #: ../fish/guestfish-actions.pod:1378
7802 #, no-wrap
7803 msgid ""
7804 " get-e2label device\n"
7805 "\n"
7806 msgstr ""
7807
7808 #. type: textblock
7809 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
7810 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7811 msgstr ""
7812
7813 #. type: textblock
7814 #: ../fish/guestfish-actions.pod:1383
7815 msgid ""
7816 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7817 "instead."
7818 msgstr ""
7819
7820 #. type: =head2
7821 #: ../fish/guestfish-actions.pod:1390
7822 msgid "get-e2uuid"
7823 msgstr ""
7824
7825 #. type: verbatim
7826 #: ../fish/guestfish-actions.pod:1392
7827 #, no-wrap
7828 msgid ""
7829 " get-e2uuid device\n"
7830 "\n"
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
7835 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7836 msgstr ""
7837
7838 #. type: textblock
7839 #: ../fish/guestfish-actions.pod:1397
7840 msgid ""
7841 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7842 "instead."
7843 msgstr ""
7844
7845 #. type: =head2
7846 #: ../fish/guestfish-actions.pod:1404
7847 msgid "get-memsize"
7848 msgstr ""
7849
7850 #. type: verbatim
7851 #: ../fish/guestfish-actions.pod:1406
7852 #, no-wrap
7853 msgid ""
7854 " get-memsize\n"
7855 "\n"
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
7860 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
7861 msgstr ""
7862
7863 #. type: textblock
7864 #: ../fish/guestfish-actions.pod:1411
7865 msgid ""
7866 "If L</set-memsize> was not called on this handle, and if "
7867 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7868 "value for memsize."
7869 msgstr ""
7870
7871 #. type: textblock
7872 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
7873 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7874 msgstr ""
7875
7876 #. type: =head2
7877 #: ../fish/guestfish-actions.pod:1418
7878 msgid "get-network"
7879 msgstr ""
7880
7881 #. type: verbatim
7882 #: ../fish/guestfish-actions.pod:1420
7883 #, no-wrap
7884 msgid ""
7885 " get-network\n"
7886 "\n"
7887 msgstr ""
7888
7889 #. type: textblock
7890 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
7891 msgid "This returns the enable network flag."
7892 msgstr ""
7893
7894 #. type: =head2
7895 #: ../fish/guestfish-actions.pod:1424
7896 msgid "get-path"
7897 msgstr ""
7898
7899 #. type: verbatim
7900 #: ../fish/guestfish-actions.pod:1426
7901 #, no-wrap
7902 msgid ""
7903 " get-path\n"
7904 "\n"
7905 msgstr ""
7906
7907 #. type: textblock
7908 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
7909 msgid "Return the current search path."
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
7914 msgid ""
7915 "This is always non-NULL.  If it wasn't set already, then this will return "
7916 "the default path."
7917 msgstr ""
7918
7919 #. type: =head2
7920 #: ../fish/guestfish-actions.pod:1433
7921 msgid "get-pgroup"
7922 msgstr ""
7923
7924 #. type: verbatim
7925 #: ../fish/guestfish-actions.pod:1435
7926 #, no-wrap
7927 msgid ""
7928 " get-pgroup\n"
7929 "\n"
7930 msgstr ""
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
7934 msgid "This returns the process group flag."
7935 msgstr ""
7936
7937 #. type: =head2
7938 #: ../fish/guestfish-actions.pod:1439
7939 msgid "get-pid"
7940 msgstr ""
7941
7942 #. type: =head2
7943 #: ../fish/guestfish-actions.pod:1441
7944 msgid "pid"
7945 msgstr ""
7946
7947 #. type: verbatim
7948 #: ../fish/guestfish-actions.pod:1443
7949 #, no-wrap
7950 msgid ""
7951 " get-pid\n"
7952 "\n"
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
7957 msgid ""
7958 "Return the process ID of the qemu subprocess.  If there is no qemu "
7959 "subprocess, then this will return an error."
7960 msgstr ""
7961
7962 #. type: textblock
7963 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
7964 msgid "This is an internal call used for debugging and testing."
7965 msgstr ""
7966
7967 #. type: =head2
7968 #: ../fish/guestfish-actions.pod:1450
7969 msgid "get-qemu"
7970 msgstr ""
7971
7972 #. type: verbatim
7973 #: ../fish/guestfish-actions.pod:1452
7974 #, no-wrap
7975 msgid ""
7976 " get-qemu\n"
7977 "\n"
7978 msgstr ""
7979
7980 #. type: textblock
7981 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
7982 msgid "Return the current qemu binary."
7983 msgstr ""
7984
7985 #. type: textblock
7986 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
7987 msgid ""
7988 "This is always non-NULL.  If it wasn't set already, then this will return "
7989 "the default qemu binary name."
7990 msgstr ""
7991
7992 #. type: =head2
7993 #: ../fish/guestfish-actions.pod:1459
7994 msgid "get-recovery-proc"
7995 msgstr ""
7996
7997 #. type: verbatim
7998 #: ../fish/guestfish-actions.pod:1461
7999 #, no-wrap
8000 msgid ""
8001 " get-recovery-proc\n"
8002 "\n"
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
8007 msgid "Return the recovery process enabled flag."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:1465
8012 msgid "get-selinux"
8013 msgstr ""
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:1467
8017 #, no-wrap
8018 msgid ""
8019 " get-selinux\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:1469
8025 msgid ""
8026 "This returns the current setting of the selinux flag which is passed to the "
8027 "appliance at boot time.  See L</set-selinux>."
8028 msgstr ""
8029
8030 #. type: =head2
8031 #: ../fish/guestfish-actions.pod:1475
8032 msgid "get-smp"
8033 msgstr ""
8034
8035 #. type: verbatim
8036 #: ../fish/guestfish-actions.pod:1477
8037 #, no-wrap
8038 msgid ""
8039 " get-smp\n"
8040 "\n"
8041 msgstr ""
8042
8043 #. type: textblock
8044 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8045 msgid "This returns the number of virtual CPUs assigned to the appliance."
8046 msgstr ""
8047
8048 #. type: =head2
8049 #: ../fish/guestfish-actions.pod:1481
8050 msgid "get-state"
8051 msgstr ""
8052
8053 #. type: verbatim
8054 #: ../fish/guestfish-actions.pod:1483
8055 #, no-wrap
8056 msgid ""
8057 " get-state\n"
8058 "\n"
8059 msgstr ""
8060
8061 #. type: textblock
8062 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8063 msgid ""
8064 "This returns the current state as an opaque integer.  This is only useful "
8065 "for printing debug and internal error messages."
8066 msgstr ""
8067
8068 #. type: textblock
8069 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490 ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616 ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
8070 msgid "For more information on states, see L<guestfs(3)>."
8071 msgstr ""
8072
8073 #. type: =head2
8074 #: ../fish/guestfish-actions.pod:1490
8075 msgid "get-trace"
8076 msgstr ""
8077
8078 #. type: verbatim
8079 #: ../fish/guestfish-actions.pod:1492
8080 #, no-wrap
8081 msgid ""
8082 " get-trace\n"
8083 "\n"
8084 msgstr ""
8085
8086 #. type: textblock
8087 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8088 msgid "Return the command trace flag."
8089 msgstr ""
8090
8091 #. type: =head2
8092 #: ../fish/guestfish-actions.pod:1496
8093 msgid "get-umask"
8094 msgstr ""
8095
8096 #. type: verbatim
8097 #: ../fish/guestfish-actions.pod:1498
8098 #, no-wrap
8099 msgid ""
8100 " get-umask\n"
8101 "\n"
8102 msgstr ""
8103
8104 #. type: textblock
8105 #: ../fish/guestfish-actions.pod:1500
8106 msgid ""
8107 "Return the current umask.  By default the umask is C<022> unless it has been "
8108 "set by calling L</umask>."
8109 msgstr ""
8110
8111 #. type: =head2
8112 #: ../fish/guestfish-actions.pod:1503
8113 msgid "get-verbose"
8114 msgstr ""
8115
8116 #. type: verbatim
8117 #: ../fish/guestfish-actions.pod:1505
8118 #, no-wrap
8119 msgid ""
8120 " get-verbose\n"
8121 "\n"
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8126 msgid "This returns the verbose messages flag."
8127 msgstr ""
8128
8129 #. type: =head2
8130 #: ../fish/guestfish-actions.pod:1509
8131 msgid "getcon"
8132 msgstr ""
8133
8134 #. type: verbatim
8135 #: ../fish/guestfish-actions.pod:1511
8136 #, no-wrap
8137 msgid ""
8138 " getcon\n"
8139 "\n"
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8144 msgid "This gets the SELinux security context of the daemon."
8145 msgstr ""
8146
8147 #. type: textblock
8148 #: ../fish/guestfish-actions.pod:1515
8149 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8150 msgstr ""
8151
8152 #. type: =head2
8153 #: ../fish/guestfish-actions.pod:1518
8154 msgid "getxattr"
8155 msgstr ""
8156
8157 #. type: verbatim
8158 #: ../fish/guestfish-actions.pod:1520
8159 #, no-wrap
8160 msgid ""
8161 " getxattr path name\n"
8162 "\n"
8163 msgstr ""
8164
8165 #. type: textblock
8166 #: ../fish/guestfish-actions.pod:1522
8167 msgid ""
8168 "Get a single extended attribute from file C<path> named C<name>.  This call "
8169 "follows symlinks.  If you want to lookup an extended attribute for the "
8170 "symlink itself, use L</lgetxattr>."
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8175 msgid ""
8176 "Normally it is better to get all extended attributes from a file in one go "
8177 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8178 "buggy and do not provide a way to list out attributes.  For these "
8179 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8180 "attributes you want in advance and call this function."
8181 msgstr ""
8182
8183 #. type: textblock
8184 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586 ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
8185 msgid ""
8186 "Extended attribute values are blobs of binary data.  If there is no extended "
8187 "attribute named C<name>, this returns an error."
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:1536
8192 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8193 msgstr ""
8194
8195 #. type: =head2
8196 #: ../fish/guestfish-actions.pod:1538
8197 msgid "getxattrs"
8198 msgstr ""
8199
8200 #. type: verbatim
8201 #: ../fish/guestfish-actions.pod:1540
8202 #, no-wrap
8203 msgid ""
8204 " getxattrs path\n"
8205 "\n"
8206 msgstr ""
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8210 msgid "This call lists the extended attributes of the file or directory C<path>."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8215 msgid ""
8216 "At the system call level, this is a combination of the L<listxattr(2)> and "
8217 "L<getxattr(2)> calls."
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../fish/guestfish-actions.pod:1548
8222 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8223 msgstr ""
8224
8225 #. type: =head2
8226 #: ../fish/guestfish-actions.pod:1550
8227 msgid "glob-expand"
8228 msgstr ""
8229
8230 #. type: verbatim
8231 #: ../fish/guestfish-actions.pod:1552
8232 #, no-wrap
8233 msgid ""
8234 " glob-expand pattern\n"
8235 "\n"
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8240 msgid ""
8241 "This command searches for all the pathnames matching C<pattern> according to "
8242 "the wildcard expansion rules used by the shell."
8243 msgstr ""
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8247 msgid "If no paths match, then this returns an empty list (note: not an error)."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8252 msgid ""
8253 "It is just a wrapper around the C L<glob(3)> function with flags "
8254 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
8255 msgstr ""
8256
8257 #. type: =head2
8258 #: ../fish/guestfish-actions.pod:1565
8259 msgid "grep"
8260 msgstr ""
8261
8262 #. type: verbatim
8263 #: ../fish/guestfish-actions.pod:1567
8264 #, no-wrap
8265 msgid ""
8266 " grep regex path\n"
8267 "\n"
8268 msgstr ""
8269
8270 #. type: textblock
8271 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8272 msgid "This calls the external C<grep> program and returns the matching lines."
8273 msgstr ""
8274
8275 #. type: =head2
8276 #: ../fish/guestfish-actions.pod:1575
8277 msgid "grepi"
8278 msgstr ""
8279
8280 #. type: verbatim
8281 #: ../fish/guestfish-actions.pod:1577
8282 #, no-wrap
8283 msgid ""
8284 " grepi regex path\n"
8285 "\n"
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8290 msgid "This calls the external C<grep -i> program and returns the matching lines."
8291 msgstr ""
8292
8293 #. type: =head2
8294 #: ../fish/guestfish-actions.pod:1585
8295 msgid "grub-install"
8296 msgstr ""
8297
8298 #. type: verbatim
8299 #: ../fish/guestfish-actions.pod:1587
8300 #, no-wrap
8301 msgid ""
8302 " grub-install root device\n"
8303 "\n"
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8308 msgid ""
8309 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8310 "with the root directory being C<root>."
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8315 msgid ""
8316 "There is currently no way in the API to install grub2, which is used by most "
8317 "modern Linux guests.  It is possible to run the grub2 command from the "
8318 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8319 msgstr ""
8320
8321 #. type: textblock
8322 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8323 msgid ""
8324 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8325 "compatible with itself, so this only works in rather narrow circumstances.  "
8326 "Careful testing with each guest version is advisable."
8327 msgstr ""
8328
8329 #. type: textblock
8330 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8331 msgid ""
8332 "If grub-install reports the error \"No suitable drive was found in the "
8333 "generated device map.\" it may be that you need to create a "
8334 "C</boot/grub/device.map> file first that contains the mapping between grub "
8335 "device names and Linux device names.  It is usually sufficient to create a "
8336 "file containing:"
8337 msgstr ""
8338
8339 #. type: verbatim
8340 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8341 #, no-wrap
8342 msgid ""
8343 " (hd0) /dev/vda\n"
8344 "\n"
8345 msgstr ""
8346
8347 #. type: textblock
8348 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8349 msgid "replacing C</dev/vda> with the name of the installation device."
8350 msgstr ""
8351
8352 #. type: =head2
8353 #: ../fish/guestfish-actions.pod:1625
8354 msgid "head"
8355 msgstr ""
8356
8357 #. type: verbatim
8358 #: ../fish/guestfish-actions.pod:1627
8359 #, no-wrap
8360 msgid ""
8361 " head path\n"
8362 "\n"
8363 msgstr ""
8364
8365 #. type: textblock
8366 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8367 msgid ""
8368 "This command returns up to the first 10 lines of a file as a list of "
8369 "strings."
8370 msgstr ""
8371
8372 #. type: =head2
8373 #: ../fish/guestfish-actions.pod:1635
8374 msgid "head-n"
8375 msgstr ""
8376
8377 #. type: verbatim
8378 #: ../fish/guestfish-actions.pod:1637
8379 #, no-wrap
8380 msgid ""
8381 " head-n nrlines path\n"
8382 "\n"
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8387 msgid ""
8388 "If the parameter C<nrlines> is a positive number, this returns the first "
8389 "C<nrlines> lines of the file C<path>."
8390 msgstr ""
8391
8392 #. type: textblock
8393 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8394 msgid ""
8395 "If the parameter C<nrlines> is a negative number, this returns lines from "
8396 "the file C<path>, excluding the last C<nrlines> lines."
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
8401 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8402 msgstr ""
8403
8404 #. type: =head2
8405 #: ../fish/guestfish-actions.pod:1650
8406 msgid "hexdump"
8407 msgstr ""
8408
8409 #. type: verbatim
8410 #: ../fish/guestfish-actions.pod:1652
8411 #, no-wrap
8412 msgid ""
8413 " hexdump path\n"
8414 "\n"
8415 msgstr ""
8416
8417 #. type: textblock
8418 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8419 msgid ""
8420 "This runs C<hexdump -C> on the given C<path>.  The result is the "
8421 "human-readable, canonical hex dump of the file."
8422 msgstr ""
8423
8424 #. type: =head2
8425 #: ../fish/guestfish-actions.pod:1660
8426 msgid "initrd-cat"
8427 msgstr ""
8428
8429 #. type: verbatim
8430 #: ../fish/guestfish-actions.pod:1662
8431 #, no-wrap
8432 msgid ""
8433 " initrd-cat initrdpath filename\n"
8434 "\n"
8435 msgstr ""
8436
8437 #. type: textblock
8438 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8439 msgid ""
8440 "This command unpacks the file C<filename> from the initrd file called "
8441 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8442 "character."
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8447 msgid ""
8448 "For example, in guestfish you could use the following command to examine the "
8449 "boot script (usually called C</init>)  contained in a Linux initrd or "
8450 "initramfs image:"
8451 msgstr ""
8452
8453 #. type: verbatim
8454 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8455 #, no-wrap
8456 msgid ""
8457 " initrd-cat /boot/initrd-<version>.img init\n"
8458 "\n"
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:1674
8463 msgid "See also L</initrd-list>."
8464 msgstr ""
8465
8466 #. type: =head2
8467 #: ../fish/guestfish-actions.pod:1679
8468 msgid "initrd-list"
8469 msgstr ""
8470
8471 #. type: verbatim
8472 #: ../fish/guestfish-actions.pod:1681
8473 #, no-wrap
8474 msgid ""
8475 " initrd-list path\n"
8476 "\n"
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8481 msgid "This command lists out files contained in an initrd."
8482 msgstr ""
8483
8484 #. type: textblock
8485 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8486 msgid ""
8487 "The files are listed without any initial C</> character.  The files are "
8488 "listed in the order they appear (not necessarily alphabetical).  Directory "
8489 "names are listed as separate items."
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8494 msgid ""
8495 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8496 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8497 "files)."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:1693
8502 msgid "inotify-add-watch"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:1695
8507 #, no-wrap
8508 msgid ""
8509 " inotify-add-watch path mask\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8515 msgid "Watch C<path> for the events listed in C<mask>."
8516 msgstr ""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8520 msgid ""
8521 "Note that if C<path> is a directory then events within that directory are "
8522 "watched, but this does I<not> happen recursively (in subdirectories)."
8523 msgstr ""
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8527 msgid ""
8528 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8529 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8530 msgstr ""
8531
8532 #. type: =head2
8533 #: ../fish/guestfish-actions.pod:1707
8534 msgid "inotify-close"
8535 msgstr ""
8536
8537 #. type: verbatim
8538 #: ../fish/guestfish-actions.pod:1709
8539 #, no-wrap
8540 msgid ""
8541 " inotify-close\n"
8542 "\n"
8543 msgstr ""
8544
8545 #. type: textblock
8546 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8547 msgid ""
8548 "This closes the inotify handle which was previously opened by inotify_init.  "
8549 "It removes all watches, throws away any pending events, and deallocates all "
8550 "resources."
8551 msgstr ""
8552
8553 #. type: =head2
8554 #: ../fish/guestfish-actions.pod:1715
8555 msgid "inotify-files"
8556 msgstr ""
8557
8558 #. type: verbatim
8559 #: ../fish/guestfish-actions.pod:1717
8560 #, no-wrap
8561 msgid ""
8562 " inotify-files\n"
8563 "\n"
8564 msgstr ""
8565
8566 #. type: textblock
8567 #: ../fish/guestfish-actions.pod:1719
8568 msgid ""
8569 "This function is a helpful wrapper around L</inotify-read> which just "
8570 "returns a list of pathnames of objects that were touched.  The returned "
8571 "pathnames are sorted and deduplicated."
8572 msgstr ""
8573
8574 #. type: =head2
8575 #: ../fish/guestfish-actions.pod:1723
8576 msgid "inotify-init"
8577 msgstr ""
8578
8579 #. type: verbatim
8580 #: ../fish/guestfish-actions.pod:1725
8581 #, no-wrap
8582 msgid ""
8583 " inotify-init maxevents\n"
8584 "\n"
8585 msgstr ""
8586
8587 #. type: textblock
8588 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8589 msgid ""
8590 "This command creates a new inotify handle.  The inotify subsystem can be "
8591 "used to notify events which happen to objects in the guest filesystem."
8592 msgstr ""
8593
8594 #. type: textblock
8595 #: ../fish/guestfish-actions.pod:1731
8596 msgid ""
8597 "C<maxevents> is the maximum number of events which will be queued up between "
8598 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8599 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8600 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8601 "but records the fact that it threw them away by setting a flag "
8602 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8603 msgstr ""
8604
8605 #. type: textblock
8606 #: ../fish/guestfish-actions.pod:1741
8607 msgid ""
8608 "Before any events are generated, you have to add some watches to the "
8609 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8610 "L</inotify-watch-all>."
8611 msgstr ""
8612
8613 #. type: textblock
8614 #: ../fish/guestfish-actions.pod:1747
8615 msgid ""
8616 "Queued up events should be read periodically by calling L</inotify-read> (or "
8617 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8618 "If you don't read the events out often enough then you risk the internal "
8619 "queue overflowing."
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:1754
8624 msgid ""
8625 "The handle should be closed after use by calling L</inotify-close>.  This "
8626 "also removes any watches automatically."
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
8631 msgid ""
8632 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8633 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8634 "that there is one global inotify handle per libguestfs instance."
8635 msgstr ""
8636
8637 #. type: =head2
8638 #: ../fish/guestfish-actions.pod:1763
8639 msgid "inotify-read"
8640 msgstr ""
8641
8642 #. type: verbatim
8643 #: ../fish/guestfish-actions.pod:1765
8644 #, no-wrap
8645 msgid ""
8646 " inotify-read\n"
8647 "\n"
8648 msgstr ""
8649
8650 #. type: textblock
8651 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
8652 msgid ""
8653 "Return the complete queue of events that have happened since the previous "
8654 "read call."
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
8659 msgid "If no events have happened, this returns an empty list."
8660 msgstr ""
8661
8662 #. type: textblock
8663 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
8664 msgid ""
8665 "I<Note>: In order to make sure that all events have been read, you must call "
8666 "this function repeatedly until it returns an empty list.  The reason is that "
8667 "the call will read events up to the maximum appliance-to-host message size "
8668 "and leave remaining events in the queue."
8669 msgstr ""
8670
8671 #. type: =head2
8672 #: ../fish/guestfish-actions.pod:1778
8673 msgid "inotify-rm-watch"
8674 msgstr ""
8675
8676 #. type: verbatim
8677 #: ../fish/guestfish-actions.pod:1780
8678 #, no-wrap
8679 msgid ""
8680 " inotify-rm-watch wd\n"
8681 "\n"
8682 msgstr ""
8683
8684 #. type: textblock
8685 #: ../fish/guestfish-actions.pod:1782
8686 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8687 msgstr ""
8688
8689 #. type: =head2
8690 #: ../fish/guestfish-actions.pod:1785
8691 msgid "inspect-get-arch"
8692 msgstr ""
8693
8694 #. type: verbatim
8695 #: ../fish/guestfish-actions.pod:1787
8696 #, no-wrap
8697 msgid ""
8698 " inspect-get-arch root\n"
8699 "\n"
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:1789
8704 msgid ""
8705 "This returns the architecture of the inspected operating system.  The "
8706 "possible return values are listed under L</file-architecture>."
8707 msgstr ""
8708
8709 #. type: textblock
8710 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
8711 msgid ""
8712 "If the architecture could not be determined, then the string C<unknown> is "
8713 "returned."
8714 msgstr ""
8715
8716 #. type: textblock
8717 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883 ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119 ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226 ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252 ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747 ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095 ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206 ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280 ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340 ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377 ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411 ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
8718 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8719 msgstr ""
8720
8721 #. type: =head2
8722 #: ../fish/guestfish-actions.pod:1798
8723 msgid "inspect-get-distro"
8724 msgstr ""
8725
8726 #. type: verbatim
8727 #: ../fish/guestfish-actions.pod:1800
8728 #, no-wrap
8729 msgid ""
8730 " inspect-get-distro root\n"
8731 "\n"
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
8736 msgid "This returns the distro (distribution) of the inspected operating system."
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
8741 msgid "Currently defined distros are:"
8742 msgstr ""
8743
8744 #. type: =item
8745 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
8746 msgid "\"archlinux\""
8747 msgstr ""
8748
8749 #. type: textblock
8750 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
8751 msgid "Arch Linux."
8752 msgstr ""
8753
8754 #. type: =item
8755 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
8756 msgid "\"centos\""
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
8761 msgid "CentOS."
8762 msgstr ""
8763
8764 #. type: =item
8765 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
8766 msgid "\"debian\""
8767 msgstr ""
8768
8769 #. type: textblock
8770 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
8771 msgid "Debian."
8772 msgstr ""
8773
8774 #. type: =item
8775 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
8776 msgid "\"fedora\""
8777 msgstr ""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
8781 msgid "Fedora."
8782 msgstr ""
8783
8784 #. type: =item
8785 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
8786 msgid "\"gentoo\""
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
8791 msgid "Gentoo."
8792 msgstr ""
8793
8794 #. type: =item
8795 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
8796 msgid "\"linuxmint\""
8797 msgstr ""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
8801 msgid "Linux Mint."
8802 msgstr ""
8803
8804 #. type: =item
8805 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
8806 msgid "\"mandriva\""
8807 msgstr ""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
8811 msgid "Mandriva."
8812 msgstr ""
8813
8814 #. type: =item
8815 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
8816 msgid "\"meego\""
8817 msgstr ""
8818
8819 #. type: textblock
8820 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
8821 msgid "MeeGo."
8822 msgstr ""
8823
8824 #. type: =item
8825 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
8826 msgid "\"pardus\""
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
8831 msgid "Pardus."
8832 msgstr ""
8833
8834 #. type: =item
8835 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
8836 msgid "\"redhat-based\""
8837 msgstr ""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
8841 msgid "Some Red Hat-derived distro."
8842 msgstr ""
8843
8844 #. type: =item
8845 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
8846 msgid "\"rhel\""
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
8851 msgid "Red Hat Enterprise Linux."
8852 msgstr ""
8853
8854 #. type: =item
8855 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
8856 msgid "\"scientificlinux\""
8857 msgstr ""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
8861 msgid "Scientific Linux."
8862 msgstr ""
8863
8864 #. type: =item
8865 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
8866 msgid "\"slackware\""
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
8871 msgid "Slackware."
8872 msgstr ""
8873
8874 #. type: =item
8875 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
8876 msgid "\"ttylinux\""
8877 msgstr ""
8878
8879 #. type: textblock
8880 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
8881 msgid "ttylinux."
8882 msgstr ""
8883
8884 #. type: =item
8885 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
8886 msgid "\"ubuntu\""
8887 msgstr ""
8888
8889 #. type: textblock
8890 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
8891 msgid "Ubuntu."
8892 msgstr ""
8893
8894 #. type: =item
8895 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827 ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8896 msgid "\"unknown\""
8897 msgstr ""
8898
8899 #. type: textblock
8900 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
8901 msgid "The distro could not be determined."
8902 msgstr ""
8903
8904 #. type: =item
8905 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
8906 msgid "\"windows\""
8907 msgstr ""
8908
8909 #. type: textblock
8910 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
8911 msgid ""
8912 "Windows does not have distributions.  This string is returned if the OS type "
8913 "is Windows."
8914 msgstr ""
8915
8916 #. type: textblock
8917 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
8918 msgid ""
8919 "Future versions of libguestfs may return other strings here.  The caller "
8920 "should be prepared to handle any string."
8921 msgstr ""
8922
8923 #. type: =head2
8924 #: ../fish/guestfish-actions.pod:1885
8925 msgid "inspect-get-drive-mappings"
8926 msgstr ""
8927
8928 #. type: verbatim
8929 #: ../fish/guestfish-actions.pod:1887
8930 #, no-wrap
8931 msgid ""
8932 " inspect-get-drive-mappings root\n"
8933 "\n"
8934 msgstr ""
8935
8936 #. type: textblock
8937 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
8938 msgid ""
8939 "This call is useful for Windows which uses a primitive system of assigning "
8940 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8941 "Windows Registry to find out how disks/partitions are mapped to drive "
8942 "letters, and returns a hash table as in the example below:"
8943 msgstr ""
8944
8945 #. type: verbatim
8946 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
8947 #, no-wrap
8948 msgid ""
8949 " C      =>     /dev/vda2\n"
8950 " E      =>     /dev/vdb1\n"
8951 " F      =>     /dev/vdc1\n"
8952 "\n"
8953 msgstr ""
8954
8955 #. type: textblock
8956 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
8957 msgid ""
8958 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8959 "and just contains the drive letter, without the customary colon separator "
8960 "character."
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
8965 msgid ""
8966 "In future we may support other operating systems that also used drive "
8967 "letters, but the keys for those might not be case insensitive and might be "
8968 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8969 "C<h1> etc."
8970 msgstr ""
8971
8972 #. type: textblock
8973 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
8974 msgid ""
8975 "For Windows guests, currently only hard drive mappings are returned.  "
8976 "Removable disks (eg. DVD-ROMs) are ignored."
8977 msgstr ""
8978
8979 #. type: textblock
8980 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
8981 msgid ""
8982 "For guests that do not use drive mappings, or if the drive mappings could "
8983 "not be determined, this returns an empty hash table."
8984 msgstr ""
8985
8986 #. type: textblock
8987 #: ../fish/guestfish-actions.pod:1914
8988 msgid ""
8989 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8990 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
8991 msgstr ""
8992
8993 #. type: =head2
8994 #: ../fish/guestfish-actions.pod:1918
8995 msgid "inspect-get-filesystems"
8996 msgstr ""
8997
8998 #. type: verbatim
8999 #: ../fish/guestfish-actions.pod:1920
9000 #, no-wrap
9001 msgid ""
9002 " inspect-get-filesystems root\n"
9003 "\n"
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
9008 msgid ""
9009 "This returns a list of all the filesystems that we think are associated with "
9010 "this operating system.  This includes the root filesystem, other ordinary "
9011 "filesystems, and non-mounted devices like swap partitions."
9012 msgstr ""
9013
9014 #. type: textblock
9015 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
9016 msgid ""
9017 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9018 "to be shared between operating systems."
9019 msgstr ""
9020
9021 #. type: textblock
9022 #: ../fish/guestfish-actions.pod:1930
9023 msgid ""
9024 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9025 "L</inspect-get-mountpoints>."
9026 msgstr ""
9027
9028 #. type: =head2
9029 #: ../fish/guestfish-actions.pod:1933
9030 msgid "inspect-get-format"
9031 msgstr ""
9032
9033 #. type: verbatim
9034 #: ../fish/guestfish-actions.pod:1935
9035 #, no-wrap
9036 msgid ""
9037 " inspect-get-format root\n"
9038 "\n"
9039 msgstr ""
9040
9041 #. type: textblock
9042 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
9043 msgid ""
9044 "This returns the format of the inspected operating system.  You can use it "
9045 "to detect install images, live CDs and similar."
9046 msgstr ""
9047
9048 #. type: textblock
9049 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
9050 msgid "Currently defined formats are:"
9051 msgstr ""
9052
9053 #. type: =item
9054 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
9055 msgid "\"installed\""
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
9060 msgid "This is an installed operating system."
9061 msgstr ""
9062
9063 #. type: =item
9064 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9065 msgid "\"installer\""
9066 msgstr ""
9067
9068 #. type: textblock
9069 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
9070 msgid ""
9071 "The disk image being inspected is not an installed operating system, but a "
9072 "I<bootable> install disk, live CD, or similar."
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
9077 msgid "The format of this disk image is not known."
9078 msgstr ""
9079
9080 #. type: =head2
9081 #: ../fish/guestfish-actions.pod:1964
9082 msgid "inspect-get-hostname"
9083 msgstr ""
9084
9085 #. type: verbatim
9086 #: ../fish/guestfish-actions.pod:1966
9087 #, no-wrap
9088 msgid ""
9089 " inspect-get-hostname root\n"
9090 "\n"
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
9095 msgid ""
9096 "This function returns the hostname of the operating system as found by "
9097 "inspection of the guest's configuration files."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
9102 msgid ""
9103 "If the hostname could not be determined, then the string C<unknown> is "
9104 "returned."
9105 msgstr ""
9106
9107 #. type: =head2
9108 #: ../fish/guestfish-actions.pod:1976
9109 msgid "inspect-get-icon"
9110 msgstr ""
9111
9112 #. type: verbatim
9113 #: ../fish/guestfish-actions.pod:1978
9114 #, no-wrap
9115 msgid ""
9116 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9117 "\n"
9118 msgstr ""
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
9122 msgid ""
9123 "This function returns an icon corresponding to the inspected operating "
9124 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9125 "to PNG if necessary)."
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
9130 msgid ""
9131 "If it was not possible to get an icon this function returns a zero-length "
9132 "(non-NULL) buffer.  I<Callers must check for this case>."
9133 msgstr ""
9134
9135 #. type: textblock
9136 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
9137 msgid ""
9138 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9139 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9140 "this file will be returned.  You can disable favicons by passing the "
9141 "optional C<favicon> boolean as false (default is true)."
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
9146 msgid ""
9147 "If finding the favicon fails, then we look in other places in the guest for "
9148 "a suitable icon."
9149 msgstr ""
9150
9151 #. type: textblock
9152 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
9153 msgid ""
9154 "If the optional C<highquality> boolean is true then only high quality icons "
9155 "are returned, which means only icons of high resolution with an alpha "
9156 "channel.  The default (false) is to return any icon we can, even if it is of "
9157 "substandard quality."
9158 msgstr ""
9159
9160 #. type: textblock
9161 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
9162 msgid ""
9163 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9164 "before you call this, since it needs to read information from the guest "
9165 "filesystem during the call."
9166 msgstr ""
9167
9168 #. type: textblock
9169 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
9170 msgid ""
9171 "B<Security:> The icon data comes from the untrusted guest, and should be "
9172 "treated with caution.  PNG files have been known to contain exploits.  "
9173 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9174 "trying to process or display the icon."
9175 msgstr ""
9176
9177 #. type: textblock
9178 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9179 msgid ""
9180 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9181 "tries to return the largest, highest quality icon available.  The "
9182 "application must scale the icon to the required size."
9183 msgstr ""
9184
9185 #. type: textblock
9186 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
9187 msgid ""
9188 "Extracting icons from Windows guests requires the external C<wrestool> "
9189 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9190 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9191 "installed separately."
9192 msgstr ""
9193
9194 #. type: textblock
9195 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9196 msgid ""
9197 "Operating system icons are usually trademarks.  Seek legal advice before "
9198 "using trademarks in applications."
9199 msgstr ""
9200
9201 #. type: =head2
9202 #: ../fish/guestfish-actions.pod:2042
9203 msgid "inspect-get-major-version"
9204 msgstr ""
9205
9206 #. type: verbatim
9207 #: ../fish/guestfish-actions.pod:2044
9208 #, no-wrap
9209 msgid ""
9210 " inspect-get-major-version root\n"
9211 "\n"
9212 msgstr ""
9213
9214 #. type: textblock
9215 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9216 msgid "This returns the major version number of the inspected operating system."
9217 msgstr ""
9218
9219 #. type: textblock
9220 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9221 msgid ""
9222 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9223 "popular public names used by the operating system.  Notably the operating "
9224 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9225 "1).  You can find out the real versions corresponding to releases of Windows "
9226 "by consulting Wikipedia or MSDN."
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9231 msgid "If the version could not be determined, then C<0> is returned."
9232 msgstr ""
9233
9234 #. type: =head2
9235 #: ../fish/guestfish-actions.pod:2060
9236 msgid "inspect-get-minor-version"
9237 msgstr ""
9238
9239 #. type: verbatim
9240 #: ../fish/guestfish-actions.pod:2062
9241 #, no-wrap
9242 msgid ""
9243 " inspect-get-minor-version root\n"
9244 "\n"
9245 msgstr ""
9246
9247 #. type: textblock
9248 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9249 msgid "This returns the minor version number of the inspected operating system."
9250 msgstr ""
9251
9252 #. type: textblock
9253 #: ../fish/guestfish-actions.pod:2069
9254 msgid ""
9255 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9256 "L</inspect-get-major-version>."
9257 msgstr ""
9258
9259 #. type: =head2
9260 #: ../fish/guestfish-actions.pod:2072
9261 msgid "inspect-get-mountpoints"
9262 msgstr ""
9263
9264 #. type: verbatim
9265 #: ../fish/guestfish-actions.pod:2074
9266 #, no-wrap
9267 msgid ""
9268 " inspect-get-mountpoints root\n"
9269 "\n"
9270 msgstr ""
9271
9272 #. type: textblock
9273 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9274 msgid ""
9275 "This returns a hash of where we think the filesystems associated with this "
9276 "operating system should be mounted.  Callers should note that this is at "
9277 "best an educated guess made by reading configuration files such as "
9278 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
9279 "are non-existent or not mountable and callers should be prepared to handle "
9280 "or ignore failures if they try to mount them."
9281 msgstr ""
9282
9283 #. type: textblock
9284 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9285 msgid ""
9286 "Each element in the returned hashtable has a key which is the path of the "
9287 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9288 "mounted there (eg. C</dev/sda1>)."
9289 msgstr ""
9290
9291 #. type: textblock
9292 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9293 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
9294 msgstr ""
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:2093
9298 msgid ""
9299 "For operating systems like Windows which still use drive letters, this call "
9300 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9301 "information about the mapping of drive letters to partitions, see "
9302 "L</inspect-get-drive-mappings>."
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:2099
9307 msgid ""
9308 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9309 "L</inspect-get-filesystems>."
9310 msgstr ""
9311
9312 #. type: =head2
9313 #: ../fish/guestfish-actions.pod:2102
9314 msgid "inspect-get-package-format"
9315 msgstr ""
9316
9317 #. type: verbatim
9318 #: ../fish/guestfish-actions.pod:2104
9319 #, no-wrap
9320 msgid ""
9321 " inspect-get-package-format root\n"
9322 "\n"
9323 msgstr ""
9324
9325 #. type: textblock
9326 #: ../fish/guestfish-actions.pod:2106
9327 msgid ""
9328 "This function and L</inspect-get-package-management> return the package "
9329 "format and package management tool used by the inspected operating system.  "
9330 "For example for Fedora these functions would return C<rpm> (package format) "
9331 "and C<yum> (package management)."
9332 msgstr ""
9333
9334 #. type: textblock
9335 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9336 msgid ""
9337 "This returns the string C<unknown> if we could not determine the package "
9338 "format I<or> if the operating system does not have a real packaging system "
9339 "(eg. Windows)."
9340 msgstr ""
9341
9342 #. type: textblock
9343 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9344 msgid ""
9345 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9346 "Future versions of libguestfs may return other strings."
9347 msgstr ""
9348
9349 #. type: =head2
9350 #: ../fish/guestfish-actions.pod:2121
9351 msgid "inspect-get-package-management"
9352 msgstr ""
9353
9354 #. type: verbatim
9355 #: ../fish/guestfish-actions.pod:2123
9356 #, no-wrap
9357 msgid ""
9358 " inspect-get-package-management root\n"
9359 "\n"
9360 msgstr ""
9361
9362 #. type: textblock
9363 #: ../fish/guestfish-actions.pod:2125
9364 msgid ""
9365 "L</inspect-get-package-format> and this function return the package format "
9366 "and package management tool used by the inspected operating system.  For "
9367 "example for Fedora these functions would return C<rpm> (package format) and "
9368 "C<yum> (package management)."
9369 msgstr ""
9370
9371 #. type: textblock
9372 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
9373 msgid ""
9374 "This returns the string C<unknown> if we could not determine the package "
9375 "management tool I<or> if the operating system does not have a real packaging "
9376 "system (eg. Windows)."
9377 msgstr ""
9378
9379 #. type: textblock
9380 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
9381 msgid ""
9382 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9383 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9384 "libguestfs may return other strings."
9385 msgstr ""
9386
9387 #. type: =head2
9388 #: ../fish/guestfish-actions.pod:2142
9389 msgid "inspect-get-product-name"
9390 msgstr ""
9391
9392 #. type: verbatim
9393 #: ../fish/guestfish-actions.pod:2144
9394 #, no-wrap
9395 msgid ""
9396 " inspect-get-product-name root\n"
9397 "\n"
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
9402 msgid ""
9403 "This returns the product name of the inspected operating system.  The "
9404 "product name is generally some freeform string which can be displayed to the "
9405 "user, but should not be parsed by programs."
9406 msgstr ""
9407
9408 #. type: textblock
9409 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
9410 msgid ""
9411 "If the product name could not be determined, then the string C<unknown> is "
9412 "returned."
9413 msgstr ""
9414
9415 #. type: =head2
9416 #: ../fish/guestfish-actions.pod:2156
9417 msgid "inspect-get-product-variant"
9418 msgstr ""
9419
9420 #. type: verbatim
9421 #: ../fish/guestfish-actions.pod:2158
9422 #, no-wrap
9423 msgid ""
9424 " inspect-get-product-variant root\n"
9425 "\n"
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
9430 msgid "This returns the product variant of the inspected operating system."
9431 msgstr ""
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
9435 msgid ""
9436 "For Windows guests, this returns the contents of the Registry key "
9437 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
9438 "which is usually a string such as C<Client> or C<Server> (other values are "
9439 "possible).  This can be used to distinguish consumer and enterprise versions "
9440 "of Windows that have the same version number (for example, Windows 7 and "
9441 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9442 "the latter is C<Server>)."
9443 msgstr ""
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9447 msgid ""
9448 "For enterprise Linux guests, in future we intend this to return the product "
9449 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9450 "implemented at present."
9451 msgstr ""
9452
9453 #. type: textblock
9454 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
9455 msgid ""
9456 "If the product variant could not be determined, then the string C<unknown> "
9457 "is returned."
9458 msgstr ""
9459
9460 #. type: textblock
9461 #: ../fish/guestfish-actions.pod:2179
9462 msgid ""
9463 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
9464 "L</inspect-get-product-name>, L</inspect-get-major-version>."
9465 msgstr ""
9466
9467 #. type: =head2
9468 #: ../fish/guestfish-actions.pod:2183
9469 msgid "inspect-get-roots"
9470 msgstr ""
9471
9472 #. type: verbatim
9473 #: ../fish/guestfish-actions.pod:2185
9474 #, no-wrap
9475 msgid ""
9476 " inspect-get-roots\n"
9477 "\n"
9478 msgstr ""
9479
9480 #. type: textblock
9481 #: ../fish/guestfish-actions.pod:2187
9482 msgid ""
9483 "This function is a convenient way to get the list of root devices, as "
9484 "returned from a previous call to L</inspect-os>, but without redoing the "
9485 "whole inspection process."
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:2191
9490 msgid ""
9491 "This returns an empty list if either no root devices were found or the "
9492 "caller has not called L</inspect-os>."
9493 msgstr ""
9494
9495 #. type: =head2
9496 #: ../fish/guestfish-actions.pod:2196
9497 msgid "inspect-get-type"
9498 msgstr ""
9499
9500 #. type: verbatim
9501 #: ../fish/guestfish-actions.pod:2198
9502 #, no-wrap
9503 msgid ""
9504 " inspect-get-type root\n"
9505 "\n"
9506 msgstr ""
9507
9508 #. type: textblock
9509 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9510 msgid ""
9511 "This returns the type of the inspected operating system.  Currently defined "
9512 "types are:"
9513 msgstr ""
9514
9515 #. type: =item
9516 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9517 msgid "\"linux\""
9518 msgstr ""
9519
9520 #. type: textblock
9521 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9522 msgid "Any Linux-based operating system."
9523 msgstr ""
9524
9525 #. type: textblock
9526 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9527 msgid "Any Microsoft Windows operating system."
9528 msgstr ""
9529
9530 #. type: =item
9531 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9532 msgid "\"freebsd\""
9533 msgstr ""
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9537 msgid "FreeBSD."
9538 msgstr ""
9539
9540 #. type: textblock
9541 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9542 msgid "The operating system type could not be determined."
9543 msgstr ""
9544
9545 #. type: =head2
9546 #: ../fish/guestfish-actions.pod:2228
9547 msgid "inspect-get-windows-current-control-set"
9548 msgstr ""
9549
9550 #. type: verbatim
9551 #: ../fish/guestfish-actions.pod:2230
9552 #, no-wrap
9553 msgid ""
9554 " inspect-get-windows-current-control-set root\n"
9555 "\n"
9556 msgstr ""
9557
9558 #. type: textblock
9559 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9560 msgid ""
9561 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9562 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
9567 msgid ""
9568 "This call assumes that the guest is Windows and that the Registry could be "
9569 "examined by inspection.  If this is not the case then an error is returned."
9570 msgstr ""
9571
9572 #. type: =head2
9573 #: ../fish/guestfish-actions.pod:2241
9574 msgid "inspect-get-windows-systemroot"
9575 msgstr ""
9576
9577 #. type: verbatim
9578 #: ../fish/guestfish-actions.pod:2243
9579 #, no-wrap
9580 msgid ""
9581 " inspect-get-windows-systemroot root\n"
9582 "\n"
9583 msgstr ""
9584
9585 #. type: textblock
9586 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
9587 msgid ""
9588 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9589 "is a directory path such as C</WINDOWS>."
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
9594 msgid ""
9595 "This call assumes that the guest is Windows and that the systemroot could be "
9596 "determined by inspection.  If this is not the case then an error is "
9597 "returned."
9598 msgstr ""
9599
9600 #. type: =head2
9601 #: ../fish/guestfish-actions.pod:2254
9602 msgid "inspect-is-live"
9603 msgstr ""
9604
9605 #. type: verbatim
9606 #: ../fish/guestfish-actions.pod:2256
9607 #, no-wrap
9608 msgid ""
9609 " inspect-is-live root\n"
9610 "\n"
9611 msgstr ""
9612
9613 #. type: textblock
9614 #: ../fish/guestfish-actions.pod:2258
9615 msgid ""
9616 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9617 "then this returns true if a live image was detected on the disk."
9618 msgstr ""
9619
9620 #. type: =head2
9621 #: ../fish/guestfish-actions.pod:2264
9622 msgid "inspect-is-multipart"
9623 msgstr ""
9624
9625 #. type: verbatim
9626 #: ../fish/guestfish-actions.pod:2266
9627 #, no-wrap
9628 msgid ""
9629 " inspect-is-multipart root\n"
9630 "\n"
9631 msgstr ""
9632
9633 #. type: textblock
9634 #: ../fish/guestfish-actions.pod:2268
9635 msgid ""
9636 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9637 "then this returns true if the disk is part of a set."
9638 msgstr ""
9639
9640 #. type: =head2
9641 #: ../fish/guestfish-actions.pod:2274
9642 msgid "inspect-is-netinst"
9643 msgstr ""
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:2276
9647 #, no-wrap
9648 msgid ""
9649 " inspect-is-netinst root\n"
9650 "\n"
9651 msgstr ""
9652
9653 #. type: textblock
9654 #: ../fish/guestfish-actions.pod:2278
9655 msgid ""
9656 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9657 "then this returns true if the disk is a network installer, ie. not a "
9658 "self-contained install CD but one which is likely to require network access "
9659 "to complete the install."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:2286
9664 msgid "inspect-list-applications"
9665 msgstr ""
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:2288
9669 #, no-wrap
9670 msgid ""
9671 " inspect-list-applications root\n"
9672 "\n"
9673 msgstr ""
9674
9675 #. type: textblock
9676 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
9677 msgid "Return the list of applications installed in the operating system."
9678 msgstr ""
9679
9680 #. type: textblock
9681 #: ../fish/guestfish-actions.pod:2292
9682 msgid ""
9683 "I<Note:> This call works differently from other parts of the inspection "
9684 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9685 "then mount up the disks, before calling this.  Listing applications is a "
9686 "significantly more difficult operation which requires access to the full "
9687 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9688 "are just returning data cached in the libguestfs handle, this call actually "
9689 "reads parts of the mounted filesystems during the call."
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
9694 msgid ""
9695 "This returns an empty list if the inspection code was not able to determine "
9696 "the list of applications."
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
9701 msgid "The application structure contains the following fields:"
9702 msgstr ""
9703
9704 #. type: =item
9705 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
9706 msgid "C<app_name>"
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
9711 msgid ""
9712 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9713 "guests, this is the package name."
9714 msgstr ""
9715
9716 #. type: =item
9717 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
9718 msgid "C<app_display_name>"
9719 msgstr ""
9720
9721 #. type: textblock
9722 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
9723 msgid ""
9724 "The display name of the application, sometimes localized to the install "
9725 "language of the guest operating system."
9726 msgstr ""
9727
9728 #. type: textblock
9729 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
9730 msgid ""
9731 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9732 "to display something can use C<app_name> instead."
9733 msgstr ""
9734
9735 #. type: =item
9736 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
9737 msgid "C<app_epoch>"
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
9742 msgid ""
9743 "For package managers which use epochs, this contains the epoch of the "
9744 "package (an integer).  If unavailable, this is returned as C<0>."
9745 msgstr ""
9746
9747 #. type: =item
9748 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
9749 msgid "C<app_version>"
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
9754 msgid ""
9755 "The version string of the application or package.  If unavailable this is "
9756 "returned as an empty string C<\"\">."
9757 msgstr ""
9758
9759 #. type: =item
9760 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
9761 msgid "C<app_release>"
9762 msgstr ""
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
9766 msgid ""
9767 "The release string of the application or package, for package managers that "
9768 "use this.  If unavailable this is returned as an empty string C<\"\">."
9769 msgstr ""
9770
9771 #. type: =item
9772 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
9773 msgid "C<app_install_path>"
9774 msgstr ""
9775
9776 #. type: textblock
9777 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
9778 msgid ""
9779 "The installation path of the application (on operating systems such as "
9780 "Windows which use installation paths).  This path is in the format used by "
9781 "the guest operating system, it is not a libguestfs path."
9782 msgstr ""
9783
9784 #. type: textblock
9785 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
9786 msgid "If unavailable this is returned as an empty string C<\"\">."
9787 msgstr ""
9788
9789 #. type: =item
9790 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
9791 msgid "C<app_trans_path>"
9792 msgstr ""
9793
9794 #. type: textblock
9795 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
9796 msgid ""
9797 "The install path translated into a libguestfs path.  If unavailable this is "
9798 "returned as an empty string C<\"\">."
9799 msgstr ""
9800
9801 #. type: =item
9802 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
9803 msgid "C<app_publisher>"
9804 msgstr ""
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
9808 msgid ""
9809 "The name of the publisher of the application, for package managers that use "
9810 "this.  If unavailable this is returned as an empty string C<\"\">."
9811 msgstr ""
9812
9813 #. type: =item
9814 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
9815 msgid "C<app_url>"
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
9820 msgid ""
9821 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9822 "returned as an empty string C<\"\">."
9823 msgstr ""
9824
9825 #. type: =item
9826 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
9827 msgid "C<app_source_package>"
9828 msgstr ""
9829
9830 #. type: textblock
9831 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
9832 msgid ""
9833 "For packaging systems which support this, the name of the source package.  "
9834 "If unavailable this is returned as an empty string C<\"\">."
9835 msgstr ""
9836
9837 #. type: =item
9838 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
9839 msgid "C<app_summary>"
9840 msgstr ""
9841
9842 #. type: textblock
9843 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
9844 msgid ""
9845 "A short (usually one line) description of the application or package.  If "
9846 "unavailable this is returned as an empty string C<\"\">."
9847 msgstr ""
9848
9849 #. type: =item
9850 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
9851 msgid "C<app_description>"
9852 msgstr ""
9853
9854 #. type: textblock
9855 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
9856 msgid ""
9857 "A longer description of the application or package.  If unavailable this is "
9858 "returned as an empty string C<\"\">."
9859 msgstr ""
9860
9861 #. type: =head2
9862 #: ../fish/guestfish-actions.pod:2382
9863 msgid "inspect-os"
9864 msgstr ""
9865
9866 #. type: verbatim
9867 #: ../fish/guestfish-actions.pod:2384
9868 #, no-wrap
9869 msgid ""
9870 " inspect-os\n"
9871 "\n"
9872 msgstr ""
9873
9874 #. type: textblock
9875 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
9876 msgid ""
9877 "This function uses other libguestfs functions and certain heuristics to "
9878 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9879 "for operating systems."
9880 msgstr ""
9881
9882 #. type: textblock
9883 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
9884 msgid "The list returned is empty if no operating systems were found."
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
9889 msgid ""
9890 "If one operating system was found, then this returns a list with a single "
9891 "element, which is the name of the root filesystem of this operating system.  "
9892 "It is also possible for this function to return a list containing more than "
9893 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9894 "element being the root filesystem of one of the operating systems."
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:2399
9899 msgid ""
9900 "You can pass the root string(s) returned to other L</inspect-get-*> "
9901 "functions in order to query further information about each operating system, "
9902 "such as the name and version."
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../fish/guestfish-actions.pod:2404
9907 msgid ""
9908 "This function uses other libguestfs features such as L</mount-ro> and "
9909 "L</umount-all> in order to mount and unmount filesystems and look at the "
9910 "contents.  This should be called with no disks currently mounted.  The "
9911 "function may also use Augeas, so any existing Augeas handle will be closed."
9912 msgstr ""
9913
9914 #. type: textblock
9915 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
9916 msgid ""
9917 "This function cannot decrypt encrypted disks.  The caller must do that first "
9918 "(supplying the necessary keys) if the disk is encrypted."
9919 msgstr ""
9920
9921 #. type: textblock
9922 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614 ../fish/guestfish-actions.pod:2673
9923 msgid "See also L</list-filesystems>."
9924 msgstr ""
9925
9926 #. type: =head2
9927 #: ../fish/guestfish-actions.pod:2418
9928 msgid "is-blockdev"
9929 msgstr ""
9930
9931 #. type: verbatim
9932 #: ../fish/guestfish-actions.pod:2420
9933 #, no-wrap
9934 msgid ""
9935 " is-blockdev path\n"
9936 "\n"
9937 msgstr ""
9938
9939 #. type: textblock
9940 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
9941 msgid ""
9942 "This returns C<true> if and only if there is a block device with the given "
9943 "C<path> name."
9944 msgstr ""
9945
9946 #. type: textblock
9947 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471 ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515 ../fish/guestfish-actions.pod:2524
9948 msgid "See also L</stat>."
9949 msgstr ""
9950
9951 #. type: =head2
9952 #: ../fish/guestfish-actions.pod:2427
9953 msgid "is-busy"
9954 msgstr ""
9955
9956 #. type: verbatim
9957 #: ../fish/guestfish-actions.pod:2429
9958 #, no-wrap
9959 msgid ""
9960 " is-busy\n"
9961 "\n"
9962 msgstr ""
9963
9964 #. type: textblock
9965 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
9966 msgid ""
9967 "This returns true iff this handle is busy processing a command (in the "
9968 "C<BUSY> state)."
9969 msgstr ""
9970
9971 #. type: =head2
9972 #: ../fish/guestfish-actions.pod:2436
9973 msgid "is-chardev"
9974 msgstr ""
9975
9976 #. type: verbatim
9977 #: ../fish/guestfish-actions.pod:2438
9978 #, no-wrap
9979 msgid ""
9980 " is-chardev path\n"
9981 "\n"
9982 msgstr ""
9983
9984 #. type: textblock
9985 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
9986 msgid ""
9987 "This returns C<true> if and only if there is a character device with the "
9988 "given C<path> name."
9989 msgstr ""
9990
9991 #. type: =head2
9992 #: ../fish/guestfish-actions.pod:2445
9993 msgid "is-config"
9994 msgstr ""
9995
9996 #. type: verbatim
9997 #: ../fish/guestfish-actions.pod:2447
9998 #, no-wrap
9999 msgid ""
10000 " is-config\n"
10001 "\n"
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
10006 msgid ""
10007 "This returns true iff this handle is being configured (in the C<CONFIG> "
10008 "state)."
10009 msgstr ""
10010
10011 #. type: =head2
10012 #: ../fish/guestfish-actions.pod:2454
10013 msgid "is-dir"
10014 msgstr ""
10015
10016 #. type: verbatim
10017 #: ../fish/guestfish-actions.pod:2456
10018 #, no-wrap
10019 msgid ""
10020 " is-dir path\n"
10021 "\n"
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
10026 msgid ""
10027 "This returns C<true> if and only if there is a directory with the given "
10028 "C<path> name.  Note that it returns false for other objects like files."
10029 msgstr ""
10030
10031 #. type: =head2
10032 #: ../fish/guestfish-actions.pod:2464
10033 msgid "is-fifo"
10034 msgstr ""
10035
10036 #. type: verbatim
10037 #: ../fish/guestfish-actions.pod:2466
10038 #, no-wrap
10039 msgid ""
10040 " is-fifo path\n"
10041 "\n"
10042 msgstr ""
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
10046 msgid ""
10047 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10048 "given C<path> name."
10049 msgstr ""
10050
10051 #. type: =head2
10052 #: ../fish/guestfish-actions.pod:2473
10053 msgid "is-file"
10054 msgstr ""
10055
10056 #. type: verbatim
10057 #: ../fish/guestfish-actions.pod:2475
10058 #, no-wrap
10059 msgid ""
10060 " is-file path\n"
10061 "\n"
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
10066 msgid ""
10067 "This returns C<true> if and only if there is a regular file with the given "
10068 "C<path> name.  Note that it returns false for other objects like "
10069 "directories."
10070 msgstr ""
10071
10072 #. type: =head2
10073 #: ../fish/guestfish-actions.pod:2483
10074 msgid "is-launching"
10075 msgstr ""
10076
10077 #. type: verbatim
10078 #: ../fish/guestfish-actions.pod:2485
10079 #, no-wrap
10080 msgid ""
10081 " is-launching\n"
10082 "\n"
10083 msgstr ""
10084
10085 #. type: textblock
10086 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
10087 msgid ""
10088 "This returns true iff this handle is launching the subprocess (in the "
10089 "C<LAUNCHING> state)."
10090 msgstr ""
10091
10092 #. type: =head2
10093 #: ../fish/guestfish-actions.pod:2492
10094 msgid "is-lv"
10095 msgstr ""
10096
10097 #. type: verbatim
10098 #: ../fish/guestfish-actions.pod:2494
10099 #, no-wrap
10100 msgid ""
10101 " is-lv device\n"
10102 "\n"
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
10107 msgid ""
10108 "This command tests whether C<device> is a logical volume, and returns true "
10109 "iff this is the case."
10110 msgstr ""
10111
10112 #. type: =head2
10113 #: ../fish/guestfish-actions.pod:2499
10114 msgid "is-ready"
10115 msgstr ""
10116
10117 #. type: verbatim
10118 #: ../fish/guestfish-actions.pod:2501
10119 #, no-wrap
10120 msgid ""
10121 " is-ready\n"
10122 "\n"
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
10127 msgid ""
10128 "This returns true iff this handle is ready to accept commands (in the "
10129 "C<READY> state)."
10130 msgstr ""
10131
10132 #. type: =head2
10133 #: ../fish/guestfish-actions.pod:2508
10134 msgid "is-socket"
10135 msgstr ""
10136
10137 #. type: verbatim
10138 #: ../fish/guestfish-actions.pod:2510
10139 #, no-wrap
10140 msgid ""
10141 " is-socket path\n"
10142 "\n"
10143 msgstr ""
10144
10145 #. type: textblock
10146 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
10147 msgid ""
10148 "This returns C<true> if and only if there is a Unix domain socket with the "
10149 "given C<path> name."
10150 msgstr ""
10151
10152 #. type: =head2
10153 #: ../fish/guestfish-actions.pod:2517
10154 msgid "is-symlink"
10155 msgstr ""
10156
10157 #. type: verbatim
10158 #: ../fish/guestfish-actions.pod:2519
10159 #, no-wrap
10160 msgid ""
10161 " is-symlink path\n"
10162 "\n"
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
10167 msgid ""
10168 "This returns C<true> if and only if there is a symbolic link with the given "
10169 "C<path> name."
10170 msgstr ""
10171
10172 #. type: =head2
10173 #: ../fish/guestfish-actions.pod:2526
10174 msgid "is-zero"
10175 msgstr ""
10176
10177 #. type: verbatim
10178 #: ../fish/guestfish-actions.pod:2528
10179 #, no-wrap
10180 msgid ""
10181 " is-zero path\n"
10182 "\n"
10183 msgstr ""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10187 msgid ""
10188 "This returns true iff the file exists and the file is empty or it contains "
10189 "all zero bytes."
10190 msgstr ""
10191
10192 #. type: =head2
10193 #: ../fish/guestfish-actions.pod:2533
10194 msgid "is-zero-device"
10195 msgstr ""
10196
10197 #. type: verbatim
10198 #: ../fish/guestfish-actions.pod:2535
10199 #, no-wrap
10200 msgid ""
10201 " is-zero-device device\n"
10202 "\n"
10203 msgstr ""
10204
10205 #. type: textblock
10206 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10207 msgid "This returns true iff the device exists and contains all zero bytes."
10208 msgstr ""
10209
10210 #. type: textblock
10211 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10212 msgid "Note that for large devices this can take a long time to run."
10213 msgstr ""
10214
10215 #. type: =head2
10216 #: ../fish/guestfish-actions.pod:2541
10217 msgid "kill-subprocess"
10218 msgstr ""
10219
10220 #. type: verbatim
10221 #: ../fish/guestfish-actions.pod:2543
10222 #, no-wrap
10223 msgid ""
10224 " kill-subprocess\n"
10225 "\n"
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10230 msgid "This kills the qemu subprocess.  You should never need to call this."
10231 msgstr ""
10232
10233 #. type: =head2
10234 #: ../fish/guestfish-actions.pod:2547
10235 msgid "launch"
10236 msgstr ""
10237
10238 #. type: =head2
10239 #: ../fish/guestfish-actions.pod:2549
10240 msgid "run"
10241 msgstr ""
10242
10243 #. type: verbatim
10244 #: ../fish/guestfish-actions.pod:2551
10245 #, no-wrap
10246 msgid ""
10247 " launch\n"
10248 "\n"
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10253 msgid ""
10254 "Internally libguestfs is implemented by running a virtual machine using "
10255 "L<qemu(1)>."
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10260 msgid ""
10261 "You should call this after configuring the handle (eg. adding drives) but "
10262 "before performing any actions."
10263 msgstr ""
10264
10265 #. type: =head2
10266 #: ../fish/guestfish-actions.pod:2559
10267 msgid "lchown"
10268 msgstr ""
10269
10270 #. type: verbatim
10271 #: ../fish/guestfish-actions.pod:2561
10272 #, no-wrap
10273 msgid ""
10274 " lchown owner group path\n"
10275 "\n"
10276 msgstr ""
10277
10278 #. type: textblock
10279 #: ../fish/guestfish-actions.pod:2563
10280 msgid ""
10281 "Change the file owner to C<owner> and group to C<group>.  This is like "
10282 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
10283 "the target."
10284 msgstr ""
10285
10286 #. type: =head2
10287 #: ../fish/guestfish-actions.pod:2571
10288 msgid "lgetxattr"
10289 msgstr ""
10290
10291 #. type: verbatim
10292 #: ../fish/guestfish-actions.pod:2573
10293 #, no-wrap
10294 msgid ""
10295 " lgetxattr path name\n"
10296 "\n"
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10301 msgid ""
10302 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10303 "is a symlink, then this call returns an extended attribute from the symlink."
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../fish/guestfish-actions.pod:2589
10308 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10309 msgstr ""
10310
10311 #. type: =head2
10312 #: ../fish/guestfish-actions.pod:2591
10313 msgid "lgetxattrs"
10314 msgstr ""
10315
10316 #. type: verbatim
10317 #: ../fish/guestfish-actions.pod:2593
10318 #, no-wrap
10319 msgid ""
10320 " lgetxattrs path\n"
10321 "\n"
10322 msgstr ""
10323
10324 #. type: textblock
10325 #: ../fish/guestfish-actions.pod:2595
10326 msgid ""
10327 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10328 "it returns the extended attributes of the link itself."
10329 msgstr ""
10330
10331 #. type: =head2
10332 #: ../fish/guestfish-actions.pod:2599
10333 msgid "list-9p"
10334 msgstr ""
10335
10336 #. type: verbatim
10337 #: ../fish/guestfish-actions.pod:2601
10338 #, no-wrap
10339 msgid ""
10340 " list-9p\n"
10341 "\n"
10342 msgstr ""
10343
10344 #. type: textblock
10345 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10346 msgid ""
10347 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10348 "returned."
10349 msgstr ""
10350
10351 #. type: =head2
10352 #: ../fish/guestfish-actions.pod:2606
10353 msgid "list-devices"
10354 msgstr ""
10355
10356 #. type: verbatim
10357 #: ../fish/guestfish-actions.pod:2608
10358 #, no-wrap
10359 msgid ""
10360 " list-devices\n"
10361 "\n"
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
10366 msgid "List all the block devices."
10367 msgstr ""
10368
10369 #. type: textblock
10370 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
10371 msgid "The full block device names are returned, eg. C</dev/sda>."
10372 msgstr ""
10373
10374 #. type: =head2
10375 #: ../fish/guestfish-actions.pod:2616
10376 msgid "list-dm-devices"
10377 msgstr ""
10378
10379 #. type: verbatim
10380 #: ../fish/guestfish-actions.pod:2618
10381 #, no-wrap
10382 msgid ""
10383 " list-dm-devices\n"
10384 "\n"
10385 msgstr ""
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
10389 msgid "List all device mapper devices."
10390 msgstr ""
10391
10392 #. type: textblock
10393 #: ../fish/guestfish-actions.pod:2622
10394 msgid ""
10395 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10396 "previous call to L</luks-open>."
10397 msgstr ""
10398
10399 #. type: textblock
10400 #: ../fish/guestfish-actions.pod:2625
10401 msgid ""
10402 "Device mapper devices which correspond to logical volumes are I<not> "
10403 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10404 msgstr ""
10405
10406 #. type: =head2
10407 #: ../fish/guestfish-actions.pod:2629
10408 msgid "list-filesystems"
10409 msgstr ""
10410
10411 #. type: verbatim
10412 #: ../fish/guestfish-actions.pod:2631
10413 #, no-wrap
10414 msgid ""
10415 " list-filesystems\n"
10416 "\n"
10417 msgstr ""
10418
10419 #. type: textblock
10420 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
10421 msgid ""
10422 "This inspection command looks for filesystems on partitions, block devices "
10423 "and logical volumes, returning a list of devices containing filesystems and "
10424 "their type."
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
10429 msgid ""
10430 "The return value is a hash, where the keys are the devices containing "
10431 "filesystems, and the values are the filesystem types.  For example:"
10432 msgstr ""
10433
10434 #. type: verbatim
10435 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
10436 #, no-wrap
10437 msgid ""
10438 " \"/dev/sda1\" => \"ntfs\"\n"
10439 " \"/dev/sda2\" => \"ext2\"\n"
10440 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10441 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10442 "\n"
10443 msgstr ""
10444
10445 #. type: textblock
10446 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10447 msgid ""
10448 "The value can have the special value \"unknown\", meaning the content of the "
10449 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10450 msgstr ""
10451
10452 #. type: textblock
10453 #: ../fish/guestfish-actions.pod:2650
10454 msgid ""
10455 "This command runs other libguestfs commands, which might include L</mount> "
10456 "and L</umount>, and therefore you should use this soon after launch and only "
10457 "when nothing is mounted."
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:2654
10462 msgid ""
10463 "Not all of the filesystems returned will be mountable.  In particular, swap "
10464 "partitions are returned in the list.  Also this command does not check that "
10465 "each filesystem found is valid and mountable, and some filesystems might be "
10466 "mountable but require special options.  Filesystems may not all belong to a "
10467 "single logical operating system (use L</inspect-os> to look for OSes)."
10468 msgstr ""
10469
10470 #. type: =head2
10471 #: ../fish/guestfish-actions.pod:2662
10472 msgid "list-partitions"
10473 msgstr ""
10474
10475 #. type: verbatim
10476 #: ../fish/guestfish-actions.pod:2664
10477 #, no-wrap
10478 msgid ""
10479 " list-partitions\n"
10480 "\n"
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
10485 msgid "List all the partitions detected on all block devices."
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
10490 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10491 msgstr ""
10492
10493 #. type: textblock
10494 #: ../fish/guestfish-actions.pod:2670
10495 msgid ""
10496 "This does not return logical volumes.  For that you will need to call "
10497 "L</lvs>."
10498 msgstr ""
10499
10500 #. type: =head2
10501 #: ../fish/guestfish-actions.pod:2675
10502 msgid "ll"
10503 msgstr ""
10504
10505 #. type: verbatim
10506 #: ../fish/guestfish-actions.pod:2677
10507 #, no-wrap
10508 msgid ""
10509 " ll directory\n"
10510 "\n"
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
10515 msgid ""
10516 "List the files in C<directory> (relative to the root directory, there is no "
10517 "cwd) in the format of 'ls -la'."
10518 msgstr ""
10519
10520 #. type: textblock
10521 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
10522 msgid ""
10523 "This command is mostly useful for interactive sessions.  It is I<not> "
10524 "intended that you try to parse the output string."
10525 msgstr ""
10526
10527 #. type: =head2
10528 #: ../fish/guestfish-actions.pod:2685
10529 msgid "ln"
10530 msgstr ""
10531
10532 #. type: verbatim
10533 #: ../fish/guestfish-actions.pod:2687
10534 #, no-wrap
10535 msgid ""
10536 " ln target linkname\n"
10537 "\n"
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
10542 msgid "This command creates a hard link using the C<ln> command."
10543 msgstr ""
10544
10545 #. type: =head2
10546 #: ../fish/guestfish-actions.pod:2691
10547 msgid "ln-f"
10548 msgstr ""
10549
10550 #. type: verbatim
10551 #: ../fish/guestfish-actions.pod:2693
10552 #, no-wrap
10553 msgid ""
10554 " ln-f target linkname\n"
10555 "\n"
10556 msgstr ""
10557
10558 #. type: textblock
10559 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
10560 msgid ""
10561 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10562 "option removes the link (C<linkname>) if it exists already."
10563 msgstr ""
10564
10565 #. type: =head2
10566 #: ../fish/guestfish-actions.pod:2698
10567 msgid "ln-s"
10568 msgstr ""
10569
10570 #. type: verbatim
10571 #: ../fish/guestfish-actions.pod:2700
10572 #, no-wrap
10573 msgid ""
10574 " ln-s target linkname\n"
10575 "\n"
10576 msgstr ""
10577
10578 #. type: textblock
10579 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
10580 msgid "This command creates a symbolic link using the C<ln -s> command."
10581 msgstr ""
10582
10583 #. type: =head2
10584 #: ../fish/guestfish-actions.pod:2704
10585 msgid "ln-sf"
10586 msgstr ""
10587
10588 #. type: verbatim
10589 #: ../fish/guestfish-actions.pod:2706
10590 #, no-wrap
10591 msgid ""
10592 " ln-sf target linkname\n"
10593 "\n"
10594 msgstr ""
10595
10596 #. type: textblock
10597 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
10598 msgid ""
10599 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10600 "option removes the link (C<linkname>) if it exists already."
10601 msgstr ""
10602
10603 #. type: =head2
10604 #: ../fish/guestfish-actions.pod:2711
10605 msgid "lremovexattr"
10606 msgstr ""
10607
10608 #. type: verbatim
10609 #: ../fish/guestfish-actions.pod:2713
10610 #, no-wrap
10611 msgid ""
10612 " lremovexattr xattr path\n"
10613 "\n"
10614 msgstr ""
10615
10616 #. type: textblock
10617 #: ../fish/guestfish-actions.pod:2715
10618 msgid ""
10619 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10620 "it removes an extended attribute of the link itself."
10621 msgstr ""
10622
10623 #. type: =head2
10624 #: ../fish/guestfish-actions.pod:2719
10625 msgid "ls"
10626 msgstr ""
10627
10628 #. type: verbatim
10629 #: ../fish/guestfish-actions.pod:2721
10630 #, no-wrap
10631 msgid ""
10632 " ls directory\n"
10633 "\n"
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
10638 msgid ""
10639 "List the files in C<directory> (relative to the root directory, there is no "
10640 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
10641 "shown."
10642 msgstr ""
10643
10644 #. type: textblock
10645 #: ../fish/guestfish-actions.pod:2727
10646 msgid ""
10647 "This command is mostly useful for interactive sessions.  Programs should "
10648 "probably use L</readdir> instead."
10649 msgstr ""
10650
10651 #. type: =head2
10652 #: ../fish/guestfish-actions.pod:2730
10653 msgid "lsetxattr"
10654 msgstr ""
10655
10656 #. type: verbatim
10657 #: ../fish/guestfish-actions.pod:2732
10658 #, no-wrap
10659 msgid ""
10660 " lsetxattr xattr val vallen path\n"
10661 "\n"
10662 msgstr ""
10663
10664 #. type: textblock
10665 #: ../fish/guestfish-actions.pod:2734
10666 msgid ""
10667 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10668 "sets an extended attribute of the link itself."
10669 msgstr ""
10670
10671 #. type: =head2
10672 #: ../fish/guestfish-actions.pod:2738
10673 msgid "lstat"
10674 msgstr ""
10675
10676 #. type: verbatim
10677 #: ../fish/guestfish-actions.pod:2740
10678 #, no-wrap
10679 msgid ""
10680 " lstat path\n"
10681 "\n"
10682 msgstr ""
10683
10684 #. type: textblock
10685 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
10686 msgid "Returns file information for the given C<path>."
10687 msgstr ""
10688
10689 #. type: textblock
10690 #: ../fish/guestfish-actions.pod:2744
10691 msgid ""
10692 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10693 "the link is stat-ed, not the file it refers to."
10694 msgstr ""
10695
10696 #. type: textblock
10697 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
10698 msgid "This is the same as the C<lstat(2)> system call."
10699 msgstr ""
10700
10701 #. type: =head2
10702 #: ../fish/guestfish-actions.pod:2750
10703 msgid "lstatlist"
10704 msgstr ""
10705
10706 #. type: verbatim
10707 #: ../fish/guestfish-actions.pod:2752
10708 #, no-wrap
10709 msgid ""
10710 " lstatlist path 'names ...'\n"
10711 "\n"
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:2754
10716 msgid ""
10717 "This call allows you to perform the L</lstat> operation on multiple files, "
10718 "where all files are in the directory C<path>.  C<names> is the list of files "
10719 "from this directory."
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
10724 msgid ""
10725 "On return you get a list of stat structs, with a one-to-one correspondence "
10726 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10727 "then the C<ino> field of that structure is set to C<-1>."
10728 msgstr ""
10729
10730 #. type: textblock
10731 #: ../fish/guestfish-actions.pod:2763
10732 msgid ""
10733 "This call is intended for programs that want to efficiently list a directory "
10734 "contents without making many round-trips.  See also L</lxattrlist> for a "
10735 "similarly efficient call for getting extended attributes.  Very long "
10736 "directory listings might cause the protocol message size to be exceeded, "
10737 "causing this call to fail.  The caller must split up such requests into "
10738 "smaller groups of names."
10739 msgstr ""
10740
10741 #. type: =head2
10742 #: ../fish/guestfish-actions.pod:2771
10743 msgid "luks-add-key"
10744 msgstr ""
10745
10746 #. type: verbatim
10747 #: ../fish/guestfish-actions.pod:2773
10748 #, no-wrap
10749 msgid ""
10750 " luks-add-key device keyslot\n"
10751 "\n"
10752 msgstr ""
10753
10754 #. type: textblock
10755 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
10756 msgid ""
10757 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10758 "existing key, and is used to access the device.  C<newkey> is the new key to "
10759 "add.  C<keyslot> is the key slot that will be replaced."
10760 msgstr ""
10761
10762 #. type: textblock
10763 #: ../fish/guestfish-actions.pod:2780
10764 msgid ""
10765 "Note that if C<keyslot> already contains a key, then this command will "
10766 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806 ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833 ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10771 msgid ""
10772 "This command has one or more key or passphrase parameters.  Guestfish will "
10773 "prompt for these separately."
10774 msgstr ""
10775
10776 #. type: =head2
10777 #: ../fish/guestfish-actions.pod:2787
10778 msgid "luks-close"
10779 msgstr ""
10780
10781 #. type: verbatim
10782 #: ../fish/guestfish-actions.pod:2789
10783 #, no-wrap
10784 msgid ""
10785 " luks-close device\n"
10786 "\n"
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:2791
10791 msgid ""
10792 "This closes a LUKS device that was created earlier by L</luks-open> or "
10793 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
10794 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
10795 "underlying block device."
10796 msgstr ""
10797
10798 #. type: =head2
10799 #: ../fish/guestfish-actions.pod:2797
10800 msgid "luks-format"
10801 msgstr ""
10802
10803 #. type: verbatim
10804 #: ../fish/guestfish-actions.pod:2799
10805 #, no-wrap
10806 msgid ""
10807 " luks-format device keyslot\n"
10808 "\n"
10809 msgstr ""
10810
10811 #. type: textblock
10812 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
10813 msgid ""
10814 "This command erases existing data on C<device> and formats the device as a "
10815 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10816 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10817 msgstr ""
10818
10819 #. type: textblock
10820 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822 ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560 ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423 ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253 ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
10821 msgid ""
10822 "B<This command is dangerous.  Without careful use you can easily destroy all "
10823 "your data>."
10824 msgstr ""
10825
10826 #. type: =head2
10827 #: ../fish/guestfish-actions.pod:2812
10828 msgid "luks-format-cipher"
10829 msgstr ""
10830
10831 #. type: verbatim
10832 #: ../fish/guestfish-actions.pod:2814
10833 #, no-wrap
10834 msgid ""
10835 " luks-format-cipher device keyslot cipher\n"
10836 "\n"
10837 msgstr ""
10838
10839 #. type: textblock
10840 #: ../fish/guestfish-actions.pod:2816
10841 msgid ""
10842 "This command is the same as L</luks-format> but it also allows you to set "
10843 "the C<cipher> used."
10844 msgstr ""
10845
10846 #. type: =head2
10847 #: ../fish/guestfish-actions.pod:2825
10848 msgid "luks-kill-slot"
10849 msgstr ""
10850
10851 #. type: verbatim
10852 #: ../fish/guestfish-actions.pod:2827
10853 #, no-wrap
10854 msgid ""
10855 " luks-kill-slot device keyslot\n"
10856 "\n"
10857 msgstr ""
10858
10859 #. type: textblock
10860 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
10861 msgid ""
10862 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10863 "device C<device>.  C<key> must be one of the I<other> keys."
10864 msgstr ""
10865
10866 #. type: =head2
10867 #: ../fish/guestfish-actions.pod:2836
10868 msgid "luks-open"
10869 msgstr ""
10870
10871 #. type: verbatim
10872 #: ../fish/guestfish-actions.pod:2838
10873 #, no-wrap
10874 msgid ""
10875 " luks-open device mapname\n"
10876 "\n"
10877 msgstr ""
10878
10879 #. type: textblock
10880 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
10881 msgid ""
10882 "This command opens a block device which has been encrypted according to the "
10883 "Linux Unified Key Setup (LUKS) standard."
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
10888 msgid "C<device> is the encrypted block device or partition."
10889 msgstr ""
10890
10891 #. type: textblock
10892 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
10893 msgid ""
10894 "The caller must supply one of the keys associated with the LUKS block "
10895 "device, in the C<key> parameter."
10896 msgstr ""
10897
10898 #. type: textblock
10899 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
10900 msgid ""
10901 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10902 "writes to this block device are decrypted from and encrypted to the "
10903 "underlying C<device> respectively."
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:2852
10908 msgid ""
10909 "If this block device contains LVM volume groups, then calling L</vgscan> "
10910 "followed by L</vg-activate-all> will make them visible."
10911 msgstr ""
10912
10913 #. type: textblock
10914 #: ../fish/guestfish-actions.pod:2856
10915 msgid "Use L</list-dm-devices> to list all device mapper devices."
10916 msgstr ""
10917
10918 #. type: =head2
10919 #: ../fish/guestfish-actions.pod:2862
10920 msgid "luks-open-ro"
10921 msgstr ""
10922
10923 #. type: verbatim
10924 #: ../fish/guestfish-actions.pod:2864
10925 #, no-wrap
10926 msgid ""
10927 " luks-open-ro device mapname\n"
10928 "\n"
10929 msgstr ""
10930
10931 #. type: textblock
10932 #: ../fish/guestfish-actions.pod:2866
10933 msgid ""
10934 "This is the same as L</luks-open> except that a read-only mapping is "
10935 "created."
10936 msgstr ""
10937
10938 #. type: =head2
10939 #: ../fish/guestfish-actions.pod:2872
10940 msgid "lvcreate"
10941 msgstr ""
10942
10943 #. type: verbatim
10944 #: ../fish/guestfish-actions.pod:2874
10945 #, no-wrap
10946 msgid ""
10947 " lvcreate logvol volgroup mbytes\n"
10948 "\n"
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
10953 msgid ""
10954 "This creates an LVM logical volume called C<logvol> on the volume group "
10955 "C<volgroup>, with C<size> megabytes."
10956 msgstr ""
10957
10958 #. type: =head2
10959 #: ../fish/guestfish-actions.pod:2879
10960 msgid "lvm-canonical-lv-name"
10961 msgstr ""
10962
10963 #. type: verbatim
10964 #: ../fish/guestfish-actions.pod:2881
10965 #, no-wrap
10966 msgid ""
10967 " lvm-canonical-lv-name lvname\n"
10968 "\n"
10969 msgstr ""
10970
10971 #. type: textblock
10972 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
10973 msgid ""
10974 "This converts alternative naming schemes for LVs that you might find to the "
10975 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
10976 "C</dev/VG/LV>."
10977 msgstr ""
10978
10979 #. type: textblock
10980 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
10981 msgid ""
10982 "This command returns an error if the C<lvname> parameter does not refer to a "
10983 "logical volume."
10984 msgstr ""
10985
10986 #. type: textblock
10987 #: ../fish/guestfish-actions.pod:2890
10988 msgid "See also L</is-lv>."
10989 msgstr ""
10990
10991 #. type: =head2
10992 #: ../fish/guestfish-actions.pod:2892
10993 msgid "lvm-clear-filter"
10994 msgstr ""
10995
10996 #. type: verbatim
10997 #: ../fish/guestfish-actions.pod:2894
10998 #, no-wrap
10999 msgid ""
11000 " lvm-clear-filter\n"
11001 "\n"
11002 msgstr ""
11003
11004 #. type: textblock
11005 #: ../fish/guestfish-actions.pod:2896
11006 msgid ""
11007 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11008 "block device."
11009 msgstr ""
11010
11011 #. type: textblock
11012 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
11013 msgid "This command also clears the LVM cache and performs a volume group scan."
11014 msgstr ""
11015
11016 #. type: =head2
11017 #: ../fish/guestfish-actions.pod:2902
11018 msgid "lvm-remove-all"
11019 msgstr ""
11020
11021 #. type: verbatim
11022 #: ../fish/guestfish-actions.pod:2904
11023 #, no-wrap
11024 msgid ""
11025 " lvm-remove-all\n"
11026 "\n"
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
11031 msgid ""
11032 "This command removes all LVM logical volumes, volume groups and physical "
11033 "volumes."
11034 msgstr ""
11035
11036 #. type: =head2
11037 #: ../fish/guestfish-actions.pod:2912
11038 msgid "lvm-set-filter"
11039 msgstr ""
11040
11041 #. type: verbatim
11042 #: ../fish/guestfish-actions.pod:2914
11043 #, no-wrap
11044 msgid ""
11045 " lvm-set-filter 'devices ...'\n"
11046 "\n"
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
11051 msgid ""
11052 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11053 "block devices in the list C<devices>, and will ignore all other attached "
11054 "block devices."
11055 msgstr ""
11056
11057 #. type: textblock
11058 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
11059 msgid ""
11060 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11061 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11062 "there are two types of duplication possible: either cloned PVs/VGs which "
11063 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11064 "same name.  In normal operation you cannot create this situation, but you "
11065 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11066 "inside the LVM metadata."
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11071 msgid "You can filter whole block devices or individual partitions."
11072 msgstr ""
11073
11074 #. type: textblock
11075 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
11076 msgid ""
11077 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11078 "filesystem), even if you are not filtering out that VG."
11079 msgstr ""
11080
11081 #. type: =head2
11082 #: ../fish/guestfish-actions.pod:2939
11083 msgid "lvremove"
11084 msgstr ""
11085
11086 #. type: verbatim
11087 #: ../fish/guestfish-actions.pod:2941
11088 #, no-wrap
11089 msgid ""
11090 " lvremove device\n"
11091 "\n"
11092 msgstr ""
11093
11094 #. type: textblock
11095 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
11096 msgid ""
11097 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11098 "LV, such as C</dev/VG/LV>."
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
11103 msgid ""
11104 "You can also remove all LVs in a volume group by specifying the VG name, "
11105 "C</dev/VG>."
11106 msgstr ""
11107
11108 #. type: =head2
11109 #: ../fish/guestfish-actions.pod:2949
11110 msgid "lvrename"
11111 msgstr ""
11112
11113 #. type: verbatim
11114 #: ../fish/guestfish-actions.pod:2951
11115 #, no-wrap
11116 msgid ""
11117 " lvrename logvol newlogvol\n"
11118 "\n"
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
11123 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11124 msgstr ""
11125
11126 #. type: =head2
11127 #: ../fish/guestfish-actions.pod:2955
11128 msgid "lvresize"
11129 msgstr ""
11130
11131 #. type: verbatim
11132 #: ../fish/guestfish-actions.pod:2957
11133 #, no-wrap
11134 msgid ""
11135 " lvresize device mbytes\n"
11136 "\n"
11137 msgstr ""
11138
11139 #. type: textblock
11140 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
11141 msgid ""
11142 "This resizes (expands or shrinks) an existing LVM logical volume to "
11143 "C<mbytes>.  When reducing, data in the reduced part is lost."
11144 msgstr ""
11145
11146 #. type: =head2
11147 #: ../fish/guestfish-actions.pod:2963
11148 msgid "lvresize-free"
11149 msgstr ""
11150
11151 #. type: verbatim
11152 #: ../fish/guestfish-actions.pod:2965
11153 #, no-wrap
11154 msgid ""
11155 " lvresize-free lv percent\n"
11156 "\n"
11157 msgstr ""
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
11161 msgid ""
11162 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11163 "remaining free space in the volume group.  Commonly you would call this with "
11164 "pc = 100 which expands the logical volume as much as possible, using all "
11165 "remaining free space in the volume group."
11166 msgstr ""
11167
11168 #. type: =head2
11169 #: ../fish/guestfish-actions.pod:2973
11170 msgid "lvs"
11171 msgstr ""
11172
11173 #. type: verbatim
11174 #: ../fish/guestfish-actions.pod:2975
11175 #, no-wrap
11176 msgid ""
11177 " lvs\n"
11178 "\n"
11179 msgstr ""
11180
11181 #. type: textblock
11182 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11183 msgid ""
11184 "List all the logical volumes detected.  This is the equivalent of the "
11185 "L<lvs(8)> command."
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11190 msgid ""
11191 "This returns a list of the logical volume device names "
11192 "(eg. C</dev/VolGroup00/LogVol00>)."
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:2983
11197 msgid "See also L</lvs-full>, L</list-filesystems>."
11198 msgstr ""
11199
11200 #. type: =head2
11201 #: ../fish/guestfish-actions.pod:2985
11202 msgid "lvs-full"
11203 msgstr ""
11204
11205 #. type: verbatim
11206 #: ../fish/guestfish-actions.pod:2987
11207 #, no-wrap
11208 msgid ""
11209 " lvs-full\n"
11210 "\n"
11211 msgstr ""
11212
11213 #. type: textblock
11214 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11215 msgid ""
11216 "List all the logical volumes detected.  This is the equivalent of the "
11217 "L<lvs(8)> command.  The \"full\" version includes all fields."
11218 msgstr ""
11219
11220 #. type: =head2
11221 #: ../fish/guestfish-actions.pod:2992
11222 msgid "lvuuid"
11223 msgstr ""
11224
11225 #. type: verbatim
11226 #: ../fish/guestfish-actions.pod:2994
11227 #, no-wrap
11228 msgid ""
11229 " lvuuid device\n"
11230 "\n"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11235 msgid "This command returns the UUID of the LVM LV C<device>."
11236 msgstr ""
11237
11238 #. type: =head2
11239 #: ../fish/guestfish-actions.pod:2998
11240 msgid "lxattrlist"
11241 msgstr ""
11242
11243 #. type: verbatim
11244 #: ../fish/guestfish-actions.pod:3000
11245 #, no-wrap
11246 msgid ""
11247 " lxattrlist path 'names ...'\n"
11248 "\n"
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11253 msgid ""
11254 "This call allows you to get the extended attributes of multiple files, where "
11255 "all files are in the directory C<path>.  C<names> is the list of files from "
11256 "this directory."
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11261 msgid ""
11262 "On return you get a flat list of xattr structs which must be interpreted "
11263 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11264 "C<attrval> in this struct is zero-length to indicate there was an error "
11265 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11266 "number (the number of following attributes for this file, which could be "
11267 "C<\"0\">).  Then after the first xattr struct are the zero or more "
11268 "attributes for the first named file.  This repeats for the second and "
11269 "subsequent files."
11270 msgstr ""
11271
11272 #. type: textblock
11273 #: ../fish/guestfish-actions.pod:3016
11274 msgid ""
11275 "This call is intended for programs that want to efficiently list a directory "
11276 "contents without making many round-trips.  See also L</lstatlist> for a "
11277 "similarly efficient call for getting standard stats.  Very long directory "
11278 "listings might cause the protocol message size to be exceeded, causing this "
11279 "call to fail.  The caller must split up such requests into smaller groups of "
11280 "names."
11281 msgstr ""
11282
11283 #. type: =head2
11284 #: ../fish/guestfish-actions.pod:3024
11285 msgid "mkdir"
11286 msgstr ""
11287
11288 #. type: verbatim
11289 #: ../fish/guestfish-actions.pod:3026
11290 #, no-wrap
11291 msgid ""
11292 " mkdir path\n"
11293 "\n"
11294 msgstr ""
11295
11296 #. type: textblock
11297 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11298 msgid "Create a directory named C<path>."
11299 msgstr ""
11300
11301 #. type: =head2
11302 #: ../fish/guestfish-actions.pod:3030
11303 msgid "mkdir-mode"
11304 msgstr ""
11305
11306 #. type: verbatim
11307 #: ../fish/guestfish-actions.pod:3032
11308 #, no-wrap
11309 msgid ""
11310 " mkdir-mode path mode\n"
11311 "\n"
11312 msgstr ""
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11316 msgid ""
11317 "This command creates a directory, setting the initial permissions of the "
11318 "directory to C<mode>."
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11323 msgid ""
11324 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11325 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11326 "other ways."
11327 msgstr ""
11328
11329 #. type: textblock
11330 #: ../fish/guestfish-actions.pod:3041
11331 msgid "See also L</mkdir>, L</umask>"
11332 msgstr ""
11333
11334 #. type: =head2
11335 #: ../fish/guestfish-actions.pod:3043
11336 msgid "mkdir-p"
11337 msgstr ""
11338
11339 #. type: verbatim
11340 #: ../fish/guestfish-actions.pod:3045
11341 #, no-wrap
11342 msgid ""
11343 " mkdir-p path\n"
11344 "\n"
11345 msgstr ""
11346
11347 #. type: textblock
11348 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11349 msgid ""
11350 "Create a directory named C<path>, creating any parent directories as "
11351 "necessary.  This is like the C<mkdir -p> shell command."
11352 msgstr ""
11353
11354 #. type: =head2
11355 #: ../fish/guestfish-actions.pod:3050
11356 msgid "mkdtemp"
11357 msgstr ""
11358
11359 #. type: verbatim
11360 #: ../fish/guestfish-actions.pod:3052
11361 #, no-wrap
11362 msgid ""
11363 " mkdtemp template\n"
11364 "\n"
11365 msgstr ""
11366
11367 #. type: textblock
11368 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
11369 msgid ""
11370 "This command creates a temporary directory.  The C<template> parameter "
11371 "should be a full pathname for the temporary directory name with the final "
11372 "six characters being \"XXXXXX\"."
11373 msgstr ""
11374
11375 #. type: textblock
11376 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
11377 msgid ""
11378 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11379 "being suitable for Windows filesystems."
11380 msgstr ""
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
11384 msgid "The name of the temporary directory that was created is returned."
11385 msgstr ""
11386
11387 #. type: textblock
11388 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
11389 msgid "The temporary directory is created with mode 0700 and is owned by root."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
11394 msgid ""
11395 "The caller is responsible for deleting the temporary directory and its "
11396 "contents after use."
11397 msgstr ""
11398
11399 #. type: textblock
11400 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
11401 msgid "See also: L<mkdtemp(3)>"
11402 msgstr ""
11403
11404 #. type: =head2
11405 #: ../fish/guestfish-actions.pod:3073
11406 msgid "mke2fs-J"
11407 msgstr ""
11408
11409 #. type: verbatim
11410 #: ../fish/guestfish-actions.pod:3075
11411 #, no-wrap
11412 msgid ""
11413 " mke2fs-J fstype blocksize device journal\n"
11414 "\n"
11415 msgstr ""
11416
11417 #. type: textblock
11418 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
11419 msgid ""
11420 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11421 "C<journal>.  It is equivalent to the command:"
11422 msgstr ""
11423
11424 #. type: verbatim
11425 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
11426 #, no-wrap
11427 msgid ""
11428 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11429 "\n"
11430 msgstr ""
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:3083
11434 msgid "See also L</mke2journal>."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:3085
11439 msgid "mke2fs-JL"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:3087
11444 #, no-wrap
11445 msgid ""
11446 " mke2fs-JL fstype blocksize device label\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
11452 msgid ""
11453 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11454 "the journal labeled C<label>."
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:3092
11459 msgid "See also L</mke2journal-L>."
11460 msgstr ""
11461
11462 #. type: =head2
11463 #: ../fish/guestfish-actions.pod:3094
11464 msgid "mke2fs-JU"
11465 msgstr ""
11466
11467 #. type: verbatim
11468 #: ../fish/guestfish-actions.pod:3096
11469 #, no-wrap
11470 msgid ""
11471 " mke2fs-JU fstype blocksize device uuid\n"
11472 "\n"
11473 msgstr ""
11474
11475 #. type: textblock
11476 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
11477 msgid ""
11478 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11479 "the journal with UUID C<uuid>."
11480 msgstr ""
11481
11482 #. type: textblock
11483 #: ../fish/guestfish-actions.pod:3101
11484 msgid "See also L</mke2journal-U>."
11485 msgstr ""
11486
11487 #. type: =head2
11488 #: ../fish/guestfish-actions.pod:3103
11489 msgid "mke2journal"
11490 msgstr ""
11491
11492 #. type: verbatim
11493 #: ../fish/guestfish-actions.pod:3105
11494 #, no-wrap
11495 msgid ""
11496 " mke2journal blocksize device\n"
11497 "\n"
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
11502 msgid ""
11503 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11504 "command:"
11505 msgstr ""
11506
11507 #. type: verbatim
11508 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
11509 #, no-wrap
11510 msgid ""
11511 " mke2fs -O journal_dev -b blocksize device\n"
11512 "\n"
11513 msgstr ""
11514
11515 #. type: =head2
11516 #: ../fish/guestfish-actions.pod:3112
11517 msgid "mke2journal-L"
11518 msgstr ""
11519
11520 #. type: verbatim
11521 #: ../fish/guestfish-actions.pod:3114
11522 #, no-wrap
11523 msgid ""
11524 " mke2journal-L blocksize label device\n"
11525 "\n"
11526 msgstr ""
11527
11528 #. type: textblock
11529 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
11530 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11531 msgstr ""
11532
11533 #. type: =head2
11534 #: ../fish/guestfish-actions.pod:3118
11535 msgid "mke2journal-U"
11536 msgstr ""
11537
11538 #. type: verbatim
11539 #: ../fish/guestfish-actions.pod:3120
11540 #, no-wrap
11541 msgid ""
11542 " mke2journal-U blocksize uuid device\n"
11543 "\n"
11544 msgstr ""
11545
11546 #. type: textblock
11547 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
11548 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11549 msgstr ""
11550
11551 #. type: =head2
11552 #: ../fish/guestfish-actions.pod:3124
11553 msgid "mkfifo"
11554 msgstr ""
11555
11556 #. type: verbatim
11557 #: ../fish/guestfish-actions.pod:3126
11558 #, no-wrap
11559 msgid ""
11560 " mkfifo mode path\n"
11561 "\n"
11562 msgstr ""
11563
11564 #. type: textblock
11565 #: ../fish/guestfish-actions.pod:3128
11566 msgid ""
11567 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11568 "is just a convenient wrapper around L</mknod>."
11569 msgstr ""
11570
11571 #. type: =head2
11572 #: ../fish/guestfish-actions.pod:3134
11573 msgid "mkfs"
11574 msgstr ""
11575
11576 #. type: verbatim
11577 #: ../fish/guestfish-actions.pod:3136
11578 #, no-wrap
11579 msgid ""
11580 " mkfs fstype device\n"
11581 "\n"
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
11586 msgid ""
11587 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11588 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11589 msgstr ""
11590
11591 #. type: =head2
11592 #: ../fish/guestfish-actions.pod:3142
11593 msgid "mkfs-b"
11594 msgstr ""
11595
11596 #. type: verbatim
11597 #: ../fish/guestfish-actions.pod:3144
11598 #, no-wrap
11599 msgid ""
11600 " mkfs-b fstype blocksize device\n"
11601 "\n"
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:3146
11606 msgid ""
11607 "This call is similar to L</mkfs>, but it allows you to control the block "
11608 "size of the resulting filesystem.  Supported block sizes depend on the "
11609 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
11614 msgid ""
11615 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11616 "cluster size."
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:3154
11621 msgid ""
11622 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11623 "instead."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3161
11628 msgid "mkfs-opts"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3163
11633 #, no-wrap
11634 msgid ""
11635 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
11636 "[sectorsize:..]\n"
11637 "\n"
11638 msgstr ""
11639
11640 #. type: textblock
11641 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
11642 msgid ""
11643 "This function creates a filesystem on C<device>.  The filesystem type is "
11644 "C<fstype>, for example C<ext3>."
11645 msgstr ""
11646
11647 #. type: =item
11648 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
11649 msgid "C<blocksize>"
11650 msgstr ""
11651
11652 #. type: textblock
11653 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
11654 msgid ""
11655 "The filesystem block size.  Supported block sizes depend on the filesystem "
11656 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11657 "filesystems."
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
11662 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11663 msgstr ""
11664
11665 #. type: =item
11666 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
11667 msgid "C<features>"
11668 msgstr ""
11669
11670 #. type: textblock
11671 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
11672 msgid "This passes the I<-O> parameter to the external mkfs program."
11673 msgstr ""
11674
11675 #. type: textblock
11676 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
11677 msgid ""
11678 "For certain filesystem types, this allows extra filesystem features to be "
11679 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
11684 msgid ""
11685 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11686 "type."
11687 msgstr ""
11688
11689 #. type: =item
11690 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
11691 msgid "C<inode>"
11692 msgstr ""
11693
11694 #. type: textblock
11695 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
11696 msgid ""
11697 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11698 "sets the inode size (only for ext2/3/4 filesystems at present)."
11699 msgstr ""
11700
11701 #. type: =item
11702 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
11703 msgid "C<sectorsize>"
11704 msgstr ""
11705
11706 #. type: textblock
11707 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
11708 msgid ""
11709 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11710 "sets sector size for ufs filesystem."
11711 msgstr ""
11712
11713 #. type: =head2
11714 #: ../fish/guestfish-actions.pod:3208
11715 msgid "mkmountpoint"
11716 msgstr ""
11717
11718 #. type: verbatim
11719 #: ../fish/guestfish-actions.pod:3210
11720 #, no-wrap
11721 msgid ""
11722 " mkmountpoint exemptpath\n"
11723 "\n"
11724 msgstr ""
11725
11726 #. type: textblock
11727 #: ../fish/guestfish-actions.pod:3212
11728 msgid ""
11729 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11730 "to create extra mountpoints before mounting the first filesystem."
11731 msgstr ""
11732
11733 #. type: textblock
11734 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
11735 msgid ""
11736 "These calls are I<only> necessary in some very limited circumstances, mainly "
11737 "the case where you want to mount a mix of unrelated and/or read-only "
11738 "filesystems together."
11739 msgstr ""
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
11743 msgid ""
11744 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11745 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11746 "inside that.  You can unpack this as follows in guestfish:"
11747 msgstr ""
11748
11749 #. type: verbatim
11750 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
11751 #, no-wrap
11752 msgid ""
11753 " add-ro Fedora-11-i686-Live.iso\n"
11754 " run\n"
11755 " mkmountpoint /cd\n"
11756 " mkmountpoint /sqsh\n"
11757 " mkmountpoint /ext3fs\n"
11758 " mount /dev/sda /cd\n"
11759 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11760 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11761 "\n"
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
11766 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11767 msgstr ""
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:3236
11771 msgid ""
11772 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11773 "unexpected errors if you try to mix these calls.  It is safest to manually "
11774 "unmount filesystems and remove mountpoints after use."
11775 msgstr ""
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:3240
11779 msgid ""
11780 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11781 "for this to work for manual mountpoints, you must ensure that the innermost "
11782 "mountpoints have the longest pathnames, as in the example code above."
11783 msgstr ""
11784
11785 #. type: textblock
11786 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
11787 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11788 msgstr ""
11789
11790 #. type: textblock
11791 #: ../fish/guestfish-actions.pod:3247
11792 msgid ""
11793 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11794 "L</umount-all> to be called when the handle is closed which can also trigger "
11795 "these issues."
11796 msgstr ""
11797
11798 #. type: =head2
11799 #: ../fish/guestfish-actions.pod:3251
11800 msgid "mknod"
11801 msgstr ""
11802
11803 #. type: verbatim
11804 #: ../fish/guestfish-actions.pod:3253
11805 #, no-wrap
11806 msgid ""
11807 " mknod mode devmajor devminor path\n"
11808 "\n"
11809 msgstr ""
11810
11811 #. type: textblock
11812 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
11813 msgid ""
11814 "This call creates block or character special devices, or named pipes "
11815 "(FIFOs)."
11816 msgstr ""
11817
11818 #. type: textblock
11819 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
11820 msgid ""
11821 "The C<mode> parameter should be the mode, using the standard constants.  "
11822 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11823 "used when creating block and character special devices."
11824 msgstr ""
11825
11826 #. type: textblock
11827 #: ../fish/guestfish-actions.pod:3263
11828 msgid ""
11829 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11830 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11831 "regular file).  These constants are available in the standard Linux header "
11832 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11833 "wrappers around this command which bitwise OR in the appropriate constant "
11834 "for you."
11835 msgstr ""
11836
11837 #. type: =head2
11838 #: ../fish/guestfish-actions.pod:3273
11839 msgid "mknod-b"
11840 msgstr ""
11841
11842 #. type: verbatim
11843 #: ../fish/guestfish-actions.pod:3275
11844 #, no-wrap
11845 msgid ""
11846 " mknod-b mode devmajor devminor path\n"
11847 "\n"
11848 msgstr ""
11849
11850 #. type: textblock
11851 #: ../fish/guestfish-actions.pod:3277
11852 msgid ""
11853 "This call creates a block device node called C<path> with mode C<mode> and "
11854 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11855 "wrapper around L</mknod>."
11856 msgstr ""
11857
11858 #. type: =head2
11859 #: ../fish/guestfish-actions.pod:3283
11860 msgid "mknod-c"
11861 msgstr ""
11862
11863 #. type: verbatim
11864 #: ../fish/guestfish-actions.pod:3285
11865 #, no-wrap
11866 msgid ""
11867 " mknod-c mode devmajor devminor path\n"
11868 "\n"
11869 msgstr ""
11870
11871 #. type: textblock
11872 #: ../fish/guestfish-actions.pod:3287
11873 msgid ""
11874 "This call creates a char device node called C<path> with mode C<mode> and "
11875 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11876 "wrapper around L</mknod>."
11877 msgstr ""
11878
11879 #. type: =head2
11880 #: ../fish/guestfish-actions.pod:3293
11881 msgid "mkswap"
11882 msgstr ""
11883
11884 #. type: verbatim
11885 #: ../fish/guestfish-actions.pod:3295
11886 #, no-wrap
11887 msgid ""
11888 " mkswap device\n"
11889 "\n"
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
11894 msgid "Create a swap partition on C<device>."
11895 msgstr ""
11896
11897 #. type: =head2
11898 #: ../fish/guestfish-actions.pod:3299
11899 msgid "mkswap-L"
11900 msgstr ""
11901
11902 #. type: verbatim
11903 #: ../fish/guestfish-actions.pod:3301
11904 #, no-wrap
11905 msgid ""
11906 " mkswap-L label device\n"
11907 "\n"
11908 msgstr ""
11909
11910 #. type: textblock
11911 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
11912 msgid "Create a swap partition on C<device> with label C<label>."
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
11917 msgid ""
11918 "Note that you cannot attach a swap label to a block device "
11919 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
11920 "the kernel or swap tools."
11921 msgstr ""
11922
11923 #. type: =head2
11924 #: ../fish/guestfish-actions.pod:3309
11925 msgid "mkswap-U"
11926 msgstr ""
11927
11928 #. type: verbatim
11929 #: ../fish/guestfish-actions.pod:3311
11930 #, no-wrap
11931 msgid ""
11932 " mkswap-U uuid device\n"
11933 "\n"
11934 msgstr ""
11935
11936 #. type: textblock
11937 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
11938 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11939 msgstr ""
11940
11941 #. type: =head2
11942 #: ../fish/guestfish-actions.pod:3315
11943 msgid "mkswap-file"
11944 msgstr ""
11945
11946 #. type: verbatim
11947 #: ../fish/guestfish-actions.pod:3317
11948 #, no-wrap
11949 msgid ""
11950 " mkswap-file path\n"
11951 "\n"
11952 msgstr ""
11953
11954 #. type: textblock
11955 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
11956 msgid "Create a swap file."
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3321
11961 msgid ""
11962 "This command just writes a swap file signature to an existing file.  To "
11963 "create the file itself, use something like L</fallocate>."
11964 msgstr ""
11965
11966 #. type: =head2
11967 #: ../fish/guestfish-actions.pod:3324
11968 msgid "modprobe"
11969 msgstr ""
11970
11971 #. type: verbatim
11972 #: ../fish/guestfish-actions.pod:3326
11973 #, no-wrap
11974 msgid ""
11975 " modprobe modulename\n"
11976 "\n"
11977 msgstr ""
11978
11979 #. type: textblock
11980 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
11981 msgid "This loads a kernel module in the appliance."
11982 msgstr ""
11983
11984 #. type: textblock
11985 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
11986 msgid ""
11987 "The kernel module must have been whitelisted when libguestfs was built (see "
11988 "C<appliance/kmod.whitelist.in> in the source)."
11989 msgstr ""
11990
11991 #. type: =head2
11992 #: ../fish/guestfish-actions.pod:3333
11993 msgid "mount"
11994 msgstr ""
11995
11996 #. type: verbatim
11997 #: ../fish/guestfish-actions.pod:3335
11998 #, no-wrap
11999 msgid ""
12000 " mount device mountpoint\n"
12001 "\n"
12002 msgstr ""
12003
12004 #. type: textblock
12005 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
12006 msgid ""
12007 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12008 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12009 "those block devices contain partitions, they will have the usual names "
12010 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
12015 msgid ""
12016 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12017 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12018 "mounted on directories which already exist."
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
12023 msgid ""
12024 "The mounted filesystem is writable, if we have sufficient permissions on the "
12025 "underlying device."
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:3351
12030 msgid ""
12031 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12032 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12033 "problems for users.  If your program might need to work with older versions "
12034 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12035 "first parameter if you don't want any options)."
12036 msgstr ""
12037
12038 #. type: =head2
12039 #: ../fish/guestfish-actions.pod:3358
12040 msgid "mount-9p"
12041 msgstr ""
12042
12043 #. type: verbatim
12044 #: ../fish/guestfish-actions.pod:3360
12045 #, no-wrap
12046 msgid ""
12047 " mount-9p mounttag mountpoint [options:..]\n"
12048 "\n"
12049 msgstr ""
12050
12051 #. type: textblock
12052 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
12053 msgid ""
12054 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12055 "C<mountpoint>."
12056 msgstr ""
12057
12058 #. type: textblock
12059 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
12060 msgid ""
12061 "If required, C<trans=virtio> will be automatically added to the options.  "
12062 "Any other options required can be passed in the optional C<options> "
12063 "parameter."
12064 msgstr ""
12065
12066 #. type: =head2
12067 #: ../fish/guestfish-actions.pod:3371
12068 msgid "mount-loop"
12069 msgstr ""
12070
12071 #. type: verbatim
12072 #: ../fish/guestfish-actions.pod:3373
12073 #, no-wrap
12074 msgid ""
12075 " mount-loop file mountpoint\n"
12076 "\n"
12077 msgstr ""
12078
12079 #. type: textblock
12080 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
12081 msgid ""
12082 "This command lets you mount C<file> (a filesystem image in a file) on a "
12083 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12084 "mountpoint>."
12085 msgstr ""
12086
12087 #. type: =head2
12088 #: ../fish/guestfish-actions.pod:3379
12089 msgid "mount-options"
12090 msgstr ""
12091
12092 #. type: verbatim
12093 #: ../fish/guestfish-actions.pod:3381
12094 #, no-wrap
12095 msgid ""
12096 " mount-options options device mountpoint\n"
12097 "\n"
12098 msgstr ""
12099
12100 #. type: textblock
12101 #: ../fish/guestfish-actions.pod:3383
12102 msgid ""
12103 "This is the same as the L</mount> command, but it allows you to set the "
12104 "mount options as for the L<mount(8)> I<-o> flag."
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
12109 msgid ""
12110 "If the C<options> parameter is an empty string, then no options are passed "
12111 "(all options default to whatever the filesystem uses)."
12112 msgstr ""
12113
12114 #. type: =head2
12115 #: ../fish/guestfish-actions.pod:3391
12116 msgid "mount-ro"
12117 msgstr ""
12118
12119 #. type: verbatim
12120 #: ../fish/guestfish-actions.pod:3393
12121 #, no-wrap
12122 msgid ""
12123 " mount-ro device mountpoint\n"
12124 "\n"
12125 msgstr ""
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:3395
12129 msgid ""
12130 "This is the same as the L</mount> command, but it mounts the filesystem with "
12131 "the read-only (I<-o ro>) flag."
12132 msgstr ""
12133
12134 #. type: =head2
12135 #: ../fish/guestfish-actions.pod:3398
12136 msgid "mount-vfs"
12137 msgstr ""
12138
12139 #. type: verbatim
12140 #: ../fish/guestfish-actions.pod:3400
12141 #, no-wrap
12142 msgid ""
12143 " mount-vfs options vfstype device mountpoint\n"
12144 "\n"
12145 msgstr ""
12146
12147 #. type: textblock
12148 #: ../fish/guestfish-actions.pod:3402
12149 msgid ""
12150 "This is the same as the L</mount> command, but it allows you to set both the "
12151 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12152 msgstr ""
12153
12154 #. type: =head2
12155 #: ../fish/guestfish-actions.pod:3406
12156 msgid "mountpoints"
12157 msgstr ""
12158
12159 #. type: verbatim
12160 #: ../fish/guestfish-actions.pod:3408
12161 #, no-wrap
12162 msgid ""
12163 " mountpoints\n"
12164 "\n"
12165 msgstr ""
12166
12167 #. type: textblock
12168 #: ../fish/guestfish-actions.pod:3410
12169 msgid ""
12170 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12171 "This one returns a hash table (map) of device name to directory where the "
12172 "device is mounted."
12173 msgstr ""
12174
12175 #. type: =head2
12176 #: ../fish/guestfish-actions.pod:3414
12177 msgid "mounts"
12178 msgstr ""
12179
12180 #. type: verbatim
12181 #: ../fish/guestfish-actions.pod:3416
12182 #, no-wrap
12183 msgid ""
12184 " mounts\n"
12185 "\n"
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12190 msgid ""
12191 "This returns the list of currently mounted filesystems.  It returns the list "
12192 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12193 msgstr ""
12194
12195 #. type: textblock
12196 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12197 msgid "Some internal mounts are not shown."
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:3423
12202 msgid "See also: L</mountpoints>"
12203 msgstr ""
12204
12205 #. type: =head2
12206 #: ../fish/guestfish-actions.pod:3425
12207 msgid "mv"
12208 msgstr ""
12209
12210 #. type: verbatim
12211 #: ../fish/guestfish-actions.pod:3427
12212 #, no-wrap
12213 msgid ""
12214 " mv src dest\n"
12215 "\n"
12216 msgstr ""
12217
12218 #. type: textblock
12219 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12220 msgid ""
12221 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12222 "destination filename or destination directory."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:3432
12227 msgid "ntfs-3g-probe"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:3434
12232 #, no-wrap
12233 msgid ""
12234 " ntfs-3g-probe true|false device\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12240 msgid ""
12241 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12242 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
12243 "read-write, and some cannot be mounted at all)."
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12248 msgid ""
12249 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12250 "can be mounted read-write.  Set it to false if you want to test if the "
12251 "volume can be mounted read-only."
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12256 msgid ""
12257 "The return value is an integer which C<0> if the operation would succeed, or "
12258 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12259 msgstr ""
12260
12261 #. type: =head2
12262 #: ../fish/guestfish-actions.pod:3448
12263 msgid "ntfsresize"
12264 msgstr ""
12265
12266 #. type: verbatim
12267 #: ../fish/guestfish-actions.pod:3450
12268 #, no-wrap
12269 msgid ""
12270 " ntfsresize device\n"
12271 "\n"
12272 msgstr ""
12273
12274 #. type: textblock
12275 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476 ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12276 msgid ""
12277 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12278 "size of the underlying device."
12279 msgstr ""
12280
12281 #. type: textblock
12282 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12283 msgid ""
12284 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12285 "consistency check (for safety).  You have to boot into Windows to perform "
12286 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12287 "resize filesystems which have been marked in this way.  So in effect it is "
12288 "not possible to call ntfsresize multiple times on a single filesystem "
12289 "without booting into Windows between each resize."
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12294 msgid "See also L<ntfsresize(8)>."
12295 msgstr ""
12296
12297 #. type: textblock
12298 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12299 msgid ""
12300 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12301 "call instead."
12302 msgstr ""
12303
12304 #. type: =head2
12305 #: ../fish/guestfish-actions.pod:3472
12306 msgid "ntfsresize-opts"
12307 msgstr ""
12308
12309 #. type: verbatim
12310 #: ../fish/guestfish-actions.pod:3474
12311 #, no-wrap
12312 msgid ""
12313 " ntfsresize-opts device [size:..] [force:..]\n"
12314 "\n"
12315 msgstr ""
12316
12317 #. type: textblock
12318 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12319 msgid ""
12320 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12321 "resized to fit the container (eg. partition)."
12322 msgstr ""
12323
12324 #. type: =item
12325 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12326 msgid "C<force>"
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12331 msgid ""
12332 "If this option is true, then force the resize of the filesystem even if the "
12333 "filesystem is marked as requiring a consistency check."
12334 msgstr ""
12335
12336 #. type: textblock
12337 #: ../fish/guestfish-actions.pod:3493
12338 msgid ""
12339 "After the resize operation, the filesystem is always marked as requiring a "
12340 "consistency check (for safety).  You have to boot into Windows to perform "
12341 "this check and clear this condition.  If you I<don't> set the C<force> "
12342 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12343 "a single filesystem without booting into Windows between each resize."
12344 msgstr ""
12345
12346 #. type: =head2
12347 #: ../fish/guestfish-actions.pod:3506
12348 msgid "ntfsresize-size"
12349 msgstr ""
12350
12351 #. type: verbatim
12352 #: ../fish/guestfish-actions.pod:3508
12353 #, no-wrap
12354 msgid ""
12355 " ntfsresize-size device size\n"
12356 "\n"
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../fish/guestfish-actions.pod:3510
12361 msgid ""
12362 "This command is the same as L</ntfsresize> except that it allows you to "
12363 "specify the new size (in bytes) explicitly."
12364 msgstr ""
12365
12366 #. type: =head2
12367 #: ../fish/guestfish-actions.pod:3520
12368 msgid "part-add"
12369 msgstr ""
12370
12371 #. type: verbatim
12372 #: ../fish/guestfish-actions.pod:3522
12373 #, no-wrap
12374 msgid ""
12375 " part-add device prlogex startsect endsect\n"
12376 "\n"
12377 msgstr ""
12378
12379 #. type: textblock
12380 #: ../fish/guestfish-actions.pod:3524
12381 msgid ""
12382 "This command adds a partition to C<device>.  If there is no partition table "
12383 "on the device, call L</part-init> first."
12384 msgstr ""
12385
12386 #. type: textblock
12387 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
12388 msgid ""
12389 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12390 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12391 "C<logical>) and C<e> (or C<extended>) partition types."
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
12396 msgid ""
12397 "C<startsect> and C<endsect> are the start and end of the partition in "
12398 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12399 "from the end of the disk (C<-1> is the last sector)."
12400 msgstr ""
12401
12402 #. type: textblock
12403 #: ../fish/guestfish-actions.pod:3536
12404 msgid ""
12405 "Creating a partition which covers the whole disk is not so easy.  Use "
12406 "L</part-disk> to do that."
12407 msgstr ""
12408
12409 #. type: =head2
12410 #: ../fish/guestfish-actions.pod:3539
12411 msgid "part-del"
12412 msgstr ""
12413
12414 #. type: verbatim
12415 #: ../fish/guestfish-actions.pod:3541
12416 #, no-wrap
12417 msgid ""
12418 " part-del device partnum\n"
12419 "\n"
12420 msgstr ""
12421
12422 #. type: textblock
12423 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
12424 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12425 msgstr ""
12426
12427 #. type: textblock
12428 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
12429 msgid ""
12430 "Note that in the case of MBR partitioning, deleting an extended partition "
12431 "also deletes any logical partitions it contains."
12432 msgstr ""
12433
12434 #. type: =head2
12435 #: ../fish/guestfish-actions.pod:3549
12436 msgid "part-disk"
12437 msgstr ""
12438
12439 #. type: verbatim
12440 #: ../fish/guestfish-actions.pod:3551
12441 #, no-wrap
12442 msgid ""
12443 " part-disk device parttype\n"
12444 "\n"
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../fish/guestfish-actions.pod:3553
12449 msgid ""
12450 "This command is simply a combination of L</part-init> followed by "
12451 "L</part-add> to create a single primary partition covering the whole disk."
12452 msgstr ""
12453
12454 #. type: textblock
12455 #: ../fish/guestfish-actions.pod:3557
12456 msgid ""
12457 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12458 "possible values are described in L</part-init>."
12459 msgstr ""
12460
12461 #. type: =head2
12462 #: ../fish/guestfish-actions.pod:3563
12463 msgid "part-get-bootable"
12464 msgstr ""
12465
12466 #. type: verbatim
12467 #: ../fish/guestfish-actions.pod:3565
12468 #, no-wrap
12469 msgid ""
12470 " part-get-bootable device partnum\n"
12471 "\n"
12472 msgstr ""
12473
12474 #. type: textblock
12475 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
12476 msgid ""
12477 "This command returns true if the partition C<partnum> on C<device> has the "
12478 "bootable flag set."
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:3570
12483 msgid "See also L</part-set-bootable>."
12484 msgstr ""
12485
12486 #. type: =head2
12487 #: ../fish/guestfish-actions.pod:3572
12488 msgid "part-get-mbr-id"
12489 msgstr ""
12490
12491 #. type: verbatim
12492 #: ../fish/guestfish-actions.pod:3574
12493 #, no-wrap
12494 msgid ""
12495 " part-get-mbr-id device partnum\n"
12496 "\n"
12497 msgstr ""
12498
12499 #. type: textblock
12500 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
12501 msgid ""
12502 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12503 "partition C<partnum>."
12504 msgstr ""
12505
12506 #. type: textblock
12507 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12508 msgid ""
12509 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12510 "undefined results for other partition table types (see "
12511 "L</part-get-parttype>)."
12512 msgstr ""
12513
12514 #. type: =head2
12515 #: ../fish/guestfish-actions.pod:3583
12516 msgid "part-get-parttype"
12517 msgstr ""
12518
12519 #. type: verbatim
12520 #: ../fish/guestfish-actions.pod:3585
12521 #, no-wrap
12522 msgid ""
12523 " part-get-parttype device\n"
12524 "\n"
12525 msgstr ""
12526
12527 #. type: textblock
12528 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
12529 msgid ""
12530 "This command examines the partition table on C<device> and returns the "
12531 "partition table type (format) being used."
12532 msgstr ""
12533
12534 #. type: textblock
12535 #: ../fish/guestfish-actions.pod:3590
12536 msgid ""
12537 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12538 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12539 "possible, although unusual.  See L</part-init> for a full list."
12540 msgstr ""
12541
12542 #. type: =head2
12543 #: ../fish/guestfish-actions.pod:3595
12544 msgid "part-init"
12545 msgstr ""
12546
12547 #. type: verbatim
12548 #: ../fish/guestfish-actions.pod:3597
12549 #, no-wrap
12550 msgid ""
12551 " part-init device parttype\n"
12552 "\n"
12553 msgstr ""
12554
12555 #. type: textblock
12556 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
12557 msgid ""
12558 "This creates an empty partition table on C<device> of one of the partition "
12559 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12560 "(for large disks)."
12561 msgstr ""
12562
12563 #. type: textblock
12564 #: ../fish/guestfish-actions.pod:3603
12565 msgid ""
12566 "Initially there are no partitions.  Following this, you should call "
12567 "L</part-add> for each partition required."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
12572 msgid "Possible values for C<parttype> are:"
12573 msgstr ""
12574
12575 #. type: =item
12576 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
12577 msgid "B<efi>"
12578 msgstr ""
12579
12580 #. type: =item
12581 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
12582 msgid "B<gpt>"
12583 msgstr ""
12584
12585 #. type: textblock
12586 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
12587 msgid "Intel EFI / GPT partition table."
12588 msgstr ""
12589
12590 #. type: textblock
12591 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
12592 msgid ""
12593 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12594 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12595 "the C<mbr> format."
12596 msgstr ""
12597
12598 #. type: =item
12599 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
12600 msgid "B<mbr>"
12601 msgstr ""
12602
12603 #. type: =item
12604 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
12605 msgid "B<msdos>"
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
12610 msgid ""
12611 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12612 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12613 "TB.  For large disks we recommend using C<gpt>."
12614 msgstr ""
12615
12616 #. type: textblock
12617 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
12618 msgid "Other partition table types that may work but are not supported include:"
12619 msgstr ""
12620
12621 #. type: =item
12622 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
12623 msgid "B<aix>"
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
12628 msgid "AIX disk labels."
12629 msgstr ""
12630
12631 #. type: =item
12632 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
12633 msgid "B<amiga>"
12634 msgstr ""
12635
12636 #. type: =item
12637 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
12638 msgid "B<rdb>"
12639 msgstr ""
12640
12641 #. type: textblock
12642 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
12643 msgid "Amiga \"Rigid Disk Block\" format."
12644 msgstr ""
12645
12646 #. type: =item
12647 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
12648 msgid "B<bsd>"
12649 msgstr ""
12650
12651 #. type: textblock
12652 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
12653 msgid "BSD disk labels."
12654 msgstr ""
12655
12656 #. type: =item
12657 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
12658 msgid "B<dasd>"
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
12663 msgid "DASD, used on IBM mainframes."
12664 msgstr ""
12665
12666 #. type: =item
12667 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
12668 msgid "B<dvh>"
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
12673 msgid "MIPS/SGI volumes."
12674 msgstr ""
12675
12676 #. type: =item
12677 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
12678 msgid "B<mac>"
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
12683 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12684 msgstr ""
12685
12686 #. type: =item
12687 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
12688 msgid "B<pc98>"
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
12693 msgid "NEC PC-98 format, common in Japan apparently."
12694 msgstr ""
12695
12696 #. type: =item
12697 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
12698 msgid "B<sun>"
12699 msgstr ""
12700
12701 #. type: textblock
12702 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
12703 msgid "Sun disk labels."
12704 msgstr ""
12705
12706 #. type: =head2
12707 #: ../fish/guestfish-actions.pod:3672
12708 msgid "part-list"
12709 msgstr ""
12710
12711 #. type: verbatim
12712 #: ../fish/guestfish-actions.pod:3674
12713 #, no-wrap
12714 msgid ""
12715 " part-list device\n"
12716 "\n"
12717 msgstr ""
12718
12719 #. type: textblock
12720 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
12721 msgid ""
12722 "This command parses the partition table on C<device> and returns the list of "
12723 "partitions found."
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
12728 msgid "The fields in the returned structure are:"
12729 msgstr ""
12730
12731 #. type: =item
12732 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
12733 msgid "B<part_num>"
12734 msgstr ""
12735
12736 #. type: textblock
12737 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
12738 msgid "Partition number, counting from 1."
12739 msgstr ""
12740
12741 #. type: =item
12742 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
12743 msgid "B<part_start>"
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3689
12748 msgid ""
12749 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12750 "the device's sector size, see L</blockdev-getss>."
12751 msgstr ""
12752
12753 #. type: =item
12754 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
12755 msgid "B<part_end>"
12756 msgstr ""
12757
12758 #. type: textblock
12759 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
12760 msgid "End of the partition in bytes."
12761 msgstr ""
12762
12763 #. type: =item
12764 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
12765 msgid "B<part_size>"
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
12770 msgid "Size of the partition in bytes."
12771 msgstr ""
12772
12773 #. type: =head2
12774 #: ../fish/guestfish-actions.pod:3702
12775 msgid "part-set-bootable"
12776 msgstr ""
12777
12778 #. type: verbatim
12779 #: ../fish/guestfish-actions.pod:3704
12780 #, no-wrap
12781 msgid ""
12782 " part-set-bootable device partnum true|false\n"
12783 "\n"
12784 msgstr ""
12785
12786 #. type: textblock
12787 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
12788 msgid ""
12789 "This sets the bootable flag on partition numbered C<partnum> on device "
12790 "C<device>.  Note that partitions are numbered from 1."
12791 msgstr ""
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
12795 msgid ""
12796 "The bootable flag is used by some operating systems (notably Windows) to "
12797 "determine which partition to boot from.  It is by no means universally "
12798 "recognized."
12799 msgstr ""
12800
12801 #. type: =head2
12802 #: ../fish/guestfish-actions.pod:3713
12803 msgid "part-set-mbr-id"
12804 msgstr ""
12805
12806 #. type: verbatim
12807 #: ../fish/guestfish-actions.pod:3715
12808 #, no-wrap
12809 msgid ""
12810 " part-set-mbr-id device partnum idbyte\n"
12811 "\n"
12812 msgstr ""
12813
12814 #. type: textblock
12815 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
12816 msgid ""
12817 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12818 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12819 "documentation are in fact hexadecimal numbers, but usually documented "
12820 "without any leading \"0x\" which might be confusing."
12821 msgstr ""
12822
12823 #. type: =head2
12824 #: ../fish/guestfish-actions.pod:3727
12825 msgid "part-set-name"
12826 msgstr ""
12827
12828 #. type: verbatim
12829 #: ../fish/guestfish-actions.pod:3729
12830 #, no-wrap
12831 msgid ""
12832 " part-set-name device partnum name\n"
12833 "\n"
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
12838 msgid ""
12839 "This sets the partition name on partition numbered C<partnum> on device "
12840 "C<device>.  Note that partitions are numbered from 1."
12841 msgstr ""
12842
12843 #. type: textblock
12844 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
12845 msgid ""
12846 "The partition name can only be set on certain types of partition table.  "
12847 "This works on C<gpt> but not on C<mbr> partitions."
12848 msgstr ""
12849
12850 #. type: =head2
12851 #: ../fish/guestfish-actions.pod:3737
12852 msgid "part-to-dev"
12853 msgstr ""
12854
12855 #. type: verbatim
12856 #: ../fish/guestfish-actions.pod:3739
12857 #, no-wrap
12858 msgid ""
12859 " part-to-dev partition\n"
12860 "\n"
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
12865 msgid ""
12866 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12867 "partition number, returning the device name (eg. \"/dev/sdb\")."
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:3745
12872 msgid ""
12873 "The named partition must exist, for example as a string returned from "
12874 "L</list-partitions>."
12875 msgstr ""
12876
12877 #. type: =head2
12878 #: ../fish/guestfish-actions.pod:3748
12879 msgid "ping-daemon"
12880 msgstr ""
12881
12882 #. type: verbatim
12883 #: ../fish/guestfish-actions.pod:3750
12884 #, no-wrap
12885 msgid ""
12886 " ping-daemon\n"
12887 "\n"
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
12892 msgid ""
12893 "This is a test probe into the guestfs daemon running inside the qemu "
12894 "subprocess.  Calling this function checks that the daemon responds to the "
12895 "ping message, without affecting the daemon or attached block device(s) in "
12896 "any other way."
12897 msgstr ""
12898
12899 #. type: =head2
12900 #: ../fish/guestfish-actions.pod:3757
12901 msgid "pread"
12902 msgstr ""
12903
12904 #. type: verbatim
12905 #: ../fish/guestfish-actions.pod:3759
12906 #, no-wrap
12907 msgid ""
12908 " pread path count offset\n"
12909 "\n"
12910 msgstr ""
12911
12912 #. type: textblock
12913 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
12914 msgid ""
12915 "This command lets you read part of a file.  It reads C<count> bytes of the "
12916 "file, starting at C<offset>, from file C<path>."
12917 msgstr ""
12918
12919 #. type: textblock
12920 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
12921 msgid ""
12922 "This may read fewer bytes than requested.  For further details see the "
12923 "L<pread(2)> system call."
12924 msgstr ""
12925
12926 #. type: textblock
12927 #: ../fish/guestfish-actions.pod:3767
12928 msgid "See also L</pwrite>, L</pread-device>."
12929 msgstr ""
12930
12931 #. type: =head2
12932 #: ../fish/guestfish-actions.pod:3772
12933 msgid "pread-device"
12934 msgstr ""
12935
12936 #. type: verbatim
12937 #: ../fish/guestfish-actions.pod:3774
12938 #, no-wrap
12939 msgid ""
12940 " pread-device device count offset\n"
12941 "\n"
12942 msgstr ""
12943
12944 #. type: textblock
12945 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
12946 msgid ""
12947 "This command lets you read part of a file.  It reads C<count> bytes of "
12948 "C<device>, starting at C<offset>."
12949 msgstr ""
12950
12951 #. type: textblock
12952 #: ../fish/guestfish-actions.pod:3782
12953 msgid "See also L</pread>."
12954 msgstr ""
12955
12956 #. type: =head2
12957 #: ../fish/guestfish-actions.pod:3787
12958 msgid "pvcreate"
12959 msgstr ""
12960
12961 #. type: verbatim
12962 #: ../fish/guestfish-actions.pod:3789
12963 #, no-wrap
12964 msgid ""
12965 " pvcreate device\n"
12966 "\n"
12967 msgstr ""
12968
12969 #. type: textblock
12970 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
12971 msgid ""
12972 "This creates an LVM physical volume on the named C<device>, where C<device> "
12973 "should usually be a partition name such as C</dev/sda1>."
12974 msgstr ""
12975
12976 #. type: =head2
12977 #: ../fish/guestfish-actions.pod:3795
12978 msgid "pvremove"
12979 msgstr ""
12980
12981 #. type: verbatim
12982 #: ../fish/guestfish-actions.pod:3797
12983 #, no-wrap
12984 msgid ""
12985 " pvremove device\n"
12986 "\n"
12987 msgstr ""
12988
12989 #. type: textblock
12990 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
12991 msgid ""
12992 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12993 "it."
12994 msgstr ""
12995
12996 #. type: textblock
12997 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
12998 msgid ""
12999 "The implementation uses the C<pvremove> command which refuses to wipe "
13000 "physical volumes that contain any volume groups, so you have to remove those "
13001 "first."
13002 msgstr ""
13003
13004 #. type: =head2
13005 #: ../fish/guestfish-actions.pod:3806
13006 msgid "pvresize"
13007 msgstr ""
13008
13009 #. type: verbatim
13010 #: ../fish/guestfish-actions.pod:3808
13011 #, no-wrap
13012 msgid ""
13013 " pvresize device\n"
13014 "\n"
13015 msgstr ""
13016
13017 #. type: textblock
13018 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
13019 msgid ""
13020 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13021 "the new size of the underlying device."
13022 msgstr ""
13023
13024 #. type: =head2
13025 #: ../fish/guestfish-actions.pod:3813
13026 msgid "pvresize-size"
13027 msgstr ""
13028
13029 #. type: verbatim
13030 #: ../fish/guestfish-actions.pod:3815
13031 #, no-wrap
13032 msgid ""
13033 " pvresize-size device size\n"
13034 "\n"
13035 msgstr ""
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:3817
13039 msgid ""
13040 "This command is the same as L</pvresize> except that it allows you to "
13041 "specify the new size (in bytes) explicitly."
13042 msgstr ""
13043
13044 #. type: =head2
13045 #: ../fish/guestfish-actions.pod:3820
13046 msgid "pvs"
13047 msgstr ""
13048
13049 #. type: verbatim
13050 #: ../fish/guestfish-actions.pod:3822
13051 #, no-wrap
13052 msgid ""
13053 " pvs\n"
13054 "\n"
13055 msgstr ""
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
13059 msgid ""
13060 "List all the physical volumes detected.  This is the equivalent of the "
13061 "L<pvs(8)> command."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
13066 msgid ""
13067 "This returns a list of just the device names that contain PVs "
13068 "(eg. C</dev/sda2>)."
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3830
13073 msgid "See also L</pvs-full>."
13074 msgstr ""
13075
13076 #. type: =head2
13077 #: ../fish/guestfish-actions.pod:3832
13078 msgid "pvs-full"
13079 msgstr ""
13080
13081 #. type: verbatim
13082 #: ../fish/guestfish-actions.pod:3834
13083 #, no-wrap
13084 msgid ""
13085 " pvs-full\n"
13086 "\n"
13087 msgstr ""
13088
13089 #. type: textblock
13090 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
13091 msgid ""
13092 "List all the physical volumes detected.  This is the equivalent of the "
13093 "L<pvs(8)> command.  The \"full\" version includes all fields."
13094 msgstr ""
13095
13096 #. type: =head2
13097 #: ../fish/guestfish-actions.pod:3839
13098 msgid "pvuuid"
13099 msgstr ""
13100
13101 #. type: verbatim
13102 #: ../fish/guestfish-actions.pod:3841
13103 #, no-wrap
13104 msgid ""
13105 " pvuuid device\n"
13106 "\n"
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
13111 msgid "This command returns the UUID of the LVM PV C<device>."
13112 msgstr ""
13113
13114 #. type: =head2
13115 #: ../fish/guestfish-actions.pod:3845
13116 msgid "pwrite"
13117 msgstr ""
13118
13119 #. type: verbatim
13120 #: ../fish/guestfish-actions.pod:3847
13121 #, no-wrap
13122 msgid ""
13123 " pwrite path content offset\n"
13124 "\n"
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
13129 msgid ""
13130 "This command writes to part of a file.  It writes the data buffer C<content> "
13131 "to the file C<path> starting at offset C<offset>."
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
13136 msgid ""
13137 "This command implements the L<pwrite(2)> system call, and like that system "
13138 "call it may not write the full data requested.  The return value is the "
13139 "number of bytes that were actually written to the file.  This could even be "
13140 "0, although short writes are unlikely for regular files in ordinary "
13141 "circumstances."
13142 msgstr ""
13143
13144 #. type: textblock
13145 #: ../fish/guestfish-actions.pod:3858
13146 msgid "See also L</pread>, L</pwrite-device>."
13147 msgstr ""
13148
13149 #. type: =head2
13150 #: ../fish/guestfish-actions.pod:3863
13151 msgid "pwrite-device"
13152 msgstr ""
13153
13154 #. type: verbatim
13155 #: ../fish/guestfish-actions.pod:3865
13156 #, no-wrap
13157 msgid ""
13158 " pwrite-device device content offset\n"
13159 "\n"
13160 msgstr ""
13161
13162 #. type: textblock
13163 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
13164 msgid ""
13165 "This command writes to part of a device.  It writes the data buffer "
13166 "C<content> to C<device> starting at offset C<offset>."
13167 msgstr ""
13168
13169 #. type: textblock
13170 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13171 msgid ""
13172 "This command implements the L<pwrite(2)> system call, and like that system "
13173 "call it may not write the full data requested (although short writes to disk "
13174 "devices and partitions are probably impossible with standard Linux kernels)."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:3875
13179 msgid "See also L</pwrite>."
13180 msgstr ""
13181
13182 #. type: =head2
13183 #: ../fish/guestfish-actions.pod:3880
13184 msgid "read-file"
13185 msgstr ""
13186
13187 #. type: verbatim
13188 #: ../fish/guestfish-actions.pod:3882
13189 #, no-wrap
13190 msgid ""
13191 " read-file path\n"
13192 "\n"
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13197 msgid "This calls returns the contents of the file C<path> as a buffer."
13198 msgstr ""
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3887
13202 msgid ""
13203 "Unlike L</cat>, this function can correctly handle files that contain "
13204 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13205 "is limited in the total size of file that can be handled."
13206 msgstr ""
13207
13208 #. type: =head2
13209 #: ../fish/guestfish-actions.pod:3895
13210 msgid "read-lines"
13211 msgstr ""
13212
13213 #. type: verbatim
13214 #: ../fish/guestfish-actions.pod:3897
13215 #, no-wrap
13216 msgid ""
13217 " read-lines path\n"
13218 "\n"
13219 msgstr ""
13220
13221 #. type: textblock
13222 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13223 msgid ""
13224 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13225 "C<CRLF> character sequences are I<not> returned."
13226 msgstr ""
13227
13228 #. type: textblock
13229 #: ../fish/guestfish-actions.pod:3904
13230 msgid ""
13231 "Note that this function cannot correctly handle binary files (specifically, "
13232 "files containing C<\\0> character which is treated as end of line).  For "
13233 "those you need to use the L</read-file> function which has a more complex "
13234 "interface."
13235 msgstr ""
13236
13237 #. type: =head2
13238 #: ../fish/guestfish-actions.pod:3909
13239 msgid "readdir"
13240 msgstr ""
13241
13242 #. type: verbatim
13243 #: ../fish/guestfish-actions.pod:3911
13244 #, no-wrap
13245 msgid ""
13246 " readdir dir\n"
13247 "\n"
13248 msgstr ""
13249
13250 #. type: textblock
13251 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13252 msgid "This returns the list of directory entries in directory C<dir>."
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13257 msgid ""
13258 "All entries in the directory are returned, including C<.> and C<..>.  The "
13259 "entries are I<not> sorted, but returned in the same order as the underlying "
13260 "filesystem."
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13265 msgid ""
13266 "Also this call returns basic file type information about each file.  The "
13267 "C<ftyp> field will contain one of the following characters:"
13268 msgstr ""
13269
13270 #. type: =item
13271 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13272 msgid "'b'"
13273 msgstr ""
13274
13275 #. type: textblock
13276 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13277 msgid "Block special"
13278 msgstr ""
13279
13280 #. type: =item
13281 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13282 msgid "'c'"
13283 msgstr ""
13284
13285 #. type: textblock
13286 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13287 msgid "Char special"
13288 msgstr ""
13289
13290 #. type: =item
13291 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13292 msgid "'d'"
13293 msgstr ""
13294
13295 #. type: textblock
13296 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13297 msgid "Directory"
13298 msgstr ""
13299
13300 #. type: =item
13301 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13302 msgid "'f'"
13303 msgstr ""
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13307 msgid "FIFO (named pipe)"
13308 msgstr ""
13309
13310 #. type: =item
13311 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13312 msgid "'l'"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13317 msgid "Symbolic link"
13318 msgstr ""
13319
13320 #. type: =item
13321 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13322 msgid "'r'"
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13327 msgid "Regular file"
13328 msgstr ""
13329
13330 #. type: =item
13331 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13332 msgid "'s'"
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13337 msgid "Socket"
13338 msgstr ""
13339
13340 #. type: =item
13341 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13342 msgid "'u'"
13343 msgstr ""
13344
13345 #. type: textblock
13346 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13347 msgid "Unknown file type"
13348 msgstr ""
13349
13350 #. type: =item
13351 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
13352 msgid "'?'"
13353 msgstr ""
13354
13355 #. type: textblock
13356 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
13357 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13358 msgstr ""
13359
13360 #. type: textblock
13361 #: ../fish/guestfish-actions.pod:3963
13362 msgid ""
13363 "This function is primarily intended for use by programs.  To get a simple "
13364 "list of names, use L</ls>.  To get a printable directory for human "
13365 "consumption, use L</ll>."
13366 msgstr ""
13367
13368 #. type: =head2
13369 #: ../fish/guestfish-actions.pod:3967
13370 msgid "readlink"
13371 msgstr ""
13372
13373 #. type: verbatim
13374 #: ../fish/guestfish-actions.pod:3969
13375 #, no-wrap
13376 msgid ""
13377 " readlink path\n"
13378 "\n"
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
13383 msgid "This command reads the target of a symbolic link."
13384 msgstr ""
13385
13386 #. type: =head2
13387 #: ../fish/guestfish-actions.pod:3973
13388 msgid "readlinklist"
13389 msgstr ""
13390
13391 #. type: verbatim
13392 #: ../fish/guestfish-actions.pod:3975
13393 #, no-wrap
13394 msgid ""
13395 " readlinklist path 'names ...'\n"
13396 "\n"
13397 msgstr ""
13398
13399 #. type: textblock
13400 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
13401 msgid ""
13402 "This call allows you to do a C<readlink> operation on multiple files, where "
13403 "all files are in the directory C<path>.  C<names> is the list of files from "
13404 "this directory."
13405 msgstr ""
13406
13407 #. type: textblock
13408 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
13409 msgid ""
13410 "On return you get a list of strings, with a one-to-one correspondence to the "
13411 "C<names> list.  Each string is the value of the symbolic link."
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
13416 msgid ""
13417 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13418 "result string is the empty string C<\"\">.  However the whole operation is "
13419 "completed even if there were C<readlink(2)> errors, and so you can call this "
13420 "function with names where you don't know if they are symbolic links already "
13421 "(albeit slightly less efficient)."
13422 msgstr ""
13423
13424 #. type: textblock
13425 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
13426 msgid ""
13427 "This call is intended for programs that want to efficiently list a directory "
13428 "contents without making many round-trips.  Very long directory listings "
13429 "might cause the protocol message size to be exceeded, causing this call to "
13430 "fail.  The caller must split up such requests into smaller groups of names."
13431 msgstr ""
13432
13433 #. type: =head2
13434 #: ../fish/guestfish-actions.pod:3999
13435 msgid "realpath"
13436 msgstr ""
13437
13438 #. type: verbatim
13439 #: ../fish/guestfish-actions.pod:4001
13440 #, no-wrap
13441 msgid ""
13442 " realpath path\n"
13443 "\n"
13444 msgstr ""
13445
13446 #. type: textblock
13447 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
13448 msgid ""
13449 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13450 "has no C<.>, C<..> or symbolic link path elements."
13451 msgstr ""
13452
13453 #. type: =head2
13454 #: ../fish/guestfish-actions.pod:4006
13455 msgid "removexattr"
13456 msgstr ""
13457
13458 #. type: verbatim
13459 #: ../fish/guestfish-actions.pod:4008
13460 #, no-wrap
13461 msgid ""
13462 " removexattr xattr path\n"
13463 "\n"
13464 msgstr ""
13465
13466 #. type: textblock
13467 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
13468 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
13469 msgstr ""
13470
13471 #. type: textblock
13472 #: ../fish/guestfish-actions.pod:4013
13473 msgid "See also: L</lremovexattr>, L<attr(5)>."
13474 msgstr ""
13475
13476 #. type: =head2
13477 #: ../fish/guestfish-actions.pod:4015
13478 msgid "resize2fs"
13479 msgstr ""
13480
13481 #. type: verbatim
13482 #: ../fish/guestfish-actions.pod:4017
13483 #, no-wrap
13484 msgid ""
13485 " resize2fs device\n"
13486 "\n"
13487 msgstr ""
13488
13489 #. type: textblock
13490 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
13491 msgid ""
13492 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13493 "underlying device."
13494 msgstr ""
13495
13496 #. type: textblock
13497 #: ../fish/guestfish-actions.pod:4022
13498 msgid ""
13499 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13500 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13501 "gives an error about this and sometimes not.  In any case, it is always safe "
13502 "to call L</e2fsck-f> before calling this function."
13503 msgstr ""
13504
13505 #. type: =head2
13506 #: ../fish/guestfish-actions.pod:4028
13507 msgid "resize2fs-M"
13508 msgstr ""
13509
13510 #. type: verbatim
13511 #: ../fish/guestfish-actions.pod:4030
13512 #, no-wrap
13513 msgid ""
13514 " resize2fs-M device\n"
13515 "\n"
13516 msgstr ""
13517
13518 #. type: textblock
13519 #: ../fish/guestfish-actions.pod:4032
13520 msgid ""
13521 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13522 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13523 "command."
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:4036
13528 msgid ""
13529 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13530 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13531 "multiplied together, give the resulting size of the minimal filesystem in "
13532 "bytes."
13533 msgstr ""
13534
13535 #. type: =head2
13536 #: ../fish/guestfish-actions.pod:4041
13537 msgid "resize2fs-size"
13538 msgstr ""
13539
13540 #. type: verbatim
13541 #: ../fish/guestfish-actions.pod:4043
13542 #, no-wrap
13543 msgid ""
13544 " resize2fs-size device size\n"
13545 "\n"
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:4045
13550 msgid ""
13551 "This command is the same as L</resize2fs> except that it allows you to "
13552 "specify the new size (in bytes) explicitly."
13553 msgstr ""
13554
13555 #. type: =head2
13556 #: ../fish/guestfish-actions.pod:4048
13557 msgid "rm"
13558 msgstr ""
13559
13560 #. type: verbatim
13561 #: ../fish/guestfish-actions.pod:4050
13562 #, no-wrap
13563 msgid ""
13564 " rm path\n"
13565 "\n"
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
13570 msgid "Remove the single file C<path>."
13571 msgstr ""
13572
13573 #. type: =head2
13574 #: ../fish/guestfish-actions.pod:4054
13575 msgid "rm-rf"
13576 msgstr ""
13577
13578 #. type: verbatim
13579 #: ../fish/guestfish-actions.pod:4056
13580 #, no-wrap
13581 msgid ""
13582 " rm-rf path\n"
13583 "\n"
13584 msgstr ""
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
13588 msgid ""
13589 "Remove the file or directory C<path>, recursively removing the contents if "
13590 "its a directory.  This is like the C<rm -rf> shell command."
13591 msgstr ""
13592
13593 #. type: =head2
13594 #: ../fish/guestfish-actions.pod:4062
13595 msgid "rmdir"
13596 msgstr ""
13597
13598 #. type: verbatim
13599 #: ../fish/guestfish-actions.pod:4064
13600 #, no-wrap
13601 msgid ""
13602 " rmdir path\n"
13603 "\n"
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
13608 msgid "Remove the single directory C<path>."
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:4068
13613 msgid "rmmountpoint"
13614 msgstr ""
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:4070
13618 #, no-wrap
13619 msgid ""
13620 " rmmountpoint exemptpath\n"
13621 "\n"
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:4072
13626 msgid ""
13627 "This calls removes a mountpoint that was previously created with "
13628 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
13629 msgstr ""
13630
13631 #. type: =head2
13632 #: ../fish/guestfish-actions.pod:4076
13633 msgid "scrub-device"
13634 msgstr ""
13635
13636 #. type: verbatim
13637 #: ../fish/guestfish-actions.pod:4078
13638 #, no-wrap
13639 msgid ""
13640 " scrub-device device\n"
13641 "\n"
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
13646 msgid ""
13647 "This command writes patterns over C<device> to make data retrieval more "
13648 "difficult."
13649 msgstr ""
13650
13651 #. type: textblock
13652 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098 ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
13653 msgid ""
13654 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13655 "more details."
13656 msgstr ""
13657
13658 #. type: =head2
13659 #: ../fish/guestfish-actions.pod:4089
13660 msgid "scrub-file"
13661 msgstr ""
13662
13663 #. type: verbatim
13664 #: ../fish/guestfish-actions.pod:4091
13665 #, no-wrap
13666 msgid ""
13667 " scrub-file file\n"
13668 "\n"
13669 msgstr ""
13670
13671 #. type: textblock
13672 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
13673 msgid ""
13674 "This command writes patterns over a file to make data retrieval more "
13675 "difficult."
13676 msgstr ""
13677
13678 #. type: textblock
13679 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
13680 msgid "The file is I<removed> after scrubbing."
13681 msgstr ""
13682
13683 #. type: =head2
13684 #: ../fish/guestfish-actions.pod:4101
13685 msgid "scrub-freespace"
13686 msgstr ""
13687
13688 #. type: verbatim
13689 #: ../fish/guestfish-actions.pod:4103
13690 #, no-wrap
13691 msgid ""
13692 " scrub-freespace dir\n"
13693 "\n"
13694 msgstr ""
13695
13696 #. type: textblock
13697 #: ../fish/guestfish-actions.pod:4105
13698 msgid ""
13699 "This command creates the directory C<dir> and then fills it with files until "
13700 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13701 "deletes them.  The intention is to scrub any free space on the partition "
13702 "containing C<dir>."
13703 msgstr ""
13704
13705 #. type: =head2
13706 #: ../fish/guestfish-actions.pod:4114
13707 msgid "set-append"
13708 msgstr ""
13709
13710 #. type: =head2
13711 #: ../fish/guestfish-actions.pod:4116
13712 msgid "append"
13713 msgstr ""
13714
13715 #. type: verbatim
13716 #: ../fish/guestfish-actions.pod:4118
13717 #, no-wrap
13718 msgid ""
13719 " set-append append\n"
13720 "\n"
13721 msgstr ""
13722
13723 #. type: textblock
13724 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
13725 msgid ""
13726 "This function is used to add additional options to the guest kernel command "
13727 "line."
13728 msgstr ""
13729
13730 #. type: textblock
13731 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
13732 msgid ""
13733 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13734 "environment variable."
13735 msgstr ""
13736
13737 #. type: textblock
13738 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
13739 msgid ""
13740 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13741 "(libguestfs always adds a few of its own)."
13742 msgstr ""
13743
13744 #. type: =head2
13745 #: ../fish/guestfish-actions.pod:4129
13746 msgid "set-attach-method"
13747 msgstr ""
13748
13749 #. type: =head2
13750 #: ../fish/guestfish-actions.pod:4131
13751 msgid "attach-method"
13752 msgstr ""
13753
13754 #. type: verbatim
13755 #: ../fish/guestfish-actions.pod:4133
13756 #, no-wrap
13757 msgid ""
13758 " set-attach-method attachmethod\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
13764 msgid ""
13765 "Set the method that libguestfs uses to connect to the back end guestfsd "
13766 "daemon.  Possible methods are:"
13767 msgstr ""
13768
13769 #. type: =item
13770 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325 ../src/guestfs.pod:2901
13771 msgid "C<appliance>"
13772 msgstr ""
13773
13774 #. type: textblock
13775 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
13776 msgid ""
13777 "Launch an appliance and connect to it.  This is the ordinary method and the "
13778 "default."
13779 msgstr ""
13780
13781 #. type: =item
13782 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
13783 msgid "C<unix:I<path>>"
13784 msgstr ""
13785
13786 #. type: textblock
13787 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
13788 msgid "Connect to the Unix domain socket I<path>."
13789 msgstr ""
13790
13791 #. type: textblock
13792 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
13793 msgid ""
13794 "This method lets you connect to an existing daemon or (using virtio-serial) "
13795 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13796 "RUNNING DAEMONS>."
13797 msgstr ""
13798
13799 #. type: =head2
13800 #: ../fish/guestfish-actions.pod:4155
13801 msgid "set-autosync"
13802 msgstr ""
13803
13804 #. type: =head2
13805 #: ../fish/guestfish-actions.pod:4157
13806 msgid "autosync"
13807 msgstr ""
13808
13809 #. type: verbatim
13810 #: ../fish/guestfish-actions.pod:4159
13811 #, no-wrap
13812 msgid ""
13813 " set-autosync true|false\n"
13814 "\n"
13815 msgstr ""
13816
13817 #. type: textblock
13818 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
13819 msgid ""
13820 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13821 "effort attempt to make filesystems consistent and synchronized when the "
13822 "handle is closed (also if the program exits without closing handles)."
13823 msgstr ""
13824
13825 #. type: textblock
13826 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
13827 msgid ""
13828 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13829 "disabled by default)."
13830 msgstr ""
13831
13832 #. type: =head2
13833 #: ../fish/guestfish-actions.pod:4169
13834 msgid "set-direct"
13835 msgstr ""
13836
13837 #. type: =head2
13838 #: ../fish/guestfish-actions.pod:4171
13839 msgid "direct"
13840 msgstr ""
13841
13842 #. type: verbatim
13843 #: ../fish/guestfish-actions.pod:4173
13844 #, no-wrap
13845 msgid ""
13846 " set-direct true|false\n"
13847 "\n"
13848 msgstr ""
13849
13850 #. type: textblock
13851 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
13852 msgid ""
13853 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13854 "passed directly through to the appliance once it is launched."
13855 msgstr ""
13856
13857 #. type: textblock
13858 #: ../fish/guestfish-actions.pod:4179
13859 msgid ""
13860 "One consequence of this is that log messages aren't caught by the library "
13861 "and handled by L</set-log-message-callback>, but go straight to stdout."
13862 msgstr ""
13863
13864 #. type: textblock
13865 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
13866 msgid "You probably don't want to use this unless you know what you are doing."
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
13871 msgid "The default is disabled."
13872 msgstr ""
13873
13874 #. type: =head2
13875 #: ../fish/guestfish-actions.pod:4188
13876 msgid "set-e2label"
13877 msgstr ""
13878
13879 #. type: verbatim
13880 #: ../fish/guestfish-actions.pod:4190
13881 #, no-wrap
13882 msgid ""
13883 " set-e2label device label\n"
13884 "\n"
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
13889 msgid ""
13890 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13891 "C<label>.  Filesystem labels are limited to 16 characters."
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../fish/guestfish-actions.pod:4196
13896 msgid ""
13897 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13898 "label on a filesystem."
13899 msgstr ""
13900
13901 #. type: =head2
13902 #: ../fish/guestfish-actions.pod:4199
13903 msgid "set-e2uuid"
13904 msgstr ""
13905
13906 #. type: verbatim
13907 #: ../fish/guestfish-actions.pod:4201
13908 #, no-wrap
13909 msgid ""
13910 " set-e2uuid device uuid\n"
13911 "\n"
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
13916 msgid ""
13917 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13918 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13919 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13920 msgstr ""
13921
13922 #. type: textblock
13923 #: ../fish/guestfish-actions.pod:4208
13924 msgid ""
13925 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13926 "UUID of a filesystem."
13927 msgstr ""
13928
13929 #. type: =head2
13930 #: ../fish/guestfish-actions.pod:4211
13931 msgid "set-memsize"
13932 msgstr ""
13933
13934 #. type: =head2
13935 #: ../fish/guestfish-actions.pod:4213
13936 msgid "memsize"
13937 msgstr ""
13938
13939 #. type: verbatim
13940 #: ../fish/guestfish-actions.pod:4215
13941 #, no-wrap
13942 msgid ""
13943 " set-memsize memsize\n"
13944 "\n"
13945 msgstr ""
13946
13947 #. type: textblock
13948 #: ../fish/guestfish-actions.pod:4217
13949 msgid ""
13950 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13951 "This only has any effect if called before L</launch>."
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
13956 msgid ""
13957 "You can also change this by setting the environment variable "
13958 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13959 msgstr ""
13960
13961 #. type: =head2
13962 #: ../fish/guestfish-actions.pod:4228
13963 msgid "set-network"
13964 msgstr ""
13965
13966 #. type: =head2
13967 #: ../fish/guestfish-actions.pod:4230
13968 msgid "network"
13969 msgstr ""
13970
13971 #. type: verbatim
13972 #: ../fish/guestfish-actions.pod:4232
13973 #, no-wrap
13974 msgid ""
13975 " set-network true|false\n"
13976 "\n"
13977 msgstr ""
13978
13979 #. type: textblock
13980 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
13981 msgid ""
13982 "If C<network> is true, then the network is enabled in the libguestfs "
13983 "appliance.  The default is false."
13984 msgstr ""
13985
13986 #. type: textblock
13987 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
13988 msgid ""
13989 "This affects whether commands are able to access the network (see "
13990 "L<guestfs(3)/RUNNING COMMANDS>)."
13991 msgstr ""
13992
13993 #. type: textblock
13994 #: ../fish/guestfish-actions.pod:4240
13995 msgid "You must call this before calling L</launch>, otherwise it has no effect."
13996 msgstr ""
13997
13998 #. type: =head2
13999 #: ../fish/guestfish-actions.pod:4243
14000 msgid "set-path"
14001 msgstr ""
14002
14003 #. type: verbatim
14004 #: ../fish/guestfish-actions.pod:4247
14005 #, no-wrap
14006 msgid ""
14007 " set-path searchpath\n"
14008 "\n"
14009 msgstr ""
14010
14011 #. type: textblock
14012 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
14013 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14014 msgstr ""
14015
14016 #. type: textblock
14017 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
14018 msgid ""
14019 "The default is C<$libdir/guestfs> unless overridden by setting "
14020 "C<LIBGUESTFS_PATH> environment variable."
14021 msgstr ""
14022
14023 #. type: textblock
14024 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
14025 msgid "Setting C<path> to C<NULL> restores the default path."
14026 msgstr ""
14027
14028 #. type: =head2
14029 #: ../fish/guestfish-actions.pod:4256
14030 msgid "set-pgroup"
14031 msgstr ""
14032
14033 #. type: =head2
14034 #: ../fish/guestfish-actions.pod:4258
14035 msgid "pgroup"
14036 msgstr ""
14037
14038 #. type: verbatim
14039 #: ../fish/guestfish-actions.pod:4260
14040 #, no-wrap
14041 msgid ""
14042 " set-pgroup true|false\n"
14043 "\n"
14044 msgstr ""
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
14048 msgid ""
14049 "If C<pgroup> is true, child processes are placed into their own process "
14050 "group."
14051 msgstr ""
14052
14053 #. type: textblock
14054 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
14055 msgid ""
14056 "The practical upshot of this is that signals like C<SIGINT> (from users "
14057 "pressing C<^C>) won't be received by the child process."
14058 msgstr ""
14059
14060 #. type: textblock
14061 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
14062 msgid ""
14063 "The default for this flag is false, because usually you want C<^C> to kill "
14064 "the subprocess."
14065 msgstr ""
14066
14067 #. type: =head2
14068 #: ../fish/guestfish-actions.pod:4271
14069 msgid "set-qemu"
14070 msgstr ""
14071
14072 #. type: =head2
14073 #: ../fish/guestfish-actions.pod:4273
14074 msgid "qemu"
14075 msgstr ""
14076
14077 #. type: verbatim
14078 #: ../fish/guestfish-actions.pod:4275
14079 #, no-wrap
14080 msgid ""
14081 " set-qemu qemu\n"
14082 "\n"
14083 msgstr ""
14084
14085 #. type: textblock
14086 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
14087 msgid "Set the qemu binary that we will use."
14088 msgstr ""
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
14092 msgid "The default is chosen when the library was compiled by the configure script."
14093 msgstr ""
14094
14095 #. type: textblock
14096 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
14097 msgid ""
14098 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14099 "variable."
14100 msgstr ""
14101
14102 #. type: textblock
14103 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
14104 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14105 msgstr ""
14106
14107 #. type: textblock
14108 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
14109 msgid ""
14110 "Note that you should call this function as early as possible after creating "
14111 "the handle.  This is because some pre-launch operations depend on testing "
14112 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14113 "don't retest features, and so you might see inconsistent results.  Using the "
14114 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14115 "the qemu binary at the same time as the handle is created."
14116 msgstr ""
14117
14118 #. type: =head2
14119 #: ../fish/guestfish-actions.pod:4295
14120 msgid "set-recovery-proc"
14121 msgstr ""
14122
14123 #. type: =head2
14124 #: ../fish/guestfish-actions.pod:4297
14125 msgid "recovery-proc"
14126 msgstr ""
14127
14128 #. type: verbatim
14129 #: ../fish/guestfish-actions.pod:4299
14130 #, no-wrap
14131 msgid ""
14132 " set-recovery-proc true|false\n"
14133 "\n"
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:4301
14138 msgid ""
14139 "If this is called with the parameter C<false> then L</launch> does not "
14140 "create a recovery process.  The purpose of the recovery process is to stop "
14141 "runaway qemu processes in the case where the main program aborts abruptly."
14142 msgstr ""
14143
14144 #. type: textblock
14145 #: ../fish/guestfish-actions.pod:4306
14146 msgid ""
14147 "This only has any effect if called before L</launch>, and the default is "
14148 "true."
14149 msgstr ""
14150
14151 #. type: textblock
14152 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
14153 msgid ""
14154 "About the only time when you would want to disable this is if the main "
14155 "process will fork itself into the background (\"daemonize\" itself).  In "
14156 "this case the recovery process thinks that the main program has disappeared "
14157 "and so kills qemu, which is not very helpful."
14158 msgstr ""
14159
14160 #. type: =head2
14161 #: ../fish/guestfish-actions.pod:4315
14162 msgid "set-selinux"
14163 msgstr ""
14164
14165 #. type: =head2
14166 #: ../fish/guestfish-actions.pod:4317
14167 msgid "selinux"
14168 msgstr ""
14169
14170 #. type: verbatim
14171 #: ../fish/guestfish-actions.pod:4319
14172 #, no-wrap
14173 msgid ""
14174 " set-selinux true|false\n"
14175 "\n"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14180 msgid ""
14181 "This sets the selinux flag that is passed to the appliance at boot time.  "
14182 "The default is C<selinux=0> (disabled)."
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14187 msgid ""
14188 "Note that if SELinux is enabled, it is always in Permissive mode "
14189 "(C<enforcing=0>)."
14190 msgstr ""
14191
14192 #. type: =head2
14193 #: ../fish/guestfish-actions.pod:4330
14194 msgid "set-smp"
14195 msgstr ""
14196
14197 #. type: =head2
14198 #: ../fish/guestfish-actions.pod:4332
14199 msgid "smp"
14200 msgstr ""
14201
14202 #. type: verbatim
14203 #: ../fish/guestfish-actions.pod:4334
14204 #, no-wrap
14205 msgid ""
14206 " set-smp smp\n"
14207 "\n"
14208 msgstr ""
14209
14210 #. type: textblock
14211 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14212 msgid ""
14213 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14214 "C<1>.  Increasing this may improve performance, though often it has no "
14215 "effect."
14216 msgstr ""
14217
14218 #. type: textblock
14219 #: ../fish/guestfish-actions.pod:4340
14220 msgid "This function must be called before L</launch>."
14221 msgstr ""
14222
14223 #. type: =head2
14224 #: ../fish/guestfish-actions.pod:4342
14225 msgid "set-trace"
14226 msgstr ""
14227
14228 #. type: =head2
14229 #: ../fish/guestfish-actions.pod:4344
14230 msgid "trace"
14231 msgstr ""
14232
14233 #. type: verbatim
14234 #: ../fish/guestfish-actions.pod:4346
14235 #, no-wrap
14236 msgid ""
14237 " set-trace true|false\n"
14238 "\n"
14239 msgstr ""
14240
14241 #. type: textblock
14242 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14243 msgid ""
14244 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14245 "return values are traced."
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14250 msgid ""
14251 "If you want to trace C API calls into libguestfs (and other libraries) then "
14252 "possibly a better way is to use the external ltrace(1) command."
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14257 msgid ""
14258 "Command traces are disabled unless the environment variable "
14259 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14260 msgstr ""
14261
14262 #. type: textblock
14263 #: ../fish/guestfish-actions.pod:4358
14264 msgid ""
14265 "Trace messages are normally sent to C<stderr>, unless you register a "
14266 "callback to send them somewhere else (see L</set-event-callback>)."
14267 msgstr ""
14268
14269 #. type: =head2
14270 #: ../fish/guestfish-actions.pod:4362
14271 msgid "set-verbose"
14272 msgstr ""
14273
14274 #. type: =head2
14275 #: ../fish/guestfish-actions.pod:4364
14276 msgid "verbose"
14277 msgstr ""
14278
14279 #. type: verbatim
14280 #: ../fish/guestfish-actions.pod:4366
14281 #, no-wrap
14282 msgid ""
14283 " set-verbose true|false\n"
14284 "\n"
14285 msgstr ""
14286
14287 #. type: textblock
14288 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14289 msgid "If C<verbose> is true, this turns on verbose messages."
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14294 msgid ""
14295 "Verbose messages are disabled unless the environment variable "
14296 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:4373
14301 msgid ""
14302 "Verbose messages are normally sent to C<stderr>, unless you register a "
14303 "callback to send them somewhere else (see L</set-event-callback>)."
14304 msgstr ""
14305
14306 #. type: =head2
14307 #: ../fish/guestfish-actions.pod:4377
14308 msgid "setcon"
14309 msgstr ""
14310
14311 #. type: verbatim
14312 #: ../fish/guestfish-actions.pod:4379
14313 #, no-wrap
14314 msgid ""
14315 " setcon context\n"
14316 "\n"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14321 msgid ""
14322 "This sets the SELinux security context of the daemon to the string "
14323 "C<context>."
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14328 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14329 msgstr ""
14330
14331 #. type: =head2
14332 #: ../fish/guestfish-actions.pod:4386
14333 msgid "setxattr"
14334 msgstr ""
14335
14336 #. type: verbatim
14337 #: ../fish/guestfish-actions.pod:4388
14338 #, no-wrap
14339 msgid ""
14340 " setxattr xattr val vallen path\n"
14341 "\n"
14342 msgstr ""
14343
14344 #. type: textblock
14345 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
14346 msgid ""
14347 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14348 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:4394
14353 msgid "See also: L</lsetxattr>, L<attr(5)>."
14354 msgstr ""
14355
14356 #. type: =head2
14357 #: ../fish/guestfish-actions.pod:4396
14358 msgid "sfdisk"
14359 msgstr ""
14360
14361 #. type: verbatim
14362 #: ../fish/guestfish-actions.pod:4398
14363 #, no-wrap
14364 msgid ""
14365 " sfdisk device cyls heads sectors 'lines ...'\n"
14366 "\n"
14367 msgstr ""
14368
14369 #. type: textblock
14370 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
14371 msgid ""
14372 "This is a direct interface to the L<sfdisk(8)> program for creating "
14373 "partitions on block devices."
14374 msgstr ""
14375
14376 #. type: textblock
14377 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
14378 msgid "C<device> should be a block device, for example C</dev/sda>."
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
14383 msgid ""
14384 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14385 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
14386 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14387 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14388 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14389 "the kernel) cannot work out the right geometry and you will need to tell it."
14390 msgstr ""
14391
14392 #. type: textblock
14393 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
14394 msgid ""
14395 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14396 "refer to the L<sfdisk(8)> manpage."
14397 msgstr ""
14398
14399 #. type: textblock
14400 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
14401 msgid ""
14402 "To create a single partition occupying the whole disk, you would pass "
14403 "C<lines> as a single element list, when the single element being the string "
14404 "C<,> (comma)."
14405 msgstr ""
14406
14407 #. type: textblock
14408 #: ../fish/guestfish-actions.pod:4420
14409 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449 ../fish/guestfish-actions.pod:4471
14414 msgid ""
14415 "I<This function is deprecated.> In new code, use the L</part_add> call "
14416 "instead."
14417 msgstr ""
14418
14419 #. type: =head2
14420 #: ../fish/guestfish-actions.pod:4433
14421 msgid "sfdiskM"
14422 msgstr ""
14423
14424 #. type: verbatim
14425 #: ../fish/guestfish-actions.pod:4435
14426 #, no-wrap
14427 msgid ""
14428 " sfdiskM device 'lines ...'\n"
14429 "\n"
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:4437
14434 msgid ""
14435 "This is a simplified interface to the L</sfdisk> command, where partition "
14436 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14437 "you don't need to specify the cyls, heads and sectors parameters which were "
14438 "rarely if ever used anyway."
14439 msgstr ""
14440
14441 #. type: textblock
14442 #: ../fish/guestfish-actions.pod:4443
14443 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14444 msgstr ""
14445
14446 #. type: =head2
14447 #: ../fish/guestfish-actions.pod:4456
14448 msgid "sfdisk-N"
14449 msgstr ""
14450
14451 #. type: verbatim
14452 #: ../fish/guestfish-actions.pod:4458
14453 #, no-wrap
14454 msgid ""
14455 " sfdisk-N device partnum cyls heads sectors line\n"
14456 "\n"
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
14461 msgid ""
14462 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14463 "(note: C<n> counts from 1)."
14464 msgstr ""
14465
14466 #. type: textblock
14467 #: ../fish/guestfish-actions.pod:4463
14468 msgid ""
14469 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14470 "cyls/heads/sectors parameters."
14471 msgstr ""
14472
14473 #. type: textblock
14474 #: ../fish/guestfish-actions.pod:4466
14475 msgid "See also: L</part-add>"
14476 msgstr ""
14477
14478 #. type: =head2
14479 #: ../fish/guestfish-actions.pod:4478
14480 msgid "sfdisk-disk-geometry"
14481 msgstr ""
14482
14483 #. type: verbatim
14484 #: ../fish/guestfish-actions.pod:4480
14485 #, no-wrap
14486 msgid ""
14487 " sfdisk-disk-geometry device\n"
14488 "\n"
14489 msgstr ""
14490
14491 #. type: textblock
14492 #: ../fish/guestfish-actions.pod:4482
14493 msgid ""
14494 "This displays the disk geometry of C<device> read from the partition table.  "
14495 "Especially in the case where the underlying block device has been resized, "
14496 "this can be different from the kernel's idea of the geometry (see "
14497 "L</sfdisk-kernel-geometry>)."
14498 msgstr ""
14499
14500 #. type: textblock
14501 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
14502 msgid "The result is in human-readable format, and not designed to be parsed."
14503 msgstr ""
14504
14505 #. type: =head2
14506 #: ../fish/guestfish-actions.pod:4490
14507 msgid "sfdisk-kernel-geometry"
14508 msgstr ""
14509
14510 #. type: verbatim
14511 #: ../fish/guestfish-actions.pod:4492
14512 #, no-wrap
14513 msgid ""
14514 " sfdisk-kernel-geometry device\n"
14515 "\n"
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
14520 msgid "This displays the kernel's idea of the geometry of C<device>."
14521 msgstr ""
14522
14523 #. type: =head2
14524 #: ../fish/guestfish-actions.pod:4499
14525 msgid "sfdisk-l"
14526 msgstr ""
14527
14528 #. type: verbatim
14529 #: ../fish/guestfish-actions.pod:4501
14530 #, no-wrap
14531 msgid ""
14532 " sfdisk-l device\n"
14533 "\n"
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
14538 msgid ""
14539 "This displays the partition table on C<device>, in the human-readable output "
14540 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14541 msgstr ""
14542
14543 #. type: textblock
14544 #: ../fish/guestfish-actions.pod:4507
14545 msgid "See also: L</part-list>"
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4509
14550 msgid ""
14551 "I<This function is deprecated.> In new code, use the L</part_list> call "
14552 "instead."
14553 msgstr ""
14554
14555 #. type: =head2
14556 #: ../fish/guestfish-actions.pod:4516
14557 msgid "sh"
14558 msgstr ""
14559
14560 #. type: verbatim
14561 #: ../fish/guestfish-actions.pod:4518
14562 #, no-wrap
14563 msgid ""
14564 " sh command\n"
14565 "\n"
14566 msgstr ""
14567
14568 #. type: textblock
14569 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
14570 msgid ""
14571 "This call runs a command from the guest filesystem via the guest's "
14572 "C</bin/sh>."
14573 msgstr ""
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:4523
14577 msgid "This is like L</command>, but passes the command to:"
14578 msgstr ""
14579
14580 #. type: verbatim
14581 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
14582 #, no-wrap
14583 msgid ""
14584 " /bin/sh -c \"command\"\n"
14585 "\n"
14586 msgstr ""
14587
14588 #. type: textblock
14589 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
14590 msgid ""
14591 "Depending on the guest's shell, this usually results in wildcards being "
14592 "expanded, shell expressions being interpolated and so on."
14593 msgstr ""
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:4531
14597 msgid "All the provisos about L</command> apply to this call."
14598 msgstr ""
14599
14600 #. type: =head2
14601 #: ../fish/guestfish-actions.pod:4533
14602 msgid "sh-lines"
14603 msgstr ""
14604
14605 #. type: verbatim
14606 #: ../fish/guestfish-actions.pod:4535
14607 #, no-wrap
14608 msgid ""
14609 " sh-lines command\n"
14610 "\n"
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:4537
14615 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14616 msgstr ""
14617
14618 #. type: textblock
14619 #: ../fish/guestfish-actions.pod:4540
14620 msgid "See also: L</command-lines>"
14621 msgstr ""
14622
14623 #. type: =head2
14624 #: ../fish/guestfish-actions.pod:4542
14625 msgid "sleep"
14626 msgstr ""
14627
14628 #. type: verbatim
14629 #: ../fish/guestfish-actions.pod:4544
14630 #, no-wrap
14631 msgid ""
14632 " sleep secs\n"
14633 "\n"
14634 msgstr ""
14635
14636 #. type: textblock
14637 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
14638 msgid "Sleep for C<secs> seconds."
14639 msgstr ""
14640
14641 #. type: =head2
14642 #: ../fish/guestfish-actions.pod:4548
14643 msgid "stat"
14644 msgstr ""
14645
14646 #. type: verbatim
14647 #: ../fish/guestfish-actions.pod:4550
14648 #, no-wrap
14649 msgid ""
14650 " stat path\n"
14651 "\n"
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
14656 msgid "This is the same as the C<stat(2)> system call."
14657 msgstr ""
14658
14659 #. type: =head2
14660 #: ../fish/guestfish-actions.pod:4556
14661 msgid "statvfs"
14662 msgstr ""
14663
14664 #. type: verbatim
14665 #: ../fish/guestfish-actions.pod:4558
14666 #, no-wrap
14667 msgid ""
14668 " statvfs path\n"
14669 "\n"
14670 msgstr ""
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
14674 msgid ""
14675 "Returns file system statistics for any mounted file system.  C<path> should "
14676 "be a file or directory in the mounted file system (typically it is the mount "
14677 "point itself, but it doesn't need to be)."
14678 msgstr ""
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
14682 msgid "This is the same as the C<statvfs(2)> system call."
14683 msgstr ""
14684
14685 #. type: =head2
14686 #: ../fish/guestfish-actions.pod:4566
14687 msgid "strings"
14688 msgstr ""
14689
14690 #. type: verbatim
14691 #: ../fish/guestfish-actions.pod:4568
14692 #, no-wrap
14693 msgid ""
14694 " strings path\n"
14695 "\n"
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
14700 msgid ""
14701 "This runs the L<strings(1)> command on a file and returns the list of "
14702 "printable strings found."
14703 msgstr ""
14704
14705 #. type: =head2
14706 #: ../fish/guestfish-actions.pod:4576
14707 msgid "strings-e"
14708 msgstr ""
14709
14710 #. type: verbatim
14711 #: ../fish/guestfish-actions.pod:4578
14712 #, no-wrap
14713 msgid ""
14714 " strings-e encoding path\n"
14715 "\n"
14716 msgstr ""
14717
14718 #. type: textblock
14719 #: ../fish/guestfish-actions.pod:4580
14720 msgid ""
14721 "This is like the L</strings> command, but allows you to specify the encoding "
14722 "of strings that are looked for in the source file C<path>."
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
14727 msgid "Allowed encodings are:"
14728 msgstr ""
14729
14730 #. type: =item
14731 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
14732 msgid "s"
14733 msgstr ""
14734
14735 #. type: textblock
14736 #: ../fish/guestfish-actions.pod:4590
14737 msgid ""
14738 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14739 "ISO-8859-X (this is what L</strings> uses)."
14740 msgstr ""
14741
14742 #. type: =item
14743 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
14744 msgid "S"
14745 msgstr ""
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
14749 msgid "Single 8-bit-byte characters."
14750 msgstr ""
14751
14752 #. type: =item
14753 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
14754 msgid "b"
14755 msgstr ""
14756
14757 #. type: textblock
14758 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
14759 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14760 msgstr ""
14761
14762 #. type: =item
14763 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
14764 msgid "l (lower case letter L)"
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
14769 msgid ""
14770 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14771 "examining binaries in Windows guests."
14772 msgstr ""
14773
14774 #. type: =item
14775 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
14776 msgid "B"
14777 msgstr ""
14778
14779 #. type: textblock
14780 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
14781 msgid "32-bit big endian such as UCS-4BE."
14782 msgstr ""
14783
14784 #. type: =item
14785 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
14786 msgid "L"
14787 msgstr ""
14788
14789 #. type: textblock
14790 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
14791 msgid "32-bit little endian such as UCS-4LE."
14792 msgstr ""
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
14796 msgid "The returned strings are transcoded to UTF-8."
14797 msgstr ""
14798
14799 #. type: =head2
14800 #: ../fish/guestfish-actions.pod:4622
14801 msgid "swapoff-device"
14802 msgstr ""
14803
14804 #. type: verbatim
14805 #: ../fish/guestfish-actions.pod:4624
14806 #, no-wrap
14807 msgid ""
14808 " swapoff-device device\n"
14809 "\n"
14810 msgstr ""
14811
14812 #. type: textblock
14813 #: ../fish/guestfish-actions.pod:4626
14814 msgid ""
14815 "This command disables the libguestfs appliance swap device or partition "
14816 "named C<device>.  See L</swapon-device>."
14817 msgstr ""
14818
14819 #. type: =head2
14820 #: ../fish/guestfish-actions.pod:4630
14821 msgid "swapoff-file"
14822 msgstr ""
14823
14824 #. type: verbatim
14825 #: ../fish/guestfish-actions.pod:4632
14826 #, no-wrap
14827 msgid ""
14828 " swapoff-file file\n"
14829 "\n"
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
14834 msgid "This command disables the libguestfs appliance swap on file."
14835 msgstr ""
14836
14837 #. type: =head2
14838 #: ../fish/guestfish-actions.pod:4636
14839 msgid "swapoff-label"
14840 msgstr ""
14841
14842 #. type: verbatim
14843 #: ../fish/guestfish-actions.pod:4638
14844 #, no-wrap
14845 msgid ""
14846 " swapoff-label label\n"
14847 "\n"
14848 msgstr ""
14849
14850 #. type: textblock
14851 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
14852 msgid ""
14853 "This command disables the libguestfs appliance swap on labeled swap "
14854 "partition."
14855 msgstr ""
14856
14857 #. type: =head2
14858 #: ../fish/guestfish-actions.pod:4643
14859 msgid "swapoff-uuid"
14860 msgstr ""
14861
14862 #. type: verbatim
14863 #: ../fish/guestfish-actions.pod:4645
14864 #, no-wrap
14865 msgid ""
14866 " swapoff-uuid uuid\n"
14867 "\n"
14868 msgstr ""
14869
14870 #. type: textblock
14871 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
14872 msgid ""
14873 "This command disables the libguestfs appliance swap partition with the given "
14874 "UUID."
14875 msgstr ""
14876
14877 #. type: =head2
14878 #: ../fish/guestfish-actions.pod:4650
14879 msgid "swapon-device"
14880 msgstr ""
14881
14882 #. type: verbatim
14883 #: ../fish/guestfish-actions.pod:4652
14884 #, no-wrap
14885 msgid ""
14886 " swapon-device device\n"
14887 "\n"
14888 msgstr ""
14889
14890 #. type: textblock
14891 #: ../fish/guestfish-actions.pod:4654
14892 msgid ""
14893 "This command enables the libguestfs appliance to use the swap device or "
14894 "partition named C<device>.  The increased memory is made available for all "
14895 "commands, for example those run using L</command> or L</sh>."
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
14900 msgid ""
14901 "Note that you should not swap to existing guest swap partitions unless you "
14902 "know what you are doing.  They may contain hibernation information, or other "
14903 "information that the guest doesn't want you to trash.  You also risk leaking "
14904 "information about the host to the guest this way.  Instead, attach a new "
14905 "host device to the guest and swap on that."
14906 msgstr ""
14907
14908 #. type: =head2
14909 #: ../fish/guestfish-actions.pod:4666
14910 msgid "swapon-file"
14911 msgstr ""
14912
14913 #. type: verbatim
14914 #: ../fish/guestfish-actions.pod:4668
14915 #, no-wrap
14916 msgid ""
14917 " swapon-file file\n"
14918 "\n"
14919 msgstr ""
14920
14921 #. type: textblock
14922 #: ../fish/guestfish-actions.pod:4670
14923 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
14924 msgstr ""
14925
14926 #. type: =head2
14927 #: ../fish/guestfish-actions.pod:4673
14928 msgid "swapon-label"
14929 msgstr ""
14930
14931 #. type: verbatim
14932 #: ../fish/guestfish-actions.pod:4675
14933 #, no-wrap
14934 msgid ""
14935 " swapon-label label\n"
14936 "\n"
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:4677
14941 msgid ""
14942 "This command enables swap to a labeled swap partition.  See "
14943 "L</swapon-device> for other notes."
14944 msgstr ""
14945
14946 #. type: =head2
14947 #: ../fish/guestfish-actions.pod:4680
14948 msgid "swapon-uuid"
14949 msgstr ""
14950
14951 #. type: verbatim
14952 #: ../fish/guestfish-actions.pod:4682
14953 #, no-wrap
14954 msgid ""
14955 " swapon-uuid uuid\n"
14956 "\n"
14957 msgstr ""
14958
14959 #. type: textblock
14960 #: ../fish/guestfish-actions.pod:4684
14961 msgid ""
14962 "This command enables swap to a swap partition with the given UUID.  See "
14963 "L</swapon-device> for other notes."
14964 msgstr ""
14965
14966 #. type: =head2
14967 #: ../fish/guestfish-actions.pod:4687
14968 msgid "sync"
14969 msgstr ""
14970
14971 #. type: verbatim
14972 #: ../fish/guestfish-actions.pod:4689
14973 #, no-wrap
14974 msgid ""
14975 " sync\n"
14976 "\n"
14977 msgstr ""
14978
14979 #. type: textblock
14980 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
14981 msgid ""
14982 "This syncs the disk, so that any writes are flushed through to the "
14983 "underlying disk image."
14984 msgstr ""
14985
14986 #. type: textblock
14987 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
14988 msgid ""
14989 "You should always call this if you have modified a disk image, before "
14990 "closing the handle."
14991 msgstr ""
14992
14993 #. type: =head2
14994 #: ../fish/guestfish-actions.pod:4697
14995 msgid "tail"
14996 msgstr ""
14997
14998 #. type: verbatim
14999 #: ../fish/guestfish-actions.pod:4699
15000 #, no-wrap
15001 msgid ""
15002 " tail path\n"
15003 "\n"
15004 msgstr ""
15005
15006 #. type: textblock
15007 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
15008 msgid "This command returns up to the last 10 lines of a file as a list of strings."
15009 msgstr ""
15010
15011 #. type: =head2
15012 #: ../fish/guestfish-actions.pod:4707
15013 msgid "tail-n"
15014 msgstr ""
15015
15016 #. type: verbatim
15017 #: ../fish/guestfish-actions.pod:4709
15018 #, no-wrap
15019 msgid ""
15020 " tail-n nrlines path\n"
15021 "\n"
15022 msgstr ""
15023
15024 #. type: textblock
15025 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
15026 msgid ""
15027 "If the parameter C<nrlines> is a positive number, this returns the last "
15028 "C<nrlines> lines of the file C<path>."
15029 msgstr ""
15030
15031 #. type: textblock
15032 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
15033 msgid ""
15034 "If the parameter C<nrlines> is a negative number, this returns lines from "
15035 "the file C<path>, starting with the C<-nrlines>th line."
15036 msgstr ""
15037
15038 #. type: =head2
15039 #: ../fish/guestfish-actions.pod:4722
15040 msgid "tar-in"
15041 msgstr ""
15042
15043 #. type: verbatim
15044 #: ../fish/guestfish-actions.pod:4724
15045 #, no-wrap
15046 msgid ""
15047 " tar-in (tarfile|-) directory\n"
15048 "\n"
15049 msgstr ""
15050
15051 #. type: textblock
15052 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
15053 msgid ""
15054 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15055 "tar file) into C<directory>."
15056 msgstr ""
15057
15058 #. type: textblock
15059 #: ../fish/guestfish-actions.pod:4729
15060 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15061 msgstr ""
15062
15063 #. type: =head2
15064 #: ../fish/guestfish-actions.pod:4734
15065 msgid "tar-out"
15066 msgstr ""
15067
15068 #. type: verbatim
15069 #: ../fish/guestfish-actions.pod:4736
15070 #, no-wrap
15071 msgid ""
15072 " tar-out directory (tarfile|-)\n"
15073 "\n"
15074 msgstr ""
15075
15076 #. type: textblock
15077 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
15078 msgid ""
15079 "This command packs the contents of C<directory> and downloads it to local "
15080 "file C<tarfile>."
15081 msgstr ""
15082
15083 #. type: textblock
15084 #: ../fish/guestfish-actions.pod:4741
15085 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15086 msgstr ""
15087
15088 #. type: =head2
15089 #: ../fish/guestfish-actions.pod:4746
15090 msgid "tgz-in"
15091 msgstr ""
15092
15093 #. type: verbatim
15094 #: ../fish/guestfish-actions.pod:4748
15095 #, no-wrap
15096 msgid ""
15097 " tgz-in (tarball|-) directory\n"
15098 "\n"
15099 msgstr ""
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
15103 msgid ""
15104 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15105 "tar file) into C<directory>."
15106 msgstr ""
15107
15108 #. type: textblock
15109 #: ../fish/guestfish-actions.pod:4753
15110 msgid "To upload an uncompressed tarball, use L</tar-in>."
15111 msgstr ""
15112
15113 #. type: =head2
15114 #: ../fish/guestfish-actions.pod:4757
15115 msgid "tgz-out"
15116 msgstr ""
15117
15118 #. type: verbatim
15119 #: ../fish/guestfish-actions.pod:4759
15120 #, no-wrap
15121 msgid ""
15122 " tgz-out directory (tarball|-)\n"
15123 "\n"
15124 msgstr ""
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
15128 msgid ""
15129 "This command packs the contents of C<directory> and downloads it to local "
15130 "file C<tarball>."
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-actions.pod:4764
15135 msgid "To download an uncompressed tarball, use L</tar-out>."
15136 msgstr ""
15137
15138 #. type: =head2
15139 #: ../fish/guestfish-actions.pod:4768
15140 msgid "touch"
15141 msgstr ""
15142
15143 #. type: verbatim
15144 #: ../fish/guestfish-actions.pod:4770
15145 #, no-wrap
15146 msgid ""
15147 " touch path\n"
15148 "\n"
15149 msgstr ""
15150
15151 #. type: textblock
15152 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
15153 msgid ""
15154 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15155 "timestamps on a file, or, if the file does not exist, to create a new "
15156 "zero-length file."
15157 msgstr ""
15158
15159 #. type: textblock
15160 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15161 msgid ""
15162 "This command only works on regular files, and will fail on other file types "
15163 "such as directories, symbolic links, block special etc."
15164 msgstr ""
15165
15166 #. type: =head2
15167 #: ../fish/guestfish-actions.pod:4779
15168 msgid "truncate"
15169 msgstr ""
15170
15171 #. type: verbatim
15172 #: ../fish/guestfish-actions.pod:4781
15173 #, no-wrap
15174 msgid ""
15175 " truncate path\n"
15176 "\n"
15177 msgstr ""
15178
15179 #. type: textblock
15180 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15181 msgid ""
15182 "This command truncates C<path> to a zero-length file.  The file must exist "
15183 "already."
15184 msgstr ""
15185
15186 #. type: =head2
15187 #: ../fish/guestfish-actions.pod:4786
15188 msgid "truncate-size"
15189 msgstr ""
15190
15191 #. type: verbatim
15192 #: ../fish/guestfish-actions.pod:4788
15193 #, no-wrap
15194 msgid ""
15195 " truncate-size path size\n"
15196 "\n"
15197 msgstr ""
15198
15199 #. type: textblock
15200 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15201 msgid ""
15202 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15203 "already."
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-actions.pod:4793
15208 msgid ""
15209 "If the current file size is less than C<size> then the file is extended to "
15210 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15211 "blocks are not allocated for the file until you write to it).  To create a "
15212 "non-sparse file of zeroes, use L</fallocate64> instead."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../fish/guestfish-actions.pod:4799
15217 msgid "tune2fs-l"
15218 msgstr ""
15219
15220 #. type: verbatim
15221 #: ../fish/guestfish-actions.pod:4801
15222 #, no-wrap
15223 msgid ""
15224 " tune2fs-l device\n"
15225 "\n"
15226 msgstr ""
15227
15228 #. type: textblock
15229 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15230 msgid ""
15231 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15232 "C<device>."
15233 msgstr ""
15234
15235 #. type: textblock
15236 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15237 msgid ""
15238 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15239 "for more details.  The list of fields returned isn't clearly defined, and "
15240 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15241 "and the filesystem itself."
15242 msgstr ""
15243
15244 #. type: =head2
15245 #: ../fish/guestfish-actions.pod:4811
15246 msgid "txz-in"
15247 msgstr ""
15248
15249 #. type: verbatim
15250 #: ../fish/guestfish-actions.pod:4813
15251 #, no-wrap
15252 msgid ""
15253 " txz-in (tarball|-) directory\n"
15254 "\n"
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15259 msgid ""
15260 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15261 "tar file) into C<directory>."
15262 msgstr ""
15263
15264 #. type: =head2
15265 #: ../fish/guestfish-actions.pod:4820
15266 msgid "txz-out"
15267 msgstr ""
15268
15269 #. type: verbatim
15270 #: ../fish/guestfish-actions.pod:4822
15271 #, no-wrap
15272 msgid ""
15273 " txz-out directory (tarball|-)\n"
15274 "\n"
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
15279 msgid ""
15280 "This command packs the contents of C<directory> and downloads it to local "
15281 "file C<tarball> (as an xz compressed tar archive)."
15282 msgstr ""
15283
15284 #. type: =head2
15285 #: ../fish/guestfish-actions.pod:4829
15286 msgid "umask"
15287 msgstr ""
15288
15289 #. type: verbatim
15290 #: ../fish/guestfish-actions.pod:4831
15291 #, no-wrap
15292 msgid ""
15293 " umask mask\n"
15294 "\n"
15295 msgstr ""
15296
15297 #. type: textblock
15298 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
15299 msgid ""
15300 "This function sets the mask used for creating new files and device nodes to "
15301 "C<mask & 0777>."
15302 msgstr ""
15303
15304 #. type: textblock
15305 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
15306 msgid ""
15307 "Typical umask values would be C<022> which creates new files with "
15308 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15309 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15310 msgstr ""
15311
15312 #. type: textblock
15313 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
15314 msgid ""
15315 "The default umask is C<022>.  This is important because it means that "
15316 "directories and device nodes will be created with C<0644> or C<0755> mode "
15317 "even if you specify C<0777>."
15318 msgstr ""
15319
15320 #. type: textblock
15321 #: ../fish/guestfish-actions.pod:4845
15322 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15323 msgstr ""
15324
15325 #. type: textblock
15326 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
15327 msgid "This call returns the previous umask."
15328 msgstr ""
15329
15330 #. type: =head2
15331 #: ../fish/guestfish-actions.pod:4850
15332 msgid "umount"
15333 msgstr ""
15334
15335 #. type: =head2
15336 #: ../fish/guestfish-actions.pod:4852
15337 msgid "unmount"
15338 msgstr ""
15339
15340 #. type: verbatim
15341 #: ../fish/guestfish-actions.pod:4854
15342 #, no-wrap
15343 msgid ""
15344 " umount pathordevice\n"
15345 "\n"
15346 msgstr ""
15347
15348 #. type: textblock
15349 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
15350 msgid ""
15351 "This unmounts the given filesystem.  The filesystem may be specified either "
15352 "by its mountpoint (path) or the device which contains the filesystem."
15353 msgstr ""
15354
15355 #. type: =head2
15356 #: ../fish/guestfish-actions.pod:4860
15357 msgid "umount-all"
15358 msgstr ""
15359
15360 #. type: =head2
15361 #: ../fish/guestfish-actions.pod:4862
15362 msgid "unmount-all"
15363 msgstr ""
15364
15365 #. type: verbatim
15366 #: ../fish/guestfish-actions.pod:4864
15367 #, no-wrap
15368 msgid ""
15369 " umount-all\n"
15370 "\n"
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
15375 msgid "This unmounts all mounted filesystems."
15376 msgstr ""
15377
15378 #. type: textblock
15379 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
15380 msgid "Some internal mounts are not unmounted by this call."
15381 msgstr ""
15382
15383 #. type: =head2
15384 #: ../fish/guestfish-actions.pod:4870
15385 msgid "upload"
15386 msgstr ""
15387
15388 #. type: verbatim
15389 #: ../fish/guestfish-actions.pod:4872
15390 #, no-wrap
15391 msgid ""
15392 " upload (filename|-) remotefilename\n"
15393 "\n"
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
15398 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15399 msgstr ""
15400
15401 #. type: textblock
15402 #: ../fish/guestfish-actions.pod:4879
15403 msgid "See also L</download>."
15404 msgstr ""
15405
15406 #. type: =head2
15407 #: ../fish/guestfish-actions.pod:4883
15408 msgid "upload-offset"
15409 msgstr ""
15410
15411 #. type: verbatim
15412 #: ../fish/guestfish-actions.pod:4885
15413 #, no-wrap
15414 msgid ""
15415 " upload-offset (filename|-) remotefilename offset\n"
15416 "\n"
15417 msgstr ""
15418
15419 #. type: textblock
15420 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
15421 msgid ""
15422 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15423 "The intention is to overwrite parts of existing files or devices, although "
15424 "if a non-existant file is specified then it is created with a \"hole\" "
15425 "before C<offset>.  The size of the data written is implicit in the size of "
15426 "the source C<filename>."
15427 msgstr ""
15428
15429 #. type: textblock
15430 #: ../fish/guestfish-actions.pod:4897
15431 msgid ""
15432 "Note that there is no limit on the amount of data that can be uploaded with "
15433 "this call, unlike with L</pwrite>, and this call always writes the full "
15434 "amount unless an error occurs."
15435 msgstr ""
15436
15437 #. type: textblock
15438 #: ../fish/guestfish-actions.pod:4902
15439 msgid "See also L</upload>, L</pwrite>."
15440 msgstr ""
15441
15442 #. type: =head2
15443 #: ../fish/guestfish-actions.pod:4906
15444 msgid "utimens"
15445 msgstr ""
15446
15447 #. type: verbatim
15448 #: ../fish/guestfish-actions.pod:4908
15449 #, no-wrap
15450 msgid ""
15451 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15452 "\n"
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
15457 msgid "This command sets the timestamps of a file with nanosecond precision."
15458 msgstr ""
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
15462 msgid ""
15463 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15464 "from the epoch."
15465 msgstr ""
15466
15467 #. type: textblock
15468 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
15469 msgid ""
15470 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15471 "nanoseconds from the epoch."
15472 msgstr ""
15473
15474 #. type: textblock
15475 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
15476 msgid ""
15477 "If the C<*nsecs> field contains the special value C<-1> then the "
15478 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15479 "ignored in this case)."
15480 msgstr ""
15481
15482 #. type: textblock
15483 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
15484 msgid ""
15485 "If the C<*nsecs> field contains the special value C<-2> then the "
15486 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15487 "in this case)."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-actions.pod:4927
15492 msgid "version"
15493 msgstr ""
15494
15495 #. type: verbatim
15496 #: ../fish/guestfish-actions.pod:4929
15497 #, no-wrap
15498 msgid ""
15499 " version\n"
15500 "\n"
15501 msgstr ""
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
15505 msgid "Return the libguestfs version number that the program is linked against."
15506 msgstr ""
15507
15508 #. type: textblock
15509 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
15510 msgid ""
15511 "Note that because of dynamic linking this is not necessarily the version of "
15512 "libguestfs that you compiled against.  You can compile the program, and then "
15513 "at runtime dynamically link against a completely different C<libguestfs.so> "
15514 "library."
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
15519 msgid ""
15520 "This call was added in version C<1.0.58>.  In previous versions of "
15521 "libguestfs there was no way to get the version number.  From C code you can "
15522 "use dynamic linker functions to find out if this symbol exists (if it "
15523 "doesn't, then it's an earlier version)."
15524 msgstr ""
15525
15526 #. type: textblock
15527 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
15528 msgid ""
15529 "The call returns a structure with four elements.  The first three (C<major>, "
15530 "C<minor> and C<release>) are numbers and correspond to the usual version "
15531 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15532 "but may be used for distro-specific information."
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
15537 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
15538 msgstr ""
15539
15540 #. type: textblock
15541 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
15542 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15543 msgstr ""
15544
15545 #. type: textblock
15546 #: ../fish/guestfish-actions.pod:4956
15547 msgid ""
15548 "I<Note:> Don't use this call to test for availability of features.  In "
15549 "enterprise distributions we backport features from later versions into "
15550 "earlier versions, making this an unreliable way to test for features.  Use "
15551 "L</available> instead."
15552 msgstr ""
15553
15554 #. type: =head2
15555 #: ../fish/guestfish-actions.pod:4962
15556 msgid "vfs-label"
15557 msgstr ""
15558
15559 #. type: verbatim
15560 #: ../fish/guestfish-actions.pod:4964
15561 #, no-wrap
15562 msgid ""
15563 " vfs-label device\n"
15564 "\n"
15565 msgstr ""
15566
15567 #. type: textblock
15568 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
15569 msgid "This returns the filesystem label of the filesystem on C<device>."
15570 msgstr ""
15571
15572 #. type: textblock
15573 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
15574 msgid "If the filesystem is unlabeled, this returns the empty string."
15575 msgstr ""
15576
15577 #. type: textblock
15578 #: ../fish/guestfish-actions.pod:4971
15579 msgid "To find a filesystem from the label, use L</findfs-label>."
15580 msgstr ""
15581
15582 #. type: =head2
15583 #: ../fish/guestfish-actions.pod:4973
15584 msgid "vfs-type"
15585 msgstr ""
15586
15587 #. type: verbatim
15588 #: ../fish/guestfish-actions.pod:4975
15589 #, no-wrap
15590 msgid ""
15591 " vfs-type device\n"
15592 "\n"
15593 msgstr ""
15594
15595 #. type: textblock
15596 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
15597 msgid ""
15598 "This command gets the filesystem type corresponding to the filesystem on "
15599 "C<device>."
15600 msgstr ""
15601
15602 #. type: textblock
15603 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
15604 msgid ""
15605 "For most filesystems, the result is the name of the Linux VFS module which "
15606 "would be used to mount this filesystem if you mounted it without specifying "
15607 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15608 msgstr ""
15609
15610 #. type: =head2
15611 #: ../fish/guestfish-actions.pod:4985
15612 msgid "vfs-uuid"
15613 msgstr ""
15614
15615 #. type: verbatim
15616 #: ../fish/guestfish-actions.pod:4987
15617 #, no-wrap
15618 msgid ""
15619 " vfs-uuid device\n"
15620 "\n"
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
15625 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15626 msgstr ""
15627
15628 #. type: textblock
15629 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
15630 msgid "If the filesystem does not have a UUID, this returns the empty string."
15631 msgstr ""
15632
15633 #. type: textblock
15634 #: ../fish/guestfish-actions.pod:4994
15635 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15636 msgstr ""
15637
15638 #. type: =head2
15639 #: ../fish/guestfish-actions.pod:4996
15640 msgid "vg-activate"
15641 msgstr ""
15642
15643 #. type: verbatim
15644 #: ../fish/guestfish-actions.pod:4998
15645 #, no-wrap
15646 msgid ""
15647 " vg-activate true|false 'volgroups ...'\n"
15648 "\n"
15649 msgstr ""
15650
15651 #. type: textblock
15652 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
15653 msgid ""
15654 "This command activates or (if C<activate> is false) deactivates all logical "
15655 "volumes in the listed volume groups C<volgroups>."
15656 msgstr ""
15657
15658 #. type: textblock
15659 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
15660 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15661 msgstr ""
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
15665 msgid ""
15666 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15667 "activated or deactivated."
15668 msgstr ""
15669
15670 #. type: =head2
15671 #: ../fish/guestfish-actions.pod:5008
15672 msgid "vg-activate-all"
15673 msgstr ""
15674
15675 #. type: verbatim
15676 #: ../fish/guestfish-actions.pod:5010
15677 #, no-wrap
15678 msgid ""
15679 " vg-activate-all true|false\n"
15680 "\n"
15681 msgstr ""
15682
15683 #. type: textblock
15684 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
15685 msgid ""
15686 "This command activates or (if C<activate> is false) deactivates all logical "
15687 "volumes in all volume groups."
15688 msgstr ""
15689
15690 #. type: textblock
15691 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
15692 msgid "This command is the same as running C<vgchange -a y|n>"
15693 msgstr ""
15694
15695 #. type: =head2
15696 #: ../fish/guestfish-actions.pod:5017
15697 msgid "vgcreate"
15698 msgstr ""
15699
15700 #. type: verbatim
15701 #: ../fish/guestfish-actions.pod:5019
15702 #, no-wrap
15703 msgid ""
15704 " vgcreate volgroup 'physvols ...'\n"
15705 "\n"
15706 msgstr ""
15707
15708 #. type: textblock
15709 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
15710 msgid ""
15711 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15712 "of physical volumes C<physvols>."
15713 msgstr ""
15714
15715 #. type: =head2
15716 #: ../fish/guestfish-actions.pod:5024
15717 msgid "vglvuuids"
15718 msgstr ""
15719
15720 #. type: verbatim
15721 #: ../fish/guestfish-actions.pod:5026
15722 #, no-wrap
15723 msgid ""
15724 " vglvuuids vgname\n"
15725 "\n"
15726 msgstr ""
15727
15728 #. type: textblock
15729 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
15730 msgid ""
15731 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15732 "volumes created in this volume group."
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish-actions.pod:5031
15737 msgid ""
15738 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15739 "logical volumes and volume groups."
15740 msgstr ""
15741
15742 #. type: textblock
15743 #: ../fish/guestfish-actions.pod:5034
15744 msgid "See also L</vgpvuuids>."
15745 msgstr ""
15746
15747 #. type: =head2
15748 #: ../fish/guestfish-actions.pod:5036
15749 msgid "vgpvuuids"
15750 msgstr ""
15751
15752 #. type: verbatim
15753 #: ../fish/guestfish-actions.pod:5038
15754 #, no-wrap
15755 msgid ""
15756 " vgpvuuids vgname\n"
15757 "\n"
15758 msgstr ""
15759
15760 #. type: textblock
15761 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
15762 msgid ""
15763 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15764 "volumes that this volume group resides on."
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish-actions.pod:5043
15769 msgid ""
15770 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15771 "physical volumes and volume groups."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-actions.pod:5046
15776 msgid "See also L</vglvuuids>."
15777 msgstr ""
15778
15779 #. type: =head2
15780 #: ../fish/guestfish-actions.pod:5048
15781 msgid "vgremove"
15782 msgstr ""
15783
15784 #. type: verbatim
15785 #: ../fish/guestfish-actions.pod:5050
15786 #, no-wrap
15787 msgid ""
15788 " vgremove vgname\n"
15789 "\n"
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
15794 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
15799 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
15800 msgstr ""
15801
15802 #. type: =head2
15803 #: ../fish/guestfish-actions.pod:5057
15804 msgid "vgrename"
15805 msgstr ""
15806
15807 #. type: verbatim
15808 #: ../fish/guestfish-actions.pod:5059
15809 #, no-wrap
15810 msgid ""
15811 " vgrename volgroup newvolgroup\n"
15812 "\n"
15813 msgstr ""
15814
15815 #. type: textblock
15816 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
15817 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15818 msgstr ""
15819
15820 #. type: =head2
15821 #: ../fish/guestfish-actions.pod:5063
15822 msgid "vgs"
15823 msgstr ""
15824
15825 #. type: verbatim
15826 #: ../fish/guestfish-actions.pod:5065
15827 #, no-wrap
15828 msgid ""
15829 " vgs\n"
15830 "\n"
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
15835 msgid ""
15836 "List all the volumes groups detected.  This is the equivalent of the "
15837 "L<vgs(8)> command."
15838 msgstr ""
15839
15840 #. type: textblock
15841 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
15842 msgid ""
15843 "This returns a list of just the volume group names that were detected "
15844 "(eg. C<VolGroup00>)."
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-actions.pod:5073
15849 msgid "See also L</vgs-full>."
15850 msgstr ""
15851
15852 #. type: =head2
15853 #: ../fish/guestfish-actions.pod:5075
15854 msgid "vgs-full"
15855 msgstr ""
15856
15857 #. type: verbatim
15858 #: ../fish/guestfish-actions.pod:5077
15859 #, no-wrap
15860 msgid ""
15861 " vgs-full\n"
15862 "\n"
15863 msgstr ""
15864
15865 #. type: textblock
15866 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
15867 msgid ""
15868 "List all the volumes groups detected.  This is the equivalent of the "
15869 "L<vgs(8)> command.  The \"full\" version includes all fields."
15870 msgstr ""
15871
15872 #. type: =head2
15873 #: ../fish/guestfish-actions.pod:5082
15874 msgid "vgscan"
15875 msgstr ""
15876
15877 #. type: verbatim
15878 #: ../fish/guestfish-actions.pod:5084
15879 #, no-wrap
15880 msgid ""
15881 " vgscan\n"
15882 "\n"
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
15887 msgid ""
15888 "This rescans all block devices and rebuilds the list of LVM physical "
15889 "volumes, volume groups and logical volumes."
15890 msgstr ""
15891
15892 #. type: =head2
15893 #: ../fish/guestfish-actions.pod:5089
15894 msgid "vguuid"
15895 msgstr ""
15896
15897 #. type: verbatim
15898 #: ../fish/guestfish-actions.pod:5091
15899 #, no-wrap
15900 msgid ""
15901 " vguuid vgname\n"
15902 "\n"
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
15907 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15908 msgstr ""
15909
15910 #. type: =head2
15911 #: ../fish/guestfish-actions.pod:5095
15912 msgid "wc-c"
15913 msgstr ""
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish-actions.pod:5097
15917 #, no-wrap
15918 msgid ""
15919 " wc-c path\n"
15920 "\n"
15921 msgstr ""
15922
15923 #. type: textblock
15924 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
15925 msgid ""
15926 "This command counts the characters in a file, using the C<wc -c> external "
15927 "command."
15928 msgstr ""
15929
15930 #. type: =head2
15931 #: ../fish/guestfish-actions.pod:5102
15932 msgid "wc-l"
15933 msgstr ""
15934
15935 #. type: verbatim
15936 #: ../fish/guestfish-actions.pod:5104
15937 #, no-wrap
15938 msgid ""
15939 " wc-l path\n"
15940 "\n"
15941 msgstr ""
15942
15943 #. type: textblock
15944 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
15945 msgid ""
15946 "This command counts the lines in a file, using the C<wc -l> external "
15947 "command."
15948 msgstr ""
15949
15950 #. type: =head2
15951 #: ../fish/guestfish-actions.pod:5109
15952 msgid "wc-w"
15953 msgstr ""
15954
15955 #. type: verbatim
15956 #: ../fish/guestfish-actions.pod:5111
15957 #, no-wrap
15958 msgid ""
15959 " wc-w path\n"
15960 "\n"
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
15965 msgid ""
15966 "This command counts the words in a file, using the C<wc -w> external "
15967 "command."
15968 msgstr ""
15969
15970 #. type: =head2
15971 #: ../fish/guestfish-actions.pod:5116
15972 msgid "write"
15973 msgstr ""
15974
15975 #. type: verbatim
15976 #: ../fish/guestfish-actions.pod:5118
15977 #, no-wrap
15978 msgid ""
15979 " write path content\n"
15980 "\n"
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
15985 msgid ""
15986 "This call creates a file called C<path>.  The content of the file is the "
15987 "string C<content> (which can contain any 8 bit data)."
15988 msgstr ""
15989
15990 #. type: textblock
15991 #: ../fish/guestfish-actions.pod:5123
15992 msgid "See also L</write-append>."
15993 msgstr ""
15994
15995 #. type: =head2
15996 #: ../fish/guestfish-actions.pod:5128
15997 msgid "write-append"
15998 msgstr ""
15999
16000 #. type: verbatim
16001 #: ../fish/guestfish-actions.pod:5130
16002 #, no-wrap
16003 msgid ""
16004 " write-append path content\n"
16005 "\n"
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
16010 msgid ""
16011 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16012 "not exist, then a new file is created."
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:5135
16017 msgid "See also L</write>."
16018 msgstr ""
16019
16020 #. type: =head2
16021 #: ../fish/guestfish-actions.pod:5140
16022 msgid "write-file"
16023 msgstr ""
16024
16025 #. type: verbatim
16026 #: ../fish/guestfish-actions.pod:5142
16027 #, no-wrap
16028 msgid ""
16029 " write-file path content size\n"
16030 "\n"
16031 msgstr ""
16032
16033 #. type: textblock
16034 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
16035 msgid ""
16036 "This call creates a file called C<path>.  The contents of the file is the "
16037 "string C<content> (which can contain any 8 bit data), with length C<size>."
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
16042 msgid ""
16043 "As a special case, if C<size> is C<0> then the length is calculated using "
16044 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
16049 msgid ""
16050 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16051 "I<not> work, even if the length is specified."
16052 msgstr ""
16053
16054 #. type: textblock
16055 #: ../fish/guestfish-actions.pod:5158
16056 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
16057 msgstr ""
16058
16059 #. type: =head2
16060 #: ../fish/guestfish-actions.pod:5165
16061 msgid "zegrep"
16062 msgstr ""
16063
16064 #. type: verbatim
16065 #: ../fish/guestfish-actions.pod:5167
16066 #, no-wrap
16067 msgid ""
16068 " zegrep regex path\n"
16069 "\n"
16070 msgstr ""
16071
16072 #. type: textblock
16073 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
16074 msgid "This calls the external C<zegrep> program and returns the matching lines."
16075 msgstr ""
16076
16077 #. type: =head2
16078 #: ../fish/guestfish-actions.pod:5175
16079 msgid "zegrepi"
16080 msgstr ""
16081
16082 #. type: verbatim
16083 #: ../fish/guestfish-actions.pod:5177
16084 #, no-wrap
16085 msgid ""
16086 " zegrepi regex path\n"
16087 "\n"
16088 msgstr ""
16089
16090 #. type: textblock
16091 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
16092 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
16093 msgstr ""
16094
16095 #. type: =head2
16096 #: ../fish/guestfish-actions.pod:5185
16097 msgid "zero"
16098 msgstr ""
16099
16100 #. type: verbatim
16101 #: ../fish/guestfish-actions.pod:5187
16102 #, no-wrap
16103 msgid ""
16104 " zero device\n"
16105 "\n"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
16110 msgid "This command writes zeroes over the first few blocks of C<device>."
16111 msgstr ""
16112
16113 #. type: textblock
16114 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
16115 msgid ""
16116 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16117 "securely wipe the device).  It should be sufficient to remove any partition "
16118 "tables, filesystem superblocks and so on."
16119 msgstr ""
16120
16121 #. type: textblock
16122 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
16123 msgid ""
16124 "If blocks are already zero, then this command avoids writing zeroes.  This "
16125 "prevents the underlying device from becoming non-sparse or growing "
16126 "unnecessarily."
16127 msgstr ""
16128
16129 #. type: textblock
16130 #: ../fish/guestfish-actions.pod:5199
16131 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16132 msgstr ""
16133
16134 #. type: =head2
16135 #: ../fish/guestfish-actions.pod:5202
16136 msgid "zero-device"
16137 msgstr ""
16138
16139 #. type: verbatim
16140 #: ../fish/guestfish-actions.pod:5204
16141 #, no-wrap
16142 msgid ""
16143 " zero-device device\n"
16144 "\n"
16145 msgstr ""
16146
16147 #. type: textblock
16148 #: ../fish/guestfish-actions.pod:5206
16149 msgid ""
16150 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16151 "which just zeroes the first few blocks of a device."
16152 msgstr ""
16153
16154 #. type: =head2
16155 #: ../fish/guestfish-actions.pod:5217
16156 msgid "zerofree"
16157 msgstr ""
16158
16159 #. type: verbatim
16160 #: ../fish/guestfish-actions.pod:5219
16161 #, no-wrap
16162 msgid ""
16163 " zerofree device\n"
16164 "\n"
16165 msgstr ""
16166
16167 #. type: textblock
16168 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16169 msgid ""
16170 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16171 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16172 "possible to compress the filesystem more effectively."
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16177 msgid "You should B<not> run this program if the filesystem is mounted."
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16182 msgid ""
16183 "It is possible that using this program can damage the filesystem or data on "
16184 "the filesystem."
16185 msgstr ""
16186
16187 #. type: =head2
16188 #: ../fish/guestfish-actions.pod:5232
16189 msgid "zfgrep"
16190 msgstr ""
16191
16192 #. type: verbatim
16193 #: ../fish/guestfish-actions.pod:5234
16194 #, no-wrap
16195 msgid ""
16196 " zfgrep pattern path\n"
16197 "\n"
16198 msgstr ""
16199
16200 #. type: textblock
16201 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16202 msgid "This calls the external C<zfgrep> program and returns the matching lines."
16203 msgstr ""
16204
16205 #. type: =head2
16206 #: ../fish/guestfish-actions.pod:5242
16207 msgid "zfgrepi"
16208 msgstr ""
16209
16210 #. type: verbatim
16211 #: ../fish/guestfish-actions.pod:5244
16212 #, no-wrap
16213 msgid ""
16214 " zfgrepi pattern path\n"
16215 "\n"
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
16220 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
16221 msgstr ""
16222
16223 #. type: =head2
16224 #: ../fish/guestfish-actions.pod:5252
16225 msgid "zfile"
16226 msgstr ""
16227
16228 #. type: verbatim
16229 #: ../fish/guestfish-actions.pod:5254
16230 #, no-wrap
16231 msgid ""
16232 " zfile meth path\n"
16233 "\n"
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
16238 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
16243 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16244 msgstr ""
16245
16246 #. type: textblock
16247 #: ../fish/guestfish-actions.pod:5261
16248 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
16249 msgstr ""
16250
16251 #. type: textblock
16252 #: ../fish/guestfish-actions.pod:5264
16253 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
16254 msgstr ""
16255
16256 #. type: =head2
16257 #: ../fish/guestfish-actions.pod:5271
16258 msgid "zgrep"
16259 msgstr ""
16260
16261 #. type: verbatim
16262 #: ../fish/guestfish-actions.pod:5273
16263 #, no-wrap
16264 msgid ""
16265 " zgrep regex path\n"
16266 "\n"
16267 msgstr ""
16268
16269 #. type: textblock
16270 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
16271 msgid "This calls the external C<zgrep> program and returns the matching lines."
16272 msgstr ""
16273
16274 #. type: =head2
16275 #: ../fish/guestfish-actions.pod:5281
16276 msgid "zgrepi"
16277 msgstr ""
16278
16279 #. type: verbatim
16280 #: ../fish/guestfish-actions.pod:5283
16281 #, no-wrap
16282 msgid ""
16283 " zgrepi regex path\n"
16284 "\n"
16285 msgstr ""
16286
16287 #. type: textblock
16288 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
16289 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
16290 msgstr ""
16291
16292 #. type: =head2
16293 #: ../fish/guestfish-commands.pod:1
16294 msgid "alloc"
16295 msgstr ""
16296
16297 #. type: =head2
16298 #: ../fish/guestfish-commands.pod:3
16299 msgid "allocate"
16300 msgstr ""
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish-commands.pod:5
16304 #, no-wrap
16305 msgid ""
16306 " alloc filename size\n"
16307 "\n"
16308 msgstr ""
16309
16310 #. type: textblock
16311 #: ../fish/guestfish-commands.pod:7
16312 msgid ""
16313 "This creates an empty (zeroed) file of the given size, and then adds so it "
16314 "can be further examined."
16315 msgstr ""
16316
16317 #. type: textblock
16318 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16319 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16324 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16325 msgstr ""
16326
16327 #. type: textblock
16328 #: ../fish/guestfish-commands.pod:14
16329 msgid ""
16330 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16331 "image, see L</PREPARED DISK IMAGES>."
16332 msgstr ""
16333
16334 #. type: =head2
16335 #: ../fish/guestfish-commands.pod:17
16336 msgid "copy-in"
16337 msgstr ""
16338
16339 #. type: verbatim
16340 #: ../fish/guestfish-commands.pod:19
16341 #, no-wrap
16342 msgid ""
16343 " copy-in local [local ...] /remotedir\n"
16344 "\n"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish-commands.pod:21
16349 msgid ""
16350 "C<copy-in> copies local files or directories recursively into the disk "
16351 "image, placing them in the directory called C</remotedir> (which must "
16352 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16353 "other commands as necessary."
16354 msgstr ""
16355
16356 #. type: textblock
16357 #: ../fish/guestfish-commands.pod:26
16358 msgid ""
16359 "Multiple local files and directories can be specified, but the last "
16360 "parameter must always be a remote directory.  Wildcards cannot be used."
16361 msgstr ""
16362
16363 #. type: =head2
16364 #: ../fish/guestfish-commands.pod:30
16365 msgid "copy-out"
16366 msgstr ""
16367
16368 #. type: verbatim
16369 #: ../fish/guestfish-commands.pod:32
16370 #, no-wrap
16371 msgid ""
16372 " copy-out remote [remote ...] localdir\n"
16373 "\n"
16374 msgstr ""
16375
16376 #. type: textblock
16377 #: ../fish/guestfish-commands.pod:34
16378 msgid ""
16379 "C<copy-out> copies remote files or directories recursively out of the disk "
16380 "image, placing them on the host disk in a local directory called C<localdir> "
16381 "(which must exist).  This guestfish meta-command turns into a sequence of "
16382 "L</download>, L</tar-out> and other commands as necessary."
16383 msgstr ""
16384
16385 #. type: textblock
16386 #: ../fish/guestfish-commands.pod:40
16387 msgid ""
16388 "Multiple remote files and directories can be specified, but the last "
16389 "parameter must always be a local directory.  To download to the current "
16390 "directory, use C<.> as in:"
16391 msgstr ""
16392
16393 #. type: verbatim
16394 #: ../fish/guestfish-commands.pod:44
16395 #, no-wrap
16396 msgid ""
16397 " copy-out /home .\n"
16398 "\n"
16399 msgstr ""
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-commands.pod:46
16403 msgid ""
16404 "Wildcards cannot be used in the ordinary command, but you can use them with "
16405 "the help of L</glob> like this:"
16406 msgstr ""
16407
16408 #. type: verbatim
16409 #: ../fish/guestfish-commands.pod:49
16410 #, no-wrap
16411 msgid ""
16412 " glob copy-out /home/* .\n"
16413 "\n"
16414 msgstr ""
16415
16416 #. type: =head2
16417 #: ../fish/guestfish-commands.pod:51
16418 msgid "display"
16419 msgstr ""
16420
16421 #. type: verbatim
16422 #: ../fish/guestfish-commands.pod:53
16423 #, no-wrap
16424 msgid ""
16425 " display filename\n"
16426 "\n"
16427 msgstr ""
16428
16429 #. type: textblock
16430 #: ../fish/guestfish-commands.pod:55
16431 msgid ""
16432 "Use C<display> (a graphical display program) to display an image file.  It "
16433 "downloads the file, and runs C<display> on it."
16434 msgstr ""
16435
16436 #. type: textblock
16437 #: ../fish/guestfish-commands.pod:58
16438 msgid ""
16439 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16440 "environment variable.  For example to use the GNOME display program:"
16441 msgstr ""
16442
16443 #. type: verbatim
16444 #: ../fish/guestfish-commands.pod:61
16445 #, no-wrap
16446 msgid ""
16447 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16448 "\n"
16449 msgstr ""
16450
16451 #. type: textblock
16452 #: ../fish/guestfish-commands.pod:63
16453 msgid "See also L<display(1)>."
16454 msgstr ""
16455
16456 #. type: =head2
16457 #: ../fish/guestfish-commands.pod:65
16458 msgid "echo"
16459 msgstr ""
16460
16461 #. type: verbatim
16462 #: ../fish/guestfish-commands.pod:67
16463 #, no-wrap
16464 msgid ""
16465 " echo [params ...]\n"
16466 "\n"
16467 msgstr ""
16468
16469 #. type: textblock
16470 #: ../fish/guestfish-commands.pod:69
16471 msgid "This echos the parameters to the terminal."
16472 msgstr ""
16473
16474 #. type: =head2
16475 #: ../fish/guestfish-commands.pod:71
16476 msgid "edit"
16477 msgstr ""
16478
16479 #. type: =head2
16480 #: ../fish/guestfish-commands.pod:73
16481 msgid "vi"
16482 msgstr ""
16483
16484 #. type: =head2
16485 #: ../fish/guestfish-commands.pod:75
16486 msgid "emacs"
16487 msgstr ""
16488
16489 #. type: verbatim
16490 #: ../fish/guestfish-commands.pod:77
16491 #, no-wrap
16492 msgid ""
16493 " edit filename\n"
16494 "\n"
16495 msgstr ""
16496
16497 #. type: textblock
16498 #: ../fish/guestfish-commands.pod:79
16499 msgid ""
16500 "This is used to edit a file.  It downloads the file, edits it locally using "
16501 "your editor, then uploads the result."
16502 msgstr ""
16503
16504 #. type: textblock
16505 #: ../fish/guestfish-commands.pod:82
16506 msgid ""
16507 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16508 "or C<emacs> you will get those corresponding editors."
16509 msgstr ""
16510
16511 #. type: =head2
16512 #: ../fish/guestfish-commands.pod:86
16513 msgid "glob"
16514 msgstr ""
16515
16516 #. type: verbatim
16517 #: ../fish/guestfish-commands.pod:88
16518 #, no-wrap
16519 msgid ""
16520 " glob command args...\n"
16521 "\n"
16522 msgstr ""
16523
16524 #. type: textblock
16525 #: ../fish/guestfish-commands.pod:90
16526 msgid ""
16527 "Expand wildcards in any paths in the args list, and run C<command> "
16528 "repeatedly on each matching path."
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish-commands.pod:93
16533 msgid "See L</WILDCARDS AND GLOBBING>."
16534 msgstr ""
16535
16536 #. type: =head2
16537 #: ../fish/guestfish-commands.pod:95
16538 msgid "hexedit"
16539 msgstr ""
16540
16541 #. type: verbatim
16542 #: ../fish/guestfish-commands.pod:97
16543 #, no-wrap
16544 msgid ""
16545 " hexedit <filename|device>\n"
16546 " hexedit <filename|device> <max>\n"
16547 " hexedit <filename|device> <start> <max>\n"
16548 "\n"
16549 msgstr ""
16550
16551 #. type: textblock
16552 #: ../fish/guestfish-commands.pod:101
16553 msgid ""
16554 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16555 "device."
16556 msgstr ""
16557
16558 #. type: textblock
16559 #: ../fish/guestfish-commands.pod:104
16560 msgid ""
16561 "This command works by downloading potentially the whole file or device, "
16562 "editing it locally, then uploading it.  If the file or device is large, you "
16563 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16564 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16565 "usual modifiers allowed such as C<1M> (1 megabyte)."
16566 msgstr ""
16567
16568 #. type: textblock
16569 #: ../fish/guestfish-commands.pod:111
16570 msgid "For example to edit the first few sectors of a disk you might do:"
16571 msgstr ""
16572
16573 #. type: verbatim
16574 #: ../fish/guestfish-commands.pod:114
16575 #, no-wrap
16576 msgid ""
16577 " hexedit /dev/sda 1M\n"
16578 "\n"
16579 msgstr ""
16580
16581 #. type: textblock
16582 #: ../fish/guestfish-commands.pod:116
16583 msgid ""
16584 "which would allow you to edit anywhere within the first megabyte of the "
16585 "disk."
16586 msgstr ""
16587
16588 #. type: textblock
16589 #: ../fish/guestfish-commands.pod:119
16590 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16591 msgstr ""
16592
16593 #. type: verbatim
16594 #: ../fish/guestfish-commands.pod:121
16595 #, no-wrap
16596 msgid ""
16597 " hexedit /dev/sda1 0x400 0x400\n"
16598 "\n"
16599 msgstr ""
16600
16601 #. type: textblock
16602 #: ../fish/guestfish-commands.pod:123
16603 msgid "(assuming the superblock is in the standard location)."
16604 msgstr ""
16605
16606 #. type: textblock
16607 #: ../fish/guestfish-commands.pod:125
16608 msgid ""
16609 "This command requires the external L<hexedit(1)> program.  You can specify "
16610 "another program to use by setting the C<HEXEDITOR> environment variable."
16611 msgstr ""
16612
16613 #. type: textblock
16614 #: ../fish/guestfish-commands.pod:129
16615 msgid "See also L</hexdump>."
16616 msgstr ""
16617
16618 #. type: =head2
16619 #: ../fish/guestfish-commands.pod:131
16620 msgid "lcd"
16621 msgstr ""
16622
16623 #. type: verbatim
16624 #: ../fish/guestfish-commands.pod:133
16625 #, no-wrap
16626 msgid ""
16627 " lcd directory\n"
16628 "\n"
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-commands.pod:135
16633 msgid "Change the local directory, ie. the current directory of guestfish itself."
16634 msgstr ""
16635
16636 #. type: textblock
16637 #: ../fish/guestfish-commands.pod:138
16638 msgid "Note that C<!cd> won't do what you might expect."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-commands.pod:140
16643 msgid "man"
16644 msgstr ""
16645
16646 #. type: =head2
16647 #: ../fish/guestfish-commands.pod:142
16648 msgid "manual"
16649 msgstr ""
16650
16651 #. type: verbatim
16652 #: ../fish/guestfish-commands.pod:144
16653 #, no-wrap
16654 msgid ""
16655 "  man\n"
16656 "\n"
16657 msgstr ""
16658
16659 #. type: textblock
16660 #: ../fish/guestfish-commands.pod:146
16661 msgid "Opens the manual page for guestfish."
16662 msgstr ""
16663
16664 #. type: =head2
16665 #: ../fish/guestfish-commands.pod:148
16666 msgid "more"
16667 msgstr ""
16668
16669 #. type: =head2
16670 #: ../fish/guestfish-commands.pod:150
16671 msgid "less"
16672 msgstr ""
16673
16674 #. type: verbatim
16675 #: ../fish/guestfish-commands.pod:152
16676 #, no-wrap
16677 msgid ""
16678 " more filename\n"
16679 "\n"
16680 msgstr ""
16681
16682 #. type: verbatim
16683 #: ../fish/guestfish-commands.pod:154
16684 #, no-wrap
16685 msgid ""
16686 " less filename\n"
16687 "\n"
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-commands.pod:156
16692 msgid "This is used to view a file."
16693 msgstr ""
16694
16695 #. type: textblock
16696 #: ../fish/guestfish-commands.pod:158
16697 msgid ""
16698 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16699 "C<less> you will get the C<less> command specifically."
16700 msgstr ""
16701
16702 #. type: =head2
16703 #: ../fish/guestfish-commands.pod:161
16704 msgid "reopen"
16705 msgstr ""
16706
16707 #. type: verbatim
16708 #: ../fish/guestfish-commands.pod:163
16709 #, no-wrap
16710 msgid ""
16711 "  reopen\n"
16712 "\n"
16713 msgstr ""
16714
16715 #. type: textblock
16716 #: ../fish/guestfish-commands.pod:165
16717 msgid ""
16718 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16719 "normally, because the handle is closed properly when guestfish exits.  "
16720 "However this is occasionally useful for testing."
16721 msgstr ""
16722
16723 #. type: =head2
16724 #: ../fish/guestfish-commands.pod:169
16725 msgid "setenv"
16726 msgstr ""
16727
16728 #. type: verbatim
16729 #: ../fish/guestfish-commands.pod:171
16730 #, no-wrap
16731 msgid ""
16732 "  setenv VAR value\n"
16733 "\n"
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-commands.pod:173
16738 msgid "Set the environment variable C<VAR> to the string C<value>."
16739 msgstr ""
16740
16741 #. type: textblock
16742 #: ../fish/guestfish-commands.pod:175
16743 msgid "To print the value of an environment variable use a shell command such as:"
16744 msgstr ""
16745
16746 #. type: verbatim
16747 #: ../fish/guestfish-commands.pod:178
16748 #, no-wrap
16749 msgid ""
16750 " !echo $VAR\n"
16751 "\n"
16752 msgstr ""
16753
16754 #. type: =head2
16755 #: ../fish/guestfish-commands.pod:180
16756 msgid "sparse"
16757 msgstr ""
16758
16759 #. type: verbatim
16760 #: ../fish/guestfish-commands.pod:182
16761 #, no-wrap
16762 msgid ""
16763 " sparse filename size\n"
16764 "\n"
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish-commands.pod:184
16769 msgid ""
16770 "This creates an empty sparse file of the given size, and then adds so it can "
16771 "be further examined."
16772 msgstr ""
16773
16774 #. type: textblock
16775 #: ../fish/guestfish-commands.pod:187
16776 msgid ""
16777 "In all respects it works the same as the L</alloc> command, except that the "
16778 "image file is allocated sparsely, which means that disk blocks are not "
16779 "assigned to the file until they are needed.  Sparse disk files only use "
16780 "space when written to, but they are slower and there is a danger you could "
16781 "run out of real disk space during a write operation."
16782 msgstr ""
16783
16784 #. type: =head2
16785 #: ../fish/guestfish-commands.pod:197
16786 msgid "supported"
16787 msgstr ""
16788
16789 #. type: verbatim
16790 #: ../fish/guestfish-commands.pod:199
16791 #, no-wrap
16792 msgid ""
16793 " supported\n"
16794 "\n"
16795 msgstr ""
16796
16797 #. type: textblock
16798 #: ../fish/guestfish-commands.pod:201
16799 msgid ""
16800 "This command returns a list of the optional groups known to the daemon, and "
16801 "indicates which ones are supported by this build of the libguestfs "
16802 "appliance."
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../fish/guestfish-commands.pod:205
16807 msgid "See also L<guestfs(3)/AVAILABILITY>."
16808 msgstr ""
16809
16810 #. type: =head2
16811 #: ../fish/guestfish-commands.pod:207
16812 msgid "time"
16813 msgstr ""
16814
16815 #. type: verbatim
16816 #: ../fish/guestfish-commands.pod:209
16817 #, no-wrap
16818 msgid ""
16819 " time command args...\n"
16820 "\n"
16821 msgstr ""
16822
16823 #. type: textblock
16824 #: ../fish/guestfish-commands.pod:211
16825 msgid ""
16826 "Run the command as usual, but print the elapsed time afterwards.  This can "
16827 "be useful for benchmarking operations."
16828 msgstr ""
16829
16830 #. type: =head2
16831 #: ../fish/guestfish-commands.pod:214
16832 msgid "unsetenv"
16833 msgstr ""
16834
16835 #. type: verbatim
16836 #: ../fish/guestfish-commands.pod:216
16837 #, no-wrap
16838 msgid ""
16839 "  unsetenv VAR\n"
16840 "\n"
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish-commands.pod:218
16845 msgid "Remove C<VAR> from the environment."
16846 msgstr ""
16847
16848 #. type: textblock
16849 #: ../fish/guestfish.pod:5
16850 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16851 msgstr ""
16852
16853 #. type: verbatim
16854 #: ../fish/guestfish.pod:9
16855 #, no-wrap
16856 msgid ""
16857 " guestfish [--options] [commands]\n"
16858 "\n"
16859 msgstr ""
16860
16861 #. type: verbatim
16862 #: ../fish/guestfish.pod:11
16863 #, no-wrap
16864 msgid ""
16865 " guestfish\n"
16866 "\n"
16867 msgstr ""
16868
16869 #. type: verbatim
16870 #: ../fish/guestfish.pod:13
16871 #, no-wrap
16872 msgid ""
16873 " guestfish [--ro|--rw] -a disk.img\n"
16874 "\n"
16875 msgstr ""
16876
16877 #. type: verbatim
16878 #: ../fish/guestfish.pod:15
16879 #, no-wrap
16880 msgid ""
16881 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16882 "\n"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish.pod:17
16887 #, no-wrap
16888 msgid ""
16889 " guestfish -d libvirt-domain\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: verbatim
16894 #: ../fish/guestfish.pod:19
16895 #, no-wrap
16896 msgid ""
16897 " guestfish [--ro|--rw] -a disk.img -i\n"
16898 "\n"
16899 msgstr ""
16900
16901 #. type: verbatim
16902 #: ../fish/guestfish.pod:21
16903 #, no-wrap
16904 msgid ""
16905 " guestfish -d libvirt-domain -i\n"
16906 "\n"
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish.pod:25
16911 msgid ""
16912 "Using guestfish in read/write mode on live virtual machines can be "
16913 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16914 "option to use guestfish safely if the disk image or virtual machine might be "
16915 "live."
16916 msgstr ""
16917
16918 #. type: textblock
16919 #: ../fish/guestfish.pod:32
16920 msgid ""
16921 "Guestfish is a shell and command-line tool for examining and modifying "
16922 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16923 "functionality of the guestfs API, see L<guestfs(3)>."
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish.pod:36
16928 msgid ""
16929 "Guestfish gives you structured access to the libguestfs API, from shell "
16930 "scripts or the command line or interactively.  If you want to rescue a "
16931 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16932 "command."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish.pod:43
16937 msgid "As an interactive shell"
16938 msgstr ""
16939
16940 #. type: verbatim
16941 #: ../fish/guestfish.pod:45
16942 #, no-wrap
16943 msgid ""
16944 " $ guestfish\n"
16945 " \n"
16946 msgstr ""
16947
16948 #. type: verbatim
16949 #: ../fish/guestfish.pod:47
16950 #, no-wrap
16951 msgid ""
16952 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16953 " editing virtual machine filesystems.\n"
16954 " \n"
16955 msgstr ""
16956
16957 #. type: verbatim
16958 #: ../fish/guestfish.pod:50
16959 #, no-wrap
16960 msgid ""
16961 " Type: 'help' for a list of commands\n"
16962 "       'man' to read the manual\n"
16963 "       'quit' to quit the shell\n"
16964 " \n"
16965 msgstr ""
16966
16967 #. type: verbatim
16968 #: ../fish/guestfish.pod:54
16969 #, no-wrap
16970 msgid ""
16971 " ><fs> add-ro disk.img\n"
16972 " ><fs> run\n"
16973 " ><fs> list-filesystems\n"
16974 " /dev/sda1: ext4\n"
16975 " /dev/vg_guest/lv_root: ext4\n"
16976 " /dev/vg_guest/lv_swap: swap\n"
16977 " ><fs> mount /dev/vg_guest/lv_root /\n"
16978 " ><fs> cat /etc/fstab\n"
16979 " # /etc/fstab\n"
16980 " # Created by anaconda\n"
16981 " [...]\n"
16982 " ><fs> exit\n"
16983 "\n"
16984 msgstr ""
16985
16986 #. type: =head2
16987 #: ../fish/guestfish.pod:67
16988 msgid "From shell scripts"
16989 msgstr ""
16990
16991 #. type: textblock
16992 #: ../fish/guestfish.pod:69
16993 msgid "Create a new C</etc/motd> file in a guest or disk image:"
16994 msgstr ""
16995
16996 #. type: verbatim
16997 #: ../fish/guestfish.pod:71
16998 #, no-wrap
16999 msgid ""
17000 " guestfish <<_EOF_\n"
17001 " add disk.img\n"
17002 " run\n"
17003 " mount /dev/vg_guest/lv_root /\n"
17004 " write /etc/motd \"Welcome, new users\"\n"
17005 " _EOF_\n"
17006 "\n"
17007 msgstr ""
17008
17009 #. type: textblock
17010 #: ../fish/guestfish.pod:78
17011 msgid "List the LVM logical volumes in a disk image:"
17012 msgstr ""
17013
17014 #. type: verbatim
17015 #: ../fish/guestfish.pod:80
17016 #, no-wrap
17017 msgid ""
17018 " guestfish -a disk.img --ro <<_EOF_\n"
17019 " run\n"
17020 " lvs\n"
17021 " _EOF_\n"
17022 "\n"
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish.pod:85
17027 msgid "List all the filesystems in a disk image:"
17028 msgstr ""
17029
17030 #. type: verbatim
17031 #: ../fish/guestfish.pod:87
17032 #, no-wrap
17033 msgid ""
17034 " guestfish -a disk.img --ro <<_EOF_\n"
17035 " run\n"
17036 " list-filesystems\n"
17037 " _EOF_\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: =head2
17042 #: ../fish/guestfish.pod:92
17043 msgid "On one command line"
17044 msgstr ""
17045
17046 #. type: textblock
17047 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17048 msgid "Update C</etc/resolv.conf> in a guest:"
17049 msgstr ""
17050
17051 #. type: verbatim
17052 #: ../fish/guestfish.pod:96
17053 #, no-wrap
17054 msgid ""
17055 " guestfish \\\n"
17056 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17057 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17058 "\n"
17059 msgstr ""
17060
17061 #. type: textblock
17062 #: ../fish/guestfish.pod:100
17063 msgid "Edit C</boot/grub/grub.conf> interactively:"
17064 msgstr ""
17065
17066 #. type: verbatim
17067 #: ../fish/guestfish.pod:102
17068 #, no-wrap
17069 msgid ""
17070 " guestfish --rw --add disk.img \\\n"
17071 "   --mount /dev/vg_guest/lv_root \\\n"
17072 "   --mount /dev/sda1:/boot \\\n"
17073 "   edit /boot/grub/grub.conf\n"
17074 "\n"
17075 msgstr ""
17076
17077 #. type: =head2
17078 #: ../fish/guestfish.pod:107
17079 msgid "Mount disks automatically"
17080 msgstr ""
17081
17082 #. type: textblock
17083 #: ../fish/guestfish.pod:109
17084 msgid ""
17085 "Use the I<-i> option to automatically mount the disks from a virtual "
17086 "machine:"
17087 msgstr ""
17088
17089 #. type: verbatim
17090 #: ../fish/guestfish.pod:112
17091 #, no-wrap
17092 msgid ""
17093 " guestfish --ro -a disk.img -i cat /etc/group\n"
17094 "\n"
17095 msgstr ""
17096
17097 #. type: verbatim
17098 #: ../fish/guestfish.pod:114
17099 #, no-wrap
17100 msgid ""
17101 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17102 "\n"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish.pod:116
17107 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17108 msgstr ""
17109
17110 #. type: verbatim
17111 #: ../fish/guestfish.pod:118
17112 #, no-wrap
17113 msgid ""
17114 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17115 "\n"
17116 msgstr ""
17117
17118 #. type: =head2
17119 #: ../fish/guestfish.pod:120
17120 msgid "As a script interpreter"
17121 msgstr ""
17122
17123 #. type: textblock
17124 #: ../fish/guestfish.pod:122
17125 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17126 msgstr ""
17127
17128 #. type: verbatim
17129 #: ../fish/guestfish.pod:124
17130 #, no-wrap
17131 msgid ""
17132 " #!/usr/bin/guestfish -f\n"
17133 " sparse test1.img 100M\n"
17134 " run\n"
17135 " part-disk /dev/sda mbr\n"
17136 " mkfs ext2 /dev/sda1\n"
17137 "\n"
17138 msgstr ""
17139
17140 #. type: =head2
17141 #: ../fish/guestfish.pod:130
17142 msgid "Start with a prepared disk"
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish.pod:132
17147 msgid ""
17148 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17149 "single ext2-formatted partition:"
17150 msgstr ""
17151
17152 #. type: verbatim
17153 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
17154 #, no-wrap
17155 msgid ""
17156 " guestfish -N fs\n"
17157 "\n"
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish.pod:137
17162 msgid "To list what is available do:"
17163 msgstr ""
17164
17165 #. type: verbatim
17166 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1041
17167 #, no-wrap
17168 msgid ""
17169 " guestfish -N help | less\n"
17170 "\n"
17171 msgstr ""
17172
17173 #. type: =head2
17174 #: ../fish/guestfish.pod:141
17175 msgid "Remote control"
17176 msgstr ""
17177
17178 #. type: verbatim
17179 #: ../fish/guestfish.pod:143
17180 #, no-wrap
17181 msgid ""
17182 " eval \"`guestfish --listen`\"\n"
17183 " guestfish --remote add-ro disk.img\n"
17184 " guestfish --remote run\n"
17185 " guestfish --remote lvs\n"
17186 "\n"
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish.pod:154
17191 msgid "Displays general help on options."
17192 msgstr ""
17193
17194 #. type: =item
17195 #: ../fish/guestfish.pod:158
17196 msgid "B<--cmd-help>"
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish.pod:160
17201 msgid "Lists all available guestfish commands."
17202 msgstr ""
17203
17204 #. type: =item
17205 #: ../fish/guestfish.pod:162
17206 msgid "B<-h cmd>"
17207 msgstr ""
17208
17209 #. type: =item
17210 #: ../fish/guestfish.pod:164
17211 msgid "B<--cmd-help cmd>"
17212 msgstr ""
17213
17214 #. type: textblock
17215 #: ../fish/guestfish.pod:166
17216 msgid "Displays detailed help on a single command C<cmd>."
17217 msgstr ""
17218
17219 #. type: =item
17220 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17221 msgid "B<-a image>"
17222 msgstr ""
17223
17224 #. type: =item
17225 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17226 msgid "B<--add image>"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish.pod:172
17231 msgid "Add a block device or virtual machine image to the shell."
17232 msgstr ""
17233
17234 #. type: textblock
17235 #: ../fish/guestfish.pod:177
17236 msgid ""
17237 "Using this flag is mostly equivalent to using the C<add> command, with "
17238 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17239 "the I<--format=...> flag was given."
17240 msgstr ""
17241
17242 #. type: textblock
17243 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17244 msgid ""
17245 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17246 "URI to use.  The default is to use the default libvirt connection."
17247 msgstr ""
17248
17249 #. type: =item
17250 #: ../fish/guestfish.pod:189
17251 msgid "B<--csh>"
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish.pod:191
17256 msgid ""
17257 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17258 "section L</REMOTE CONTROL AND CSH> below."
17259 msgstr ""
17260
17261 #. type: =item
17262 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17263 msgid "B<-d libvirt-domain>"
17264 msgstr ""
17265
17266 #. type: =item
17267 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17268 msgid "B<--domain libvirt-domain>"
17269 msgstr ""
17270
17271 #. type: textblock
17272 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17273 msgid ""
17274 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17275 "used, then any libvirt domain can be used.  However in write mode, only "
17276 "libvirt domains which are shut down can be named here."
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17281 msgid "Domain UUIDs can be used instead of names."
17282 msgstr ""
17283
17284 #. type: textblock
17285 #: ../fish/guestfish.pod:204
17286 msgid ""
17287 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17288 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17289 "if the I<--format:...> flag was given."
17290 msgstr ""
17291
17292 #. type: =item
17293 #: ../fish/guestfish.pod:208
17294 msgid "B<-D>"
17295 msgstr ""
17296
17297 #. type: =item
17298 #: ../fish/guestfish.pod:210
17299 msgid "B<--no-dest-paths>"
17300 msgstr ""
17301
17302 #. type: textblock
17303 #: ../fish/guestfish.pod:212
17304 msgid ""
17305 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17306 "to hit the tab key to complete paths on the guest filesystem, but this "
17307 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17308 "allow this feature to be disabled."
17309 msgstr ""
17310
17311 #. type: textblock
17312 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17313 msgid ""
17314 "When prompting for keys and passphrases, guestfish normally turns echoing "
17315 "off so you cannot see what you are typing.  If you are not worried about "
17316 "Tempest attacks and there is no one else in the room you can specify this "
17317 "flag to see what you are typing."
17318 msgstr ""
17319
17320 #. type: =item
17321 #: ../fish/guestfish.pod:224
17322 msgid "B<-f file>"
17323 msgstr ""
17324
17325 #. type: =item
17326 #: ../fish/guestfish.pod:226
17327 msgid "B<--file file>"
17328 msgstr ""
17329
17330 #. type: textblock
17331 #: ../fish/guestfish.pod:228
17332 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17333 msgstr ""
17334
17335 #. type: verbatim
17336 #: ../fish/guestfish.pod:231
17337 #, no-wrap
17338 msgid ""
17339 " #!/usr/bin/guestfish -f\n"
17340 "\n"
17341 msgstr ""
17342
17343 #. type: verbatim
17344 #: ../fish/guestfish.pod:244
17345 #, no-wrap
17346 msgid ""
17347 " guestfish --format=raw -a disk.img\n"
17348 "\n"
17349 msgstr ""
17350
17351 #. type: verbatim
17352 #: ../fish/guestfish.pod:248
17353 #, no-wrap
17354 msgid ""
17355 " guestfish --format=raw -a disk.img --format -a another.img\n"
17356 "\n"
17357 msgstr ""
17358
17359 #. type: textblock
17360 #: ../fish/guestfish.pod:253
17361 msgid ""
17362 "If you have untrusted raw-format guest disk images, you should use this "
17363 "option to specify the disk format.  This avoids a possible security problem "
17364 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17365 msgstr ""
17366
17367 #. type: =item
17368 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17369 msgid "B<--inspector>"
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17374 msgid ""
17375 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17376 "system and mount filesystems as they would be mounted on the real virtual "
17377 "machine."
17378 msgstr ""
17379
17380 #. type: textblock
17381 #: ../fish/guestfish.pod:266
17382 msgid "Typical usage is either:"
17383 msgstr ""
17384
17385 #. type: verbatim
17386 #: ../fish/guestfish.pod:268
17387 #, no-wrap
17388 msgid ""
17389 " guestfish -d myguest -i\n"
17390 "\n"
17391 msgstr ""
17392
17393 #. type: textblock
17394 #: ../fish/guestfish.pod:270
17395 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17396 msgstr ""
17397
17398 #. type: verbatim
17399 #: ../fish/guestfish.pod:272
17400 #, no-wrap
17401 msgid ""
17402 " guestfish --ro -d myguest -i\n"
17403 "\n"
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish.pod:274
17408 msgid "(for active domains, readonly), or specify the block device directly:"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish.pod:276
17413 #, no-wrap
17414 msgid ""
17415 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17416 "\n"
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish.pod:278
17421 msgid ""
17422 "Note that the command line syntax changed slightly over older versions of "
17423 "guestfish.  You can still use the old syntax:"
17424 msgstr ""
17425
17426 #. type: verbatim
17427 #: ../fish/guestfish.pod:281
17428 #, no-wrap
17429 msgid ""
17430 " guestfish [--ro] -i disk.img\n"
17431 "\n"
17432 msgstr ""
17433
17434 #. type: verbatim
17435 #: ../fish/guestfish.pod:283
17436 #, no-wrap
17437 msgid ""
17438 " guestfish [--ro] -i libvirt-domain\n"
17439 "\n"
17440 msgstr ""
17441
17442 #. type: textblock
17443 #: ../fish/guestfish.pod:285
17444 msgid ""
17445 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17446 "then using other commands to mount the filesystems that were found."
17447 msgstr ""
17448
17449 #. type: =item
17450 #: ../fish/guestfish.pod:294
17451 msgid "B<--listen>"
17452 msgstr ""
17453
17454 #. type: textblock
17455 #: ../fish/guestfish.pod:296
17456 msgid ""
17457 "Fork into the background and listen for remote commands.  See section "
17458 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17459 msgstr ""
17460
17461 #. type: =item
17462 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17463 msgid "B<--live>"
17464 msgstr ""
17465
17466 #. type: textblock
17467 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17468 msgid ""
17469 "Connect to a live virtual machine.  (Experimental, see "
17470 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
17471 msgstr ""
17472
17473 #. type: =item
17474 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17475 msgid "B<-m dev[:mountpoint[:options]]>"
17476 msgstr ""
17477
17478 #. type: =item
17479 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17480 msgid "B<--mount dev[:mountpoint[:options]]>"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:308
17485 msgid "Mount the named partition or logical volume on the given mountpoint."
17486 msgstr ""
17487
17488 #. type: textblock
17489 #: ../fish/guestfish.pod:310
17490 msgid "If the mountpoint is omitted, it defaults to C</>."
17491 msgstr ""
17492
17493 #. type: textblock
17494 #: ../fish/guestfish.pod:312
17495 msgid "You have to mount something on C</> before most commands will work."
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish.pod:314
17500 msgid ""
17501 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17502 "launched."
17503 msgstr ""
17504
17505 #. type: textblock
17506 #: ../fish/guestfish.pod:317
17507 msgid ""
17508 "If you don't know what filesystems a disk image contains, you can either run "
17509 "guestfish without this option, then list the partitions, filesystems and LVs "
17510 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17511 "commands), or you can use the L<virt-filesystems(1)> program."
17512 msgstr ""
17513
17514 #. type: textblock
17515 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17516 msgid ""
17517 "The third (and rarely used) part of the mount parameter is the list of mount "
17518 "options used to mount the underlying filesystem.  If this is not given, then "
17519 "the mount options are either the empty string or C<ro> (the latter if the "
17520 "I<--ro> flag is used).  By specifying the mount options, you override this "
17521 "default choice.  Probably the only time you would use this is to enable ACLs "
17522 "and/or extended attributes if the filesystem can support them:"
17523 msgstr ""
17524
17525 #. type: verbatim
17526 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17527 #, no-wrap
17528 msgid ""
17529 " -m /dev/sda1:/:acl,user_xattr\n"
17530 "\n"
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish.pod:333
17535 msgid "Using this flag is equivalent to using the C<mount-options> command."
17536 msgstr ""
17537
17538 #. type: =item
17539 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:358
17540 msgid "B<-n>"
17541 msgstr ""
17542
17543 #. type: =item
17544 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17545 msgid "B<--no-sync>"
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../fish/guestfish.pod:339
17550 msgid ""
17551 "Disable autosync.  This is enabled by default.  See the discussion of "
17552 "autosync in the L<guestfs(3)> manpage."
17553 msgstr ""
17554
17555 #. type: =item
17556 #: ../fish/guestfish.pod:342
17557 msgid "B<-N type>"
17558 msgstr ""
17559
17560 #. type: =item
17561 #: ../fish/guestfish.pod:344
17562 msgid "B<--new type>"
17563 msgstr ""
17564
17565 #. type: =item
17566 #: ../fish/guestfish.pod:346
17567 msgid "B<-N help>"
17568 msgstr ""
17569
17570 #. type: textblock
17571 #: ../fish/guestfish.pod:348
17572 msgid ""
17573 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17574 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17575 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17576 "IMAGES> below."
17577 msgstr ""
17578
17579 #. type: =item
17580 #: ../fish/guestfish.pod:353
17581 msgid "B<--progress-bars>"
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../fish/guestfish.pod:355
17586 msgid "Enable progress bars, even when guestfish is used non-interactively."
17587 msgstr ""
17588
17589 #. type: textblock
17590 #: ../fish/guestfish.pod:357
17591 msgid ""
17592 "Progress bars are enabled by default when guestfish is used as an "
17593 "interactive shell."
17594 msgstr ""
17595
17596 #. type: =item
17597 #: ../fish/guestfish.pod:360
17598 msgid "B<--no-progress-bars>"
17599 msgstr ""
17600
17601 #. type: textblock
17602 #: ../fish/guestfish.pod:362
17603 msgid "Disable progress bars."
17604 msgstr ""
17605
17606 #. type: =item
17607 #: ../fish/guestfish.pod:364
17608 msgid "B<--remote[=pid]>"
17609 msgstr ""
17610
17611 #. type: textblock
17612 #: ../fish/guestfish.pod:366
17613 msgid ""
17614 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17615 "CONTROL GUESTFISH OVER A SOCKET> below."
17616 msgstr ""
17617
17618 #. type: =item
17619 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
17620 msgid "B<-r>"
17621 msgstr ""
17622
17623 #. type: =item
17624 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
17625 msgid "B<--ro>"
17626 msgstr ""
17627
17628 #. type: textblock
17629 #: ../fish/guestfish.pod:373
17630 msgid ""
17631 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17632 "mounts are done read-only."
17633 msgstr ""
17634
17635 #. type: textblock
17636 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17637 msgid ""
17638 "The option must always be used if the disk image or virtual machine might be "
17639 "running, and is generally recommended in cases where you don't need write "
17640 "access to the disk."
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../fish/guestfish.pod:380
17645 msgid ""
17646 "Note that prepared disk images created with I<-N> are not affected by this "
17647 "option.  Also commands like C<add> are not affected - you have to specify "
17648 "the C<readonly:true> option explicitly if you need it."
17649 msgstr ""
17650
17651 #. type: textblock
17652 #: ../fish/guestfish.pod:384
17653 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17654 msgstr ""
17655
17656 #. type: =item
17657 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
17658 msgid "B<--selinux>"
17659 msgstr ""
17660
17661 #. type: textblock
17662 #: ../fish/guestfish.pod:388
17663 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17664 msgstr ""
17665
17666 #. type: textblock
17667 #: ../fish/guestfish.pod:394
17668 msgid ""
17669 "Enable very verbose messages.  This is particularly useful if you find a "
17670 "bug."
17671 msgstr ""
17672
17673 #. type: textblock
17674 #: ../fish/guestfish.pod:401
17675 msgid "Display the guestfish / libguestfs version number and exit."
17676 msgstr ""
17677
17678 #. type: =item
17679 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:194
17680 msgid "B<-w>"
17681 msgstr ""
17682
17683 #. type: =item
17684 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:196
17685 msgid "B<--rw>"
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17690 msgid ""
17691 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17692 "mounts are done read-write."
17693 msgstr ""
17694
17695 #. type: textblock
17696 #: ../fish/guestfish.pod:410
17697 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17698 msgstr ""
17699
17700 #. type: textblock
17701 #: ../fish/guestfish.pod:414
17702 msgid "Echo each command before executing it."
17703 msgstr ""
17704
17705 #. type: =head1
17706 #: ../fish/guestfish.pod:418
17707 msgid "COMMANDS ON COMMAND LINE"
17708 msgstr ""
17709
17710 #. type: textblock
17711 #: ../fish/guestfish.pod:420
17712 msgid "Any additional (non-option) arguments are treated as commands to execute."
17713 msgstr ""
17714
17715 #. type: textblock
17716 #: ../fish/guestfish.pod:423
17717 msgid ""
17718 "Commands to execute should be separated by a colon (C<:>), where the colon "
17719 "is a separate parameter.  Thus:"
17720 msgstr ""
17721
17722 #. type: verbatim
17723 #: ../fish/guestfish.pod:426
17724 #, no-wrap
17725 msgid ""
17726 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17727 "\n"
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish.pod:428
17732 msgid ""
17733 "If there are no additional arguments, then we enter a shell, either an "
17734 "interactive shell with a prompt (if the input is a terminal) or a "
17735 "non-interactive shell."
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish.pod:432
17740 msgid ""
17741 "In either command line mode or non-interactive shell, the first command that "
17742 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17743 "prompt) if a command fails, you can continue to enter commands."
17744 msgstr ""
17745
17746 #. type: =head1
17747 #: ../fish/guestfish.pod:437
17748 msgid "USING launch (OR run)"
17749 msgstr ""
17750
17751 #. type: textblock
17752 #: ../fish/guestfish.pod:439
17753 msgid ""
17754 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17755 "then launch it, then mount any disks you need, and finally issue "
17756 "actions/commands.  So the general order of the day is:"
17757 msgstr ""
17758
17759 #. type: textblock
17760 #: ../fish/guestfish.pod:447
17761 msgid "add or -a/--add"
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:451
17766 msgid "launch (aka run)"
17767 msgstr ""
17768
17769 #. type: textblock
17770 #: ../fish/guestfish.pod:455
17771 msgid "mount or -m/--mount"
17772 msgstr ""
17773
17774 #. type: textblock
17775 #: ../fish/guestfish.pod:459
17776 msgid "any other commands"
17777 msgstr ""
17778
17779 #. type: textblock
17780 #: ../fish/guestfish.pod:463
17781 msgid ""
17782 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17783 "guest before mounting or performing any other commands."
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:466
17788 msgid ""
17789 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17790 "I<--new> options were given then C<run> is done automatically, simply "
17791 "because guestfish can't perform the action you asked for without doing this."
17792 msgstr ""
17793
17794 #. type: =head1
17795 #: ../fish/guestfish.pod:471
17796 msgid "OPENING DISKS FOR READ AND WRITE"
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish.pod:473
17801 msgid ""
17802 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17803 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17804 "I<-i> and I<-m> open disk images read-only or for writing."
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish.pod:478
17809 msgid ""
17810 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17811 "opening disk images supplied on the command line for write.  To open a disk "
17812 "image read-only you have to do I<-a image --ro>."
17813 msgstr ""
17814
17815 #. type: textblock
17816 #: ../fish/guestfish.pod:482
17817 msgid ""
17818 "This matters: If you accidentally open a live VM disk image writable then "
17819 "you will cause irreversible disk corruption."
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:485
17824 msgid ""
17825 "In a future libguestfs we intend to change the default the other way.  Disk "
17826 "images will be opened read-only.  You will have to either specify "
17827 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17828 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17829 "access for disk images specified by those other command line options."
17830 msgstr ""
17831
17832 #. type: textblock
17833 #: ../fish/guestfish.pod:492
17834 msgid ""
17835 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17836 "which does nothing (it is already the default).  However it is highly "
17837 "recommended that you use this option to indicate that you need write access, "
17838 "and prepare your scripts for the day when this option will be required for "
17839 "write access."
17840 msgstr ""
17841
17842 #. type: textblock
17843 #: ../fish/guestfish.pod:498
17844 msgid ""
17845 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17846 "other libguestfs program apart from guestfish and guestmount."
17847 msgstr ""
17848
17849 #. type: =head1
17850 #: ../fish/guestfish.pod:501
17851 msgid "QUOTING"
17852 msgstr ""
17853
17854 #. type: textblock
17855 #: ../fish/guestfish.pod:503
17856 msgid ""
17857 "You can quote ordinary parameters using either single or double quotes.  For "
17858 "example:"
17859 msgstr ""
17860
17861 #. type: verbatim
17862 #: ../fish/guestfish.pod:506
17863 #, no-wrap
17864 msgid ""
17865 " add \"file with a space.img\"\n"
17866 "\n"
17867 msgstr ""
17868
17869 #. type: verbatim
17870 #: ../fish/guestfish.pod:508
17871 #, no-wrap
17872 msgid ""
17873 " rm '/file name'\n"
17874 "\n"
17875 msgstr ""
17876
17877 #. type: verbatim
17878 #: ../fish/guestfish.pod:510
17879 #, no-wrap
17880 msgid ""
17881 " rm '/\"'\n"
17882 "\n"
17883 msgstr ""
17884
17885 #. type: textblock
17886 #: ../fish/guestfish.pod:512
17887 msgid ""
17888 "A few commands require a list of strings to be passed.  For these, use a "
17889 "whitespace-separated list, enclosed in quotes.  Strings containing "
17890 "whitespace to be passed through must be enclosed in single quotes.  A "
17891 "literal single quote must be escaped with a backslash."
17892 msgstr ""
17893
17894 #. type: verbatim
17895 #: ../fish/guestfish.pod:517
17896 #, no-wrap
17897 msgid ""
17898 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17899 " command \"/bin/echo 'foo      bar'\"\n"
17900 " command \"/bin/echo \\'foo\\'\"\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: =head2
17905 #: ../fish/guestfish.pod:521
17906 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17907 msgstr ""
17908
17909 #. type: textblock
17910 #: ../fish/guestfish.pod:523
17911 msgid ""
17912 "In double-quoted arguments (only) use backslash to insert special "
17913 "characters:"
17914 msgstr ""
17915
17916 #. type: =item
17917 #: ../fish/guestfish.pod:528
17918 msgid "C<\\a>"
17919 msgstr ""
17920
17921 #. type: textblock
17922 #: ../fish/guestfish.pod:530
17923 msgid "Alert (bell) character."
17924 msgstr ""
17925
17926 #. type: =item
17927 #: ../fish/guestfish.pod:532
17928 msgid "C<\\b>"
17929 msgstr ""
17930
17931 #. type: textblock
17932 #: ../fish/guestfish.pod:534
17933 msgid "Backspace character."
17934 msgstr ""
17935
17936 #. type: =item
17937 #: ../fish/guestfish.pod:536
17938 msgid "C<\\f>"
17939 msgstr ""
17940
17941 #. type: textblock
17942 #: ../fish/guestfish.pod:538
17943 msgid "Form feed character."
17944 msgstr ""
17945
17946 #. type: =item
17947 #: ../fish/guestfish.pod:540
17948 msgid "C<\\n>"
17949 msgstr ""
17950
17951 #. type: textblock
17952 #: ../fish/guestfish.pod:542
17953 msgid "Newline character."
17954 msgstr ""
17955
17956 #. type: =item
17957 #: ../fish/guestfish.pod:544
17958 msgid "C<\\r>"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish.pod:546
17963 msgid "Carriage return character."
17964 msgstr ""
17965
17966 #. type: =item
17967 #: ../fish/guestfish.pod:548
17968 msgid "C<\\t>"
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../fish/guestfish.pod:550
17973 msgid "Horizontal tab character."
17974 msgstr ""
17975
17976 #. type: =item
17977 #: ../fish/guestfish.pod:552
17978 msgid "C<\\v>"
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:554
17983 msgid "Vertical tab character."
17984 msgstr ""
17985
17986 #. type: =item
17987 #: ../fish/guestfish.pod:556
17988 msgid "C<\\\">"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../fish/guestfish.pod:558
17993 msgid "A literal double quote character."
17994 msgstr ""
17995
17996 #. type: =item
17997 #: ../fish/guestfish.pod:560
17998 msgid "C<\\ooo>"
17999 msgstr ""
18000
18001 #. type: textblock
18002 #: ../fish/guestfish.pod:562
18003 msgid ""
18004 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18005 "(unlike C)."
18006 msgstr ""
18007
18008 #. type: =item
18009 #: ../fish/guestfish.pod:565
18010 msgid "C<\\xhh>"
18011 msgstr ""
18012
18013 #. type: textblock
18014 #: ../fish/guestfish.pod:567
18015 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish.pod:570
18020 msgid ""
18021 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18022 "strings."
18023 msgstr ""
18024
18025 #. type: =item
18026 #: ../fish/guestfish.pod:573
18027 msgid "C<\\\\>"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:575
18032 msgid "A literal backslash character."
18033 msgstr ""
18034
18035 #. type: =head1
18036 #: ../fish/guestfish.pod:579
18037 msgid "OPTIONAL ARGUMENTS"
18038 msgstr ""
18039
18040 #. type: textblock
18041 #: ../fish/guestfish.pod:581
18042 msgid ""
18043 "Some commands take optional arguments.  These arguments appear in this "
18044 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18045 msgstr ""
18046
18047 #. type: verbatim
18048 #: ../fish/guestfish.pod:585
18049 #, no-wrap
18050 msgid ""
18051 " add-drive-opts filename\n"
18052 "\n"
18053 msgstr ""
18054
18055 #. type: verbatim
18056 #: ../fish/guestfish.pod:587
18057 #, no-wrap
18058 msgid ""
18059 " add-drive-opts filename readonly:true\n"
18060 "\n"
18061 msgstr ""
18062
18063 #. type: verbatim
18064 #: ../fish/guestfish.pod:589
18065 #, no-wrap
18066 msgid ""
18067 " add-drive-opts filename format:qcow2 readonly:false\n"
18068 "\n"
18069 msgstr ""
18070
18071 #. type: textblock
18072 #: ../fish/guestfish.pod:591
18073 msgid ""
18074 "Each optional argument can appear at most once.  All optional arguments must "
18075 "appear after the required ones."
18076 msgstr ""
18077
18078 #. type: =head1
18079 #: ../fish/guestfish.pod:594
18080 msgid "NUMBERS"
18081 msgstr ""
18082
18083 #. type: textblock
18084 #: ../fish/guestfish.pod:596
18085 msgid "This section applies to all commands which can take integers as parameters."
18086 msgstr ""
18087
18088 #. type: =head2
18089 #: ../fish/guestfish.pod:599
18090 msgid "SIZE SUFFIX"
18091 msgstr ""
18092
18093 #. type: textblock
18094 #: ../fish/guestfish.pod:601
18095 msgid ""
18096 "When the command takes a parameter measured in bytes, you can use one of the "
18097 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18098 msgstr ""
18099
18100 #. type: =item
18101 #: ../fish/guestfish.pod:607
18102 msgid "B<k> or B<K> or B<KiB>"
18103 msgstr ""
18104
18105 #. type: textblock
18106 #: ../fish/guestfish.pod:609
18107 msgid "The size in kilobytes (multiplied by 1024)."
18108 msgstr ""
18109
18110 #. type: =item
18111 #: ../fish/guestfish.pod:611
18112 msgid "B<KB>"
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:613
18117 msgid "The size in SI 1000 byte units."
18118 msgstr ""
18119
18120 #. type: =item
18121 #: ../fish/guestfish.pod:615
18122 msgid "B<M> or B<MiB>"
18123 msgstr ""
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:617
18127 msgid "The size in megabytes (multiplied by 1048576)."
18128 msgstr ""
18129
18130 #. type: =item
18131 #: ../fish/guestfish.pod:619
18132 msgid "B<MB>"
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:621
18137 msgid "The size in SI 1000000 byte units."
18138 msgstr ""
18139
18140 #. type: =item
18141 #: ../fish/guestfish.pod:623
18142 msgid "B<G> or B<GiB>"
18143 msgstr ""
18144
18145 #. type: textblock
18146 #: ../fish/guestfish.pod:625
18147 msgid "The size in gigabytes (multiplied by 2**30)."
18148 msgstr ""
18149
18150 #. type: =item
18151 #: ../fish/guestfish.pod:627
18152 msgid "B<GB>"
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish.pod:629
18157 msgid "The size in SI 10**9 byte units."
18158 msgstr ""
18159
18160 #. type: =item
18161 #: ../fish/guestfish.pod:631
18162 msgid "B<T> or B<TiB>"
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/guestfish.pod:633
18167 msgid "The size in terabytes (multiplied by 2**40)."
18168 msgstr ""
18169
18170 #. type: =item
18171 #: ../fish/guestfish.pod:635
18172 msgid "B<TB>"
18173 msgstr ""
18174
18175 #. type: textblock
18176 #: ../fish/guestfish.pod:637
18177 msgid "The size in SI 10**12 byte units."
18178 msgstr ""
18179
18180 #. type: =item
18181 #: ../fish/guestfish.pod:639
18182 msgid "B<P> or B<PiB>"
18183 msgstr ""
18184
18185 #. type: textblock
18186 #: ../fish/guestfish.pod:641
18187 msgid "The size in petabytes (multiplied by 2**50)."
18188 msgstr ""
18189
18190 #. type: =item
18191 #: ../fish/guestfish.pod:643
18192 msgid "B<PB>"
18193 msgstr ""
18194
18195 #. type: textblock
18196 #: ../fish/guestfish.pod:645
18197 msgid "The size in SI 10**15 byte units."
18198 msgstr ""
18199
18200 #. type: =item
18201 #: ../fish/guestfish.pod:647
18202 msgid "B<E> or B<EiB>"
18203 msgstr ""
18204
18205 #. type: textblock
18206 #: ../fish/guestfish.pod:649
18207 msgid "The size in exabytes (multiplied by 2**60)."
18208 msgstr ""
18209
18210 #. type: =item
18211 #: ../fish/guestfish.pod:651
18212 msgid "B<EB>"
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish.pod:653
18217 msgid "The size in SI 10**18 byte units."
18218 msgstr ""
18219
18220 #. type: =item
18221 #: ../fish/guestfish.pod:655
18222 msgid "B<Z> or B<ZiB>"
18223 msgstr ""
18224
18225 #. type: textblock
18226 #: ../fish/guestfish.pod:657
18227 msgid "The size in zettabytes (multiplied by 2**70)."
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish.pod:659
18232 msgid "B<ZB>"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish.pod:661
18237 msgid "The size in SI 10**21 byte units."
18238 msgstr ""
18239
18240 #. type: =item
18241 #: ../fish/guestfish.pod:663
18242 msgid "B<Y> or B<YiB>"
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish.pod:665
18247 msgid "The size in yottabytes (multiplied by 2**80)."
18248 msgstr ""
18249
18250 #. type: =item
18251 #: ../fish/guestfish.pod:667
18252 msgid "B<YB>"
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../fish/guestfish.pod:669
18257 msgid "The size in SI 10**24 byte units."
18258 msgstr ""
18259
18260 #. type: verbatim
18261 #: ../fish/guestfish.pod:675
18262 #, no-wrap
18263 msgid ""
18264 " truncate-size /file 1G\n"
18265 "\n"
18266 msgstr ""
18267
18268 #. type: textblock
18269 #: ../fish/guestfish.pod:677
18270 msgid "would truncate the file to 1 gigabyte."
18271 msgstr ""
18272
18273 #. type: textblock
18274 #: ../fish/guestfish.pod:679
18275 msgid ""
18276 "Be careful because a few commands take sizes in kilobytes or megabytes "
18277 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
18278 "Adding a suffix will probably not do what you expect."
18279 msgstr ""
18280
18281 #. type: =head2
18282 #: ../fish/guestfish.pod:683
18283 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18284 msgstr ""
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:685
18288 msgid ""
18289 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18290 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18291 msgstr ""
18292
18293 #. type: verbatim
18294 #: ../fish/guestfish.pod:688
18295 #, no-wrap
18296 msgid ""
18297 " 1234      decimal number 1234\n"
18298 " 02322     octal number, equivalent to decimal 1234\n"
18299 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18300 "\n"
18301 msgstr ""
18302
18303 #. type: textblock
18304 #: ../fish/guestfish.pod:692
18305 msgid ""
18306 "When using the C<chmod> command, you almost always want to specify an octal "
18307 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18308 "L<chmod(1)> program):"
18309 msgstr ""
18310
18311 #. type: verbatim
18312 #: ../fish/guestfish.pod:696
18313 #, no-wrap
18314 msgid ""
18315 " chmod 0777 /public  # OK\n"
18316 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18317 "\n"
18318 msgstr ""
18319
18320 #. type: textblock
18321 #: ../fish/guestfish.pod:699
18322 msgid ""
18323 "Commands that return numbers usually print them in decimal, but some "
18324 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18325 "octal, preceeded by C<0>)."
18326 msgstr ""
18327
18328 #. type: =head1
18329 #: ../fish/guestfish.pod:703
18330 msgid "WILDCARDS AND GLOBBING"
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../fish/guestfish.pod:705
18335 msgid ""
18336 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18337 "(globbing) by default.  So for example the following will not do what you "
18338 "expect:"
18339 msgstr ""
18340
18341 #. type: verbatim
18342 #: ../fish/guestfish.pod:709
18343 #, no-wrap
18344 msgid ""
18345 " rm-rf /home/*\n"
18346 "\n"
18347 msgstr ""
18348
18349 #. type: textblock
18350 #: ../fish/guestfish.pod:711
18351 msgid ""
18352 "Assuming you don't have a directory called literally C</home/*> then the "
18353 "above command will return an error."
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish.pod:714
18358 msgid "To perform wildcard expansion, use the C<glob> command."
18359 msgstr ""
18360
18361 #. type: verbatim
18362 #: ../fish/guestfish.pod:716
18363 #, no-wrap
18364 msgid ""
18365 " glob rm-rf /home/*\n"
18366 "\n"
18367 msgstr ""
18368
18369 #. type: textblock
18370 #: ../fish/guestfish.pod:718
18371 msgid ""
18372 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18373 "many times), equivalent to:"
18374 msgstr ""
18375
18376 #. type: verbatim
18377 #: ../fish/guestfish.pod:721
18378 #, no-wrap
18379 msgid ""
18380 " rm-rf /home/jim\n"
18381 " rm-rf /home/joe\n"
18382 " rm-rf /home/mary\n"
18383 "\n"
18384 msgstr ""
18385
18386 #. type: textblock
18387 #: ../fish/guestfish.pod:725
18388 msgid "C<glob> only works on simple guest paths and not on device names."
18389 msgstr ""
18390
18391 #. type: textblock
18392 #: ../fish/guestfish.pod:727
18393 msgid ""
18394 "If you have several parameters, each containing a wildcard, then glob will "
18395 "perform a Cartesian product."
18396 msgstr ""
18397
18398 #. type: =head1
18399 #: ../fish/guestfish.pod:730
18400 msgid "COMMENTS"
18401 msgstr ""
18402
18403 #. type: textblock
18404 #: ../fish/guestfish.pod:732
18405 msgid ""
18406 "Any line which starts with a I<#> character is treated as a comment and "
18407 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18408 "a command.  For example:"
18409 msgstr ""
18410
18411 #. type: verbatim
18412 #: ../fish/guestfish.pod:736
18413 #, no-wrap
18414 msgid ""
18415 " # this is a comment\n"
18416 "         # this is a comment\n"
18417 " foo # NOT a comment\n"
18418 "\n"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:740
18423 msgid "Blank lines are also ignored."
18424 msgstr ""
18425
18426 #. type: =head1
18427 #: ../fish/guestfish.pod:742
18428 msgid "RUNNING COMMANDS LOCALLY"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:744
18433 msgid ""
18434 "Any line which starts with a I<!> character is treated as a command sent to "
18435 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18436 msgstr ""
18437
18438 #. type: verbatim
18439 #: ../fish/guestfish.pod:748
18440 #, no-wrap
18441 msgid ""
18442 " !mkdir local\n"
18443 " tgz-out /remote local/remote-data.tar.gz\n"
18444 "\n"
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:751
18449 msgid ""
18450 "will create a directory C<local> on the host, and then export the contents "
18451 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18452 "(See C<tgz-out>)."
18453 msgstr ""
18454
18455 #. type: textblock
18456 #: ../fish/guestfish.pod:755
18457 msgid ""
18458 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18459 "effect, due to the way that subprocesses work in Unix."
18460 msgstr ""
18461
18462 #. type: =head2
18463 #: ../fish/guestfish.pod:758
18464 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18465 msgstr ""
18466
18467 #. type: textblock
18468 #: ../fish/guestfish.pod:760
18469 msgid ""
18470 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18471 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18472 "and executed as guestfish commands."
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:764
18477 msgid ""
18478 "Thus you can use shell script to construct arbitrary guestfish commands "
18479 "which are then parsed by guestfish."
18480 msgstr ""
18481
18482 #. type: textblock
18483 #: ../fish/guestfish.pod:767
18484 msgid ""
18485 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18486 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18487 "if we use a shell script to create the guestfish commands for us:"
18488 msgstr ""
18489
18490 #. type: verbatim
18491 #: ../fish/guestfish.pod:772
18492 #, no-wrap
18493 msgid ""
18494 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18495 "\n"
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish.pod:774
18500 msgid "or with names like C</foo.001>:"
18501 msgstr ""
18502
18503 #. type: verbatim
18504 #: ../fish/guestfish.pod:776
18505 #, no-wrap
18506 msgid ""
18507 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18508 "\n"
18509 msgstr ""
18510
18511 #. type: textblock
18512 #: ../fish/guestfish.pod:778
18513 msgid ""
18514 "When using guestfish interactively it can be helpful to just run the shell "
18515 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18516 "ordinary I<!> local command), see what guestfish commands it would run, and "
18517 "when you are happy with those prepend the C<E<lt>> character to run the "
18518 "guestfish commands for real."
18519 msgstr ""
18520
18521 #. type: =head1
18522 #: ../fish/guestfish.pod:784
18523 msgid "PIPES"
18524 msgstr ""
18525
18526 #. type: textblock
18527 #: ../fish/guestfish.pod:786
18528 msgid ""
18529 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18530 "command (a guestfish command) to the second command (any host command).  For "
18531 "example:"
18532 msgstr ""
18533
18534 #. type: verbatim
18535 #: ../fish/guestfish.pod:790
18536 #, no-wrap
18537 msgid ""
18538 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18539 "\n"
18540 msgstr ""
18541
18542 #. type: textblock
18543 #: ../fish/guestfish.pod:792
18544 msgid ""
18545 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18546 "program).  The above command would list all accounts in the guest filesystem "
18547 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18548 msgstr ""
18549
18550 #. type: verbatim
18551 #: ../fish/guestfish.pod:797
18552 #, no-wrap
18553 msgid ""
18554 " hexdump /bin/ls | head\n"
18555 " list-devices | tail -1\n"
18556 " tgz-out / - | tar ztf -\n"
18557 "\n"
18558 msgstr ""
18559
18560 #. type: textblock
18561 #: ../fish/guestfish.pod:801
18562 msgid ""
18563 "The space before the pipe symbol is required, any space after the pipe "
18564 "symbol is optional.  Everything after the pipe symbol is just passed "
18565 "straight to the host shell, so it can contain redirections, globs and "
18566 "anything else that makes sense on the host side."
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fish/guestfish.pod:806
18571 msgid ""
18572 "To use a literal argument which begins with a pipe symbol, you have to quote "
18573 "it, eg:"
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/guestfish.pod:809
18578 #, no-wrap
18579 msgid ""
18580 " echo \"|\"\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: =head1
18585 #: ../fish/guestfish.pod:811
18586 msgid "HOME DIRECTORIES"
18587 msgstr ""
18588
18589 #. type: textblock
18590 #: ../fish/guestfish.pod:813
18591 msgid ""
18592 "If a parameter starts with the character C<~> then the tilde may be expanded "
18593 "as a home directory path (either C<~> for the current user's home directory, "
18594 "or C<~user> for another user)."
18595 msgstr ""
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:817
18599 msgid ""
18600 "Note that home directory expansion happens for users known I<on the host>, "
18601 "not in the guest filesystem."
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../fish/guestfish.pod:820
18606 msgid ""
18607 "To use a literal argument which begins with a tilde, you have to quote it, "
18608 "eg:"
18609 msgstr ""
18610
18611 #. type: verbatim
18612 #: ../fish/guestfish.pod:823
18613 #, no-wrap
18614 msgid ""
18615 " echo \"~\"\n"
18616 "\n"
18617 msgstr ""
18618
18619 #. type: =head2
18620 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18621 msgid "ENCRYPTED DISKS"
18622 msgstr ""
18623
18624 #. type: textblock
18625 #: ../fish/guestfish.pod:827
18626 msgid ""
18627 "Libguestfs has some support for Linux guests encrypted according to the "
18628 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18629 "disk encryption systems used by modern Linux guests.  Currently only "
18630 "LVM-on-LUKS is supported."
18631 msgstr ""
18632
18633 #. type: textblock
18634 #: ../fish/guestfish.pod:832
18635 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18636 msgstr ""
18637
18638 #. type: verbatim
18639 #: ../fish/guestfish.pod:834
18640 #, no-wrap
18641 msgid ""
18642 " ><fs> vfs-type /dev/sda2\n"
18643 " crypto_LUKS\n"
18644 "\n"
18645 msgstr ""
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:837
18649 msgid ""
18650 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18651 "device called C</dev/mapper/luksdev>."
18652 msgstr ""
18653
18654 #. type: verbatim
18655 #: ../fish/guestfish.pod:840
18656 #, no-wrap
18657 msgid ""
18658 " ><fs> luks-open /dev/sda2 luksdev\n"
18659 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18660 "\n"
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/guestfish.pod:843
18665 msgid ""
18666 "Finally you have to tell LVM to scan for volume groups on the newly created "
18667 "mapper device:"
18668 msgstr ""
18669
18670 #. type: verbatim
18671 #: ../fish/guestfish.pod:846
18672 #, no-wrap
18673 msgid ""
18674 " vgscan\n"
18675 " vg-activate-all true\n"
18676 "\n"
18677 msgstr ""
18678
18679 #. type: textblock
18680 #: ../fish/guestfish.pod:849
18681 msgid "The logical volume(s) can now be mounted in the usual way."
18682 msgstr ""
18683
18684 #. type: textblock
18685 #: ../fish/guestfish.pod:851
18686 msgid ""
18687 "Before closing a LUKS device you must unmount any logical volumes on it and "
18688 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18689 "one.  Then you can close the mapper device:"
18690 msgstr ""
18691
18692 #. type: verbatim
18693 #: ../fish/guestfish.pod:855
18694 #, no-wrap
18695 msgid ""
18696 " vg-activate false /dev/VG\n"
18697 " luks-close /dev/mapper/luksdev\n"
18698 "\n"
18699 msgstr ""
18700
18701 #. type: textblock
18702 #: ../fish/guestfish.pod:860
18703 msgid ""
18704 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18705 "letters and paths (with some limitations).  The following commands are "
18706 "equivalent:"
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../fish/guestfish.pod:864
18711 #, no-wrap
18712 msgid ""
18713 " file /WINDOWS/system32/config/system.LOG\n"
18714 "\n"
18715 msgstr ""
18716
18717 #. type: verbatim
18718 #: ../fish/guestfish.pod:866
18719 #, no-wrap
18720 msgid ""
18721 " file win:\\windows\\system32\\config\\system.log\n"
18722 "\n"
18723 msgstr ""
18724
18725 #. type: verbatim
18726 #: ../fish/guestfish.pod:868
18727 #, no-wrap
18728 msgid ""
18729 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18730 "\n"
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/guestfish.pod:870
18735 msgid ""
18736 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18737 "where the drive is mounted, prepending that to the path, changing all "
18738 "backslash characters to forward slash, then resolving the result using "
18739 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
18740 "then the parameter might be rewritten like this:"
18741 msgstr ""
18742
18743 #. type: verbatim
18744 #: ../fish/guestfish.pod:876
18745 #, no-wrap
18746 msgid ""
18747 " win:e:\\foo\\bar => /e/FOO/bar\n"
18748 "\n"
18749 msgstr ""
18750
18751 #. type: textblock
18752 #: ../fish/guestfish.pod:878
18753 msgid "This only works in argument positions that expect a path."
18754 msgstr ""
18755
18756 #. type: =head1
18757 #: ../fish/guestfish.pod:880
18758 msgid "UPLOADING AND DOWNLOADING FILES"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:882
18763 msgid ""
18764 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18765 "others which upload from or download to a local file, you can use the "
18766 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18767 msgstr ""
18768
18769 #. type: verbatim
18770 #: ../fish/guestfish.pod:886
18771 #, no-wrap
18772 msgid ""
18773 " upload - /foo\n"
18774 "\n"
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fish/guestfish.pod:888
18779 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
18780 msgstr ""
18781
18782 #. type: verbatim
18783 #: ../fish/guestfish.pod:891
18784 #, no-wrap
18785 msgid ""
18786 " tar-out /etc - | tar tf -\n"
18787 "\n"
18788 msgstr ""
18789
18790 #. type: textblock
18791 #: ../fish/guestfish.pod:893
18792 msgid ""
18793 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18794 "command (see L</PIPES>)."
18795 msgstr ""
18796
18797 #. type: textblock
18798 #: ../fish/guestfish.pod:896
18799 msgid ""
18800 "When using C<-> to read from stdin, the input is read up to the end of "
18801 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18802 "some arbitrary end marker:"
18803 msgstr ""
18804
18805 #. type: verbatim
18806 #: ../fish/guestfish.pod:900
18807 #, no-wrap
18808 msgid ""
18809 " upload -<<END /foo\n"
18810 " input line 1\n"
18811 " input line 2\n"
18812 " input line 3\n"
18813 " END\n"
18814 "\n"
18815 msgstr ""
18816
18817 #. type: textblock
18818 #: ../fish/guestfish.pod:906
18819 msgid ""
18820 "Any string of characters can be used instead of C<END>.  The end marker must "
18821 "appear on a line of its own, without any preceeding or following characters "
18822 "(not even spaces)."
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:910
18827 msgid ""
18828 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18829 "upload local files (so-called \"FileIn\" parameters in the generator)."
18830 msgstr ""
18831
18832 #. type: =head1
18833 #: ../fish/guestfish.pod:913
18834 msgid "EXIT ON ERROR BEHAVIOUR"
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/guestfish.pod:915
18839 msgid ""
18840 "By default, guestfish will ignore any errors when in interactive mode "
18841 "(ie. taking commands from a human over a tty), and will exit on the first "
18842 "error in non-interactive mode (scripts, commands given on the command line)."
18843 msgstr ""
18844
18845 #. type: textblock
18846 #: ../fish/guestfish.pod:920
18847 msgid ""
18848 "If you prefix a command with a I<-> character, then that command will not "
18849 "cause guestfish to exit, even if that (one) command returns an error."
18850 msgstr ""
18851
18852 #. type: =head1
18853 #: ../fish/guestfish.pod:924
18854 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../fish/guestfish.pod:926
18859 msgid ""
18860 "Guestfish can be remote-controlled over a socket.  This is useful "
18861 "particularly in shell scripts where you want to make several different "
18862 "changes to a filesystem, but you don't want the overhead of starting up a "
18863 "guestfish process each time."
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:931
18868 msgid "Start a guestfish server process using:"
18869 msgstr ""
18870
18871 #. type: verbatim
18872 #: ../fish/guestfish.pod:933
18873 #, no-wrap
18874 msgid ""
18875 " eval \"`guestfish --listen`\"\n"
18876 "\n"
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/guestfish.pod:935
18881 msgid "and then send it commands by doing:"
18882 msgstr ""
18883
18884 #. type: verbatim
18885 #: ../fish/guestfish.pod:937
18886 #, no-wrap
18887 msgid ""
18888 " guestfish --remote cmd [...]\n"
18889 "\n"
18890 msgstr ""
18891
18892 #. type: textblock
18893 #: ../fish/guestfish.pod:939
18894 msgid "To cause the server to exit, send it the exit command:"
18895 msgstr ""
18896
18897 #. type: textblock
18898 #: ../fish/guestfish.pod:943
18899 msgid ""
18900 "Note that the server will normally exit if there is an error in a command.  "
18901 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18902 "BEHAVIOUR>."
18903 msgstr ""
18904
18905 #. type: =head2
18906 #: ../fish/guestfish.pod:947
18907 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18908 msgstr ""
18909
18910 #. type: textblock
18911 #: ../fish/guestfish.pod:949
18912 msgid ""
18913 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18914 "is how the I<--remote> option knows where to send the commands.  You can "
18915 "have several guestfish listener processes running using:"
18916 msgstr ""
18917
18918 #. type: verbatim
18919 #: ../fish/guestfish.pod:953
18920 #, no-wrap
18921 msgid ""
18922 " eval \"`guestfish --listen`\"\n"
18923 " pid1=$GUESTFISH_PID\n"
18924 " eval \"`guestfish --listen`\"\n"
18925 " pid2=$GUESTFISH_PID\n"
18926 " ...\n"
18927 " guestfish --remote=$pid1 cmd\n"
18928 " guestfish --remote=$pid2 cmd\n"
18929 "\n"
18930 msgstr ""
18931
18932 #. type: =head2
18933 #: ../fish/guestfish.pod:961
18934 msgid "REMOTE CONTROL AND CSH"
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:963
18939 msgid ""
18940 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18941 "option:"
18942 msgstr ""
18943
18944 #. type: verbatim
18945 #: ../fish/guestfish.pod:966
18946 #, no-wrap
18947 msgid ""
18948 " eval \"`guestfish --listen --csh`\"\n"
18949 "\n"
18950 msgstr ""
18951
18952 #. type: =head2
18953 #: ../fish/guestfish.pod:968
18954 msgid "REMOTE CONTROL DETAILS"
18955 msgstr ""
18956
18957 #. type: textblock
18958 #: ../fish/guestfish.pod:970
18959 msgid ""
18960 "Remote control happens over a Unix domain socket called "
18961 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
18962 "of the process, and C<$PID> is the process ID of the server."
18963 msgstr ""
18964
18965 #. type: textblock
18966 #: ../fish/guestfish.pod:974
18967 msgid "Guestfish client and server versions must match exactly."
18968 msgstr ""
18969
18970 #. type: =head2
18971 #: ../fish/guestfish.pod:976
18972 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
18973 msgstr ""
18974
18975 #. type: textblock
18976 #: ../fish/guestfish.pod:978
18977 msgid ""
18978 "From Bash, you can use the following code which creates a guestfish "
18979 "instance, correctly quotes the command line, handles failure to start, and "
18980 "cleans up guestfish when the script exits:"
18981 msgstr ""
18982
18983 #. type: verbatim
18984 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
18985 #, no-wrap
18986 msgid ""
18987 " #!/bin/bash -\n"
18988 " \n"
18989 msgstr ""
18990
18991 #. type: verbatim
18992 #: ../fish/guestfish.pod:986
18993 #, no-wrap
18994 msgid ""
18995 " guestfish[0]=\"guestfish\"\n"
18996 " guestfish[1]=\"--listen\"\n"
18997 " guestfish[2]=\"--ro\"\n"
18998 " guestfish[3]=\"-a\"\n"
18999 " guestfish[4]=\"disk.img\"\n"
19000 " \n"
19001 msgstr ""
19002
19003 #. type: verbatim
19004 #: ../fish/guestfish.pod:992
19005 #, no-wrap
19006 msgid ""
19007 " GUESTFISH_PID=\n"
19008 " eval $(\"${guestfish[@]}\")\n"
19009 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
19010 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
19011 "     exit 1\n"
19012 " fi\n"
19013 " \n"
19014 msgstr ""
19015
19016 #. type: verbatim
19017 #: ../fish/guestfish.pod:999
19018 #, no-wrap
19019 msgid ""
19020 " kill_guestfish ()\n"
19021 " {\n"
19022 "     kill $GUESTFISH_PID >/dev/null 2>&1 ||:\n"
19023 " }\n"
19024 " trap kill_guestfish EXIT\n"
19025 " \n"
19026 msgstr ""
19027
19028 #. type: verbatim
19029 #: ../fish/guestfish.pod:1005
19030 #, no-wrap
19031 msgid ""
19032 " guestfish --remote run\n"
19033 " # etc.\n"
19034 "\n"
19035 msgstr ""
19036
19037 #. type: =head2
19038 #: ../fish/guestfish.pod:1008
19039 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19040 msgstr ""
19041
19042 #. type: textblock
19043 #: ../fish/guestfish.pod:1010
19044 msgid ""
19045 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19046 "context hangs, ie. don't do (note the backquotes):"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fish/guestfish.pod:1013
19051 #, no-wrap
19052 msgid ""
19053 " a=`guestfish --remote run`\n"
19054 "\n"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish.pod:1015
19059 msgid ""
19060 "Since the C<run> command produces no output on stdout, this is not useful "
19061 "anyway.  For further information see "
19062 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
19063 msgstr ""
19064
19065 #. type: =head1
19066 #: ../fish/guestfish.pod:1019
19067 msgid "PREPARED DISK IMAGES"
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fish/guestfish.pod:1021
19072 msgid ""
19073 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19074 "preformatted disk images that guestfish can make for you to save typing.  "
19075 "This is particularly useful for testing purposes.  This option is used "
19076 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19077 "can be mixed with I<-a>)."
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:1027
19082 msgid ""
19083 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19084 "the second and so on.  Existing files in the current directory are "
19085 "I<overwritten>."
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fish/guestfish.pod:1031
19090 msgid ""
19091 "The type briefly describes how the disk should be sized, partitioned, how "
19092 "filesystem(s) should be created, and how content should be added.  "
19093 "Optionally the type can be followed by extra parameters, separated by C<:> "
19094 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
19095 "sparsely-allocated disk, containing a single partition, with the partition "
19096 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
19097 "on a 1GB disk instead."
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fish/guestfish.pod:1039
19102 msgid "To list the available types and any extra parameters they take, run:"
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:1043
19107 msgid ""
19108 "Note that the prepared filesystem is not mounted.  You would usually have to "
19109 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:1047
19114 msgid ""
19115 "If any I<-N> or I<--new> options are given, the guest is automatically "
19116 "launched."
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish.pod:1052
19121 msgid "Create a 100MB disk with an ext4-formatted partition:"
19122 msgstr ""
19123
19124 #. type: verbatim
19125 #: ../fish/guestfish.pod:1054
19126 #, no-wrap
19127 msgid ""
19128 " guestfish -N fs:ext4\n"
19129 "\n"
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../fish/guestfish.pod:1056
19134 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19135 msgstr ""
19136
19137 #. type: verbatim
19138 #: ../fish/guestfish.pod:1058
19139 #, no-wrap
19140 msgid ""
19141 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19142 "\n"
19143 msgstr ""
19144
19145 #. type: textblock
19146 #: ../fish/guestfish.pod:1060
19147 msgid "Create a blank 200MB disk:"
19148 msgstr ""
19149
19150 #. type: verbatim
19151 #: ../fish/guestfish.pod:1062
19152 #, no-wrap
19153 msgid ""
19154 " guestfish -N disk:200M\n"
19155 "\n"
19156 msgstr ""
19157
19158 #. type: =head1
19159 #: ../fish/guestfish.pod:1064
19160 msgid "PROGRESS BARS"
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:1066
19165 msgid ""
19166 "Some (not all) long-running commands send progress notification messages as "
19167 "they are running.  Guestfish turns these messages into progress bars."
19168 msgstr ""
19169
19170 #. type: textblock
19171 #: ../fish/guestfish.pod:1070
19172 msgid ""
19173 "When a command that supports progress bars takes longer than two seconds to "
19174 "run, and if progress bars are enabled, then you will see one appearing below "
19175 "the command:"
19176 msgstr ""
19177
19178 #. type: verbatim
19179 #: ../fish/guestfish.pod:1074
19180 #, no-wrap
19181 msgid ""
19182 " ><fs> copy-size /large-file /another-file 2048M\n"
19183 " / 10% [#####-----------------------------------------] 00:30\n"
19184 "\n"
19185 msgstr ""
19186
19187 #. type: textblock
19188 #: ../fish/guestfish.pod:1077
19189 msgid ""
19190 "The spinner on the left hand side moves round once for every progress "
19191 "notification received from the backend.  This is a (reasonably) golden "
19192 "assurance that the command is \"doing something\" even if the progress bar "
19193 "is not moving, because the command is able to send the progress "
19194 "notifications.  When the bar reaches 100% and the command finishes, the "
19195 "spinner disappears."
19196 msgstr ""
19197
19198 #. type: textblock
19199 #: ../fish/guestfish.pod:1084
19200 msgid ""
19201 "Progress bars are enabled by default when guestfish is used interactively.  "
19202 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19203 "and you can disable them completely using I<--no-progress-bars>."
19204 msgstr ""
19205
19206 #. type: =head1
19207 #: ../fish/guestfish.pod:1089
19208 msgid "GUESTFISH COMMANDS"
19209 msgstr ""
19210
19211 #. type: textblock
19212 #: ../fish/guestfish.pod:1091
19213 msgid ""
19214 "The commands in this section are guestfish convenience commands, in other "
19215 "words, they are not part of the L<guestfs(3)> API."
19216 msgstr ""
19217
19218 #. type: =head2
19219 #: ../fish/guestfish.pod:1094
19220 msgid "help"
19221 msgstr ""
19222
19223 #. type: verbatim
19224 #: ../fish/guestfish.pod:1096
19225 #, no-wrap
19226 msgid ""
19227 " help\n"
19228 " help cmd\n"
19229 "\n"
19230 msgstr ""
19231
19232 #. type: textblock
19233 #: ../fish/guestfish.pod:1099
19234 msgid "Without any parameter, this provides general help."
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fish/guestfish.pod:1101
19239 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19240 msgstr ""
19241
19242 #. type: =head2
19243 #: ../fish/guestfish.pod:1103
19244 msgid "quit | exit"
19245 msgstr ""
19246
19247 #. type: textblock
19248 #: ../fish/guestfish.pod:1105
19249 msgid "This exits guestfish.  You can also use C<^D> key."
19250 msgstr ""
19251
19252 #. type: textblock
19253 #: ../fish/guestfish.pod:1107
19254 msgid "@FISH_COMMANDS@"
19255 msgstr ""
19256
19257 #. type: =head1
19258 #: ../fish/guestfish.pod:1109
19259 msgid "COMMANDS"
19260 msgstr ""
19261
19262 #. type: textblock
19263 #: ../fish/guestfish.pod:1111 ../src/guestfs.pod:1505
19264 msgid "@ACTIONS@"
19265 msgstr ""
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:1115
19269 msgid ""
19270 "guestfish returns 0 if the commands completed without error, or 1 if there "
19271 "was an error."
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fish/guestfish.pod:1122
19276 msgid "EDITOR"
19277 msgstr ""
19278
19279 #. type: textblock
19280 #: ../fish/guestfish.pod:1124
19281 msgid ""
19282 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19283 "C<vi>."
19284 msgstr ""
19285
19286 #. type: =item
19287 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3198
19288 msgid "FEBOOTSTRAP_KERNEL"
19289 msgstr ""
19290
19291 #. type: =item
19292 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3200
19293 msgid "FEBOOTSTRAP_MODULES"
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3202
19298 msgid ""
19299 "These two environment variables allow the kernel that libguestfs uses in the "
19300 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19301 "most recent host kernel is chosen.  For more information about kernel "
19302 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19303 "available in febootstrap E<ge> 3.8."
19304 msgstr ""
19305
19306 #. type: =item
19307 #: ../fish/guestfish.pod:1137
19308 msgid "GUESTFISH_DISPLAY_IMAGE"
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:1139
19313 msgid ""
19314 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19315 "If not set, it uses L<display(1)>."
19316 msgstr ""
19317
19318 #. type: =item
19319 #: ../fish/guestfish.pod:1142
19320 msgid "GUESTFISH_PID"
19321 msgstr ""
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:1144
19325 msgid ""
19326 "Used with the I<--remote> option to specify the remote guestfish process to "
19327 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19328 msgstr ""
19329
19330 #. type: =item
19331 #: ../fish/guestfish.pod:1148
19332 msgid "HEXEDITOR"
19333 msgstr ""
19334
19335 #. type: textblock
19336 #: ../fish/guestfish.pod:1150
19337 msgid ""
19338 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19339 "not specified, the external L<hexedit(1)> program is used."
19340 msgstr ""
19341
19342 #. type: =item
19343 #: ../fish/guestfish.pod:1154
19344 msgid "HOME"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:1156
19349 msgid ""
19350 "If compiled with GNU readline support, various files in the home directory "
19351 "can be used.  See L</FILES>."
19352 msgstr ""
19353
19354 #. type: =item
19355 #: ../fish/guestfish.pod:1159 ../src/guestfs.pod:3208
19356 msgid "LIBGUESTFS_APPEND"
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:1161 ../src/guestfs.pod:3210
19361 msgid "Pass additional options to the guest kernel."
19362 msgstr ""
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3212
19366 msgid "LIBGUESTFS_DEBUG"
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:1165
19371 msgid ""
19372 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19373 "effect as using the B<-v> option."
19374 msgstr ""
19375
19376 #. type: =item
19377 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3217
19378 msgid "LIBGUESTFS_MEMSIZE"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish.pod:1170 ../src/guestfs.pod:3219
19383 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
19384 msgstr ""
19385
19386 #. type: verbatim
19387 #: ../fish/guestfish.pod:1173 ../src/guestfs.pod:3222
19388 #, no-wrap
19389 msgid ""
19390 " LIBGUESTFS_MEMSIZE=700\n"
19391 "\n"
19392 msgstr ""
19393
19394 #. type: =item
19395 #: ../fish/guestfish.pod:1175 ../src/guestfs.pod:3224
19396 msgid "LIBGUESTFS_PATH"
19397 msgstr ""
19398
19399 #. type: textblock
19400 #: ../fish/guestfish.pod:1177
19401 msgid ""
19402 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19403 "the discussion of paths in L<guestfs(3)>."
19404 msgstr ""
19405
19406 #. type: =item
19407 #: ../fish/guestfish.pod:1180 ../src/guestfs.pod:3229
19408 msgid "LIBGUESTFS_QEMU"
19409 msgstr ""
19410
19411 #. type: textblock
19412 #: ../fish/guestfish.pod:1182 ../src/guestfs.pod:3231
19413 msgid ""
19414 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19415 "which was found at compile time by the configure script is used."
19416 msgstr ""
19417
19418 #. type: =item
19419 #: ../fish/guestfish.pod:1186 ../src/guestfs.pod:3237
19420 msgid "LIBGUESTFS_TRACE"
19421 msgstr ""
19422
19423 #. type: textblock
19424 #: ../fish/guestfish.pod:1188
19425 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19426 msgstr ""
19427
19428 #. type: =item
19429 #: ../fish/guestfish.pod:1190
19430 msgid "PAGER"
19431 msgstr ""
19432
19433 #. type: textblock
19434 #: ../fish/guestfish.pod:1192
19435 msgid ""
19436 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19437 "C<more>."
19438 msgstr ""
19439
19440 #. type: =item
19441 #: ../fish/guestfish.pod:1195 ../sparsify/virt-sparsify.pod:236 ../src/guestfs.pod:3242
19442 msgid "TMPDIR"
19443 msgstr ""
19444
19445 #. type: textblock
19446 #: ../fish/guestfish.pod:1197 ../src/guestfs.pod:3244
19447 msgid ""
19448 "Location of temporary directory, defaults to C</tmp> except for the cached "
19449 "supermin appliance which defaults to C</var/tmp>."
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../fish/guestfish.pod:1200 ../src/guestfs.pod:3247
19454 msgid ""
19455 "If libguestfs was compiled to use the supermin appliance then the real "
19456 "appliance is cached in this directory, shared between all handles belonging "
19457 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19458 "use in case C</var/tmp> is not large enough."
19459 msgstr ""
19460
19461 #. type: =head1
19462 #: ../fish/guestfish.pod:1208 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:273
19463 msgid "FILES"
19464 msgstr ""
19465
19466 #. type: =item
19467 #: ../fish/guestfish.pod:1212 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:277
19468 msgid "$HOME/.libguestfs-tools.rc"
19469 msgstr ""
19470
19471 #. type: =item
19472 #: ../fish/guestfish.pod:1214 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:279
19473 msgid "/etc/libguestfs-tools.conf"
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../fish/guestfish.pod:1216 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:281
19478 msgid ""
19479 "This configuration file controls the default read-only or read-write mode "
19480 "(I<--ro> or I<--rw>)."
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fish/guestfish.pod:1219
19485 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19486 msgstr ""
19487
19488 #. type: =item
19489 #: ../fish/guestfish.pod:1221
19490 msgid "$HOME/.guestfish"
19491 msgstr ""
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:1223
19495 msgid ""
19496 "If compiled with GNU readline support, then the command history is saved in "
19497 "this file."
19498 msgstr ""
19499
19500 #. type: =item
19501 #: ../fish/guestfish.pod:1226
19502 msgid "$HOME/.inputrc"
19503 msgstr ""
19504
19505 #. type: =item
19506 #: ../fish/guestfish.pod:1228
19507 msgid "/etc/inputrc"
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../fish/guestfish.pod:1230
19512 msgid ""
19513 "If compiled with GNU readline support, then these files can be used to "
19514 "configure readline.  For further information, please see "
19515 "L<readline(3)/INITIALIZATION FILE>."
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish.pod:1234
19520 msgid "To write rules which only apply to guestfish, use:"
19521 msgstr ""
19522
19523 #. type: verbatim
19524 #: ../fish/guestfish.pod:1236
19525 #, no-wrap
19526 msgid ""
19527 " $if guestfish\n"
19528 " ...\n"
19529 " $endif\n"
19530 "\n"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:1240
19535 msgid ""
19536 "Variables that you can set in inputrc that change the behaviour of guestfish "
19537 "in useful ways include:"
19538 msgstr ""
19539
19540 #. type: =item
19541 #: ../fish/guestfish.pod:1245
19542 msgid "completion-ignore-case (default: on)"
19543 msgstr ""
19544
19545 #. type: textblock
19546 #: ../fish/guestfish.pod:1247
19547 msgid ""
19548 "By default, guestfish will ignore case when tab-completing paths on the "
19549 "disk.  Use:"
19550 msgstr ""
19551
19552 #. type: verbatim
19553 #: ../fish/guestfish.pod:1250
19554 #, no-wrap
19555 msgid ""
19556 " set completion-ignore-case off\n"
19557 "\n"
19558 msgstr ""
19559
19560 #. type: textblock
19561 #: ../fish/guestfish.pod:1252
19562 msgid "to make guestfish case sensitive."
19563 msgstr ""
19564
19565 #. type: =item
19566 #: ../fish/guestfish.pod:1256
19567 msgid "test1.img"
19568 msgstr ""
19569
19570 #. type: =item
19571 #: ../fish/guestfish.pod:1258
19572 msgid "test2.img (etc)"
19573 msgstr ""
19574
19575 #. type: textblock
19576 #: ../fish/guestfish.pod:1260
19577 msgid ""
19578 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19579 "will be created in the file C<test1.img> in the current directory.  The "
19580 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19581 "the same name will be overwritten."
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../fish/guestfish.pod:1269
19586 msgid ""
19587 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, "
19588 "L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, "
19589 "L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, "
19590 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
19591 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)>, "
19592 "L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
19593 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
19594 "L<febootstrap-supermin-helper(8)>."
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../fish/guestfish.pod:1301 ../src/guestfs.pod:3339 ../test-tool/libguestfs-test-tool.pod:112
19599 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19600 msgstr ""
19601
19602 #. type: textblock
19603 #: ../fish/virt-copy-in.pod:5
19604 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
19605 msgstr ""
19606
19607 #. type: verbatim
19608 #: ../fish/virt-copy-in.pod:9
19609 #, no-wrap
19610 msgid ""
19611 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19612 "\n"
19613 msgstr ""
19614
19615 #. type: verbatim
19616 #: ../fish/virt-copy-in.pod:11
19617 #, no-wrap
19618 msgid ""
19619 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19620 "\n"
19621 msgstr ""
19622
19623 #. type: textblock
19624 #: ../fish/virt-copy-in.pod:15
19625 msgid ""
19626 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19627 "causing disk corruption.  The virtual machine must be shut down before you "
19628 "use this command."
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../fish/virt-copy-in.pod:21
19633 msgid ""
19634 "C<virt-copy-in> copies files and directories from the local disk into a "
19635 "virtual machine disk image or named libvirt domain."
19636 msgstr ""
19637
19638 #. type: textblock
19639 #: ../fish/virt-copy-in.pod:24
19640 msgid ""
19641 "You can give one of more filenames and directories on the command line.  "
19642 "Directories are copied in recursively.  The final parameter must be the "
19643 "destination directory in the disk image which must be an absolute path "
19644 "starting with a C</> character."
19645 msgstr ""
19646
19647 #. type: verbatim
19648 #: ../fish/virt-copy-in.pod:33
19649 #, no-wrap
19650 msgid ""
19651 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19652 "\n"
19653 msgstr ""
19654
19655 #. type: textblock
19656 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19657 msgid "Upload a home directory to a guest:"
19658 msgstr ""
19659
19660 #. type: verbatim
19661 #: ../fish/virt-copy-in.pod:37
19662 #, no-wrap
19663 msgid ""
19664 " virt-copy-in -d MyGuest skel /home\n"
19665 "\n"
19666 msgstr ""
19667
19668 #. type: =head1
19669 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19670 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19671 msgstr ""
19672
19673 #. type: textblock
19674 #: ../fish/virt-copy-in.pod:41
19675 msgid ""
19676 "This command is just a simple shell script wrapper around the "
19677 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
19678 "trivial copy, you are probably better off using guestfish directly."
19679 msgstr ""
19680
19681 #. type: textblock
19682 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19683 msgid ""
19684 "Since the shell script just passes options straight to guestfish, read "
19685 "L<guestfish(1)> to see the full list of options."
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../fish/virt-copy-in.pod:52
19690 msgid ""
19691 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19692 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19693 msgstr ""
19694
19695 #. type: textblock
19696 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19697 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19698 msgstr ""
19699
19700 #. type: textblock
19701 #: ../fish/virt-copy-out.pod:5
19702 msgid ""
19703 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19704 "image."
19705 msgstr ""
19706
19707 #. type: verbatim
19708 #: ../fish/virt-copy-out.pod:9
19709 #, no-wrap
19710 msgid ""
19711 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19712 "\n"
19713 msgstr ""
19714
19715 #. type: verbatim
19716 #: ../fish/virt-copy-out.pod:11
19717 #, no-wrap
19718 msgid ""
19719 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19720 "\n"
19721 msgstr ""
19722
19723 #. type: textblock
19724 #: ../fish/virt-copy-out.pod:15
19725 msgid ""
19726 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19727 "image or named libvirt domain."
19728 msgstr ""
19729
19730 #. type: textblock
19731 #: ../fish/virt-copy-out.pod:18
19732 msgid ""
19733 "You can give one of more filenames and directories on the command line.  "
19734 "Directories are copied out recursively."
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../fish/virt-copy-out.pod:23
19739 msgid "Download the home directories from a virtual machine:"
19740 msgstr ""
19741
19742 #. type: verbatim
19743 #: ../fish/virt-copy-out.pod:25
19744 #, no-wrap
19745 msgid ""
19746 " mkdir homes\n"
19747 " virt-copy-out -d MyGuest /home homes\n"
19748 "\n"
19749 msgstr ""
19750
19751 #. type: textblock
19752 #: ../fish/virt-copy-out.pod:30
19753 msgid ""
19754 "This command is just a simple shell script wrapper around the "
19755 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
19756 "trivial copy, you are probably better off using guestfish directly."
19757 msgstr ""
19758
19759 #. type: textblock
19760 #: ../fish/virt-copy-out.pod:41
19761 msgid ""
19762 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
19763 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19764 msgstr ""
19765
19766 #. type: textblock
19767 #: ../fish/virt-tar-in.pod:5
19768 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19769 msgstr ""
19770
19771 #. type: verbatim
19772 #: ../fish/virt-tar-in.pod:9
19773 #, no-wrap
19774 msgid ""
19775 " virt-tar-in -a disk.img data.tar /destination\n"
19776 "\n"
19777 msgstr ""
19778
19779 #. type: verbatim
19780 #: ../fish/virt-tar-in.pod:11
19781 #, no-wrap
19782 msgid ""
19783 " virt-tar-in -d domain data.tar /destination\n"
19784 "\n"
19785 msgstr ""
19786
19787 #. type: verbatim
19788 #: ../fish/virt-tar-in.pod:13
19789 #, no-wrap
19790 msgid ""
19791 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19792 "\n"
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../fish/virt-tar-in.pod:17
19797 msgid ""
19798 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19799 "causing disk corruption.  The virtual machine must be shut down before you "
19800 "use this command."
19801 msgstr ""
19802
19803 #. type: textblock
19804 #: ../fish/virt-tar-in.pod:23
19805 msgid ""
19806 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19807 "image or named libvirt domain."
19808 msgstr ""
19809
19810 #. type: textblock
19811 #: ../fish/virt-tar-in.pod:26
19812 msgid ""
19813 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19814 "standard input.  The second parameter is the absolute target directory to "
19815 "unpack into."
19816 msgstr ""
19817
19818 #. type: verbatim
19819 #: ../fish/virt-tar-in.pod:34
19820 #, no-wrap
19821 msgid ""
19822 " virt-tar-in -d MyGuest homes.tar /home\n"
19823 "\n"
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../fish/virt-tar-in.pod:38
19828 msgid ""
19829 "This command is just a simple shell script wrapper around the "
19830 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
19831 "copy, you are probably better off using guestfish directly."
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/virt-tar-in.pod:49
19836 msgid ""
19837 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19838 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
19839 "L<http://libguestfs.org/>."
19840 msgstr ""
19841
19842 #. type: textblock
19843 #: ../fish/virt-tar-out.pod:5
19844 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19845 msgstr ""
19846
19847 #. type: verbatim
19848 #: ../fish/virt-tar-out.pod:9
19849 #, no-wrap
19850 msgid ""
19851 " virt-tar-out -a disk.img /dir files.tar\n"
19852 "\n"
19853 msgstr ""
19854
19855 #. type: verbatim
19856 #: ../fish/virt-tar-out.pod:11
19857 #, no-wrap
19858 msgid ""
19859 " virt-tar-out -d domain /dir files.tar\n"
19860 "\n"
19861 msgstr ""
19862
19863 #. type: verbatim
19864 #: ../fish/virt-tar-out.pod:13
19865 #, no-wrap
19866 msgid ""
19867 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19868 "\n"
19869 msgstr ""
19870
19871 #. type: textblock
19872 #: ../fish/virt-tar-out.pod:17
19873 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../fish/virt-tar-out.pod:20
19878 msgid ""
19879 "The first parameter is the absolute path of the virtual machine directory.  "
19880 "The second parameter is the tar file to write.  Use C<-> to write to "
19881 "standard output."
19882 msgstr ""
19883
19884 #. type: textblock
19885 #: ../fish/virt-tar-out.pod:26
19886 msgid "Download the home directories from a guest:"
19887 msgstr ""
19888
19889 #. type: verbatim
19890 #: ../fish/virt-tar-out.pod:28
19891 #, no-wrap
19892 msgid ""
19893 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19894 "\n"
19895 msgstr ""
19896
19897 #. type: textblock
19898 #: ../fish/virt-tar-out.pod:32
19899 msgid ""
19900 "This command is just a simple shell script wrapper around the "
19901 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
19902 "trivial copy, you are probably better off using guestfish directly."
19903 msgstr ""
19904
19905 #. type: textblock
19906 #: ../fish/virt-tar-out.pod:43
19907 msgid ""
19908 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19909 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19910 msgstr ""
19911
19912 #. type: textblock
19913 #: ../fuse/guestmount.pod:5
19914 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19915 msgstr ""
19916
19917 #. type: verbatim
19918 #: ../fuse/guestmount.pod:9
19919 #, no-wrap
19920 msgid ""
19921 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19922 "\n"
19923 msgstr ""
19924
19925 #. type: verbatim
19926 #: ../fuse/guestmount.pod:11
19927 #, no-wrap
19928 msgid ""
19929 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19930 "\n"
19931 msgstr ""
19932
19933 #. type: verbatim
19934 #: ../fuse/guestmount.pod:13
19935 #, no-wrap
19936 msgid ""
19937 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19938 "\n"
19939 msgstr ""
19940
19941 #. type: textblock
19942 #: ../fuse/guestmount.pod:17
19943 msgid ""
19944 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19945 "machines.  If you do this, you risk disk corruption in the VM."
19946 msgstr ""
19947
19948 #. type: textblock
19949 #: ../fuse/guestmount.pod:22
19950 msgid ""
19951 "The guestmount program can be used to mount virtual machine filesystems and "
19952 "other disk images on the host.  It uses libguestfs for access to the guest "
19953 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19954 "a mountable device."
19955 msgstr ""
19956
19957 #. type: textblock
19958 #: ../fuse/guestmount.pod:27
19959 msgid ""
19960 "Along with other options, you have to give at least one device (I<-a> "
19961 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
19962 "option) or use the I<-i> inspection option.  How this works is better "
19963 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
19964 "below."
19965 msgstr ""
19966
19967 #. type: textblock
19968 #: ../fuse/guestmount.pod:33
19969 msgid ""
19970 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
19971 "by you, and the filesystem will not be visible to any other users unless you "
19972 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
19973 "the filesystem, use the C<fusermount -u> command."
19974 msgstr ""
19975
19976 #. type: textblock
19977 #: ../fuse/guestmount.pod:41
19978 msgid ""
19979 "For a typical Windows guest which has its main filesystem on the first "
19980 "partition:"
19981 msgstr ""
19982
19983 #. type: verbatim
19984 #: ../fuse/guestmount.pod:44
19985 #, no-wrap
19986 msgid ""
19987 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
19988 "\n"
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fuse/guestmount.pod:46
19993 msgid ""
19994 "For a typical Linux guest which has a /boot filesystem on the first "
19995 "partition, and the root filesystem on a logical volume:"
19996 msgstr ""
19997
19998 #. type: verbatim
19999 #: ../fuse/guestmount.pod:49
20000 #, no-wrap
20001 msgid ""
20002 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20003 "\n"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fuse/guestmount.pod:51
20008 msgid "To get libguestfs to detect guest mountpoints for you:"
20009 msgstr ""
20010
20011 #. type: verbatim
20012 #: ../fuse/guestmount.pod:53
20013 #, no-wrap
20014 msgid ""
20015 " guestmount -a guest.img -i --ro /mnt\n"
20016 "\n"
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fuse/guestmount.pod:55
20021 msgid "For a libvirt guest called \"Guest\" you could do:"
20022 msgstr ""
20023
20024 #. type: verbatim
20025 #: ../fuse/guestmount.pod:57
20026 #, no-wrap
20027 msgid ""
20028 " guestmount -d Guest -i --ro /mnt\n"
20029 "\n"
20030 msgstr ""
20031
20032 #. type: textblock
20033 #: ../fuse/guestmount.pod:59
20034 msgid ""
20035 "If you don't know what filesystems are contained in a guest or disk image, "
20036 "use L<virt-filesystems(1)> first:"
20037 msgstr ""
20038
20039 #. type: verbatim
20040 #: ../fuse/guestmount.pod:62
20041 #, no-wrap
20042 msgid ""
20043 " virt-filesystems MyGuest\n"
20044 "\n"
20045 msgstr ""
20046
20047 #. type: textblock
20048 #: ../fuse/guestmount.pod:64
20049 msgid ""
20050 "If you want to trace the libguestfs calls but without excessive debugging "
20051 "information, we recommend:"
20052 msgstr ""
20053
20054 #. type: verbatim
20055 #: ../fuse/guestmount.pod:67
20056 #, no-wrap
20057 msgid ""
20058 " guestmount [...] --trace /mnt\n"
20059 "\n"
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fuse/guestmount.pod:69
20064 msgid "If you want to debug the program, we recommend:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fuse/guestmount.pod:71
20069 #, no-wrap
20070 msgid ""
20071 " guestmount [...] --trace --verbose /mnt\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: =head1
20076 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:544
20077 msgid "NOTES"
20078 msgstr ""
20079
20080 #. type: =head2
20081 #: ../fuse/guestmount.pod:75
20082 msgid "Other users cannot see the filesystem by default"
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../fuse/guestmount.pod:77
20087 msgid ""
20088 "If you mount a filesystem as one user (eg. root), then other users will not "
20089 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20090 "option when mounting:"
20091 msgstr ""
20092
20093 #. type: verbatim
20094 #: ../fuse/guestmount.pod:81
20095 #, no-wrap
20096 msgid ""
20097 " sudo guestmount [...] -o allow_other /mnt\n"
20098 "\n"
20099 msgstr ""
20100
20101 #. type: textblock
20102 #: ../fuse/guestmount.pod:91
20103 msgid "Add a block device or virtual machine image."
20104 msgstr ""
20105
20106 #. type: =item
20107 #: ../fuse/guestmount.pod:114
20108 msgid "B<--dir-cache-timeout N>"
20109 msgstr ""
20110
20111 #. type: textblock
20112 #: ../fuse/guestmount.pod:116
20113 msgid ""
20114 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20115 "seconds.  The readdir cache [actually, there are several semi-independent "
20116 "caches] is populated after a readdir(2) call with the stat and extended "
20117 "attributes of the files in the directory, in anticipation that they will be "
20118 "requested soon after."
20119 msgstr ""
20120
20121 #. type: textblock
20122 #: ../fuse/guestmount.pod:122
20123 msgid ""
20124 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20125 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20126 "requests, only cache existing ones."
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../fuse/guestmount.pod:142
20131 msgid ""
20132 "If you have untrusted raw-format guest disk images, you should use this "
20133 "option to specify the disk format.  This avoids a possible security problem "
20134 "with malicious guests (CVE-2010-3851).  See also "
20135 "L<guestfs(3)/guestfs_add_drive_opts>."
20136 msgstr ""
20137
20138 #. type: =item
20139 #: ../fuse/guestmount.pod:147
20140 msgid "B<--fuse-help>"
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../fuse/guestmount.pod:149
20145 msgid "Display help on special FUSE options (see I<-o> below)."
20146 msgstr ""
20147
20148 #. type: textblock
20149 #: ../fuse/guestmount.pod:153
20150 msgid "Display brief help and exit."
20151 msgstr ""
20152
20153 #. type: textblock
20154 #: ../fuse/guestmount.pod:177
20155 msgid ""
20156 "Mount the named partition or logical volume on the given mountpoint B<in the "
20157 "guest> (this has nothing to do with mountpoints in the host)."
20158 msgstr ""
20159
20160 #. type: textblock
20161 #: ../fuse/guestmount.pod:180
20162 msgid ""
20163 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20164 "something on C</>."
20165 msgstr ""
20166
20167 #. type: textblock
20168 #: ../fuse/guestmount.pod:197
20169 msgid ""
20170 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20171 "unmounted.  If you specify this option, then we don't attempt to sync the "
20172 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20173 msgstr ""
20174
20175 #. type: =item
20176 #: ../fuse/guestmount.pod:202
20177 msgid "B<-o option>"
20178 msgstr ""
20179
20180 #. type: =item
20181 #: ../fuse/guestmount.pod:204
20182 msgid "B<--option option>"
20183 msgstr ""
20184
20185 #. type: textblock
20186 #: ../fuse/guestmount.pod:206
20187 msgid "Pass extra options to FUSE."
20188 msgstr ""
20189
20190 #. type: textblock
20191 #: ../fuse/guestmount.pod:208
20192 msgid ""
20193 "To get a list of all the extra options supported by FUSE, use the command "
20194 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20195 "of them are a good idea."
20196 msgstr ""
20197
20198 #. type: verbatim
20199 #: ../fuse/guestmount.pod:212
20200 #, no-wrap
20201 msgid ""
20202 " guestmount --fuse-help\n"
20203 "\n"
20204 msgstr ""
20205
20206 #. type: textblock
20207 #: ../fuse/guestmount.pod:214
20208 msgid "Some potentially useful FUSE options:"
20209 msgstr ""
20210
20211 #. type: =item
20212 #: ../fuse/guestmount.pod:218
20213 msgid "B<-o allow_other>"
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../fuse/guestmount.pod:220
20218 msgid "Allow other users to see the filesystem."
20219 msgstr ""
20220
20221 #. type: =item
20222 #: ../fuse/guestmount.pod:222
20223 msgid "B<-o attr_timeout=N>"
20224 msgstr ""
20225
20226 #. type: textblock
20227 #: ../fuse/guestmount.pod:224
20228 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20229 msgstr ""
20230
20231 #. type: =item
20232 #: ../fuse/guestmount.pod:226
20233 msgid "B<-o kernel_cache>"
20234 msgstr ""
20235
20236 #. type: textblock
20237 #: ../fuse/guestmount.pod:228
20238 msgid ""
20239 "Allow the kernel to cache files (reduces the number of reads that have to go "
20240 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20241 "afford the extra memory usage."
20242 msgstr ""
20243
20244 #. type: =item
20245 #: ../fuse/guestmount.pod:232
20246 msgid "B<-o uid=N> B<-o gid=N>"
20247 msgstr ""
20248
20249 #. type: textblock
20250 #: ../fuse/guestmount.pod:234
20251 msgid ""
20252 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20253 "the chosen values."
20254 msgstr ""
20255
20256 #. type: textblock
20257 #: ../fuse/guestmount.pod:243
20258 msgid ""
20259 "Add devices and mount everything read-only.  Also disallow writes and make "
20260 "the disk appear read-only to FUSE."
20261 msgstr ""
20262
20263 #. type: textblock
20264 #: ../fuse/guestmount.pod:246
20265 msgid ""
20266 "This is highly recommended if you are not going to edit the guest disk.  If "
20267 "the guest is running and this option is I<not> supplied, then there is a "
20268 "strong risk of disk corruption in the guest.  We try to prevent this from "
20269 "happening, but it is not always possible."
20270 msgstr ""
20271
20272 #. type: textblock
20273 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20274 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20275 msgstr ""
20276
20277 #. type: textblock
20278 #: ../fuse/guestmount.pod:255
20279 msgid "Enable SELinux support for the guest."
20280 msgstr ""
20281
20282 #. type: textblock
20283 #: ../fuse/guestmount.pod:261
20284 msgid "Enable verbose messages from underlying libguestfs."
20285 msgstr ""
20286
20287 #. type: textblock
20288 #: ../fuse/guestmount.pod:267
20289 msgid "Display the program version and exit."
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20294 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20295 msgstr ""
20296
20297 #. type: =item
20298 #: ../fuse/guestmount.pod:280
20299 msgid "B<--trace>"
20300 msgstr ""
20301
20302 #. type: textblock
20303 #: ../fuse/guestmount.pod:282
20304 msgid "Trace libguestfs calls and entry into each FUSE function."
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../fuse/guestmount.pod:284
20309 msgid "This also stops the daemon from forking into the background."
20310 msgstr ""
20311
20312 #. type: textblock
20313 #: ../fuse/guestmount.pod:310
20314 msgid ""
20315 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20316 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
20317 "L<http://fuse.sf.net/>."
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fuse/guestmount.pod:325
20322 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20323 msgstr ""
20324
20325 #. type: textblock
20326 #: ../inspector/virt-inspector.pod:5
20327 msgid ""
20328 "virt-inspector - Display operating system version and other information "
20329 "about a virtual machine"
20330 msgstr ""
20331
20332 #. type: verbatim
20333 #: ../inspector/virt-inspector.pod:9
20334 #, no-wrap
20335 msgid ""
20336 " virt-inspector [--options] -d domname\n"
20337 "\n"
20338 msgstr ""
20339
20340 #. type: verbatim
20341 #: ../inspector/virt-inspector.pod:11
20342 #, no-wrap
20343 msgid ""
20344 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20345 "\n"
20346 msgstr ""
20347
20348 #. type: verbatim
20349 #: ../inspector/virt-inspector.pod:15
20350 #, no-wrap
20351 msgid ""
20352 " virt-inspector domname\n"
20353 "\n"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20358 #, no-wrap
20359 msgid ""
20360 " virt-inspector disk.img [disk.img ...]\n"
20361 "\n"
20362 msgstr ""
20363
20364 #. type: textblock
20365 #: ../inspector/virt-inspector.pod:21
20366 msgid ""
20367 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20368 "determine the version of the operating system and other information about "
20369 "the virtual machine."
20370 msgstr ""
20371
20372 #. type: textblock
20373 #: ../inspector/virt-inspector.pod:25
20374 msgid "Virt-inspector produces XML output for feeding into other programs."
20375 msgstr ""
20376
20377 #. type: textblock
20378 #: ../inspector/virt-inspector.pod:27
20379 msgid ""
20380 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20381 "the libvirt domain (see: C<virsh list --all>)."
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../inspector/virt-inspector.pod:30
20386 msgid ""
20387 "You can also run virt-inspector directly on disk images from a single "
20388 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20389 "has several block devices, in which case you should list several I<-a> "
20390 "options one after another, with the first corresponding to the guest's "
20391 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
20392 msgstr ""
20393
20394 #. type: textblock
20395 #: ../inspector/virt-inspector.pod:37
20396 msgid ""
20397 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20398 "keys and similar."
20399 msgstr ""
20400
20401 #. type: textblock
20402 #: ../inspector/virt-inspector.pod:40
20403 msgid ""
20404 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20405 "inspect several virtual machines, you have to run virt-inspector several "
20406 "times (for example, from a shell script for-loop)."
20407 msgstr ""
20408
20409 #. type: textblock
20410 #: ../inspector/virt-inspector.pod:45
20411 msgid ""
20412 "Because virt-inspector needs direct access to guest images, it won't "
20413 "normally work over remote libvirt connections."
20414 msgstr ""
20415
20416 #. type: textblock
20417 #: ../inspector/virt-inspector.pod:48
20418 msgid ""
20419 "All of the information available from virt-inspector is also available "
20420 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20421 "The same information can also be fetched using guestfish or via libguestfs "
20422 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20423 "WITH OTHER PROGRAMMING LANGUAGES>)."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../inspector/virt-inspector.pod:81
20428 msgid ""
20429 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20430 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20431 "at all."
20432 msgstr ""
20433
20434 #. type: textblock
20435 #: ../inspector/virt-inspector.pod:94
20436 msgid ""
20437 "When prompting for keys and passphrases, virt-inspector normally turns "
20438 "echoing off so you cannot see what you are typing.  If you are not worried "
20439 "about Tempest attacks and there is no one else in the room you can specify "
20440 "this flag to see what you are typing."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../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
20445 msgid ""
20446 "Specify the format of disk images given on the command line.  If this is "
20447 "omitted then the format is autodetected from the content of the disk image."
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../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
20452 msgid ""
20453 "If disk images are requested from libvirt, then this program asks libvirt "
20454 "for this information.  In this case, the value of the format parameter is "
20455 "ignored."
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314 ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
20460 msgid ""
20461 "If working with untrusted raw-format guest disk images, you should ensure "
20462 "the format is always specified."
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../inspector/virt-inspector.pod:139
20467 msgid "Previous versions of virt-inspector allowed you to write either:"
20468 msgstr ""
20469
20470 #. type: verbatim
20471 #: ../inspector/virt-inspector.pod:145
20472 #, no-wrap
20473 msgid ""
20474 " virt-inspector guestname\n"
20475 "\n"
20476 msgstr ""
20477
20478 #. type: =head1
20479 #: ../inspector/virt-inspector.pod:153
20480 msgid "XML FORMAT"
20481 msgstr ""
20482
20483 #. type: textblock
20484 #: ../inspector/virt-inspector.pod:155
20485 msgid ""
20486 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20487 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20488 "just an overview."
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../inspector/virt-inspector.pod:159
20493 msgid ""
20494 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20495 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20496 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20497 "which is vanishingly rare in real world VMs."
20498 msgstr ""
20499
20500 #. type: =head2
20501 #: ../inspector/virt-inspector.pod:164
20502 msgid "E<lt>operatingsystemE<gt>"
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../inspector/virt-inspector.pod:166
20507 msgid ""
20508 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20509 "describe the operating system, its architecture, the descriptive \"product "
20510 "name\" string, the type of OS and so on, as in this example:"
20511 msgstr ""
20512
20513 #. type: verbatim
20514 #: ../inspector/virt-inspector.pod:170
20515 #, no-wrap
20516 msgid ""
20517 " <operatingsystems>\n"
20518 "   <operatingsystem>\n"
20519 "     <root>/dev/sda2</root>\n"
20520 "     <name>windows</name>\n"
20521 "     <arch>i386</arch>\n"
20522 "     <distro>windows</distro>\n"
20523 "     <product_name>Windows 7 Enterprise</product_name>\n"
20524 "     <product_variant>Client</product_variant>\n"
20525 "     <major_version>6</major_version>\n"
20526 "     <minor_version>1</minor_version>\n"
20527 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20528 "     <format>installed</format>\n"
20529 "\n"
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../inspector/virt-inspector.pod:183
20534 msgid ""
20535 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20536 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20537 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20538 "architecture.  The other fields are fairly self-explanatory, but because "
20539 "these fields are taken directly from the libguestfs inspection API you can "
20540 "find precise information from L<guestfs(3)/INSPECTION>."
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../inspector/virt-inspector.pod:191
20545 msgid ""
20546 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20547 "of view of libguestfs (block devices may have completely different names "
20548 "inside the VM itself)."
20549 msgstr ""
20550
20551 #. type: =head2
20552 #: ../inspector/virt-inspector.pod:195
20553 msgid "E<lt>mountpointsE<gt>"
20554 msgstr ""
20555
20556 #. type: textblock
20557 #: ../inspector/virt-inspector.pod:197
20558 msgid ""
20559 "Un*x-like guests typically have multiple filesystems which are mounted at "
20560 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20561 "element which looks like this:"
20562 msgstr ""
20563
20564 #. type: verbatim
20565 #: ../inspector/virt-inspector.pod:201
20566 #, no-wrap
20567 msgid ""
20568 " <operatingsystems>\n"
20569 "   <operatingsystem>\n"
20570 "     ...\n"
20571 "     <mountpoints>\n"
20572 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20573 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20574 "     </mountpoints>\n"
20575 "\n"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../inspector/virt-inspector.pod:209
20580 msgid ""
20581 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20582 "and may have completely different names inside the guest.  Only mountable "
20583 "filesystems appear in this list, not things like swap devices."
20584 msgstr ""
20585
20586 #. type: =head2
20587 #: ../inspector/virt-inspector.pod:214
20588 msgid "E<lt>filesystemsE<gt>"
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../inspector/virt-inspector.pod:216
20593 msgid ""
20594 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20595 "filesystems belonging to the guest, including swap and empty partitions.  "
20596 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20597 "this OS or shared with this OS and other OSes)."
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../inspector/virt-inspector.pod:222
20602 msgid "You might see something like this:"
20603 msgstr ""
20604
20605 #. type: verbatim
20606 #: ../inspector/virt-inspector.pod:224
20607 #, no-wrap
20608 msgid ""
20609 " <operatingsystems>\n"
20610 "   <operatingsystem>\n"
20611 "     ...\n"
20612 "     <filesystems>\n"
20613 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20614 "         <type>ext4</type>\n"
20615 "         <label>Fedora-13-x86_64</label>\n"
20616 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20617 "       </filesystem>\n"
20618 "\n"
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../inspector/virt-inspector.pod:234
20623 msgid ""
20624 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20625 "the label, and the UUID."
20626 msgstr ""
20627
20628 #. type: =head2
20629 #: ../inspector/virt-inspector.pod:237
20630 msgid "E<lt>applicationsE<gt>"
20631 msgstr ""
20632
20633 #. type: textblock
20634 #: ../inspector/virt-inspector.pod:239
20635 msgid ""
20636 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20637 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20638 "machine."
20639 msgstr ""
20640
20641 #. type: textblock
20642 #: ../inspector/virt-inspector.pod:243
20643 msgid ""
20644 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20645 "Typical values would be C<rpm> and C<deb>."
20646 msgstr ""
20647
20648 #. type: textblock
20649 #: ../inspector/virt-inspector.pod:246
20650 msgid ""
20651 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20652 "Typical values include C<yum>, C<up2date> and C<apt>"
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../inspector/virt-inspector.pod:249
20657 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20658 msgstr ""
20659
20660 #. type: verbatim
20661 #: ../inspector/virt-inspector.pod:252
20662 #, no-wrap
20663 msgid ""
20664 " <operatingsystems>\n"
20665 "   <operatingsystem>\n"
20666 "     ...\n"
20667 "     <applications>\n"
20668 "       <application>\n"
20669 "         <name>coreutils</name>\n"
20670 "         <version>8.5</version>\n"
20671 "         <release>1</release>\n"
20672 "       </application>\n"
20673 "\n"
20674 msgstr ""
20675
20676 #. type: textblock
20677 #: ../inspector/virt-inspector.pod:262
20678 msgid ""
20679 "The version and release fields may not be available for some types guests.  "
20680 "Other fields are possible, see "
20681 "L<guestfs(3)/guestfs_inspect_list_applications>."
20682 msgstr ""
20683
20684 #. type: =head2
20685 #: ../inspector/virt-inspector.pod:266
20686 msgid "E<lt>drive_mappingsE<gt>"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../inspector/virt-inspector.pod:268
20691 msgid ""
20692 "For operating systems like Windows which use drive letters, virt-inspector "
20693 "is able to find out how drive letters map to filesystems."
20694 msgstr ""
20695
20696 #. type: verbatim
20697 #: ../inspector/virt-inspector.pod:272
20698 #, no-wrap
20699 msgid ""
20700 " <operatingsystems>\n"
20701 "   <operatingsystem>\n"
20702 "     ...\n"
20703 "     <drive_mappings>\n"
20704 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20705 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20706 "     </drive_mappings>\n"
20707 "\n"
20708 msgstr ""
20709
20710 #. type: textblock
20711 #: ../inspector/virt-inspector.pod:280
20712 msgid ""
20713 "In the example above, drive C maps to the filesystem on the second partition "
20714 "on the first disk, and drive E maps to the filesystem on the first partition "
20715 "on the second disk."
20716 msgstr ""
20717
20718 #. type: textblock
20719 #: ../inspector/virt-inspector.pod:284
20720 msgid ""
20721 "Note that this only covers permanent local filesystem mappings, not things "
20722 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20723 "here."
20724 msgstr ""
20725
20726 #. type: =head2
20727 #: ../inspector/virt-inspector.pod:288
20728 msgid "E<lt>iconE<gt>"
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../inspector/virt-inspector.pod:290
20733 msgid ""
20734 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20735 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20736 "very large and high quality."
20737 msgstr ""
20738
20739 #. type: verbatim
20740 #: ../inspector/virt-inspector.pod:294
20741 #, no-wrap
20742 msgid ""
20743 " <operatingsystems>\n"
20744 "   <operatingsystem>\n"
20745 "     ...\n"
20746 "     <icon>\n"
20747 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20748 "       [... many lines of base64 data ...]\n"
20749 "     </icon>\n"
20750 "\n"
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../inspector/virt-inspector.pod:302
20755 msgid ""
20756 "To display the icon, you have to extract it and convert the base64 data back "
20757 "to a binary file.  Use an XPath query or simply an editor to extract the "
20758 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20759 "to a PNG file:"
20760 msgstr ""
20761
20762 #. type: verbatim
20763 #: ../inspector/virt-inspector.pod:307
20764 #, no-wrap
20765 msgid ""
20766 " base64 -i -d < icon.data > icon.png\n"
20767 "\n"
20768 msgstr ""
20769
20770 #. type: =head2
20771 #: ../inspector/virt-inspector.pod:309
20772 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20773 msgstr ""
20774
20775 #. type: textblock
20776 #: ../inspector/virt-inspector.pod:311
20777 msgid ""
20778 "Virt-inspector can detect some operating system installers on install disks, "
20779 "live CDs, bootable USB keys and more."
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../inspector/virt-inspector.pod:314
20784 msgid ""
20785 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20786 "fields may be present to indicate a live CD, network installer, or one part "
20787 "of a multipart CD.  For example:"
20788 msgstr ""
20789
20790 #. type: verbatim
20791 #: ../inspector/virt-inspector.pod:318
20792 #, no-wrap
20793 msgid ""
20794 " <operatingsystems>\n"
20795 "   <operatingsystem>\n"
20796 "     <root>/dev/sda</root>\n"
20797 "     <name>linux</name>\n"
20798 "     <arch>i386</arch>\n"
20799 "     <distro>ubuntu</distro>\n"
20800 "     <product_name>Ubuntu 10.10 &quot;Maverick "
20801 "Meerkat&quot;</product_name>\n"
20802 "     <major_version>10</major_version>\n"
20803 "     <minor_version>10</minor_version>\n"
20804 "     <format>installer</format>\n"
20805 "     <live/>\n"
20806 "\n"
20807 msgstr ""
20808
20809 #. type: =head1
20810 #: ../inspector/virt-inspector.pod:330
20811 msgid "USING XPATH"
20812 msgstr ""
20813
20814 #. type: textblock
20815 #: ../inspector/virt-inspector.pod:332
20816 msgid ""
20817 "You can use the XPath query language to select parts of the XML.  We "
20818 "recommend using C<xmlstarlet> to perform XPath queries from the command "
20819 "line."
20820 msgstr ""
20821
20822 #. type: verbatim
20823 #: ../inspector/virt-inspector.pod:338
20824 #, no-wrap
20825 msgid ""
20826 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
20827 " <filesystems>\n"
20828 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20829 "        <type>ext4</type>\n"
20830 " [...]\n"
20831 "\n"
20832 msgstr ""
20833
20834 #. type: verbatim
20835 #: ../inspector/virt-inspector.pod:344
20836 #, no-wrap
20837 msgid ""
20838 " $ virt-inspector -d Guest | \\\n"
20839 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20840 " ext4\n"
20841 "\n"
20842 msgstr ""
20843
20844 #. type: verbatim
20845 #: ../inspector/virt-inspector.pod:348
20846 #, no-wrap
20847 msgid ""
20848 " $ virt-inspector -d Guest | \\\n"
20849 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
20850 " [displays the guest icon, if there is one]\n"
20851 "\n"
20852 msgstr ""
20853
20854 #. type: =head1
20855 #: ../inspector/virt-inspector.pod:359
20856 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20857 msgstr ""
20858
20859 #. type: textblock
20860 #: ../inspector/virt-inspector.pod:361
20861 msgid ""
20862 "Early versions of libguestfs shipped with a different virt-inspector program "
20863 "written in Perl (the current version is written in C).  The XML output of "
20864 "the Perl virt-inspector was different and it could also output in other "
20865 "formats like text."
20866 msgstr ""
20867
20868 #. type: textblock
20869 #: ../inspector/virt-inspector.pod:366
20870 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
20871 msgstr ""
20872
20873 #. type: textblock
20874 #: ../inspector/virt-inspector.pod:369
20875 msgid ""
20876 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20877 "versions of virt-inspector with different names:"
20878 msgstr ""
20879
20880 #. type: verbatim
20881 #: ../inspector/virt-inspector.pod:372
20882 #, no-wrap
20883 msgid ""
20884 " virt-inspector     Old Perl version.\n"
20885 " virt-inspector2    New C version.\n"
20886 "\n"
20887 msgstr ""
20888
20889 #. type: textblock
20890 #: ../inspector/virt-inspector.pod:382
20891 msgid ""
20892 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
20893 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../inspector/virt-inspector.pod:399
20898 msgid "Matthew Booth L<mbooth@redhat.com>"
20899 msgstr ""
20900
20901 #. type: textblock
20902 #: ../java/examples/guestfs-java.pod:5
20903 msgid "guestfs-java - How to use libguestfs from Java"
20904 msgstr ""
20905
20906 #. type: verbatim
20907 #: ../java/examples/guestfs-java.pod:9
20908 #, no-wrap
20909 msgid ""
20910 " import com.redhat.et.libguestfs.*;\n"
20911 " \n"
20912 msgstr ""
20913
20914 #. type: verbatim
20915 #: ../java/examples/guestfs-java.pod:11
20916 #, no-wrap
20917 msgid ""
20918 " GuestFS g = new GuestFS ();\n"
20919 " g.add_drive_opts (\"disk.img\", null);\n"
20920 " g.launch ();\n"
20921 "\n"
20922 msgstr ""
20923
20924 #. type: textblock
20925 #: ../java/examples/guestfs-java.pod:17
20926 msgid ""
20927 "This manual page documents how to call libguestfs from the Java programming "
20928 "language.  This page just documents the differences from the C API and gives "
20929 "some examples.  If you are not familiar with using libguestfs, you also need "
20930 "to read L<guestfs(3)>."
20931 msgstr ""
20932
20933 #. type: =head2
20934 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
20935 msgid "CLOSING THE HANDLE"
20936 msgstr ""
20937
20938 #. type: textblock
20939 #: ../java/examples/guestfs-java.pod:24
20940 msgid ""
20941 "The handle is closed when it is reaped by the garbage collector.  Because "
20942 "libguestfs handles include a lot of state, it is also possible to close (and "
20943 "hence free) them explicitly by calling the C<close> method."
20944 msgstr ""
20945
20946 #. type: =head2
20947 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
20948 msgid "EXCEPTIONS"
20949 msgstr ""
20950
20951 #. type: textblock
20952 #: ../java/examples/guestfs-java.pod:31
20953 msgid ""
20954 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
20955 "exception.  This has a single parameter which is the error message (a "
20956 "C<String>)."
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../java/examples/guestfs-java.pod:35
20961 msgid "Calling any method on a closed handle raises the same exception."
20962 msgstr ""
20963
20964 #. type: textblock
20965 #: ../java/examples/guestfs-java.pod:47
20966 msgid ""
20967 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
20968 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
20969 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
20970 "L<http://caml.inria.fr/>."
20971 msgstr ""
20972
20973 #. type: textblock
20974 #: ../ocaml/examples/guestfs-ocaml.pod:5
20975 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
20976 msgstr ""
20977
20978 #. type: textblock
20979 #: ../ocaml/examples/guestfs-ocaml.pod:9
20980 msgid "Module style:"
20981 msgstr ""
20982
20983 #. type: verbatim
20984 #: ../ocaml/examples/guestfs-ocaml.pod:11
20985 #, no-wrap
20986 msgid ""
20987 " let g = Guestfs.create () in\n"
20988 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
20989 " Guestfs.launch g;\n"
20990 "\n"
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../ocaml/examples/guestfs-ocaml.pod:15
20995 msgid "Object-oriented style:"
20996 msgstr ""
20997
20998 #. type: verbatim
20999 #: ../ocaml/examples/guestfs-ocaml.pod:17
21000 #, no-wrap
21001 msgid ""
21002 " let g = new Guestfs.guestfs () in\n"
21003 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21004 " g#launch ();\n"
21005 "\n"
21006 msgstr ""
21007
21008 #. type: verbatim
21009 #: ../ocaml/examples/guestfs-ocaml.pod:21
21010 #, no-wrap
21011 msgid ""
21012 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21013 "or:\n"
21014 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21015 "\n"
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../ocaml/examples/guestfs-ocaml.pod:27
21020 msgid ""
21021 "This manual page documents how to call libguestfs from the OCaml programming "
21022 "language.  This page just documents the differences from the C API and gives "
21023 "some examples.  If you are not familiar with using libguestfs, you also need "
21024 "to read L<guestfs(3)>."
21025 msgstr ""
21026
21027 #. type: =head2
21028 #: ../ocaml/examples/guestfs-ocaml.pod:32
21029 msgid "PROGRAMMING STYLES"
21030 msgstr ""
21031
21032 #. type: textblock
21033 #: ../ocaml/examples/guestfs-ocaml.pod:34
21034 msgid ""
21035 "There are two different programming styles supported by the OCaml bindings.  "
21036 "You can use a module style, with each C function mapped to an OCaml "
21037 "function:"
21038 msgstr ""
21039
21040 #. type: verbatim
21041 #: ../ocaml/examples/guestfs-ocaml.pod:38
21042 #, no-wrap
21043 msgid ""
21044 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21045 "\n"
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../ocaml/examples/guestfs-ocaml.pod:40
21050 msgid "becomes:"
21051 msgstr ""
21052
21053 #. type: verbatim
21054 #: ../ocaml/examples/guestfs-ocaml.pod:42
21055 #, no-wrap
21056 msgid ""
21057 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21058 "\n"
21059 msgstr ""
21060
21061 #. type: textblock
21062 #: ../ocaml/examples/guestfs-ocaml.pod:44
21063 msgid ""
21064 "Alternately you can use an object-oriented style, calling methods on the "
21065 "class C<Guestfs.guestfs>:"
21066 msgstr ""
21067
21068 #. type: verbatim
21069 #: ../ocaml/examples/guestfs-ocaml.pod:47
21070 #, no-wrap
21071 msgid ""
21072 " method set_verbose : bool -> unit\n"
21073 "\n"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../ocaml/examples/guestfs-ocaml.pod:49
21078 msgid ""
21079 "The object-oriented style is usually briefer, and the minor performance "
21080 "penalty isn't noticable in the general overhead of performing libguestfs "
21081 "functions."
21082 msgstr ""
21083
21084 #. type: textblock
21085 #: ../ocaml/examples/guestfs-ocaml.pod:55
21086 msgid ""
21087 "The handle is closed when it is reaped by the garbage collector.  Because "
21088 "libguestfs handles include a lot of state, it is also possible to close (and "
21089 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21090 "method."
21091 msgstr ""
21092
21093 #. type: textblock
21094 #: ../ocaml/examples/guestfs-ocaml.pod:62
21095 msgid ""
21096 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21097 "exception.  This has a single parameter which is the error message (a "
21098 "string)."
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../ocaml/examples/guestfs-ocaml.pod:66
21103 msgid ""
21104 "Calling any function/method on a closed handle raises "
21105 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
21106 "that you called."
21107 msgstr ""
21108
21109 #. type: textblock
21110 #: ../ocaml/examples/guestfs-ocaml.pod:80
21111 msgid ""
21112 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21113 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21114 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
21115 "L<http://caml.inria.fr/>."
21116 msgstr ""
21117
21118 #. type: textblock
21119 #: ../perl/examples/guestfs-perl.pod:5
21120 msgid "guestfs-perl - How to use libguestfs from Perl"
21121 msgstr ""
21122
21123 #. type: verbatim
21124 #: ../perl/examples/guestfs-perl.pod:9
21125 #, no-wrap
21126 msgid ""
21127 " use Sys::Guestfs;\n"
21128 " \n"
21129 msgstr ""
21130
21131 #. type: verbatim
21132 #: ../perl/examples/guestfs-perl.pod:11
21133 #, no-wrap
21134 msgid ""
21135 " my $h = Sys::Guestfs->new ();\n"
21136 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21137 " $h->launch ();\n"
21138 " $h->mount_options ('', '/dev/sda1', '/');\n"
21139 " $h->touch ('/hello');\n"
21140 " $h->sync ();\n"
21141 "\n"
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../perl/examples/guestfs-perl.pod:20
21146 msgid ""
21147 "This manual page documents how to call libguestfs from the Perl programming "
21148 "language.  This page just documents the differences from the C API and gives "
21149 "some examples.  If you are not familiar with using libguestfs, you also need "
21150 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21151 msgstr ""
21152
21153 #. type: =head2
21154 #: ../perl/examples/guestfs-perl.pod:26
21155 msgid "ERRORS"
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../perl/examples/guestfs-perl.pod:28
21160 msgid ""
21161 "Errors from libguestfs functions turn into calls to C<croak> (see "
21162 "L<Carp(3)>)."
21163 msgstr ""
21164
21165 #. type: textblock
21166 #: ../perl/examples/guestfs-perl.pod:41
21167 msgid ""
21168 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
21169 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
21170 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
21171 "L<http://libguestfs.org/>."
21172 msgstr ""
21173
21174 #. type: textblock
21175 #: ../python/examples/guestfs-python.pod:5
21176 msgid "guestfs-python - How to use libguestfs from Python"
21177 msgstr ""
21178
21179 #. type: verbatim
21180 #: ../python/examples/guestfs-python.pod:9
21181 #, no-wrap
21182 msgid ""
21183 " import guestfs\n"
21184 " g = guestfs.GuestFS ()\n"
21185 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21186 " g.launch\n"
21187 "\n"
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../python/examples/guestfs-python.pod:16
21192 msgid ""
21193 "This manual page documents how to call libguestfs from the Python "
21194 "programming language.  This page just documents the differences from the C "
21195 "API and gives some examples.  If you are not familiar with using libguestfs, "
21196 "you also need to read L<guestfs(3)>."
21197 msgstr ""
21198
21199 #. type: textblock
21200 #: ../python/examples/guestfs-python.pod:23
21201 msgid ""
21202 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21203 "single string argument which is the error message."
21204 msgstr ""
21205
21206 #. type: =head2
21207 #: ../python/examples/guestfs-python.pod:26
21208 msgid "MORE DOCUMENTATION"
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../python/examples/guestfs-python.pod:28
21213 msgid "Type:"
21214 msgstr ""
21215
21216 #. type: verbatim
21217 #: ../python/examples/guestfs-python.pod:30
21218 #, no-wrap
21219 msgid ""
21220 " $ python\n"
21221 " >>> import guestfs\n"
21222 " >>> help (guestfs)\n"
21223 "\n"
21224 msgstr ""
21225
21226 #. type: textblock
21227 #: ../python/examples/guestfs-python.pod:44
21228 msgid ""
21229 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21230 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21231 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21232 msgstr ""
21233
21234 #. type: textblock
21235 #: ../rescue/virt-rescue.pod:5
21236 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21237 msgstr ""
21238
21239 #. type: verbatim
21240 #: ../rescue/virt-rescue.pod:9
21241 #, no-wrap
21242 msgid ""
21243 " virt-rescue [--options] -d domname\n"
21244 "\n"
21245 msgstr ""
21246
21247 #. type: verbatim
21248 #: ../rescue/virt-rescue.pod:11
21249 #, no-wrap
21250 msgid ""
21251 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21252 "\n"
21253 msgstr ""
21254
21255 #. type: verbatim
21256 #: ../rescue/virt-rescue.pod:15
21257 #, no-wrap
21258 msgid ""
21259 " virt-rescue [--options] domname\n"
21260 "\n"
21261 msgstr ""
21262
21263 #. type: verbatim
21264 #: ../rescue/virt-rescue.pod:17
21265 #, no-wrap
21266 msgid ""
21267 " virt-rescue [--options] disk.img [disk.img ...]\n"
21268 "\n"
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../rescue/virt-rescue.pod:21
21273 msgid ""
21274 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21275 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21276 "you from doing this, but doesn't catch all cases."
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../rescue/virt-rescue.pod:25
21281 msgid ""
21282 "However if you use the I<--ro> (read only) option, then you can attach a "
21283 "shell to a live virtual machine.  The results might be strange or "
21284 "inconsistent at times but you won't get disk corruption."
21285 msgstr ""
21286
21287 #. type: textblock
21288 #: ../rescue/virt-rescue.pod:31
21289 msgid ""
21290 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21291 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21292 "recovery tools which you can use to examine or rescue a virtual machine or "
21293 "disk image."
21294 msgstr ""
21295
21296 #. type: textblock
21297 #: ../rescue/virt-rescue.pod:36
21298 msgid ""
21299 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21300 "on disk image(s):"
21301 msgstr ""
21302
21303 #. type: verbatim
21304 #: ../rescue/virt-rescue.pod:39
21305 #, no-wrap
21306 msgid ""
21307 " virt-rescue -d GuestName\n"
21308 "\n"
21309 msgstr ""
21310
21311 #. type: verbatim
21312 #: ../rescue/virt-rescue.pod:41
21313 #, no-wrap
21314 msgid ""
21315 " virt-rescue --ro -a /path/to/disk.img\n"
21316 "\n"
21317 msgstr ""
21318
21319 #. type: verbatim
21320 #: ../rescue/virt-rescue.pod:43
21321 #, no-wrap
21322 msgid ""
21323 " virt-rescue -a /dev/sdc\n"
21324 "\n"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../rescue/virt-rescue.pod:45
21329 msgid "For live VMs you I<must> use the --ro option."
21330 msgstr ""
21331
21332 #. type: textblock
21333 #: ../rescue/virt-rescue.pod:47
21334 msgid ""
21335 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21336 "in an interactive bash shell where you can use many ordinary Linux "
21337 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21338 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21339 "is an empty directory called C</sysroot> where you can mount filesystems."
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../rescue/virt-rescue.pod:54
21344 msgid ""
21345 "In the example below, we list logical volumes, then choose one to mount "
21346 "under C</sysroot>:"
21347 msgstr ""
21348
21349 #. type: verbatim
21350 #: ../rescue/virt-rescue.pod:57
21351 #, no-wrap
21352 msgid ""
21353 " ><rescue> lvs\n"
21354 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21355 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21356 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21357 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21358 " ><rescue> ls /sysroot\n"
21359 "\n"
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../rescue/virt-rescue.pod:64
21364 msgid ""
21365 "If you don't know what filesystems are available on the virtual machine then "
21366 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21367 msgstr ""
21368
21369 #. type: textblock
21370 #: ../rescue/virt-rescue.pod:70
21371 msgid ""
21372 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21373 "virtual machine.  For example you can use it on a blank file if you want to "
21374 "partition that file (although we would recommend using L<guestfish(1)> "
21375 "instead as it is more suitable for this purpose).  You can even use "
21376 "virt-rescue on things like SD cards."
21377 msgstr ""
21378
21379 #. type: textblock
21380 #: ../rescue/virt-rescue.pod:76
21381 msgid ""
21382 "Virt-rescue does not require root.  You only need to run it as root if you "
21383 "need root to open the disk image."
21384 msgstr ""
21385
21386 #. type: textblock
21387 #: ../rescue/virt-rescue.pod:79
21388 msgid ""
21389 "This tool is just designed for quick interactive hacking on a virtual "
21390 "machine.  For more structured access to a virtual machine disk image, you "
21391 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21392 "make scripted changes to guests, use L<guestfish(1)>."
21393 msgstr ""
21394
21395 #. type: =item
21396 #: ../rescue/virt-rescue.pod:103
21397 msgid "B<--append kernelopts>"
21398 msgstr ""
21399
21400 #. type: textblock
21401 #: ../rescue/virt-rescue.pod:105
21402 msgid "Pass additional options to the rescue kernel."
21403 msgstr ""
21404
21405 #. type: verbatim
21406 #: ../rescue/virt-rescue.pod:135
21407 #, no-wrap
21408 msgid ""
21409 " virt-rescue --format=raw -a disk.img\n"
21410 "\n"
21411 msgstr ""
21412
21413 #. type: verbatim
21414 #: ../rescue/virt-rescue.pod:139
21415 #, no-wrap
21416 msgid ""
21417 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21418 "\n"
21419 msgstr ""
21420
21421 #. type: =item
21422 #: ../rescue/virt-rescue.pod:148
21423 msgid "B<-m MB>"
21424 msgstr ""
21425
21426 #. type: =item
21427 #: ../rescue/virt-rescue.pod:150
21428 msgid "B<--memsize MB>"
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../rescue/virt-rescue.pod:152
21433 msgid ""
21434 "Change the amount of memory allocated to the rescue system.  The default is "
21435 "set by libguestfs and is small but adequate for running system tools.  The "
21436 "occasional program might need more memory.  The parameter is specified in "
21437 "megabytes."
21438 msgstr ""
21439
21440 #. type: =item
21441 #: ../rescue/virt-rescue.pod:157
21442 msgid "B<--network>"
21443 msgstr ""
21444
21445 #. type: textblock
21446 #: ../rescue/virt-rescue.pod:159
21447 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../rescue/virt-rescue.pod:165
21452 msgid "Open the image read-only."
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../rescue/virt-rescue.pod:175
21457 msgid ""
21458 "Enable SELinux in the rescue appliance.  You should read "
21459 "L<guestfs(3)/SELINUX> before using this option."
21460 msgstr ""
21461
21462 #. type: =item
21463 #: ../rescue/virt-rescue.pod:178
21464 msgid "B<--smp> N"
21465 msgstr ""
21466
21467 #. type: textblock
21468 #: ../rescue/virt-rescue.pod:180
21469 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
21470 msgstr ""
21471
21472 #. type: textblock
21473 #: ../rescue/virt-rescue.pod:198
21474 msgid ""
21475 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21476 "are done read-write."
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../rescue/virt-rescue.pod:211
21481 msgid "Previous versions of virt-rescue allowed you to write either:"
21482 msgstr ""
21483
21484 #. type: verbatim
21485 #: ../rescue/virt-rescue.pod:213
21486 #, no-wrap
21487 msgid ""
21488 " virt-rescue disk.img [disk.img ...]\n"
21489 "\n"
21490 msgstr ""
21491
21492 #. type: verbatim
21493 #: ../rescue/virt-rescue.pod:217
21494 #, no-wrap
21495 msgid ""
21496 " virt-rescue guestname\n"
21497 "\n"
21498 msgstr ""
21499
21500 #. type: =head1
21501 #: ../rescue/virt-rescue.pod:225
21502 msgid "NETWORK"
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../rescue/virt-rescue.pod:227
21507 msgid ""
21508 "Adding the I<--network> option enables QEMU user networking in the rescue "
21509 "appliance.  There are some differences between user networking and ordinary "
21510 "networking:"
21511 msgstr ""
21512
21513 #. type: =item
21514 #: ../rescue/virt-rescue.pod:233
21515 msgid "ping does not work"
21516 msgstr ""
21517
21518 #. type: textblock
21519 #: ../rescue/virt-rescue.pod:235
21520 msgid ""
21521 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21522 "send the ping packets, and because virt-rescue must be able to run as "
21523 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
21524 "command.  The ping command will appear to resolve addresses but will not be "
21525 "able to send or receive any packets.  This does not mean that the network is "
21526 "not working."
21527 msgstr ""
21528
21529 #. type: =item
21530 #: ../rescue/virt-rescue.pod:242
21531 msgid "cannot receive connections"
21532 msgstr ""
21533
21534 #. type: textblock
21535 #: ../rescue/virt-rescue.pod:244
21536 msgid "QEMU user networking cannot receive incoming connections."
21537 msgstr ""
21538
21539 #. type: =item
21540 #: ../rescue/virt-rescue.pod:246
21541 msgid "making TCP connections"
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../rescue/virt-rescue.pod:248
21546 msgid ""
21547 "The virt-rescue appliance needs to be small and so does not include many "
21548 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21549 "make TCP connections from the shell using the magical "
21550 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21551 msgstr ""
21552
21553 #. type: verbatim
21554 #: ../rescue/virt-rescue.pod:253
21555 #, no-wrap
21556 msgid ""
21557 " exec 3<>/dev/tcp/redhat.com/80\n"
21558 " echo \"GET /\" >&3\n"
21559 " cat <&3\n"
21560 "\n"
21561 msgstr ""
21562
21563 #. type: textblock
21564 #: ../rescue/virt-rescue.pod:257
21565 msgid "See L<bash(1)> for more details."
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../rescue/virt-rescue.pod:263
21570 msgid ""
21571 "Several environment variables affect virt-rescue.  See "
21572 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
21573 msgstr ""
21574
21575 #. type: textblock
21576 #: ../rescue/virt-rescue.pod:290
21577 msgid ""
21578 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21579 "L<http://libguestfs.org/>."
21580 msgstr ""
21581
21582 #. type: textblock
21583 #: ../resize/virt-resize.pod:5
21584 msgid "virt-resize - Resize a virtual machine disk"
21585 msgstr ""
21586
21587 #. type: verbatim
21588 #: ../resize/virt-resize.pod:9
21589 #, no-wrap
21590 msgid ""
21591 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21592 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21593 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21594 "\n"
21595 msgstr ""
21596
21597 #. type: textblock
21598 #: ../resize/virt-resize.pod:15
21599 msgid ""
21600 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21601 "larger or smaller overall, and resizing or deleting any partitions contained "
21602 "within."
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../resize/virt-resize.pod:19
21607 msgid ""
21608 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21609 "not> be used on live virtual machines - for consistent results, shut the "
21610 "virtual machine down before resizing it."
21611 msgstr ""
21612
21613 #. type: textblock
21614 #: ../resize/virt-resize.pod:23
21615 msgid ""
21616 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21617 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21618 msgstr ""
21619
21620 #. type: =item
21621 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520 ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
21622 msgid "1."
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../resize/virt-resize.pod:33
21627 msgid ""
21628 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21629 "fill the extra 5GB of space."
21630 msgstr ""
21631
21632 #. type: verbatim
21633 #: ../resize/virt-resize.pod:36
21634 #, no-wrap
21635 msgid ""
21636 " virt-filesystems --long -h --all -a olddisk\n"
21637 " \n"
21638 msgstr ""
21639
21640 #. type: verbatim
21641 #: ../resize/virt-resize.pod:38
21642 #, no-wrap
21643 msgid ""
21644 " truncate -r olddisk newdisk\n"
21645 " truncate -s +5G newdisk\n"
21646 " \n"
21647 msgstr ""
21648
21649 #. type: verbatim
21650 #: ../resize/virt-resize.pod:41
21651 #, no-wrap
21652 msgid ""
21653 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21654 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21655 "\n"
21656 msgstr ""
21657
21658 #. type: =item
21659 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527 ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
21660 msgid "2."
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../resize/virt-resize.pod:46
21665 msgid ""
21666 "As above, but make the /boot partition 200MB bigger, while giving the "
21667 "remaining space to /dev/sda2:"
21668 msgstr ""
21669
21670 #. type: verbatim
21671 #: ../resize/virt-resize.pod:49
21672 #, no-wrap
21673 msgid ""
21674 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21675 "   olddisk newdisk\n"
21676 "\n"
21677 msgstr ""
21678
21679 #. type: =item
21680 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533 ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486 ../src/guestfs.pod:1436
21681 msgid "3."
21682 msgstr ""
21683
21684 #. type: textblock
21685 #: ../resize/virt-resize.pod:54
21686 msgid ""
21687 "As in the first example, but expand a logical volume as the final step.  "
21688 "This is what you would typically use for Linux guests that use LVM:"
21689 msgstr ""
21690
21691 #. type: verbatim
21692 #: ../resize/virt-resize.pod:58
21693 #, no-wrap
21694 msgid ""
21695 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21696 "   olddisk newdisk\n"
21697 "\n"
21698 msgstr ""
21699
21700 #. type: =item
21701 #: ../resize/virt-resize.pod:61
21702 msgid "4."
21703 msgstr ""
21704
21705 #. type: textblock
21706 #: ../resize/virt-resize.pod:63
21707 msgid ""
21708 "As in the first example, but the output format will be qcow2 instead of a "
21709 "raw disk:"
21710 msgstr ""
21711
21712 #. type: verbatim
21713 #: ../resize/virt-resize.pod:66
21714 #, no-wrap
21715 msgid ""
21716 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21717 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21718 "\n"
21719 msgstr ""
21720
21721 #. type: =head1
21722 #: ../resize/virt-resize.pod:71
21723 msgid "DETAILED USAGE"
21724 msgstr ""
21725
21726 #. type: =head2
21727 #: ../resize/virt-resize.pod:73
21728 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21729 msgstr ""
21730
21731 #. type: =item
21732 #: ../resize/virt-resize.pod:77
21733 msgid "1. Shut down the virtual machine"
21734 msgstr ""
21735
21736 #. type: =item
21737 #: ../resize/virt-resize.pod:79
21738 msgid "2. Locate input disk image"
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../resize/virt-resize.pod:81
21743 msgid ""
21744 "Locate the input disk image (ie. the file or device on the host containing "
21745 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21746 "dumpxml> like this to find the disk image name:"
21747 msgstr ""
21748
21749 #. type: verbatim
21750 #: ../resize/virt-resize.pod:85
21751 #, no-wrap
21752 msgid ""
21753 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21754 " Found 1 nodes:\n"
21755 " -- NODE --\n"
21756 " <source dev=\"/dev/vg/lv_guest\" />\n"
21757 "\n"
21758 msgstr ""
21759
21760 #. type: =item
21761 #: ../resize/virt-resize.pod:90
21762 msgid "3. Look at current sizing"
21763 msgstr ""
21764
21765 #. type: textblock
21766 #: ../resize/virt-resize.pod:92
21767 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21768 msgstr ""
21769
21770 #. type: verbatim
21771 #: ../resize/virt-resize.pod:95
21772 #, no-wrap
21773 msgid ""
21774 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21775 " Name       Type       Size  Parent\n"
21776 " /dev/sda1  partition  101M  /dev/sda\n"
21777 " /dev/sda2  partition  7.9G  /dev/sda\n"
21778 " /dev/sda   device     8.0G  -\n"
21779 "\n"
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../resize/virt-resize.pod:101
21784 msgid ""
21785 "(This example is a virtual machine with an 8 GB disk which we would like to "
21786 "expand up to 10 GB)."
21787 msgstr ""
21788
21789 #. type: =item
21790 #: ../resize/virt-resize.pod:104
21791 msgid "4. Create output disk"
21792 msgstr ""
21793
21794 #. type: textblock
21795 #: ../resize/virt-resize.pod:106
21796 msgid ""
21797 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21798 "to store the resized output disk."
21799 msgstr ""
21800
21801 #. type: textblock
21802 #: ../resize/virt-resize.pod:109
21803 msgid "To store the resized disk image in a file, create a file of a suitable size:"
21804 msgstr ""
21805
21806 #. type: verbatim
21807 #: ../resize/virt-resize.pod:112
21808 #, no-wrap
21809 msgid ""
21810 " # rm -f outdisk\n"
21811 " # truncate -s 10G outdisk\n"
21812 "\n"
21813 msgstr ""
21814
21815 #. type: textblock
21816 #: ../resize/virt-resize.pod:115
21817 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21818 msgstr ""
21819
21820 #. type: verbatim
21821 #: ../resize/virt-resize.pod:117
21822 #, no-wrap
21823 msgid ""
21824 " # lvcreate -L 10G -n lv_name vg_name\n"
21825 "\n"
21826 msgstr ""
21827
21828 #. type: textblock
21829 #: ../resize/virt-resize.pod:119
21830 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
21831 msgstr ""
21832
21833 #. type: verbatim
21834 #: ../resize/virt-resize.pod:121
21835 #, no-wrap
21836 msgid ""
21837 " # virsh pool-list\n"
21838 " # virsh vol-create-as poolname newvol 10G\n"
21839 "\n"
21840 msgstr ""
21841
21842 #. type: =item
21843 #: ../resize/virt-resize.pod:124
21844 msgid "5. Resize"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../resize/virt-resize.pod:126
21849 msgid ""
21850 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
21851 "file) and the output disk.  The output disk is the one created in the "
21852 "previous step."
21853 msgstr ""
21854
21855 #. type: verbatim
21856 #: ../resize/virt-resize.pod:130
21857 #, no-wrap
21858 msgid ""
21859 " # virt-resize indisk outdisk\n"
21860 "\n"
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../resize/virt-resize.pod:132
21865 msgid ""
21866 "This command just copies disk image C<indisk> to disk image C<outdisk> "
21867 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
21868 "larger, then an extra, empty partition is created at the end of the disk "
21869 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
21870 "error."
21871 msgstr ""
21872
21873 #. type: textblock
21874 #: ../resize/virt-resize.pod:138
21875 msgid ""
21876 "More realistically you'd want to expand existing partitions in the disk "
21877 "image by passing extra options (for the full list see the L</OPTIONS> "
21878 "section below)."
21879 msgstr ""
21880
21881 #. type: textblock
21882 #: ../resize/virt-resize.pod:142
21883 msgid ""
21884 "L</--expand> is the most useful option.  It expands the named partition "
21885 "within the disk to fill any extra space:"
21886 msgstr ""
21887
21888 #. type: verbatim
21889 #: ../resize/virt-resize.pod:145
21890 #, no-wrap
21891 msgid ""
21892 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
21893 "\n"
21894 msgstr ""
21895
21896 #. type: textblock
21897 #: ../resize/virt-resize.pod:147
21898 msgid ""
21899 "(In this case, an extra partition is I<not> created at the end of the disk, "
21900 "because there will be no unused space)."
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../resize/virt-resize.pod:150
21905 msgid ""
21906 "L</--resize> is the other commonly used option.  The following would "
21907 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
21908 "rest of the available space:"
21909 msgstr ""
21910
21911 #. type: verbatim
21912 #: ../resize/virt-resize.pod:154
21913 #, no-wrap
21914 msgid ""
21915 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21916 "     indisk outdisk\n"
21917 "\n"
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../resize/virt-resize.pod:157
21922 msgid ""
21923 "If the expanded partition in the image contains a filesystem or LVM PV, then "
21924 "if virt-resize knows how, it will resize the contents, the equivalent of "
21925 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
21926 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
21927 "filesystems, so you would have to online resize them after booting the "
21928 "guest."
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../resize/virt-resize.pod:164
21933 msgid "Other options are covered below."
21934 msgstr ""
21935
21936 #. type: =item
21937 #: ../resize/virt-resize.pod:166
21938 msgid "6. Test"
21939 msgstr ""
21940
21941 #. type: textblock
21942 #: ../resize/virt-resize.pod:168
21943 msgid "Thoroughly test the new disk image I<before> discarding the old one."
21944 msgstr ""
21945
21946 #. type: textblock
21947 #: ../resize/virt-resize.pod:170
21948 msgid "If you are using libvirt, edit the XML to point at the new disk:"
21949 msgstr ""
21950
21951 #. type: verbatim
21952 #: ../resize/virt-resize.pod:172
21953 #, no-wrap
21954 msgid ""
21955 " # virsh edit guestname\n"
21956 "\n"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../resize/virt-resize.pod:174
21961 msgid ""
21962 "Change E<lt>source ...E<gt>, see "
21963 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../resize/virt-resize.pod:177
21968 msgid "Then start up the domain with the new, resized disk:"
21969 msgstr ""
21970
21971 #. type: verbatim
21972 #: ../resize/virt-resize.pod:179
21973 #, no-wrap
21974 msgid ""
21975 " # virsh start guestname\n"
21976 "\n"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../resize/virt-resize.pod:181
21981 msgid ""
21982 "and check that it still works.  See also the L</NOTES> section below for "
21983 "additional information."
21984 msgstr ""
21985
21986 #. type: =item
21987 #: ../resize/virt-resize.pod:184
21988 msgid "7. Resize LVs etc inside the guest"
21989 msgstr ""
21990
21991 #. type: textblock
21992 #: ../resize/virt-resize.pod:186
21993 msgid "(This can also be done offline using L<guestfish(1)>)"
21994 msgstr ""
21995
21996 #. type: textblock
21997 #: ../resize/virt-resize.pod:188
21998 msgid ""
21999 "Once the guest has booted you should see the new space available, at least "
22000 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22001 "may need to resize LVs inside PVs, and also resize filesystem types that "
22002 "virt-resize does not know how to expand."
22003 msgstr ""
22004
22005 #. type: =head2
22006 #: ../resize/virt-resize.pod:195
22007 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22008 msgstr ""
22009
22010 #. type: textblock
22011 #: ../resize/virt-resize.pod:197
22012 msgid ""
22013 "Shrinking is somewhat more complex than expanding, and only an overview is "
22014 "given here."
22015 msgstr ""
22016
22017 #. type: textblock
22018 #: ../resize/virt-resize.pod:200
22019 msgid ""
22020 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22021 "filesystems).  The user has to shrink content before passing the disk image "
22022 "to virt-resize, and virt-resize will check that the content has been shrunk "
22023 "properly."
22024 msgstr ""
22025
22026 #. type: textblock
22027 #: ../resize/virt-resize.pod:205
22028 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22029 msgstr ""
22030
22031 #. type: textblock
22032 #: ../resize/virt-resize.pod:207
22033 msgid ""
22034 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22035 "steps 3 and 4 above to allocate a new disk image."
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../resize/virt-resize.pod:210
22040 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22041 msgstr ""
22042
22043 #. type: =head2
22044 #: ../resize/virt-resize.pod:213
22045 msgid "IGNORING OR DELETING PARTITIONS"
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../resize/virt-resize.pod:215
22050 msgid ""
22051 "virt-resize also gives a convenient way to ignore or delete partitions when "
22052 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22053 "up the copy where you don't care about the existing contents of a "
22054 "partition.  Deleting a partition removes it completely, but note that it "
22055 "also renumbers any partitions after the one which is deleted, which can "
22056 "leave some guests unbootable."
22057 msgstr ""
22058
22059 #. type: =head2
22060 #: ../resize/virt-resize.pod:222
22061 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22062 msgstr ""
22063
22064 #. type: textblock
22065 #: ../resize/virt-resize.pod:224
22066 msgid ""
22067 "If the input disk is in qcow2 format, then you may prefer that the output is "
22068 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22069 "the fly.  The output format is simply determined by the format of the empty "
22070 "output container that you provide.  Thus to create qcow2 output, use:"
22071 msgstr ""
22072
22073 #. type: verbatim
22074 #: ../resize/virt-resize.pod:230
22075 #, no-wrap
22076 msgid ""
22077 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22078 "\n"
22079 msgstr ""
22080
22081 #. type: textblock
22082 #: ../resize/virt-resize.pod:232
22083 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22084 msgstr ""
22085
22086 #. type: textblock
22087 #: ../resize/virt-resize.pod:234
22088 msgid "Similarly, to get non-sparse raw output use:"
22089 msgstr ""
22090
22091 #. type: verbatim
22092 #: ../resize/virt-resize.pod:236
22093 #, no-wrap
22094 msgid ""
22095 " fallocate -l size outdisk\n"
22096 "\n"
22097 msgstr ""
22098
22099 #. type: textblock
22100 #: ../resize/virt-resize.pod:238
22101 msgid ""
22102 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
22103 "if=/dev/zero of=outdisk bs=1M count=..>)"
22104 msgstr ""
22105
22106 #. type: textblock
22107 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
22108 msgid "Display help."
22109 msgstr ""
22110
22111 #. type: =item
22112 #: ../resize/virt-resize.pod:249
22113 msgid "B<-d>"
22114 msgstr ""
22115
22116 #. type: =item
22117 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
22118 msgid "B<--debug>"
22119 msgstr ""
22120
22121 #. type: textblock
22122 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22123 msgid "Enable debugging messages."
22124 msgstr ""
22125
22126 #. type: =item
22127 #: ../resize/virt-resize.pod:255
22128 msgid "B<--delete part>"
22129 msgstr ""
22130
22131 #. type: textblock
22132 #: ../resize/virt-resize.pod:257
22133 msgid ""
22134 "Delete the named partition.  It would be more accurate to describe this as "
22135 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22136 "the original disk image is left intact."
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../resize/virt-resize.pod:261
22141 msgid ""
22142 "Note that when you delete a partition, then anything contained in the "
22143 "partition is also deleted.  Furthermore, this causes any partitions that "
22144 "come after to be I<renumbered>, which can easily make your guest unbootable."
22145 msgstr ""
22146
22147 #. type: textblock
22148 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
22149 msgid "You can give this option multiple times."
22150 msgstr ""
22151
22152 #. type: =item
22153 #: ../resize/virt-resize.pod:268
22154 msgid "B<--expand part>"
22155 msgstr ""
22156
22157 #. type: textblock
22158 #: ../resize/virt-resize.pod:270
22159 msgid ""
22160 "Expand the named partition so it uses up all extra space (space left over "
22161 "after any other resize changes that you request have been done)."
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../resize/virt-resize.pod:273
22166 msgid ""
22167 "If virt-resize knows how, it will expand the direct content of the "
22168 "partition.  For example, if the partition is an LVM PV, it will expand the "
22169 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22170 "content it doesn't know about alone."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../resize/virt-resize.pod:278
22175 msgid "Currently virt-resize can resize:"
22176 msgstr ""
22177
22178 #. type: textblock
22179 #: ../resize/virt-resize.pod:284
22180 msgid "ext2, ext3 and ext4 filesystems."
22181 msgstr ""
22182
22183 #. type: textblock
22184 #: ../resize/virt-resize.pod:288
22185 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../resize/virt-resize.pod:290
22190 msgid ""
22191 "The filesystem must have been shut down consistently last time it was used.  "
22192 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22193 "consistency check, so at the first boot after resizing Windows will check "
22194 "the disk."
22195 msgstr ""
22196
22197 #. type: textblock
22198 #: ../resize/virt-resize.pod:297
22199 msgid ""
22200 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22201 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22202 "resize LVs as desired after boot."
22203 msgstr ""
22204
22205 #. type: textblock
22206 #: ../resize/virt-resize.pod:303
22207 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22212 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22213 msgstr ""
22214
22215 #. type: =item
22216 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
22217 msgid "B<--format> raw"
22218 msgstr ""
22219
22220 #. type: textblock
22221 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
22222 msgid ""
22223 "Specify the format of the input disk image.  If this flag is not given then "
22224 "it is auto-detected from the image itself."
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../resize/virt-resize.pod:317
22229 msgid ""
22230 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22231 "AND NON-SPARSE RAW FORMATS>."
22232 msgstr ""
22233
22234 #. type: =item
22235 #: ../resize/virt-resize.pod:320
22236 msgid "B<--ignore part>"
22237 msgstr ""
22238
22239 #. type: textblock
22240 #: ../resize/virt-resize.pod:322
22241 msgid ""
22242 "Ignore the named partition.  Effectively this means the partition is "
22243 "allocated on the destination disk, but the content is not copied across from "
22244 "the source disk.  The content of the partition will be blank (all zero "
22245 "bytes)."
22246 msgstr ""
22247
22248 #. type: =item
22249 #: ../resize/virt-resize.pod:329
22250 msgid "B<--LV-expand logvol>"
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../resize/virt-resize.pod:331
22255 msgid ""
22256 "This takes the logical volume and, as a final step, expands it to fill all "
22257 "the space available in its volume group.  A typical usage, assuming a Linux "
22258 "guest with a single PV C</dev/sda2> and a root device called "
22259 "C</dev/vg_guest/lv_root> would be:"
22260 msgstr ""
22261
22262 #. type: verbatim
22263 #: ../resize/virt-resize.pod:336
22264 #, no-wrap
22265 msgid ""
22266 " virt-resize indisk outdisk \\\n"
22267 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22268 "\n"
22269 msgstr ""
22270
22271 #. type: textblock
22272 #: ../resize/virt-resize.pod:339
22273 msgid ""
22274 "This would first expand the partition (and PV), and then expand the root "
22275 "device to fill the extra space in the PV."
22276 msgstr ""
22277
22278 #. type: textblock
22279 #: ../resize/virt-resize.pod:342
22280 msgid ""
22281 "The contents of the LV are also resized if virt-resize knows how to do "
22282 "that.  You can stop virt-resize from trying to expand the content by using "
22283 "the option I<--no-expand-content>."
22284 msgstr ""
22285
22286 #. type: textblock
22287 #: ../resize/virt-resize.pod:346
22288 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22289 msgstr ""
22290
22291 #. type: textblock
22292 #: ../resize/virt-resize.pod:348
22293 msgid ""
22294 "You can give this option multiple times, I<but> it doesn't make sense to do "
22295 "this unless the logical volumes you specify are all in different volume "
22296 "groups."
22297 msgstr ""
22298
22299 #. type: =item
22300 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
22301 msgid "B<--machine-readable>"
22302 msgstr ""
22303
22304 #. type: textblock
22305 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
22306 msgid ""
22307 "This option is used to make the output more machine friendly when being "
22308 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22309 msgstr ""
22310
22311 #. type: =item
22312 #: ../resize/virt-resize.pod:360
22313 msgid "B<--dryrun>"
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../resize/virt-resize.pod:362
22318 msgid "Print a summary of what would be done, but don't do anything."
22319 msgstr ""
22320
22321 #. type: =item
22322 #: ../resize/virt-resize.pod:364
22323 msgid "B<--no-copy-boot-loader>"
22324 msgstr ""
22325
22326 #. type: textblock
22327 #: ../resize/virt-resize.pod:366
22328 msgid ""
22329 "By default, virt-resize copies over some sectors at the start of the disk "
22330 "(up to the beginning of the first partition).  Commonly these sectors "
22331 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22332 "in order for the guest to boot correctly."
22333 msgstr ""
22334
22335 #. type: textblock
22336 #: ../resize/virt-resize.pod:371
22337 msgid ""
22338 "If you specify this flag, then this initial copy is not done.  You may need "
22339 "to reinstall the boot loader in this case."
22340 msgstr ""
22341
22342 #. type: =item
22343 #: ../resize/virt-resize.pod:374
22344 msgid "B<--no-extra-partition>"
22345 msgstr ""
22346
22347 #. type: textblock
22348 #: ../resize/virt-resize.pod:376
22349 msgid ""
22350 "By default, virt-resize creates an extra partition if there is any extra, "
22351 "unused space after all resizing has happened.  Use this option to prevent "
22352 "the extra partition from being created.  If you do this then the extra space "
22353 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22354 "tool in the guest."
22355 msgstr ""
22356
22357 #. type: textblock
22358 #: ../resize/virt-resize.pod:382
22359 msgid ""
22360 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22361 "will be created."
22362 msgstr ""
22363
22364 #. type: =item
22365 #: ../resize/virt-resize.pod:385
22366 msgid "B<--no-expand-content>"
22367 msgstr ""
22368
22369 #. type: textblock
22370 #: ../resize/virt-resize.pod:387
22371 msgid ""
22372 "By default, virt-resize will try to expand the direct contents of "
22373 "partitions, if it knows how (see I<--expand> option above)."
22374 msgstr ""
22375
22376 #. type: textblock
22377 #: ../resize/virt-resize.pod:390
22378 msgid ""
22379 "If you give the I<--no-expand-content> option then virt-resize will not "
22380 "attempt this."
22381 msgstr ""
22382
22383 #. type: =item
22384 #: ../resize/virt-resize.pod:393
22385 msgid "B<--ntfsresize-force>"
22386 msgstr ""
22387
22388 #. type: textblock
22389 #: ../resize/virt-resize.pod:395
22390 msgid ""
22391 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22392 "the NTFS disk is marked as needing a consistency check.  You have to use "
22393 "this option if you want to resize a Windows guest multiple times without "
22394 "booting into Windows between each resize."
22395 msgstr ""
22396
22397 #. type: =item
22398 #: ../resize/virt-resize.pod:401
22399 msgid "B<--output-format> raw"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../resize/virt-resize.pod:403
22404 msgid ""
22405 "Specify the format of the output disk image.  If this flag is not given then "
22406 "it is auto-detected from the image itself."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../resize/virt-resize.pod:409
22411 msgid ""
22412 "Note that this option I<does not create> the output format.  This option "
22413 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22414 "need to create the output disk with the right format.  See L</QCOW2 AND "
22415 "NON-SPARSE RAW FORMATS>."
22416 msgstr ""
22417
22418 #. type: textblock
22419 #: ../resize/virt-resize.pod:418
22420 msgid "Don't print the summary."
22421 msgstr ""
22422
22423 #. type: =item
22424 #: ../resize/virt-resize.pod:420
22425 msgid "B<--resize part=size>"
22426 msgstr ""
22427
22428 #. type: textblock
22429 #: ../resize/virt-resize.pod:422
22430 msgid ""
22431 "Resize the named partition (expanding or shrinking it) so that it has the "
22432 "given size."
22433 msgstr ""
22434
22435 #. type: textblock
22436 #: ../resize/virt-resize.pod:425
22437 msgid ""
22438 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22439 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22440 "size; or as a relative number or percentage.  For example:"
22441 msgstr ""
22442
22443 #. type: verbatim
22444 #: ../resize/virt-resize.pod:431
22445 #, no-wrap
22446 msgid ""
22447 " --resize /dev/sda2=10G\n"
22448 "\n"
22449 msgstr ""
22450
22451 #. type: verbatim
22452 #: ../resize/virt-resize.pod:433
22453 #, no-wrap
22454 msgid ""
22455 " --resize /dev/sda4=90%\n"
22456 "\n"
22457 msgstr ""
22458
22459 #. type: verbatim
22460 #: ../resize/virt-resize.pod:435
22461 #, no-wrap
22462 msgid ""
22463 " --resize /dev/sda2=+1G\n"
22464 "\n"
22465 msgstr ""
22466
22467 #. type: verbatim
22468 #: ../resize/virt-resize.pod:437
22469 #, no-wrap
22470 msgid ""
22471 " --resize /dev/sda2=-200M\n"
22472 "\n"
22473 msgstr ""
22474
22475 #. type: verbatim
22476 #: ../resize/virt-resize.pod:439
22477 #, no-wrap
22478 msgid ""
22479 " --resize /dev/sda1=+128K\n"
22480 "\n"
22481 msgstr ""
22482
22483 #. type: verbatim
22484 #: ../resize/virt-resize.pod:441
22485 #, no-wrap
22486 msgid ""
22487 " --resize /dev/sda1=+10%\n"
22488 "\n"
22489 msgstr ""
22490
22491 #. type: verbatim
22492 #: ../resize/virt-resize.pod:443
22493 #, no-wrap
22494 msgid ""
22495 " --resize /dev/sda1=-10%\n"
22496 "\n"
22497 msgstr ""
22498
22499 #. type: textblock
22500 #: ../resize/virt-resize.pod:445
22501 msgid ""
22502 "You can increase the size of any partition.  Virt-resize will expand the "
22503 "direct content of the partition if it knows how (see I<--expand> below)."
22504 msgstr ""
22505
22506 #. type: textblock
22507 #: ../resize/virt-resize.pod:449
22508 msgid ""
22509 "You can only I<decrease> the size of partitions that contain filesystems or "
22510 "PVs which have already been shrunk.  Virt-resize will check this has been "
22511 "done before proceeding, or else will print an error (see also "
22512 "I<--resize-force>)."
22513 msgstr ""
22514
22515 #. type: =item
22516 #: ../resize/virt-resize.pod:456
22517 msgid "B<--resize-force part=size>"
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../resize/virt-resize.pod:458
22522 msgid ""
22523 "This is the same as I<--resize> except that it will let you decrease the "
22524 "size of any partition.  Generally this means you will lose any data which "
22525 "was at the end of the partition you shrink, but you may not care about that "
22526 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22527 "as a swap partition)."
22528 msgstr ""
22529
22530 #. type: textblock
22531 #: ../resize/virt-resize.pod:464
22532 msgid "See also the I<--ignore> option."
22533 msgstr ""
22534
22535 #. type: =item
22536 #: ../resize/virt-resize.pod:466
22537 msgid "B<--shrink part>"
22538 msgstr ""
22539
22540 #. type: textblock
22541 #: ../resize/virt-resize.pod:468
22542 msgid ""
22543 "Shrink the named partition until the overall disk image fits in the "
22544 "destination.  The named partition B<must> contain a filesystem or PV which "
22545 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22546 "online tools).  Virt-resize will check this and give an error if it has not "
22547 "been done."
22548 msgstr ""
22549
22550 #. type: textblock
22551 #: ../resize/virt-resize.pod:474
22552 msgid ""
22553 "The amount by which the overall disk must be shrunk (after carrying out all "
22554 "other operations requested by the user) is called the \"deficit\".  For "
22555 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22556 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22557 "would give an error unless the user specified a partition to shrink and that "
22558 "partition had more than a gigabyte of free space."
22559 msgstr ""
22560
22561 #. type: =head1
22562 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
22563 msgid "MACHINE READABLE OUTPUT"
22564 msgstr ""
22565
22566 #. type: textblock
22567 #: ../resize/virt-resize.pod:494
22568 msgid ""
22569 "The I<--machine-readable> option can be used to make the output more machine "
22570 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22571 "etc."
22572 msgstr ""
22573
22574 #. type: textblock
22575 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
22576 msgid "There are two ways to use this option."
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../resize/virt-resize.pod:500
22581 msgid ""
22582 "Firstly use the option on its own to query the capabilities of the "
22583 "virt-resize binary.  Typical output looks like this:"
22584 msgstr ""
22585
22586 #. type: verbatim
22587 #: ../resize/virt-resize.pod:503
22588 #, no-wrap
22589 msgid ""
22590 " $ virt-resize --machine-readable\n"
22591 " virt-resize\n"
22592 " ntfsresize-force\n"
22593 " 32bitok\n"
22594 " ntfs\n"
22595 " btrfs\n"
22596 "\n"
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
22601 msgid ""
22602 "A list of features is printed, one per line, and the program exits with "
22603 "status 0."
22604 msgstr ""
22605
22606 #. type: textblock
22607 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
22608 msgid ""
22609 "Secondly use the option in conjunction with other options to make the "
22610 "regular program output more machine friendly."
22611 msgstr ""
22612
22613 #. type: textblock
22614 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
22615 msgid "At the moment this means:"
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
22620 msgid ""
22621 "Progress bar messages can be parsed from stdout by looking for this regular "
22622 "expression:"
22623 msgstr ""
22624
22625 #. type: verbatim
22626 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
22627 #, no-wrap
22628 msgid ""
22629 " ^[0-9]+/[0-9]+$\n"
22630 "\n"
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
22635 msgid ""
22636 "The calling program should treat messages sent to stdout (except for "
22637 "progress bar messages) as status messages.  They can be logged and/or "
22638 "displayed to the user."
22639 msgstr ""
22640
22641 #. type: textblock
22642 #: ../resize/virt-resize.pod:535
22643 msgid ""
22644 "The calling program should treat messages sent to stderr as error messages.  "
22645 "In addition, virt-resize exits with a non-zero status code if there was a "
22646 "fatal error."
22647 msgstr ""
22648
22649 #. type: textblock
22650 #: ../resize/virt-resize.pod:541
22651 msgid ""
22652 "Versions of the program prior to 1.13.9 did not support the "
22653 "I<--machine-readable> option and will return an error."
22654 msgstr ""
22655
22656 #. type: =head2
22657 #: ../resize/virt-resize.pod:546
22658 msgid "\"Partition 1 does not end on cylinder boundary.\""
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../resize/virt-resize.pod:548
22663 msgid ""
22664 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22665 "means the partitions will not be aligned to the ancient CHS geometry.  "
22666 "However CHS geometry is meaningless for disks manufactured since the early "
22667 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22668 "cylinders is not required by any modern operating system."
22669 msgstr ""
22670
22671 #. type: =head2
22672 #: ../resize/virt-resize.pod:555
22673 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22674 msgstr ""
22675
22676 #. type: textblock
22677 #: ../resize/virt-resize.pod:557
22678 msgid ""
22679 "In Windows Vista and later versions, Microsoft switched to using a separate "
22680 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22681 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22682 "the boot partition.  Doing so seems to break the guest completely.  However "
22683 "expanding the second partition (ie. C: drive) should work."
22684 msgstr ""
22685
22686 #. type: textblock
22687 #: ../resize/virt-resize.pod:564
22688 msgid ""
22689 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22690 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22691 "it find errors) is nothing to worry about."
22692 msgstr ""
22693
22694 #. type: =head2
22695 #: ../resize/virt-resize.pod:568
22696 msgid "GUEST BOOT STUCK AT \"GRUB\""
22697 msgstr ""
22698
22699 #. type: textblock
22700 #: ../resize/virt-resize.pod:570
22701 msgid ""
22702 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22703 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22704 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22705 "although we think is to do with partition alignment."
22706 msgstr ""
22707
22708 #. type: verbatim
22709 #: ../resize/virt-resize.pod:575
22710 #, no-wrap
22711 msgid ""
22712 " guestfish -i -a newdisk\n"
22713 " ><fs> cat /boot/grub/device.map\n"
22714 " # check the contents of this file are sensible or\n"
22715 " # edit the file if necessary\n"
22716 " ><fs> grub-install / /dev/vda\n"
22717 " ><fs> exit\n"
22718 "\n"
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../resize/virt-resize.pod:582
22723 msgid ""
22724 "For more flexible guest reconfiguration, including if you need to specify "
22725 "other parameters to grub-install, use L<virt-rescue(1)>."
22726 msgstr ""
22727
22728 #. type: =head1
22729 #: ../resize/virt-resize.pod:585
22730 msgid "ALTERNATIVE TOOLS"
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../resize/virt-resize.pod:587
22735 msgid ""
22736 "There are several proprietary tools for resizing partitions.  We won't "
22737 "mention any here."
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../resize/virt-resize.pod:590
22742 msgid ""
22743 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
22744 "operations on disk images.  They can resize and move partitions, but I don't "
22745 "think they can do anything with the contents, and they certainly don't "
22746 "understand LVM."
22747 msgstr ""
22748
22749 #. type: textblock
22750 #: ../resize/virt-resize.pod:595
22751 msgid ""
22752 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
22753 "but at a much lower level.  You will probably end up hand-calculating sector "
22754 "offsets, which is something that virt-resize was designed to avoid.  If you "
22755 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
22756 "I<--debug> flag."
22757 msgstr ""
22758
22759 #. type: textblock
22760 #: ../resize/virt-resize.pod:615
22761 msgid ""
22762 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
22763 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
22764 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
22765 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
22766 "L<virt-sparsify(1)>, L<http://libguestfs.org/>."
22767 msgstr ""
22768
22769 #. type: textblock
22770 #: ../ruby/examples/guestfs-ruby.pod:5
22771 msgid "guestfs-ruby - How to use libguestfs from Ruby"
22772 msgstr ""
22773
22774 #. type: verbatim
22775 #: ../ruby/examples/guestfs-ruby.pod:9
22776 #, no-wrap
22777 msgid ""
22778 " require 'guestfs'\n"
22779 " g = Guestfs::Guestfs.new()\n"
22780 " g.add_drive_opts(\"disk.img\",\n"
22781 "                  :readonly => 1, :format => \"raw\")\n"
22782 " g.launch()\n"
22783 "\n"
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../ruby/examples/guestfs-ruby.pod:17
22788 msgid ""
22789 "This manual page documents how to call libguestfs from the Ruby programming "
22790 "language.  This page just documents the differences from the C API and gives "
22791 "some examples.  If you are not familiar with using libguestfs, you also need "
22792 "to read L<guestfs(3)>."
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../ruby/examples/guestfs-ruby.pod:24
22797 msgid ""
22798 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
22799 "This has a single parameter which is the error message (a string)."
22800 msgstr ""
22801
22802 #. type: textblock
22803 #: ../ruby/examples/guestfs-ruby.pod:38
22804 msgid ""
22805 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
22806 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
22807 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
22808 msgstr ""
22809
22810 #. type: textblock
22811 #: ../sparsify/virt-sparsify.pod:5
22812 msgid "virt-sparsify - Make a virtual machine disk sparse"
22813 msgstr ""
22814
22815 #. type: verbatim
22816 #: ../sparsify/virt-sparsify.pod:9
22817 #, no-wrap
22818 msgid ""
22819 " virt-sparsify [--options] indisk outdisk\n"
22820 "\n"
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../sparsify/virt-sparsify.pod:13
22825 msgid ""
22826 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
22827 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
22828 "the disk image can be converted back to free space on the host."
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../sparsify/virt-sparsify.pod:18
22833 msgid ""
22834 "Virt-sparsify can locate and sparsify free space in most filesystems "
22835 "(eg. ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../sparsify/virt-sparsify.pod:21
22840 msgid ""
22841 "Virt-sparsify can also convert between some disk formats, for example "
22842 "converting a raw disk image to a thin-provisioned qcow2 image."
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../sparsify/virt-sparsify.pod:24
22847 msgid ""
22848 "Virt-sparsify can operate on any disk image, not just ones from virtual "
22849 "machines.  If a virtual machine has more than one attached disk, you must "
22850 "sparsify each one separately."
22851 msgstr ""
22852
22853 #. type: =head2
22854 #: ../sparsify/virt-sparsify.pod:28
22855 msgid "IMPORTANT LIMITATIONS"
22856 msgstr ""
22857
22858 #. type: textblock
22859 #: ../sparsify/virt-sparsify.pod:34
22860 msgid ""
22861 "Virt-sparsify does not do in-place modifications.  It copies from a source "
22862 "image to a destination image, leaving the source unchanged.  I<Check that "
22863 "the sparsification was successful before deleting the source image>."
22864 msgstr ""
22865
22866 #. type: textblock
22867 #: ../sparsify/virt-sparsify.pod:41
22868 msgid "The virtual machine I<must be shut down> before using this tool."
22869 msgstr ""
22870
22871 #. type: textblock
22872 #: ../sparsify/virt-sparsify.pod:45
22873 msgid ""
22874 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
22875 "(1 temporary copy + 1 destination image).  This is in the worst case and "
22876 "usually much less space is required."
22877 msgstr ""
22878
22879 #. type: textblock
22880 #: ../sparsify/virt-sparsify.pod:51
22881 msgid "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../sparsify/virt-sparsify.pod:56
22886 msgid "Virt-sparsify cannot handle encrypted disks."
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../sparsify/virt-sparsify.pod:60
22891 msgid ""
22892 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
22893 "this space is often used for critical items like bootloaders so it's not "
22894 "really unused."
22895 msgstr ""
22896
22897 #. type: textblock
22898 #: ../sparsify/virt-sparsify.pod:66
22899 msgid ""
22900 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
22901 "to do this unless we can be sure there is no hibernation data, so at the "
22902 "moment swap partitions are ignored."
22903 msgstr ""
22904
22905 #. type: textblock
22906 #: ../sparsify/virt-sparsify.pod:72
22907 msgid ""
22908 "You may also want to read the manual pages for the associated tools "
22909 "L<virt-filesystems(1)> and L<virt-df(1)> before starting."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../sparsify/virt-sparsify.pod:77
22914 msgid "Typical usage is:"
22915 msgstr ""
22916
22917 #. type: verbatim
22918 #: ../sparsify/virt-sparsify.pod:79
22919 #, no-wrap
22920 msgid ""
22921 " virt-sparsify indisk outdisk\n"
22922 "\n"
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../sparsify/virt-sparsify.pod:81
22927 msgid ""
22928 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
22929 "is created, or overwritten if it already exists.  The format of the input "
22930 "disk is detected (eg. qcow2) and the same format is used for the output "
22931 "disk."
22932 msgstr ""
22933
22934 #. type: textblock
22935 #: ../sparsify/virt-sparsify.pod:86
22936 msgid "To convert between formats, use the I<--convert> option:"
22937 msgstr ""
22938
22939 #. type: verbatim
22940 #: ../sparsify/virt-sparsify.pod:88
22941 #, no-wrap
22942 msgid ""
22943 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
22944 "\n"
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../sparsify/virt-sparsify.pod:90
22949 msgid ""
22950 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
22951 "can find within the source disk image.  You can get it to ignore (don't zero "
22952 "free space on) certain filesystems by doing:"
22953 msgstr ""
22954
22955 #. type: verbatim
22956 #: ../sparsify/virt-sparsify.pod:94
22957 #, no-wrap
22958 msgid ""
22959 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
22960 "\n"
22961 msgstr ""
22962
22963 #. type: textblock
22964 #: ../sparsify/virt-sparsify.pod:96
22965 msgid "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
22966 msgstr ""
22967
22968 #. type: =item
22969 #: ../sparsify/virt-sparsify.pod:107
22970 msgid "B<--convert> raw"
22971 msgstr ""
22972
22973 #. type: =item
22974 #: ../sparsify/virt-sparsify.pod:109
22975 msgid "B<--convert> qcow2"
22976 msgstr ""
22977
22978 #. type: =item
22979 #: ../sparsify/virt-sparsify.pod:111
22980 msgid "B<--convert> [other formats]"
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../sparsify/virt-sparsify.pod:113
22985 msgid ""
22986 "Use C<output-format> as the format for the destination image.  If this is "
22987 "not specified, then the input format is used."
22988 msgstr ""
22989
22990 #. type: textblock
22991 #: ../sparsify/virt-sparsify.pod:116
22992 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
22993 msgstr ""
22994
22995 #. type: textblock
22996 #: ../sparsify/virt-sparsify.pod:118
22997 msgid ""
22998 "You can also use any format supported by the L<qemu-img(1)> program, "
22999 "eg. C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
23000 msgstr ""
23001
23002 #. type: textblock
23003 #: ../sparsify/virt-sparsify.pod:122
23004 msgid ""
23005 "Specifying the I<--convert> option is usually a good idea, because then "
23006 "virt-sparsify doesn't need to try to guess the input format."
23007 msgstr ""
23008
23009 #. type: =item
23010 #: ../sparsify/virt-sparsify.pod:127
23011 msgid "B<--format> qcow2"
23012 msgstr ""
23013
23014 #. type: =item
23015 #: ../sparsify/virt-sparsify.pod:135
23016 msgid "B<--ignore> filesystem"
23017 msgstr ""
23018
23019 #. type: =item
23020 #: ../sparsify/virt-sparsify.pod:137
23021 msgid "B<--ignore> volgroup"
23022 msgstr ""
23023
23024 #. type: textblock
23025 #: ../sparsify/virt-sparsify.pod:139
23026 msgid ""
23027 "Ignore the named filesystem.  Free space on the filesystem will not be "
23028 "zeroed, but existing blocks of zeroes will still be sparsified."
23029 msgstr ""
23030
23031 #. type: textblock
23032 #: ../sparsify/virt-sparsify.pod:142
23033 msgid ""
23034 "In the second form, this ignores the named volume group.  Use the volume "
23035 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
23036 msgstr ""
23037
23038 #. type: textblock
23039 #: ../sparsify/virt-sparsify.pod:157
23040 msgid "This disables progress bars and other unnecessary output."
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../sparsify/virt-sparsify.pod:179
23045 msgid ""
23046 "The I<--machine-readable> option can be used to make the output more machine "
23047 "friendly, which is useful when calling virt-sparsify from other programs, "
23048 "GUIs etc."
23049 msgstr ""
23050
23051 #. type: textblock
23052 #: ../sparsify/virt-sparsify.pod:185
23053 msgid ""
23054 "Firstly use the option on its own to query the capabilities of the "
23055 "virt-sparsify binary.  Typical output looks like this:"
23056 msgstr ""
23057
23058 #. type: verbatim
23059 #: ../sparsify/virt-sparsify.pod:188
23060 #, no-wrap
23061 msgid ""
23062 " $ virt-sparsify --machine-readable\n"
23063 " virt-sparsify\n"
23064 " ntfs\n"
23065 " btrfs\n"
23066 "\n"
23067 msgstr ""
23068
23069 #. type: textblock
23070 #: ../sparsify/virt-sparsify.pod:218
23071 msgid ""
23072 "The calling program should treat messages sent to stderr as error messages.  "
23073 "In addition, virt-sparsify exits with a non-zero status code if there was a "
23074 "fatal error."
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../sparsify/virt-sparsify.pod:224
23079 msgid ""
23080 "All versions of virt-sparsify have supported the I<--machine-readable> "
23081 "option."
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../sparsify/virt-sparsify.pod:238
23086 msgid ""
23087 "Location of the temporary directory used for the potentially large temporary "
23088 "overlay file."
23089 msgstr ""
23090
23091 #. type: textblock
23092 #: ../sparsify/virt-sparsify.pod:241
23093 msgid ""
23094 "You should ensure there is enough free space in the worst case for a full "
23095 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
23096 "to another directory that has enough space."
23097 msgstr ""
23098
23099 #. type: textblock
23100 #: ../sparsify/virt-sparsify.pod:245
23101 msgid "This defaults to C</tmp>."
23102 msgstr ""
23103
23104 #. type: textblock
23105 #: ../sparsify/virt-sparsify.pod:249
23106 msgid "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../sparsify/virt-sparsify.pod:253
23111 msgid ""
23112 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
23113 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, "
23114 "L<qemu-img(1)>, L<http://libguestfs.org/>."
23115 msgstr ""
23116
23117 #. type: =head2
23118 #: ../src/guestfs-actions.pod:1
23119 msgid "guestfs_add_cdrom"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../src/guestfs-actions.pod:3
23124 #, no-wrap
23125 msgid ""
23126 " int\n"
23127 " guestfs_add_cdrom (guestfs_h *g,\n"
23128 "                    const char *filename);\n"
23129 "\n"
23130 msgstr ""
23131
23132 #. type: textblock
23133 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
23134 msgid ""
23135 "I<This function is deprecated.> In new code, use the "
23136 "L</guestfs_add_drive_opts> call instead."
23137 msgstr ""
23138
23139 #. type: textblock
23140 #: ../src/guestfs-actions.pod:24
23141 msgid ""
23142 "This call checks for the existence of C<filename>.  This stops you from "
23143 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23144 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23145 "instead."
23146 msgstr ""
23147
23148 #. type: textblock
23149 #: ../src/guestfs-actions.pod:31
23150 msgid ""
23151 "If you just want to add an ISO file (often you use this as an efficient way "
23152 "to transfer large files into the guest), then you should probably use "
23153 "C<guestfs_add_drive_ro> instead."
23154 msgstr ""
23155
23156 #. type: textblock
23157 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506 ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652 ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084 ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233 ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330 ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420 ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631 ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873 ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982 ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789 ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003 ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030 ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059 ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250 ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406 ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435 ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741 ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783 ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000 ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118 ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177 ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310 ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400 ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445 ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183 ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209 ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235 ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272 ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399 ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439 ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522 ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702 ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765 ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001 ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026 ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087 ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223 ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253 ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309 ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364 ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465 ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596 ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723 ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819 ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872 ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959 ../src/guestfs-actions.pod:7988
23158 msgid "This function returns 0 on success or -1 on error."
23159 msgstr ""
23160
23161 #. type: textblock
23162 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096 ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360 ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7765
23163 msgid "(Added in 0.3)"
23164 msgstr ""
23165
23166 #. type: =head2
23167 #: ../src/guestfs-actions.pod:41
23168 msgid "guestfs_add_domain"
23169 msgstr ""
23170
23171 #. type: verbatim
23172 #: ../src/guestfs-actions.pod:43
23173 #, no-wrap
23174 msgid ""
23175 " int\n"
23176 " guestfs_add_domain (guestfs_h *g,\n"
23177 "                     const char *dom,\n"
23178 "                     ...);\n"
23179 "\n"
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979 ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104 ../src/guestfs-actions.pod:5321
23184 msgid ""
23185 "You may supply a list of optional arguments to this call.  Use zero or more "
23186 "of the following pairs of parameters, and terminate the list with C<-1> on "
23187 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../src/guestfs-actions.pod:53
23192 #, no-wrap
23193 msgid ""
23194 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23195 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23196 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23197 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23198 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23199 "\n"
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../src/guestfs-actions.pod:59
23204 msgid ""
23205 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23206 "It works by connecting to libvirt, requesting the domain and domain XML from "
23207 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23208 "one."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../src/guestfs-actions.pod:94
23213 msgid ""
23214 "The other optional parameters are passed directly through to "
23215 "C<guestfs_add_drive_opts>."
23216 msgstr ""
23217
23218 #. type: textblock
23219 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698 ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747 ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217 ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283 ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621 ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938 ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
23220 msgid "On error this function returns -1."
23221 msgstr ""
23222
23223 #. type: textblock
23224 #: ../src/guestfs-actions.pod:99
23225 msgid "(Added in 1.7.4)"
23226 msgstr ""
23227
23228 #. type: =head2
23229 #: ../src/guestfs-actions.pod:101
23230 msgid "guestfs_add_domain_va"
23231 msgstr ""
23232
23233 #. type: verbatim
23234 #: ../src/guestfs-actions.pod:103
23235 #, no-wrap
23236 msgid ""
23237 " int\n"
23238 " guestfs_add_domain_va (guestfs_h *g,\n"
23239 "                        const char *dom,\n"
23240 "                        va_list args);\n"
23241 "\n"
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../src/guestfs-actions.pod:108
23246 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887 ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261 ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075 ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872 ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144 ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
23251 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23252 msgstr ""
23253
23254 #. type: =head2
23255 #: ../src/guestfs-actions.pod:112
23256 msgid "guestfs_add_domain_argv"
23257 msgstr ""
23258
23259 #. type: verbatim
23260 #: ../src/guestfs-actions.pod:114
23261 #, no-wrap
23262 msgid ""
23263 " int\n"
23264 " guestfs_add_domain_argv (guestfs_h *g,\n"
23265 "                          const char *dom,\n"
23266 "                          const struct guestfs_add_domain_argv *optargs);\n"
23267 "\n"
23268 msgstr ""
23269
23270 #. type: textblock
23271 #: ../src/guestfs-actions.pod:119
23272 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23273 msgstr ""
23274
23275 #. type: =head2
23276 #: ../src/guestfs-actions.pod:123
23277 msgid "guestfs_add_drive"
23278 msgstr ""
23279
23280 #. type: verbatim
23281 #: ../src/guestfs-actions.pod:125
23282 #, no-wrap
23283 msgid ""
23284 " int\n"
23285 " guestfs_add_drive (guestfs_h *g,\n"
23286 "                    const char *filename);\n"
23287 "\n"
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../src/guestfs-actions.pod:129
23292 msgid ""
23293 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23294 "optional parameters, so the disk is added writable, with the format being "
23295 "detected automatically."
23296 msgstr ""
23297
23298 #. type: textblock
23299 #: ../src/guestfs-actions.pod:133
23300 msgid ""
23301 "Automatic detection of the format opens you up to a potential security hole "
23302 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23303 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23304 "you should think about replacing calls to this function with calls to "
23305 "C<guestfs_add_drive_opts>, and specifying the format."
23306 msgstr ""
23307
23308 #. type: =head2
23309 #: ../src/guestfs-actions.pod:144
23310 msgid "guestfs_add_drive_opts"
23311 msgstr ""
23312
23313 #. type: verbatim
23314 #: ../src/guestfs-actions.pod:146
23315 #, no-wrap
23316 msgid ""
23317 " int\n"
23318 " guestfs_add_drive_opts (guestfs_h *g,\n"
23319 "                         const char *filename,\n"
23320 "                         ...);\n"
23321 "\n"
23322 msgstr ""
23323
23324 #. type: verbatim
23325 #: ../src/guestfs-actions.pod:156
23326 #, no-wrap
23327 msgid ""
23328 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23329 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23330 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23331 "\n"
23332 msgstr ""
23333
23334 #. type: textblock
23335 #: ../src/guestfs-actions.pod:185
23336 msgid ""
23337 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23338 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23339 "Possible formats include C<raw> and C<qcow2>."
23340 msgstr ""
23341
23342 #. type: textblock
23343 #: ../src/guestfs-actions.pod:196
23344 msgid ""
23345 "This rarely-used option lets you emulate the behaviour of the deprecated "
23346 "C<guestfs_add_drive_with_if> call (q.v.)"
23347 msgstr ""
23348
23349 #. type: textblock
23350 #: ../src/guestfs-actions.pod:203
23351 msgid "(Added in 1.5.23)"
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../src/guestfs-actions.pod:205
23356 msgid "guestfs_add_drive_opts_va"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../src/guestfs-actions.pod:207
23361 #, no-wrap
23362 msgid ""
23363 " int\n"
23364 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23365 "                            const char *filename,\n"
23366 "                            va_list args);\n"
23367 "\n"
23368 msgstr ""
23369
23370 #. type: textblock
23371 #: ../src/guestfs-actions.pod:212
23372 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23373 msgstr ""
23374
23375 #. type: =head2
23376 #: ../src/guestfs-actions.pod:216
23377 msgid "guestfs_add_drive_opts_argv"
23378 msgstr ""
23379
23380 #. type: verbatim
23381 #: ../src/guestfs-actions.pod:218
23382 #, no-wrap
23383 msgid ""
23384 " int\n"
23385 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23386 "                              const char *filename,\n"
23387 "                              const struct guestfs_add_drive_opts_argv "
23388 "*optargs);\n"
23389 "\n"
23390 msgstr ""
23391
23392 #. type: textblock
23393 #: ../src/guestfs-actions.pod:223
23394 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23395 msgstr ""
23396
23397 #. type: =head2
23398 #: ../src/guestfs-actions.pod:227
23399 msgid "guestfs_add_drive_ro"
23400 msgstr ""
23401
23402 #. type: verbatim
23403 #: ../src/guestfs-actions.pod:229
23404 #, no-wrap
23405 msgid ""
23406 " int\n"
23407 " guestfs_add_drive_ro (guestfs_h *g,\n"
23408 "                       const char *filename);\n"
23409 "\n"
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../src/guestfs-actions.pod:233
23414 msgid ""
23415 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23416 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23417 "disk is added read-only, with the format being detected automatically."
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../src/guestfs-actions.pod:240
23422 msgid "(Added in 1.0.38)"
23423 msgstr ""
23424
23425 #. type: =head2
23426 #: ../src/guestfs-actions.pod:242
23427 msgid "guestfs_add_drive_ro_with_if"
23428 msgstr ""
23429
23430 #. type: verbatim
23431 #: ../src/guestfs-actions.pod:244
23432 #, no-wrap
23433 msgid ""
23434 " int\n"
23435 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23436 "                               const char *filename,\n"
23437 "                               const char *iface);\n"
23438 "\n"
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../src/guestfs-actions.pod:256
23443 msgid ""
23444 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23445 "QEMU interface emulation to use at run time."
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2580
23450 msgid "(Added in 1.0.84)"
23451 msgstr ""
23452
23453 #. type: =head2
23454 #: ../src/guestfs-actions.pod:263
23455 msgid "guestfs_add_drive_with_if"
23456 msgstr ""
23457
23458 #. type: verbatim
23459 #: ../src/guestfs-actions.pod:265
23460 #, no-wrap
23461 msgid ""
23462 " int\n"
23463 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23464 "                            const char *filename,\n"
23465 "                            const char *iface);\n"
23466 "\n"
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../src/guestfs-actions.pod:277
23471 msgid ""
23472 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23473 "QEMU interface emulation to use at run time."
23474 msgstr ""
23475
23476 #. type: =head2
23477 #: ../src/guestfs-actions.pod:284
23478 msgid "guestfs_aug_clear"
23479 msgstr ""
23480
23481 #. type: verbatim
23482 #: ../src/guestfs-actions.pod:286
23483 #, no-wrap
23484 msgid ""
23485 " int\n"
23486 " guestfs_aug_clear (guestfs_h *g,\n"
23487 "                    const char *augpath);\n"
23488 "\n"
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
23493 msgid "(Added in 1.3.4)"
23494 msgstr ""
23495
23496 #. type: =head2
23497 #: ../src/guestfs-actions.pod:297
23498 msgid "guestfs_aug_close"
23499 msgstr ""
23500
23501 #. type: verbatim
23502 #: ../src/guestfs-actions.pod:299
23503 #, no-wrap
23504 msgid ""
23505 " int\n"
23506 " guestfs_aug_close (guestfs_h *g);\n"
23507 "\n"
23508 msgstr ""
23509
23510 #. type: textblock
23511 #: ../src/guestfs-actions.pod:302
23512 msgid ""
23513 "Close the current Augeas handle and free up any resources used by it.  After "
23514 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23515 "any other Augeas functions."
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449 ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494 ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522 ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554 ../src/guestfs-actions.pod:5989
23520 msgid "(Added in 0.7)"
23521 msgstr ""
23522
23523 #. type: =head2
23524 #: ../src/guestfs-actions.pod:311
23525 msgid "guestfs_aug_defnode"
23526 msgstr ""
23527
23528 #. type: verbatim
23529 #: ../src/guestfs-actions.pod:313
23530 #, no-wrap
23531 msgid ""
23532 " struct guestfs_int_bool *\n"
23533 " guestfs_aug_defnode (guestfs_h *g,\n"
23534 "                      const char *name,\n"
23535 "                      const char *expr,\n"
23536 "                      const char *val);\n"
23537 "\n"
23538 msgstr ""
23539
23540 #. type: textblock
23541 #: ../src/guestfs-actions.pod:322
23542 msgid ""
23543 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23544 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23545 "containing that single node."
23546 msgstr ""
23547
23548 #. type: textblock
23549 #: ../src/guestfs-actions.pod:330
23550 msgid ""
23551 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23552 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23553 msgstr ""
23554
23555 #. type: =head2
23556 #: ../src/guestfs-actions.pod:336
23557 msgid "guestfs_aug_defvar"
23558 msgstr ""
23559
23560 #. type: verbatim
23561 #: ../src/guestfs-actions.pod:338
23562 #, no-wrap
23563 msgid ""
23564 " int\n"
23565 " guestfs_aug_defvar (guestfs_h *g,\n"
23566 "                     const char *name,\n"
23567 "                     const char *expr);\n"
23568 "\n"
23569 msgstr ""
23570
23571 #. type: =head2
23572 #: ../src/guestfs-actions.pod:354
23573 msgid "guestfs_aug_get"
23574 msgstr ""
23575
23576 #. type: verbatim
23577 #: ../src/guestfs-actions.pod:356
23578 #, no-wrap
23579 msgid ""
23580 " char *\n"
23581 " guestfs_aug_get (guestfs_h *g,\n"
23582 "                  const char *augpath);\n"
23583 "\n"
23584 msgstr ""
23585
23586 #. type: textblock
23587 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005 ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535 ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835 ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015 ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331 ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749 ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180 ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322 ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362 ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622 ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717 ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065 ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826 ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561 ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
23588 msgid ""
23589 "This function returns a string, or NULL on error.  I<The caller must free "
23590 "the returned string after use>."
23591 msgstr ""
23592
23593 #. type: =head2
23594 #: ../src/guestfs-actions.pod:368
23595 msgid "guestfs_aug_init"
23596 msgstr ""
23597
23598 #. type: verbatim
23599 #: ../src/guestfs-actions.pod:370
23600 #, no-wrap
23601 msgid ""
23602 " int\n"
23603 " guestfs_aug_init (guestfs_h *g,\n"
23604 "                   const char *root,\n"
23605 "                   int flags);\n"
23606 "\n"
23607 msgstr ""
23608
23609 #. type: textblock
23610 #: ../src/guestfs-actions.pod:379
23611 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23612 msgstr ""
23613
23614 #. type: textblock
23615 #: ../src/guestfs-actions.pod:404
23616 msgid ""
23617 "This option is only useful when debugging Augeas lenses.  Use of this option "
23618 "may require additional memory for the libguestfs appliance.  You may need to "
23619 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23620 "C<guestfs_set_memsize>."
23621 msgstr ""
23622
23623 #. type: textblock
23624 #: ../src/guestfs-actions.pod:419
23625 msgid "Do not load the tree in C<guestfs_aug_init>."
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../src/guestfs-actions.pod:423
23630 msgid "To close the handle, you can call C<guestfs_aug_close>."
23631 msgstr ""
23632
23633 #. type: =head2
23634 #: ../src/guestfs-actions.pod:431
23635 msgid "guestfs_aug_insert"
23636 msgstr ""
23637
23638 #. type: verbatim
23639 #: ../src/guestfs-actions.pod:433
23640 #, no-wrap
23641 msgid ""
23642 " int\n"
23643 " guestfs_aug_insert (guestfs_h *g,\n"
23644 "                     const char *augpath,\n"
23645 "                     const char *label,\n"
23646 "                     int before);\n"
23647 "\n"
23648 msgstr ""
23649
23650 #. type: =head2
23651 #: ../src/guestfs-actions.pod:451
23652 msgid "guestfs_aug_load"
23653 msgstr ""
23654
23655 #. type: verbatim
23656 #: ../src/guestfs-actions.pod:453
23657 #, no-wrap
23658 msgid ""
23659 " int\n"
23660 " guestfs_aug_load (guestfs_h *g);\n"
23661 "\n"
23662 msgstr ""
23663
23664 #. type: =head2
23665 #: ../src/guestfs-actions.pod:465
23666 msgid "guestfs_aug_ls"
23667 msgstr ""
23668
23669 #. type: verbatim
23670 #: ../src/guestfs-actions.pod:467
23671 #, no-wrap
23672 msgid ""
23673 " char **\n"
23674 " guestfs_aug_ls (guestfs_h *g,\n"
23675 "                 const char *augpath);\n"
23676 "\n"
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../src/guestfs-actions.pod:471
23681 msgid ""
23682 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23683 "sorting the resulting nodes into alphabetical order."
23684 msgstr ""
23685
23686 #. type: textblock
23687 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647 ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282 ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909 ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985 ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982 ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648 ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002 ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067 ../src/guestfs-actions.pod:8086
23688 msgid ""
23689 "This function returns a NULL-terminated array of strings (like "
23690 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
23691 "strings and the array after use>."
23692 msgstr ""
23693
23694 #. type: textblock
23695 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667 ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223 ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366 ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612 ../src/guestfs-actions.pod:7877
23696 msgid "(Added in 0.8)"
23697 msgstr ""
23698
23699 #. type: =head2
23700 #: ../src/guestfs-actions.pod:480
23701 msgid "guestfs_aug_match"
23702 msgstr ""
23703
23704 #. type: verbatim
23705 #: ../src/guestfs-actions.pod:482
23706 #, no-wrap
23707 msgid ""
23708 " char **\n"
23709 " guestfs_aug_match (guestfs_h *g,\n"
23710 "                    const char *augpath);\n"
23711 "\n"
23712 msgstr ""
23713
23714 #. type: =head2
23715 #: ../src/guestfs-actions.pod:496
23716 msgid "guestfs_aug_mv"
23717 msgstr ""
23718
23719 #. type: verbatim
23720 #: ../src/guestfs-actions.pod:498
23721 #, no-wrap
23722 msgid ""
23723 " int\n"
23724 " guestfs_aug_mv (guestfs_h *g,\n"
23725 "                 const char *src,\n"
23726 "                 const char *dest);\n"
23727 "\n"
23728 msgstr ""
23729
23730 #. type: =head2
23731 #: ../src/guestfs-actions.pod:510
23732 msgid "guestfs_aug_rm"
23733 msgstr ""
23734
23735 #. type: verbatim
23736 #: ../src/guestfs-actions.pod:512
23737 #, no-wrap
23738 msgid ""
23739 " int\n"
23740 " guestfs_aug_rm (guestfs_h *g,\n"
23741 "                 const char *augpath);\n"
23742 "\n"
23743 msgstr ""
23744
23745 #. type: =head2
23746 #: ../src/guestfs-actions.pod:524
23747 msgid "guestfs_aug_save"
23748 msgstr ""
23749
23750 #. type: verbatim
23751 #: ../src/guestfs-actions.pod:526
23752 #, no-wrap
23753 msgid ""
23754 " int\n"
23755 " guestfs_aug_save (guestfs_h *g);\n"
23756 "\n"
23757 msgstr ""
23758
23759 #. type: textblock
23760 #: ../src/guestfs-actions.pod:531
23761 msgid ""
23762 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23763 "are saved."
23764 msgstr ""
23765
23766 #. type: =head2
23767 #: ../src/guestfs-actions.pod:538
23768 msgid "guestfs_aug_set"
23769 msgstr ""
23770
23771 #. type: verbatim
23772 #: ../src/guestfs-actions.pod:540
23773 #, no-wrap
23774 msgid ""
23775 " int\n"
23776 " guestfs_aug_set (guestfs_h *g,\n"
23777 "                  const char *augpath,\n"
23778 "                  const char *val);\n"
23779 "\n"
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../src/guestfs-actions.pod:547
23784 msgid ""
23785 "In the Augeas API, it is possible to clear a node by setting the value to "
23786 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23787 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23788 msgstr ""
23789
23790 #. type: =head2
23791 #: ../src/guestfs-actions.pod:556
23792 msgid "guestfs_available"
23793 msgstr ""
23794
23795 #. type: verbatim
23796 #: ../src/guestfs-actions.pod:558
23797 #, no-wrap
23798 msgid ""
23799 " int\n"
23800 " guestfs_available (guestfs_h *g,\n"
23801 "                    char *const *groups);\n"
23802 "\n"
23803 msgstr ""
23804
23805 #. type: textblock
23806 #: ../src/guestfs-actions.pod:566
23807 msgid ""
23808 "The libguestfs groups, and the functions that those groups correspond to, "
23809 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23810 "runtime by calling C<guestfs_available_all_groups>."
23811 msgstr ""
23812
23813 #. type: textblock
23814 #: ../src/guestfs-actions.pod:590
23815 msgid "You must call C<guestfs_launch> before calling this function."
23816 msgstr ""
23817
23818 #. type: textblock
23819 #: ../src/guestfs-actions.pod:612
23820 msgid ""
23821 "This call was added in version C<1.0.80>.  In previous versions of "
23822 "libguestfs all you could do would be to speculatively execute a command to "
23823 "find out if the daemon implemented it.  See also C<guestfs_version>."
23824 msgstr ""
23825
23826 #. type: textblock
23827 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
23828 msgid "(Added in 1.0.80)"
23829 msgstr ""
23830
23831 #. type: =head2
23832 #: ../src/guestfs-actions.pod:623
23833 msgid "guestfs_available_all_groups"
23834 msgstr ""
23835
23836 #. type: verbatim
23837 #: ../src/guestfs-actions.pod:625
23838 #, no-wrap
23839 msgid ""
23840 " char **\n"
23841 " guestfs_available_all_groups (guestfs_h *g);\n"
23842 "\n"
23843 msgstr ""
23844
23845 #. type: textblock
23846 #: ../src/guestfs-actions.pod:628
23847 msgid ""
23848 "This command returns a list of all optional groups that this daemon knows "
23849 "about.  Note this returns both supported and unsupported groups.  To find "
23850 "out which ones the daemon can actually support you have to call "
23851 "C<guestfs_available> on each member of the returned list."
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../src/guestfs-actions.pod:634
23856 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../src/guestfs-actions.pod:640
23861 msgid "(Added in 1.3.15)"
23862 msgstr ""
23863
23864 #. type: =head2
23865 #: ../src/guestfs-actions.pod:642
23866 msgid "guestfs_base64_in"
23867 msgstr ""
23868
23869 #. type: verbatim
23870 #: ../src/guestfs-actions.pod:644
23871 #, no-wrap
23872 msgid ""
23873 " int\n"
23874 " guestfs_base64_in (guestfs_h *g,\n"
23875 "                    const char *base64file,\n"
23876 "                    const char *filename);\n"
23877 "\n"
23878 msgstr ""
23879
23880 #. type: textblock
23881 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
23882 msgid "(Added in 1.3.5)"
23883 msgstr ""
23884
23885 #. type: =head2
23886 #: ../src/guestfs-actions.pod:656
23887 msgid "guestfs_base64_out"
23888 msgstr ""
23889
23890 #. type: verbatim
23891 #: ../src/guestfs-actions.pod:658
23892 #, no-wrap
23893 msgid ""
23894 " int\n"
23895 " guestfs_base64_out (guestfs_h *g,\n"
23896 "                     const char *filename,\n"
23897 "                     const char *base64file);\n"
23898 "\n"
23899 msgstr ""
23900
23901 #. type: =head2
23902 #: ../src/guestfs-actions.pod:670
23903 msgid "guestfs_blockdev_flushbufs"
23904 msgstr ""
23905
23906 #. type: verbatim
23907 #: ../src/guestfs-actions.pod:672
23908 #, no-wrap
23909 msgid ""
23910 " int\n"
23911 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
23912 "                             const char *device);\n"
23913 "\n"
23914 msgstr ""
23915
23916 #. type: textblock
23917 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700 ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731 ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800 ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
23918 msgid "(Added in 0.9.3)"
23919 msgstr ""
23920
23921 #. type: =head2
23922 #: ../src/guestfs-actions.pod:685
23923 msgid "guestfs_blockdev_getbsz"
23924 msgstr ""
23925
23926 #. type: verbatim
23927 #: ../src/guestfs-actions.pod:687
23928 #, no-wrap
23929 msgid ""
23930 " int\n"
23931 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
23932 "                          const char *device);\n"
23933 "\n"
23934 msgstr ""
23935
23936 #. type: =head2
23937 #: ../src/guestfs-actions.pod:702
23938 msgid "guestfs_blockdev_getro"
23939 msgstr ""
23940
23941 #. type: verbatim
23942 #: ../src/guestfs-actions.pod:704
23943 #, no-wrap
23944 msgid ""
23945 " int\n"
23946 " guestfs_blockdev_getro (guestfs_h *g,\n"
23947 "                         const char *device);\n"
23948 "\n"
23949 msgstr ""
23950
23951 #. type: textblock
23952 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590 ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177 ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243 ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294 ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589 ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618 ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649 ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679 ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706 ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:5482
23953 msgid "This function returns a C truth value on success or -1 on error."
23954 msgstr ""
23955
23956 #. type: =head2
23957 #: ../src/guestfs-actions.pod:717
23958 msgid "guestfs_blockdev_getsize64"
23959 msgstr ""
23960
23961 #. type: verbatim
23962 #: ../src/guestfs-actions.pod:719
23963 #, no-wrap
23964 msgid ""
23965 " int64_t\n"
23966 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
23967 "                             const char *device);\n"
23968 "\n"
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../src/guestfs-actions.pod:725
23973 msgid "See also C<guestfs_blockdev_getsz>."
23974 msgstr ""
23975
23976 #. type: =head2
23977 #: ../src/guestfs-actions.pod:733
23978 msgid "guestfs_blockdev_getss"
23979 msgstr ""
23980
23981 #. type: verbatim
23982 #: ../src/guestfs-actions.pod:735
23983 #, no-wrap
23984 msgid ""
23985 " int\n"
23986 " guestfs_blockdev_getss (guestfs_h *g,\n"
23987 "                         const char *device);\n"
23988 "\n"
23989 msgstr ""
23990
23991 #. type: textblock
23992 #: ../src/guestfs-actions.pod:742
23993 msgid ""
23994 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
23995 "that)."
23996 msgstr ""
23997
23998 #. type: =head2
23999 #: ../src/guestfs-actions.pod:751
24000 msgid "guestfs_blockdev_getsz"
24001 msgstr ""
24002
24003 #. type: verbatim
24004 #: ../src/guestfs-actions.pod:753
24005 #, no-wrap
24006 msgid ""
24007 " int64_t\n"
24008 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24009 "                         const char *device);\n"
24010 "\n"
24011 msgstr ""
24012
24013 #. type: textblock
24014 #: ../src/guestfs-actions.pod:760
24015 msgid ""
24016 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24017 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24018 msgstr ""
24019
24020 #. type: =head2
24021 #: ../src/guestfs-actions.pod:770
24022 msgid "guestfs_blockdev_rereadpt"
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../src/guestfs-actions.pod:772
24027 #, no-wrap
24028 msgid ""
24029 " int\n"
24030 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24031 "                            const char *device);\n"
24032 "\n"
24033 msgstr ""
24034
24035 #. type: =head2
24036 #: ../src/guestfs-actions.pod:784
24037 msgid "guestfs_blockdev_setbsz"
24038 msgstr ""
24039
24040 #. type: verbatim
24041 #: ../src/guestfs-actions.pod:786
24042 #, no-wrap
24043 msgid ""
24044 " int\n"
24045 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24046 "                          const char *device,\n"
24047 "                          int blocksize);\n"
24048 "\n"
24049 msgstr ""
24050
24051 #. type: =head2
24052 #: ../src/guestfs-actions.pod:802
24053 msgid "guestfs_blockdev_setro"
24054 msgstr ""
24055
24056 #. type: verbatim
24057 #: ../src/guestfs-actions.pod:804
24058 #, no-wrap
24059 msgid ""
24060 " int\n"
24061 " guestfs_blockdev_setro (guestfs_h *g,\n"
24062 "                         const char *device);\n"
24063 "\n"
24064 msgstr ""
24065
24066 #. type: =head2
24067 #: ../src/guestfs-actions.pod:816
24068 msgid "guestfs_blockdev_setrw"
24069 msgstr ""
24070
24071 #. type: verbatim
24072 #: ../src/guestfs-actions.pod:818
24073 #, no-wrap
24074 msgid ""
24075 " int\n"
24076 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24077 "                         const char *device);\n"
24078 "\n"
24079 msgstr ""
24080
24081 #. type: =head2
24082 #: ../src/guestfs-actions.pod:830
24083 msgid "guestfs_btrfs_filesystem_resize"
24084 msgstr ""
24085
24086 #. type: verbatim
24087 #: ../src/guestfs-actions.pod:832
24088 #, no-wrap
24089 msgid ""
24090 " int\n"
24091 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24092 "                                  const char *mountpoint,\n"
24093 "                                  ...);\n"
24094 "\n"
24095 msgstr ""
24096
24097 #. type: verbatim
24098 #: ../src/guestfs-actions.pod:842
24099 #, no-wrap
24100 msgid ""
24101 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24102 "\n"
24103 msgstr ""
24104
24105 #. type: textblock
24106 #: ../src/guestfs-actions.pod:865
24107 msgid "(Added in 1.11.17)"
24108 msgstr ""
24109
24110 #. type: =head2
24111 #: ../src/guestfs-actions.pod:867
24112 msgid "guestfs_btrfs_filesystem_resize_va"
24113 msgstr ""
24114
24115 #. type: verbatim
24116 #: ../src/guestfs-actions.pod:869
24117 #, no-wrap
24118 msgid ""
24119 " int\n"
24120 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24121 "                                     const char *mountpoint,\n"
24122 "                                     va_list args);\n"
24123 "\n"
24124 msgstr ""
24125
24126 #. type: textblock
24127 #: ../src/guestfs-actions.pod:874
24128 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24129 msgstr ""
24130
24131 #. type: =head2
24132 #: ../src/guestfs-actions.pod:878
24133 msgid "guestfs_btrfs_filesystem_resize_argv"
24134 msgstr ""
24135
24136 #. type: verbatim
24137 #: ../src/guestfs-actions.pod:880
24138 #, no-wrap
24139 msgid ""
24140 " int\n"
24141 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24142 "                                       const char *mountpoint,\n"
24143 "                                       const struct "
24144 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24145 "\n"
24146 msgstr ""
24147
24148 #. type: textblock
24149 #: ../src/guestfs-actions.pod:885
24150 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24151 msgstr ""
24152
24153 #. type: =head2
24154 #: ../src/guestfs-actions.pod:889
24155 msgid "guestfs_case_sensitive_path"
24156 msgstr ""
24157
24158 #. type: verbatim
24159 #: ../src/guestfs-actions.pod:891
24160 #, no-wrap
24161 msgid ""
24162 " char *\n"
24163 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24164 "                              const char *path);\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../src/guestfs-actions.pod:917
24170 msgid ""
24171 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
24172 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24173 "how the directories were originally created under Windows)."
24174 msgstr ""
24175
24176 #. type: textblock
24177 #: ../src/guestfs-actions.pod:925
24178 msgid "See also C<guestfs_realpath>."
24179 msgstr ""
24180
24181 #. type: textblock
24182 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
24183 msgid "(Added in 1.0.75)"
24184 msgstr ""
24185
24186 #. type: =head2
24187 #: ../src/guestfs-actions.pod:932
24188 msgid "guestfs_cat"
24189 msgstr ""
24190
24191 #. type: verbatim
24192 #: ../src/guestfs-actions.pod:934
24193 #, no-wrap
24194 msgid ""
24195 " char *\n"
24196 " guestfs_cat (guestfs_h *g,\n"
24197 "              const char *path);\n"
24198 "\n"
24199 msgstr ""
24200
24201 #. type: textblock
24202 #: ../src/guestfs-actions.pod:940
24203 msgid ""
24204 "Note that this function cannot correctly handle binary files (specifically, "
24205 "files containing C<\\0> character which is treated as end of string).  For "
24206 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24207 "functions which have a more complex interface."
24208 msgstr ""
24209
24210 #. type: textblock
24211 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488 ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699 ../src/guestfs-actions.pod:7713
24212 msgid "(Added in 0.4)"
24213 msgstr ""
24214
24215 #. type: =head2
24216 #: ../src/guestfs-actions.pod:953
24217 msgid "guestfs_checksum"
24218 msgstr ""
24219
24220 #. type: verbatim
24221 #: ../src/guestfs-actions.pod:955
24222 #, no-wrap
24223 msgid ""
24224 " char *\n"
24225 " guestfs_checksum (guestfs_h *g,\n"
24226 "                   const char *csumtype,\n"
24227 "                   const char *path);\n"
24228 "\n"
24229 msgstr ""
24230
24231 #. type: textblock
24232 #: ../src/guestfs-actions.pod:1001
24233 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../src/guestfs-actions.pod:1003
24238 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24239 msgstr ""
24240
24241 #. type: textblock
24242 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591 ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681 ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
24243 msgid "(Added in 1.0.2)"
24244 msgstr ""
24245
24246 #. type: =head2
24247 #: ../src/guestfs-actions.pod:1010
24248 msgid "guestfs_checksum_device"
24249 msgstr ""
24250
24251 #. type: verbatim
24252 #: ../src/guestfs-actions.pod:1012
24253 #, no-wrap
24254 msgid ""
24255 " char *\n"
24256 " guestfs_checksum_device (guestfs_h *g,\n"
24257 "                          const char *csumtype,\n"
24258 "                          const char *device);\n"
24259 "\n"
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:1017
24264 msgid ""
24265 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24266 "device named C<device>.  For the types of checksums supported see the "
24267 "C<guestfs_checksum> command."
24268 msgstr ""
24269
24270 #. type: textblock
24271 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7725
24272 msgid "(Added in 1.3.2)"
24273 msgstr ""
24274
24275 #. type: =head2
24276 #: ../src/guestfs-actions.pod:1026
24277 msgid "guestfs_checksums_out"
24278 msgstr ""
24279
24280 #. type: verbatim
24281 #: ../src/guestfs-actions.pod:1028
24282 #, no-wrap
24283 msgid ""
24284 " int\n"
24285 " guestfs_checksums_out (guestfs_h *g,\n"
24286 "                        const char *csumtype,\n"
24287 "                        const char *directory,\n"
24288 "                        const char *sumsfile);\n"
24289 "\n"
24290 msgstr ""
24291
24292 #. type: textblock
24293 #: ../src/guestfs-actions.pod:1048
24294 msgid "(Added in 1.3.7)"
24295 msgstr ""
24296
24297 #. type: =head2
24298 #: ../src/guestfs-actions.pod:1050
24299 msgid "guestfs_chmod"
24300 msgstr ""
24301
24302 #. type: verbatim
24303 #: ../src/guestfs-actions.pod:1052
24304 #, no-wrap
24305 msgid ""
24306 " int\n"
24307 " guestfs_chmod (guestfs_h *g,\n"
24308 "                int mode,\n"
24309 "                const char *path);\n"
24310 "\n"
24311 msgstr ""
24312
24313 #. type: =head2
24314 #: ../src/guestfs-actions.pod:1070
24315 msgid "guestfs_chown"
24316 msgstr ""
24317
24318 #. type: verbatim
24319 #: ../src/guestfs-actions.pod:1072
24320 #, no-wrap
24321 msgid ""
24322 " int\n"
24323 " guestfs_chown (guestfs_h *g,\n"
24324 "                int owner,\n"
24325 "                int group,\n"
24326 "                const char *path);\n"
24327 "\n"
24328 msgstr ""
24329
24330 #. type: =head2
24331 #: ../src/guestfs-actions.pod:1088
24332 msgid "guestfs_command"
24333 msgstr ""
24334
24335 #. type: verbatim
24336 #: ../src/guestfs-actions.pod:1090
24337 #, no-wrap
24338 msgid ""
24339 " char *\n"
24340 " guestfs_command (guestfs_h *g,\n"
24341 "                  char *const *arguments);\n"
24342 "\n"
24343 msgstr ""
24344
24345 #. type: textblock
24346 #: ../src/guestfs-actions.pod:1099
24347 msgid ""
24348 "The single parameter is an argv-style list of arguments.  The first element "
24349 "is the name of the program to run.  Subsequent elements are parameters.  The "
24350 "list must be non-empty (ie. must contain a program name).  Note that the "
24351 "command runs directly, and is I<not> invoked via the shell (see "
24352 "C<guestfs_sh>)."
24353 msgstr ""
24354
24355 #. type: textblock
24356 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1726
24357 msgid "(Added in 0.9.1)"
24358 msgstr ""
24359
24360 #. type: =head2
24361 #: ../src/guestfs-actions.pod:1132
24362 msgid "guestfs_command_lines"
24363 msgstr ""
24364
24365 #. type: verbatim
24366 #: ../src/guestfs-actions.pod:1134
24367 #, no-wrap
24368 msgid ""
24369 " char **\n"
24370 " guestfs_command_lines (guestfs_h *g,\n"
24371 "                        char *const *arguments);\n"
24372 "\n"
24373 msgstr ""
24374
24375 #. type: textblock
24376 #: ../src/guestfs-actions.pod:1138
24377 msgid ""
24378 "This is the same as C<guestfs_command>, but splits the result into a list of "
24379 "lines."
24380 msgstr ""
24381
24382 #. type: textblock
24383 #: ../src/guestfs-actions.pod:1141
24384 msgid "See also: C<guestfs_sh_lines>"
24385 msgstr ""
24386
24387 #. type: =head2
24388 #: ../src/guestfs-actions.pod:1152
24389 msgid "guestfs_compress_device_out"
24390 msgstr ""
24391
24392 #. type: verbatim
24393 #: ../src/guestfs-actions.pod:1154
24394 #, no-wrap
24395 msgid ""
24396 " int\n"
24397 " guestfs_compress_device_out (guestfs_h *g,\n"
24398 "                              const char *ctype,\n"
24399 "                              const char *device,\n"
24400 "                              const char *zdevice,\n"
24401 "                              ...);\n"
24402 "\n"
24403 msgstr ""
24404
24405 #. type: verbatim
24406 #: ../src/guestfs-actions.pod:1166
24407 #, no-wrap
24408 msgid ""
24409 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
24410 "\n"
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../src/guestfs-actions.pod:1171
24415 msgid ""
24416 "The C<ctype> and optional C<level> parameters have the same meaning as in "
24417 "C<guestfs_compress_out>."
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235 ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
24422 msgid "(Added in 1.13.15)"
24423 msgstr ""
24424
24425 #. type: =head2
24426 #: ../src/guestfs-actions.pod:1178
24427 msgid "guestfs_compress_device_out_va"
24428 msgstr ""
24429
24430 #. type: verbatim
24431 #: ../src/guestfs-actions.pod:1180
24432 #, no-wrap
24433 msgid ""
24434 " int\n"
24435 " guestfs_compress_device_out_va (guestfs_h *g,\n"
24436 "                                 const char *ctype,\n"
24437 "                                 const char *device,\n"
24438 "                                 const char *zdevice,\n"
24439 "                                 va_list args);\n"
24440 "\n"
24441 msgstr ""
24442
24443 #. type: textblock
24444 #: ../src/guestfs-actions.pod:1187
24445 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
24446 msgstr ""
24447
24448 #. type: =head2
24449 #: ../src/guestfs-actions.pod:1191
24450 msgid "guestfs_compress_device_out_argv"
24451 msgstr ""
24452
24453 #. type: verbatim
24454 #: ../src/guestfs-actions.pod:1193
24455 #, no-wrap
24456 msgid ""
24457 " int\n"
24458 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
24459 "                                   const char *ctype,\n"
24460 "                                   const char *device,\n"
24461 "                                   const char *zdevice,\n"
24462 "                                   const struct "
24463 "guestfs_compress_device_out_argv *optargs);\n"
24464 "\n"
24465 msgstr ""
24466
24467 #. type: textblock
24468 #: ../src/guestfs-actions.pod:1200
24469 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
24470 msgstr ""
24471
24472 #. type: =head2
24473 #: ../src/guestfs-actions.pod:1204
24474 msgid "guestfs_compress_out"
24475 msgstr ""
24476
24477 #. type: verbatim
24478 #: ../src/guestfs-actions.pod:1206
24479 #, no-wrap
24480 msgid ""
24481 " int\n"
24482 " guestfs_compress_out (guestfs_h *g,\n"
24483 "                       const char *ctype,\n"
24484 "                       const char *file,\n"
24485 "                       const char *zfile,\n"
24486 "                       ...);\n"
24487 "\n"
24488 msgstr ""
24489
24490 #. type: verbatim
24491 #: ../src/guestfs-actions.pod:1218
24492 #, no-wrap
24493 msgid ""
24494 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
24495 "\n"
24496 msgstr ""
24497
24498 #. type: =head2
24499 #: ../src/guestfs-actions.pod:1237
24500 msgid "guestfs_compress_out_va"
24501 msgstr ""
24502
24503 #. type: verbatim
24504 #: ../src/guestfs-actions.pod:1239
24505 #, no-wrap
24506 msgid ""
24507 " int\n"
24508 " guestfs_compress_out_va (guestfs_h *g,\n"
24509 "                          const char *ctype,\n"
24510 "                          const char *file,\n"
24511 "                          const char *zfile,\n"
24512 "                          va_list args);\n"
24513 "\n"
24514 msgstr ""
24515
24516 #. type: textblock
24517 #: ../src/guestfs-actions.pod:1246
24518 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
24519 msgstr ""
24520
24521 #. type: =head2
24522 #: ../src/guestfs-actions.pod:1250
24523 msgid "guestfs_compress_out_argv"
24524 msgstr ""
24525
24526 #. type: verbatim
24527 #: ../src/guestfs-actions.pod:1252
24528 #, no-wrap
24529 msgid ""
24530 " int\n"
24531 " guestfs_compress_out_argv (guestfs_h *g,\n"
24532 "                            const char *ctype,\n"
24533 "                            const char *file,\n"
24534 "                            const char *zfile,\n"
24535 "                            const struct guestfs_compress_out_argv "
24536 "*optargs);\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../src/guestfs-actions.pod:1259
24542 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
24543 msgstr ""
24544
24545 #. type: =head2
24546 #: ../src/guestfs-actions.pod:1263
24547 msgid "guestfs_config"
24548 msgstr ""
24549
24550 #. type: verbatim
24551 #: ../src/guestfs-actions.pod:1265
24552 #, no-wrap
24553 msgid ""
24554 " int\n"
24555 " guestfs_config (guestfs_h *g,\n"
24556 "                 const char *qemuparam,\n"
24557 "                 const char *qemuvalue);\n"
24558 "\n"
24559 msgstr ""
24560
24561 #. type: =head2
24562 #: ../src/guestfs-actions.pod:1283
24563 msgid "guestfs_copy_size"
24564 msgstr ""
24565
24566 #. type: verbatim
24567 #: ../src/guestfs-actions.pod:1285
24568 #, no-wrap
24569 msgid ""
24570 " int\n"
24571 " guestfs_copy_size (guestfs_h *g,\n"
24572 "                    const char *src,\n"
24573 "                    const char *dest,\n"
24574 "                    int64_t size);\n"
24575 "\n"
24576 msgstr ""
24577
24578 #. type: textblock
24579 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498 ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897 ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397 ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7961
24580 msgid ""
24581 "This long-running command can generate progress notification messages so "
24582 "that the caller can display a progress bar or indicator.  To receive these "
24583 "messages, the caller must register a progress event callback.  See "
24584 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
24585 msgstr ""
24586
24587 #. type: textblock
24588 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515 ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
24589 msgid "(Added in 1.0.87)"
24590 msgstr ""
24591
24592 #. type: =head2
24593 #: ../src/guestfs-actions.pod:1306
24594 msgid "guestfs_cp"
24595 msgstr ""
24596
24597 #. type: verbatim
24598 #: ../src/guestfs-actions.pod:1308
24599 #, no-wrap
24600 msgid ""
24601 " int\n"
24602 " guestfs_cp (guestfs_h *g,\n"
24603 "             const char *src,\n"
24604 "             const char *dest);\n"
24605 "\n"
24606 msgstr ""
24607
24608 #. type: textblock
24609 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478 ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5734
24610 msgid "(Added in 1.0.18)"
24611 msgstr ""
24612
24613 #. type: =head2
24614 #: ../src/guestfs-actions.pod:1320
24615 msgid "guestfs_cp_a"
24616 msgstr ""
24617
24618 #. type: verbatim
24619 #: ../src/guestfs-actions.pod:1322
24620 #, no-wrap
24621 msgid ""
24622 " int\n"
24623 " guestfs_cp_a (guestfs_h *g,\n"
24624 "               const char *src,\n"
24625 "               const char *dest);\n"
24626 "\n"
24627 msgstr ""
24628
24629 #. type: =head2
24630 #: ../src/guestfs-actions.pod:1334
24631 msgid "guestfs_dd"
24632 msgstr ""
24633
24634 #. type: verbatim
24635 #: ../src/guestfs-actions.pod:1336
24636 #, no-wrap
24637 msgid ""
24638 " int\n"
24639 " guestfs_dd (guestfs_h *g,\n"
24640 "             const char *src,\n"
24641 "             const char *dest);\n"
24642 "\n"
24643 msgstr ""
24644
24645 #. type: textblock
24646 #: ../src/guestfs-actions.pod:1346
24647 msgid ""
24648 "If the destination is a device, it must be as large or larger than the "
24649 "source file or device, otherwise the copy will fail.  This command cannot do "
24650 "partial copies (see C<guestfs_copy_size>)."
24651 msgstr ""
24652
24653 #. type: =head2
24654 #: ../src/guestfs-actions.pod:1354
24655 msgid "guestfs_df"
24656 msgstr ""
24657
24658 #. type: verbatim
24659 #: ../src/guestfs-actions.pod:1356
24660 #, no-wrap
24661 msgid ""
24662 " char *\n"
24663 " guestfs_df (guestfs_h *g);\n"
24664 "\n"
24665 msgstr ""
24666
24667 #. type: textblock
24668 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24669 msgid ""
24670 "This command is mostly useful for interactive sessions.  It is I<not> "
24671 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24672 "from programs."
24673 msgstr ""
24674
24675 #. type: textblock
24676 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510 ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602 ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159 ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
24677 msgid "(Added in 1.0.54)"
24678 msgstr ""
24679
24680 #. type: =head2
24681 #: ../src/guestfs-actions.pod:1370
24682 msgid "guestfs_df_h"
24683 msgstr ""
24684
24685 #. type: verbatim
24686 #: ../src/guestfs-actions.pod:1372
24687 #, no-wrap
24688 msgid ""
24689 " char *\n"
24690 " guestfs_df_h (guestfs_h *g);\n"
24691 "\n"
24692 msgstr ""
24693
24694 #. type: =head2
24695 #: ../src/guestfs-actions.pod:1387
24696 msgid "guestfs_dmesg"
24697 msgstr ""
24698
24699 #. type: verbatim
24700 #: ../src/guestfs-actions.pod:1389
24701 #, no-wrap
24702 msgid ""
24703 " char *\n"
24704 " guestfs_dmesg (guestfs_h *g);\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:1396
24710 msgid ""
24711 "Another way to get the same information is to enable verbose messages with "
24712 "C<guestfs_set_verbose> or by setting the environment variable "
24713 "C<LIBGUESTFS_DEBUG=1> before running the program."
24714 msgstr ""
24715
24716 #. type: =head2
24717 #: ../src/guestfs-actions.pod:1406
24718 msgid "guestfs_download"
24719 msgstr ""
24720
24721 #. type: verbatim
24722 #: ../src/guestfs-actions.pod:1408
24723 #, no-wrap
24724 msgid ""
24725 " int\n"
24726 " guestfs_download (guestfs_h *g,\n"
24727 "                   const char *remotefilename,\n"
24728 "                   const char *filename);\n"
24729 "\n"
24730 msgstr ""
24731
24732 #. type: textblock
24733 #: ../src/guestfs-actions.pod:1418
24734 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24735 msgstr ""
24736
24737 #. type: =head2
24738 #: ../src/guestfs-actions.pod:1429
24739 msgid "guestfs_download_offset"
24740 msgstr ""
24741
24742 #. type: verbatim
24743 #: ../src/guestfs-actions.pod:1431
24744 #, no-wrap
24745 msgid ""
24746 " int\n"
24747 " guestfs_download_offset (guestfs_h *g,\n"
24748 "                          const char *remotefilename,\n"
24749 "                          const char *filename,\n"
24750 "                          int64_t offset,\n"
24751 "                          int64_t size);\n"
24752 "\n"
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../src/guestfs-actions.pod:1444
24757 msgid ""
24758 "Note that there is no limit on the amount of data that can be downloaded "
24759 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24760 "full amount unless an error occurs."
24761 msgstr ""
24762
24763 #. type: textblock
24764 #: ../src/guestfs-actions.pod:1449
24765 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24766 msgstr ""
24767
24768 #. type: textblock
24769 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
24770 msgid "(Added in 1.5.17)"
24771 msgstr ""
24772
24773 #. type: =head2
24774 #: ../src/guestfs-actions.pod:1460
24775 msgid "guestfs_drop_caches"
24776 msgstr ""
24777
24778 #. type: verbatim
24779 #: ../src/guestfs-actions.pod:1462
24780 #, no-wrap
24781 msgid ""
24782 " int\n"
24783 " guestfs_drop_caches (guestfs_h *g,\n"
24784 "                      int whattodrop);\n"
24785 "\n"
24786 msgstr ""
24787
24788 #. type: =head2
24789 #: ../src/guestfs-actions.pod:1480
24790 msgid "guestfs_du"
24791 msgstr ""
24792
24793 #. type: verbatim
24794 #: ../src/guestfs-actions.pod:1482
24795 #, no-wrap
24796 msgid ""
24797 " int64_t\n"
24798 " guestfs_du (guestfs_h *g,\n"
24799 "             const char *path);\n"
24800 "\n"
24801 msgstr ""
24802
24803 #. type: =head2
24804 #: ../src/guestfs-actions.pod:1505
24805 msgid "guestfs_e2fsck_f"
24806 msgstr ""
24807
24808 #. type: verbatim
24809 #: ../src/guestfs-actions.pod:1507
24810 #, no-wrap
24811 msgid ""
24812 " int\n"
24813 " guestfs_e2fsck_f (guestfs_h *g,\n"
24814 "                   const char *device);\n"
24815 "\n"
24816 msgstr ""
24817
24818 #. type: textblock
24819 #: ../src/guestfs-actions.pod:1515
24820 msgid ""
24821 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24822 "Normally you should use C<guestfs_fsck>."
24823 msgstr ""
24824
24825 #. type: textblock
24826 #: ../src/guestfs-actions.pod:1520
24827 msgid "(Added in 1.0.29)"
24828 msgstr ""
24829
24830 #. type: =head2
24831 #: ../src/guestfs-actions.pod:1522
24832 msgid "guestfs_echo_daemon"
24833 msgstr ""
24834
24835 #. type: verbatim
24836 #: ../src/guestfs-actions.pod:1524
24837 #, no-wrap
24838 msgid ""
24839 " char *\n"
24840 " guestfs_echo_daemon (guestfs_h *g,\n"
24841 "                      char *const *words);\n"
24842 "\n"
24843 msgstr ""
24844
24845 #. type: textblock
24846 #: ../src/guestfs-actions.pod:1533
24847 msgid "See also C<guestfs_ping_daemon>."
24848 msgstr ""
24849
24850 #. type: textblock
24851 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:6607
24852 msgid "(Added in 1.0.69)"
24853 msgstr ""
24854
24855 #. type: =head2
24856 #: ../src/guestfs-actions.pod:1540
24857 msgid "guestfs_egrep"
24858 msgstr ""
24859
24860 #. type: verbatim
24861 #: ../src/guestfs-actions.pod:1542
24862 #, no-wrap
24863 msgid ""
24864 " char **\n"
24865 " guestfs_egrep (guestfs_h *g,\n"
24866 "                const char *regex,\n"
24867 "                const char *path);\n"
24868 "\n"
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576 ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623 ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651 ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005 ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032 ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
24873 msgid "(Added in 1.0.66)"
24874 msgstr ""
24875
24876 #. type: =head2
24877 #: ../src/guestfs-actions.pod:1559
24878 msgid "guestfs_egrepi"
24879 msgstr ""
24880
24881 #. type: verbatim
24882 #: ../src/guestfs-actions.pod:1561
24883 #, no-wrap
24884 msgid ""
24885 " char **\n"
24886 " guestfs_egrepi (guestfs_h *g,\n"
24887 "                 const char *regex,\n"
24888 "                 const char *path);\n"
24889 "\n"
24890 msgstr ""
24891
24892 #. type: =head2
24893 #: ../src/guestfs-actions.pod:1578
24894 msgid "guestfs_equal"
24895 msgstr ""
24896
24897 #. type: verbatim
24898 #: ../src/guestfs-actions.pod:1580
24899 #, no-wrap
24900 msgid ""
24901 " int\n"
24902 " guestfs_equal (guestfs_h *g,\n"
24903 "                const char *file1,\n"
24904 "                const char *file2);\n"
24905 "\n"
24906 msgstr ""
24907
24908 #. type: =head2
24909 #: ../src/guestfs-actions.pod:1594
24910 msgid "guestfs_exists"
24911 msgstr ""
24912
24913 #. type: verbatim
24914 #: ../src/guestfs-actions.pod:1596
24915 #, no-wrap
24916 msgid ""
24917 " int\n"
24918 " guestfs_exists (guestfs_h *g,\n"
24919 "                 const char *path);\n"
24920 "\n"
24921 msgstr ""
24922
24923 #. type: textblock
24924 #: ../src/guestfs-actions.pod:1603
24925 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24926 msgstr ""
24927
24928 #. type: =head2
24929 #: ../src/guestfs-actions.pod:1609
24930 msgid "guestfs_fallocate"
24931 msgstr ""
24932
24933 #. type: verbatim
24934 #: ../src/guestfs-actions.pod:1611
24935 #, no-wrap
24936 msgid ""
24937 " int\n"
24938 " guestfs_fallocate (guestfs_h *g,\n"
24939 "                    const char *path,\n"
24940 "                    int len);\n"
24941 "\n"
24942 msgstr ""
24943
24944 #. type: textblock
24945 #: ../src/guestfs-actions.pod:1616
24946 msgid ""
24947 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24948 "call instead."
24949 msgstr ""
24950
24951 #. type: =head2
24952 #: ../src/guestfs-actions.pod:1635
24953 msgid "guestfs_fallocate64"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../src/guestfs-actions.pod:1637
24958 #, no-wrap
24959 msgid ""
24960 " int\n"
24961 " guestfs_fallocate64 (guestfs_h *g,\n"
24962 "                      const char *path,\n"
24963 "                      int64_t len);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: textblock
24968 #: ../src/guestfs-actions.pod:1646
24969 msgid ""
24970 "Note that this call allocates disk blocks for the file.  To create a sparse "
24971 "file use C<guestfs_truncate_size> instead."
24972 msgstr ""
24973
24974 #. type: textblock
24975 #: ../src/guestfs-actions.pod:1649
24976 msgid ""
24977 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
24978 "oversight it only allowed 30 bit lengths to be specified, effectively "
24979 "limiting the maximum size of files created through that call to 1GB."
24980 msgstr ""
24981
24982 #. type: textblock
24983 #: ../src/guestfs-actions.pod:1660
24984 msgid "(Added in 1.3.17)"
24985 msgstr ""
24986
24987 #. type: =head2
24988 #: ../src/guestfs-actions.pod:1662
24989 msgid "guestfs_fgrep"
24990 msgstr ""
24991
24992 #. type: verbatim
24993 #: ../src/guestfs-actions.pod:1664
24994 #, no-wrap
24995 msgid ""
24996 " char **\n"
24997 " guestfs_fgrep (guestfs_h *g,\n"
24998 "                const char *pattern,\n"
24999 "                const char *path);\n"
25000 "\n"
25001 msgstr ""
25002
25003 #. type: =head2
25004 #: ../src/guestfs-actions.pod:1681
25005 msgid "guestfs_fgrepi"
25006 msgstr ""
25007
25008 #. type: verbatim
25009 #: ../src/guestfs-actions.pod:1683
25010 #, no-wrap
25011 msgid ""
25012 " char **\n"
25013 " guestfs_fgrepi (guestfs_h *g,\n"
25014 "                 const char *pattern,\n"
25015 "                 const char *path);\n"
25016 "\n"
25017 msgstr ""
25018
25019 #. type: =head2
25020 #: ../src/guestfs-actions.pod:1700
25021 msgid "guestfs_file"
25022 msgstr ""
25023
25024 #. type: verbatim
25025 #: ../src/guestfs-actions.pod:1702
25026 #, no-wrap
25027 msgid ""
25028 " char *\n"
25029 " guestfs_file (guestfs_h *g,\n"
25030 "               const char *path);\n"
25031 "\n"
25032 msgstr ""
25033
25034 #. type: textblock
25035 #: ../src/guestfs-actions.pod:1720
25036 msgid ""
25037 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25038 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25039 msgstr ""
25040
25041 #. type: =head2
25042 #: ../src/guestfs-actions.pod:1728
25043 msgid "guestfs_file_architecture"
25044 msgstr ""
25045
25046 #. type: verbatim
25047 #: ../src/guestfs-actions.pod:1730
25048 #, no-wrap
25049 msgid ""
25050 " char *\n"
25051 " guestfs_file_architecture (guestfs_h *g,\n"
25052 "                            const char *filename);\n"
25053 "\n"
25054 msgstr ""
25055
25056 #. type: textblock
25057 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001 ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752 ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912 ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117 ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232 ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562 ../src/guestfs-actions.pod:3694
25058 msgid "(Added in 1.5.3)"
25059 msgstr ""
25060
25061 #. type: =head2
25062 #: ../src/guestfs-actions.pod:1840
25063 msgid "guestfs_filesize"
25064 msgstr ""
25065
25066 #. type: verbatim
25067 #: ../src/guestfs-actions.pod:1842
25068 #, no-wrap
25069 msgid ""
25070 " int64_t\n"
25071 " guestfs_filesize (guestfs_h *g,\n"
25072 "                   const char *file);\n"
25073 "\n"
25074 msgstr ""
25075
25076 #. type: textblock
25077 #: ../src/guestfs-actions.pod:1848
25078 msgid ""
25079 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25080 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25081 "devices, use C<guestfs_blockdev_getsize64>."
25082 msgstr ""
25083
25084 #. type: textblock
25085 #: ../src/guestfs-actions.pod:1854
25086 msgid "(Added in 1.0.82)"
25087 msgstr ""
25088
25089 #. type: =head2
25090 #: ../src/guestfs-actions.pod:1856
25091 msgid "guestfs_fill"
25092 msgstr ""
25093
25094 #. type: verbatim
25095 #: ../src/guestfs-actions.pod:1858
25096 #, no-wrap
25097 msgid ""
25098 " int\n"
25099 " guestfs_fill (guestfs_h *g,\n"
25100 "               int c,\n"
25101 "               int len,\n"
25102 "               const char *path);\n"
25103 "\n"
25104 msgstr ""
25105
25106 #. type: textblock
25107 #: ../src/guestfs-actions.pod:1868
25108 msgid ""
25109 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25110 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25111 "bytes use C<guestfs_fill_pattern>."
25112 msgstr ""
25113
25114 #. type: textblock
25115 #: ../src/guestfs-actions.pod:1880
25116 msgid "(Added in 1.0.79)"
25117 msgstr ""
25118
25119 #. type: =head2
25120 #: ../src/guestfs-actions.pod:1882
25121 msgid "guestfs_fill_pattern"
25122 msgstr ""
25123
25124 #. type: verbatim
25125 #: ../src/guestfs-actions.pod:1884
25126 #, no-wrap
25127 msgid ""
25128 " int\n"
25129 " guestfs_fill_pattern (guestfs_h *g,\n"
25130 "                       const char *pattern,\n"
25131 "                       int len,\n"
25132 "                       const char *path);\n"
25133 "\n"
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../src/guestfs-actions.pod:1890
25138 msgid ""
25139 "This function is like C<guestfs_fill> except that it creates a new file of "
25140 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25141 "pattern is truncated if necessary to ensure the length of the file is "
25142 "exactly C<len> bytes."
25143 msgstr ""
25144
25145 #. type: textblock
25146 #: ../src/guestfs-actions.pod:1902
25147 msgid "(Added in 1.3.12)"
25148 msgstr ""
25149
25150 #. type: =head2
25151 #: ../src/guestfs-actions.pod:1904
25152 msgid "guestfs_find"
25153 msgstr ""
25154
25155 #. type: verbatim
25156 #: ../src/guestfs-actions.pod:1906
25157 #, no-wrap
25158 msgid ""
25159 " char **\n"
25160 " guestfs_find (guestfs_h *g,\n"
25161 "               const char *directory);\n"
25162 "\n"
25163 msgstr ""
25164
25165 #. type: textblock
25166 #: ../src/guestfs-actions.pod:1922
25167 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25168 msgstr ""
25169
25170 #. type: textblock
25171 #: ../src/guestfs-actions.pod:1935
25172 msgid "See also C<guestfs_find0>."
25173 msgstr ""
25174
25175 #. type: textblock
25176 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452 ../src/guestfs-actions.pod:6152
25177 msgid "(Added in 1.0.27)"
25178 msgstr ""
25179
25180 #. type: =head2
25181 #: ../src/guestfs-actions.pod:1946
25182 msgid "guestfs_find0"
25183 msgstr ""
25184
25185 #. type: verbatim
25186 #: ../src/guestfs-actions.pod:1948
25187 #, no-wrap
25188 msgid ""
25189 " int\n"
25190 " guestfs_find0 (guestfs_h *g,\n"
25191 "                const char *directory,\n"
25192 "                const char *files);\n"
25193 "\n"
25194 msgstr ""
25195
25196 #. type: textblock
25197 #: ../src/guestfs-actions.pod:1957
25198 msgid ""
25199 "This command works the same way as C<guestfs_find> with the following "
25200 "exceptions:"
25201 msgstr ""
25202
25203 #. type: textblock
25204 #: ../src/guestfs-actions.pod:1984
25205 msgid "(Added in 1.0.74)"
25206 msgstr ""
25207
25208 #. type: =head2
25209 #: ../src/guestfs-actions.pod:1986
25210 msgid "guestfs_findfs_label"
25211 msgstr ""
25212
25213 #. type: verbatim
25214 #: ../src/guestfs-actions.pod:1988
25215 #, no-wrap
25216 msgid ""
25217 " char *\n"
25218 " guestfs_findfs_label (guestfs_h *g,\n"
25219 "                       const char *label);\n"
25220 "\n"
25221 msgstr ""
25222
25223 #. type: textblock
25224 #: ../src/guestfs-actions.pod:1996
25225 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25226 msgstr ""
25227
25228 #. type: =head2
25229 #: ../src/guestfs-actions.pod:2003
25230 msgid "guestfs_findfs_uuid"
25231 msgstr ""
25232
25233 #. type: verbatim
25234 #: ../src/guestfs-actions.pod:2005
25235 #, no-wrap
25236 msgid ""
25237 " char *\n"
25238 " guestfs_findfs_uuid (guestfs_h *g,\n"
25239 "                      const char *uuid);\n"
25240 "\n"
25241 msgstr ""
25242
25243 #. type: textblock
25244 #: ../src/guestfs-actions.pod:2013
25245 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25246 msgstr ""
25247
25248 #. type: =head2
25249 #: ../src/guestfs-actions.pod:2020
25250 msgid "guestfs_fsck"
25251 msgstr ""
25252
25253 #. type: verbatim
25254 #: ../src/guestfs-actions.pod:2022
25255 #, no-wrap
25256 msgid ""
25257 " int\n"
25258 " guestfs_fsck (guestfs_h *g,\n"
25259 "               const char *fstype,\n"
25260 "               const char *device);\n"
25261 "\n"
25262 msgstr ""
25263
25264 #. type: textblock
25265 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
25266 msgid "(Added in 1.0.16)"
25267 msgstr ""
25268
25269 #. type: =head2
25270 #: ../src/guestfs-actions.pod:2059
25271 msgid "guestfs_get_append"
25272 msgstr ""
25273
25274 #. type: verbatim
25275 #: ../src/guestfs-actions.pod:2061
25276 #, no-wrap
25277 msgid ""
25278 " const char *\n"
25279 " guestfs_get_append (guestfs_h *g);\n"
25280 "\n"
25281 msgstr ""
25282
25283 #. type: textblock
25284 #: ../src/guestfs-actions.pod:2069
25285 msgid ""
25286 "This function returns a string which may be NULL.  There is no way to return "
25287 "an error from this function.  The string is owned by the guest handle and "
25288 "must I<not> be freed."
25289 msgstr ""
25290
25291 #. type: textblock
25292 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830 ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770 ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805 ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
25293 msgid "(Added in 1.0.26)"
25294 msgstr ""
25295
25296 #. type: =head2
25297 #: ../src/guestfs-actions.pod:2075
25298 msgid "guestfs_get_attach_method"
25299 msgstr ""
25300
25301 #. type: verbatim
25302 #: ../src/guestfs-actions.pod:2077
25303 #, no-wrap
25304 msgid ""
25305 " char *\n"
25306 " guestfs_get_attach_method (guestfs_h *g);\n"
25307 "\n"
25308 msgstr ""
25309
25310 #. type: textblock
25311 #: ../src/guestfs-actions.pod:2080
25312 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
25317 msgid "(Added in 1.9.8)"
25318 msgstr ""
25319
25320 #. type: =head2
25321 #: ../src/guestfs-actions.pod:2087
25322 msgid "guestfs_get_autosync"
25323 msgstr ""
25324
25325 #. type: verbatim
25326 #: ../src/guestfs-actions.pod:2089
25327 #, no-wrap
25328 msgid ""
25329 " int\n"
25330 " guestfs_get_autosync (guestfs_h *g);\n"
25331 "\n"
25332 msgstr ""
25333
25334 #. type: =head2
25335 #: ../src/guestfs-actions.pod:2098
25336 msgid "guestfs_get_direct"
25337 msgstr ""
25338
25339 #. type: verbatim
25340 #: ../src/guestfs-actions.pod:2100
25341 #, no-wrap
25342 msgid ""
25343 " int\n"
25344 " guestfs_get_direct (guestfs_h *g);\n"
25345 "\n"
25346 msgstr ""
25347
25348 #. type: textblock
25349 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
25350 msgid "(Added in 1.0.72)"
25351 msgstr ""
25352
25353 #. type: =head2
25354 #: ../src/guestfs-actions.pod:2109
25355 msgid "guestfs_get_e2label"
25356 msgstr ""
25357
25358 #. type: verbatim
25359 #: ../src/guestfs-actions.pod:2111
25360 #, no-wrap
25361 msgid ""
25362 " char *\n"
25363 " guestfs_get_e2label (guestfs_h *g,\n"
25364 "                      const char *device);\n"
25365 "\n"
25366 msgstr ""
25367
25368 #. type: textblock
25369 #: ../src/guestfs-actions.pod:2115
25370 msgid ""
25371 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25372 "call instead."
25373 msgstr ""
25374
25375 #. type: textblock
25376 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
25377 msgid "(Added in 1.0.15)"
25378 msgstr ""
25379
25380 #. type: =head2
25381 #: ../src/guestfs-actions.pod:2130
25382 msgid "guestfs_get_e2uuid"
25383 msgstr ""
25384
25385 #. type: verbatim
25386 #: ../src/guestfs-actions.pod:2132
25387 #, no-wrap
25388 msgid ""
25389 " char *\n"
25390 " guestfs_get_e2uuid (guestfs_h *g,\n"
25391 "                     const char *device);\n"
25392 "\n"
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../src/guestfs-actions.pod:2136
25397 msgid ""
25398 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25399 "call instead."
25400 msgstr ""
25401
25402 #. type: =head2
25403 #: ../src/guestfs-actions.pod:2151
25404 msgid "guestfs_get_memsize"
25405 msgstr ""
25406
25407 #. type: verbatim
25408 #: ../src/guestfs-actions.pod:2153
25409 #, no-wrap
25410 msgid ""
25411 " int\n"
25412 " guestfs_get_memsize (guestfs_h *g);\n"
25413 "\n"
25414 msgstr ""
25415
25416 #. type: textblock
25417 #: ../src/guestfs-actions.pod:2159
25418 msgid ""
25419 "If C<guestfs_set_memsize> was not called on this handle, and if "
25420 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25421 "value for memsize."
25422 msgstr ""
25423
25424 #. type: textblock
25425 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441 ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
25426 msgid "(Added in 1.0.55)"
25427 msgstr ""
25428
25429 #. type: =head2
25430 #: ../src/guestfs-actions.pod:2170
25431 msgid "guestfs_get_network"
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../src/guestfs-actions.pod:2172
25436 #, no-wrap
25437 msgid ""
25438 " int\n"
25439 " guestfs_get_network (guestfs_h *g);\n"
25440 "\n"
25441 msgstr ""
25442
25443 #. type: textblock
25444 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
25445 msgid "(Added in 1.5.4)"
25446 msgstr ""
25447
25448 #. type: =head2
25449 #: ../src/guestfs-actions.pod:2181
25450 msgid "guestfs_get_path"
25451 msgstr ""
25452
25453 #. type: verbatim
25454 #: ../src/guestfs-actions.pod:2183
25455 #, no-wrap
25456 msgid ""
25457 " const char *\n"
25458 " guestfs_get_path (guestfs_h *g);\n"
25459 "\n"
25460 msgstr ""
25461
25462 #. type: textblock
25463 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
25464 msgid ""
25465 "This function returns a string, or NULL on error.  The string is owned by "
25466 "the guest handle and must I<not> be freed."
25467 msgstr ""
25468
25469 #. type: =head2
25470 #: ../src/guestfs-actions.pod:2196
25471 msgid "guestfs_get_pgroup"
25472 msgstr ""
25473
25474 #. type: verbatim
25475 #: ../src/guestfs-actions.pod:2198
25476 #, no-wrap
25477 msgid ""
25478 " int\n"
25479 " guestfs_get_pgroup (guestfs_h *g);\n"
25480 "\n"
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:7844
25485 msgid "(Added in 1.11.18)"
25486 msgstr ""
25487
25488 #. type: =head2
25489 #: ../src/guestfs-actions.pod:2207
25490 msgid "guestfs_get_pid"
25491 msgstr ""
25492
25493 #. type: verbatim
25494 #: ../src/guestfs-actions.pod:2209
25495 #, no-wrap
25496 msgid ""
25497 " int\n"
25498 " guestfs_get_pid (guestfs_h *g);\n"
25499 "\n"
25500 msgstr ""
25501
25502 #. type: textblock
25503 #: ../src/guestfs-actions.pod:2219
25504 msgid "(Added in 1.0.56)"
25505 msgstr ""
25506
25507 #. type: =head2
25508 #: ../src/guestfs-actions.pod:2221
25509 msgid "guestfs_get_qemu"
25510 msgstr ""
25511
25512 #. type: verbatim
25513 #: ../src/guestfs-actions.pod:2223
25514 #, no-wrap
25515 msgid ""
25516 " const char *\n"
25517 " guestfs_get_qemu (guestfs_h *g);\n"
25518 "\n"
25519 msgstr ""
25520
25521 #. type: textblock
25522 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
25523 msgid "(Added in 1.0.6)"
25524 msgstr ""
25525
25526 #. type: =head2
25527 #: ../src/guestfs-actions.pod:2236
25528 msgid "guestfs_get_recovery_proc"
25529 msgstr ""
25530
25531 #. type: verbatim
25532 #: ../src/guestfs-actions.pod:2238
25533 #, no-wrap
25534 msgid ""
25535 " int\n"
25536 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25537 "\n"
25538 msgstr ""
25539
25540 #. type: textblock
25541 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816 ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760 ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7467
25542 msgid "(Added in 1.0.77)"
25543 msgstr ""
25544
25545 #. type: =head2
25546 #: ../src/guestfs-actions.pod:2247
25547 msgid "guestfs_get_selinux"
25548 msgstr ""
25549
25550 #. type: verbatim
25551 #: ../src/guestfs-actions.pod:2249
25552 #, no-wrap
25553 msgid ""
25554 " int\n"
25555 " guestfs_get_selinux (guestfs_h *g);\n"
25556 "\n"
25557 msgstr ""
25558
25559 #. type: textblock
25560 #: ../src/guestfs-actions.pod:2252
25561 msgid ""
25562 "This returns the current setting of the selinux flag which is passed to the "
25563 "appliance at boot time.  See C<guestfs_set_selinux>."
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
25568 msgid "(Added in 1.0.67)"
25569 msgstr ""
25570
25571 #. type: =head2
25572 #: ../src/guestfs-actions.pod:2262
25573 msgid "guestfs_get_smp"
25574 msgstr ""
25575
25576 #. type: verbatim
25577 #: ../src/guestfs-actions.pod:2264
25578 #, no-wrap
25579 msgid ""
25580 " int\n"
25581 " guestfs_get_smp (guestfs_h *g);\n"
25582 "\n"
25583 msgstr ""
25584
25585 #. type: =head2
25586 #: ../src/guestfs-actions.pod:2273
25587 msgid "guestfs_get_state"
25588 msgstr ""
25589
25590 #. type: verbatim
25591 #: ../src/guestfs-actions.pod:2275
25592 #, no-wrap
25593 msgid ""
25594 " int\n"
25595 " guestfs_get_state (guestfs_h *g);\n"
25596 "\n"
25597 msgstr ""
25598
25599 #. type: =head2
25600 #: ../src/guestfs-actions.pod:2287
25601 msgid "guestfs_get_trace"
25602 msgstr ""
25603
25604 #. type: verbatim
25605 #: ../src/guestfs-actions.pod:2289
25606 #, no-wrap
25607 msgid ""
25608 " int\n"
25609 " guestfs_get_trace (guestfs_h *g);\n"
25610 "\n"
25611 msgstr ""
25612
25613 #. type: =head2
25614 #: ../src/guestfs-actions.pod:2298
25615 msgid "guestfs_get_umask"
25616 msgstr ""
25617
25618 #. type: verbatim
25619 #: ../src/guestfs-actions.pod:2300
25620 #, no-wrap
25621 msgid ""
25622 " int\n"
25623 " guestfs_get_umask (guestfs_h *g);\n"
25624 "\n"
25625 msgstr ""
25626
25627 #. type: textblock
25628 #: ../src/guestfs-actions.pod:2303
25629 msgid ""
25630 "Return the current umask.  By default the umask is C<022> unless it has been "
25631 "set by calling C<guestfs_umask>."
25632 msgstr ""
25633
25634 #. type: =head2
25635 #: ../src/guestfs-actions.pod:2310
25636 msgid "guestfs_get_verbose"
25637 msgstr ""
25638
25639 #. type: verbatim
25640 #: ../src/guestfs-actions.pod:2312
25641 #, no-wrap
25642 msgid ""
25643 " int\n"
25644 " guestfs_get_verbose (guestfs_h *g);\n"
25645 "\n"
25646 msgstr ""
25647
25648 #. type: =head2
25649 #: ../src/guestfs-actions.pod:2321
25650 msgid "guestfs_getcon"
25651 msgstr ""
25652
25653 #. type: verbatim
25654 #: ../src/guestfs-actions.pod:2323
25655 #, no-wrap
25656 msgid ""
25657 " char *\n"
25658 " guestfs_getcon (guestfs_h *g);\n"
25659 "\n"
25660 msgstr ""
25661
25662 #. type: textblock
25663 #: ../src/guestfs-actions.pod:2328
25664 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25665 msgstr ""
25666
25667 #. type: =head2
25668 #: ../src/guestfs-actions.pod:2336
25669 msgid "guestfs_getxattr"
25670 msgstr ""
25671
25672 #. type: verbatim
25673 #: ../src/guestfs-actions.pod:2338
25674 #, no-wrap
25675 msgid ""
25676 " char *\n"
25677 " guestfs_getxattr (guestfs_h *g,\n"
25678 "                   const char *path,\n"
25679 "                   const char *name,\n"
25680 "                   size_t *size_r);\n"
25681 "\n"
25682 msgstr ""
25683
25684 #. type: textblock
25685 #: ../src/guestfs-actions.pod:2344
25686 msgid ""
25687 "Get a single extended attribute from file C<path> named C<name>.  This call "
25688 "follows symlinks.  If you want to lookup an extended attribute for the "
25689 "symlink itself, use C<guestfs_lgetxattr>."
25690 msgstr ""
25691
25692 #. type: textblock
25693 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
25694 msgid ""
25695 "Normally it is better to get all extended attributes from a file in one go "
25696 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25697 "implementations are buggy and do not provide a way to list out attributes.  "
25698 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25699 "extended attributes you want in advance and call this function."
25700 msgstr ""
25701
25702 #. type: textblock
25703 #: ../src/guestfs-actions.pod:2358
25704 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25705 msgstr ""
25706
25707 #. type: textblock
25708 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842 ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5960
25709 msgid ""
25710 "This function returns a buffer, or NULL on error.  The size of the returned "
25711 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25712 "after use>."
25713 msgstr ""
25714
25715 #. type: textblock
25716 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
25717 msgid "(Added in 1.7.24)"
25718 msgstr ""
25719
25720 #. type: =head2
25721 #: ../src/guestfs-actions.pod:2366
25722 msgid "guestfs_getxattrs"
25723 msgstr ""
25724
25725 #. type: verbatim
25726 #: ../src/guestfs-actions.pod:2368
25727 #, no-wrap
25728 msgid ""
25729 " struct guestfs_xattr_list *\n"
25730 " guestfs_getxattrs (guestfs_h *g,\n"
25731 "                    const char *path);\n"
25732 "\n"
25733 msgstr ""
25734
25735 #. type: textblock
25736 #: ../src/guestfs-actions.pod:2378
25737 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25738 msgstr ""
25739
25740 #. type: textblock
25741 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858 ../src/guestfs-actions.pod:4546
25742 msgid ""
25743 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25744 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25745 msgstr ""
25746
25747 #. type: textblock
25748 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862 ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:8055
25749 msgid "(Added in 1.0.59)"
25750 msgstr ""
25751
25752 #. type: =head2
25753 #: ../src/guestfs-actions.pod:2386
25754 msgid "guestfs_glob_expand"
25755 msgstr ""
25756
25757 #. type: verbatim
25758 #: ../src/guestfs-actions.pod:2388
25759 #, no-wrap
25760 msgid ""
25761 " char **\n"
25762 " guestfs_glob_expand (guestfs_h *g,\n"
25763 "                      const char *pattern);\n"
25764 "\n"
25765 msgstr ""
25766
25767 #. type: textblock
25768 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853 ../src/guestfs-actions.pod:6870
25769 msgid "(Added in 1.0.50)"
25770 msgstr ""
25771
25772 #. type: =head2
25773 #: ../src/guestfs-actions.pod:2409
25774 msgid "guestfs_grep"
25775 msgstr ""
25776
25777 #. type: verbatim
25778 #: ../src/guestfs-actions.pod:2411
25779 #, no-wrap
25780 msgid ""
25781 " char **\n"
25782 " guestfs_grep (guestfs_h *g,\n"
25783 "               const char *regex,\n"
25784 "               const char *path);\n"
25785 "\n"
25786 msgstr ""
25787
25788 #. type: =head2
25789 #: ../src/guestfs-actions.pod:2428
25790 msgid "guestfs_grepi"
25791 msgstr ""
25792
25793 #. type: verbatim
25794 #: ../src/guestfs-actions.pod:2430
25795 #, no-wrap
25796 msgid ""
25797 " char **\n"
25798 " guestfs_grepi (guestfs_h *g,\n"
25799 "                const char *regex,\n"
25800 "                const char *path);\n"
25801 "\n"
25802 msgstr ""
25803
25804 #. type: =head2
25805 #: ../src/guestfs-actions.pod:2447
25806 msgid "guestfs_grub_install"
25807 msgstr ""
25808
25809 #. type: verbatim
25810 #: ../src/guestfs-actions.pod:2449
25811 #, no-wrap
25812 msgid ""
25813 " int\n"
25814 " guestfs_grub_install (guestfs_h *g,\n"
25815 "                       const char *root,\n"
25816 "                       const char *device);\n"
25817 "\n"
25818 msgstr ""
25819
25820 #. type: textblock
25821 #: ../src/guestfs-actions.pod:2492
25822 msgid "(Added in 1.0.17)"
25823 msgstr ""
25824
25825 #. type: =head2
25826 #: ../src/guestfs-actions.pod:2494
25827 msgid "guestfs_head"
25828 msgstr ""
25829
25830 #. type: verbatim
25831 #: ../src/guestfs-actions.pod:2496
25832 #, no-wrap
25833 msgid ""
25834 " char **\n"
25835 " guestfs_head (guestfs_h *g,\n"
25836 "               const char *path);\n"
25837 "\n"
25838 msgstr ""
25839
25840 #. type: =head2
25841 #: ../src/guestfs-actions.pod:2512
25842 msgid "guestfs_head_n"
25843 msgstr ""
25844
25845 #. type: verbatim
25846 #: ../src/guestfs-actions.pod:2514
25847 #, no-wrap
25848 msgid ""
25849 " char **\n"
25850 " guestfs_head_n (guestfs_h *g,\n"
25851 "                 int nrlines,\n"
25852 "                 const char *path);\n"
25853 "\n"
25854 msgstr ""
25855
25856 #. type: =head2
25857 #: ../src/guestfs-actions.pod:2536
25858 msgid "guestfs_hexdump"
25859 msgstr ""
25860
25861 #. type: verbatim
25862 #: ../src/guestfs-actions.pod:2538
25863 #, no-wrap
25864 msgid ""
25865 " char *\n"
25866 " guestfs_hexdump (guestfs_h *g,\n"
25867 "                  const char *path);\n"
25868 "\n"
25869 msgstr ""
25870
25871 #. type: textblock
25872 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934 ../src/guestfs-actions.pod:6989
25873 msgid "(Added in 1.0.22)"
25874 msgstr ""
25875
25876 #. type: =head2
25877 #: ../src/guestfs-actions.pod:2553
25878 msgid "guestfs_initrd_cat"
25879 msgstr ""
25880
25881 #. type: verbatim
25882 #: ../src/guestfs-actions.pod:2555
25883 #, no-wrap
25884 msgid ""
25885 " char *\n"
25886 " guestfs_initrd_cat (guestfs_h *g,\n"
25887 "                     const char *initrdpath,\n"
25888 "                     const char *filename,\n"
25889 "                     size_t *size_r);\n"
25890 "\n"
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../src/guestfs-actions.pod:2571
25895 msgid "See also C<guestfs_initrd_list>."
25896 msgstr ""
25897
25898 #. type: =head2
25899 #: ../src/guestfs-actions.pod:2582
25900 msgid "guestfs_initrd_list"
25901 msgstr ""
25902
25903 #. type: verbatim
25904 #: ../src/guestfs-actions.pod:2584
25905 #, no-wrap
25906 msgid ""
25907 " char **\n"
25908 " guestfs_initrd_list (guestfs_h *g,\n"
25909 "                      const char *path);\n"
25910 "\n"
25911 msgstr ""
25912
25913 #. type: =head2
25914 #: ../src/guestfs-actions.pod:2604
25915 msgid "guestfs_inotify_add_watch"
25916 msgstr ""
25917
25918 #. type: verbatim
25919 #: ../src/guestfs-actions.pod:2606
25920 #, no-wrap
25921 msgid ""
25922 " int64_t\n"
25923 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25924 "                            const char *path,\n"
25925 "                            int mask);\n"
25926 "\n"
25927 msgstr ""
25928
25929 #. type: =head2
25930 #: ../src/guestfs-actions.pod:2625
25931 msgid "guestfs_inotify_close"
25932 msgstr ""
25933
25934 #. type: verbatim
25935 #: ../src/guestfs-actions.pod:2627
25936 #, no-wrap
25937 msgid ""
25938 " int\n"
25939 " guestfs_inotify_close (guestfs_h *g);\n"
25940 "\n"
25941 msgstr ""
25942
25943 #. type: =head2
25944 #: ../src/guestfs-actions.pod:2638
25945 msgid "guestfs_inotify_files"
25946 msgstr ""
25947
25948 #. type: verbatim
25949 #: ../src/guestfs-actions.pod:2640
25950 #, no-wrap
25951 msgid ""
25952 " char **\n"
25953 " guestfs_inotify_files (guestfs_h *g);\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: textblock
25958 #: ../src/guestfs-actions.pod:2643
25959 msgid ""
25960 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
25961 "returns a list of pathnames of objects that were touched.  The returned "
25962 "pathnames are sorted and deduplicated."
25963 msgstr ""
25964
25965 #. type: =head2
25966 #: ../src/guestfs-actions.pod:2653
25967 msgid "guestfs_inotify_init"
25968 msgstr ""
25969
25970 #. type: verbatim
25971 #: ../src/guestfs-actions.pod:2655
25972 #, no-wrap
25973 msgid ""
25974 " int\n"
25975 " guestfs_inotify_init (guestfs_h *g,\n"
25976 "                       int maxevents);\n"
25977 "\n"
25978 msgstr ""
25979
25980 #. type: textblock
25981 #: ../src/guestfs-actions.pod:2663
25982 msgid ""
25983 "C<maxevents> is the maximum number of events which will be queued up between "
25984 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
25985 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
25986 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
25987 "throws away events, but records the fact that it threw them away by setting "
25988 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
25989 "C<guestfs_inotify_read>)."
25990 msgstr ""
25991
25992 #. type: textblock
25993 #: ../src/guestfs-actions.pod:2673
25994 msgid ""
25995 "Before any events are generated, you have to add some watches to the "
25996 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
25997 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
25998 msgstr ""
25999
26000 #. type: textblock
26001 #: ../src/guestfs-actions.pod:2679
26002 msgid ""
26003 "Queued up events should be read periodically by calling "
26004 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26005 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26006 "often enough then you risk the internal queue overflowing."
26007 msgstr ""
26008
26009 #. type: textblock
26010 #: ../src/guestfs-actions.pod:2686
26011 msgid ""
26012 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26013 "This also removes any watches automatically."
26014 msgstr ""
26015
26016 #. type: =head2
26017 #: ../src/guestfs-actions.pod:2699
26018 msgid "guestfs_inotify_read"
26019 msgstr ""
26020
26021 #. type: verbatim
26022 #: ../src/guestfs-actions.pod:2701
26023 #, no-wrap
26024 msgid ""
26025 " struct guestfs_inotify_event_list *\n"
26026 " guestfs_inotify_read (guestfs_h *g);\n"
26027 "\n"
26028 msgstr ""
26029
26030 #. type: textblock
26031 #: ../src/guestfs-actions.pod:2715
26032 msgid ""
26033 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26034 "there was an error.  I<The caller must call "
26035 "C<guestfs_free_inotify_event_list> after use>."
26036 msgstr ""
26037
26038 #. type: =head2
26039 #: ../src/guestfs-actions.pod:2721
26040 msgid "guestfs_inotify_rm_watch"
26041 msgstr ""
26042
26043 #. type: verbatim
26044 #: ../src/guestfs-actions.pod:2723
26045 #, no-wrap
26046 msgid ""
26047 " int\n"
26048 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26049 "                           int wd);\n"
26050 "\n"
26051 msgstr ""
26052
26053 #. type: textblock
26054 #: ../src/guestfs-actions.pod:2727
26055 msgid ""
26056 "Remove a previously defined inotify watch.  See "
26057 "C<guestfs_inotify_add_watch>."
26058 msgstr ""
26059
26060 #. type: =head2
26061 #: ../src/guestfs-actions.pod:2734
26062 msgid "guestfs_inspect_get_arch"
26063 msgstr ""
26064
26065 #. type: verbatim
26066 #: ../src/guestfs-actions.pod:2736
26067 #, no-wrap
26068 msgid ""
26069 " char *\n"
26070 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26071 "                           const char *root);\n"
26072 "\n"
26073 msgstr ""
26074
26075 #. type: textblock
26076 #: ../src/guestfs-actions.pod:2740
26077 msgid ""
26078 "This returns the architecture of the inspected operating system.  The "
26079 "possible return values are listed under C<guestfs_file_architecture>."
26080 msgstr ""
26081
26082 #. type: =head2
26083 #: ../src/guestfs-actions.pod:2754
26084 msgid "guestfs_inspect_get_distro"
26085 msgstr ""
26086
26087 #. type: verbatim
26088 #: ../src/guestfs-actions.pod:2756
26089 #, no-wrap
26090 msgid ""
26091 " char *\n"
26092 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26093 "                             const char *root);\n"
26094 "\n"
26095 msgstr ""
26096
26097 #. type: =head2
26098 #: ../src/guestfs-actions.pod:2848
26099 msgid "guestfs_inspect_get_drive_mappings"
26100 msgstr ""
26101
26102 #. type: verbatim
26103 #: ../src/guestfs-actions.pod:2850
26104 #, no-wrap
26105 msgid ""
26106 " char **\n"
26107 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26108 "                                     const char *root);\n"
26109 "\n"
26110 msgstr ""
26111
26112 #. type: textblock
26113 #: ../src/guestfs-actions.pod:2879
26114 msgid ""
26115 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26116 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26117 msgstr ""
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:7291
26121 msgid ""
26122 "This function returns a NULL-terminated array of strings, or NULL if there "
26123 "was an error.  The array of strings will always have length C<2n+1>, where "
26124 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26125 "caller must free the strings and the array after use>."
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
26130 msgid "(Added in 1.9.17)"
26131 msgstr ""
26132
26133 #. type: =head2
26134 #: ../src/guestfs-actions.pod:2891
26135 msgid "guestfs_inspect_get_filesystems"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../src/guestfs-actions.pod:2893
26140 #, no-wrap
26141 msgid ""
26142 " char **\n"
26143 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26144 "                                  const char *root);\n"
26145 "\n"
26146 msgstr ""
26147
26148 #. type: textblock
26149 #: ../src/guestfs-actions.pod:2905
26150 msgid ""
26151 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26152 "C<guestfs_inspect_get_mountpoints>."
26153 msgstr ""
26154
26155 #. type: =head2
26156 #: ../src/guestfs-actions.pod:2914
26157 msgid "guestfs_inspect_get_format"
26158 msgstr ""
26159
26160 #. type: verbatim
26161 #: ../src/guestfs-actions.pod:2916
26162 #, no-wrap
26163 msgid ""
26164 " char *\n"
26165 " guestfs_inspect_get_format (guestfs_h *g,\n"
26166 "                             const char *root);\n"
26167 "\n"
26168 msgstr ""
26169
26170 #. type: textblock
26171 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381 ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415 ../src/guestfs-actions.pod:6171
26172 msgid "(Added in 1.9.4)"
26173 msgstr ""
26174
26175 #. type: =head2
26176 #: ../src/guestfs-actions.pod:2952
26177 msgid "guestfs_inspect_get_hostname"
26178 msgstr ""
26179
26180 #. type: verbatim
26181 #: ../src/guestfs-actions.pod:2954
26182 #, no-wrap
26183 msgid ""
26184 " char *\n"
26185 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26186 "                               const char *root);\n"
26187 "\n"
26188 msgstr ""
26189
26190 #. type: textblock
26191 #: ../src/guestfs-actions.pod:2969
26192 msgid "(Added in 1.7.9)"
26193 msgstr ""
26194
26195 #. type: =head2
26196 #: ../src/guestfs-actions.pod:2971
26197 msgid "guestfs_inspect_get_icon"
26198 msgstr ""
26199
26200 #. type: verbatim
26201 #: ../src/guestfs-actions.pod:2973
26202 #, no-wrap
26203 msgid ""
26204 " char *\n"
26205 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26206 "                           const char *root,\n"
26207 "                           size_t *size_r,\n"
26208 "                           ...);\n"
26209 "\n"
26210 msgstr ""
26211
26212 #. type: verbatim
26213 #: ../src/guestfs-actions.pod:2984
26214 #, no-wrap
26215 msgid ""
26216 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26217 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26218 "\n"
26219 msgstr ""
26220
26221 #. type: textblock
26222 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:5120
26223 msgid "(Added in 1.11.12)"
26224 msgstr ""
26225
26226 #. type: =head2
26227 #: ../src/guestfs-actions.pod:3053
26228 msgid "guestfs_inspect_get_icon_va"
26229 msgstr ""
26230
26231 #. type: verbatim
26232 #: ../src/guestfs-actions.pod:3055
26233 #, no-wrap
26234 msgid ""
26235 " char *\n"
26236 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26237 "                              const char *root,\n"
26238 "                              size_t *size_r,\n"
26239 "                              va_list args);\n"
26240 "\n"
26241 msgstr ""
26242
26243 #. type: textblock
26244 #: ../src/guestfs-actions.pod:3061
26245 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26246 msgstr ""
26247
26248 #. type: =head2
26249 #: ../src/guestfs-actions.pod:3065
26250 msgid "guestfs_inspect_get_icon_argv"
26251 msgstr ""
26252
26253 #. type: verbatim
26254 #: ../src/guestfs-actions.pod:3067
26255 #, no-wrap
26256 msgid ""
26257 " char *\n"
26258 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26259 "                                const char *root,\n"
26260 "                                size_t *size_r,\n"
26261 "                                const struct guestfs_inspect_get_icon_argv "
26262 "*optargs);\n"
26263 "\n"
26264 msgstr ""
26265
26266 #. type: textblock
26267 #: ../src/guestfs-actions.pod:3073
26268 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26269 msgstr ""
26270
26271 #. type: =head2
26272 #: ../src/guestfs-actions.pod:3077
26273 msgid "guestfs_inspect_get_major_version"
26274 msgstr ""
26275
26276 #. type: verbatim
26277 #: ../src/guestfs-actions.pod:3079
26278 #, no-wrap
26279 msgid ""
26280 " int\n"
26281 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26282 "                                    const char *root);\n"
26283 "\n"
26284 msgstr ""
26285
26286 #. type: =head2
26287 #: ../src/guestfs-actions.pod:3101
26288 msgid "guestfs_inspect_get_minor_version"
26289 msgstr ""
26290
26291 #. type: verbatim
26292 #: ../src/guestfs-actions.pod:3103
26293 #, no-wrap
26294 msgid ""
26295 " int\n"
26296 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26297 "                                    const char *root);\n"
26298 "\n"
26299 msgstr ""
26300
26301 #. type: textblock
26302 #: ../src/guestfs-actions.pod:3112
26303 msgid ""
26304 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26305 "C<guestfs_inspect_get_major_version>."
26306 msgstr ""
26307
26308 #. type: =head2
26309 #: ../src/guestfs-actions.pod:3119
26310 msgid "guestfs_inspect_get_mountpoints"
26311 msgstr ""
26312
26313 #. type: verbatim
26314 #: ../src/guestfs-actions.pod:3121
26315 #, no-wrap
26316 msgid ""
26317 " char **\n"
26318 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26319 "                                  const char *root);\n"
26320 "\n"
26321 msgstr ""
26322
26323 #. type: textblock
26324 #: ../src/guestfs-actions.pod:3142
26325 msgid ""
26326 "For operating systems like Windows which still use drive letters, this call "
26327 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26328 "information about the mapping of drive letters to partitions, see "
26329 "C<guestfs_inspect_get_drive_mappings>."
26330 msgstr ""
26331
26332 #. type: textblock
26333 #: ../src/guestfs-actions.pod:3148
26334 msgid ""
26335 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26336 "C<guestfs_inspect_get_filesystems>."
26337 msgstr ""
26338
26339 #. type: =head2
26340 #: ../src/guestfs-actions.pod:3159
26341 msgid "guestfs_inspect_get_package_format"
26342 msgstr ""
26343
26344 #. type: verbatim
26345 #: ../src/guestfs-actions.pod:3161
26346 #, no-wrap
26347 msgid ""
26348 " char *\n"
26349 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26350 "                                     const char *root);\n"
26351 "\n"
26352 msgstr ""
26353
26354 #. type: textblock
26355 #: ../src/guestfs-actions.pod:3165
26356 msgid ""
26357 "This function and C<guestfs_inspect_get_package_management> return the "
26358 "package format and package management tool used by the inspected operating "
26359 "system.  For example for Fedora these functions would return C<rpm> (package "
26360 "format) and C<yum> (package management)."
26361 msgstr ""
26362
26363 #. type: textblock
26364 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
26365 msgid "(Added in 1.7.5)"
26366 msgstr ""
26367
26368 #. type: =head2
26369 #: ../src/guestfs-actions.pod:3185
26370 msgid "guestfs_inspect_get_package_management"
26371 msgstr ""
26372
26373 #. type: verbatim
26374 #: ../src/guestfs-actions.pod:3187
26375 #, no-wrap
26376 msgid ""
26377 " char *\n"
26378 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26379 "                                         const char *root);\n"
26380 "\n"
26381 msgstr ""
26382
26383 #. type: textblock
26384 #: ../src/guestfs-actions.pod:3191
26385 msgid ""
26386 "C<guestfs_inspect_get_package_format> and this function return the package "
26387 "format and package management tool used by the inspected operating system.  "
26388 "For example for Fedora these functions would return C<rpm> (package format) "
26389 "and C<yum> (package management)."
26390 msgstr ""
26391
26392 #. type: =head2
26393 #: ../src/guestfs-actions.pod:3213
26394 msgid "guestfs_inspect_get_product_name"
26395 msgstr ""
26396
26397 #. type: verbatim
26398 #: ../src/guestfs-actions.pod:3215
26399 #, no-wrap
26400 msgid ""
26401 " char *\n"
26402 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26403 "                                   const char *root);\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: =head2
26408 #: ../src/guestfs-actions.pod:3234
26409 msgid "guestfs_inspect_get_product_variant"
26410 msgstr ""
26411
26412 #. type: verbatim
26413 #: ../src/guestfs-actions.pod:3236
26414 #, no-wrap
26415 msgid ""
26416 " char *\n"
26417 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26418 "                                      const char *root);\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../src/guestfs-actions.pod:3259
26424 msgid ""
26425 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26426 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26427 msgstr ""
26428
26429 #. type: textblock
26430 #: ../src/guestfs-actions.pod:3266
26431 msgid "(Added in 1.9.13)"
26432 msgstr ""
26433
26434 #. type: =head2
26435 #: ../src/guestfs-actions.pod:3268
26436 msgid "guestfs_inspect_get_roots"
26437 msgstr ""
26438
26439 #. type: verbatim
26440 #: ../src/guestfs-actions.pod:3270
26441 #, no-wrap
26442 msgid ""
26443 " char **\n"
26444 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26445 "\n"
26446 msgstr ""
26447
26448 #. type: textblock
26449 #: ../src/guestfs-actions.pod:3273
26450 msgid ""
26451 "This function is a convenient way to get the list of root devices, as "
26452 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26453 "the whole inspection process."
26454 msgstr ""
26455
26456 #. type: textblock
26457 #: ../src/guestfs-actions.pod:3277
26458 msgid ""
26459 "This returns an empty list if either no root devices were found or the "
26460 "caller has not called C<guestfs_inspect_os>."
26461 msgstr ""
26462
26463 #. type: textblock
26464 #: ../src/guestfs-actions.pod:3286
26465 msgid "(Added in 1.7.3)"
26466 msgstr ""
26467
26468 #. type: =head2
26469 #: ../src/guestfs-actions.pod:3288
26470 msgid "guestfs_inspect_get_type"
26471 msgstr ""
26472
26473 #. type: verbatim
26474 #: ../src/guestfs-actions.pod:3290
26475 #, no-wrap
26476 msgid ""
26477 " char *\n"
26478 " guestfs_inspect_get_type (guestfs_h *g,\n"
26479 "                           const char *root);\n"
26480 "\n"
26481 msgstr ""
26482
26483 #. type: =head2
26484 #: ../src/guestfs-actions.pod:3327
26485 msgid "guestfs_inspect_get_windows_current_control_set"
26486 msgstr ""
26487
26488 #. type: verbatim
26489 #: ../src/guestfs-actions.pod:3329
26490 #, no-wrap
26491 msgid ""
26492 " char *\n"
26493 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26494 "                                                  const char *root);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: =head2
26499 #: ../src/guestfs-actions.pod:3347
26500 msgid "guestfs_inspect_get_windows_systemroot"
26501 msgstr ""
26502
26503 #. type: verbatim
26504 #: ../src/guestfs-actions.pod:3349
26505 #, no-wrap
26506 msgid ""
26507 " char *\n"
26508 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26509 "                                         const char *root);\n"
26510 "\n"
26511 msgstr ""
26512
26513 #. type: textblock
26514 #: ../src/guestfs-actions.pod:3365
26515 msgid "(Added in 1.5.25)"
26516 msgstr ""
26517
26518 #. type: =head2
26519 #: ../src/guestfs-actions.pod:3367
26520 msgid "guestfs_inspect_is_live"
26521 msgstr ""
26522
26523 #. type: verbatim
26524 #: ../src/guestfs-actions.pod:3369
26525 #, no-wrap
26526 msgid ""
26527 " int\n"
26528 " guestfs_inspect_is_live (guestfs_h *g,\n"
26529 "                          const char *root);\n"
26530 "\n"
26531 msgstr ""
26532
26533 #. type: textblock
26534 #: ../src/guestfs-actions.pod:3373
26535 msgid ""
26536 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26537 "disk), then this returns true if a live image was detected on the disk."
26538 msgstr ""
26539
26540 #. type: =head2
26541 #: ../src/guestfs-actions.pod:3383
26542 msgid "guestfs_inspect_is_multipart"
26543 msgstr ""
26544
26545 #. type: verbatim
26546 #: ../src/guestfs-actions.pod:3385
26547 #, no-wrap
26548 msgid ""
26549 " int\n"
26550 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26551 "                               const char *root);\n"
26552 "\n"
26553 msgstr ""
26554
26555 #. type: textblock
26556 #: ../src/guestfs-actions.pod:3389
26557 msgid ""
26558 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26559 "disk), then this returns true if the disk is part of a set."
26560 msgstr ""
26561
26562 #. type: =head2
26563 #: ../src/guestfs-actions.pod:3399
26564 msgid "guestfs_inspect_is_netinst"
26565 msgstr ""
26566
26567 #. type: verbatim
26568 #: ../src/guestfs-actions.pod:3401
26569 #, no-wrap
26570 msgid ""
26571 " int\n"
26572 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26573 "                             const char *root);\n"
26574 "\n"
26575 msgstr ""
26576
26577 #. type: textblock
26578 #: ../src/guestfs-actions.pod:3405
26579 msgid ""
26580 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26581 "disk), then this returns true if the disk is a network installer, ie. not a "
26582 "self-contained install CD but one which is likely to require network access "
26583 "to complete the install."
26584 msgstr ""
26585
26586 #. type: =head2
26587 #: ../src/guestfs-actions.pod:3417
26588 msgid "guestfs_inspect_list_applications"
26589 msgstr ""
26590
26591 #. type: verbatim
26592 #: ../src/guestfs-actions.pod:3419
26593 #, no-wrap
26594 msgid ""
26595 " struct guestfs_application_list *\n"
26596 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26597 "                                    const char *root);\n"
26598 "\n"
26599 msgstr ""
26600
26601 #. type: textblock
26602 #: ../src/guestfs-actions.pod:3425
26603 msgid ""
26604 "I<Note:> This call works differently from other parts of the inspection "
26605 "API.  You have to call C<guestfs_inspect_os>, then "
26606 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26607 "this.  Listing applications is a significantly more difficult operation "
26608 "which requires access to the full filesystem.  Also note that unlike the "
26609 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26610 "the libguestfs handle, this call actually reads parts of the mounted "
26611 "filesystems during the call."
26612 msgstr ""
26613
26614 #. type: textblock
26615 #: ../src/guestfs-actions.pod:3515
26616 msgid ""
26617 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26618 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26619 "after use>."
26620 msgstr ""
26621
26622 #. type: textblock
26623 #: ../src/guestfs-actions.pod:3519
26624 msgid "(Added in 1.7.8)"
26625 msgstr ""
26626
26627 #. type: =head2
26628 #: ../src/guestfs-actions.pod:3521
26629 msgid "guestfs_inspect_os"
26630 msgstr ""
26631
26632 #. type: verbatim
26633 #: ../src/guestfs-actions.pod:3523
26634 #, no-wrap
26635 msgid ""
26636 " char **\n"
26637 " guestfs_inspect_os (guestfs_h *g);\n"
26638 "\n"
26639 msgstr ""
26640
26641 #. type: textblock
26642 #: ../src/guestfs-actions.pod:3539
26643 msgid ""
26644 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26645 "functions in order to query further information about each operating system, "
26646 "such as the name and version."
26647 msgstr ""
26648
26649 #. type: textblock
26650 #: ../src/guestfs-actions.pod:3544
26651 msgid ""
26652 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26653 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26654 "the contents.  This should be called with no disks currently mounted.  The "
26655 "function may also use Augeas, so any existing Augeas handle will be closed."
26656 msgstr ""
26657
26658 #. type: textblock
26659 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3969
26660 msgid "See also C<guestfs_list_filesystems>."
26661 msgstr ""
26662
26663 #. type: =head2
26664 #: ../src/guestfs-actions.pod:3564
26665 msgid "guestfs_is_blockdev"
26666 msgstr ""
26667
26668 #. type: verbatim
26669 #: ../src/guestfs-actions.pod:3566
26670 #, no-wrap
26671 msgid ""
26672 " int\n"
26673 " guestfs_is_blockdev (guestfs_h *g,\n"
26674 "                      const char *path);\n"
26675 "\n"
26676 msgstr ""
26677
26678 #. type: textblock
26679 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602 ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647 ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:3734
26680 msgid "See also C<guestfs_stat>."
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:3738
26685 msgid "(Added in 1.5.10)"
26686 msgstr ""
26687
26688 #. type: =head2
26689 #: ../src/guestfs-actions.pod:3579
26690 msgid "guestfs_is_busy"
26691 msgstr ""
26692
26693 #. type: verbatim
26694 #: ../src/guestfs-actions.pod:3581
26695 #, no-wrap
26696 msgid ""
26697 " int\n"
26698 " guestfs_is_busy (guestfs_h *g);\n"
26699 "\n"
26700 msgstr ""
26701
26702 #. type: =head2
26703 #: ../src/guestfs-actions.pod:3593
26704 msgid "guestfs_is_chardev"
26705 msgstr ""
26706
26707 #. type: verbatim
26708 #: ../src/guestfs-actions.pod:3595
26709 #, no-wrap
26710 msgid ""
26711 " int\n"
26712 " guestfs_is_chardev (guestfs_h *g,\n"
26713 "                     const char *path);\n"
26714 "\n"
26715 msgstr ""
26716
26717 #. type: =head2
26718 #: ../src/guestfs-actions.pod:3608
26719 msgid "guestfs_is_config"
26720 msgstr ""
26721
26722 #. type: verbatim
26723 #: ../src/guestfs-actions.pod:3610
26724 #, no-wrap
26725 msgid ""
26726 " int\n"
26727 " guestfs_is_config (guestfs_h *g);\n"
26728 "\n"
26729 msgstr ""
26730
26731 #. type: =head2
26732 #: ../src/guestfs-actions.pod:3622
26733 msgid "guestfs_is_dir"
26734 msgstr ""
26735
26736 #. type: verbatim
26737 #: ../src/guestfs-actions.pod:3624
26738 #, no-wrap
26739 msgid ""
26740 " int\n"
26741 " guestfs_is_dir (guestfs_h *g,\n"
26742 "                 const char *path);\n"
26743 "\n"
26744 msgstr ""
26745
26746 #. type: =head2
26747 #: ../src/guestfs-actions.pod:3638
26748 msgid "guestfs_is_fifo"
26749 msgstr ""
26750
26751 #. type: verbatim
26752 #: ../src/guestfs-actions.pod:3640
26753 #, no-wrap
26754 msgid ""
26755 " int\n"
26756 " guestfs_is_fifo (guestfs_h *g,\n"
26757 "                  const char *path);\n"
26758 "\n"
26759 msgstr ""
26760
26761 #. type: =head2
26762 #: ../src/guestfs-actions.pod:3653
26763 msgid "guestfs_is_file"
26764 msgstr ""
26765
26766 #. type: verbatim
26767 #: ../src/guestfs-actions.pod:3655
26768 #, no-wrap
26769 msgid ""
26770 " int\n"
26771 " guestfs_is_file (guestfs_h *g,\n"
26772 "                  const char *path);\n"
26773 "\n"
26774 msgstr ""
26775
26776 #. type: =head2
26777 #: ../src/guestfs-actions.pod:3669
26778 msgid "guestfs_is_launching"
26779 msgstr ""
26780
26781 #. type: verbatim
26782 #: ../src/guestfs-actions.pod:3671
26783 #, no-wrap
26784 msgid ""
26785 " int\n"
26786 " guestfs_is_launching (guestfs_h *g);\n"
26787 "\n"
26788 msgstr ""
26789
26790 #. type: =head2
26791 #: ../src/guestfs-actions.pod:3683
26792 msgid "guestfs_is_lv"
26793 msgstr ""
26794
26795 #. type: verbatim
26796 #: ../src/guestfs-actions.pod:3685
26797 #, no-wrap
26798 msgid ""
26799 " int\n"
26800 " guestfs_is_lv (guestfs_h *g,\n"
26801 "                const char *device);\n"
26802 "\n"
26803 msgstr ""
26804
26805 #. type: =head2
26806 #: ../src/guestfs-actions.pod:3696
26807 msgid "guestfs_is_ready"
26808 msgstr ""
26809
26810 #. type: verbatim
26811 #: ../src/guestfs-actions.pod:3698
26812 #, no-wrap
26813 msgid ""
26814 " int\n"
26815 " guestfs_is_ready (guestfs_h *g);\n"
26816 "\n"
26817 msgstr ""
26818
26819 #. type: =head2
26820 #: ../src/guestfs-actions.pod:3710
26821 msgid "guestfs_is_socket"
26822 msgstr ""
26823
26824 #. type: verbatim
26825 #: ../src/guestfs-actions.pod:3712
26826 #, no-wrap
26827 msgid ""
26828 " int\n"
26829 " guestfs_is_socket (guestfs_h *g,\n"
26830 "                    const char *path);\n"
26831 "\n"
26832 msgstr ""
26833
26834 #. type: =head2
26835 #: ../src/guestfs-actions.pod:3725
26836 msgid "guestfs_is_symlink"
26837 msgstr ""
26838
26839 #. type: verbatim
26840 #: ../src/guestfs-actions.pod:3727
26841 #, no-wrap
26842 msgid ""
26843 " int\n"
26844 " guestfs_is_symlink (guestfs_h *g,\n"
26845 "                     const char *path);\n"
26846 "\n"
26847 msgstr ""
26848
26849 #. type: =head2
26850 #: ../src/guestfs-actions.pod:3740
26851 msgid "guestfs_is_zero"
26852 msgstr ""
26853
26854 #. type: verbatim
26855 #: ../src/guestfs-actions.pod:3742
26856 #, no-wrap
26857 msgid ""
26858 " int\n"
26859 " guestfs_is_zero (guestfs_h *g,\n"
26860 "                  const char *path);\n"
26861 "\n"
26862 msgstr ""
26863
26864 #. type: textblock
26865 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
26866 msgid "(Added in 1.11.8)"
26867 msgstr ""
26868
26869 #. type: =head2
26870 #: ../src/guestfs-actions.pod:3753
26871 msgid "guestfs_is_zero_device"
26872 msgstr ""
26873
26874 #. type: verbatim
26875 #: ../src/guestfs-actions.pod:3755
26876 #, no-wrap
26877 msgid ""
26878 " int\n"
26879 " guestfs_is_zero_device (guestfs_h *g,\n"
26880 "                         const char *device);\n"
26881 "\n"
26882 msgstr ""
26883
26884 #. type: =head2
26885 #: ../src/guestfs-actions.pod:3767
26886 msgid "guestfs_kill_subprocess"
26887 msgstr ""
26888
26889 #. type: verbatim
26890 #: ../src/guestfs-actions.pod:3769
26891 #, no-wrap
26892 msgid ""
26893 " int\n"
26894 " guestfs_kill_subprocess (guestfs_h *g);\n"
26895 "\n"
26896 msgstr ""
26897
26898 #. type: =head2
26899 #: ../src/guestfs-actions.pod:3778
26900 msgid "guestfs_launch"
26901 msgstr ""
26902
26903 #. type: verbatim
26904 #: ../src/guestfs-actions.pod:3780
26905 #, no-wrap
26906 msgid ""
26907 " int\n"
26908 " guestfs_launch (guestfs_h *g);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:3798
26914 msgid "guestfs_lchown"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:3800
26919 #, no-wrap
26920 msgid ""
26921 " int\n"
26922 " guestfs_lchown (guestfs_h *g,\n"
26923 "                 int owner,\n"
26924 "                 int group,\n"
26925 "                 const char *path);\n"
26926 "\n"
26927 msgstr ""
26928
26929 #. type: textblock
26930 #: ../src/guestfs-actions.pod:3806
26931 msgid ""
26932 "Change the file owner to C<owner> and group to C<group>.  This is like "
26933 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
26934 "changed, not the target."
26935 msgstr ""
26936
26937 #. type: =head2
26938 #: ../src/guestfs-actions.pod:3818
26939 msgid "guestfs_lgetxattr"
26940 msgstr ""
26941
26942 #. type: verbatim
26943 #: ../src/guestfs-actions.pod:3820
26944 #, no-wrap
26945 msgid ""
26946 " char *\n"
26947 " guestfs_lgetxattr (guestfs_h *g,\n"
26948 "                    const char *path,\n"
26949 "                    const char *name,\n"
26950 "                    size_t *size_r);\n"
26951 "\n"
26952 msgstr ""
26953
26954 #. type: textblock
26955 #: ../src/guestfs-actions.pod:3840
26956 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
26957 msgstr ""
26958
26959 #. type: =head2
26960 #: ../src/guestfs-actions.pod:3848
26961 msgid "guestfs_lgetxattrs"
26962 msgstr ""
26963
26964 #. type: verbatim
26965 #: ../src/guestfs-actions.pod:3850
26966 #, no-wrap
26967 msgid ""
26968 " struct guestfs_xattr_list *\n"
26969 " guestfs_lgetxattrs (guestfs_h *g,\n"
26970 "                     const char *path);\n"
26971 "\n"
26972 msgstr ""
26973
26974 #. type: textblock
26975 #: ../src/guestfs-actions.pod:3854
26976 msgid ""
26977 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
26978 "then it returns the extended attributes of the link itself."
26979 msgstr ""
26980
26981 #. type: =head2
26982 #: ../src/guestfs-actions.pod:3864
26983 msgid "guestfs_list_9p"
26984 msgstr ""
26985
26986 #. type: verbatim
26987 #: ../src/guestfs-actions.pod:3866
26988 #, no-wrap
26989 msgid ""
26990 " char **\n"
26991 " guestfs_list_9p (guestfs_h *g);\n"
26992 "\n"
26993 msgstr ""
26994
26995 #. type: =head2
26996 #: ../src/guestfs-actions.pod:3878
26997 msgid "guestfs_list_devices"
26998 msgstr ""
26999
27000 #. type: verbatim
27001 #: ../src/guestfs-actions.pod:3880
27002 #, no-wrap
27003 msgid ""
27004 " char **\n"
27005 " guestfs_list_devices (guestfs_h *g);\n"
27006 "\n"
27007 msgstr ""
27008
27009 #. type: =head2
27010 #: ../src/guestfs-actions.pod:3895
27011 msgid "guestfs_list_dm_devices"
27012 msgstr ""
27013
27014 #. type: verbatim
27015 #: ../src/guestfs-actions.pod:3897
27016 #, no-wrap
27017 msgid ""
27018 " char **\n"
27019 " guestfs_list_dm_devices (guestfs_h *g);\n"
27020 "\n"
27021 msgstr ""
27022
27023 #. type: textblock
27024 #: ../src/guestfs-actions.pod:3902
27025 msgid ""
27026 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27027 "previous call to C<guestfs_luks_open>."
27028 msgstr ""
27029
27030 #. type: textblock
27031 #: ../src/guestfs-actions.pod:3905
27032 msgid ""
27033 "Device mapper devices which correspond to logical volumes are I<not> "
27034 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27035 "volumes."
27036 msgstr ""
27037
27038 #. type: textblock
27039 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
27040 msgid "(Added in 1.11.15)"
27041 msgstr ""
27042
27043 #. type: =head2
27044 #: ../src/guestfs-actions.pod:3915
27045 msgid "guestfs_list_filesystems"
27046 msgstr ""
27047
27048 #. type: verbatim
27049 #: ../src/guestfs-actions.pod:3917
27050 #, no-wrap
27051 msgid ""
27052 " char **\n"
27053 " guestfs_list_filesystems (guestfs_h *g);\n"
27054 "\n"
27055 msgstr ""
27056
27057 #. type: textblock
27058 #: ../src/guestfs-actions.pod:3937
27059 msgid ""
27060 "This command runs other libguestfs commands, which might include "
27061 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27062 "soon after launch and only when nothing is mounted."
27063 msgstr ""
27064
27065 #. type: textblock
27066 #: ../src/guestfs-actions.pod:3941
27067 msgid ""
27068 "Not all of the filesystems returned will be mountable.  In particular, swap "
27069 "partitions are returned in the list.  Also this command does not check that "
27070 "each filesystem found is valid and mountable, and some filesystems might be "
27071 "mountable but require special options.  Filesystems may not all belong to a "
27072 "single logical operating system (use C<guestfs_inspect_os> to look for "
27073 "OSes)."
27074 msgstr ""
27075
27076 #. type: textblock
27077 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
27078 msgid "(Added in 1.5.15)"
27079 msgstr ""
27080
27081 #. type: =head2
27082 #: ../src/guestfs-actions.pod:3957
27083 msgid "guestfs_list_partitions"
27084 msgstr ""
27085
27086 #. type: verbatim
27087 #: ../src/guestfs-actions.pod:3959
27088 #, no-wrap
27089 msgid ""
27090 " char **\n"
27091 " guestfs_list_partitions (guestfs_h *g);\n"
27092 "\n"
27093 msgstr ""
27094
27095 #. type: textblock
27096 #: ../src/guestfs-actions.pod:3966
27097 msgid ""
27098 "This does not return logical volumes.  For that you will need to call "
27099 "C<guestfs_lvs>."
27100 msgstr ""
27101
27102 #. type: =head2
27103 #: ../src/guestfs-actions.pod:3977
27104 msgid "guestfs_ll"
27105 msgstr ""
27106
27107 #. type: verbatim
27108 #: ../src/guestfs-actions.pod:3979
27109 #, no-wrap
27110 msgid ""
27111 " char *\n"
27112 " guestfs_ll (guestfs_h *g,\n"
27113 "             const char *directory);\n"
27114 "\n"
27115 msgstr ""
27116
27117 #. type: =head2
27118 #: ../src/guestfs-actions.pod:3994
27119 msgid "guestfs_ln"
27120 msgstr ""
27121
27122 #. type: verbatim
27123 #: ../src/guestfs-actions.pod:3996
27124 #, no-wrap
27125 msgid ""
27126 " int\n"
27127 " guestfs_ln (guestfs_h *g,\n"
27128 "             const char *target,\n"
27129 "             const char *linkname);\n"
27130 "\n"
27131 msgstr ""
27132
27133 #. type: =head2
27134 #: ../src/guestfs-actions.pod:4007
27135 msgid "guestfs_ln_f"
27136 msgstr ""
27137
27138 #. type: verbatim
27139 #: ../src/guestfs-actions.pod:4009
27140 #, no-wrap
27141 msgid ""
27142 " int\n"
27143 " guestfs_ln_f (guestfs_h *g,\n"
27144 "               const char *target,\n"
27145 "               const char *linkname);\n"
27146 "\n"
27147 msgstr ""
27148
27149 #. type: =head2
27150 #: ../src/guestfs-actions.pod:4021
27151 msgid "guestfs_ln_s"
27152 msgstr ""
27153
27154 #. type: verbatim
27155 #: ../src/guestfs-actions.pod:4023
27156 #, no-wrap
27157 msgid ""
27158 " int\n"
27159 " guestfs_ln_s (guestfs_h *g,\n"
27160 "               const char *target,\n"
27161 "               const char *linkname);\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../src/guestfs-actions.pod:4034
27167 msgid "guestfs_ln_sf"
27168 msgstr ""
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:4036
27172 #, no-wrap
27173 msgid ""
27174 " int\n"
27175 " guestfs_ln_sf (guestfs_h *g,\n"
27176 "                const char *target,\n"
27177 "                const char *linkname);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: =head2
27182 #: ../src/guestfs-actions.pod:4048
27183 msgid "guestfs_lremovexattr"
27184 msgstr ""
27185
27186 #. type: verbatim
27187 #: ../src/guestfs-actions.pod:4050
27188 #, no-wrap
27189 msgid ""
27190 " int\n"
27191 " guestfs_lremovexattr (guestfs_h *g,\n"
27192 "                       const char *xattr,\n"
27193 "                       const char *path);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:4055
27199 msgid ""
27200 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27201 "link, then it removes an extended attribute of the link itself."
27202 msgstr ""
27203
27204 #. type: =head2
27205 #: ../src/guestfs-actions.pod:4063
27206 msgid "guestfs_ls"
27207 msgstr ""
27208
27209 #. type: verbatim
27210 #: ../src/guestfs-actions.pod:4065
27211 #, no-wrap
27212 msgid ""
27213 " char **\n"
27214 " guestfs_ls (guestfs_h *g,\n"
27215 "             const char *directory);\n"
27216 "\n"
27217 msgstr ""
27218
27219 #. type: textblock
27220 #: ../src/guestfs-actions.pod:4073
27221 msgid ""
27222 "This command is mostly useful for interactive sessions.  Programs should "
27223 "probably use C<guestfs_readdir> instead."
27224 msgstr ""
27225
27226 #. type: =head2
27227 #: ../src/guestfs-actions.pod:4082
27228 msgid "guestfs_lsetxattr"
27229 msgstr ""
27230
27231 #. type: verbatim
27232 #: ../src/guestfs-actions.pod:4084
27233 #, no-wrap
27234 msgid ""
27235 " int\n"
27236 " guestfs_lsetxattr (guestfs_h *g,\n"
27237 "                    const char *xattr,\n"
27238 "                    const char *val,\n"
27239 "                    int vallen,\n"
27240 "                    const char *path);\n"
27241 "\n"
27242 msgstr ""
27243
27244 #. type: textblock
27245 #: ../src/guestfs-actions.pod:4091
27246 msgid ""
27247 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27248 "then it sets an extended attribute of the link itself."
27249 msgstr ""
27250
27251 #. type: =head2
27252 #: ../src/guestfs-actions.pod:4099
27253 msgid "guestfs_lstat"
27254 msgstr ""
27255
27256 #. type: verbatim
27257 #: ../src/guestfs-actions.pod:4101
27258 #, no-wrap
27259 msgid ""
27260 " struct guestfs_stat *\n"
27261 " guestfs_lstat (guestfs_h *g,\n"
27262 "                const char *path);\n"
27263 "\n"
27264 msgstr ""
27265
27266 #. type: textblock
27267 #: ../src/guestfs-actions.pod:4107
27268 msgid ""
27269 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27270 "link, then the link is stat-ed, not the file it refers to."
27271 msgstr ""
27272
27273 #. type: textblock
27274 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
27275 msgid ""
27276 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27277 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27278 msgstr ""
27279
27280 #. type: textblock
27281 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
27282 msgid "(Added in 0.9.2)"
27283 msgstr ""
27284
27285 #. type: =head2
27286 #: ../src/guestfs-actions.pod:4119
27287 msgid "guestfs_lstatlist"
27288 msgstr ""
27289
27290 #. type: verbatim
27291 #: ../src/guestfs-actions.pod:4121
27292 #, no-wrap
27293 msgid ""
27294 " struct guestfs_stat_list *\n"
27295 " guestfs_lstatlist (guestfs_h *g,\n"
27296 "                    const char *path,\n"
27297 "                    char *const *names);\n"
27298 "\n"
27299 msgstr ""
27300
27301 #. type: textblock
27302 #: ../src/guestfs-actions.pod:4126
27303 msgid ""
27304 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27305 "files, where all files are in the directory C<path>.  C<names> is the list "
27306 "of files from this directory."
27307 msgstr ""
27308
27309 #. type: textblock
27310 #: ../src/guestfs-actions.pod:4135
27311 msgid ""
27312 "This call is intended for programs that want to efficiently list a directory "
27313 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27314 "for a similarly efficient call for getting extended attributes.  Very long "
27315 "directory listings might cause the protocol message size to be exceeded, "
27316 "causing this call to fail.  The caller must split up such requests into "
27317 "smaller groups of names."
27318 msgstr ""
27319
27320 #. type: textblock
27321 #: ../src/guestfs-actions.pod:4143
27322 msgid ""
27323 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27324 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27325 msgstr ""
27326
27327 #. type: =head2
27328 #: ../src/guestfs-actions.pod:4149
27329 msgid "guestfs_luks_add_key"
27330 msgstr ""
27331
27332 #. type: verbatim
27333 #: ../src/guestfs-actions.pod:4151
27334 #, no-wrap
27335 msgid ""
27336 " int\n"
27337 " guestfs_luks_add_key (guestfs_h *g,\n"
27338 "                       const char *device,\n"
27339 "                       const char *key,\n"
27340 "                       const char *newkey,\n"
27341 "                       int keyslot);\n"
27342 "\n"
27343 msgstr ""
27344
27345 #. type: textblock
27346 #: ../src/guestfs-actions.pod:4163
27347 msgid ""
27348 "Note that if C<keyslot> already contains a key, then this command will "
27349 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27350 msgstr ""
27351
27352 #. type: textblock
27353 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
27354 msgid ""
27355 "This function takes a key or passphrase parameter which could contain "
27356 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27357 "information."
27358 msgstr ""
27359
27360 #. type: textblock
27361 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213 ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
27362 msgid "(Added in 1.5.2)"
27363 msgstr ""
27364
27365 #. type: =head2
27366 #: ../src/guestfs-actions.pod:4175
27367 msgid "guestfs_luks_close"
27368 msgstr ""
27369
27370 #. type: verbatim
27371 #: ../src/guestfs-actions.pod:4177
27372 #, no-wrap
27373 msgid ""
27374 " int\n"
27375 " guestfs_luks_close (guestfs_h *g,\n"
27376 "                     const char *device);\n"
27377 "\n"
27378 msgstr ""
27379
27380 #. type: textblock
27381 #: ../src/guestfs-actions.pod:4181
27382 msgid ""
27383 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27384 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27385 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27386 "underlying block device."
27387 msgstr ""
27388
27389 #. type: textblock
27390 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291 ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360 ../src/guestfs-actions.pod:4408
27391 msgid "(Added in 1.5.1)"
27392 msgstr ""
27393
27394 #. type: =head2
27395 #: ../src/guestfs-actions.pod:4191
27396 msgid "guestfs_luks_format"
27397 msgstr ""
27398
27399 #. type: verbatim
27400 #: ../src/guestfs-actions.pod:4193
27401 #, no-wrap
27402 msgid ""
27403 " int\n"
27404 " guestfs_luks_format (guestfs_h *g,\n"
27405 "                      const char *device,\n"
27406 "                      const char *key,\n"
27407 "                      int keyslot);\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../src/guestfs-actions.pod:4215
27413 msgid "guestfs_luks_format_cipher"
27414 msgstr ""
27415
27416 #. type: verbatim
27417 #: ../src/guestfs-actions.pod:4217
27418 #, no-wrap
27419 msgid ""
27420 " int\n"
27421 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27422 "                             const char *device,\n"
27423 "                             const char *key,\n"
27424 "                             int keyslot,\n"
27425 "                             const char *cipher);\n"
27426 "\n"
27427 msgstr ""
27428
27429 #. type: textblock
27430 #: ../src/guestfs-actions.pod:4224
27431 msgid ""
27432 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27433 "set the C<cipher> used."
27434 msgstr ""
27435
27436 #. type: =head2
27437 #: ../src/guestfs-actions.pod:4238
27438 msgid "guestfs_luks_kill_slot"
27439 msgstr ""
27440
27441 #. type: verbatim
27442 #: ../src/guestfs-actions.pod:4240
27443 #, no-wrap
27444 msgid ""
27445 " int\n"
27446 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27447 "                         const char *device,\n"
27448 "                         const char *key,\n"
27449 "                         int keyslot);\n"
27450 "\n"
27451 msgstr ""
27452
27453 #. type: =head2
27454 #: ../src/guestfs-actions.pod:4258
27455 msgid "guestfs_luks_open"
27456 msgstr ""
27457
27458 #. type: verbatim
27459 #: ../src/guestfs-actions.pod:4260
27460 #, no-wrap
27461 msgid ""
27462 " int\n"
27463 " guestfs_luks_open (guestfs_h *g,\n"
27464 "                    const char *device,\n"
27465 "                    const char *key,\n"
27466 "                    const char *mapname);\n"
27467 "\n"
27468 msgstr ""
27469
27470 #. type: textblock
27471 #: ../src/guestfs-actions.pod:4278
27472 msgid ""
27473 "If this block device contains LVM volume groups, then calling "
27474 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27475 "visible."
27476 msgstr ""
27477
27478 #. type: textblock
27479 #: ../src/guestfs-actions.pod:4282
27480 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27481 msgstr ""
27482
27483 #. type: =head2
27484 #: ../src/guestfs-actions.pod:4293
27485 msgid "guestfs_luks_open_ro"
27486 msgstr ""
27487
27488 #. type: verbatim
27489 #: ../src/guestfs-actions.pod:4295
27490 #, no-wrap
27491 msgid ""
27492 " int\n"
27493 " guestfs_luks_open_ro (guestfs_h *g,\n"
27494 "                       const char *device,\n"
27495 "                       const char *key,\n"
27496 "                       const char *mapname);\n"
27497 "\n"
27498 msgstr ""
27499
27500 #. type: textblock
27501 #: ../src/guestfs-actions.pod:4301
27502 msgid ""
27503 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27504 "created."
27505 msgstr ""
27506
27507 #. type: =head2
27508 #: ../src/guestfs-actions.pod:4312
27509 msgid "guestfs_lvcreate"
27510 msgstr ""
27511
27512 #. type: verbatim
27513 #: ../src/guestfs-actions.pod:4314
27514 #, no-wrap
27515 msgid ""
27516 " int\n"
27517 " guestfs_lvcreate (guestfs_h *g,\n"
27518 "                   const char *logvol,\n"
27519 "                   const char *volgroup,\n"
27520 "                   int mbytes);\n"
27521 "\n"
27522 msgstr ""
27523
27524 #. type: =head2
27525 #: ../src/guestfs-actions.pod:4327
27526 msgid "guestfs_lvm_canonical_lv_name"
27527 msgstr ""
27528
27529 #. type: verbatim
27530 #: ../src/guestfs-actions.pod:4329
27531 #, no-wrap
27532 msgid ""
27533 " char *\n"
27534 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27535 "                                const char *lvname);\n"
27536 "\n"
27537 msgstr ""
27538
27539 #. type: textblock
27540 #: ../src/guestfs-actions.pod:4340
27541 msgid "See also C<guestfs_is_lv>."
27542 msgstr ""
27543
27544 #. type: textblock
27545 #: ../src/guestfs-actions.pod:4345
27546 msgid "(Added in 1.5.24)"
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:4347
27551 msgid "guestfs_lvm_clear_filter"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:4349
27556 #, no-wrap
27557 msgid ""
27558 " int\n"
27559 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27560 "\n"
27561 msgstr ""
27562
27563 #. type: textblock
27564 #: ../src/guestfs-actions.pod:4352
27565 msgid ""
27566 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27567 "see every block device."
27568 msgstr ""
27569
27570 #. type: =head2
27571 #: ../src/guestfs-actions.pod:4362
27572 msgid "guestfs_lvm_remove_all"
27573 msgstr ""
27574
27575 #. type: verbatim
27576 #: ../src/guestfs-actions.pod:4364
27577 #, no-wrap
27578 msgid ""
27579 " int\n"
27580 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: =head2
27585 #: ../src/guestfs-actions.pod:4377
27586 msgid "guestfs_lvm_set_filter"
27587 msgstr ""
27588
27589 #. type: verbatim
27590 #: ../src/guestfs-actions.pod:4379
27591 #, no-wrap
27592 msgid ""
27593 " int\n"
27594 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27595 "                         char *const *devices);\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: =head2
27600 #: ../src/guestfs-actions.pod:4410
27601 msgid "guestfs_lvremove"
27602 msgstr ""
27603
27604 #. type: verbatim
27605 #: ../src/guestfs-actions.pod:4412
27606 #, no-wrap
27607 msgid ""
27608 " int\n"
27609 " guestfs_lvremove (guestfs_h *g,\n"
27610 "                   const char *device);\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:7667
27616 msgid "(Added in 1.0.13)"
27617 msgstr ""
27618
27619 #. type: =head2
27620 #: ../src/guestfs-actions.pod:4426
27621 msgid "guestfs_lvrename"
27622 msgstr ""
27623
27624 #. type: verbatim
27625 #: ../src/guestfs-actions.pod:4428
27626 #, no-wrap
27627 msgid ""
27628 " int\n"
27629 " guestfs_lvrename (guestfs_h *g,\n"
27630 "                   const char *logvol,\n"
27631 "                   const char *newlogvol);\n"
27632 "\n"
27633 msgstr ""
27634
27635 #. type: textblock
27636 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
27637 msgid "(Added in 1.0.83)"
27638 msgstr ""
27639
27640 #. type: =head2
27641 #: ../src/guestfs-actions.pod:4439
27642 msgid "guestfs_lvresize"
27643 msgstr ""
27644
27645 #. type: verbatim
27646 #: ../src/guestfs-actions.pod:4441
27647 #, no-wrap
27648 msgid ""
27649 " int\n"
27650 " guestfs_lvresize (guestfs_h *g,\n"
27651 "                   const char *device,\n"
27652 "                   int mbytes);\n"
27653 "\n"
27654 msgstr ""
27655
27656 #. type: =head2
27657 #: ../src/guestfs-actions.pod:4454
27658 msgid "guestfs_lvresize_free"
27659 msgstr ""
27660
27661 #. type: verbatim
27662 #: ../src/guestfs-actions.pod:4456
27663 #, no-wrap
27664 msgid ""
27665 " int\n"
27666 " guestfs_lvresize_free (guestfs_h *g,\n"
27667 "                        const char *lv,\n"
27668 "                        int percent);\n"
27669 "\n"
27670 msgstr ""
27671
27672 #. type: textblock
27673 #: ../src/guestfs-actions.pod:4469
27674 msgid "(Added in 1.3.3)"
27675 msgstr ""
27676
27677 #. type: =head2
27678 #: ../src/guestfs-actions.pod:4471
27679 msgid "guestfs_lvs"
27680 msgstr ""
27681
27682 #. type: verbatim
27683 #: ../src/guestfs-actions.pod:4473
27684 #, no-wrap
27685 msgid ""
27686 " char **\n"
27687 " guestfs_lvs (guestfs_h *g);\n"
27688 "\n"
27689 msgstr ""
27690
27691 #. type: textblock
27692 #: ../src/guestfs-actions.pod:4482
27693 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27694 msgstr ""
27695
27696 #. type: =head2
27697 #: ../src/guestfs-actions.pod:4490
27698 msgid "guestfs_lvs_full"
27699 msgstr ""
27700
27701 #. type: verbatim
27702 #: ../src/guestfs-actions.pod:4492
27703 #, no-wrap
27704 msgid ""
27705 " struct guestfs_lvm_lv_list *\n"
27706 " guestfs_lvs_full (guestfs_h *g);\n"
27707 "\n"
27708 msgstr ""
27709
27710 #. type: textblock
27711 #: ../src/guestfs-actions.pod:4498
27712 msgid ""
27713 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27714 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
27715 "use>."
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:4504
27720 msgid "guestfs_lvuuid"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:4506
27725 #, no-wrap
27726 msgid ""
27727 " char *\n"
27728 " guestfs_lvuuid (guestfs_h *g,\n"
27729 "                 const char *device);\n"
27730 "\n"
27731 msgstr ""
27732
27733 #. type: =head2
27734 #: ../src/guestfs-actions.pod:4517
27735 msgid "guestfs_lxattrlist"
27736 msgstr ""
27737
27738 #. type: verbatim
27739 #: ../src/guestfs-actions.pod:4519
27740 #, no-wrap
27741 msgid ""
27742 " struct guestfs_xattr_list *\n"
27743 " guestfs_lxattrlist (guestfs_h *g,\n"
27744 "                     const char *path,\n"
27745 "                     char *const *names);\n"
27746 "\n"
27747 msgstr ""
27748
27749 #. type: textblock
27750 #: ../src/guestfs-actions.pod:4538
27751 msgid ""
27752 "This call is intended for programs that want to efficiently list a directory "
27753 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27754 "a similarly efficient call for getting standard stats.  Very long directory "
27755 "listings might cause the protocol message size to be exceeded, causing this "
27756 "call to fail.  The caller must split up such requests into smaller groups of "
27757 "names."
27758 msgstr ""
27759
27760 #. type: =head2
27761 #: ../src/guestfs-actions.pod:4552
27762 msgid "guestfs_mkdir"
27763 msgstr ""
27764
27765 #. type: verbatim
27766 #: ../src/guestfs-actions.pod:4554
27767 #, no-wrap
27768 msgid ""
27769 " int\n"
27770 " guestfs_mkdir (guestfs_h *g,\n"
27771 "                const char *path);\n"
27772 "\n"
27773 msgstr ""
27774
27775 #. type: =head2
27776 #: ../src/guestfs-actions.pod:4564
27777 msgid "guestfs_mkdir_mode"
27778 msgstr ""
27779
27780 #. type: verbatim
27781 #: ../src/guestfs-actions.pod:4566
27782 #, no-wrap
27783 msgid ""
27784 " int\n"
27785 " guestfs_mkdir_mode (guestfs_h *g,\n"
27786 "                     const char *path,\n"
27787 "                     int mode);\n"
27788 "\n"
27789 msgstr ""
27790
27791 #. type: textblock
27792 #: ../src/guestfs-actions.pod:4578
27793 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
27794 msgstr ""
27795
27796 #. type: =head2
27797 #: ../src/guestfs-actions.pod:4584
27798 msgid "guestfs_mkdir_p"
27799 msgstr ""
27800
27801 #. type: verbatim
27802 #: ../src/guestfs-actions.pod:4586
27803 #, no-wrap
27804 msgid ""
27805 " int\n"
27806 " guestfs_mkdir_p (guestfs_h *g,\n"
27807 "                  const char *path);\n"
27808 "\n"
27809 msgstr ""
27810
27811 #. type: =head2
27812 #: ../src/guestfs-actions.pod:4597
27813 msgid "guestfs_mkdtemp"
27814 msgstr ""
27815
27816 #. type: verbatim
27817 #: ../src/guestfs-actions.pod:4599
27818 #, no-wrap
27819 msgid ""
27820 " char *\n"
27821 " guestfs_mkdtemp (guestfs_h *g,\n"
27822 "                  const char *template);\n"
27823 "\n"
27824 msgstr ""
27825
27826 #. type: =head2
27827 #: ../src/guestfs-actions.pod:4627
27828 msgid "guestfs_mke2fs_J"
27829 msgstr ""
27830
27831 #. type: verbatim
27832 #: ../src/guestfs-actions.pod:4629
27833 #, no-wrap
27834 msgid ""
27835 " int\n"
27836 " guestfs_mke2fs_J (guestfs_h *g,\n"
27837 "                   const char *fstype,\n"
27838 "                   int blocksize,\n"
27839 "                   const char *device,\n"
27840 "                   const char *journal);\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../src/guestfs-actions.pod:4642
27846 msgid "See also C<guestfs_mke2journal>."
27847 msgstr ""
27848
27849 #. type: textblock
27850 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664 ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726 ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
27851 msgid "(Added in 1.0.68)"
27852 msgstr ""
27853
27854 #. type: =head2
27855 #: ../src/guestfs-actions.pod:4648
27856 msgid "guestfs_mke2fs_JL"
27857 msgstr ""
27858
27859 #. type: verbatim
27860 #: ../src/guestfs-actions.pod:4650
27861 #, no-wrap
27862 msgid ""
27863 " int\n"
27864 " guestfs_mke2fs_JL (guestfs_h *g,\n"
27865 "                    const char *fstype,\n"
27866 "                    int blocksize,\n"
27867 "                    const char *device,\n"
27868 "                    const char *label);\n"
27869 "\n"
27870 msgstr ""
27871
27872 #. type: textblock
27873 #: ../src/guestfs-actions.pod:4660
27874 msgid "See also C<guestfs_mke2journal_L>."
27875 msgstr ""
27876
27877 #. type: =head2
27878 #: ../src/guestfs-actions.pod:4666
27879 msgid "guestfs_mke2fs_JU"
27880 msgstr ""
27881
27882 #. type: verbatim
27883 #: ../src/guestfs-actions.pod:4668
27884 #, no-wrap
27885 msgid ""
27886 " int\n"
27887 " guestfs_mke2fs_JU (guestfs_h *g,\n"
27888 "                    const char *fstype,\n"
27889 "                    int blocksize,\n"
27890 "                    const char *device,\n"
27891 "                    const char *uuid);\n"
27892 "\n"
27893 msgstr ""
27894
27895 #. type: textblock
27896 #: ../src/guestfs-actions.pod:4678
27897 msgid "See also C<guestfs_mke2journal_U>."
27898 msgstr ""
27899
27900 #. type: =head2
27901 #: ../src/guestfs-actions.pod:4684
27902 msgid "guestfs_mke2journal"
27903 msgstr ""
27904
27905 #. type: verbatim
27906 #: ../src/guestfs-actions.pod:4686
27907 #, no-wrap
27908 msgid ""
27909 " int\n"
27910 " guestfs_mke2journal (guestfs_h *g,\n"
27911 "                      int blocksize,\n"
27912 "                      const char *device);\n"
27913 "\n"
27914 msgstr ""
27915
27916 #. type: =head2
27917 #: ../src/guestfs-actions.pod:4700
27918 msgid "guestfs_mke2journal_L"
27919 msgstr ""
27920
27921 #. type: verbatim
27922 #: ../src/guestfs-actions.pod:4702
27923 #, no-wrap
27924 msgid ""
27925 " int\n"
27926 " guestfs_mke2journal_L (guestfs_h *g,\n"
27927 "                        int blocksize,\n"
27928 "                        const char *label,\n"
27929 "                        const char *device);\n"
27930 "\n"
27931 msgstr ""
27932
27933 #. type: =head2
27934 #: ../src/guestfs-actions.pod:4714
27935 msgid "guestfs_mke2journal_U"
27936 msgstr ""
27937
27938 #. type: verbatim
27939 #: ../src/guestfs-actions.pod:4716
27940 #, no-wrap
27941 msgid ""
27942 " int\n"
27943 " guestfs_mke2journal_U (guestfs_h *g,\n"
27944 "                        int blocksize,\n"
27945 "                        const char *uuid,\n"
27946 "                        const char *device);\n"
27947 "\n"
27948 msgstr ""
27949
27950 #. type: =head2
27951 #: ../src/guestfs-actions.pod:4728
27952 msgid "guestfs_mkfifo"
27953 msgstr ""
27954
27955 #. type: verbatim
27956 #: ../src/guestfs-actions.pod:4730
27957 #, no-wrap
27958 msgid ""
27959 " int\n"
27960 " guestfs_mkfifo (guestfs_h *g,\n"
27961 "                 int mode,\n"
27962 "                 const char *path);\n"
27963 "\n"
27964 msgstr ""
27965
27966 #. type: textblock
27967 #: ../src/guestfs-actions.pod:4735
27968 msgid ""
27969 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
27970 "is just a convenient wrapper around C<guestfs_mknod>."
27971 msgstr ""
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:4745
27975 msgid "guestfs_mkfs"
27976 msgstr ""
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:4747
27980 #, no-wrap
27981 msgid ""
27982 " int\n"
27983 " guestfs_mkfs (guestfs_h *g,\n"
27984 "               const char *fstype,\n"
27985 "               const char *device);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: =head2
27990 #: ../src/guestfs-actions.pod:4760
27991 msgid "guestfs_mkfs_b"
27992 msgstr ""
27993
27994 #. type: verbatim
27995 #: ../src/guestfs-actions.pod:4762
27996 #, no-wrap
27997 msgid ""
27998 " int\n"
27999 " guestfs_mkfs_b (guestfs_h *g,\n"
28000 "                 const char *fstype,\n"
28001 "                 int blocksize,\n"
28002 "                 const char *device);\n"
28003 "\n"
28004 msgstr ""
28005
28006 #. type: textblock
28007 #: ../src/guestfs-actions.pod:4768
28008 msgid ""
28009 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28010 "call instead."
28011 msgstr ""
28012
28013 #. type: textblock
28014 #: ../src/guestfs-actions.pod:4775
28015 msgid ""
28016 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28017 "block size of the resulting filesystem.  Supported block sizes depend on the "
28018 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:4787
28023 msgid "guestfs_mkfs_opts"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:4789
28028 #, no-wrap
28029 msgid ""
28030 " int\n"
28031 " guestfs_mkfs_opts (guestfs_h *g,\n"
28032 "                    const char *fstype,\n"
28033 "                    const char *device,\n"
28034 "                    ...);\n"
28035 "\n"
28036 msgstr ""
28037
28038 #. type: verbatim
28039 #: ../src/guestfs-actions.pod:4800
28040 #, no-wrap
28041 msgid ""
28042 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28043 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28044 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28045 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28046 "\n"
28047 msgstr ""
28048
28049 #. type: textblock
28050 #: ../src/guestfs-actions.pod:4848
28051 msgid "(Added in 1.7.19)"
28052 msgstr ""
28053
28054 #. type: =head2
28055 #: ../src/guestfs-actions.pod:4850
28056 msgid "guestfs_mkfs_opts_va"
28057 msgstr ""
28058
28059 #. type: verbatim
28060 #: ../src/guestfs-actions.pod:4852
28061 #, no-wrap
28062 msgid ""
28063 " int\n"
28064 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28065 "                       const char *fstype,\n"
28066 "                       const char *device,\n"
28067 "                       va_list args);\n"
28068 "\n"
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:4858
28073 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28074 msgstr ""
28075
28076 #. type: =head2
28077 #: ../src/guestfs-actions.pod:4862
28078 msgid "guestfs_mkfs_opts_argv"
28079 msgstr ""
28080
28081 #. type: verbatim
28082 #: ../src/guestfs-actions.pod:4864
28083 #, no-wrap
28084 msgid ""
28085 " int\n"
28086 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28087 "                         const char *fstype,\n"
28088 "                         const char *device,\n"
28089 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28090 "\n"
28091 msgstr ""
28092
28093 #. type: textblock
28094 #: ../src/guestfs-actions.pod:4870
28095 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28096 msgstr ""
28097
28098 #. type: =head2
28099 #: ../src/guestfs-actions.pod:4874
28100 msgid "guestfs_mkmountpoint"
28101 msgstr ""
28102
28103 #. type: verbatim
28104 #: ../src/guestfs-actions.pod:4876
28105 #, no-wrap
28106 msgid ""
28107 " int\n"
28108 " guestfs_mkmountpoint (guestfs_h *g,\n"
28109 "                       const char *exemptpath);\n"
28110 "\n"
28111 msgstr ""
28112
28113 #. type: textblock
28114 #: ../src/guestfs-actions.pod:4880
28115 msgid ""
28116 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28117 "that can be used to create extra mountpoints before mounting the first "
28118 "filesystem."
28119 msgstr ""
28120
28121 #. type: textblock
28122 #: ../src/guestfs-actions.pod:4904
28123 msgid ""
28124 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28125 "may get unexpected errors if you try to mix these calls.  It is safest to "
28126 "manually unmount filesystems and remove mountpoints after use."
28127 msgstr ""
28128
28129 #. type: textblock
28130 #: ../src/guestfs-actions.pod:4908
28131 msgid ""
28132 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28133 "first, so for this to work for manual mountpoints, you must ensure that the "
28134 "innermost mountpoints have the longest pathnames, as in the example code "
28135 "above."
28136 msgstr ""
28137
28138 #. type: textblock
28139 #: ../src/guestfs-actions.pod:4915
28140 msgid ""
28141 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28142 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28143 "can also trigger these issues."
28144 msgstr ""
28145
28146 #. type: textblock
28147 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:6237
28148 msgid "(Added in 1.0.62)"
28149 msgstr ""
28150
28151 #. type: =head2
28152 #: ../src/guestfs-actions.pod:4923
28153 msgid "guestfs_mknod"
28154 msgstr ""
28155
28156 #. type: verbatim
28157 #: ../src/guestfs-actions.pod:4925
28158 #, no-wrap
28159 msgid ""
28160 " int\n"
28161 " guestfs_mknod (guestfs_h *g,\n"
28162 "                int mode,\n"
28163 "                int devmajor,\n"
28164 "                int devminor,\n"
28165 "                const char *path);\n"
28166 "\n"
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:4940
28171 msgid ""
28172 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28173 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28174 "regular file).  These constants are available in the standard Linux header "
28175 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28176 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28177 "the appropriate constant for you."
28178 msgstr ""
28179
28180 #. type: =head2
28181 #: ../src/guestfs-actions.pod:4954
28182 msgid "guestfs_mknod_b"
28183 msgstr ""
28184
28185 #. type: verbatim
28186 #: ../src/guestfs-actions.pod:4956
28187 #, no-wrap
28188 msgid ""
28189 " int\n"
28190 " guestfs_mknod_b (guestfs_h *g,\n"
28191 "                  int mode,\n"
28192 "                  int devmajor,\n"
28193 "                  int devminor,\n"
28194 "                  const char *path);\n"
28195 "\n"
28196 msgstr ""
28197
28198 #. type: textblock
28199 #: ../src/guestfs-actions.pod:4963
28200 msgid ""
28201 "This call creates a block device node called C<path> with mode C<mode> and "
28202 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28203 "wrapper around C<guestfs_mknod>."
28204 msgstr ""
28205
28206 #. type: =head2
28207 #: ../src/guestfs-actions.pod:4973
28208 msgid "guestfs_mknod_c"
28209 msgstr ""
28210
28211 #. type: verbatim
28212 #: ../src/guestfs-actions.pod:4975
28213 #, no-wrap
28214 msgid ""
28215 " int\n"
28216 " guestfs_mknod_c (guestfs_h *g,\n"
28217 "                  int mode,\n"
28218 "                  int devmajor,\n"
28219 "                  int devminor,\n"
28220 "                  const char *path);\n"
28221 "\n"
28222 msgstr ""
28223
28224 #. type: textblock
28225 #: ../src/guestfs-actions.pod:4982
28226 msgid ""
28227 "This call creates a char device node called C<path> with mode C<mode> and "
28228 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28229 "wrapper around C<guestfs_mknod>."
28230 msgstr ""
28231
28232 #. type: =head2
28233 #: ../src/guestfs-actions.pod:4992
28234 msgid "guestfs_mkswap"
28235 msgstr ""
28236
28237 #. type: verbatim
28238 #: ../src/guestfs-actions.pod:4994
28239 #, no-wrap
28240 msgid ""
28241 " int\n"
28242 " guestfs_mkswap (guestfs_h *g,\n"
28243 "                 const char *device);\n"
28244 "\n"
28245 msgstr ""
28246
28247 #. type: =head2
28248 #: ../src/guestfs-actions.pod:5004
28249 msgid "guestfs_mkswap_L"
28250 msgstr ""
28251
28252 #. type: verbatim
28253 #: ../src/guestfs-actions.pod:5006
28254 #, no-wrap
28255 msgid ""
28256 " int\n"
28257 " guestfs_mkswap_L (guestfs_h *g,\n"
28258 "                   const char *label,\n"
28259 "                   const char *device);\n"
28260 "\n"
28261 msgstr ""
28262
28263 #. type: =head2
28264 #: ../src/guestfs-actions.pod:5021
28265 msgid "guestfs_mkswap_U"
28266 msgstr ""
28267
28268 #. type: verbatim
28269 #: ../src/guestfs-actions.pod:5023
28270 #, no-wrap
28271 msgid ""
28272 " int\n"
28273 " guestfs_mkswap_U (guestfs_h *g,\n"
28274 "                   const char *uuid,\n"
28275 "                   const char *device);\n"
28276 "\n"
28277 msgstr ""
28278
28279 #. type: =head2
28280 #: ../src/guestfs-actions.pod:5034
28281 msgid "guestfs_mkswap_file"
28282 msgstr ""
28283
28284 #. type: verbatim
28285 #: ../src/guestfs-actions.pod:5036
28286 #, no-wrap
28287 msgid ""
28288 " int\n"
28289 " guestfs_mkswap_file (guestfs_h *g,\n"
28290 "                      const char *path);\n"
28291 "\n"
28292 msgstr ""
28293
28294 #. type: textblock
28295 #: ../src/guestfs-actions.pod:5042
28296 msgid ""
28297 "This command just writes a swap file signature to an existing file.  To "
28298 "create the file itself, use something like C<guestfs_fallocate>."
28299 msgstr ""
28300
28301 #. type: =head2
28302 #: ../src/guestfs-actions.pod:5049
28303 msgid "guestfs_modprobe"
28304 msgstr ""
28305
28306 #. type: verbatim
28307 #: ../src/guestfs-actions.pod:5051
28308 #, no-wrap
28309 msgid ""
28310 " int\n"
28311 " guestfs_modprobe (guestfs_h *g,\n"
28312 "                   const char *modulename);\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:5064
28318 msgid "guestfs_mount"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:5066
28323 #, no-wrap
28324 msgid ""
28325 " int\n"
28326 " guestfs_mount (guestfs_h *g,\n"
28327 "                const char *device,\n"
28328 "                const char *mountpoint);\n"
28329 "\n"
28330 msgstr ""
28331
28332 #. type: textblock
28333 #: ../src/guestfs-actions.pod:5085
28334 msgid ""
28335 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
28336 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
28337 "problems for users.  If your program might need to work with older versions "
28338 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
28339 "for the first parameter if you don't want any options)."
28340 msgstr ""
28341
28342 #. type: =head2
28343 #: ../src/guestfs-actions.pod:5096
28344 msgid "guestfs_mount_9p"
28345 msgstr ""
28346
28347 #. type: verbatim
28348 #: ../src/guestfs-actions.pod:5098
28349 #, no-wrap
28350 msgid ""
28351 " int\n"
28352 " guestfs_mount_9p (guestfs_h *g,\n"
28353 "                   const char *mounttag,\n"
28354 "                   const char *mountpoint,\n"
28355 "                   ...);\n"
28356 "\n"
28357 msgstr ""
28358
28359 #. type: verbatim
28360 #: ../src/guestfs-actions.pod:5109
28361 #, no-wrap
28362 msgid ""
28363 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28364 "\n"
28365 msgstr ""
28366
28367 #. type: =head2
28368 #: ../src/guestfs-actions.pod:5122
28369 msgid "guestfs_mount_9p_va"
28370 msgstr ""
28371
28372 #. type: verbatim
28373 #: ../src/guestfs-actions.pod:5124
28374 #, no-wrap
28375 msgid ""
28376 " int\n"
28377 " guestfs_mount_9p_va (guestfs_h *g,\n"
28378 "                      const char *mounttag,\n"
28379 "                      const char *mountpoint,\n"
28380 "                      va_list args);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: textblock
28385 #: ../src/guestfs-actions.pod:5130
28386 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28387 msgstr ""
28388
28389 #. type: =head2
28390 #: ../src/guestfs-actions.pod:5134
28391 msgid "guestfs_mount_9p_argv"
28392 msgstr ""
28393
28394 #. type: verbatim
28395 #: ../src/guestfs-actions.pod:5136
28396 #, no-wrap
28397 msgid ""
28398 " int\n"
28399 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28400 "                        const char *mounttag,\n"
28401 "                        const char *mountpoint,\n"
28402 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28403 "\n"
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../src/guestfs-actions.pod:5142
28408 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28409 msgstr ""
28410
28411 #. type: =head2
28412 #: ../src/guestfs-actions.pod:5146
28413 msgid "guestfs_mount_loop"
28414 msgstr ""
28415
28416 #. type: verbatim
28417 #: ../src/guestfs-actions.pod:5148
28418 #, no-wrap
28419 msgid ""
28420 " int\n"
28421 " guestfs_mount_loop (guestfs_h *g,\n"
28422 "                     const char *file,\n"
28423 "                     const char *mountpoint);\n"
28424 "\n"
28425 msgstr ""
28426
28427 #. type: =head2
28428 #: ../src/guestfs-actions.pod:5161
28429 msgid "guestfs_mount_options"
28430 msgstr ""
28431
28432 #. type: verbatim
28433 #: ../src/guestfs-actions.pod:5163
28434 #, no-wrap
28435 msgid ""
28436 " int\n"
28437 " guestfs_mount_options (guestfs_h *g,\n"
28438 "                        const char *options,\n"
28439 "                        const char *device,\n"
28440 "                        const char *mountpoint);\n"
28441 "\n"
28442 msgstr ""
28443
28444 #. type: textblock
28445 #: ../src/guestfs-actions.pod:5169
28446 msgid ""
28447 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28448 "the mount options as for the L<mount(8)> I<-o> flag."
28449 msgstr ""
28450
28451 #. type: textblock
28452 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193 ../src/guestfs-actions.pod:5210
28453 msgid "(Added in 1.0.10)"
28454 msgstr ""
28455
28456 #. type: =head2
28457 #: ../src/guestfs-actions.pod:5181
28458 msgid "guestfs_mount_ro"
28459 msgstr ""
28460
28461 #. type: verbatim
28462 #: ../src/guestfs-actions.pod:5183
28463 #, no-wrap
28464 msgid ""
28465 " int\n"
28466 " guestfs_mount_ro (guestfs_h *g,\n"
28467 "                   const char *device,\n"
28468 "                   const char *mountpoint);\n"
28469 "\n"
28470 msgstr ""
28471
28472 #. type: textblock
28473 #: ../src/guestfs-actions.pod:5188
28474 msgid ""
28475 "This is the same as the C<guestfs_mount> command, but it mounts the "
28476 "filesystem with the read-only (I<-o ro>) flag."
28477 msgstr ""
28478
28479 #. type: =head2
28480 #: ../src/guestfs-actions.pod:5195
28481 msgid "guestfs_mount_vfs"
28482 msgstr ""
28483
28484 #. type: verbatim
28485 #: ../src/guestfs-actions.pod:5197
28486 #, no-wrap
28487 msgid ""
28488 " int\n"
28489 " guestfs_mount_vfs (guestfs_h *g,\n"
28490 "                    const char *options,\n"
28491 "                    const char *vfstype,\n"
28492 "                    const char *device,\n"
28493 "                    const char *mountpoint);\n"
28494 "\n"
28495 msgstr ""
28496
28497 #. type: textblock
28498 #: ../src/guestfs-actions.pod:5204
28499 msgid ""
28500 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28501 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
28502 "I<-t> flags."
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:5212
28507 msgid "guestfs_mountpoints"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:5214
28512 #, no-wrap
28513 msgid ""
28514 " char **\n"
28515 " guestfs_mountpoints (guestfs_h *g);\n"
28516 "\n"
28517 msgstr ""
28518
28519 #. type: textblock
28520 #: ../src/guestfs-actions.pod:5217
28521 msgid ""
28522 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28523 "devices.  This one returns a hash table (map) of device name to directory "
28524 "where the device is mounted."
28525 msgstr ""
28526
28527 #. type: =head2
28528 #: ../src/guestfs-actions.pod:5229
28529 msgid "guestfs_mounts"
28530 msgstr ""
28531
28532 #. type: verbatim
28533 #: ../src/guestfs-actions.pod:5231
28534 #, no-wrap
28535 msgid ""
28536 " char **\n"
28537 " guestfs_mounts (guestfs_h *g);\n"
28538 "\n"
28539 msgstr ""
28540
28541 #. type: textblock
28542 #: ../src/guestfs-actions.pod:5239
28543 msgid "See also: C<guestfs_mountpoints>"
28544 msgstr ""
28545
28546 #. type: =head2
28547 #: ../src/guestfs-actions.pod:5247
28548 msgid "guestfs_mv"
28549 msgstr ""
28550
28551 #. type: verbatim
28552 #: ../src/guestfs-actions.pod:5249
28553 #, no-wrap
28554 msgid ""
28555 " int\n"
28556 " guestfs_mv (guestfs_h *g,\n"
28557 "             const char *src,\n"
28558 "             const char *dest);\n"
28559 "\n"
28560 msgstr ""
28561
28562 #. type: =head2
28563 #: ../src/guestfs-actions.pod:5261
28564 msgid "guestfs_ntfs_3g_probe"
28565 msgstr ""
28566
28567 #. type: verbatim
28568 #: ../src/guestfs-actions.pod:5263
28569 #, no-wrap
28570 msgid ""
28571 " int\n"
28572 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28573 "                        int rw,\n"
28574 "                        const char *device);\n"
28575 "\n"
28576 msgstr ""
28577
28578 #. type: textblock
28579 #: ../src/guestfs-actions.pod:5282
28580 msgid "(Added in 1.0.43)"
28581 msgstr ""
28582
28583 #. type: =head2
28584 #: ../src/guestfs-actions.pod:5284
28585 msgid "guestfs_ntfsresize"
28586 msgstr ""
28587
28588 #. type: verbatim
28589 #: ../src/guestfs-actions.pod:5286
28590 #, no-wrap
28591 msgid ""
28592 " int\n"
28593 " guestfs_ntfsresize (guestfs_h *g,\n"
28594 "                     const char *device);\n"
28595 "\n"
28596 msgstr ""
28597
28598 #. type: textblock
28599 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
28600 msgid ""
28601 "I<This function is deprecated.> In new code, use the "
28602 "L</guestfs_ntfsresize_opts> call instead."
28603 msgstr ""
28604
28605 #. type: =head2
28606 #: ../src/guestfs-actions.pod:5314
28607 msgid "guestfs_ntfsresize_opts"
28608 msgstr ""
28609
28610 #. type: verbatim
28611 #: ../src/guestfs-actions.pod:5316
28612 #, no-wrap
28613 msgid ""
28614 " int\n"
28615 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28616 "                          const char *device,\n"
28617 "                          ...);\n"
28618 "\n"
28619 msgstr ""
28620
28621 #. type: verbatim
28622 #: ../src/guestfs-actions.pod:5326
28623 #, no-wrap
28624 msgid ""
28625 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28626 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28627 "\n"
28628 msgstr ""
28629
28630 #. type: textblock
28631 #: ../src/guestfs-actions.pod:5346
28632 msgid ""
28633 "After the resize operation, the filesystem is always marked as requiring a "
28634 "consistency check (for safety).  You have to boot into Windows to perform "
28635 "this check and clear this condition.  If you I<don't> set the C<force> "
28636 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28637 "times on a single filesystem without booting into Windows between each "
28638 "resize."
28639 msgstr ""
28640
28641 #. type: =head2
28642 #: ../src/guestfs-actions.pod:5361
28643 msgid "guestfs_ntfsresize_opts_va"
28644 msgstr ""
28645
28646 #. type: verbatim
28647 #: ../src/guestfs-actions.pod:5363
28648 #, no-wrap
28649 msgid ""
28650 " int\n"
28651 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28652 "                             const char *device,\n"
28653 "                             va_list args);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: textblock
28658 #: ../src/guestfs-actions.pod:5368
28659 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28660 msgstr ""
28661
28662 #. type: =head2
28663 #: ../src/guestfs-actions.pod:5372
28664 msgid "guestfs_ntfsresize_opts_argv"
28665 msgstr ""
28666
28667 #. type: verbatim
28668 #: ../src/guestfs-actions.pod:5374
28669 #, no-wrap
28670 msgid ""
28671 " int\n"
28672 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
28673 "                               const char *device,\n"
28674 "                               const struct guestfs_ntfsresize_opts_argv "
28675 "*optargs);\n"
28676 "\n"
28677 msgstr ""
28678
28679 #. type: textblock
28680 #: ../src/guestfs-actions.pod:5379
28681 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
28682 msgstr ""
28683
28684 #. type: =head2
28685 #: ../src/guestfs-actions.pod:5383
28686 msgid "guestfs_ntfsresize_size"
28687 msgstr ""
28688
28689 #. type: verbatim
28690 #: ../src/guestfs-actions.pod:5385
28691 #, no-wrap
28692 msgid ""
28693 " int\n"
28694 " guestfs_ntfsresize_size (guestfs_h *g,\n"
28695 "                          const char *device,\n"
28696 "                          int64_t size);\n"
28697 "\n"
28698 msgstr ""
28699
28700 #. type: textblock
28701 #: ../src/guestfs-actions.pod:5397
28702 msgid ""
28703 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
28704 "to specify the new size (in bytes) explicitly."
28705 msgstr ""
28706
28707 #. type: textblock
28708 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185 ../src/guestfs-actions.pod:7824
28709 msgid "(Added in 1.3.14)"
28710 msgstr ""
28711
28712 #. type: =head2
28713 #: ../src/guestfs-actions.pod:5404
28714 msgid "guestfs_part_add"
28715 msgstr ""
28716
28717 #. type: verbatim
28718 #: ../src/guestfs-actions.pod:5406
28719 #, no-wrap
28720 msgid ""
28721 " int\n"
28722 " guestfs_part_add (guestfs_h *g,\n"
28723 "                   const char *device,\n"
28724 "                   const char *prlogex,\n"
28725 "                   int64_t startsect,\n"
28726 "                   int64_t endsect);\n"
28727 "\n"
28728 msgstr ""
28729
28730 #. type: textblock
28731 #: ../src/guestfs-actions.pod:5413
28732 msgid ""
28733 "This command adds a partition to C<device>.  If there is no partition table "
28734 "on the device, call C<guestfs_part_init> first."
28735 msgstr ""
28736
28737 #. type: textblock
28738 #: ../src/guestfs-actions.pod:5425
28739 msgid ""
28740 "Creating a partition which covers the whole disk is not so easy.  Use "
28741 "C<guestfs_part_disk> to do that."
28742 msgstr ""
28743
28744 #. type: textblock
28745 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468 ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5702
28746 msgid "(Added in 1.0.78)"
28747 msgstr ""
28748
28749 #. type: =head2
28750 #: ../src/guestfs-actions.pod:5432
28751 msgid "guestfs_part_del"
28752 msgstr ""
28753
28754 #. type: verbatim
28755 #: ../src/guestfs-actions.pod:5434
28756 #, no-wrap
28757 msgid ""
28758 " int\n"
28759 " guestfs_part_del (guestfs_h *g,\n"
28760 "                   const char *device,\n"
28761 "                   int partnum);\n"
28762 "\n"
28763 msgstr ""
28764
28765 #. type: =head2
28766 #: ../src/guestfs-actions.pod:5449
28767 msgid "guestfs_part_disk"
28768 msgstr ""
28769
28770 #. type: verbatim
28771 #: ../src/guestfs-actions.pod:5451
28772 #, no-wrap
28773 msgid ""
28774 " int\n"
28775 " guestfs_part_disk (guestfs_h *g,\n"
28776 "                    const char *device,\n"
28777 "                    const char *parttype);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:5456
28783 msgid ""
28784 "This command is simply a combination of C<guestfs_part_init> followed by "
28785 "C<guestfs_part_add> to create a single primary partition covering the whole "
28786 "disk."
28787 msgstr ""
28788
28789 #. type: textblock
28790 #: ../src/guestfs-actions.pod:5460
28791 msgid ""
28792 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
28793 "possible values are described in C<guestfs_part_init>."
28794 msgstr ""
28795
28796 #. type: =head2
28797 #: ../src/guestfs-actions.pod:5470
28798 msgid "guestfs_part_get_bootable"
28799 msgstr ""
28800
28801 #. type: verbatim
28802 #: ../src/guestfs-actions.pod:5472
28803 #, no-wrap
28804 msgid ""
28805 " int\n"
28806 " guestfs_part_get_bootable (guestfs_h *g,\n"
28807 "                            const char *device,\n"
28808 "                            int partnum);\n"
28809 "\n"
28810 msgstr ""
28811
28812 #. type: textblock
28813 #: ../src/guestfs-actions.pod:5480
28814 msgid "See also C<guestfs_part_set_bootable>."
28815 msgstr ""
28816
28817 #. type: =head2
28818 #: ../src/guestfs-actions.pod:5486
28819 msgid "guestfs_part_get_mbr_id"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../src/guestfs-actions.pod:5488
28824 #, no-wrap
28825 msgid ""
28826 " int\n"
28827 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
28828 "                          const char *device,\n"
28829 "                          int partnum);\n"
28830 "\n"
28831 msgstr ""
28832
28833 #. type: textblock
28834 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
28835 msgid ""
28836 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
28837 "undefined results for other partition table types (see "
28838 "C<guestfs_part_get_parttype>)."
28839 msgstr ""
28840
28841 #. type: =head2
28842 #: ../src/guestfs-actions.pod:5504
28843 msgid "guestfs_part_get_parttype"
28844 msgstr ""
28845
28846 #. type: verbatim
28847 #: ../src/guestfs-actions.pod:5506
28848 #, no-wrap
28849 msgid ""
28850 " char *\n"
28851 " guestfs_part_get_parttype (guestfs_h *g,\n"
28852 "                            const char *device);\n"
28853 "\n"
28854 msgstr ""
28855
28856 #. type: textblock
28857 #: ../src/guestfs-actions.pod:5513
28858 msgid ""
28859 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
28860 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
28861 "possible, although unusual.  See C<guestfs_part_init> for a full list."
28862 msgstr ""
28863
28864 #. type: =head2
28865 #: ../src/guestfs-actions.pod:5523
28866 msgid "guestfs_part_init"
28867 msgstr ""
28868
28869 #. type: verbatim
28870 #: ../src/guestfs-actions.pod:5525
28871 #, no-wrap
28872 msgid ""
28873 " int\n"
28874 " guestfs_part_init (guestfs_h *g,\n"
28875 "                    const char *device,\n"
28876 "                    const char *parttype);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: textblock
28881 #: ../src/guestfs-actions.pod:5534
28882 msgid ""
28883 "Initially there are no partitions.  Following this, you should call "
28884 "C<guestfs_part_add> for each partition required."
28885 msgstr ""
28886
28887 #. type: =head2
28888 #: ../src/guestfs-actions.pod:5607
28889 msgid "guestfs_part_list"
28890 msgstr ""
28891
28892 #. type: verbatim
28893 #: ../src/guestfs-actions.pod:5609
28894 #, no-wrap
28895 msgid ""
28896 " struct guestfs_partition_list *\n"
28897 " guestfs_part_list (guestfs_h *g,\n"
28898 "                    const char *device);\n"
28899 "\n"
28900 msgstr ""
28901
28902 #. type: textblock
28903 #: ../src/guestfs-actions.pod:5626
28904 msgid ""
28905 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
28906 "the device's sector size, see C<guestfs_blockdev_getss>."
28907 msgstr ""
28908
28909 #. type: textblock
28910 #: ../src/guestfs-actions.pod:5639
28911 msgid ""
28912 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
28913 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
28914 "use>."
28915 msgstr ""
28916
28917 #. type: =head2
28918 #: ../src/guestfs-actions.pod:5645
28919 msgid "guestfs_part_set_bootable"
28920 msgstr ""
28921
28922 #. type: verbatim
28923 #: ../src/guestfs-actions.pod:5647
28924 #, no-wrap
28925 msgid ""
28926 " int\n"
28927 " guestfs_part_set_bootable (guestfs_h *g,\n"
28928 "                            const char *device,\n"
28929 "                            int partnum,\n"
28930 "                            int bootable);\n"
28931 "\n"
28932 msgstr ""
28933
28934 #. type: =head2
28935 #: ../src/guestfs-actions.pod:5664
28936 msgid "guestfs_part_set_mbr_id"
28937 msgstr ""
28938
28939 #. type: verbatim
28940 #: ../src/guestfs-actions.pod:5666
28941 #, no-wrap
28942 msgid ""
28943 " int\n"
28944 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
28945 "                          const char *device,\n"
28946 "                          int partnum,\n"
28947 "                          int idbyte);\n"
28948 "\n"
28949 msgstr ""
28950
28951 #. type: =head2
28952 #: ../src/guestfs-actions.pod:5686
28953 msgid "guestfs_part_set_name"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:5688
28958 #, no-wrap
28959 msgid ""
28960 " int\n"
28961 " guestfs_part_set_name (guestfs_h *g,\n"
28962 "                        const char *device,\n"
28963 "                        int partnum,\n"
28964 "                        const char *name);\n"
28965 "\n"
28966 msgstr ""
28967
28968 #. type: =head2
28969 #: ../src/guestfs-actions.pod:5704
28970 msgid "guestfs_part_to_dev"
28971 msgstr ""
28972
28973 #. type: verbatim
28974 #: ../src/guestfs-actions.pod:5706
28975 #, no-wrap
28976 msgid ""
28977 " char *\n"
28978 " guestfs_part_to_dev (guestfs_h *g,\n"
28979 "                      const char *partition);\n"
28980 "\n"
28981 msgstr ""
28982
28983 #. type: textblock
28984 #: ../src/guestfs-actions.pod:5714
28985 msgid ""
28986 "The named partition must exist, for example as a string returned from "
28987 "C<guestfs_list_partitions>."
28988 msgstr ""
28989
28990 #. type: =head2
28991 #: ../src/guestfs-actions.pod:5722
28992 msgid "guestfs_ping_daemon"
28993 msgstr ""
28994
28995 #. type: verbatim
28996 #: ../src/guestfs-actions.pod:5724
28997 #, no-wrap
28998 msgid ""
28999 " int\n"
29000 " guestfs_ping_daemon (guestfs_h *g);\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:5736
29006 msgid "guestfs_pread"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:5738
29011 #, no-wrap
29012 msgid ""
29013 " char *\n"
29014 " guestfs_pread (guestfs_h *g,\n"
29015 "                const char *path,\n"
29016 "                int count,\n"
29017 "                int64_t offset,\n"
29018 "                size_t *size_r);\n"
29019 "\n"
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:5751
29024 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29025 msgstr ""
29026
29027 #. type: =head2
29028 #: ../src/guestfs-actions.pod:5762
29029 msgid "guestfs_pread_device"
29030 msgstr ""
29031
29032 #. type: verbatim
29033 #: ../src/guestfs-actions.pod:5764
29034 #, no-wrap
29035 msgid ""
29036 " char *\n"
29037 " guestfs_pread_device (guestfs_h *g,\n"
29038 "                       const char *device,\n"
29039 "                       int count,\n"
29040 "                       int64_t offset,\n"
29041 "                       size_t *size_r);\n"
29042 "\n"
29043 msgstr ""
29044
29045 #. type: textblock
29046 #: ../src/guestfs-actions.pod:5777
29047 msgid "See also C<guestfs_pread>."
29048 msgstr ""
29049
29050 #. type: textblock
29051 #: ../src/guestfs-actions.pod:5786
29052 msgid "(Added in 1.5.21)"
29053 msgstr ""
29054
29055 #. type: =head2
29056 #: ../src/guestfs-actions.pod:5788
29057 msgid "guestfs_pvcreate"
29058 msgstr ""
29059
29060 #. type: verbatim
29061 #: ../src/guestfs-actions.pod:5790
29062 #, no-wrap
29063 msgid ""
29064 " int\n"
29065 " guestfs_pvcreate (guestfs_h *g,\n"
29066 "                   const char *device);\n"
29067 "\n"
29068 msgstr ""
29069
29070 #. type: =head2
29071 #: ../src/guestfs-actions.pod:5802
29072 msgid "guestfs_pvremove"
29073 msgstr ""
29074
29075 #. type: verbatim
29076 #: ../src/guestfs-actions.pod:5804
29077 #, no-wrap
29078 msgid ""
29079 " int\n"
29080 " guestfs_pvremove (guestfs_h *g,\n"
29081 "                   const char *device);\n"
29082 "\n"
29083 msgstr ""
29084
29085 #. type: =head2
29086 #: ../src/guestfs-actions.pod:5819
29087 msgid "guestfs_pvresize"
29088 msgstr ""
29089
29090 #. type: verbatim
29091 #: ../src/guestfs-actions.pod:5821
29092 #, no-wrap
29093 msgid ""
29094 " int\n"
29095 " guestfs_pvresize (guestfs_h *g,\n"
29096 "                   const char *device);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:5832
29102 msgid "guestfs_pvresize_size"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:5834
29107 #, no-wrap
29108 msgid ""
29109 " int\n"
29110 " guestfs_pvresize_size (guestfs_h *g,\n"
29111 "                        const char *device,\n"
29112 "                        int64_t size);\n"
29113 "\n"
29114 msgstr ""
29115
29116 #. type: textblock
29117 #: ../src/guestfs-actions.pod:5839
29118 msgid ""
29119 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29120 "specify the new size (in bytes) explicitly."
29121 msgstr ""
29122
29123 #. type: =head2
29124 #: ../src/guestfs-actions.pod:5846
29125 msgid "guestfs_pvs"
29126 msgstr ""
29127
29128 #. type: verbatim
29129 #: ../src/guestfs-actions.pod:5848
29130 #, no-wrap
29131 msgid ""
29132 " char **\n"
29133 " guestfs_pvs (guestfs_h *g);\n"
29134 "\n"
29135 msgstr ""
29136
29137 #. type: textblock
29138 #: ../src/guestfs-actions.pod:5857
29139 msgid "See also C<guestfs_pvs_full>."
29140 msgstr ""
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:5865
29144 msgid "guestfs_pvs_full"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:5867
29149 #, no-wrap
29150 msgid ""
29151 " struct guestfs_lvm_pv_list *\n"
29152 " guestfs_pvs_full (guestfs_h *g);\n"
29153 "\n"
29154 msgstr ""
29155
29156 #. type: textblock
29157 #: ../src/guestfs-actions.pod:5873
29158 msgid ""
29159 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29160 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
29161 "use>."
29162 msgstr ""
29163
29164 #. type: =head2
29165 #: ../src/guestfs-actions.pod:5879
29166 msgid "guestfs_pvuuid"
29167 msgstr ""
29168
29169 #. type: verbatim
29170 #: ../src/guestfs-actions.pod:5881
29171 #, no-wrap
29172 msgid ""
29173 " char *\n"
29174 " guestfs_pvuuid (guestfs_h *g,\n"
29175 "                 const char *device);\n"
29176 "\n"
29177 msgstr ""
29178
29179 #. type: =head2
29180 #: ../src/guestfs-actions.pod:5892
29181 msgid "guestfs_pwrite"
29182 msgstr ""
29183
29184 #. type: verbatim
29185 #: ../src/guestfs-actions.pod:5894
29186 #, no-wrap
29187 msgid ""
29188 " int\n"
29189 " guestfs_pwrite (guestfs_h *g,\n"
29190 "                 const char *path,\n"
29191 "                 const char *content,\n"
29192 "                 size_t content_size,\n"
29193 "                 int64_t offset);\n"
29194 "\n"
29195 msgstr ""
29196
29197 #. type: textblock
29198 #: ../src/guestfs-actions.pod:5910
29199 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29200 msgstr ""
29201
29202 #. type: =head2
29203 #: ../src/guestfs-actions.pod:5919
29204 msgid "guestfs_pwrite_device"
29205 msgstr ""
29206
29207 #. type: verbatim
29208 #: ../src/guestfs-actions.pod:5921
29209 #, no-wrap
29210 msgid ""
29211 " int\n"
29212 " guestfs_pwrite_device (guestfs_h *g,\n"
29213 "                        const char *device,\n"
29214 "                        const char *content,\n"
29215 "                        size_t content_size,\n"
29216 "                        int64_t offset);\n"
29217 "\n"
29218 msgstr ""
29219
29220 #. type: textblock
29221 #: ../src/guestfs-actions.pod:5936
29222 msgid "See also C<guestfs_pwrite>."
29223 msgstr ""
29224
29225 #. type: textblock
29226 #: ../src/guestfs-actions.pod:5943
29227 msgid "(Added in 1.5.20)"
29228 msgstr ""
29229
29230 #. type: =head2
29231 #: ../src/guestfs-actions.pod:5945
29232 msgid "guestfs_read_file"
29233 msgstr ""
29234
29235 #. type: verbatim
29236 #: ../src/guestfs-actions.pod:5947
29237 #, no-wrap
29238 msgid ""
29239 " char *\n"
29240 " guestfs_read_file (guestfs_h *g,\n"
29241 "                    const char *path,\n"
29242 "                    size_t *size_r);\n"
29243 "\n"
29244 msgstr ""
29245
29246 #. type: textblock
29247 #: ../src/guestfs-actions.pod:5955
29248 msgid ""
29249 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29250 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29251 "function is limited in the total size of file that can be handled."
29252 msgstr ""
29253
29254 #. type: textblock
29255 #: ../src/guestfs-actions.pod:5967
29256 msgid "(Added in 1.0.63)"
29257 msgstr ""
29258
29259 #. type: =head2
29260 #: ../src/guestfs-actions.pod:5969
29261 msgid "guestfs_read_lines"
29262 msgstr ""
29263
29264 #. type: verbatim
29265 #: ../src/guestfs-actions.pod:5971
29266 #, no-wrap
29267 msgid ""
29268 " char **\n"
29269 " guestfs_read_lines (guestfs_h *g,\n"
29270 "                     const char *path);\n"
29271 "\n"
29272 msgstr ""
29273
29274 #. type: textblock
29275 #: ../src/guestfs-actions.pod:5980
29276 msgid ""
29277 "Note that this function cannot correctly handle binary files (specifically, "
29278 "files containing C<\\0> character which is treated as end of line).  For "
29279 "those you need to use the C<guestfs_read_file> function which has a more "
29280 "complex interface."
29281 msgstr ""
29282
29283 #. type: =head2
29284 #: ../src/guestfs-actions.pod:5991
29285 msgid "guestfs_readdir"
29286 msgstr ""
29287
29288 #. type: verbatim
29289 #: ../src/guestfs-actions.pod:5993
29290 #, no-wrap
29291 msgid ""
29292 " struct guestfs_dirent_list *\n"
29293 " guestfs_readdir (guestfs_h *g,\n"
29294 "                  const char *dir);\n"
29295 "\n"
29296 msgstr ""
29297
29298 #. type: textblock
29299 #: ../src/guestfs-actions.pod:6047
29300 msgid ""
29301 "This function is primarily intended for use by programs.  To get a simple "
29302 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29303 "consumption, use C<guestfs_ll>."
29304 msgstr ""
29305
29306 #. type: textblock
29307 #: ../src/guestfs-actions.pod:6051
29308 msgid ""
29309 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29310 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
29311 "use>."
29312 msgstr ""
29313
29314 #. type: =head2
29315 #: ../src/guestfs-actions.pod:6057
29316 msgid "guestfs_readlink"
29317 msgstr ""
29318
29319 #. type: verbatim
29320 #: ../src/guestfs-actions.pod:6059
29321 #, no-wrap
29322 msgid ""
29323 " char *\n"
29324 " guestfs_readlink (guestfs_h *g,\n"
29325 "                   const char *path);\n"
29326 "\n"
29327 msgstr ""
29328
29329 #. type: =head2
29330 #: ../src/guestfs-actions.pod:6070
29331 msgid "guestfs_readlinklist"
29332 msgstr ""
29333
29334 #. type: verbatim
29335 #: ../src/guestfs-actions.pod:6072
29336 #, no-wrap
29337 msgid ""
29338 " char **\n"
29339 " guestfs_readlinklist (guestfs_h *g,\n"
29340 "                       const char *path,\n"
29341 "                       char *const *names);\n"
29342 "\n"
29343 msgstr ""
29344
29345 #. type: =head2
29346 #: ../src/guestfs-actions.pod:6105
29347 msgid "guestfs_realpath"
29348 msgstr ""
29349
29350 #. type: verbatim
29351 #: ../src/guestfs-actions.pod:6107
29352 #, no-wrap
29353 msgid ""
29354 " char *\n"
29355 " guestfs_realpath (guestfs_h *g,\n"
29356 "                   const char *path);\n"
29357 "\n"
29358 msgstr ""
29359
29360 #. type: =head2
29361 #: ../src/guestfs-actions.pod:6119
29362 msgid "guestfs_removexattr"
29363 msgstr ""
29364
29365 #. type: verbatim
29366 #: ../src/guestfs-actions.pod:6121
29367 #, no-wrap
29368 msgid ""
29369 " int\n"
29370 " guestfs_removexattr (guestfs_h *g,\n"
29371 "                      const char *xattr,\n"
29372 "                      const char *path);\n"
29373 "\n"
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../src/guestfs-actions.pod:6129
29378 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29379 msgstr ""
29380
29381 #. type: =head2
29382 #: ../src/guestfs-actions.pod:6135
29383 msgid "guestfs_resize2fs"
29384 msgstr ""
29385
29386 #. type: verbatim
29387 #: ../src/guestfs-actions.pod:6137
29388 #, no-wrap
29389 msgid ""
29390 " int\n"
29391 " guestfs_resize2fs (guestfs_h *g,\n"
29392 "                    const char *device);\n"
29393 "\n"
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:6144
29398 msgid ""
29399 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29400 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29401 "sometimes gives an error about this and sometimes not.  In any case, it is "
29402 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29403 msgstr ""
29404
29405 #. type: =head2
29406 #: ../src/guestfs-actions.pod:6154
29407 msgid "guestfs_resize2fs_M"
29408 msgstr ""
29409
29410 #. type: verbatim
29411 #: ../src/guestfs-actions.pod:6156
29412 #, no-wrap
29413 msgid ""
29414 " int\n"
29415 " guestfs_resize2fs_M (guestfs_h *g,\n"
29416 "                      const char *device);\n"
29417 "\n"
29418 msgstr ""
29419
29420 #. type: textblock
29421 #: ../src/guestfs-actions.pod:6160
29422 msgid ""
29423 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29424 "resized to its minimum size.  This works like the I<-M> option to the "
29425 "C<resize2fs> command."
29426 msgstr ""
29427
29428 #. type: textblock
29429 #: ../src/guestfs-actions.pod:6164
29430 msgid ""
29431 "To get the resulting size of the filesystem you should call "
29432 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29433 "These two numbers, multiplied together, give the resulting size of the "
29434 "minimal filesystem in bytes."
29435 msgstr ""
29436
29437 #. type: =head2
29438 #: ../src/guestfs-actions.pod:6173
29439 msgid "guestfs_resize2fs_size"
29440 msgstr ""
29441
29442 #. type: verbatim
29443 #: ../src/guestfs-actions.pod:6175
29444 #, no-wrap
29445 msgid ""
29446 " int\n"
29447 " guestfs_resize2fs_size (guestfs_h *g,\n"
29448 "                         const char *device,\n"
29449 "                         int64_t size);\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: textblock
29454 #: ../src/guestfs-actions.pod:6180
29455 msgid ""
29456 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29457 "to specify the new size (in bytes) explicitly."
29458 msgstr ""
29459
29460 #. type: =head2
29461 #: ../src/guestfs-actions.pod:6187
29462 msgid "guestfs_rm"
29463 msgstr ""
29464
29465 #. type: verbatim
29466 #: ../src/guestfs-actions.pod:6189
29467 #, no-wrap
29468 msgid ""
29469 " int\n"
29470 " guestfs_rm (guestfs_h *g,\n"
29471 "             const char *path);\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: =head2
29476 #: ../src/guestfs-actions.pod:6199
29477 msgid "guestfs_rm_rf"
29478 msgstr ""
29479
29480 #. type: verbatim
29481 #: ../src/guestfs-actions.pod:6201
29482 #, no-wrap
29483 msgid ""
29484 " int\n"
29485 " guestfs_rm_rf (guestfs_h *g,\n"
29486 "                const char *path);\n"
29487 "\n"
29488 msgstr ""
29489
29490 #. type: =head2
29491 #: ../src/guestfs-actions.pod:6213
29492 msgid "guestfs_rmdir"
29493 msgstr ""
29494
29495 #. type: verbatim
29496 #: ../src/guestfs-actions.pod:6215
29497 #, no-wrap
29498 msgid ""
29499 " int\n"
29500 " guestfs_rmdir (guestfs_h *g,\n"
29501 "                const char *path);\n"
29502 "\n"
29503 msgstr ""
29504
29505 #. type: =head2
29506 #: ../src/guestfs-actions.pod:6225
29507 msgid "guestfs_rmmountpoint"
29508 msgstr ""
29509
29510 #. type: verbatim
29511 #: ../src/guestfs-actions.pod:6227
29512 #, no-wrap
29513 msgid ""
29514 " int\n"
29515 " guestfs_rmmountpoint (guestfs_h *g,\n"
29516 "                       const char *exemptpath);\n"
29517 "\n"
29518 msgstr ""
29519
29520 #. type: textblock
29521 #: ../src/guestfs-actions.pod:6231
29522 msgid ""
29523 "This calls removes a mountpoint that was previously created with "
29524 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29525 msgstr ""
29526
29527 #. type: =head2
29528 #: ../src/guestfs-actions.pod:6239
29529 msgid "guestfs_scrub_device"
29530 msgstr ""
29531
29532 #. type: verbatim
29533 #: ../src/guestfs-actions.pod:6241
29534 #, no-wrap
29535 msgid ""
29536 " int\n"
29537 " guestfs_scrub_device (guestfs_h *g,\n"
29538 "                       const char *device);\n"
29539 "\n"
29540 msgstr ""
29541
29542 #. type: textblock
29543 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274 ../src/guestfs-actions.pod:6293
29544 msgid "(Added in 1.0.52)"
29545 msgstr ""
29546
29547 #. type: =head2
29548 #: ../src/guestfs-actions.pod:6258
29549 msgid "guestfs_scrub_file"
29550 msgstr ""
29551
29552 #. type: verbatim
29553 #: ../src/guestfs-actions.pod:6260
29554 #, no-wrap
29555 msgid ""
29556 " int\n"
29557 " guestfs_scrub_file (guestfs_h *g,\n"
29558 "                     const char *file);\n"
29559 "\n"
29560 msgstr ""
29561
29562 #. type: =head2
29563 #: ../src/guestfs-actions.pod:6276
29564 msgid "guestfs_scrub_freespace"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-actions.pod:6278
29569 #, no-wrap
29570 msgid ""
29571 " int\n"
29572 " guestfs_scrub_freespace (guestfs_h *g,\n"
29573 "                          const char *dir);\n"
29574 "\n"
29575 msgstr ""
29576
29577 #. type: textblock
29578 #: ../src/guestfs-actions.pod:6282
29579 msgid ""
29580 "This command creates the directory C<dir> and then fills it with files until "
29581 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29582 "and deletes them.  The intention is to scrub any free space on the partition "
29583 "containing C<dir>."
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:6295
29588 msgid "guestfs_set_append"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:6297
29593 #, no-wrap
29594 msgid ""
29595 " int\n"
29596 " guestfs_set_append (guestfs_h *g,\n"
29597 "                     const char *append);\n"
29598 "\n"
29599 msgstr ""
29600
29601 #. type: =head2
29602 #: ../src/guestfs-actions.pod:6314
29603 msgid "guestfs_set_attach_method"
29604 msgstr ""
29605
29606 #. type: verbatim
29607 #: ../src/guestfs-actions.pod:6316
29608 #, no-wrap
29609 msgid ""
29610 " int\n"
29611 " guestfs_set_attach_method (guestfs_h *g,\n"
29612 "                            const char *attachmethod);\n"
29613 "\n"
29614 msgstr ""
29615
29616 #. type: =head2
29617 #: ../src/guestfs-actions.pod:6344
29618 msgid "guestfs_set_autosync"
29619 msgstr ""
29620
29621 #. type: verbatim
29622 #: ../src/guestfs-actions.pod:6346
29623 #, no-wrap
29624 msgid ""
29625 " int\n"
29626 " guestfs_set_autosync (guestfs_h *g,\n"
29627 "                       int autosync);\n"
29628 "\n"
29629 msgstr ""
29630
29631 #. type: =head2
29632 #: ../src/guestfs-actions.pod:6362
29633 msgid "guestfs_set_direct"
29634 msgstr ""
29635
29636 #. type: verbatim
29637 #: ../src/guestfs-actions.pod:6364
29638 #, no-wrap
29639 msgid ""
29640 " int\n"
29641 " guestfs_set_direct (guestfs_h *g,\n"
29642 "                     int direct);\n"
29643 "\n"
29644 msgstr ""
29645
29646 #. type: textblock
29647 #: ../src/guestfs-actions.pod:6372
29648 msgid ""
29649 "One consequence of this is that log messages aren't caught by the library "
29650 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29651 "stdout."
29652 msgstr ""
29653
29654 #. type: =head2
29655 #: ../src/guestfs-actions.pod:6385
29656 msgid "guestfs_set_e2label"
29657 msgstr ""
29658
29659 #. type: verbatim
29660 #: ../src/guestfs-actions.pod:6387
29661 #, no-wrap
29662 msgid ""
29663 " int\n"
29664 " guestfs_set_e2label (guestfs_h *g,\n"
29665 "                      const char *device,\n"
29666 "                      const char *label);\n"
29667 "\n"
29668 msgstr ""
29669
29670 #. type: textblock
29671 #: ../src/guestfs-actions.pod:6396
29672 msgid ""
29673 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
29674 "the existing label on a filesystem."
29675 msgstr ""
29676
29677 #. type: =head2
29678 #: ../src/guestfs-actions.pod:6403
29679 msgid "guestfs_set_e2uuid"
29680 msgstr ""
29681
29682 #. type: verbatim
29683 #: ../src/guestfs-actions.pod:6405
29684 #, no-wrap
29685 msgid ""
29686 " int\n"
29687 " guestfs_set_e2uuid (guestfs_h *g,\n"
29688 "                     const char *device,\n"
29689 "                     const char *uuid);\n"
29690 "\n"
29691 msgstr ""
29692
29693 #. type: textblock
29694 #: ../src/guestfs-actions.pod:6415
29695 msgid ""
29696 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
29697 "the existing UUID of a filesystem."
29698 msgstr ""
29699
29700 #. type: =head2
29701 #: ../src/guestfs-actions.pod:6422
29702 msgid "guestfs_set_memsize"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../src/guestfs-actions.pod:6424
29707 #, no-wrap
29708 msgid ""
29709 " int\n"
29710 " guestfs_set_memsize (guestfs_h *g,\n"
29711 "                      int memsize);\n"
29712 "\n"
29713 msgstr ""
29714
29715 #. type: textblock
29716 #: ../src/guestfs-actions.pod:6428
29717 msgid ""
29718 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
29719 "This only has any effect if called before C<guestfs_launch>."
29720 msgstr ""
29721
29722 #. type: =head2
29723 #: ../src/guestfs-actions.pod:6443
29724 msgid "guestfs_set_network"
29725 msgstr ""
29726
29727 #. type: verbatim
29728 #: ../src/guestfs-actions.pod:6445
29729 #, no-wrap
29730 msgid ""
29731 " int\n"
29732 " guestfs_set_network (guestfs_h *g,\n"
29733 "                      int network);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:6455
29739 msgid ""
29740 "You must call this before calling C<guestfs_launch>, otherwise it has no "
29741 "effect."
29742 msgstr ""
29743
29744 #. type: =head2
29745 #: ../src/guestfs-actions.pod:6462
29746 msgid "guestfs_set_path"
29747 msgstr ""
29748
29749 #. type: verbatim
29750 #: ../src/guestfs-actions.pod:6464
29751 #, no-wrap
29752 msgid ""
29753 " int\n"
29754 " guestfs_set_path (guestfs_h *g,\n"
29755 "                   const char *searchpath);\n"
29756 "\n"
29757 msgstr ""
29758
29759 #. type: =head2
29760 #: ../src/guestfs-actions.pod:6479
29761 msgid "guestfs_set_pgroup"
29762 msgstr ""
29763
29764 #. type: verbatim
29765 #: ../src/guestfs-actions.pod:6481
29766 #, no-wrap
29767 msgid ""
29768 " int\n"
29769 " guestfs_set_pgroup (guestfs_h *g,\n"
29770 "                     int pgroup);\n"
29771 "\n"
29772 msgstr ""
29773
29774 #. type: =head2
29775 #: ../src/guestfs-actions.pod:6498
29776 msgid "guestfs_set_qemu"
29777 msgstr ""
29778
29779 #. type: verbatim
29780 #: ../src/guestfs-actions.pod:6500
29781 #, no-wrap
29782 msgid ""
29783 " int\n"
29784 " guestfs_set_qemu (guestfs_h *g,\n"
29785 "                   const char *qemu);\n"
29786 "\n"
29787 msgstr ""
29788
29789 #. type: =head2
29790 #: ../src/guestfs-actions.pod:6526
29791 msgid "guestfs_set_recovery_proc"
29792 msgstr ""
29793
29794 #. type: verbatim
29795 #: ../src/guestfs-actions.pod:6528
29796 #, no-wrap
29797 msgid ""
29798 " int\n"
29799 " guestfs_set_recovery_proc (guestfs_h *g,\n"
29800 "                            int recoveryproc);\n"
29801 "\n"
29802 msgstr ""
29803
29804 #. type: textblock
29805 #: ../src/guestfs-actions.pod:6532
29806 msgid ""
29807 "If this is called with the parameter C<false> then C<guestfs_launch> does "
29808 "not create a recovery process.  The purpose of the recovery process is to "
29809 "stop runaway qemu processes in the case where the main program aborts "
29810 "abruptly."
29811 msgstr ""
29812
29813 #. type: textblock
29814 #: ../src/guestfs-actions.pod:6537
29815 msgid ""
29816 "This only has any effect if called before C<guestfs_launch>, and the default "
29817 "is true."
29818 msgstr ""
29819
29820 #. type: =head2
29821 #: ../src/guestfs-actions.pod:6550
29822 msgid "guestfs_set_selinux"
29823 msgstr ""
29824
29825 #. type: verbatim
29826 #: ../src/guestfs-actions.pod:6552
29827 #, no-wrap
29828 msgid ""
29829 " int\n"
29830 " guestfs_set_selinux (guestfs_h *g,\n"
29831 "                      int selinux);\n"
29832 "\n"
29833 msgstr ""
29834
29835 #. type: =head2
29836 #: ../src/guestfs-actions.pod:6569
29837 msgid "guestfs_set_smp"
29838 msgstr ""
29839
29840 #. type: verbatim
29841 #: ../src/guestfs-actions.pod:6571
29842 #, no-wrap
29843 msgid ""
29844 " int\n"
29845 " guestfs_set_smp (guestfs_h *g,\n"
29846 "                  int smp);\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:6579
29852 msgid "This function must be called before C<guestfs_launch>."
29853 msgstr ""
29854
29855 #. type: =head2
29856 #: ../src/guestfs-actions.pod:6585
29857 msgid "guestfs_set_trace"
29858 msgstr ""
29859
29860 #. type: verbatim
29861 #: ../src/guestfs-actions.pod:6587
29862 #, no-wrap
29863 msgid ""
29864 " int\n"
29865 " guestfs_set_trace (guestfs_h *g,\n"
29866 "                    int trace);\n"
29867 "\n"
29868 msgstr ""
29869
29870 #. type: textblock
29871 #: ../src/guestfs-actions.pod:6601
29872 msgid ""
29873 "Trace messages are normally sent to C<stderr>, unless you register a "
29874 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29875 msgstr ""
29876
29877 #. type: =head2
29878 #: ../src/guestfs-actions.pod:6609
29879 msgid "guestfs_set_verbose"
29880 msgstr ""
29881
29882 #. type: verbatim
29883 #: ../src/guestfs-actions.pod:6611
29884 #, no-wrap
29885 msgid ""
29886 " int\n"
29887 " guestfs_set_verbose (guestfs_h *g,\n"
29888 "                      int verbose);\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:6620
29894 msgid ""
29895 "Verbose messages are normally sent to C<stderr>, unless you register a "
29896 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
29897 msgstr ""
29898
29899 #. type: =head2
29900 #: ../src/guestfs-actions.pod:6628
29901 msgid "guestfs_setcon"
29902 msgstr ""
29903
29904 #. type: verbatim
29905 #: ../src/guestfs-actions.pod:6630
29906 #, no-wrap
29907 msgid ""
29908 " int\n"
29909 " guestfs_setcon (guestfs_h *g,\n"
29910 "                 const char *context);\n"
29911 "\n"
29912 msgstr ""
29913
29914 #. type: =head2
29915 #: ../src/guestfs-actions.pod:6643
29916 msgid "guestfs_setxattr"
29917 msgstr ""
29918
29919 #. type: verbatim
29920 #: ../src/guestfs-actions.pod:6645
29921 #, no-wrap
29922 msgid ""
29923 " int\n"
29924 " guestfs_setxattr (guestfs_h *g,\n"
29925 "                   const char *xattr,\n"
29926 "                   const char *val,\n"
29927 "                   int vallen,\n"
29928 "                   const char *path);\n"
29929 "\n"
29930 msgstr ""
29931
29932 #. type: textblock
29933 #: ../src/guestfs-actions.pod:6656
29934 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
29935 msgstr ""
29936
29937 #. type: =head2
29938 #: ../src/guestfs-actions.pod:6662
29939 msgid "guestfs_sfdisk"
29940 msgstr ""
29941
29942 #. type: verbatim
29943 #: ../src/guestfs-actions.pod:6664
29944 #, no-wrap
29945 msgid ""
29946 " int\n"
29947 " guestfs_sfdisk (guestfs_h *g,\n"
29948 "                 const char *device,\n"
29949 "                 int cyls,\n"
29950 "                 int heads,\n"
29951 "                 int sectors,\n"
29952 "                 char *const *lines);\n"
29953 "\n"
29954 msgstr ""
29955
29956 #. type: textblock
29957 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716 ../src/guestfs-actions.pod:6750
29958 msgid ""
29959 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
29960 "call instead."
29961 msgstr ""
29962
29963 #. type: textblock
29964 #: ../src/guestfs-actions.pod:6699
29965 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
29966 msgstr ""
29967
29968 #. type: =head2
29969 #: ../src/guestfs-actions.pod:6709
29970 msgid "guestfs_sfdiskM"
29971 msgstr ""
29972
29973 #. type: verbatim
29974 #: ../src/guestfs-actions.pod:6711
29975 #, no-wrap
29976 msgid ""
29977 " int\n"
29978 " guestfs_sfdiskM (guestfs_h *g,\n"
29979 "                  const char *device,\n"
29980 "                  char *const *lines);\n"
29981 "\n"
29982 msgstr ""
29983
29984 #. type: textblock
29985 #: ../src/guestfs-actions.pod:6723
29986 msgid ""
29987 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
29988 "partition sizes are specified in megabytes only (rounded to the nearest "
29989 "cylinder) and you don't need to specify the cyls, heads and sectors "
29990 "parameters which were rarely if ever used anyway."
29991 msgstr ""
29992
29993 #. type: textblock
29994 #: ../src/guestfs-actions.pod:6729
29995 msgid ""
29996 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
29997 "C<guestfs_part_disk>"
29998 msgstr ""
29999
30000 #. type: =head2
30001 #: ../src/guestfs-actions.pod:6739
30002 msgid "guestfs_sfdisk_N"
30003 msgstr ""
30004
30005 #. type: verbatim
30006 #: ../src/guestfs-actions.pod:6741
30007 #, no-wrap
30008 msgid ""
30009 " int\n"
30010 " guestfs_sfdisk_N (guestfs_h *g,\n"
30011 "                   const char *device,\n"
30012 "                   int partnum,\n"
30013 "                   int cyls,\n"
30014 "                   int heads,\n"
30015 "                   int sectors,\n"
30016 "                   const char *line);\n"
30017 "\n"
30018 msgstr ""
30019
30020 #. type: textblock
30021 #: ../src/guestfs-actions.pod:6760
30022 msgid ""
30023 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30024 "for the cyls/heads/sectors parameters."
30025 msgstr ""
30026
30027 #. type: textblock
30028 #: ../src/guestfs-actions.pod:6763
30029 msgid "See also: C<guestfs_part_add>"
30030 msgstr ""
30031
30032 #. type: =head2
30033 #: ../src/guestfs-actions.pod:6772
30034 msgid "guestfs_sfdisk_disk_geometry"
30035 msgstr ""
30036
30037 #. type: verbatim
30038 #: ../src/guestfs-actions.pod:6774
30039 #, no-wrap
30040 msgid ""
30041 " char *\n"
30042 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30043 "                               const char *device);\n"
30044 "\n"
30045 msgstr ""
30046
30047 #. type: textblock
30048 #: ../src/guestfs-actions.pod:6778
30049 msgid ""
30050 "This displays the disk geometry of C<device> read from the partition table.  "
30051 "Especially in the case where the underlying block device has been resized, "
30052 "this can be different from the kernel's idea of the geometry (see "
30053 "C<guestfs_sfdisk_kernel_geometry>)."
30054 msgstr ""
30055
30056 #. type: =head2
30057 #: ../src/guestfs-actions.pod:6791
30058 msgid "guestfs_sfdisk_kernel_geometry"
30059 msgstr ""
30060
30061 #. type: verbatim
30062 #: ../src/guestfs-actions.pod:6793
30063 #, no-wrap
30064 msgid ""
30065 " char *\n"
30066 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30067 "                                 const char *device);\n"
30068 "\n"
30069 msgstr ""
30070
30071 #. type: =head2
30072 #: ../src/guestfs-actions.pod:6807
30073 msgid "guestfs_sfdisk_l"
30074 msgstr ""
30075
30076 #. type: verbatim
30077 #: ../src/guestfs-actions.pod:6809
30078 #, no-wrap
30079 msgid ""
30080 " char *\n"
30081 " guestfs_sfdisk_l (guestfs_h *g,\n"
30082 "                   const char *device);\n"
30083 "\n"
30084 msgstr ""
30085
30086 #. type: textblock
30087 #: ../src/guestfs-actions.pod:6813
30088 msgid ""
30089 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30090 "call instead."
30091 msgstr ""
30092
30093 #. type: textblock
30094 #: ../src/guestfs-actions.pod:6824
30095 msgid "See also: C<guestfs_part_list>"
30096 msgstr ""
30097
30098 #. type: =head2
30099 #: ../src/guestfs-actions.pod:6831
30100 msgid "guestfs_sh"
30101 msgstr ""
30102
30103 #. type: verbatim
30104 #: ../src/guestfs-actions.pod:6833
30105 #, no-wrap
30106 msgid ""
30107 " char *\n"
30108 " guestfs_sh (guestfs_h *g,\n"
30109 "             const char *command);\n"
30110 "\n"
30111 msgstr ""
30112
30113 #. type: textblock
30114 #: ../src/guestfs-actions.pod:6840
30115 msgid "This is like C<guestfs_command>, but passes the command to:"
30116 msgstr ""
30117
30118 #. type: textblock
30119 #: ../src/guestfs-actions.pod:6848
30120 msgid "All the provisos about C<guestfs_command> apply to this call."
30121 msgstr ""
30122
30123 #. type: =head2
30124 #: ../src/guestfs-actions.pod:6855
30125 msgid "guestfs_sh_lines"
30126 msgstr ""
30127
30128 #. type: verbatim
30129 #: ../src/guestfs-actions.pod:6857
30130 #, no-wrap
30131 msgid ""
30132 " char **\n"
30133 " guestfs_sh_lines (guestfs_h *g,\n"
30134 "                   const char *command);\n"
30135 "\n"
30136 msgstr ""
30137
30138 #. type: textblock
30139 #: ../src/guestfs-actions.pod:6861
30140 msgid ""
30141 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30142 "lines."
30143 msgstr ""
30144
30145 #. type: textblock
30146 #: ../src/guestfs-actions.pod:6864
30147 msgid "See also: C<guestfs_command_lines>"
30148 msgstr ""
30149
30150 #. type: =head2
30151 #: ../src/guestfs-actions.pod:6872
30152 msgid "guestfs_sleep"
30153 msgstr ""
30154
30155 #. type: verbatim
30156 #: ../src/guestfs-actions.pod:6874
30157 #, no-wrap
30158 msgid ""
30159 " int\n"
30160 " guestfs_sleep (guestfs_h *g,\n"
30161 "                int secs);\n"
30162 "\n"
30163 msgstr ""
30164
30165 #. type: textblock
30166 #: ../src/guestfs-actions.pod:6882
30167 msgid "(Added in 1.0.41)"
30168 msgstr ""
30169
30170 #. type: =head2
30171 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
30172 msgid "guestfs_stat"
30173 msgstr ""
30174
30175 #. type: verbatim
30176 #: ../src/guestfs-actions.pod:6886
30177 #, no-wrap
30178 msgid ""
30179 " struct guestfs_stat *\n"
30180 " guestfs_stat (guestfs_h *g,\n"
30181 "               const char *path);\n"
30182 "\n"
30183 msgstr ""
30184
30185 #. type: =head2
30186 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
30187 msgid "guestfs_statvfs"
30188 msgstr ""
30189
30190 #. type: verbatim
30191 #: ../src/guestfs-actions.pod:6902
30192 #, no-wrap
30193 msgid ""
30194 " struct guestfs_statvfs *\n"
30195 " guestfs_statvfs (guestfs_h *g,\n"
30196 "                  const char *path);\n"
30197 "\n"
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../src/guestfs-actions.pod:6912
30202 msgid ""
30203 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30204 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30205 msgstr ""
30206
30207 #. type: =head2
30208 #: ../src/guestfs-actions.pod:6918
30209 msgid "guestfs_strings"
30210 msgstr ""
30211
30212 #. type: verbatim
30213 #: ../src/guestfs-actions.pod:6920
30214 #, no-wrap
30215 msgid ""
30216 " char **\n"
30217 " guestfs_strings (guestfs_h *g,\n"
30218 "                  const char *path);\n"
30219 "\n"
30220 msgstr ""
30221
30222 #. type: =head2
30223 #: ../src/guestfs-actions.pod:6936
30224 msgid "guestfs_strings_e"
30225 msgstr ""
30226
30227 #. type: verbatim
30228 #: ../src/guestfs-actions.pod:6938
30229 #, no-wrap
30230 msgid ""
30231 " char **\n"
30232 " guestfs_strings_e (guestfs_h *g,\n"
30233 "                    const char *encoding,\n"
30234 "                    const char *path);\n"
30235 "\n"
30236 msgstr ""
30237
30238 #. type: textblock
30239 #: ../src/guestfs-actions.pod:6943
30240 msgid ""
30241 "This is like the C<guestfs_strings> command, but allows you to specify the "
30242 "encoding of strings that are looked for in the source file C<path>."
30243 msgstr ""
30244
30245 #. type: textblock
30246 #: ../src/guestfs-actions.pod:6953
30247 msgid ""
30248 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30249 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30250 msgstr ""
30251
30252 #. type: =head2
30253 #: ../src/guestfs-actions.pod:6991
30254 msgid "guestfs_swapoff_device"
30255 msgstr ""
30256
30257 #. type: verbatim
30258 #: ../src/guestfs-actions.pod:6993
30259 #, no-wrap
30260 msgid ""
30261 " int\n"
30262 " guestfs_swapoff_device (guestfs_h *g,\n"
30263 "                         const char *device);\n"
30264 "\n"
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:6997
30269 msgid ""
30270 "This command disables the libguestfs appliance swap device or partition "
30271 "named C<device>.  See C<guestfs_swapon_device>."
30272 msgstr ""
30273
30274 #. type: =head2
30275 #: ../src/guestfs-actions.pod:7005
30276 msgid "guestfs_swapoff_file"
30277 msgstr ""
30278
30279 #. type: verbatim
30280 #: ../src/guestfs-actions.pod:7007
30281 #, no-wrap
30282 msgid ""
30283 " int\n"
30284 " guestfs_swapoff_file (guestfs_h *g,\n"
30285 "                       const char *file);\n"
30286 "\n"
30287 msgstr ""
30288
30289 #. type: =head2
30290 #: ../src/guestfs-actions.pod:7017
30291 msgid "guestfs_swapoff_label"
30292 msgstr ""
30293
30294 #. type: verbatim
30295 #: ../src/guestfs-actions.pod:7019
30296 #, no-wrap
30297 msgid ""
30298 " int\n"
30299 " guestfs_swapoff_label (guestfs_h *g,\n"
30300 "                        const char *label);\n"
30301 "\n"
30302 msgstr ""
30303
30304 #. type: =head2
30305 #: ../src/guestfs-actions.pod:7030
30306 msgid "guestfs_swapoff_uuid"
30307 msgstr ""
30308
30309 #. type: verbatim
30310 #: ../src/guestfs-actions.pod:7032
30311 #, no-wrap
30312 msgid ""
30313 " int\n"
30314 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30315 "                       const char *uuid);\n"
30316 "\n"
30317 msgstr ""
30318
30319 #. type: =head2
30320 #: ../src/guestfs-actions.pod:7043
30321 msgid "guestfs_swapon_device"
30322 msgstr ""
30323
30324 #. type: verbatim
30325 #: ../src/guestfs-actions.pod:7045
30326 #, no-wrap
30327 msgid ""
30328 " int\n"
30329 " guestfs_swapon_device (guestfs_h *g,\n"
30330 "                        const char *device);\n"
30331 "\n"
30332 msgstr ""
30333
30334 #. type: textblock
30335 #: ../src/guestfs-actions.pod:7049
30336 msgid ""
30337 "This command enables the libguestfs appliance to use the swap device or "
30338 "partition named C<device>.  The increased memory is made available for all "
30339 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30340 msgstr ""
30341
30342 #. type: =head2
30343 #: ../src/guestfs-actions.pod:7065
30344 msgid "guestfs_swapon_file"
30345 msgstr ""
30346
30347 #. type: verbatim
30348 #: ../src/guestfs-actions.pod:7067
30349 #, no-wrap
30350 msgid ""
30351 " int\n"
30352 " guestfs_swapon_file (guestfs_h *g,\n"
30353 "                      const char *file);\n"
30354 "\n"
30355 msgstr ""
30356
30357 #. type: textblock
30358 #: ../src/guestfs-actions.pod:7071
30359 msgid ""
30360 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30361 "notes."
30362 msgstr ""
30363
30364 #. type: =head2
30365 #: ../src/guestfs-actions.pod:7078
30366 msgid "guestfs_swapon_label"
30367 msgstr ""
30368
30369 #. type: verbatim
30370 #: ../src/guestfs-actions.pod:7080
30371 #, no-wrap
30372 msgid ""
30373 " int\n"
30374 " guestfs_swapon_label (guestfs_h *g,\n"
30375 "                       const char *label);\n"
30376 "\n"
30377 msgstr ""
30378
30379 #. type: textblock
30380 #: ../src/guestfs-actions.pod:7084
30381 msgid ""
30382 "This command enables swap to a labeled swap partition.  See "
30383 "C<guestfs_swapon_device> for other notes."
30384 msgstr ""
30385
30386 #. type: =head2
30387 #: ../src/guestfs-actions.pod:7091
30388 msgid "guestfs_swapon_uuid"
30389 msgstr ""
30390
30391 #. type: verbatim
30392 #: ../src/guestfs-actions.pod:7093
30393 #, no-wrap
30394 msgid ""
30395 " int\n"
30396 " guestfs_swapon_uuid (guestfs_h *g,\n"
30397 "                      const char *uuid);\n"
30398 "\n"
30399 msgstr ""
30400
30401 #. type: textblock
30402 #: ../src/guestfs-actions.pod:7097
30403 msgid ""
30404 "This command enables swap to a swap partition with the given UUID.  See "
30405 "C<guestfs_swapon_device> for other notes."
30406 msgstr ""
30407
30408 #. type: =head2
30409 #: ../src/guestfs-actions.pod:7104
30410 msgid "guestfs_sync"
30411 msgstr ""
30412
30413 #. type: verbatim
30414 #: ../src/guestfs-actions.pod:7106
30415 #, no-wrap
30416 msgid ""
30417 " int\n"
30418 " guestfs_sync (guestfs_h *g);\n"
30419 "\n"
30420 msgstr ""
30421
30422 #. type: =head2
30423 #: ../src/guestfs-actions.pod:7119
30424 msgid "guestfs_tail"
30425 msgstr ""
30426
30427 #. type: verbatim
30428 #: ../src/guestfs-actions.pod:7121
30429 #, no-wrap
30430 msgid ""
30431 " char **\n"
30432 " guestfs_tail (guestfs_h *g,\n"
30433 "               const char *path);\n"
30434 "\n"
30435 msgstr ""
30436
30437 #. type: =head2
30438 #: ../src/guestfs-actions.pod:7137
30439 msgid "guestfs_tail_n"
30440 msgstr ""
30441
30442 #. type: verbatim
30443 #: ../src/guestfs-actions.pod:7139
30444 #, no-wrap
30445 msgid ""
30446 " char **\n"
30447 " guestfs_tail_n (guestfs_h *g,\n"
30448 "                 int nrlines,\n"
30449 "                 const char *path);\n"
30450 "\n"
30451 msgstr ""
30452
30453 #. type: =head2
30454 #: ../src/guestfs-actions.pod:7161
30455 msgid "guestfs_tar_in"
30456 msgstr ""
30457
30458 #. type: verbatim
30459 #: ../src/guestfs-actions.pod:7163
30460 #, no-wrap
30461 msgid ""
30462 " int\n"
30463 " guestfs_tar_in (guestfs_h *g,\n"
30464 "                 const char *tarfile,\n"
30465 "                 const char *directory);\n"
30466 "\n"
30467 msgstr ""
30468
30469 #. type: textblock
30470 #: ../src/guestfs-actions.pod:7171
30471 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30472 msgstr ""
30473
30474 #. type: textblock
30475 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
30476 msgid "(Added in 1.0.3)"
30477 msgstr ""
30478
30479 #. type: =head2
30480 #: ../src/guestfs-actions.pod:7178
30481 msgid "guestfs_tar_out"
30482 msgstr ""
30483
30484 #. type: verbatim
30485 #: ../src/guestfs-actions.pod:7180
30486 #, no-wrap
30487 msgid ""
30488 " int\n"
30489 " guestfs_tar_out (guestfs_h *g,\n"
30490 "                  const char *directory,\n"
30491 "                  const char *tarfile);\n"
30492 "\n"
30493 msgstr ""
30494
30495 #. type: textblock
30496 #: ../src/guestfs-actions.pod:7188
30497 msgid ""
30498 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30499 "C<guestfs_txz_out>."
30500 msgstr ""
30501
30502 #. type: =head2
30503 #: ../src/guestfs-actions.pod:7195
30504 msgid "guestfs_tgz_in"
30505 msgstr ""
30506
30507 #. type: verbatim
30508 #: ../src/guestfs-actions.pod:7197
30509 #, no-wrap
30510 msgid ""
30511 " int\n"
30512 " guestfs_tgz_in (guestfs_h *g,\n"
30513 "                 const char *tarball,\n"
30514 "                 const char *directory);\n"
30515 "\n"
30516 msgstr ""
30517
30518 #. type: textblock
30519 #: ../src/guestfs-actions.pod:7205
30520 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30521 msgstr ""
30522
30523 #. type: =head2
30524 #: ../src/guestfs-actions.pod:7211
30525 msgid "guestfs_tgz_out"
30526 msgstr ""
30527
30528 #. type: verbatim
30529 #: ../src/guestfs-actions.pod:7213
30530 #, no-wrap
30531 msgid ""
30532 " int\n"
30533 " guestfs_tgz_out (guestfs_h *g,\n"
30534 "                  const char *directory,\n"
30535 "                  const char *tarball);\n"
30536 "\n"
30537 msgstr ""
30538
30539 #. type: textblock
30540 #: ../src/guestfs-actions.pod:7221
30541 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30542 msgstr ""
30543
30544 #. type: =head2
30545 #: ../src/guestfs-actions.pod:7227
30546 msgid "guestfs_touch"
30547 msgstr ""
30548
30549 #. type: verbatim
30550 #: ../src/guestfs-actions.pod:7229
30551 #, no-wrap
30552 msgid ""
30553 " int\n"
30554 " guestfs_touch (guestfs_h *g,\n"
30555 "                const char *path);\n"
30556 "\n"
30557 msgstr ""
30558
30559 #. type: =head2
30560 #: ../src/guestfs-actions.pod:7244
30561 msgid "guestfs_truncate"
30562 msgstr ""
30563
30564 #. type: verbatim
30565 #: ../src/guestfs-actions.pod:7246
30566 #, no-wrap
30567 msgid ""
30568 " int\n"
30569 " guestfs_truncate (guestfs_h *g,\n"
30570 "                   const char *path);\n"
30571 "\n"
30572 msgstr ""
30573
30574 #. type: =head2
30575 #: ../src/guestfs-actions.pod:7257
30576 msgid "guestfs_truncate_size"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs-actions.pod:7259
30581 #, no-wrap
30582 msgid ""
30583 " int\n"
30584 " guestfs_truncate_size (guestfs_h *g,\n"
30585 "                        const char *path,\n"
30586 "                        int64_t size);\n"
30587 "\n"
30588 msgstr ""
30589
30590 #. type: textblock
30591 #: ../src/guestfs-actions.pod:7267
30592 msgid ""
30593 "If the current file size is less than C<size> then the file is extended to "
30594 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30595 "blocks are not allocated for the file until you write to it).  To create a "
30596 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30597 msgstr ""
30598
30599 #. type: =head2
30600 #: ../src/guestfs-actions.pod:7277
30601 msgid "guestfs_tune2fs_l"
30602 msgstr ""
30603
30604 #. type: verbatim
30605 #: ../src/guestfs-actions.pod:7279
30606 #, no-wrap
30607 msgid ""
30608 " char **\n"
30609 " guestfs_tune2fs_l (guestfs_h *g,\n"
30610 "                    const char *device);\n"
30611 "\n"
30612 msgstr ""
30613
30614 #. type: =head2
30615 #: ../src/guestfs-actions.pod:7299
30616 msgid "guestfs_txz_in"
30617 msgstr ""
30618
30619 #. type: verbatim
30620 #: ../src/guestfs-actions.pod:7301
30621 #, no-wrap
30622 msgid ""
30623 " int\n"
30624 " guestfs_txz_in (guestfs_h *g,\n"
30625 "                 const char *tarball,\n"
30626 "                 const char *directory);\n"
30627 "\n"
30628 msgstr ""
30629
30630 #. type: =head2
30631 #: ../src/guestfs-actions.pod:7313
30632 msgid "guestfs_txz_out"
30633 msgstr ""
30634
30635 #. type: verbatim
30636 #: ../src/guestfs-actions.pod:7315
30637 #, no-wrap
30638 msgid ""
30639 " int\n"
30640 " guestfs_txz_out (guestfs_h *g,\n"
30641 "                  const char *directory,\n"
30642 "                  const char *tarball);\n"
30643 "\n"
30644 msgstr ""
30645
30646 #. type: =head2
30647 #: ../src/guestfs-actions.pod:7327
30648 msgid "guestfs_umask"
30649 msgstr ""
30650
30651 #. type: verbatim
30652 #: ../src/guestfs-actions.pod:7329
30653 #, no-wrap
30654 msgid ""
30655 " int\n"
30656 " guestfs_umask (guestfs_h *g,\n"
30657 "                int mask);\n"
30658 "\n"
30659 msgstr ""
30660
30661 #. type: textblock
30662 #: ../src/guestfs-actions.pod:7345
30663 msgid ""
30664 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30665 "C<guestfs_mkdir>."
30666 msgstr ""
30667
30668 #. type: =head2
30669 #: ../src/guestfs-actions.pod:7354
30670 msgid "guestfs_umount"
30671 msgstr ""
30672
30673 #. type: verbatim
30674 #: ../src/guestfs-actions.pod:7356
30675 #, no-wrap
30676 msgid ""
30677 " int\n"
30678 " guestfs_umount (guestfs_h *g,\n"
30679 "                 const char *pathordevice);\n"
30680 "\n"
30681 msgstr ""
30682
30683 #. type: =head2
30684 #: ../src/guestfs-actions.pod:7368
30685 msgid "guestfs_umount_all"
30686 msgstr ""
30687
30688 #. type: verbatim
30689 #: ../src/guestfs-actions.pod:7370
30690 #, no-wrap
30691 msgid ""
30692 " int\n"
30693 " guestfs_umount_all (guestfs_h *g);\n"
30694 "\n"
30695 msgstr ""
30696
30697 #. type: =head2
30698 #: ../src/guestfs-actions.pod:7381
30699 msgid "guestfs_upload"
30700 msgstr ""
30701
30702 #. type: verbatim
30703 #: ../src/guestfs-actions.pod:7383
30704 #, no-wrap
30705 msgid ""
30706 " int\n"
30707 " guestfs_upload (guestfs_h *g,\n"
30708 "                 const char *filename,\n"
30709 "                 const char *remotefilename);\n"
30710 "\n"
30711 msgstr ""
30712
30713 #. type: textblock
30714 #: ../src/guestfs-actions.pod:7393
30715 msgid "See also C<guestfs_download>."
30716 msgstr ""
30717
30718 #. type: =head2
30719 #: ../src/guestfs-actions.pod:7404
30720 msgid "guestfs_upload_offset"
30721 msgstr ""
30722
30723 #. type: verbatim
30724 #: ../src/guestfs-actions.pod:7406
30725 #, no-wrap
30726 msgid ""
30727 " int\n"
30728 " guestfs_upload_offset (guestfs_h *g,\n"
30729 "                        const char *filename,\n"
30730 "                        const char *remotefilename,\n"
30731 "                        int64_t offset);\n"
30732 "\n"
30733 msgstr ""
30734
30735 #. type: textblock
30736 #: ../src/guestfs-actions.pod:7422
30737 msgid ""
30738 "Note that there is no limit on the amount of data that can be uploaded with "
30739 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
30740 "full amount unless an error occurs."
30741 msgstr ""
30742
30743 #. type: textblock
30744 #: ../src/guestfs-actions.pod:7427
30745 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
30746 msgstr ""
30747
30748 #. type: =head2
30749 #: ../src/guestfs-actions.pod:7438
30750 msgid "guestfs_utimens"
30751 msgstr ""
30752
30753 #. type: verbatim
30754 #: ../src/guestfs-actions.pod:7440
30755 #, no-wrap
30756 msgid ""
30757 " int\n"
30758 " guestfs_utimens (guestfs_h *g,\n"
30759 "                  const char *path,\n"
30760 "                  int64_t atsecs,\n"
30761 "                  int64_t atnsecs,\n"
30762 "                  int64_t mtsecs,\n"
30763 "                  int64_t mtnsecs);\n"
30764 "\n"
30765 msgstr ""
30766
30767 #. type: =head2
30768 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
30769 msgid "guestfs_version"
30770 msgstr ""
30771
30772 #. type: verbatim
30773 #: ../src/guestfs-actions.pod:7471
30774 #, no-wrap
30775 msgid ""
30776 " struct guestfs_version *\n"
30777 " guestfs_version (guestfs_h *g);\n"
30778 "\n"
30779 msgstr ""
30780
30781 #. type: textblock
30782 #: ../src/guestfs-actions.pod:7499
30783 msgid ""
30784 "I<Note:> Don't use this call to test for availability of features.  In "
30785 "enterprise distributions we backport features from later versions into "
30786 "earlier versions, making this an unreliable way to test for features.  Use "
30787 "C<guestfs_available> instead."
30788 msgstr ""
30789
30790 #. type: textblock
30791 #: ../src/guestfs-actions.pod:7505
30792 msgid ""
30793 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
30794 "error.  I<The caller must call C<guestfs_free_version> after use>."
30795 msgstr ""
30796
30797 #. type: textblock
30798 #: ../src/guestfs-actions.pod:7509
30799 msgid "(Added in 1.0.58)"
30800 msgstr ""
30801
30802 #. type: =head2
30803 #: ../src/guestfs-actions.pod:7511
30804 msgid "guestfs_vfs_label"
30805 msgstr ""
30806
30807 #. type: verbatim
30808 #: ../src/guestfs-actions.pod:7513
30809 #, no-wrap
30810 msgid ""
30811 " char *\n"
30812 " guestfs_vfs_label (guestfs_h *g,\n"
30813 "                    const char *device);\n"
30814 "\n"
30815 msgstr ""
30816
30817 #. type: textblock
30818 #: ../src/guestfs-actions.pod:7522
30819 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
30820 msgstr ""
30821
30822 #. type: textblock
30823 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
30824 msgid "(Added in 1.3.18)"
30825 msgstr ""
30826
30827 #. type: =head2
30828 #: ../src/guestfs-actions.pod:7529
30829 msgid "guestfs_vfs_type"
30830 msgstr ""
30831
30832 #. type: verbatim
30833 #: ../src/guestfs-actions.pod:7531
30834 #, no-wrap
30835 msgid ""
30836 " char *\n"
30837 " guestfs_vfs_type (guestfs_h *g,\n"
30838 "                   const char *device);\n"
30839 "\n"
30840 msgstr ""
30841
30842 #. type: =head2
30843 #: ../src/guestfs-actions.pod:7548
30844 msgid "guestfs_vfs_uuid"
30845 msgstr ""
30846
30847 #. type: verbatim
30848 #: ../src/guestfs-actions.pod:7550
30849 #, no-wrap
30850 msgid ""
30851 " char *\n"
30852 " guestfs_vfs_uuid (guestfs_h *g,\n"
30853 "                   const char *device);\n"
30854 "\n"
30855 msgstr ""
30856
30857 #. type: textblock
30858 #: ../src/guestfs-actions.pod:7559
30859 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
30860 msgstr ""
30861
30862 #. type: =head2
30863 #: ../src/guestfs-actions.pod:7566
30864 msgid "guestfs_vg_activate"
30865 msgstr ""
30866
30867 #. type: verbatim
30868 #: ../src/guestfs-actions.pod:7568
30869 #, no-wrap
30870 msgid ""
30871 " int\n"
30872 " guestfs_vg_activate (guestfs_h *g,\n"
30873 "                      int activate,\n"
30874 "                      char *const *volgroups);\n"
30875 "\n"
30876 msgstr ""
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:7585
30880 msgid "guestfs_vg_activate_all"
30881 msgstr ""
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:7587
30885 #, no-wrap
30886 msgid ""
30887 " int\n"
30888 " guestfs_vg_activate_all (guestfs_h *g,\n"
30889 "                          int activate);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: =head2
30894 #: ../src/guestfs-actions.pod:7600
30895 msgid "guestfs_vgcreate"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs-actions.pod:7602
30900 #, no-wrap
30901 msgid ""
30902 " int\n"
30903 " guestfs_vgcreate (guestfs_h *g,\n"
30904 "                   const char *volgroup,\n"
30905 "                   char *const *physvols);\n"
30906 "\n"
30907 msgstr ""
30908
30909 #. type: =head2
30910 #: ../src/guestfs-actions.pod:7614
30911 msgid "guestfs_vglvuuids"
30912 msgstr ""
30913
30914 #. type: verbatim
30915 #: ../src/guestfs-actions.pod:7616
30916 #, no-wrap
30917 msgid ""
30918 " char **\n"
30919 " guestfs_vglvuuids (guestfs_h *g,\n"
30920 "                    const char *vgname);\n"
30921 "\n"
30922 msgstr ""
30923
30924 #. type: textblock
30925 #: ../src/guestfs-actions.pod:7623
30926 msgid ""
30927 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
30928 "associate logical volumes and volume groups."
30929 msgstr ""
30930
30931 #. type: textblock
30932 #: ../src/guestfs-actions.pod:7626
30933 msgid "See also C<guestfs_vgpvuuids>."
30934 msgstr ""
30935
30936 #. type: =head2
30937 #: ../src/guestfs-actions.pod:7634
30938 msgid "guestfs_vgpvuuids"
30939 msgstr ""
30940
30941 #. type: verbatim
30942 #: ../src/guestfs-actions.pod:7636
30943 #, no-wrap
30944 msgid ""
30945 " char **\n"
30946 " guestfs_vgpvuuids (guestfs_h *g,\n"
30947 "                    const char *vgname);\n"
30948 "\n"
30949 msgstr ""
30950
30951 #. type: textblock
30952 #: ../src/guestfs-actions.pod:7643
30953 msgid ""
30954 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
30955 "associate physical volumes and volume groups."
30956 msgstr ""
30957
30958 #. type: textblock
30959 #: ../src/guestfs-actions.pod:7646
30960 msgid "See also C<guestfs_vglvuuids>."
30961 msgstr ""
30962
30963 #. type: =head2
30964 #: ../src/guestfs-actions.pod:7654
30965 msgid "guestfs_vgremove"
30966 msgstr ""
30967
30968 #. type: verbatim
30969 #: ../src/guestfs-actions.pod:7656
30970 #, no-wrap
30971 msgid ""
30972 " int\n"
30973 " guestfs_vgremove (guestfs_h *g,\n"
30974 "                   const char *vgname);\n"
30975 "\n"
30976 msgstr ""
30977
30978 #. type: =head2
30979 #: ../src/guestfs-actions.pod:7669
30980 msgid "guestfs_vgrename"
30981 msgstr ""
30982
30983 #. type: verbatim
30984 #: ../src/guestfs-actions.pod:7671
30985 #, no-wrap
30986 msgid ""
30987 " int\n"
30988 " guestfs_vgrename (guestfs_h *g,\n"
30989 "                   const char *volgroup,\n"
30990 "                   const char *newvolgroup);\n"
30991 "\n"
30992 msgstr ""
30993
30994 #. type: =head2
30995 #: ../src/guestfs-actions.pod:7682
30996 msgid "guestfs_vgs"
30997 msgstr ""
30998
30999 #. type: verbatim
31000 #: ../src/guestfs-actions.pod:7684
31001 #, no-wrap
31002 msgid ""
31003 " char **\n"
31004 " guestfs_vgs (guestfs_h *g);\n"
31005 "\n"
31006 msgstr ""
31007
31008 #. type: textblock
31009 #: ../src/guestfs-actions.pod:7693
31010 msgid "See also C<guestfs_vgs_full>."
31011 msgstr ""
31012
31013 #. type: =head2
31014 #: ../src/guestfs-actions.pod:7701
31015 msgid "guestfs_vgs_full"
31016 msgstr ""
31017
31018 #. type: verbatim
31019 #: ../src/guestfs-actions.pod:7703
31020 #, no-wrap
31021 msgid ""
31022 " struct guestfs_lvm_vg_list *\n"
31023 " guestfs_vgs_full (guestfs_h *g);\n"
31024 "\n"
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs-actions.pod:7709
31029 msgid ""
31030 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31031 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
31032 "use>."
31033 msgstr ""
31034
31035 #. type: =head2
31036 #: ../src/guestfs-actions.pod:7715
31037 msgid "guestfs_vgscan"
31038 msgstr ""
31039
31040 #. type: verbatim
31041 #: ../src/guestfs-actions.pod:7717
31042 #, no-wrap
31043 msgid ""
31044 " int\n"
31045 " guestfs_vgscan (guestfs_h *g);\n"
31046 "\n"
31047 msgstr ""
31048
31049 #. type: =head2
31050 #: ../src/guestfs-actions.pod:7727
31051 msgid "guestfs_vguuid"
31052 msgstr ""
31053
31054 #. type: verbatim
31055 #: ../src/guestfs-actions.pod:7729
31056 #, no-wrap
31057 msgid ""
31058 " char *\n"
31059 " guestfs_vguuid (guestfs_h *g,\n"
31060 "                 const char *vgname);\n"
31061 "\n"
31062 msgstr ""
31063
31064 #. type: =head2
31065 #: ../src/guestfs-actions.pod:7740
31066 msgid "guestfs_wait_ready"
31067 msgstr ""
31068
31069 #. type: verbatim
31070 #: ../src/guestfs-actions.pod:7742
31071 #, no-wrap
31072 msgid ""
31073 " int\n"
31074 " guestfs_wait_ready (guestfs_h *g);\n"
31075 "\n"
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs-actions.pod:7745
31080 msgid ""
31081 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31082 "instead."
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:7752
31087 msgid "This function is a no op."
31088 msgstr ""
31089
31090 #. type: textblock
31091 #: ../src/guestfs-actions.pod:7754
31092 msgid ""
31093 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31094 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31095 "is no longer necessary because C<guestfs_launch> now does the waiting."
31096 msgstr ""
31097
31098 #. type: textblock
31099 #: ../src/guestfs-actions.pod:7759
31100 msgid ""
31101 "If you see any calls to this function in code then you can just remove them, "
31102 "unless you want to retain compatibility with older versions of the API."
31103 msgstr ""
31104
31105 #. type: =head2
31106 #: ../src/guestfs-actions.pod:7767
31107 msgid "guestfs_wc_c"
31108 msgstr ""
31109
31110 #. type: verbatim
31111 #: ../src/guestfs-actions.pod:7769
31112 #, no-wrap
31113 msgid ""
31114 " int\n"
31115 " guestfs_wc_c (guestfs_h *g,\n"
31116 "               const char *path);\n"
31117 "\n"
31118 msgstr ""
31119
31120 #. type: =head2
31121 #: ../src/guestfs-actions.pod:7780
31122 msgid "guestfs_wc_l"
31123 msgstr ""
31124
31125 #. type: verbatim
31126 #: ../src/guestfs-actions.pod:7782
31127 #, no-wrap
31128 msgid ""
31129 " int\n"
31130 " guestfs_wc_l (guestfs_h *g,\n"
31131 "               const char *path);\n"
31132 "\n"
31133 msgstr ""
31134
31135 #. type: =head2
31136 #: ../src/guestfs-actions.pod:7793
31137 msgid "guestfs_wc_w"
31138 msgstr ""
31139
31140 #. type: verbatim
31141 #: ../src/guestfs-actions.pod:7795
31142 #, no-wrap
31143 msgid ""
31144 " int\n"
31145 " guestfs_wc_w (guestfs_h *g,\n"
31146 "               const char *path);\n"
31147 "\n"
31148 msgstr ""
31149
31150 #. type: =head2
31151 #: ../src/guestfs-actions.pod:7806
31152 msgid "guestfs_write"
31153 msgstr ""
31154
31155 #. type: verbatim
31156 #: ../src/guestfs-actions.pod:7808
31157 #, no-wrap
31158 msgid ""
31159 " int\n"
31160 " guestfs_write (guestfs_h *g,\n"
31161 "                const char *path,\n"
31162 "                const char *content,\n"
31163 "                size_t content_size);\n"
31164 "\n"
31165 msgstr ""
31166
31167 #. type: textblock
31168 #: ../src/guestfs-actions.pod:7817
31169 msgid "See also C<guestfs_write_append>."
31170 msgstr ""
31171
31172 #. type: =head2
31173 #: ../src/guestfs-actions.pod:7826
31174 msgid "guestfs_write_append"
31175 msgstr ""
31176
31177 #. type: verbatim
31178 #: ../src/guestfs-actions.pod:7828
31179 #, no-wrap
31180 msgid ""
31181 " int\n"
31182 " guestfs_write_append (guestfs_h *g,\n"
31183 "                       const char *path,\n"
31184 "                       const char *content,\n"
31185 "                       size_t content_size);\n"
31186 "\n"
31187 msgstr ""
31188
31189 #. type: textblock
31190 #: ../src/guestfs-actions.pod:7837
31191 msgid "See also C<guestfs_write>."
31192 msgstr ""
31193
31194 #. type: =head2
31195 #: ../src/guestfs-actions.pod:7846
31196 msgid "guestfs_write_file"
31197 msgstr ""
31198
31199 #. type: verbatim
31200 #: ../src/guestfs-actions.pod:7848
31201 #, no-wrap
31202 msgid ""
31203 " int\n"
31204 " guestfs_write_file (guestfs_h *g,\n"
31205 "                     const char *path,\n"
31206 "                     const char *content,\n"
31207 "                     int size);\n"
31208 "\n"
31209 msgstr ""
31210
31211 #. type: textblock
31212 #: ../src/guestfs-actions.pod:7854
31213 msgid ""
31214 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31215 "instead."
31216 msgstr ""
31217
31218 #. type: =head2
31219 #: ../src/guestfs-actions.pod:7879
31220 msgid "guestfs_zegrep"
31221 msgstr ""
31222
31223 #. type: verbatim
31224 #: ../src/guestfs-actions.pod:7881
31225 #, no-wrap
31226 msgid ""
31227 " char **\n"
31228 " guestfs_zegrep (guestfs_h *g,\n"
31229 "                 const char *regex,\n"
31230 "                 const char *path);\n"
31231 "\n"
31232 msgstr ""
31233
31234 #. type: =head2
31235 #: ../src/guestfs-actions.pod:7898
31236 msgid "guestfs_zegrepi"
31237 msgstr ""
31238
31239 #. type: verbatim
31240 #: ../src/guestfs-actions.pod:7900
31241 #, no-wrap
31242 msgid ""
31243 " char **\n"
31244 " guestfs_zegrepi (guestfs_h *g,\n"
31245 "                  const char *regex,\n"
31246 "                  const char *path);\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: =head2
31251 #: ../src/guestfs-actions.pod:7917
31252 msgid "guestfs_zero"
31253 msgstr ""
31254
31255 #. type: verbatim
31256 #: ../src/guestfs-actions.pod:7919
31257 #, no-wrap
31258 msgid ""
31259 " int\n"
31260 " guestfs_zero (guestfs_h *g,\n"
31261 "               const char *device);\n"
31262 "\n"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs-actions.pod:7933
31267 msgid ""
31268 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31269 "C<guestfs_is_zero_device>"
31270 msgstr ""
31271
31272 #. type: =head2
31273 #: ../src/guestfs-actions.pod:7945
31274 msgid "guestfs_zero_device"
31275 msgstr ""
31276
31277 #. type: verbatim
31278 #: ../src/guestfs-actions.pod:7947
31279 #, no-wrap
31280 msgid ""
31281 " int\n"
31282 " guestfs_zero_device (guestfs_h *g,\n"
31283 "                      const char *device);\n"
31284 "\n"
31285 msgstr ""
31286
31287 #. type: textblock
31288 #: ../src/guestfs-actions.pod:7951
31289 msgid ""
31290 "This command writes zeroes over the entire C<device>.  Compare with "
31291 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31292 msgstr ""
31293
31294 #. type: textblock
31295 #: ../src/guestfs-actions.pod:7969
31296 msgid "(Added in 1.3.1)"
31297 msgstr ""
31298
31299 #. type: =head2
31300 #: ../src/guestfs-actions.pod:7971
31301 msgid "guestfs_zerofree"
31302 msgstr ""
31303
31304 #. type: verbatim
31305 #: ../src/guestfs-actions.pod:7973
31306 #, no-wrap
31307 msgid ""
31308 " int\n"
31309 " guestfs_zerofree (guestfs_h *g,\n"
31310 "                   const char *device);\n"
31311 "\n"
31312 msgstr ""
31313
31314 #. type: =head2
31315 #: ../src/guestfs-actions.pod:7992
31316 msgid "guestfs_zfgrep"
31317 msgstr ""
31318
31319 #. type: verbatim
31320 #: ../src/guestfs-actions.pod:7994
31321 #, no-wrap
31322 msgid ""
31323 " char **\n"
31324 " guestfs_zfgrep (guestfs_h *g,\n"
31325 "                 const char *pattern,\n"
31326 "                 const char *path);\n"
31327 "\n"
31328 msgstr ""
31329
31330 #. type: =head2
31331 #: ../src/guestfs-actions.pod:8011
31332 msgid "guestfs_zfgrepi"
31333 msgstr ""
31334
31335 #. type: verbatim
31336 #: ../src/guestfs-actions.pod:8013
31337 #, no-wrap
31338 msgid ""
31339 " char **\n"
31340 " guestfs_zfgrepi (guestfs_h *g,\n"
31341 "                  const char *pattern,\n"
31342 "                  const char *path);\n"
31343 "\n"
31344 msgstr ""
31345
31346 #. type: =head2
31347 #: ../src/guestfs-actions.pod:8030
31348 msgid "guestfs_zfile"
31349 msgstr ""
31350
31351 #. type: verbatim
31352 #: ../src/guestfs-actions.pod:8032
31353 #, no-wrap
31354 msgid ""
31355 " char *\n"
31356 " guestfs_zfile (guestfs_h *g,\n"
31357 "                const char *meth,\n"
31358 "                const char *path);\n"
31359 "\n"
31360 msgstr ""
31361
31362 #. type: textblock
31363 #: ../src/guestfs-actions.pod:8037
31364 msgid ""
31365 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31366 "instead."
31367 msgstr ""
31368
31369 #. type: textblock
31370 #: ../src/guestfs-actions.pod:8049
31371 msgid ""
31372 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31373 "files."
31374 msgstr ""
31375
31376 #. type: =head2
31377 #: ../src/guestfs-actions.pod:8057
31378 msgid "guestfs_zgrep"
31379 msgstr ""
31380
31381 #. type: verbatim
31382 #: ../src/guestfs-actions.pod:8059
31383 #, no-wrap
31384 msgid ""
31385 " char **\n"
31386 " guestfs_zgrep (guestfs_h *g,\n"
31387 "                const char *regex,\n"
31388 "                const char *path);\n"
31389 "\n"
31390 msgstr ""
31391
31392 #. type: =head2
31393 #: ../src/guestfs-actions.pod:8076
31394 msgid "guestfs_zgrepi"
31395 msgstr ""
31396
31397 #. type: verbatim
31398 #: ../src/guestfs-actions.pod:8078
31399 #, no-wrap
31400 msgid ""
31401 " char **\n"
31402 " guestfs_zgrepi (guestfs_h *g,\n"
31403 "                 const char *regex,\n"
31404 "                 const char *path);\n"
31405 "\n"
31406 msgstr ""
31407
31408 #. type: =item
31409 #: ../src/guestfs-availability.pod:3
31410 msgid "B<augeas>"
31411 msgstr ""
31412
31413 #. type: textblock
31414 #: ../src/guestfs-availability.pod:5
31415 msgid ""
31416 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
31417 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
31418 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
31419 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
31420 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
31421 msgstr ""
31422
31423 #. type: =item
31424 #: ../src/guestfs-availability.pod:21
31425 msgid "B<btrfs>"
31426 msgstr ""
31427
31428 #. type: textblock
31429 #: ../src/guestfs-availability.pod:23
31430 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31431 msgstr ""
31432
31433 #. type: =item
31434 #: ../src/guestfs-availability.pod:26
31435 msgid "B<grub>"
31436 msgstr ""
31437
31438 #. type: textblock
31439 #: ../src/guestfs-availability.pod:28
31440 msgid "The following functions: L</guestfs_grub_install>"
31441 msgstr ""
31442
31443 #. type: =item
31444 #: ../src/guestfs-availability.pod:31
31445 msgid "B<inotify>"
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs-availability.pod:33
31450 msgid ""
31451 "The following functions: L</guestfs_inotify_add_watch> "
31452 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
31453 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31454 msgstr ""
31455
31456 #. type: =item
31457 #: ../src/guestfs-availability.pod:41
31458 msgid "B<linuxfsuuid>"
31459 msgstr ""
31460
31461 #. type: textblock
31462 #: ../src/guestfs-availability.pod:43
31463 msgid ""
31464 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
31465 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31466 msgstr ""
31467
31468 #. type: =item
31469 #: ../src/guestfs-availability.pod:50
31470 msgid "B<linuxmodules>"
31471 msgstr ""
31472
31473 #. type: textblock
31474 #: ../src/guestfs-availability.pod:52
31475 msgid "The following functions: L</guestfs_modprobe>"
31476 msgstr ""
31477
31478 #. type: =item
31479 #: ../src/guestfs-availability.pod:55
31480 msgid "B<linuxxattrs>"
31481 msgstr ""
31482
31483 #. type: textblock
31484 #: ../src/guestfs-availability.pod:57
31485 msgid ""
31486 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
31487 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
31488 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
31489 "L</guestfs_setxattr>"
31490 msgstr ""
31491
31492 #. type: =item
31493 #: ../src/guestfs-availability.pod:68
31494 msgid "B<luks>"
31495 msgstr ""
31496
31497 #. type: textblock
31498 #: ../src/guestfs-availability.pod:70
31499 msgid ""
31500 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
31501 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
31502 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31503 msgstr ""
31504
31505 #. type: =item
31506 #: ../src/guestfs-availability.pod:79
31507 msgid "B<lvm2>"
31508 msgstr ""
31509
31510 #. type: textblock
31511 #: ../src/guestfs-availability.pod:81
31512 msgid ""
31513 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
31514 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
31515 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
31516 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
31517 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
31518 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
31519 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
31520 "L</guestfs_vgs_full>"
31521 msgstr ""
31522
31523 #. type: =item
31524 #: ../src/guestfs-availability.pod:104
31525 msgid "B<mknod>"
31526 msgstr ""
31527
31528 #. type: textblock
31529 #: ../src/guestfs-availability.pod:106
31530 msgid ""
31531 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
31532 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
31533 msgstr ""
31534
31535 #. type: =item
31536 #: ../src/guestfs-availability.pod:112
31537 msgid "B<ntfs3g>"
31538 msgstr ""
31539
31540 #. type: textblock
31541 #: ../src/guestfs-availability.pod:114
31542 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31543 msgstr ""
31544
31545 #. type: =item
31546 #: ../src/guestfs-availability.pod:117
31547 msgid "B<ntfsprogs>"
31548 msgstr ""
31549
31550 #. type: textblock
31551 #: ../src/guestfs-availability.pod:119
31552 msgid ""
31553 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31554 "L</guestfs_ntfsresize_size>"
31555 msgstr ""
31556
31557 #. type: =item
31558 #: ../src/guestfs-availability.pod:124
31559 msgid "B<realpath>"
31560 msgstr ""
31561
31562 #. type: textblock
31563 #: ../src/guestfs-availability.pod:126
31564 msgid "The following functions: L</guestfs_realpath>"
31565 msgstr ""
31566
31567 #. type: =item
31568 #: ../src/guestfs-availability.pod:129
31569 msgid "B<scrub>"
31570 msgstr ""
31571
31572 #. type: textblock
31573 #: ../src/guestfs-availability.pod:131
31574 msgid ""
31575 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
31576 "L</guestfs_scrub_freespace>"
31577 msgstr ""
31578
31579 #. type: =item
31580 #: ../src/guestfs-availability.pod:136
31581 msgid "B<selinux>"
31582 msgstr ""
31583
31584 #. type: textblock
31585 #: ../src/guestfs-availability.pod:138
31586 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31587 msgstr ""
31588
31589 #. type: =item
31590 #: ../src/guestfs-availability.pod:142
31591 msgid "B<xz>"
31592 msgstr ""
31593
31594 #. type: textblock
31595 #: ../src/guestfs-availability.pod:144
31596 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31597 msgstr ""
31598
31599 #. type: =item
31600 #: ../src/guestfs-availability.pod:148
31601 msgid "B<zerofree>"
31602 msgstr ""
31603
31604 #. type: textblock
31605 #: ../src/guestfs-availability.pod:150
31606 msgid "The following functions: L</guestfs_zerofree>"
31607 msgstr ""
31608
31609 #. type: =head2
31610 #: ../src/guestfs-structs.pod:1
31611 msgid "guestfs_int_bool"
31612 msgstr ""
31613
31614 #. type: verbatim
31615 #: ../src/guestfs-structs.pod:3
31616 #, no-wrap
31617 msgid ""
31618 " struct guestfs_int_bool {\n"
31619 "   int32_t i;\n"
31620 "   int32_t b;\n"
31621 " };\n"
31622 " \n"
31623 msgstr ""
31624
31625 #. type: verbatim
31626 #: ../src/guestfs-structs.pod:8
31627 #, no-wrap
31628 msgid ""
31629 " struct guestfs_int_bool_list {\n"
31630 "   uint32_t len; /* Number of elements in list. */\n"
31631 "   struct guestfs_int_bool *val; /* Elements. */\n"
31632 " };\n"
31633 " \n"
31634 msgstr ""
31635
31636 #. type: verbatim
31637 #: ../src/guestfs-structs.pod:13
31638 #, no-wrap
31639 msgid ""
31640 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
31641 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
31642 "\n"
31643 msgstr ""
31644
31645 #. type: =head2
31646 #: ../src/guestfs-structs.pod:16
31647 msgid "guestfs_lvm_pv"
31648 msgstr ""
31649
31650 #. type: verbatim
31651 #: ../src/guestfs-structs.pod:18
31652 #, no-wrap
31653 msgid ""
31654 " struct guestfs_lvm_pv {\n"
31655 "   char *pv_name;\n"
31656 "   /* The next field is NOT nul-terminated, be careful when printing it: "
31657 "*/\n"
31658 "   char pv_uuid[32];\n"
31659 "   char *pv_fmt;\n"
31660 "   uint64_t pv_size;\n"
31661 "   uint64_t dev_size;\n"
31662 "   uint64_t pv_free;\n"
31663 "   uint64_t pv_used;\n"
31664 "   char *pv_attr;\n"
31665 "   int64_t pv_pe_count;\n"
31666 "   int64_t pv_pe_alloc_count;\n"
31667 "   char *pv_tags;\n"
31668 "   uint64_t pe_start;\n"
31669 "   int64_t pv_mda_count;\n"
31670 "   uint64_t pv_mda_free;\n"
31671 " };\n"
31672 " \n"
31673 msgstr ""
31674
31675 #. type: verbatim
31676 #: ../src/guestfs-structs.pod:36
31677 #, no-wrap
31678 msgid ""
31679 " struct guestfs_lvm_pv_list {\n"
31680 "   uint32_t len; /* Number of elements in list. */\n"
31681 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
31682 " };\n"
31683 " \n"
31684 msgstr ""
31685
31686 #. type: verbatim
31687 #: ../src/guestfs-structs.pod:41
31688 #, no-wrap
31689 msgid ""
31690 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
31691 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
31692 "\n"
31693 msgstr ""
31694
31695 #. type: =head2
31696 #: ../src/guestfs-structs.pod:44
31697 msgid "guestfs_lvm_vg"
31698 msgstr ""
31699
31700 #. type: verbatim
31701 #: ../src/guestfs-structs.pod:46
31702 #, no-wrap
31703 msgid ""
31704 " struct guestfs_lvm_vg {\n"
31705 "   char *vg_name;\n"
31706 "   /* The next field is NOT nul-terminated, be careful when printing it: "
31707 "*/\n"
31708 "   char vg_uuid[32];\n"
31709 "   char *vg_fmt;\n"
31710 "   char *vg_attr;\n"
31711 "   uint64_t vg_size;\n"
31712 "   uint64_t vg_free;\n"
31713 "   char *vg_sysid;\n"
31714 "   uint64_t vg_extent_size;\n"
31715 "   int64_t vg_extent_count;\n"
31716 "   int64_t vg_free_count;\n"
31717 "   int64_t max_lv;\n"
31718 "   int64_t max_pv;\n"
31719 "   int64_t pv_count;\n"
31720 "   int64_t lv_count;\n"
31721 "   int64_t snap_count;\n"
31722 "   int64_t vg_seqno;\n"
31723 "   char *vg_tags;\n"
31724 "   int64_t vg_mda_count;\n"
31725 "   uint64_t vg_mda_free;\n"
31726 " };\n"
31727 " \n"
31728 msgstr ""
31729
31730 #. type: verbatim
31731 #: ../src/guestfs-structs.pod:69
31732 #, no-wrap
31733 msgid ""
31734 " struct guestfs_lvm_vg_list {\n"
31735 "   uint32_t len; /* Number of elements in list. */\n"
31736 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
31737 " };\n"
31738 " \n"
31739 msgstr ""
31740
31741 #. type: verbatim
31742 #: ../src/guestfs-structs.pod:74
31743 #, no-wrap
31744 msgid ""
31745 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
31746 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
31747 "\n"
31748 msgstr ""
31749
31750 #. type: =head2
31751 #: ../src/guestfs-structs.pod:77
31752 msgid "guestfs_lvm_lv"
31753 msgstr ""
31754
31755 #. type: verbatim
31756 #: ../src/guestfs-structs.pod:79
31757 #, no-wrap
31758 msgid ""
31759 " struct guestfs_lvm_lv {\n"
31760 "   char *lv_name;\n"
31761 "   /* The next field is NOT nul-terminated, be careful when printing it: "
31762 "*/\n"
31763 "   char lv_uuid[32];\n"
31764 "   char *lv_attr;\n"
31765 "   int64_t lv_major;\n"
31766 "   int64_t lv_minor;\n"
31767 "   int64_t lv_kernel_major;\n"
31768 "   int64_t lv_kernel_minor;\n"
31769 "   uint64_t lv_size;\n"
31770 "   int64_t seg_count;\n"
31771 "   char *origin;\n"
31772 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31773 "   float snap_percent;\n"
31774 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
31775 "   float copy_percent;\n"
31776 "   char *move_pv;\n"
31777 "   char *lv_tags;\n"
31778 "   char *mirror_log;\n"
31779 "   char *modules;\n"
31780 " };\n"
31781 " \n"
31782 msgstr ""
31783
31784 #. type: verbatim
31785 #: ../src/guestfs-structs.pod:101
31786 #, no-wrap
31787 msgid ""
31788 " struct guestfs_lvm_lv_list {\n"
31789 "   uint32_t len; /* Number of elements in list. */\n"
31790 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
31791 " };\n"
31792 " \n"
31793 msgstr ""
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-structs.pod:106
31797 #, no-wrap
31798 msgid ""
31799 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
31800 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
31801 "\n"
31802 msgstr ""
31803
31804 #. type: verbatim
31805 #: ../src/guestfs-structs.pod:111
31806 #, no-wrap
31807 msgid ""
31808 " struct guestfs_stat {\n"
31809 "   int64_t dev;\n"
31810 "   int64_t ino;\n"
31811 "   int64_t mode;\n"
31812 "   int64_t nlink;\n"
31813 "   int64_t uid;\n"
31814 "   int64_t gid;\n"
31815 "   int64_t rdev;\n"
31816 "   int64_t size;\n"
31817 "   int64_t blksize;\n"
31818 "   int64_t blocks;\n"
31819 "   int64_t atime;\n"
31820 "   int64_t mtime;\n"
31821 "   int64_t ctime;\n"
31822 " };\n"
31823 " \n"
31824 msgstr ""
31825
31826 #. type: verbatim
31827 #: ../src/guestfs-structs.pod:127
31828 #, no-wrap
31829 msgid ""
31830 " struct guestfs_stat_list {\n"
31831 "   uint32_t len; /* Number of elements in list. */\n"
31832 "   struct guestfs_stat *val; /* Elements. */\n"
31833 " };\n"
31834 " \n"
31835 msgstr ""
31836
31837 #. type: verbatim
31838 #: ../src/guestfs-structs.pod:132
31839 #, no-wrap
31840 msgid ""
31841 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
31842 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
31843 "\n"
31844 msgstr ""
31845
31846 #. type: verbatim
31847 #: ../src/guestfs-structs.pod:137
31848 #, no-wrap
31849 msgid ""
31850 " struct guestfs_statvfs {\n"
31851 "   int64_t bsize;\n"
31852 "   int64_t frsize;\n"
31853 "   int64_t blocks;\n"
31854 "   int64_t bfree;\n"
31855 "   int64_t bavail;\n"
31856 "   int64_t files;\n"
31857 "   int64_t ffree;\n"
31858 "   int64_t favail;\n"
31859 "   int64_t fsid;\n"
31860 "   int64_t flag;\n"
31861 "   int64_t namemax;\n"
31862 " };\n"
31863 " \n"
31864 msgstr ""
31865
31866 #. type: verbatim
31867 #: ../src/guestfs-structs.pod:151
31868 #, no-wrap
31869 msgid ""
31870 " struct guestfs_statvfs_list {\n"
31871 "   uint32_t len; /* Number of elements in list. */\n"
31872 "   struct guestfs_statvfs *val; /* Elements. */\n"
31873 " };\n"
31874 " \n"
31875 msgstr ""
31876
31877 #. type: verbatim
31878 #: ../src/guestfs-structs.pod:156
31879 #, no-wrap
31880 msgid ""
31881 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
31882 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
31883 "\n"
31884 msgstr ""
31885
31886 #. type: =head2
31887 #: ../src/guestfs-structs.pod:159
31888 msgid "guestfs_dirent"
31889 msgstr ""
31890
31891 #. type: verbatim
31892 #: ../src/guestfs-structs.pod:161
31893 #, no-wrap
31894 msgid ""
31895 " struct guestfs_dirent {\n"
31896 "   int64_t ino;\n"
31897 "   char ftyp;\n"
31898 "   char *name;\n"
31899 " };\n"
31900 " \n"
31901 msgstr ""
31902
31903 #. type: verbatim
31904 #: ../src/guestfs-structs.pod:167
31905 #, no-wrap
31906 msgid ""
31907 " struct guestfs_dirent_list {\n"
31908 "   uint32_t len; /* Number of elements in list. */\n"
31909 "   struct guestfs_dirent *val; /* Elements. */\n"
31910 " };\n"
31911 " \n"
31912 msgstr ""
31913
31914 #. type: verbatim
31915 #: ../src/guestfs-structs.pod:172
31916 #, no-wrap
31917 msgid ""
31918 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
31919 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
31920 "\n"
31921 msgstr ""
31922
31923 #. type: verbatim
31924 #: ../src/guestfs-structs.pod:177
31925 #, no-wrap
31926 msgid ""
31927 " struct guestfs_version {\n"
31928 "   int64_t major;\n"
31929 "   int64_t minor;\n"
31930 "   int64_t release;\n"
31931 "   char *extra;\n"
31932 " };\n"
31933 " \n"
31934 msgstr ""
31935
31936 #. type: verbatim
31937 #: ../src/guestfs-structs.pod:184
31938 #, no-wrap
31939 msgid ""
31940 " struct guestfs_version_list {\n"
31941 "   uint32_t len; /* Number of elements in list. */\n"
31942 "   struct guestfs_version *val; /* Elements. */\n"
31943 " };\n"
31944 " \n"
31945 msgstr ""
31946
31947 #. type: verbatim
31948 #: ../src/guestfs-structs.pod:189
31949 #, no-wrap
31950 msgid ""
31951 " void guestfs_free_version (struct guestfs_free_version *);\n"
31952 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
31953 "\n"
31954 msgstr ""
31955
31956 #. type: =head2
31957 #: ../src/guestfs-structs.pod:192
31958 msgid "guestfs_xattr"
31959 msgstr ""
31960
31961 #. type: verbatim
31962 #: ../src/guestfs-structs.pod:194
31963 #, no-wrap
31964 msgid ""
31965 " struct guestfs_xattr {\n"
31966 "   char *attrname;\n"
31967 "   /* The next two fields describe a byte array. */\n"
31968 "   uint32_t attrval_len;\n"
31969 "   char *attrval;\n"
31970 " };\n"
31971 " \n"
31972 msgstr ""
31973
31974 #. type: verbatim
31975 #: ../src/guestfs-structs.pod:201
31976 #, no-wrap
31977 msgid ""
31978 " struct guestfs_xattr_list {\n"
31979 "   uint32_t len; /* Number of elements in list. */\n"
31980 "   struct guestfs_xattr *val; /* Elements. */\n"
31981 " };\n"
31982 " \n"
31983 msgstr ""
31984
31985 #. type: verbatim
31986 #: ../src/guestfs-structs.pod:206
31987 #, no-wrap
31988 msgid ""
31989 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
31990 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
31991 "\n"
31992 msgstr ""
31993
31994 #. type: =head2
31995 #: ../src/guestfs-structs.pod:209
31996 msgid "guestfs_inotify_event"
31997 msgstr ""
31998
31999 #. type: verbatim
32000 #: ../src/guestfs-structs.pod:211
32001 #, no-wrap
32002 msgid ""
32003 " struct guestfs_inotify_event {\n"
32004 "   int64_t in_wd;\n"
32005 "   uint32_t in_mask;\n"
32006 "   uint32_t in_cookie;\n"
32007 "   char *in_name;\n"
32008 " };\n"
32009 " \n"
32010 msgstr ""
32011
32012 #. type: verbatim
32013 #: ../src/guestfs-structs.pod:218
32014 #, no-wrap
32015 msgid ""
32016 " struct guestfs_inotify_event_list {\n"
32017 "   uint32_t len; /* Number of elements in list. */\n"
32018 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32019 " };\n"
32020 " \n"
32021 msgstr ""
32022
32023 #. type: verbatim
32024 #: ../src/guestfs-structs.pod:223
32025 #, no-wrap
32026 msgid ""
32027 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32028 " void guestfs_free_inotify_event_list (struct "
32029 "guestfs_free_inotify_event_list *);\n"
32030 "\n"
32031 msgstr ""
32032
32033 #. type: =head2
32034 #: ../src/guestfs-structs.pod:226
32035 msgid "guestfs_partition"
32036 msgstr ""
32037
32038 #. type: verbatim
32039 #: ../src/guestfs-structs.pod:228
32040 #, no-wrap
32041 msgid ""
32042 " struct guestfs_partition {\n"
32043 "   int32_t part_num;\n"
32044 "   uint64_t part_start;\n"
32045 "   uint64_t part_end;\n"
32046 "   uint64_t part_size;\n"
32047 " };\n"
32048 " \n"
32049 msgstr ""
32050
32051 #. type: verbatim
32052 #: ../src/guestfs-structs.pod:235
32053 #, no-wrap
32054 msgid ""
32055 " struct guestfs_partition_list {\n"
32056 "   uint32_t len; /* Number of elements in list. */\n"
32057 "   struct guestfs_partition *val; /* Elements. */\n"
32058 " };\n"
32059 " \n"
32060 msgstr ""
32061
32062 #. type: verbatim
32063 #: ../src/guestfs-structs.pod:240
32064 #, no-wrap
32065 msgid ""
32066 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32067 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32068 "\n"
32069 msgstr ""
32070
32071 #. type: =head2
32072 #: ../src/guestfs-structs.pod:243
32073 msgid "guestfs_application"
32074 msgstr ""
32075
32076 #. type: verbatim
32077 #: ../src/guestfs-structs.pod:245
32078 #, no-wrap
32079 msgid ""
32080 " struct guestfs_application {\n"
32081 "   char *app_name;\n"
32082 "   char *app_display_name;\n"
32083 "   int32_t app_epoch;\n"
32084 "   char *app_version;\n"
32085 "   char *app_release;\n"
32086 "   char *app_install_path;\n"
32087 "   char *app_trans_path;\n"
32088 "   char *app_publisher;\n"
32089 "   char *app_url;\n"
32090 "   char *app_source_package;\n"
32091 "   char *app_summary;\n"
32092 "   char *app_description;\n"
32093 " };\n"
32094 " \n"
32095 msgstr ""
32096
32097 #. type: verbatim
32098 #: ../src/guestfs-structs.pod:260
32099 #, no-wrap
32100 msgid ""
32101 " struct guestfs_application_list {\n"
32102 "   uint32_t len; /* Number of elements in list. */\n"
32103 "   struct guestfs_application *val; /* Elements. */\n"
32104 " };\n"
32105 " \n"
32106 msgstr ""
32107
32108 #. type: verbatim
32109 #: ../src/guestfs-structs.pod:265
32110 #, no-wrap
32111 msgid ""
32112 " void guestfs_free_application (struct guestfs_free_application *);\n"
32113 " void guestfs_free_application_list (struct guestfs_free_application_list "
32114 "*);\n"
32115 "\n"
32116 msgstr ""
32117
32118 #. type: textblock
32119 #: ../src/guestfs.pod:5
32120 msgid "guestfs - Library for accessing and modifying virtual machine images"
32121 msgstr ""
32122
32123 #. type: verbatim
32124 #: ../src/guestfs.pod:11
32125 #, no-wrap
32126 msgid ""
32127 " guestfs_h *g = guestfs_create ();\n"
32128 " guestfs_add_drive (g, \"guest.img\");\n"
32129 " guestfs_launch (g);\n"
32130 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32131 " guestfs_touch (g, \"/hello\");\n"
32132 " guestfs_umount (g, \"/\");\n"
32133 " guestfs_close (g);\n"
32134 "\n"
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs.pod:25
32139 msgid ""
32140 "Libguestfs is a library for accessing and modifying guest disk images.  "
32141 "Amongst the things this is good for: making batch configuration changes to "
32142 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32143 "between virtualization systems (see also: virt-p2v), performing partial "
32144 "backups, performing partial guest clones, cloning guests and changing "
32145 "registry/UUID/hostname info, and much else besides."
32146 msgstr ""
32147
32148 #. type: textblock
32149 #: ../src/guestfs.pod:33
32150 msgid ""
32151 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32152 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32153 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32154 "qcow2, vmdk."
32155 msgstr ""
32156
32157 #. type: textblock
32158 #: ../src/guestfs.pod:38
32159 msgid ""
32160 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32161 "what filesystem is in each LV, etc.).  It can also run commands in the "
32162 "context of the guest.  Also you can access filesystems over FUSE."
32163 msgstr ""
32164
32165 #. type: textblock
32166 #: ../src/guestfs.pod:43
32167 msgid ""
32168 "Libguestfs is a library that can be linked with C and C++ management "
32169 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32170 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
32171 "command line."
32172 msgstr ""
32173
32174 #. type: textblock
32175 #: ../src/guestfs.pod:48
32176 msgid ""
32177 "You don't need to be root to use libguestfs, although obviously you do need "
32178 "enough permissions to access the disk images."
32179 msgstr ""
32180
32181 #. type: textblock
32182 #: ../src/guestfs.pod:51
32183 msgid ""
32184 "Libguestfs is a large API because it can do many things.  For a gentle "
32185 "introduction, please read the L</API OVERVIEW> section next."
32186 msgstr ""
32187
32188 #. type: textblock
32189 #: ../src/guestfs.pod:54
32190 msgid ""
32191 "There are also some example programs in the L<guestfs-examples(3)> manual "
32192 "page."
32193 msgstr ""
32194
32195 #. type: =head1
32196 #: ../src/guestfs.pod:57
32197 msgid "API OVERVIEW"
32198 msgstr ""
32199
32200 #. type: textblock
32201 #: ../src/guestfs.pod:59
32202 msgid ""
32203 "This section provides a gentler overview of the libguestfs API.  We also try "
32204 "to group API calls together, where that may not be obvious from reading "
32205 "about the individual calls in the main section of this manual."
32206 msgstr ""
32207
32208 #. type: =head2
32209 #: ../src/guestfs.pod:64
32210 msgid "HANDLES"
32211 msgstr ""
32212
32213 #. type: textblock
32214 #: ../src/guestfs.pod:66
32215 msgid ""
32216 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32217 "must add at least one disk image to the handle, followed by launching the "
32218 "handle, then performing whatever operations you want, and finally closing "
32219 "the handle.  By convention we use the single letter C<g> for the name of the "
32220 "handle variable, although of course you can use any name you want."
32221 msgstr ""
32222
32223 #. type: textblock
32224 #: ../src/guestfs.pod:73
32225 msgid "The general structure of all libguestfs-using programs looks like this:"
32226 msgstr ""
32227
32228 #. type: verbatim
32229 #: ../src/guestfs.pod:76
32230 #, no-wrap
32231 msgid ""
32232 " guestfs_h *g = guestfs_create ();\n"
32233 " \n"
32234 msgstr ""
32235
32236 #. type: verbatim
32237 #: ../src/guestfs.pod:78
32238 #, no-wrap
32239 msgid ""
32240 " /* Call guestfs_add_drive additional times if there are\n"
32241 "  * multiple disk images.\n"
32242 "  */\n"
32243 " guestfs_add_drive (g, \"guest.img\");\n"
32244 " \n"
32245 msgstr ""
32246
32247 #. type: verbatim
32248 #: ../src/guestfs.pod:83
32249 #, no-wrap
32250 msgid ""
32251 " /* Most manipulation calls won't work until you've launched\n"
32252 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32253 "  * and _before_ other commands.\n"
32254 "  */\n"
32255 " guestfs_launch (g);\n"
32256 " \n"
32257 msgstr ""
32258
32259 #. type: verbatim
32260 #: ../src/guestfs.pod:89
32261 #, no-wrap
32262 msgid ""
32263 " /* Now you can examine what partitions, LVs etc are available.\n"
32264 "  */\n"
32265 " char **partitions = guestfs_list_partitions (g);\n"
32266 " char **logvols = guestfs_lvs (g);\n"
32267 " \n"
32268 msgstr ""
32269
32270 #. type: verbatim
32271 #: ../src/guestfs.pod:94
32272 #, no-wrap
32273 msgid ""
32274 " /* To access a filesystem in the image, you must mount it.\n"
32275 "  */\n"
32276 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32277 " \n"
32278 msgstr ""
32279
32280 #. type: verbatim
32281 #: ../src/guestfs.pod:98
32282 #, no-wrap
32283 msgid ""
32284 " /* Now you can perform filesystem actions on the guest\n"
32285 "  * disk image.\n"
32286 "  */\n"
32287 " guestfs_touch (g, \"/hello\");\n"
32288 " \n"
32289 msgstr ""
32290
32291 #. type: verbatim
32292 #: ../src/guestfs.pod:103
32293 #, no-wrap
32294 msgid ""
32295 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32296 "  * it is done automatically when you close the handle.  See\n"
32297 "  * discussion of autosync in this page.\n"
32298 "  */\n"
32299 " guestfs_sync (g);\n"
32300 " \n"
32301 msgstr ""
32302
32303 #. type: verbatim
32304 #: ../src/guestfs.pod:109
32305 #, no-wrap
32306 msgid ""
32307 " /* Close the handle 'g'. */\n"
32308 " guestfs_close (g);\n"
32309 "\n"
32310 msgstr ""
32311
32312 #. type: textblock
32313 #: ../src/guestfs.pod:112
32314 msgid ""
32315 "The code above doesn't include any error checking.  In real code you should "
32316 "check return values carefully for errors.  In general all functions that "
32317 "return integers return C<-1> on error, and all functions that return "
32318 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32319 "how to handle errors, and consult the documentation for each function call "
32320 "below to see precisely how they return error indications.  See "
32321 "L<guestfs-examples(3)> for fully worked examples."
32322 msgstr ""
32323
32324 #. type: =head2
32325 #: ../src/guestfs.pod:121
32326 msgid "DISK IMAGES"
32327 msgstr ""
32328
32329 #. type: textblock
32330 #: ../src/guestfs.pod:123
32331 msgid ""
32332 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32333 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32334 "actual block device, or simply an empty file of zeroes that you have created "
32335 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32336 "of these."
32337 msgstr ""
32338
32339 #. type: textblock
32340 #: ../src/guestfs.pod:129
32341 msgid ""
32342 "The call you should use in modern code for adding drives is "
32343 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32344 "specifying that the format is raw, do:"
32345 msgstr ""
32346
32347 #. type: verbatim
32348 #: ../src/guestfs.pod:133
32349 #, no-wrap
32350 msgid ""
32351 " guestfs_add_drive_opts (g, filename,\n"
32352 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32353 "                         -1);\n"
32354 "\n"
32355 msgstr ""
32356
32357 #. type: textblock
32358 #: ../src/guestfs.pod:137
32359 msgid "You can add a disk read-only using:"
32360 msgstr ""
32361
32362 #. type: verbatim
32363 #: ../src/guestfs.pod:139
32364 #, no-wrap
32365 msgid ""
32366 " guestfs_add_drive_opts (g, filename,\n"
32367 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32368 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32369 "                         -1);\n"
32370 "\n"
32371 msgstr ""
32372
32373 #. type: textblock
32374 #: ../src/guestfs.pod:144
32375 msgid ""
32376 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32377 "libguestfs won't modify the file."
32378 msgstr ""
32379
32380 #. type: textblock
32381 #: ../src/guestfs.pod:147
32382 msgid ""
32383 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32384 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32385 "corruption, but adding it read-only is safe."
32386 msgstr ""
32387
32388 #. type: textblock
32389 #: ../src/guestfs.pod:151
32390 msgid ""
32391 "You must add at least one disk image, and you may add multiple disk images.  "
32392 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32393 "first one you added), C</dev/sdb> (for the second one you added), etc."
32394 msgstr ""
32395
32396 #. type: textblock
32397 #: ../src/guestfs.pod:156
32398 msgid ""
32399 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32400 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32401 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32402 msgstr ""
32403
32404 #. type: =head2
32405 #: ../src/guestfs.pod:161
32406 msgid "MOUNTING"
32407 msgstr ""
32408
32409 #. type: textblock
32410 #: ../src/guestfs.pod:163
32411 msgid ""
32412 "Before you can read or write files, create directories and so on in a disk "
32413 "image that contains filesystems, you have to mount those filesystems using "
32414 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32415 "a disk image contains (for example) one partition with a filesystem on that "
32416 "partition, then you can mount it directly:"
32417 msgstr ""
32418
32419 #. type: verbatim
32420 #: ../src/guestfs.pod:170
32421 #, no-wrap
32422 msgid ""
32423 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32424 "\n"
32425 msgstr ""
32426
32427 #. type: textblock
32428 #: ../src/guestfs.pod:172
32429 msgid ""
32430 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32431 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32432 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32433 "that these are libguestfs virtual devices, and are nothing to do with host "
32434 "devices."
32435 msgstr ""
32436
32437 #. type: textblock
32438 #: ../src/guestfs.pod:178
32439 msgid ""
32440 "If you are given a disk image and you don't know what it contains then you "
32441 "have to find out.  Libguestfs can do that too: use "
32442 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
32443 "and LVs, and either try mounting each to see what is mountable, or else "
32444 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32445 "filesystems, use L</guestfs_list_filesystems>."
32446 msgstr ""
32447
32448 #. type: textblock
32449 #: ../src/guestfs.pod:186
32450 msgid ""
32451 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32452 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32453 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32454 msgstr ""
32455
32456 #. type: textblock
32457 #: ../src/guestfs.pod:191
32458 msgid ""
32459 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32460 "several other variations of the C<guestfs_mount_*> call."
32461 msgstr ""
32462
32463 #. type: =head2
32464 #: ../src/guestfs.pod:194
32465 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32466 msgstr ""
32467
32468 #. type: textblock
32469 #: ../src/guestfs.pod:196
32470 msgid ""
32471 "The majority of the libguestfs API consists of fairly low-level calls for "
32472 "accessing and modifying the files, directories, symlinks etc on mounted "
32473 "filesystems.  There are over a hundred such calls which you can find listed "
32474 "in detail below in this man page, and we don't even pretend to cover them "
32475 "all in this overview."
32476 msgstr ""
32477
32478 #. type: textblock
32479 #: ../src/guestfs.pod:202
32480 msgid ""
32481 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32482 "mount point."
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs.pod:205
32487 msgid ""
32488 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32489 "the file called C<\"etc/passwd\"> then you could do:"
32490 msgstr ""
32491
32492 #. type: verbatim
32493 #: ../src/guestfs.pod:208
32494 #, no-wrap
32495 msgid ""
32496 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32497 "\n"
32498 msgstr ""
32499
32500 #. type: textblock
32501 #: ../src/guestfs.pod:210
32502 msgid ""
32503 "This would return C<data> as a newly allocated buffer containing the full "
32504 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32505 "or C<NULL> if there was an error."
32506 msgstr ""
32507
32508 #. type: textblock
32509 #: ../src/guestfs.pod:214
32510 msgid ""
32511 "As another example, to create a top-level directory on that filesystem "
32512 "called C<\"var\"> you would do:"
32513 msgstr ""
32514
32515 #. type: verbatim
32516 #: ../src/guestfs.pod:217
32517 #, no-wrap
32518 msgid ""
32519 " guestfs_mkdir (g, \"/var\");\n"
32520 "\n"
32521 msgstr ""
32522
32523 #. type: textblock
32524 #: ../src/guestfs.pod:219
32525 msgid "To create a symlink you could do:"
32526 msgstr ""
32527
32528 #. type: verbatim
32529 #: ../src/guestfs.pod:221
32530 #, no-wrap
32531 msgid ""
32532 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32533 "               \"/etc/rc3.d/S30portmap\");\n"
32534 "\n"
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs.pod:224
32539 msgid ""
32540 "Libguestfs will reject attempts to use relative paths and there is no "
32541 "concept of a current working directory."
32542 msgstr ""
32543
32544 #. type: textblock
32545 #: ../src/guestfs.pod:227
32546 msgid ""
32547 "Libguestfs can return errors in many situations: for example if the "
32548 "filesystem isn't writable, or if a file or directory that you requested "
32549 "doesn't exist.  If you are using the C API (documented here)  you have to "
32550 "check for those error conditions after each call.  (Other language bindings "
32551 "turn these errors into exceptions)."
32552 msgstr ""
32553
32554 #. type: textblock
32555 #: ../src/guestfs.pod:233
32556 msgid ""
32557 "File writes are affected by the per-handle umask, set by calling "
32558 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs.pod:236
32563 msgid "PARTITIONING"
32564 msgstr ""
32565
32566 #. type: textblock
32567 #: ../src/guestfs.pod:238
32568 msgid ""
32569 "Libguestfs contains API calls to read, create and modify partition tables on "
32570 "disk images."
32571 msgstr ""
32572
32573 #. type: textblock
32574 #: ../src/guestfs.pod:241
32575 msgid ""
32576 "In the common case where you want to create a single partition covering the "
32577 "whole disk, you should use the L</guestfs_part_disk> call:"
32578 msgstr ""
32579
32580 #. type: verbatim
32581 #: ../src/guestfs.pod:245
32582 #, no-wrap
32583 msgid ""
32584 " const char *parttype = \"mbr\";\n"
32585 " if (disk_is_larger_than_2TB)\n"
32586 "   parttype = \"gpt\";\n"
32587 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32588 "\n"
32589 msgstr ""
32590
32591 #. type: textblock
32592 #: ../src/guestfs.pod:250
32593 msgid ""
32594 "Obviously this effectively wipes anything that was on that disk image "
32595 "before."
32596 msgstr ""
32597
32598 #. type: =head2
32599 #: ../src/guestfs.pod:253
32600 msgid "LVM2"
32601 msgstr ""
32602
32603 #. type: textblock
32604 #: ../src/guestfs.pod:255
32605 msgid ""
32606 "Libguestfs provides access to a large part of the LVM2 API, such as "
32607 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
32608 "unless you familiarize yourself with the concepts of physical volumes, "
32609 "volume groups and logical volumes."
32610 msgstr ""
32611
32612 #. type: textblock
32613 #: ../src/guestfs.pod:260
32614 msgid ""
32615 "This author strongly recommends reading the LVM HOWTO, online at "
32616 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
32617 msgstr ""
32618
32619 #. type: =head2
32620 #: ../src/guestfs.pod:263
32621 msgid "DOWNLOADING"
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:265
32626 msgid ""
32627 "Use L</guestfs_cat> to download small, text only files.  This call is "
32628 "limited to files which are less than 2 MB and which cannot contain any ASCII "
32629 "NUL (C<\\0>) characters.  However the API is very simple to use."
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs.pod:269
32634 msgid ""
32635 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
32636 "bit data, since it returns a (pointer, size) pair.  However it is still "
32637 "limited to \"small\" files, less than 2 MB."
32638 msgstr ""
32639
32640 #. type: textblock
32641 #: ../src/guestfs.pod:273
32642 msgid ""
32643 "L</guestfs_download> can be used to download any file, with no limits on "
32644 "content or size (even files larger than 4 GB)."
32645 msgstr ""
32646
32647 #. type: textblock
32648 #: ../src/guestfs.pod:276
32649 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
32650 msgstr ""
32651
32652 #. type: =head2
32653 #: ../src/guestfs.pod:279
32654 msgid "UPLOADING"
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs.pod:281
32659 msgid ""
32660 "It's often the case that you want to write a file or files to the disk "
32661 "image."
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs.pod:284
32666 msgid ""
32667 "To write a small file with fixed content, use L</guestfs_write>.  To create "
32668 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
32669 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
32670 "variety of other functions for creating test files, for example "
32671 "L</guestfs_fill> and L</guestfs_fill_pattern>."
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs.pod:290
32676 msgid ""
32677 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
32678 "file content or size (even files larger than 4 GB)."
32679 msgstr ""
32680
32681 #. type: textblock
32682 #: ../src/guestfs.pod:293
32683 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
32684 msgstr ""
32685
32686 #. type: textblock
32687 #: ../src/guestfs.pod:295
32688 msgid ""
32689 "However the fastest way to upload I<large numbers of arbitrary files> is to "
32690 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
32691 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
32692 "the drive in a predictable way (eg. adding it last after all other drives) "
32693 "then you can get the device name from L</guestfs_list_devices> and mount it "
32694 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
32695 "sometimes non-portable between kernel versions, and they don't support "
32696 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
32697 "using a label or UUID, use an ISO image instead."
32698 msgstr ""
32699
32700 #. type: =head2
32701 #: ../src/guestfs.pod:306
32702 msgid "COPYING"
32703 msgstr ""
32704
32705 #. type: textblock
32706 #: ../src/guestfs.pod:308
32707 msgid ""
32708 "There are various different commands for copying between files and devices "
32709 "and in and out of the guest filesystem.  These are summarised in the table "
32710 "below."
32711 msgstr ""
32712
32713 #. type: =item
32714 #: ../src/guestfs.pod:314
32715 msgid "B<file> to B<file>"
32716 msgstr ""
32717
32718 #. type: textblock
32719 #: ../src/guestfs.pod:316
32720 msgid ""
32721 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
32722 "directories recursively."
32723 msgstr ""
32724
32725 #. type: =item
32726 #: ../src/guestfs.pod:319
32727 msgid "B<file or device> to B<file or device>"
32728 msgstr ""
32729
32730 #. type: textblock
32731 #: ../src/guestfs.pod:321
32732 msgid ""
32733 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
32734 "devices in the guest."
32735 msgstr ""
32736
32737 #. type: textblock
32738 #: ../src/guestfs.pod:324
32739 msgid "Example: duplicate the contents of an LV:"
32740 msgstr ""
32741
32742 #. type: verbatim
32743 #: ../src/guestfs.pod:326
32744 #, no-wrap
32745 msgid ""
32746 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
32747 "\n"
32748 msgstr ""
32749
32750 #. type: textblock
32751 #: ../src/guestfs.pod:328
32752 msgid ""
32753 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
32754 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
32755 "L</guestfs_copy_size>."
32756 msgstr ""
32757
32758 #. type: =item
32759 #: ../src/guestfs.pod:332
32760 msgid "B<file on the host> to B<file or device>"
32761 msgstr ""
32762
32763 #. type: textblock
32764 #: ../src/guestfs.pod:334
32765 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
32766 msgstr ""
32767
32768 #. type: =item
32769 #: ../src/guestfs.pod:336
32770 msgid "B<file or device> to B<file on the host>"
32771 msgstr ""
32772
32773 #. type: textblock
32774 #: ../src/guestfs.pod:338
32775 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
32776 msgstr ""
32777
32778 #. type: =head2
32779 #: ../src/guestfs.pod:342
32780 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
32781 msgstr ""
32782
32783 #. type: textblock
32784 #: ../src/guestfs.pod:344
32785 msgid ""
32786 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
32787 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
32788 "appears you can only upload and download to files.  However many Un*x-like "
32789 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
32790 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
32791 "stderr, and arbitrary file descriptor N."
32792 msgstr ""
32793
32794 #. type: textblock
32795 #: ../src/guestfs.pod:352
32796 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
32797 msgstr ""
32798
32799 #. type: verbatim
32800 #: ../src/guestfs.pod:355
32801 #, no-wrap
32802 msgid ""
32803 " guestfs_download (g, filename, \"/dev/stdout\");\n"
32804 "\n"
32805 msgstr ""
32806
32807 #. type: textblock
32808 #: ../src/guestfs.pod:357
32809 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
32810 msgstr ""
32811
32812 #. type: verbatim
32813 #: ../src/guestfs.pod:359
32814 #, no-wrap
32815 msgid ""
32816 " char devfd[64];\n"
32817 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
32818 " guestfs_tar_out (g, \"/\", devfd);\n"
32819 "\n"
32820 msgstr ""
32821
32822 #. type: =head2
32823 #: ../src/guestfs.pod:363
32824 msgid "LISTING FILES"
32825 msgstr ""
32826
32827 #. type: textblock
32828 #: ../src/guestfs.pod:365
32829 msgid ""
32830 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
32831 "L<guestfish(1)>-equivalent command C<ll>)."
32832 msgstr ""
32833
32834 #. type: textblock
32835 #: ../src/guestfs.pod:368
32836 msgid ""
32837 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
32838 "programs, as a flat list of strings."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:371
32843 msgid ""
32844 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
32845 "directory, plus additional information about each one.  It is more "
32846 "equivalent to using the L<readdir(3)> call on a local filesystem."
32847 msgstr ""
32848
32849 #. type: textblock
32850 #: ../src/guestfs.pod:375
32851 msgid ""
32852 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
32853 "files."
32854 msgstr ""
32855
32856 #. type: =head2
32857 #: ../src/guestfs.pod:378
32858 msgid "RUNNING COMMANDS"
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs.pod:380
32863 msgid ""
32864 "Although libguestfs is primarily an API for manipulating files inside guest "
32865 "images, we also provide some limited facilities for running commands inside "
32866 "guests."
32867 msgstr ""
32868
32869 #. type: textblock
32870 #: ../src/guestfs.pod:384
32871 msgid "There are many limitations to this:"
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:390
32876 msgid ""
32877 "The kernel version that the command runs under will be different from what "
32878 "it expects."
32879 msgstr ""
32880
32881 #. type: textblock
32882 #: ../src/guestfs.pod:395
32883 msgid ""
32884 "If the command needs to communicate with daemons, then most likely they "
32885 "won't be running."
32886 msgstr ""
32887
32888 #. type: textblock
32889 #: ../src/guestfs.pod:400
32890 msgid "The command will be running in limited memory."
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs.pod:404
32895 msgid ""
32896 "The network may not be available unless you enable it (see "
32897 "L</guestfs_set_network>)."
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:409
32902 msgid "Only supports Linux guests (not Windows, BSD, etc)."
32903 msgstr ""
32904
32905 #. type: textblock
32906 #: ../src/guestfs.pod:413
32907 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs.pod:418
32912 msgid ""
32913 "For SELinux guests, you may need to enable SELinux and load policy first.  "
32914 "See L</SELINUX> in this manpage."
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../src/guestfs.pod:423
32919 msgid ""
32920 "I<Security:> It is not safe to run commands from untrusted, possibly "
32921 "malicious guests.  These commands may attempt to exploit your program by "
32922 "sending unexpected output.  They could also try to exploit the Linux kernel "
32923 "or qemu provided by the libguestfs appliance.  They could use the network "
32924 "provided by the libguestfs appliance to bypass ordinary network partitions "
32925 "and firewalls.  They could use the elevated privileges or different SELinux "
32926 "context of your program to their advantage."
32927 msgstr ""
32928
32929 #. type: textblock
32930 #: ../src/guestfs.pod:432
32931 msgid ""
32932 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
32933 "(a script which runs when the guest next boots normally), and to have this "
32934 "script run the commands you want in the normal context of the running guest, "
32935 "network security and so on.  For information about other security issues, "
32936 "see L</SECURITY>."
32937 msgstr ""
32938
32939 #. type: textblock
32940 #: ../src/guestfs.pod:440
32941 msgid ""
32942 "The two main API calls to run commands are L</guestfs_command> and "
32943 "L</guestfs_sh> (there are also variations)."
32944 msgstr ""
32945
32946 #. type: textblock
32947 #: ../src/guestfs.pod:443
32948 msgid ""
32949 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
32950 "shell globs, redirections, etc will work."
32951 msgstr ""
32952
32953 #. type: =head2
32954 #: ../src/guestfs.pod:446
32955 msgid "CONFIGURATION FILES"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs.pod:448
32960 msgid ""
32961 "To read and write configuration files in Linux guest filesystems, we "
32962 "strongly recommend using Augeas.  For example, Augeas understands how to "
32963 "read and write, say, a Linux shadow password file or X.org configuration "
32964 "file, and so avoids you having to write that code."
32965 msgstr ""
32966
32967 #. type: textblock
32968 #: ../src/guestfs.pod:453
32969 msgid ""
32970 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
32971 "document Augeas itself here because there is excellent documentation on the "
32972 "L<http://augeas.net/> website."
32973 msgstr ""
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:457
32977 msgid ""
32978 "If you don't want to use Augeas (you fool!) then try calling "
32979 "L</guestfs_read_lines> to get the file as a list of lines which you can "
32980 "iterate over."
32981 msgstr ""
32982
32983 #. type: =head2
32984 #: ../src/guestfs.pod:461
32985 msgid "SELINUX"
32986 msgstr ""
32987
32988 #. type: textblock
32989 #: ../src/guestfs.pod:463
32990 msgid ""
32991 "We support SELinux guests.  To ensure that labeling happens correctly in "
32992 "SELinux guests, you need to enable SELinux and load the guest's policy:"
32993 msgstr ""
32994
32995 #. type: textblock
32996 #: ../src/guestfs.pod:471
32997 msgid "Before launching, do:"
32998 msgstr ""
32999
33000 #. type: verbatim
33001 #: ../src/guestfs.pod:473
33002 #, no-wrap
33003 msgid ""
33004 " guestfs_set_selinux (g, 1);\n"
33005 "\n"
33006 msgstr ""
33007
33008 #. type: textblock
33009 #: ../src/guestfs.pod:477
33010 msgid ""
33011 "After mounting the guest's filesystem(s), load the policy.  This is best "
33012 "done by running the L<load_policy(8)> command in the guest itself:"
33013 msgstr ""
33014
33015 #. type: verbatim
33016 #: ../src/guestfs.pod:481
33017 #, no-wrap
33018 msgid ""
33019 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33020 "\n"
33021 msgstr ""
33022
33023 #. type: textblock
33024 #: ../src/guestfs.pod:483
33025 msgid ""
33026 "(Older versions of C<load_policy> require you to specify the name of the "
33027 "policy file)."
33028 msgstr ""
33029
33030 #. type: textblock
33031 #: ../src/guestfs.pod:488
33032 msgid ""
33033 "Optionally, set the security context for the API.  The correct security "
33034 "context to use can only be known by inspecting the guest.  As an example:"
33035 msgstr ""
33036
33037 #. type: verbatim
33038 #: ../src/guestfs.pod:492
33039 #, no-wrap
33040 msgid ""
33041 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33042 "\n"
33043 msgstr ""
33044
33045 #. type: textblock
33046 #: ../src/guestfs.pod:496
33047 msgid "This will work for running commands and editing existing files."
33048 msgstr ""
33049
33050 #. type: textblock
33051 #: ../src/guestfs.pod:498
33052 msgid ""
33053 "When new files are created, you may need to label them explicitly, for "
33054 "example by running the external command C<restorecon pathname>."
33055 msgstr ""
33056
33057 #. type: =head2
33058 #: ../src/guestfs.pod:502
33059 msgid "UMASK"
33060 msgstr ""
33061
33062 #. type: textblock
33063 #: ../src/guestfs.pod:504
33064 msgid ""
33065 "Certain calls are affected by the current file mode creation mask (the "
33066 "\"umask\").  In particular ones which create files or directories, such as "
33067 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33068 "either the default mode that the file is created with or modifies the mode "
33069 "that you supply."
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:510
33074 msgid ""
33075 "The default umask is C<022>, so files are created with modes such as C<0644> "
33076 "and directories with C<0755>."
33077 msgstr ""
33078
33079 #. type: textblock
33080 #: ../src/guestfs.pod:513
33081 msgid ""
33082 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33083 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
33084 "L</guestfs_chmod> after creating each file or directory."
33085 msgstr ""
33086
33087 #. type: textblock
33088 #: ../src/guestfs.pod:517
33089 msgid "For more information about umask, see L<umask(2)>."
33090 msgstr ""
33091
33092 #. type: textblock
33093 #: ../src/guestfs.pod:521
33094 msgid ""
33095 "Libguestfs allows you to access Linux guests which have been encrypted using "
33096 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33097 "standard.  This includes nearly all whole disk encryption systems used by "
33098 "modern Linux guests."
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs.pod:527
33103 msgid ""
33104 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33105 "returns the string C<crypto_LUKS>)."
33106 msgstr ""
33107
33108 #. type: textblock
33109 #: ../src/guestfs.pod:530
33110 msgid ""
33111 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33112 "will require the passphrase!"
33113 msgstr ""
33114
33115 #. type: textblock
33116 #: ../src/guestfs.pod:533
33117 msgid ""
33118 "Opening a LUKS device creates a new device mapper device called "
33119 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
33120 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
33121 "decrypted from and encrypted to the underlying block device respectively."
33122 msgstr ""
33123
33124 #. type: textblock
33125 #: ../src/guestfs.pod:539
33126 msgid ""
33127 "LVM volume groups on the device can be made visible by calling "
33128 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
33129 "volume(s) can now be mounted in the usual way."
33130 msgstr ""
33131
33132 #. type: textblock
33133 #: ../src/guestfs.pod:543
33134 msgid ""
33135 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33136 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33137 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
33138 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33139 "underlying encrypted block device)."
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs.pod:550
33144 msgid "INSPECTION"
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs.pod:552
33149 msgid ""
33150 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33151 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33152 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33153 "version 1.5.3 the most frequently used part of this library has been "
33154 "rewritten in C and moved into the core code)."
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs.pod:559
33159 msgid ""
33160 "Add all disks belonging to the unknown virtual machine and call "
33161 "L</guestfs_launch> in the usual way."
33162 msgstr ""
33163
33164 #. type: textblock
33165 #: ../src/guestfs.pod:562
33166 msgid ""
33167 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33168 "and certain heuristics, and returns a list of operating systems that were "
33169 "found.  An empty list means none were found.  A single element is the root "
33170 "filesystem of the operating system.  For dual- or multi-boot guests, "
33171 "multiple roots can be returned, each one corresponding to a separate "
33172 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33173 "world of virtualization, but since this scenario can happen, we have built "
33174 "libguestfs to deal with it.)"
33175 msgstr ""
33176
33177 #. type: textblock
33178 #: ../src/guestfs.pod:571
33179 msgid ""
33180 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33181 "to get additional details about that operating system.  For example, call "
33182 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33183 "Windows and Linux-based operating systems respectively."
33184 msgstr ""
33185
33186 #. type: textblock
33187 #: ../src/guestfs.pod:577
33188 msgid ""
33189 "Un*x-like and Linux-based operating systems usually consist of several "
33190 "filesystems which are mounted at boot time (for example, a separate boot "
33191 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33192 "filesystems correspond to mount points.  Call "
33193 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33194 "hash table like this example:"
33195 msgstr ""
33196
33197 #. type: verbatim
33198 #: ../src/guestfs.pod:584
33199 #, no-wrap
33200 msgid ""
33201 " /boot => /dev/sda1\n"
33202 " /     => /dev/vg_guest/lv_root\n"
33203 " /usr  => /dev/vg_guest/lv_usr\n"
33204 "\n"
33205 msgstr ""
33206
33207 #. type: textblock
33208 #: ../src/guestfs.pod:588
33209 msgid ""
33210 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33211 "filesystems as suggested."
33212 msgstr ""
33213
33214 #. type: textblock
33215 #: ../src/guestfs.pod:591
33216 msgid ""
33217 "Be careful to mount filesystems in the right order (eg. C</> before "
33218 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
33219 "work."
33220 msgstr ""
33221
33222 #. type: textblock
33223 #: ../src/guestfs.pod:595
33224 msgid ""
33225 "Inspection currently only works for some common operating systems.  "
33226 "Contributors are welcome to send patches for other operating systems that we "
33227 "currently cannot detect."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs.pod:599
33232 msgid ""
33233 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33234 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33235 "encrypted devices."
33236 msgstr ""
33237
33238 #. type: textblock
33239 #: ../src/guestfs.pod:603
33240 msgid ""
33241 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33242 "inspection and caches the results in the guest handle.  Subsequent calls to "
33243 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
33244 "re-read the disks.  If you change the content of the guest disks, you can "
33245 "redo inspection by calling L</guestfs_inspect_os> again.  "
33246 "(L</guestfs_inspect_list_applications> works a little differently from the "
33247 "other calls and does read the disks.  See documentation for that function "
33248 "for details)."
33249 msgstr ""
33250
33251 #. type: =head3
33252 #: ../src/guestfs.pod:612
33253 msgid "INSPECTING INSTALL DISKS"
33254 msgstr ""
33255
33256 #. type: textblock
33257 #: ../src/guestfs.pod:614
33258 msgid ""
33259 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33260 "CDs and more."
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:617
33265 msgid ""
33266 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33267 "system, which currently can be C<installed> (a regular operating system) or "
33268 "C<installer> (some sort of install disk)."
33269 msgstr ""
33270
33271 #. type: textblock
33272 #: ../src/guestfs.pod:621
33273 msgid ""
33274 "Further information is available about the operating system that can be "
33275 "installed using the regular inspection APIs like "
33276 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
33277 "etc."
33278 msgstr ""
33279
33280 #. type: textblock
33281 #: ../src/guestfs.pod:626
33282 msgid ""
33283 "Some additional information specific to installer disks is also available "
33284 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
33285 "L</guestfs_inspect_is_multipart> calls."
33286 msgstr ""
33287
33288 #. type: =head2
33289 #: ../src/guestfs.pod:631
33290 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs.pod:633
33295 msgid ""
33296 "Libguestfs can mount NTFS partitions.  It does this using the "
33297 "L<http://www.ntfs-3g.org/> driver."
33298 msgstr ""
33299
33300 #. type: =head3
33301 #: ../src/guestfs.pod:636
33302 msgid "DRIVE LETTERS AND PATHS"
33303 msgstr ""
33304
33305 #. type: textblock
33306 #: ../src/guestfs.pod:638
33307 msgid ""
33308 "DOS and Windows still use drive letters, and the filesystems are always "
33309 "treated as case insensitive by Windows itself, and therefore you might find "
33310 "a Windows configuration file referring to a path like "
33311 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
33312 "that directory might be referred to as C</WINDOWS/System32>."
33313 msgstr ""
33314
33315 #. type: textblock
33316 #: ../src/guestfs.pod:644
33317 msgid ""
33318 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33319 "L</guestfs_inspect_get_drive_mappings>)"
33320 msgstr ""
33321
33322 #. type: textblock
33323 #: ../src/guestfs.pod:647
33324 msgid ""
33325 "Dealing with separator characters (backslash vs forward slash) is outside "
33326 "the scope of libguestfs, but usually a simple character replacement will "
33327 "work."
33328 msgstr ""
33329
33330 #. type: textblock
33331 #: ../src/guestfs.pod:651
33332 msgid ""
33333 "To resolve the case insensitivity of paths, call "
33334 "L</guestfs_case_sensitive_path>."
33335 msgstr ""
33336
33337 #. type: =head3
33338 #: ../src/guestfs.pod:654
33339 msgid "ACCESSING THE WINDOWS REGISTRY"
33340 msgstr ""
33341
33342 #. type: textblock
33343 #: ../src/guestfs.pod:656
33344 msgid ""
33345 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33346 "files, through the library C<hivex> which is part of the libguestfs project "
33347 "although ships as a separate tarball.  You have to locate and download the "
33348 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33349 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
33350 "L<virt-win-reg(1)> for more help on this issue."
33351 msgstr ""
33352
33353 #. type: =head3
33354 #: ../src/guestfs.pod:664
33355 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33356 msgstr ""
33357
33358 #. type: textblock
33359 #: ../src/guestfs.pod:666
33360 msgid ""
33361 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33362 "provide something which looks like a Linux symlink.  The way it tries to do "
33363 "the rewriting is described here:"
33364 msgstr ""
33365
33366 #. type: textblock
33367 #: ../src/guestfs.pod:670
33368 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs.pod:672
33373 msgid ""
33374 "The essential problem is that ntfs-3g simply does not have enough "
33375 "information to do a correct job.  NTFS links can contain drive letters and "
33376 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33377 "It is almost certainly the case that libguestfs callers should ignore what "
33378 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33379 msgstr ""
33380
33381 #. type: textblock
33382 #: ../src/guestfs.pod:679
33383 msgid ""
33384 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
33385 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33386 "attribute, and read the raw reparse data from that (you can find the format "
33387 "documented in various places around the web)."
33388 msgstr ""
33389
33390 #. type: =head3
33391 #: ../src/guestfs.pod:684
33392 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33393 msgstr ""
33394
33395 #. type: textblock
33396 #: ../src/guestfs.pod:686
33397 msgid ""
33398 "There are other useful extended attributes that can be read from ntfs-3g "
33399 "filesystems (using L</guestfs_getxattr>).  See:"
33400 msgstr ""
33401
33402 #. type: textblock
33403 #: ../src/guestfs.pod:689
33404 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33405 msgstr ""
33406
33407 #. type: =head2
33408 #: ../src/guestfs.pod:691
33409 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33410 msgstr ""
33411
33412 #. type: textblock
33413 #: ../src/guestfs.pod:693
33414 msgid ""
33415 "Although we don't want to discourage you from using the C API, we will "
33416 "mention here that the same API is also available in other languages."
33417 msgstr ""
33418
33419 #. type: textblock
33420 #: ../src/guestfs.pod:696
33421 msgid ""
33422 "The API is broadly identical in all supported languages.  This means that "
33423 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33424 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33425 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33426 "each language."
33427 msgstr ""
33428
33429 #. type: textblock
33430 #: ../src/guestfs.pod:702
33431 msgid ""
33432 "Error messages are automatically transformed into exceptions if the language "
33433 "supports it."
33434 msgstr ""
33435
33436 #. type: textblock
33437 #: ../src/guestfs.pod:705
33438 msgid ""
33439 "We don't try to \"object orientify\" parts of the API in OO languages, "
33440 "although contributors are welcome to write higher level APIs above what we "
33441 "provide in their favourite languages if they wish."
33442 msgstr ""
33443
33444 #. type: =item
33445 #: ../src/guestfs.pod:711
33446 msgid "B<C++>"
33447 msgstr ""
33448
33449 #. type: textblock
33450 #: ../src/guestfs.pod:713
33451 msgid ""
33452 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33453 "identical to the C API.  C++ classes and exceptions are not used."
33454 msgstr ""
33455
33456 #. type: =item
33457 #: ../src/guestfs.pod:717
33458 msgid "B<C#>"
33459 msgstr ""
33460
33461 #. type: textblock
33462 #: ../src/guestfs.pod:719
33463 msgid ""
33464 "The C# bindings are highly experimental.  Please read the warnings at the "
33465 "top of C<csharp/Libguestfs.cs>."
33466 msgstr ""
33467
33468 #. type: =item
33469 #: ../src/guestfs.pod:722
33470 msgid "B<Erlang>"
33471 msgstr ""
33472
33473 #. type: textblock
33474 #: ../src/guestfs.pod:724
33475 msgid "See L<guestfs-erlang(3)>."
33476 msgstr ""
33477
33478 #. type: =item
33479 #: ../src/guestfs.pod:726
33480 msgid "B<Haskell>"
33481 msgstr ""
33482
33483 #. type: textblock
33484 #: ../src/guestfs.pod:728
33485 msgid ""
33486 "This is the only language binding that is working but incomplete.  Only "
33487 "calls which return simple integers have been bound in Haskell, and we are "
33488 "looking for help to complete this binding."
33489 msgstr ""
33490
33491 #. type: =item
33492 #: ../src/guestfs.pod:732
33493 msgid "B<Java>"
33494 msgstr ""
33495
33496 #. type: textblock
33497 #: ../src/guestfs.pod:734
33498 msgid ""
33499 "Full documentation is contained in the Javadoc which is distributed with "
33500 "libguestfs.  For examples, see L<guestfs-java(3)>."
33501 msgstr ""
33502
33503 #. type: =item
33504 #: ../src/guestfs.pod:737
33505 msgid "B<OCaml>"
33506 msgstr ""
33507
33508 #. type: textblock
33509 #: ../src/guestfs.pod:739
33510 msgid "See L<guestfs-ocaml(3)>."
33511 msgstr ""
33512
33513 #. type: =item
33514 #: ../src/guestfs.pod:741
33515 msgid "B<Perl>"
33516 msgstr ""
33517
33518 #. type: textblock
33519 #: ../src/guestfs.pod:743
33520 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33521 msgstr ""
33522
33523 #. type: =item
33524 #: ../src/guestfs.pod:745
33525 msgid "B<PHP>"
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs.pod:747
33530 msgid ""
33531 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33532 "the php-libguestfs package for your distribution."
33533 msgstr ""
33534
33535 #. type: textblock
33536 #: ../src/guestfs.pod:750
33537 msgid "The PHP binding only works correctly on 64 bit machines."
33538 msgstr ""
33539
33540 #. type: =item
33541 #: ../src/guestfs.pod:752
33542 msgid "B<Python>"
33543 msgstr ""
33544
33545 #. type: textblock
33546 #: ../src/guestfs.pod:754
33547 msgid "See L<guestfs-python(3)>."
33548 msgstr ""
33549
33550 #. type: =item
33551 #: ../src/guestfs.pod:756
33552 msgid "B<Ruby>"
33553 msgstr ""
33554
33555 #. type: textblock
33556 #: ../src/guestfs.pod:758
33557 msgid "See L<guestfs-ruby(3)>."
33558 msgstr ""
33559
33560 #. type: =item
33561 #: ../src/guestfs.pod:760
33562 msgid "B<shell scripts>"
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../src/guestfs.pod:762
33567 msgid "See L<guestfish(1)>."
33568 msgstr ""
33569
33570 #. type: =head2
33571 #: ../src/guestfs.pod:766
33572 msgid "LIBGUESTFS GOTCHAS"
33573 msgstr ""
33574
33575 #. type: textblock
33576 #: ../src/guestfs.pod:768
33577 msgid ""
33578 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
33579 "system [...] that works in the way it is documented but is counterintuitive "
33580 "and almost invites mistakes.\""
33581 msgstr ""
33582
33583 #. type: textblock
33584 #: ../src/guestfs.pod:772
33585 msgid ""
33586 "Since we developed libguestfs and the associated tools, there are several "
33587 "things we would have designed differently, but are now stuck with for "
33588 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
33589 "release, you can expect these to change.  Beware of them."
33590 msgstr ""
33591
33592 #. type: =item
33593 #: ../src/guestfs.pod:780
33594 msgid "Autosync / forgetting to sync."
33595 msgstr ""
33596
33597 #. type: textblock
33598 #: ../src/guestfs.pod:782
33599 msgid ""
33600 "I<Update:> Autosync is enabled by default for all API users starting from "
33601 "libguestfs 1.5.24.  This section only applies to older versions."
33602 msgstr ""
33603
33604 #. type: textblock
33605 #: ../src/guestfs.pod:785
33606 msgid ""
33607 "When modifying a filesystem from C or another language, you B<must> unmount "
33608 "all filesystems and call L</guestfs_sync> explicitly before you close the "
33609 "libguestfs handle.  You can also call:"
33610 msgstr ""
33611
33612 #. type: verbatim
33613 #: ../src/guestfs.pod:789
33614 #, no-wrap
33615 msgid ""
33616 " guestfs_set_autosync (g, 1);\n"
33617 "\n"
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs.pod:791
33622 msgid ""
33623 "to have the unmount/sync done automatically for you when the handle 'g' is "
33624 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
33625 "q.v.)"
33626 msgstr ""
33627
33628 #. type: textblock
33629 #: ../src/guestfs.pod:795
33630 msgid ""
33631 "If you forget to do this, then it is entirely possible that your changes "
33632 "won't be written out, or will be partially written, or (very rarely) that "
33633 "you'll get disk corruption."
33634 msgstr ""
33635
33636 #. type: textblock
33637 #: ../src/guestfs.pod:799
33638 msgid ""
33639 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
33640 "guestfish scripts that forget to sync will work just fine, which can make "
33641 "this very puzzling if you are trying to debug a problem."
33642 msgstr ""
33643
33644 #. type: =item
33645 #: ../src/guestfs.pod:803
33646 msgid "Mount option C<-o sync> should not be the default."
33647 msgstr ""
33648
33649 #. type: textblock
33650 #: ../src/guestfs.pod:805
33651 msgid ""
33652 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
33653 "libguestfs 1.13.16.  This section only applies to older versions."
33654 msgstr ""
33655
33656 #. type: textblock
33657 #: ../src/guestfs.pod:808
33658 msgid ""
33659 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
33660 "However C<-o sync> does not add any reliability benefit, but does have a "
33661 "very large performance impact."
33662 msgstr ""
33663
33664 #. type: textblock
33665 #: ../src/guestfs.pod:812
33666 msgid ""
33667 "The work around is to use L</guestfs_mount_options> and set the mount "
33668 "options that you actually want to use."
33669 msgstr ""
33670
33671 #. type: =item
33672 #: ../src/guestfs.pod:815
33673 msgid "Read-only should be the default."
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs.pod:817
33678 msgid ""
33679 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
33680 "specify I<--rw> if you want to make changes to the image."
33681 msgstr ""
33682
33683 #. type: textblock
33684 #: ../src/guestfs.pod:820
33685 msgid "This would reduce the potential to corrupt live VM images."
33686 msgstr ""
33687
33688 #. type: textblock
33689 #: ../src/guestfs.pod:822
33690 msgid ""
33691 "Note that many filesystems change the disk when you just mount and unmount, "
33692 "even if you didn't perform any writes.  You need to use "
33693 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
33694 msgstr ""
33695
33696 #. type: =item
33697 #: ../src/guestfs.pod:826
33698 msgid "guestfish command line is hard to use."
33699 msgstr ""
33700
33701 #. type: textblock
33702 #: ../src/guestfs.pod:828
33703 msgid ""
33704 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
33705 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
33706 "exist, so it fails.  In earlier versions of guestfish the error message was "
33707 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
33708 "we should have used C<guestfish -c command> to run commands."
33709 msgstr ""
33710
33711 #. type: =item
33712 #: ../src/guestfs.pod:835
33713 msgid "guestfish megabyte modifiers don't work right on all commands"
33714 msgstr ""
33715
33716 #. type: textblock
33717 #: ../src/guestfs.pod:837
33718 msgid ""
33719 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
33720 "other modifiers).  What guestfish actually does is to multiply the number "
33721 "part by the modifier part and pass the result to the C API.  However this "
33722 "doesn't work for a few APIs which aren't expecting bytes, but are already "
33723 "expecting some other unit (eg. megabytes)."
33724 msgstr ""
33725
33726 #. type: textblock
33727 #: ../src/guestfs.pod:844
33728 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
33729 msgstr ""
33730
33731 #. type: verbatim
33732 #: ../src/guestfs.pod:846
33733 #, no-wrap
33734 msgid ""
33735 " lvcreate LV VG 100M\n"
33736 "\n"
33737 msgstr ""
33738
33739 #. type: textblock
33740 #: ../src/guestfs.pod:848
33741 msgid ""
33742 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
33743 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
33744 "megabytes * megabytes) logical volume.  The error message you get from this "
33745 "is also a little obscure."
33746 msgstr ""
33747
33748 #. type: textblock
33749 #: ../src/guestfs.pod:853
33750 msgid ""
33751 "This could be fixed in the generator by specially marking parameters and "
33752 "return values which take bytes or other units."
33753 msgstr ""
33754
33755 #. type: =item
33756 #: ../src/guestfs.pod:856
33757 msgid "Ambiguity between devices and paths"
33758 msgstr ""
33759
33760 #. type: textblock
33761 #: ../src/guestfs.pod:858
33762 msgid ""
33763 "There is a subtle ambiguity in the API between a device name "
33764 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
33765 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
33766 msgstr ""
33767
33768 #. type: textblock
33769 #: ../src/guestfs.pod:863
33770 msgid ""
33771 "In the current API we usually resolve this ambiguity by having two separate "
33772 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
33773 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
33774 "detecting if the path supplied begins with C</dev/>."
33775 msgstr ""
33776
33777 #. type: textblock
33778 #: ../src/guestfs.pod:869
33779 msgid ""
33780 "To avoid both the ambiguity and the need to duplicate some calls, we could "
33781 "make paths/devices into structured names.  One way to do this would be to "
33782 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
33783 "aspect of grub.  Another way would be to use a structured type, equivalent "
33784 "to this OCaml type:"
33785 msgstr ""
33786
33787 #. type: verbatim
33788 #: ../src/guestfs.pod:875
33789 #, no-wrap
33790 msgid ""
33791 " type path = Path of string | Device of int | Partition of int * int\n"
33792 "\n"
33793 msgstr ""
33794
33795 #. type: textblock
33796 #: ../src/guestfs.pod:877
33797 msgid "which would allow you to pass arguments like:"
33798 msgstr ""
33799
33800 #. type: verbatim
33801 #: ../src/guestfs.pod:879
33802 #, no-wrap
33803 msgid ""
33804 " Path \"/foo/bar\"\n"
33805 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
33806 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
33807 " Path \"/dev/sdb2\"    (* not a device *)\n"
33808 "\n"
33809 msgstr ""
33810
33811 #. type: textblock
33812 #: ../src/guestfs.pod:884
33813 msgid ""
33814 "As you can see there are still problems to resolve even with this "
33815 "representation.  Also consider how it might work in guestfish."
33816 msgstr ""
33817
33818 #. type: =head2
33819 #: ../src/guestfs.pod:889
33820 msgid "KEYS AND PASSPHRASES"
33821 msgstr ""
33822
33823 #. type: textblock
33824 #: ../src/guestfs.pod:891
33825 msgid ""
33826 "Certain libguestfs calls take a parameter that contains sensitive key "
33827 "material, passed in as a C string."
33828 msgstr ""
33829
33830 #. type: textblock
33831 #: ../src/guestfs.pod:894
33832 msgid ""
33833 "In the future we would hope to change the libguestfs implementation so that "
33834 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
33835 "swap.  However this is I<not> done at the moment, because of the complexity "
33836 "of such an implementation."
33837 msgstr ""
33838
33839 #. type: textblock
33840 #: ../src/guestfs.pod:899
33841 msgid ""
33842 "Therefore you should be aware that any key parameter you pass to libguestfs "
33843 "might end up being written out to the swap partition.  If this is a concern, "
33844 "scrub the swap partition or don't use libguestfs on encrypted devices."
33845 msgstr ""
33846
33847 #. type: =head2
33848 #: ../src/guestfs.pod:904
33849 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs.pod:906
33854 msgid ""
33855 "All high-level libguestfs actions are synchronous.  If you want to use "
33856 "libguestfs asynchronously then you must create a thread."
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs.pod:909
33861 msgid ""
33862 "Only use the handle from a single thread.  Either use the handle exclusively "
33863 "from one thread, or provide your own mutex so that two threads cannot issue "
33864 "calls on the same handle at the same time."
33865 msgstr ""
33866
33867 #. type: textblock
33868 #: ../src/guestfs.pod:913
33869 msgid ""
33870 "See the graphical program guestfs-browser for one possible architecture for "
33871 "multithreaded programs using libvirt and libguestfs."
33872 msgstr ""
33873
33874 #. type: =head2
33875 #: ../src/guestfs.pod:916
33876 msgid "PATH"
33877 msgstr ""
33878
33879 #. type: textblock
33880 #: ../src/guestfs.pod:918
33881 msgid ""
33882 "Libguestfs needs a supermin appliance, which it finds by looking along an "
33883 "internal path."
33884 msgstr ""
33885
33886 #. type: textblock
33887 #: ../src/guestfs.pod:921
33888 msgid ""
33889 "By default it looks for these in the directory C<$libdir/guestfs> "
33890 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
33891 msgstr ""
33892
33893 #. type: textblock
33894 #: ../src/guestfs.pod:924
33895 msgid ""
33896 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
33897 "to change the directories that libguestfs will search in.  The value is a "
33898 "colon-separated list of paths.  The current directory is I<not> searched "
33899 "unless the path contains an empty element or C<.>.  For example "
33900 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
33901 "then C</usr/lib/guestfs>."
33902 msgstr ""
33903
33904 #. type: =head2
33905 #: ../src/guestfs.pod:931
33906 msgid "QEMU WRAPPERS"
33907 msgstr ""
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:933
33911 msgid ""
33912 "If you want to compile your own qemu, run qemu from a non-standard location, "
33913 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
33914 "around qemu."
33915 msgstr ""
33916
33917 #. type: textblock
33918 #: ../src/guestfs.pod:937
33919 msgid ""
33920 "There is one important rule to remember: you I<must C<exec qemu>> as the "
33921 "last command in the shell script (so that qemu replaces the shell and "
33922 "becomes the direct child of the libguestfs-using program).  If you don't do "
33923 "this, then the qemu process won't be cleaned up correctly."
33924 msgstr ""
33925
33926 #. type: textblock
33927 #: ../src/guestfs.pod:942
33928 msgid ""
33929 "Here is an example of a wrapper, where I have built my own copy of qemu from "
33930 "source:"
33931 msgstr ""
33932
33933 #. type: verbatim
33934 #: ../src/guestfs.pod:945
33935 #, no-wrap
33936 msgid ""
33937 " #!/bin/sh -\n"
33938 " qemudir=/home/rjones/d/qemu\n"
33939 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
33940 "\"$@\"\n"
33941 "\n"
33942 msgstr ""
33943
33944 #. type: textblock
33945 #: ../src/guestfs.pod:949
33946 msgid ""
33947 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
33948 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
33949 "example:"
33950 msgstr ""
33951
33952 #. type: verbatim
33953 #: ../src/guestfs.pod:953
33954 #, no-wrap
33955 msgid ""
33956 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
33957 "\n"
33958 msgstr ""
33959
33960 #. type: textblock
33961 #: ../src/guestfs.pod:955
33962 msgid ""
33963 "Note that libguestfs also calls qemu with the -help and -version options in "
33964 "order to determine features."
33965 msgstr ""
33966
33967 #. type: textblock
33968 #: ../src/guestfs.pod:958
33969 msgid ""
33970 "Wrappers can also be used to edit the options passed to qemu.  In the "
33971 "following example, the C<-machine ...> option (C<-machine> and the following "
33972 "argument) are removed from the command line and replaced with C<-machine "
33973 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
33974 "right one to remove, putting the remaining options into the C<args> array."
33975 msgstr ""
33976
33977 #. type: verbatim
33978 #: ../src/guestfs.pod:967
33979 #, no-wrap
33980 msgid ""
33981 " i=0\n"
33982 " while [ $# -gt 0 ]; do\n"
33983 "     case \"$1\" in\n"
33984 "     -machine)\n"
33985 "         shift 2;;\n"
33986 "     *)\n"
33987 "         args[i]=\"$1\"\n"
33988 "         (( i++ ))\n"
33989 "         shift ;;\n"
33990 "     esac\n"
33991 " done\n"
33992 " \n"
33993 msgstr ""
33994
33995 #. type: verbatim
33996 #: ../src/guestfs.pod:979
33997 #, no-wrap
33998 msgid ""
33999 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
34000 "\n"
34001 msgstr ""
34002
34003 #. type: =head2
34004 #: ../src/guestfs.pod:981
34005 msgid "ATTACHING TO RUNNING DAEMONS"
34006 msgstr ""
34007
34008 #. type: textblock
34009 #: ../src/guestfs.pod:983
34010 msgid ""
34011 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34012 "babies.  Use with caution."
34013 msgstr ""
34014
34015 #. type: textblock
34016 #: ../src/guestfs.pod:986
34017 msgid ""
34018 "I<Note (2):> This section explains how to attach to a running daemon from a "
34019 "low level perspective.  For most users, simply using virt tools such as "
34020 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34021 msgstr ""
34022
34023 #. type: =head3
34024 #: ../src/guestfs.pod:990
34025 msgid "Using guestfs_set_attach_method"
34026 msgstr ""
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:992
34030 msgid ""
34031 "By calling L</guestfs_set_attach_method> you can change how the library "
34032 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
34033 "L</ARCHITECTURE> for some background)."
34034 msgstr ""
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:996
34038 msgid ""
34039 "The normal attach method is C<appliance>, where a small appliance is created "
34040 "containing the daemon, and then the library connects to this."
34041 msgstr ""
34042
34043 #. type: textblock
34044 #: ../src/guestfs.pod:999
34045 msgid ""
34046 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34047 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34048 "daemon over the Unix domain socket."
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:1003
34053 msgid ""
34054 "The normal use for this is to connect to a running virtual machine that "
34055 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34056 "files inside the live virtual machine."
34057 msgstr ""
34058
34059 #. type: =head3
34060 #: ../src/guestfs.pod:1007
34061 msgid "Using guestfs_add_domain with live flag"
34062 msgstr ""
34063
34064 #. type: textblock
34065 #: ../src/guestfs.pod:1009
34066 msgid ""
34067 "L</guestfs_add_domain> provides some help for getting the correct attach "
34068 "method.  If you pass the C<live> option to this function, then (if the "
34069 "virtual machine is running) it will examine the libvirt XML looking for a "
34070 "virtio-serial channel to connect to:"
34071 msgstr ""
34072
34073 #. type: verbatim
34074 #: ../src/guestfs.pod:1015
34075 #, no-wrap
34076 msgid ""
34077 " <domain>\n"
34078 "   ...\n"
34079 "   <devices>\n"
34080 "     ...\n"
34081 "     <channel type='unix'>\n"
34082 "       <source mode='bind' path='/path/to/socket'/>\n"
34083 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34084 "     </channel>\n"
34085 "     ...\n"
34086 "   </devices>\n"
34087 " </domain>\n"
34088 "\n"
34089 msgstr ""
34090
34091 #. type: textblock
34092 #: ../src/guestfs.pod:1027
34093 msgid ""
34094 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34095 "method to C<unix:/path/to/socket>."
34096 msgstr ""
34097
34098 #. type: textblock
34099 #: ../src/guestfs.pod:1030
34100 msgid ""
34101 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34102 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34103 "to attach to and modify live virtual machines."
34104 msgstr ""
34105
34106 #. type: textblock
34107 #: ../src/guestfs.pod:1034
34108 msgid ""
34109 "The virtual machine needs to have been set up beforehand so that it has the "
34110 "virtio-serial channel and so that guestfsd is running inside it."
34111 msgstr ""
34112
34113 #. type: =head2
34114 #: ../src/guestfs.pod:1038
34115 msgid "ABI GUARANTEE"
34116 msgstr ""
34117
34118 #. type: textblock
34119 #: ../src/guestfs.pod:1040
34120 msgid ""
34121 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34122 "actions as outlined in this section.  Although we will deprecate some "
34123 "actions, for example if they get replaced by newer calls, we will keep the "
34124 "old actions forever.  This allows you the developer to program in confidence "
34125 "against the libguestfs API."
34126 msgstr ""
34127
34128 #. type: =head2
34129 #: ../src/guestfs.pod:1046
34130 msgid "BLOCK DEVICE NAMING"
34131 msgstr ""
34132
34133 #. type: textblock
34134 #: ../src/guestfs.pod:1048
34135 msgid ""
34136 "In the kernel there is now quite a profusion of schemata for naming block "
34137 "devices (in this context, by I<block device> I mean a physical or virtual "
34138 "hard drive).  The original Linux IDE driver used names starting with "
34139 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
34140 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
34141 "replacement for the old IDE driver (particularly for SATA devices) those "
34142 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
34143 "machines with paravirtualized drivers.  This has created several different "
34144 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
34145 "Xen PV disks."
34146 msgstr ""
34147
34148 #. type: textblock
34149 #: ../src/guestfs.pod:1060
34150 msgid ""
34151 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34152 "Linux kernel to access block devices.  We can run a variety of appliances "
34153 "based on a variety of Linux kernels."
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs.pod:1064
34158 msgid ""
34159 "This causes a problem for libguestfs because many API calls use device or "
34160 "partition names.  Working scripts and the recipe (example) scripts that we "
34161 "make available over the internet could fail if the naming scheme changes."
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:1069
34166 msgid ""
34167 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34168 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34169 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34170 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34171 msgstr ""
34172
34173 #. type: textblock
34174 #: ../src/guestfs.pod:1075
34175 msgid ""
34176 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34177 "L</guestfs_list_partitions> and similar calls return the true names of the "
34178 "devices and partitions as known to the appliance."
34179 msgstr ""
34180
34181 #. type: =head3
34182 #: ../src/guestfs.pod:1080
34183 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34184 msgstr ""
34185
34186 #. type: textblock
34187 #: ../src/guestfs.pod:1082
34188 msgid ""
34189 "Usually this translation is transparent.  However in some (very rare)  cases "
34190 "you may need to know the exact algorithm.  Such cases include where you use "
34191 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
34192 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
34193 "devices."
34194 msgstr ""
34195
34196 #. type: textblock
34197 #: ../src/guestfs.pod:1088
34198 msgid ""
34199 "The algorithm is applied only to I<parameters> which are known to be either "
34200 "device or partition names.  Return values from functions such as "
34201 "L</guestfs_list_devices> are never changed."
34202 msgstr ""
34203
34204 #. type: textblock
34205 #: ../src/guestfs.pod:1096
34206 msgid "Is the string a parameter which is a device or partition name?"
34207 msgstr ""
34208
34209 #. type: textblock
34210 #: ../src/guestfs.pod:1100
34211 msgid "Does the string begin with C</dev/sd>?"
34212 msgstr ""
34213
34214 #. type: textblock
34215 #: ../src/guestfs.pod:1104
34216 msgid ""
34217 "Does the named device exist? If so, we use that device.  However if I<not> "
34218 "then we continue with this algorithm."
34219 msgstr ""
34220
34221 #. type: textblock
34222 #: ../src/guestfs.pod:1109
34223 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34224 msgstr ""
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:1111
34228 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:1113
34233 msgid "If that named device exists, use it.  If not, continue."
34234 msgstr ""
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:1117
34238 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs.pod:1119
34243 msgid "If that named device exists, use it.  If not, return an error."
34244 msgstr ""
34245
34246 #. type: =head3
34247 #: ../src/guestfs.pod:1123
34248 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34249 msgstr ""
34250
34251 #. type: textblock
34252 #: ../src/guestfs.pod:1125
34253 msgid ""
34254 "Although the standard naming scheme and automatic translation is useful for "
34255 "simple programs and guestfish scripts, for larger programs it is best not to "
34256 "rely on this mechanism."
34257 msgstr ""
34258
34259 #. type: textblock
34260 #: ../src/guestfs.pod:1129
34261 msgid ""
34262 "Where possible for maximum future portability programs using libguestfs "
34263 "should use these future-proof techniques:"
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:1136
34268 msgid ""
34269 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34270 "device names, and then use those names directly."
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:1139
34275 msgid "Since those device names exist by definition, they will never be translated."
34276 msgstr ""
34277
34278 #. type: textblock
34279 #: ../src/guestfs.pod:1144
34280 msgid ""
34281 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34282 "filesystem labels."
34283 msgstr ""
34284
34285 #. type: =head1
34286 #: ../src/guestfs.pod:1149
34287 msgid "SECURITY"
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:1151
34292 msgid ""
34293 "This section discusses security implications of using libguestfs, "
34294 "particularly with untrusted or malicious guests or disk images."
34295 msgstr ""
34296
34297 #. type: =head2
34298 #: ../src/guestfs.pod:1154
34299 msgid "GENERAL SECURITY CONSIDERATIONS"
34300 msgstr ""
34301
34302 #. type: textblock
34303 #: ../src/guestfs.pod:1156
34304 msgid ""
34305 "Be careful with any files or data that you download from a guest (by "
34306 "\"download\" we mean not just the L</guestfs_download> command but any "
34307 "command that reads files, filenames, directories or anything else from a "
34308 "disk image).  An attacker could manipulate the data to fool your program "
34309 "into doing the wrong thing.  Consider cases such as:"
34310 msgstr ""
34311
34312 #. type: textblock
34313 #: ../src/guestfs.pod:1166
34314 msgid "the data (file etc) not being present"
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:1170
34319 msgid "being present but empty"
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs.pod:1174
34324 msgid "being much larger than normal"
34325 msgstr ""
34326
34327 #. type: textblock
34328 #: ../src/guestfs.pod:1178
34329 msgid "containing arbitrary 8 bit data"
34330 msgstr ""
34331
34332 #. type: textblock
34333 #: ../src/guestfs.pod:1182
34334 msgid "being in an unexpected character encoding"
34335 msgstr ""
34336
34337 #. type: textblock
34338 #: ../src/guestfs.pod:1186
34339 msgid "containing homoglyphs."
34340 msgstr ""
34341
34342 #. type: =head2
34343 #: ../src/guestfs.pod:1190
34344 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34345 msgstr ""
34346
34347 #. type: textblock
34348 #: ../src/guestfs.pod:1192
34349 msgid ""
34350 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34351 "(VFS) module can sometimes be escalated into exploits by deliberately "
34352 "creating a malicious, malformed filesystem.  These exploits are very severe "
34353 "for two reasons.  Firstly there are very many filesystem drivers in the "
34354 "kernel, and many of them are infrequently used and not much developer "
34355 "attention has been paid to the code.  Linux userspace helps potential "
34356 "crackers by detecting the filesystem type and automatically choosing the "
34357 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34358 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34359 "exploit (worse in some ways), giving immediate and total access to the "
34360 "system right down to the hardware level."
34361 msgstr ""
34362
34363 #. type: textblock
34364 #: ../src/guestfs.pod:1205
34365 msgid ""
34366 "That explains why you should never mount a filesystem from an untrusted "
34367 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34368 "inside a qemu virtual machine, usually running as a non-root user.  The "
34369 "attacker would need to write a filesystem which first exploited the kernel, "
34370 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34371 "the libguestfs protocol, and finally to be as serious as the host kernel "
34372 "exploit it would need to escalate its privileges to root.  This multi-step "
34373 "escalation, performed by a static piece of data, is thought to be extremely "
34374 "hard to do, although we never say 'never' about security issues."
34375 msgstr ""
34376
34377 #. type: textblock
34378 #: ../src/guestfs.pod:1216
34379 msgid ""
34380 "In any case callers can reduce the attack surface by forcing the filesystem "
34381 "type when mounting (use L</guestfs_mount_vfs>)."
34382 msgstr ""
34383
34384 #. type: =head2
34385 #: ../src/guestfs.pod:1219
34386 msgid "PROTOCOL SECURITY"
34387 msgstr ""
34388
34389 #. type: textblock
34390 #: ../src/guestfs.pod:1221
34391 msgid ""
34392 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34393 "defined upper message size.  However a program that uses libguestfs must "
34394 "also take care - for example you can write a program that downloads a binary "
34395 "from a disk image and executes it locally, and no amount of protocol "
34396 "security will save you from the consequences."
34397 msgstr ""
34398
34399 #. type: =head2
34400 #: ../src/guestfs.pod:1227
34401 msgid "INSPECTION SECURITY"
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:1229
34406 msgid ""
34407 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34408 "directly from the guest, and these could contain any 8 bit data.  Callers "
34409 "should be careful to escape these before printing them to a structured file "
34410 "(for example, use HTML escaping if creating a web page)."
34411 msgstr ""
34412
34413 #. type: textblock
34414 #: ../src/guestfs.pod:1235
34415 msgid ""
34416 "Guest configuration may be altered in unusual ways by the administrator of "
34417 "the virtual machine, and may not reflect reality (particularly for untrusted "
34418 "or actively malicious guests).  For example we parse the hostname from "
34419 "configuration files like C</etc/sysconfig/network> that we find in the "
34420 "guest, but the guest administrator can easily manipulate these files to "
34421 "provide the wrong hostname."
34422 msgstr ""
34423
34424 #. type: textblock
34425 #: ../src/guestfs.pod:1243
34426 msgid ""
34427 "The inspection API parses guest configuration using two external libraries: "
34428 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34429 "designed to be robust in the face of malicious data, although denial of "
34430 "service attacks are still possible, for example with oversized configuration "
34431 "files."
34432 msgstr ""
34433
34434 #. type: =head2
34435 #: ../src/guestfs.pod:1249
34436 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34437 msgstr ""
34438
34439 #. type: textblock
34440 #: ../src/guestfs.pod:1251
34441 msgid ""
34442 "Be very cautious about running commands from the guest.  By running a "
34443 "command in the guest, you are giving CPU time to a binary that you do not "
34444 "control, under the same user account as the library, albeit wrapped in qemu "
34445 "virtualization.  More information and alternatives can be found in the "
34446 "section L</RUNNING COMMANDS>."
34447 msgstr ""
34448
34449 #. type: =head2
34450 #: ../src/guestfs.pod:1257
34451 msgid "CVE-2010-3851"
34452 msgstr ""
34453
34454 #. type: textblock
34455 #: ../src/guestfs.pod:1259
34456 msgid "https://bugzilla.redhat.com/642934"
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs.pod:1261
34461 msgid ""
34462 "This security bug concerns the automatic disk format detection that qemu "
34463 "does on disk images."
34464 msgstr ""
34465
34466 #. type: textblock
34467 #: ../src/guestfs.pod:1264
34468 msgid ""
34469 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34470 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34471 "for one of the known headers, and if none is found then assuming the disk "
34472 "image must be raw."
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:1269
34477 msgid ""
34478 "This allows a guest which has been given a raw disk image to write some "
34479 "other header.  At next boot (or when the disk image is accessed by "
34480 "libguestfs) qemu would do autodetection and think the disk image format was, "
34481 "say, qcow2 based on the header written by the guest."
34482 msgstr ""
34483
34484 #. type: textblock
34485 #: ../src/guestfs.pod:1274
34486 msgid ""
34487 "This in itself would not be a problem, but qcow2 offers many features, one "
34488 "of which is to allow a disk image to refer to another image (called the "
34489 "\"backing disk\").  It does this by placing the path to the backing disk "
34490 "into the qcow2 header.  This path is not validated and could point to any "
34491 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34492 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34493 "control of the attacker."
34494 msgstr ""
34495
34496 #. type: textblock
34497 #: ../src/guestfs.pod:1282
34498 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:1289
34503 msgid "You have enabled the network or have opened the disk in write mode."
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:1293
34508 msgid ""
34509 "You are also running untrusted code from the guest (see L</RUNNING "
34510 "COMMANDS>)."
34511 msgstr ""
34512
34513 #. type: textblock
34514 #: ../src/guestfs.pod:1298
34515 msgid ""
34516 "The way to avoid this is to specify the expected disk format when adding "
34517 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34518 "should always do this if the disk is raw format, and it's a good idea for "
34519 "other cases too."
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:1303
34524 msgid ""
34525 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34526 "format is fetched from libvirt and passed through."
34527 msgstr ""
34528
34529 #. type: textblock
34530 #: ../src/guestfs.pod:1306
34531 msgid ""
34532 "For libguestfs tools, use the I<--format> command line parameter as "
34533 "appropriate."
34534 msgstr ""
34535
34536 #. type: =head1
34537 #: ../src/guestfs.pod:1309
34538 msgid "CONNECTION MANAGEMENT"
34539 msgstr ""
34540
34541 #. type: =head2
34542 #: ../src/guestfs.pod:1311
34543 msgid "guestfs_h *"
34544 msgstr ""
34545
34546 #. type: textblock
34547 #: ../src/guestfs.pod:1313
34548 msgid ""
34549 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34550 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34551 "handle and release all resources used."
34552 msgstr ""
34553
34554 #. type: textblock
34555 #: ../src/guestfs.pod:1317
34556 msgid ""
34557 "For information on using multiple handles and threads, see the section "
34558 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34559 msgstr ""
34560
34561 #. type: =head2
34562 #: ../src/guestfs.pod:1320
34563 msgid "guestfs_create"
34564 msgstr ""
34565
34566 #. type: verbatim
34567 #: ../src/guestfs.pod:1322
34568 #, no-wrap
34569 msgid ""
34570 " guestfs_h *guestfs_create (void);\n"
34571 "\n"
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:1324
34576 msgid "Create a connection handle."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:1326
34581 msgid ""
34582 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34583 "NULL."
34584 msgstr ""
34585
34586 #. type: textblock
34587 #: ../src/guestfs.pod:1329
34588 msgid ""
34589 "You have to \"configure\" the handle after creating it.  This includes "
34590 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34591 "handle at least once."
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs.pod:1333
34596 msgid "After configuring the handle, you have to call L</guestfs_launch>."
34597 msgstr ""
34598
34599 #. type: textblock
34600 #: ../src/guestfs.pod:1335
34601 msgid ""
34602 "You may also want to configure error handling for the handle.  See the "
34603 "L</ERROR HANDLING> section below."
34604 msgstr ""
34605
34606 #. type: =head2
34607 #: ../src/guestfs.pod:1338
34608 msgid "guestfs_close"
34609 msgstr ""
34610
34611 #. type: verbatim
34612 #: ../src/guestfs.pod:1340
34613 #, no-wrap
34614 msgid ""
34615 " void guestfs_close (guestfs_h *g);\n"
34616 "\n"
34617 msgstr ""
34618
34619 #. type: textblock
34620 #: ../src/guestfs.pod:1342
34621 msgid "This closes the connection handle and frees up all resources used."
34622 msgstr ""
34623
34624 #. type: textblock
34625 #: ../src/guestfs.pod:1344
34626 msgid ""
34627 "If autosync was set on the handle and the handle was launched, then this "
34628 "implicitly calls various functions to unmount filesystems and sync the "
34629 "disk.  See L</guestfs_set_autosync> for more details."
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1348
34634 msgid "If a close callback was set on the handle, then it is called."
34635 msgstr ""
34636
34637 #. type: =head1
34638 #: ../src/guestfs.pod:1350
34639 msgid "ERROR HANDLING"
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1352
34644 msgid ""
34645 "API functions can return errors.  For example, almost all functions that "
34646 "return C<int> will return C<-1> to indicate an error."
34647 msgstr ""
34648
34649 #. type: textblock
34650 #: ../src/guestfs.pod:1355
34651 msgid ""
34652 "Additional information is available for errors: an error message string and "
34653 "optionally an error number (errno) if the thing that failed was a system "
34654 "call."
34655 msgstr ""
34656
34657 #. type: textblock
34658 #: ../src/guestfs.pod:1359
34659 msgid ""
34660 "You can get at the additional information about the last error on the handle "
34661 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
34662 "up an error handler with L</guestfs_set_error_handler>."
34663 msgstr ""
34664
34665 #. type: textblock
34666 #: ../src/guestfs.pod:1364
34667 msgid ""
34668 "When the handle is created, a default error handler is installed which "
34669 "prints the error message string to C<stderr>.  For small short-running "
34670 "command line programs it is sufficient to do:"
34671 msgstr ""
34672
34673 #. type: verbatim
34674 #: ../src/guestfs.pod:1368
34675 #, no-wrap
34676 msgid ""
34677 " if (guestfs_launch (g) == -1)\n"
34678 "   exit (EXIT_FAILURE);\n"
34679 "\n"
34680 msgstr ""
34681
34682 #. type: textblock
34683 #: ../src/guestfs.pod:1371
34684 msgid ""
34685 "since the default error handler will ensure that an error message has been "
34686 "printed to C<stderr> before the program exits."
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:1374
34691 msgid ""
34692 "For other programs the caller will almost certainly want to install an "
34693 "alternate error handler or do error handling in-line like this:"
34694 msgstr ""
34695
34696 #. type: verbatim
34697 #: ../src/guestfs.pod:1377
34698 #, no-wrap
34699 msgid ""
34700 " /* This disables the default behaviour of printing errors\n"
34701 "    on stderr. */\n"
34702 " guestfs_set_error_handler (g, NULL, NULL);\n"
34703 " \n"
34704 msgstr ""
34705
34706 #. type: verbatim
34707 #: ../src/guestfs.pod:1381
34708 #, no-wrap
34709 msgid ""
34710 " if (guestfs_launch (g) == -1) {\n"
34711 "   /* Examine the error message and print it etc. */\n"
34712 "   char *msg = guestfs_last_error (g);\n"
34713 "   int errnum = guestfs_last_errno (g);\n"
34714 "   fprintf (stderr, \"%s\", msg);\n"
34715 "   if (errnum != 0)\n"
34716 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
34717 "   fprintf (stderr, \"\\n\");\n"
34718 "   /* ... */\n"
34719 " }\n"
34720 "\n"
34721 msgstr ""
34722
34723 #. type: textblock
34724 #: ../src/guestfs.pod:1392
34725 msgid ""
34726 "Out of memory errors are handled differently.  The default action is to call "
34727 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
34728 "L</guestfs_set_out_of_memory_handler>."
34729 msgstr ""
34730
34731 #. type: textblock
34732 #: ../src/guestfs.pod:1396
34733 msgid ""
34734 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
34735 "because there is no handle if this happens there is no way to get additional "
34736 "error information.  However L</guestfs_create> is supposed to be a "
34737 "lightweight operation which can only fail because of insufficient memory (it "
34738 "returns NULL in this case)."
34739 msgstr ""
34740
34741 #. type: =head2
34742 #: ../src/guestfs.pod:1402
34743 msgid "guestfs_last_error"
34744 msgstr ""
34745
34746 #. type: verbatim
34747 #: ../src/guestfs.pod:1404
34748 #, no-wrap
34749 msgid ""
34750 " const char *guestfs_last_error (guestfs_h *g);\n"
34751 "\n"
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs.pod:1406
34756 msgid ""
34757 "This returns the last error message that happened on C<g>.  If there has not "
34758 "been an error since the handle was created, then this returns C<NULL>."
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:1410
34763 msgid ""
34764 "The lifetime of the returned string is until the next error occurs, or "
34765 "L</guestfs_close> is called."
34766 msgstr ""
34767
34768 #. type: =head2
34769 #: ../src/guestfs.pod:1413
34770 msgid "guestfs_last_errno"
34771 msgstr ""
34772
34773 #. type: verbatim
34774 #: ../src/guestfs.pod:1415
34775 #, no-wrap
34776 msgid ""
34777 " int guestfs_last_errno (guestfs_h *g);\n"
34778 "\n"
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:1417
34783 msgid "This returns the last error number (errno) that happened on C<g>."
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:1419
34788 msgid "If successful, an errno integer not equal to zero is returned."
34789 msgstr ""
34790
34791 #. type: textblock
34792 #: ../src/guestfs.pod:1421
34793 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:1428
34798 msgid "There has not been any error on the handle."
34799 msgstr ""
34800
34801 #. type: textblock
34802 #: ../src/guestfs.pod:1432
34803 msgid ""
34804 "There has been an error but the errno was meaningless.  This corresponds to "
34805 "the case where the error did not come from a failed system call, but for "
34806 "some other reason."
34807 msgstr ""
34808
34809 #. type: textblock
34810 #: ../src/guestfs.pod:1438
34811 msgid ""
34812 "There was an error from a failed system call, but for some reason the errno "
34813 "was not captured and returned.  This usually indicates a bug in libguestfs."
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs.pod:1444
34818 msgid ""
34819 "Libguestfs tries to convert the errno from inside the applicance into a "
34820 "corresponding errno for the caller (not entirely trivial: the appliance "
34821 "might be running a completely different operating system from the library "
34822 "and error numbers are not standardized across Un*xen).  If this could not be "
34823 "done, then the error is translated to C<EINVAL>.  In practice this should "
34824 "only happen in very rare circumstances."
34825 msgstr ""
34826
34827 #. type: =head2
34828 #: ../src/guestfs.pod:1452
34829 msgid "guestfs_set_error_handler"
34830 msgstr ""
34831
34832 #. type: verbatim
34833 #: ../src/guestfs.pod:1454
34834 #, no-wrap
34835 msgid ""
34836 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
34837 "                                           void *opaque,\n"
34838 "                                           const char *msg);\n"
34839 " void guestfs_set_error_handler (guestfs_h *g,\n"
34840 "                                 guestfs_error_handler_cb cb,\n"
34841 "                                 void *opaque);\n"
34842 "\n"
34843 msgstr ""
34844
34845 #. type: textblock
34846 #: ../src/guestfs.pod:1461
34847 msgid ""
34848 "The callback C<cb> will be called if there is an error.  The parameters "
34849 "passed to the callback are an opaque data pointer and the error message "
34850 "string."
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:1465
34855 msgid ""
34856 "C<errno> is not passed to the callback.  To get that the callback must call "
34857 "L</guestfs_last_errno>."
34858 msgstr ""
34859
34860 #. type: textblock
34861 #: ../src/guestfs.pod:1468
34862 msgid ""
34863 "Note that the message string C<msg> is freed as soon as the callback "
34864 "function returns, so if you want to stash it somewhere you must make your "
34865 "own copy."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:1472
34870 msgid "The default handler prints messages on C<stderr>."
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:1474
34875 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
34876 msgstr ""
34877
34878 #. type: =head2
34879 #: ../src/guestfs.pod:1476
34880 msgid "guestfs_get_error_handler"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs.pod:1478
34885 #, no-wrap
34886 msgid ""
34887 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
34888 "                                                     void **opaque_rtn);\n"
34889 "\n"
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:1481
34894 msgid "Returns the current error handler callback."
34895 msgstr ""
34896
34897 #. type: =head2
34898 #: ../src/guestfs.pod:1483
34899 msgid "guestfs_set_out_of_memory_handler"
34900 msgstr ""
34901
34902 #. type: verbatim
34903 #: ../src/guestfs.pod:1485
34904 #, no-wrap
34905 msgid ""
34906 " typedef void (*guestfs_abort_cb) (void);\n"
34907 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
34908 "                                         guestfs_abort_cb);\n"
34909 "\n"
34910 msgstr ""
34911
34912 #. type: textblock
34913 #: ../src/guestfs.pod:1489
34914 msgid ""
34915 "The callback C<cb> will be called if there is an out of memory situation.  "
34916 "I<Note this callback must not return>."
34917 msgstr ""
34918
34919 #. type: textblock
34920 #: ../src/guestfs.pod:1492
34921 msgid "The default is to call L<abort(3)>."
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:1494
34926 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
34927 msgstr ""
34928
34929 #. type: =head2
34930 #: ../src/guestfs.pod:1497
34931 msgid "guestfs_get_out_of_memory_handler"
34932 msgstr ""
34933
34934 #. type: verbatim
34935 #: ../src/guestfs.pod:1499
34936 #, no-wrap
34937 msgid ""
34938 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
34939 "\n"
34940 msgstr ""
34941
34942 #. type: textblock
34943 #: ../src/guestfs.pod:1501
34944 msgid "This returns the current out of memory handler."
34945 msgstr ""
34946
34947 #. type: =head1
34948 #: ../src/guestfs.pod:1503
34949 msgid "API CALLS"
34950 msgstr ""
34951
34952 #. type: =head1
34953 #: ../src/guestfs.pod:1507
34954 msgid "STRUCTURES"
34955 msgstr ""
34956
34957 #. type: textblock
34958 #: ../src/guestfs.pod:1509
34959 msgid "@STRUCTS@"
34960 msgstr ""
34961
34962 #. type: =head1
34963 #: ../src/guestfs.pod:1511
34964 msgid "AVAILABILITY"
34965 msgstr ""
34966
34967 #. type: =head2
34968 #: ../src/guestfs.pod:1513
34969 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
34970 msgstr ""
34971
34972 #. type: textblock
34973 #: ../src/guestfs.pod:1515
34974 msgid ""
34975 "Using L</guestfs_available> you can test availability of the following "
34976 "groups of functions.  This test queries the appliance to see if the "
34977 "appliance you are currently using supports the functionality."
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:1520
34982 msgid "@AVAILABILITY@"
34983 msgstr ""
34984
34985 #. type: =head2
34986 #: ../src/guestfs.pod:1522
34987 msgid "GUESTFISH supported COMMAND"
34988 msgstr ""
34989
34990 #. type: textblock
34991 #: ../src/guestfs.pod:1524
34992 msgid ""
34993 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
34994 "prints out the available groups and whether they are supported by this build "
34995 "of libguestfs.  Note however that you have to do C<run> first."
34996 msgstr ""
34997
34998 #. type: =head2
34999 #: ../src/guestfs.pod:1529
35000 msgid "SINGLE CALLS AT COMPILE TIME"
35001 msgstr ""
35002
35003 #. type: textblock
35004 #: ../src/guestfs.pod:1531
35005 msgid ""
35006 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35007 "function, such as:"
35008 msgstr ""
35009
35010 #. type: verbatim
35011 #: ../src/guestfs.pod:1534
35012 #, no-wrap
35013 msgid ""
35014 " #define LIBGUESTFS_HAVE_DD 1\n"
35015 "\n"
35016 msgstr ""
35017
35018 #. type: textblock
35019 #: ../src/guestfs.pod:1536
35020 msgid "if L</guestfs_dd> is available."
35021 msgstr ""
35022
35023 #. type: textblock
35024 #: ../src/guestfs.pod:1538
35025 msgid ""
35026 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35027 "function is available at compile time, we recommended using build tools such "
35028 "as autoconf or cmake.  For example in autotools you could use:"
35029 msgstr ""
35030
35031 #. type: verbatim
35032 #: ../src/guestfs.pod:1543
35033 #, no-wrap
35034 msgid ""
35035 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35036 " AC_CHECK_FUNCS([guestfs_dd])\n"
35037 "\n"
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:1546
35042 msgid ""
35043 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35044 "in your program."
35045 msgstr ""
35046
35047 #. type: =head2
35048 #: ../src/guestfs.pod:1549
35049 msgid "SINGLE CALLS AT RUN TIME"
35050 msgstr ""
35051
35052 #. type: textblock
35053 #: ../src/guestfs.pod:1551
35054 msgid ""
35055 "Testing at compile time doesn't guarantee that a function really exists in "
35056 "the library.  The reason is that you might be dynamically linked against a "
35057 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35058 "This situation unfortunately results in a segmentation fault, which is a "
35059 "shortcoming of the C dynamic linking system itself."
35060 msgstr ""
35061
35062 #. type: textblock
35063 #: ../src/guestfs.pod:1558
35064 msgid ""
35065 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35066 "in this example program (note that you still need the compile time check as "
35067 "well):"
35068 msgstr ""
35069
35070 #. type: verbatim
35071 #: ../src/guestfs.pod:1562
35072 #, no-wrap
35073 msgid ""
35074 " #include <stdio.h>\n"
35075 " #include <stdlib.h>\n"
35076 " #include <unistd.h>\n"
35077 " #include <dlfcn.h>\n"
35078 " #include <guestfs.h>\n"
35079 " \n"
35080 msgstr ""
35081
35082 #. type: verbatim
35083 #: ../src/guestfs.pod:1568
35084 #, no-wrap
35085 msgid ""
35086 " main ()\n"
35087 " {\n"
35088 " #ifdef LIBGUESTFS_HAVE_DD\n"
35089 "   void *dl;\n"
35090 "   int has_function;\n"
35091 " \n"
35092 msgstr ""
35093
35094 #. type: verbatim
35095 #: ../src/guestfs.pod:1574
35096 #, no-wrap
35097 msgid ""
35098 "   /* Test if the function guestfs_dd is really available. */\n"
35099 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35100 "   if (!dl) {\n"
35101 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35102 "     exit (EXIT_FAILURE);\n"
35103 "   }\n"
35104 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35105 "   dlclose (dl);\n"
35106 " \n"
35107 msgstr ""
35108
35109 #. type: verbatim
35110 #: ../src/guestfs.pod:1583
35111 #, no-wrap
35112 msgid ""
35113 "   if (!has_function)\n"
35114 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35115 "   else {\n"
35116 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35117 "     /* Now it's safe to call\n"
35118 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35119 "     */\n"
35120 "   }\n"
35121 " #else\n"
35122 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35123 " #endif\n"
35124 "  }\n"
35125 "\n"
35126 msgstr ""
35127
35128 #. type: textblock
35129 #: ../src/guestfs.pod:1596
35130 msgid ""
35131 "You may think the above is an awful lot of hassle, and it is.  There are "
35132 "other ways outside of the C linking system to ensure that this kind of "
35133 "incompatibility never arises, such as using package versioning:"
35134 msgstr ""
35135
35136 #. type: verbatim
35137 #: ../src/guestfs.pod:1601
35138 #, no-wrap
35139 msgid ""
35140 " Requires: libguestfs >= 1.0.80\n"
35141 "\n"
35142 msgstr ""
35143
35144 #. type: =head1
35145 #: ../src/guestfs.pod:1603
35146 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35147 msgstr ""
35148
35149 #. type: textblock
35150 #: ../src/guestfs.pod:1605
35151 msgid ""
35152 "A recent feature of the API is the introduction of calls which take optional "
35153 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35154 "takes variable arguments (ie. C<...>), as in this example:"
35155 msgstr ""
35156
35157 #. type: verbatim
35158 #: ../src/guestfs.pod:1610
35159 #, no-wrap
35160 msgid ""
35161 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35162 "\n"
35163 msgstr ""
35164
35165 #. type: textblock
35166 #: ../src/guestfs.pod:1612
35167 msgid ""
35168 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35169 "call with no optional arguments specified:"
35170 msgstr ""
35171
35172 #. type: verbatim
35173 #: ../src/guestfs.pod:1615
35174 #, no-wrap
35175 msgid ""
35176 " guestfs_add_drive_opts (g, filename, -1);\n"
35177 "\n"
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:1617
35182 msgid "With a single optional argument:"
35183 msgstr ""
35184
35185 #. type: verbatim
35186 #: ../src/guestfs.pod:1619
35187 #, no-wrap
35188 msgid ""
35189 " guestfs_add_drive_opts (g, filename,\n"
35190 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35191 "                         -1);\n"
35192 "\n"
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:1623
35197 msgid "With two:"
35198 msgstr ""
35199
35200 #. type: verbatim
35201 #: ../src/guestfs.pod:1625
35202 #, no-wrap
35203 msgid ""
35204 " guestfs_add_drive_opts (g, filename,\n"
35205 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35206 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35207 "                         -1);\n"
35208 "\n"
35209 msgstr ""
35210
35211 #. type: textblock
35212 #: ../src/guestfs.pod:1630
35213 msgid ""
35214 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35215 "happen!"
35216 msgstr ""
35217
35218 #. type: =head2
35219 #: ../src/guestfs.pod:1633
35220 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35221 msgstr ""
35222
35223 #. type: textblock
35224 #: ../src/guestfs.pod:1635
35225 msgid ""
35226 "The second variant has the same name with the suffix C<_va>, which works the "
35227 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35228 "example function, this is declared:"
35229 msgstr ""
35230
35231 #. type: verbatim
35232 #: ../src/guestfs.pod:1639
35233 #, no-wrap
35234 msgid ""
35235 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35236 "                                va_list args);\n"
35237 "\n"
35238 msgstr ""
35239
35240 #. type: =head2
35241 #: ../src/guestfs.pod:1642
35242 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35243 msgstr ""
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:1644
35247 msgid ""
35248 "The third variant is useful where you need to construct these calls.  You "
35249 "pass in a structure where you fill in the optional fields.  The structure "
35250 "has a bitmask as the first element which you must set to indicate which "
35251 "fields you have filled in.  For our example function the structure and call "
35252 "are declared:"
35253 msgstr ""
35254
35255 #. type: verbatim
35256 #: ../src/guestfs.pod:1650
35257 #, no-wrap
35258 msgid ""
35259 " struct guestfs_add_drive_opts_argv {\n"
35260 "   uint64_t bitmask;\n"
35261 "   int readonly;\n"
35262 "   const char *format;\n"
35263 "   /* ... */\n"
35264 " };\n"
35265 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35266 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35267 "\n"
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:1659
35272 msgid "You could call it like this:"
35273 msgstr ""
35274
35275 #. type: verbatim
35276 #: ../src/guestfs.pod:1661
35277 #, no-wrap
35278 msgid ""
35279 " struct guestfs_add_drive_opts_argv optargs = {\n"
35280 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35281 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35282 "   .readonly = 1,\n"
35283 "   .format = \"qcow2\"\n"
35284 " };\n"
35285 " \n"
35286 msgstr ""
35287
35288 #. type: verbatim
35289 #: ../src/guestfs.pod:1668
35290 #, no-wrap
35291 msgid ""
35292 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35293 "\n"
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:1676
35298 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35299 msgstr ""
35300
35301 #. type: textblock
35302 #: ../src/guestfs.pod:1681
35303 msgid "You do not need to fill in all fields of the structure."
35304 msgstr ""
35305
35306 #. type: textblock
35307 #: ../src/guestfs.pod:1685
35308 msgid ""
35309 "There must be a one-to-one correspondence between fields of the structure "
35310 "that are filled in, and bits set in the bitmask."
35311 msgstr ""
35312
35313 #. type: =head2
35314 #: ../src/guestfs.pod:1690
35315 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1692
35320 msgid ""
35321 "In other languages, optional arguments are expressed in the way that is "
35322 "natural for that language.  We refer you to the language-specific "
35323 "documentation for more details on that."
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs.pod:1696
35328 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35329 msgstr ""
35330
35331 #. type: =head2
35332 #: ../src/guestfs.pod:1698
35333 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:1700
35338 msgid ""
35339 "B<Note:> This section documents the generic event mechanism introduced in "
35340 "libguestfs 1.10, which you should use in new code if possible.  The old "
35341 "functions C<guestfs_set_log_message_callback>, "
35342 "C<guestfs_set_subprocess_quit_callback>, "
35343 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35344 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35345 "page.  Because of the ABI guarantee, the old functions continue to work."
35346 msgstr ""
35347
35348 #. type: textblock
35349 #: ../src/guestfs.pod:1709
35350 msgid ""
35351 "Handles generate events when certain things happen, such as log messages "
35352 "being generated, progress messages during long-running operations, or the "
35353 "handle being closed.  The API calls described below let you register a "
35354 "callback to be called when events happen.  You can register multiple "
35355 "callbacks (for the same, different or overlapping sets of events), and "
35356 "individually remove callbacks.  If callbacks are not removed, then they "
35357 "remain in force until the handle is closed."
35358 msgstr ""
35359
35360 #. type: textblock
35361 #: ../src/guestfs.pod:1717
35362 msgid ""
35363 "In the current implementation, events are only generated synchronously: that "
35364 "means that events (and hence callbacks) can only happen while you are in the "
35365 "middle of making another libguestfs call.  The callback is called in the "
35366 "same thread."
35367 msgstr ""
35368
35369 #. type: textblock
35370 #: ../src/guestfs.pod:1722
35371 msgid ""
35372 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35373 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35374 msgstr ""
35375
35376 #. type: =head3
35377 #: ../src/guestfs.pod:1726
35378 msgid "CLASSES OF EVENTS"
35379 msgstr ""
35380
35381 #. type: =item
35382 #: ../src/guestfs.pod:1730
35383 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35384 msgstr ""
35385
35386 #. type: textblock
35387 #: ../src/guestfs.pod:1733
35388 msgid ""
35389 "The callback function will be called while the handle is being closed "
35390 "(synchronously from L</guestfs_close>)."
35391 msgstr ""
35392
35393 #. type: textblock
35394 #: ../src/guestfs.pod:1736
35395 msgid ""
35396 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35397 "handles that are open when the program exits.  This means that this callback "
35398 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35399 "problems in higher-level languages (eg. if your HLL interpreter has already "
35400 "been cleaned up by the time this is called, and if your callback then jumps "
35401 "into some HLL function)."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:1743
35406 msgid ""
35407 "If no callback is registered: the handle is closed without any callback "
35408 "being invoked."
35409 msgstr ""
35410
35411 #. type: =item
35412 #: ../src/guestfs.pod:1746
35413 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35414 msgstr ""
35415
35416 #. type: textblock
35417 #: ../src/guestfs.pod:1749
35418 msgid ""
35419 "The callback function will be called when the child process quits, either "
35420 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35421 "corresponds to a transition from any state to the CONFIG state)."
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
35426 msgid "If no callback is registered: the event is ignored."
35427 msgstr ""
35428
35429 #. type: =item
35430 #: ../src/guestfs.pod:1755
35431 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:1758
35436 msgid ""
35437 "The callback function will be called when the child process becomes ready "
35438 "first time after it has been launched.  (This corresponds to a transition "
35439 "from LAUNCHING to the READY state)."
35440 msgstr ""
35441
35442 #. type: =item
35443 #: ../src/guestfs.pod:1764
35444 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35445 msgstr ""
35446
35447 #. type: textblock
35448 #: ../src/guestfs.pod:1767
35449 msgid ""
35450 "Some long-running operations can generate progress messages.  If this "
35451 "callback is registered, then it will be called each time a progress message "
35452 "is generated (usually two seconds after the operation started, and three "
35453 "times per second thereafter until it completes, although the frequency may "
35454 "change in future versions)."
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:1773
35459 msgid ""
35460 "The callback receives in the payload four unsigned 64 bit numbers which are "
35461 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35462 msgstr ""
35463
35464 #. type: textblock
35465 #: ../src/guestfs.pod:1776
35466 msgid ""
35467 "The units of C<total> are not defined, although for some operations C<total> "
35468 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35469 "or megabytes), and C<position> may be the portion which has been "
35470 "transferred."
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:1781
35475 msgid "The only defined and stable parts of the API are:"
35476 msgstr ""
35477
35478 #. type: textblock
35479 #: ../src/guestfs.pod:1787
35480 msgid ""
35481 "The callback can display to the user some type of progress bar or indicator "
35482 "which shows the ratio of C<position>:C<total>."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:1792
35487 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:1796
35492 msgid ""
35493 "If any progress notification is sent during a call, then a final progress "
35494 "notification is always sent when C<position> = C<total> (I<unless> the call "
35495 "fails with an error)."
35496 msgstr ""
35497
35498 #. type: textblock
35499 #: ../src/guestfs.pod:1800
35500 msgid ""
35501 "This is to simplify caller code, so callers can easily set the progress "
35502 "indicator to \"100%\" at the end of the operation, without requiring special "
35503 "code to detect this case."
35504 msgstr ""
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:1806
35508 msgid ""
35509 "For some calls we are unable to estimate the progress of the call, but we "
35510 "can still generate progress messages to indicate activity.  This is known as "
35511 "\"pulse mode\", and is directly supported by certain progress bar "
35512 "implementations (eg. GtkProgressBar)."
35513 msgstr ""
35514
35515 #. type: textblock
35516 #: ../src/guestfs.pod:1811
35517 msgid ""
35518 "For these calls, zero or more progress messages are generated with "
35519 "C<position = 0> and C<total = 1>, followed by a final message with "
35520 "C<position = total = 1>."
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:1815
35525 msgid ""
35526 "As noted above, if the call fails with an error then the final message may "
35527 "not be generated."
35528 msgstr ""
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:1820
35532 msgid ""
35533 "The callback also receives the procedure number (C<proc_nr>) and serial "
35534 "number (C<serial>) of the call.  These are only useful for debugging "
35535 "protocol issues, and the callback can normally ignore them.  The callback "
35536 "may want to print these numbers in error messages or debugging messages."
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:1826
35541 msgid "If no callback is registered: progress messages are discarded."
35542 msgstr ""
35543
35544 #. type: =item
35545 #: ../src/guestfs.pod:1828
35546 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:1831
35551 msgid ""
35552 "The callback function is called whenever a log message is generated by qemu, "
35553 "the appliance kernel, guestfsd (daemon), or utility programs."
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:1834
35558 msgid ""
35559 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
35560 "(L</guestfs_launch>) then additional debug messages are generated."
35561 msgstr ""
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
35565 msgid ""
35566 "If no callback is registered: the messages are discarded unless the verbose "
35567 "flag is set in which case they are sent to stderr.  You can override the "
35568 "printing of verbose messages to stderr by setting up a callback."
35569 msgstr ""
35570
35571 #. type: =item
35572 #: ../src/guestfs.pod:1842
35573 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
35574 msgstr ""
35575
35576 #. type: textblock
35577 #: ../src/guestfs.pod:1845
35578 msgid ""
35579 "The callback function is called whenever a log message is generated by the "
35580 "library part of libguestfs."
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:1848
35585 msgid ""
35586 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
35587 "messages are generated."
35588 msgstr ""
35589
35590 #. type: =item
35591 #: ../src/guestfs.pod:1856
35592 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
35593 msgstr ""
35594
35595 #. type: textblock
35596 #: ../src/guestfs.pod:1859
35597 msgid ""
35598 "The callback function is called whenever a trace message is generated.  This "
35599 "only applies if the trace flag (L</guestfs_set_trace>) is set."
35600 msgstr ""
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:1862
35604 msgid ""
35605 "If no callback is registered: the messages are sent to stderr.  You can "
35606 "override the printing of trace messages to stderr by setting up a callback."
35607 msgstr ""
35608
35609 #. type: =item
35610 #: ../src/guestfs.pod:1866
35611 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
35612 msgstr ""
35613
35614 #. type: textblock
35615 #: ../src/guestfs.pod:1869
35616 msgid "The callback function is called whenever a libguestfs function is entered."
35617 msgstr ""
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:1872
35621 msgid ""
35622 "The payload is a string which contains the name of the function that we are "
35623 "entering (not including C<guestfs_> prefix)."
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:1875
35628 msgid ""
35629 "Note that libguestfs functions can call themselves, so you may see many "
35630 "events from a single call.  A few libguestfs functions do not generate this "
35631 "event."
35632 msgstr ""
35633
35634 #. type: =head3
35635 #: ../src/guestfs.pod:1883
35636 msgid "guestfs_set_event_callback"
35637 msgstr ""
35638
35639 #. type: verbatim
35640 #: ../src/guestfs.pod:1885
35641 #, no-wrap
35642 msgid ""
35643 " int guestfs_set_event_callback (guestfs_h *g,\n"
35644 "                                 guestfs_event_callback cb,\n"
35645 "                                 uint64_t event_bitmask,\n"
35646 "                                 int flags,\n"
35647 "                                 void *opaque);\n"
35648 "\n"
35649 msgstr ""
35650
35651 #. type: textblock
35652 #: ../src/guestfs.pod:1891
35653 msgid ""
35654 "This function registers a callback (C<cb>) for all event classes in the "
35655 "C<event_bitmask>."
35656 msgstr ""
35657
35658 #. type: textblock
35659 #: ../src/guestfs.pod:1894
35660 msgid ""
35661 "For example, to register for all log message events, you could call this "
35662 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
35663 "To register a single callback for all possible classes of events, use "
35664 "C<GUESTFS_EVENT_ALL>."
35665 msgstr ""
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:1900
35669 msgid "C<flags> should always be passed as 0."
35670 msgstr ""
35671
35672 #. type: textblock
35673 #: ../src/guestfs.pod:1902
35674 msgid ""
35675 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
35676 "it for any purpose."
35677 msgstr ""
35678
35679 #. type: textblock
35680 #: ../src/guestfs.pod:1905
35681 msgid ""
35682 "The return value is the event handle (an integer) which you can use to "
35683 "delete the callback (see below)."
35684 msgstr ""
35685
35686 #. type: textblock
35687 #: ../src/guestfs.pod:1908
35688 msgid ""
35689 "If there is an error, this function returns C<-1>, and sets the error in the "
35690 "handle in the usual way (see L</guestfs_last_error> etc.)"
35691 msgstr ""
35692
35693 #. type: textblock
35694 #: ../src/guestfs.pod:1911
35695 msgid ""
35696 "Callbacks remain in effect until they are deleted, or until the handle is "
35697 "closed."
35698 msgstr ""
35699
35700 #. type: textblock
35701 #: ../src/guestfs.pod:1914
35702 msgid ""
35703 "In the case where multiple callbacks are registered for a particular event "
35704 "class, all of the callbacks are called.  The order in which multiple "
35705 "callbacks are called is not defined."
35706 msgstr ""
35707
35708 #. type: =head3
35709 #: ../src/guestfs.pod:1918
35710 msgid "guestfs_delete_event_callback"
35711 msgstr ""
35712
35713 #. type: verbatim
35714 #: ../src/guestfs.pod:1920
35715 #, no-wrap
35716 msgid ""
35717 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
35718 "\n"
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:1922
35723 msgid ""
35724 "Delete a callback that was previously registered.  C<event_handle> should be "
35725 "the integer that was returned by a previous call to "
35726 "C<guestfs_set_event_callback> on the same handle."
35727 msgstr ""
35728
35729 #. type: =head3
35730 #: ../src/guestfs.pod:1926
35731 msgid "guestfs_event_callback"
35732 msgstr ""
35733
35734 #. type: verbatim
35735 #: ../src/guestfs.pod:1928
35736 #, no-wrap
35737 msgid ""
35738 " typedef void (*guestfs_event_callback) (\n"
35739 "                  guestfs_h *g,\n"
35740 "                  void *opaque,\n"
35741 "                  uint64_t event,\n"
35742 "                  int event_handle,\n"
35743 "                  int flags,\n"
35744 "                  const char *buf, size_t buf_len,\n"
35745 "                  const uint64_t *array, size_t array_len);\n"
35746 "\n"
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:1937
35751 msgid "This is the type of the event callback function that you have to provide."
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:1940
35756 msgid ""
35757 "The basic parameters are: the handle (C<g>), the opaque user pointer "
35758 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
35759 "handle, and C<flags> which in the current API you should ignore."
35760 msgstr ""
35761
35762 #. type: textblock
35763 #: ../src/guestfs.pod:1944
35764 msgid ""
35765 "The remaining parameters contain the event payload (if any).  Each event may "
35766 "contain a payload, which usually relates to the event class, but for future "
35767 "proofing your code should be written to handle any payload for any event "
35768 "class."
35769 msgstr ""
35770
35771 #. type: textblock
35772 #: ../src/guestfs.pod:1949
35773 msgid ""
35774 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
35775 "there is no message buffer).  Note that this message buffer can contain "
35776 "arbitrary 8 bit data, including NUL bytes."
35777 msgstr ""
35778
35779 #. type: textblock
35780 #: ../src/guestfs.pod:1953
35781 msgid ""
35782 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
35783 "moment this is only used for progress messages."
35784 msgstr ""
35785
35786 #. type: =head3
35787 #: ../src/guestfs.pod:1956
35788 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
35789 msgstr ""
35790
35791 #. type: textblock
35792 #: ../src/guestfs.pod:1958
35793 msgid ""
35794 "One motivation for the generic event API was to allow GUI programs to "
35795 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
35796 "unconditionally to C<stderr>."
35797 msgstr ""
35798
35799 #. type: textblock
35800 #: ../src/guestfs.pod:1962
35801 msgid ""
35802 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
35803 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
35804 "messages are not events; you must capture error messages separately)."
35805 msgstr ""
35806
35807 #. type: textblock
35808 #: ../src/guestfs.pod:1967
35809 msgid ""
35810 "Programs have to set up a callback to capture the classes of events of "
35811 "interest:"
35812 msgstr ""
35813
35814 #. type: verbatim
35815 #: ../src/guestfs.pod:1970
35816 #, no-wrap
35817 msgid ""
35818 " int eh =\n"
35819 "   guestfs_set_event_callback\n"
35820 "     (g, message_callback,\n"
35821 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
35822 "      GUESTFS_EVENT_TRACE,\n"
35823 "      0, NULL) == -1)\n"
35824 " if (eh == -1) {\n"
35825 "   // handle error in the usual way\n"
35826 " }\n"
35827 "\n"
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:1980
35832 msgid ""
35833 "The callback can then direct messages to the appropriate place.  In this "
35834 "example, messages are directed to syslog:"
35835 msgstr ""
35836
35837 #. type: verbatim
35838 #: ../src/guestfs.pod:1983
35839 #, no-wrap
35840 msgid ""
35841 " static void\n"
35842 " message_callback (\n"
35843 "         guestfs_h *g,\n"
35844 "         void *opaque,\n"
35845 "         uint64_t event,\n"
35846 "         int event_handle,\n"
35847 "         int flags,\n"
35848 "         const char *buf, size_t buf_len,\n"
35849 "         const uint64_t *array, size_t array_len)\n"
35850 " {\n"
35851 "   const int priority = LOG_USER|LOG_INFO;\n"
35852 "   if (buf_len > 0)\n"
35853 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
35854 " }\n"
35855 "\n"
35856 msgstr ""
35857
35858 #. type: =head1
35859 #: ../src/guestfs.pod:1998
35860 msgid "CANCELLING LONG TRANSFERS"
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:2000
35865 msgid ""
35866 "Some operations can be cancelled by the caller while they are in progress.  "
35867 "Currently only operations that involve uploading or downloading data can be "
35868 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
35869 "parameters in the generator)."
35870 msgstr ""
35871
35872 #. type: =head2
35873 #: ../src/guestfs.pod:2005
35874 msgid "guestfs_user_cancel"
35875 msgstr ""
35876
35877 #. type: verbatim
35878 #: ../src/guestfs.pod:2007
35879 #, no-wrap
35880 msgid ""
35881 " void guestfs_user_cancel (guestfs_h *g);\n"
35882 "\n"
35883 msgstr ""
35884
35885 #. type: textblock
35886 #: ../src/guestfs.pod:2009
35887 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:2012
35892 msgid ""
35893 "Unlike most other libguestfs calls, this function is signal safe and thread "
35894 "safe.  You can call it from a signal handler or from another thread, without "
35895 "needing to do any locking."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:2016
35900 msgid ""
35901 "The transfer that was in progress (if there is one) will stop shortly "
35902 "afterwards, and will return an error.  The errno (see "
35903 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
35904 "out if the operation was cancelled or failed because of another error."
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:2022
35909 msgid ""
35910 "No cleanup is performed: for example, if a file was being uploaded then "
35911 "after cancellation there may be a partially uploaded file.  It is the "
35912 "caller's responsibility to clean up if necessary."
35913 msgstr ""
35914
35915 #. type: textblock
35916 #: ../src/guestfs.pod:2026
35917 msgid "There are two common places that you might call C<guestfs_user_cancel>."
35918 msgstr ""
35919
35920 #. type: textblock
35921 #: ../src/guestfs.pod:2028
35922 msgid ""
35923 "In an interactive text-based program, you might call it from a C<SIGINT> "
35924 "signal handler so that pressing C<^C> cancels the current operation.  (You "
35925 "also need to call L</guestfs_set_pgroup> so that child processes don't "
35926 "receive the C<^C> signal)."
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:2033
35931 msgid ""
35932 "In a graphical program, when the main thread is displaying a progress bar "
35933 "with a cancel button, wire up the cancel button to call this function."
35934 msgstr ""
35935
35936 #. type: =head1
35937 #: ../src/guestfs.pod:2037
35938 msgid "PRIVATE DATA AREA"
35939 msgstr ""
35940
35941 #. type: textblock
35942 #: ../src/guestfs.pod:2039
35943 msgid ""
35944 "You can attach named pieces of private data to the libguestfs handle, fetch "
35945 "them by name, and walk over them, for the lifetime of the handle.  This is "
35946 "called the private data area and is only available from the C API."
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:2044
35951 msgid "To attach a named piece of data, use the following call:"
35952 msgstr ""
35953
35954 #. type: verbatim
35955 #: ../src/guestfs.pod:2046
35956 #, no-wrap
35957 msgid ""
35958 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
35959 "\n"
35960 msgstr ""
35961
35962 #. type: textblock
35963 #: ../src/guestfs.pod:2048
35964 msgid ""
35965 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
35966 "pointer (which can be C<NULL>).  Any previous item with the same key is "
35967 "overwritten."
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:2052
35972 msgid ""
35973 "You can use any C<key> you want, but your key should I<not> start with an "
35974 "underscore character.  Keys beginning with an underscore character are "
35975 "reserved for internal libguestfs purposes (eg. for implementing language "
35976 "bindings).  It is recommended that you prefix the key with some unique "
35977 "string to avoid collisions with other users."
35978 msgstr ""
35979
35980 #. type: textblock
35981 #: ../src/guestfs.pod:2058
35982 msgid "To retrieve the pointer, use:"
35983 msgstr ""
35984
35985 #. type: verbatim
35986 #: ../src/guestfs.pod:2060
35987 #, no-wrap
35988 msgid ""
35989 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
35990 "\n"
35991 msgstr ""
35992
35993 #. type: textblock
35994 #: ../src/guestfs.pod:2062
35995 msgid ""
35996 "This function returns C<NULL> if either no data is found associated with "
35997 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
35998 "C<NULL>."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:2066
36003 msgid ""
36004 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36005 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36006 "all.  In particular, libguestfs does I<not> try to free the data when the "
36007 "handle is closed.  If the data must be freed, then the caller must either "
36008 "free it before calling L</guestfs_close> or must set up a close callback to "
36009 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36010 msgstr ""
36011
36012 #. type: textblock
36013 #: ../src/guestfs.pod:2073
36014 msgid "To walk over all entries, use these two functions:"
36015 msgstr ""
36016
36017 #. type: verbatim
36018 #: ../src/guestfs.pod:2075
36019 #, no-wrap
36020 msgid ""
36021 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36022 "\n"
36023 msgstr ""
36024
36025 #. type: verbatim
36026 #: ../src/guestfs.pod:2077
36027 #, no-wrap
36028 msgid ""
36029 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36030 "\n"
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:2079
36035 msgid ""
36036 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36037 "not have any particular meaning -- keys are not returned in any defined "
36038 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36039 "corresponding data pointer is returned from the function.  C<NULL> is "
36040 "returned if there are no keys stored in the handle."
36041 msgstr ""
36042
36043 #. type: textblock
36044 #: ../src/guestfs.pod:2085
36045 msgid ""
36046 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36047 "value of this function is also C<NULL> is there are no further entries to "
36048 "return."
36049 msgstr ""
36050
36051 #. type: textblock
36052 #: ../src/guestfs.pod:2089
36053 msgid "Notes about walking over entries:"
36054 msgstr ""
36055
36056 #. type: textblock
36057 #: ../src/guestfs.pod:2095
36058 msgid "You must not call C<guestfs_set_private> while walking over the entries."
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:2100
36063 msgid ""
36064 "The handle maintains an internal iterator which is reset when you call "
36065 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36066 "call C<guestfs_set_private>."
36067 msgstr ""
36068
36069 #. type: textblock
36070 #: ../src/guestfs.pod:2106
36071 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36072 msgstr ""
36073
36074 #. type: verbatim
36075 #: ../src/guestfs.pod:2108
36076 #, no-wrap
36077 msgid ""
36078 " guestfs_set_private (g, key, NULL);\n"
36079 "\n"
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:2110
36084 msgid "then that C<key> is not returned when walking."
36085 msgstr ""
36086
36087 #. type: textblock
36088 #: ../src/guestfs.pod:2114
36089 msgid ""
36090 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36091 "C<guestfs_next_private> or C<guestfs_set_private>."
36092 msgstr ""
36093
36094 #. type: textblock
36095 #: ../src/guestfs.pod:2120
36096 msgid ""
36097 "The following example code shows how to print all keys and data pointers "
36098 "that are associated with the handle C<g>:"
36099 msgstr ""
36100
36101 #. type: verbatim
36102 #: ../src/guestfs.pod:2123
36103 #, no-wrap
36104 msgid ""
36105 " const char *key;\n"
36106 " void *data = guestfs_first_private (g, &key);\n"
36107 " while (data != NULL)\n"
36108 "   {\n"
36109 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36110 "     data = guestfs_next_private (g, &key);\n"
36111 "   }\n"
36112 "\n"
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:2131
36117 msgid ""
36118 "More commonly you are only interested in keys that begin with an "
36119 "application-specific prefix C<foo_>.  Modify the loop like so:"
36120 msgstr ""
36121
36122 #. type: verbatim
36123 #: ../src/guestfs.pod:2134
36124 #, no-wrap
36125 msgid ""
36126 " const char *key;\n"
36127 " void *data = guestfs_first_private (g, &key);\n"
36128 " while (data != NULL)\n"
36129 "   {\n"
36130 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36131 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36132 "     data = guestfs_next_private (g, &key);\n"
36133 "   }\n"
36134 "\n"
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:2143
36139 msgid ""
36140 "If you need to modify keys while walking, then you have to jump back to the "
36141 "beginning of the loop.  For example, to delete all keys prefixed with "
36142 "C<foo_>:"
36143 msgstr ""
36144
36145 #. type: verbatim
36146 #: ../src/guestfs.pod:2147
36147 #, no-wrap
36148 msgid ""
36149 "  const char *key;\n"
36150 "  void *data;\n"
36151 " again:\n"
36152 "  data = guestfs_first_private (g, &key);\n"
36153 "  while (data != NULL)\n"
36154 "    {\n"
36155 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36156 "        {\n"
36157 "          guestfs_set_private (g, key, NULL);\n"
36158 "          /* note that 'key' pointer is now invalid, and so is\n"
36159 "             the internal iterator */\n"
36160 "          goto again;\n"
36161 "        }\n"
36162 "      data = guestfs_next_private (g, &key);\n"
36163 "    }\n"
36164 "\n"
36165 msgstr ""
36166
36167 #. type: textblock
36168 #: ../src/guestfs.pod:2163
36169 msgid ""
36170 "Note that the above loop is guaranteed to terminate because the keys are "
36171 "being deleted, but other manipulations of keys within the loop might not "
36172 "terminate unless you also maintain an indication of which keys have been "
36173 "visited."
36174 msgstr ""
36175
36176 #. type: =head1
36177 #: ../src/guestfs.pod:2168
36178 msgid "SYSTEMTAP"
36179 msgstr ""
36180
36181 #. type: textblock
36182 #: ../src/guestfs.pod:2170
36183 msgid ""
36184 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
36185 "true of any library, not just libguestfs.  However libguestfs also contains "
36186 "static markers to help in probing internal operations."
36187 msgstr ""
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:2174
36191 msgid "You can list all the static markers by doing:"
36192 msgstr ""
36193
36194 #. type: verbatim
36195 #: ../src/guestfs.pod:2176
36196 #, no-wrap
36197 msgid ""
36198 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
36199 "              .provider(\"guestfs\").mark(\"*\")'\n"
36200 "\n"
36201 msgstr ""
36202
36203 #. type: textblock
36204 #: ../src/guestfs.pod:2179
36205 msgid ""
36206 "B<Note:> These static markers are I<not> part of the stable API and may "
36207 "change in future versions."
36208 msgstr ""
36209
36210 #. type: =head2
36211 #: ../src/guestfs.pod:2182
36212 msgid "SYSTEMTAP SCRIPT EXAMPLE"
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:2184
36217 msgid ""
36218 "This script contains examples of displaying both the static markers and some "
36219 "ordinary C entry points:"
36220 msgstr ""
36221
36222 #. type: verbatim
36223 #: ../src/guestfs.pod:2187
36224 #, no-wrap
36225 msgid ""
36226 " global last;\n"
36227 " \n"
36228 msgstr ""
36229
36230 #. type: verbatim
36231 #: ../src/guestfs.pod:2189
36232 #, no-wrap
36233 msgid ""
36234 " function display_time () {\n"
36235 "       now = gettimeofday_us ();\n"
36236 "       delta = 0;\n"
36237 "       if (last > 0)\n"
36238 "             delta = now - last;\n"
36239 "       last = now;\n"
36240 " \n"
36241 msgstr ""
36242
36243 #. type: verbatim
36244 #: ../src/guestfs.pod:2196
36245 #, no-wrap
36246 msgid ""
36247 "       printf (\"%d (+%d):\", now, delta);\n"
36248 " }\n"
36249 " \n"
36250 msgstr ""
36251
36252 #. type: verbatim
36253 #: ../src/guestfs.pod:2199
36254 #, no-wrap
36255 msgid ""
36256 " probe begin {\n"
36257 "       last = 0;\n"
36258 "       printf (\"ready\\n\");\n"
36259 " }\n"
36260 " \n"
36261 msgstr ""
36262
36263 #. type: verbatim
36264 #: ../src/guestfs.pod:2204
36265 #, no-wrap
36266 msgid ""
36267 " /* Display all calls to static markers. */\n"
36268 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36269 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
36270 "       display_time();\n"
36271 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
36272 " }\n"
36273 " \n"
36274 msgstr ""
36275
36276 #. type: verbatim
36277 #: ../src/guestfs.pod:2211
36278 #, no-wrap
36279 msgid ""
36280 " /* Display all calls to guestfs_mkfs* functions. */\n"
36281 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
36282 "           .function(\"guestfs_mkfs*\") ? {\n"
36283 "       display_time();\n"
36284 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
36285 " }\n"
36286 "\n"
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:2218
36291 msgid ""
36292 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
36293 "program.  Note that you either have to be root, or you have to add yourself "
36294 "to several special stap groups.  Consult the systemtap documentation for "
36295 "more information."
36296 msgstr ""
36297
36298 #. type: verbatim
36299 #: ../src/guestfs.pod:2223
36300 #, no-wrap
36301 msgid ""
36302 " # stap /tmp/test.stap\n"
36303 " ready\n"
36304 "\n"
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:2226
36309 msgid "In another terminal, run a guestfish command such as this:"
36310 msgstr ""
36311
36312 #. type: textblock
36313 #: ../src/guestfs.pod:2230
36314 msgid "In the first terminal, stap trace output similar to this is shown:"
36315 msgstr ""
36316
36317 #. type: verbatim
36318 #: ../src/guestfs.pod:2232
36319 #, no-wrap
36320 msgid ""
36321 " 1318248056692655 (+0):\tlaunch_start\n"
36322 " 1318248056692850 (+195):       launch_build_appliance_start\n"
36323 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
36324 " 1318248056838059 (+19774):     launch_run_qemu\n"
36325 " 1318248061071167 (+4233108):   launch_end\n"
36326 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f "
36327 "device=0x1024e60\n"
36328 "\n"
36329 msgstr ""
36330
36331 #. type: =end
36332 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
36333 msgid "html"
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:2241
36338 msgid ""
36339 "<!-- old anchor for the next section --> <a "
36340 "name=\"state_machine_and_low_level_event_api\"/>"
36341 msgstr ""
36342
36343 #. type: =head1
36344 #: ../src/guestfs.pod:2246
36345 msgid "ARCHITECTURE"
36346 msgstr ""
36347
36348 #. type: textblock
36349 #: ../src/guestfs.pod:2248
36350 msgid ""
36351 "Internally, libguestfs is implemented by running an appliance (a special "
36352 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36353 "process of the main program."
36354 msgstr ""
36355
36356 #. type: verbatim
36357 #: ../src/guestfs.pod:2252
36358 #, no-wrap
36359 msgid ""
36360 "  ___________________\n"
36361 " /                   \\\n"
36362 " | main program      |\n"
36363 " |                   |\n"
36364 " |                   |           child process / appliance\n"
36365 " |                   |           __________________________\n"
36366 " |                   |          / qemu                     \\\n"
36367 " +-------------------+   RPC    |      +-----------------+ |\n"
36368 " | libguestfs     <--------------------> guestfsd        | |\n"
36369 " |                   |          |      +-----------------+ |\n"
36370 " \\___________________/          |      | Linux kernel    | |\n"
36371 "                                |      +--^--------------+ |\n"
36372 "                                \\_________|________________/\n"
36373 "                                          |\n"
36374 "                                   _______v______\n"
36375 "                                  /              \\\n"
36376 "                                  | Device or    |\n"
36377 "                                  | disk image   |\n"
36378 "                                  \\______________/\n"
36379 "\n"
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../src/guestfs.pod:2272
36384 msgid ""
36385 "The library, linked to the main program, creates the child process and hence "
36386 "the appliance in the L</guestfs_launch> function."
36387 msgstr ""
36388
36389 #. type: textblock
36390 #: ../src/guestfs.pod:2275
36391 msgid ""
36392 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36393 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36394 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36395 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36396 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36397 "attached to the qemu process which translates device access by the "
36398 "appliance's Linux kernel into accesses to the image."
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:2284
36403 msgid ""
36404 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36405 "Although the disk image you are attached to might also be used by some "
36406 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36407 "care if both libguestfs's qemu process and your virtual machine are trying "
36408 "to update the disk image at the same time, since these usually results in "
36409 "massive disk corruption)."
36410 msgstr ""
36411
36412 #. type: =head1
36413 #: ../src/guestfs.pod:2291
36414 msgid "STATE MACHINE"
36415 msgstr ""
36416
36417 #. type: textblock
36418 #: ../src/guestfs.pod:2293
36419 msgid "libguestfs uses a state machine to model the child process:"
36420 msgstr ""
36421
36422 #. type: verbatim
36423 #: ../src/guestfs.pod:2295
36424 #, no-wrap
36425 msgid ""
36426 "                         |\n"
36427 "                    guestfs_create\n"
36428 "                         |\n"
36429 "                         |\n"
36430 "                     ____V_____\n"
36431 "                    /          \\\n"
36432 "                    |  CONFIG  |\n"
36433 "                    \\__________/\n"
36434 "                     ^ ^   ^  \\\n"
36435 "                    /  |    \\  \\ guestfs_launch\n"
36436 "                   /   |    _\\__V______\n"
36437 "                  /    |   /           \\\n"
36438 "                 /     |   | LAUNCHING |\n"
36439 "                /      |   \\___________/\n"
36440 "               /       |       /\n"
36441 "              /        |  guestfs_launch\n"
36442 "             /         |     /\n"
36443 "    ______  /        __|____V\n"
36444 "   /      \\ ------> /        \\\n"
36445 "   | BUSY |         | READY  |\n"
36446 "   \\______/ <------ \\________/\n"
36447 "\n"
36448 msgstr ""
36449
36450 #. type: textblock
36451 #: ../src/guestfs.pod:2317
36452 msgid ""
36453 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36454 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36455 "(3) alternating between READY and BUSY as commands are issued to, and "
36456 "carried out by, the child process."
36457 msgstr ""
36458
36459 #. type: textblock
36460 #: ../src/guestfs.pod:2322
36461 msgid ""
36462 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36463 "asynchronously at any time (eg. due to some internal error), and that causes "
36464 "the state to transition back to CONFIG."
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../src/guestfs.pod:2326
36469 msgid ""
36470 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36471 "issued when in the CONFIG state."
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../src/guestfs.pod:2329
36476 msgid ""
36477 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36478 "L</guestfs_launch> blocks until the child process is READY to accept "
36479 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36480 "moves the state from CONFIG to LAUNCHING while it is running."
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:2335
36485 msgid ""
36486 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36487 "state.  These API calls block waiting for the command to be carried out "
36488 "(ie. the state to transition to BUSY and then back to READY).  There are no "
36489 "non-blocking versions, and no way to issue more than one command per handle "
36490 "at the same time."
36491 msgstr ""
36492
36493 #. type: textblock
36494 #: ../src/guestfs.pod:2341
36495 msgid ""
36496 "Finally, the child process sends asynchronous messages back to the main "
36497 "program, such as kernel log messages.  You can register a callback to "
36498 "receive these messages."
36499 msgstr ""
36500
36501 #. type: =head1
36502 #: ../src/guestfs.pod:2345
36503 msgid "INTERNALS"
36504 msgstr ""
36505
36506 #. type: =head2
36507 #: ../src/guestfs.pod:2347
36508 msgid "APPLIANCE BOOT PROCESS"
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:2349
36513 msgid ""
36514 "This process has evolved and continues to evolve.  The description here "
36515 "corresponds only to the current version of libguestfs and is provided for "
36516 "information only."
36517 msgstr ""
36518
36519 #. type: textblock
36520 #: ../src/guestfs.pod:2353
36521 msgid ""
36522 "In order to follow the stages involved below, enable libguestfs debugging "
36523 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
36524 msgstr ""
36525
36526 #. type: =item
36527 #: ../src/guestfs.pod:2358
36528 msgid "Create the appliance"
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:2360
36533 msgid ""
36534 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
36535 "initrd and the appliance."
36536 msgstr ""
36537
36538 #. type: textblock
36539 #: ../src/guestfs.pod:2363
36540 msgid ""
36541 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
36542 "directory if C<TMPDIR> is set)."
36543 msgstr ""
36544
36545 #. type: textblock
36546 #: ../src/guestfs.pod:2366
36547 msgid ""
36548 "For a complete description of how the appliance is created and cached, read "
36549 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
36550 msgstr ""
36551
36552 #. type: =item
36553 #: ../src/guestfs.pod:2370
36554 msgid "Start qemu and boot the kernel"
36555 msgstr ""
36556
36557 #. type: textblock
36558 #: ../src/guestfs.pod:2372
36559 msgid "qemu is invoked to boot the kernel."
36560 msgstr ""
36561
36562 #. type: =item
36563 #: ../src/guestfs.pod:2374
36564 msgid "Run the initrd"
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:2376
36569 msgid ""
36570 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
36571 "appliance.  The purpose of the initrd is to load enough kernel modules in "
36572 "order that the appliance itself can be mounted and started."
36573 msgstr ""
36574
36575 #. type: textblock
36576 #: ../src/guestfs.pod:2380
36577 msgid ""
36578 "The initrd is a cpio archive called "
36579 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
36580 msgstr ""
36581
36582 #. type: textblock
36583 #: ../src/guestfs.pod:2383
36584 msgid ""
36585 "When the initrd has started you will see messages showing that kernel "
36586 "modules are being loaded, similar to this:"
36587 msgstr ""
36588
36589 #. type: verbatim
36590 #: ../src/guestfs.pod:2386
36591 #, no-wrap
36592 msgid ""
36593 " febootstrap: ext2 mini initrd starting up\n"
36594 " febootstrap: mounting /sys\n"
36595 " febootstrap: internal insmod libcrc32c.ko\n"
36596 " febootstrap: internal insmod crc32c-intel.ko\n"
36597 "\n"
36598 msgstr ""
36599
36600 #. type: =item
36601 #: ../src/guestfs.pod:2391
36602 msgid "Find and mount the appliance device"
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../src/guestfs.pod:2393
36607 msgid ""
36608 "The appliance is a sparse file containing an ext2 filesystem which contains "
36609 "a familiar (although reduced in size) Linux operating system.  It would "
36610 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
36611 msgstr ""
36612
36613 #. type: textblock
36614 #: ../src/guestfs.pod:2397
36615 msgid ""
36616 "The regular disks being inspected by libguestfs are the first devices "
36617 "exposed by qemu (eg. as C</dev/vda>)."
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:2400
36622 msgid ""
36623 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
36624 "there was only one regular disk)."
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:2403
36629 msgid ""
36630 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
36631 "and switch root into the appliance, and run C</init> from the appliance."
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:2407
36636 msgid "If this works successfully you will see messages such as:"
36637 msgstr ""
36638
36639 #. type: verbatim
36640 #: ../src/guestfs.pod:2409
36641 #, no-wrap
36642 msgid ""
36643 " febootstrap: picked /sys/block/vdb/dev as root device\n"
36644 " febootstrap: creating /dev/root as block special 252:16\n"
36645 " febootstrap: mounting new root on /root\n"
36646 " febootstrap: chroot\n"
36647 " Starting /init script ...\n"
36648 "\n"
36649 msgstr ""
36650
36651 #. type: textblock
36652 #: ../src/guestfs.pod:2415
36653 msgid ""
36654 "Note that C<Starting /init script ...> indicates that the appliance's init "
36655 "script is now running."
36656 msgstr ""
36657
36658 #. type: =item
36659 #: ../src/guestfs.pod:2418
36660 msgid "Initialize the appliance"
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../src/guestfs.pod:2420
36665 msgid ""
36666 "The appliance itself now initializes itself.  This involves starting certain "
36667 "processes like C<udev>, possibly printing some debug information, and "
36668 "finally running the daemon (C<guestfsd>)."
36669 msgstr ""
36670
36671 #. type: =item
36672 #: ../src/guestfs.pod:2424
36673 msgid "The daemon"
36674 msgstr ""
36675
36676 #. type: textblock
36677 #: ../src/guestfs.pod:2426
36678 msgid ""
36679 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
36680 "should see:"
36681 msgstr ""
36682
36683 #. type: verbatim
36684 #: ../src/guestfs.pod:2429
36685 #, no-wrap
36686 msgid ""
36687 " verbose daemon enabled\n"
36688 "\n"
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:2431
36693 msgid ""
36694 "The daemon expects to see a named virtio-serial port exposed by qemu and "
36695 "connected on the other end to the library."
36696 msgstr ""
36697
36698 #. type: textblock
36699 #: ../src/guestfs.pod:2434
36700 msgid ""
36701 "The daemon connects to this port (and hence to the library) and sends a four "
36702 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
36703 "protocol (see below)."
36704 msgstr ""
36705
36706 #. type: =head2
36707 #: ../src/guestfs.pod:2440
36708 msgid "COMMUNICATION PROTOCOL"
36709 msgstr ""
36710
36711 #. type: textblock
36712 #: ../src/guestfs.pod:2442
36713 msgid ""
36714 "Don't rely on using this protocol directly.  This section documents how it "
36715 "currently works, but it may change at any time."
36716 msgstr ""
36717
36718 #. type: textblock
36719 #: ../src/guestfs.pod:2445
36720 msgid ""
36721 "The protocol used to talk between the library and the daemon running inside "
36722 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36723 "1014, RFC 1832, RFC 4506)."
36724 msgstr ""
36725
36726 #. type: textblock
36727 #: ../src/guestfs.pod:2449
36728 msgid ""
36729 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36730 "this file is automatically generated)."
36731 msgstr ""
36732
36733 #. type: textblock
36734 #: ../src/guestfs.pod:2452
36735 msgid ""
36736 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36737 "and C<FileOut> parameters, which are handled with very simple request/reply "
36738 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36739 "parameters, which use the same request and reply messages, but they may also "
36740 "be followed by files sent using a chunked encoding."
36741 msgstr ""
36742
36743 #. type: =head3
36744 #: ../src/guestfs.pod:2459
36745 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../src/guestfs.pod:2461
36750 msgid "For ordinary functions, the request message is:"
36751 msgstr ""
36752
36753 #. type: verbatim
36754 #: ../src/guestfs.pod:2463
36755 #, no-wrap
36756 msgid ""
36757 " total length (header + arguments,\n"
36758 "      but not including the length word itself)\n"
36759 " struct guestfs_message_header (encoded as XDR)\n"
36760 " struct guestfs_<foo>_args (encoded as XDR)\n"
36761 "\n"
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../src/guestfs.pod:2468
36766 msgid ""
36767 "The total length field allows the daemon to allocate a fixed size buffer "
36768 "into which it slurps the rest of the message.  As a result, the total length "
36769 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36770 "effective size of any request is limited to somewhere under this size."
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../src/guestfs.pod:2474
36775 msgid ""
36776 "Note also that many functions don't take any arguments, in which case the "
36777 "C<guestfs_I<foo>_args> is completely omitted."
36778 msgstr ""
36779
36780 #. type: textblock
36781 #: ../src/guestfs.pod:2477
36782 msgid ""
36783 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36784 "receiver knows what type of args structure to expect, or none at all."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:2481
36789 msgid ""
36790 "For functions that take optional arguments, the optional arguments are "
36791 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36792 "arguments.  A bitmask in the header indicates which optional arguments are "
36793 "meaningful.  The bitmask is also checked to see if it contains bits set "
36794 "which the daemon does not know about (eg. if more optional arguments were "
36795 "added in a later version of the library), and this causes the call to be "
36796 "rejected."
36797 msgstr ""
36798
36799 #. type: textblock
36800 #: ../src/guestfs.pod:2489
36801 msgid "The reply message for ordinary functions is:"
36802 msgstr ""
36803
36804 #. type: verbatim
36805 #: ../src/guestfs.pod:2491
36806 #, no-wrap
36807 msgid ""
36808 " total length (header + ret,\n"
36809 "      but not including the length word itself)\n"
36810 " struct guestfs_message_header (encoded as XDR)\n"
36811 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36812 "\n"
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:2496
36817 msgid ""
36818 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36819 "functions that return no formal return values."
36820 msgstr ""
36821
36822 #. type: textblock
36823 #: ../src/guestfs.pod:2499
36824 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36825 msgstr ""
36826
36827 #. type: textblock
36828 #: ../src/guestfs.pod:2502
36829 msgid ""
36830 "In the case of an error, a flag is set in the header, and the reply message "
36831 "is slightly changed:"
36832 msgstr ""
36833
36834 #. type: verbatim
36835 #: ../src/guestfs.pod:2505
36836 #, no-wrap
36837 msgid ""
36838 " total length (header + error,\n"
36839 "      but not including the length word itself)\n"
36840 " struct guestfs_message_header (encoded as XDR)\n"
36841 " struct guestfs_message_error (encoded as XDR)\n"
36842 "\n"
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:2510
36847 msgid ""
36848 "The C<guestfs_message_error> structure contains the error message as a "
36849 "string."
36850 msgstr ""
36851
36852 #. type: =head3
36853 #: ../src/guestfs.pod:2513
36854 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:2515
36859 msgid ""
36860 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
36861 "The normal request message is sent (see above).  However this is followed by "
36862 "a sequence of file chunks."
36863 msgstr ""
36864
36865 #. type: verbatim
36866 #: ../src/guestfs.pod:2519
36867 #, no-wrap
36868 msgid ""
36869 " total length (header + arguments,\n"
36870 "      but not including the length word itself,\n"
36871 "      and not including the chunks)\n"
36872 " struct guestfs_message_header (encoded as XDR)\n"
36873 " struct guestfs_<foo>_args (encoded as XDR)\n"
36874 " sequence of chunks for FileIn param #0\n"
36875 " sequence of chunks for FileIn param #1 etc.\n"
36876 "\n"
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:2527
36881 msgid "The \"sequence of chunks\" is:"
36882 msgstr ""
36883
36884 #. type: verbatim
36885 #: ../src/guestfs.pod:2529
36886 #, no-wrap
36887 msgid ""
36888 " length of chunk (not including length word itself)\n"
36889 " struct guestfs_chunk (encoded as XDR)\n"
36890 " length of chunk\n"
36891 " struct guestfs_chunk (encoded as XDR)\n"
36892 "   ...\n"
36893 " length of chunk\n"
36894 " struct guestfs_chunk (with data.data_len == 0)\n"
36895 "\n"
36896 msgstr ""
36897
36898 #. type: textblock
36899 #: ../src/guestfs.pod:2537
36900 msgid ""
36901 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
36902 "is set in the final chunk to indicate either successful completion or early "
36903 "cancellation."
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:2541
36908 msgid ""
36909 "At time of writing there are no functions that have more than one FileIn "
36910 "parameter.  However this is (theoretically) supported, by sending the "
36911 "sequence of chunks for each FileIn parameter one after another (from left to "
36912 "right)."
36913 msgstr ""
36914
36915 #. type: textblock
36916 #: ../src/guestfs.pod:2546
36917 msgid ""
36918 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
36919 "transfer.  The library does this by sending a chunk with a special flag set "
36920 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
36921 "RPC, does I<not> send any reply, and goes back to reading the next request."
36922 msgstr ""
36923
36924 #. type: textblock
36925 #: ../src/guestfs.pod:2552
36926 msgid ""
36927 "The daemon may also cancel.  It does this by writing a special word "
36928 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
36929 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
36930 "cancel chunk).  The special word is chosen so that even if cancellation "
36931 "happens right at the end of the transfer (after the library has finished "
36932 "writing and has started listening for the reply), the \"spurious\" cancel "
36933 "flag will not be confused with the reply message."
36934 msgstr ""
36935
36936 #. type: textblock
36937 #: ../src/guestfs.pod:2561
36938 msgid ""
36939 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
36940 "limit), and also files where the size is not known in advance (eg. from "
36941 "pipes or sockets).  However the chunks are rather small "
36942 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
36943 "to keep much in memory."
36944 msgstr ""
36945
36946 #. type: =head3
36947 #: ../src/guestfs.pod:2567
36948 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../src/guestfs.pod:2569
36953 msgid ""
36954 "The protocol for FileOut parameters is exactly the same as for FileIn "
36955 "parameters, but with the roles of daemon and library reversed."
36956 msgstr ""
36957
36958 #. type: verbatim
36959 #: ../src/guestfs.pod:2572
36960 #, no-wrap
36961 msgid ""
36962 " total length (header + ret,\n"
36963 "      but not including the length word itself,\n"
36964 "      and not including the chunks)\n"
36965 " struct guestfs_message_header (encoded as XDR)\n"
36966 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36967 " sequence of chunks for FileOut param #0\n"
36968 " sequence of chunks for FileOut param #1 etc.\n"
36969 "\n"
36970 msgstr ""
36971
36972 #. type: =head3
36973 #: ../src/guestfs.pod:2580
36974 msgid "INITIAL MESSAGE"
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:2582
36979 msgid ""
36980 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
36981 "which indicates that the guest and daemon is alive.  This is what "
36982 "L</guestfs_launch> waits for."
36983 msgstr ""
36984
36985 #. type: =head3
36986 #: ../src/guestfs.pod:2586
36987 msgid "PROGRESS NOTIFICATION MESSAGES"
36988 msgstr ""
36989
36990 #. type: textblock
36991 #: ../src/guestfs.pod:2588
36992 msgid ""
36993 "The daemon may send progress notification messages at any time.  These are "
36994 "distinguished by the normal length word being replaced by "
36995 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:2592
37000 msgid ""
37001 "The library turns them into progress callbacks (see "
37002 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
37003 "them if not."
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:2596
37008 msgid ""
37009 "The daemon self-limits the frequency of progress messages it sends (see "
37010 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37011 "messages."
37012 msgstr ""
37013
37014 #. type: =head1
37015 #: ../src/guestfs.pod:2600
37016 msgid "LIBGUESTFS VERSION NUMBERS"
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:2602
37021 msgid ""
37022 "Since April 2010, libguestfs has started to make separate development and "
37023 "stable releases, along with corresponding branches in our git repository.  "
37024 "These separate releases can be identified by version number:"
37025 msgstr ""
37026
37027 #. type: verbatim
37028 #: ../src/guestfs.pod:2607
37029 #, no-wrap
37030 msgid ""
37031 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37032 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37033 "       |\n"
37034 "       v\n"
37035 " 1  .  3  .  5\n"
37036 " ^           ^\n"
37037 " |           |\n"
37038 " |           `-------- sub-version\n"
37039 " |\n"
37040 " `------ always '1' because we don't change the ABI\n"
37041 "\n"
37042 msgstr ""
37043
37044 #. type: textblock
37045 #: ../src/guestfs.pod:2618
37046 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37047 msgstr ""
37048
37049 #. type: textblock
37050 #: ../src/guestfs.pod:2620
37051 msgid ""
37052 "As time passes we cherry pick fixes from the development branch and backport "
37053 "those into the stable branch, the effect being that the stable branch should "
37054 "get more stable and less buggy over time.  So the stable releases are ideal "
37055 "for people who don't need new features but would just like the software to "
37056 "work."
37057 msgstr ""
37058
37059 #. type: textblock
37060 #: ../src/guestfs.pod:2626
37061 msgid "Our criteria for backporting changes are:"
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../src/guestfs.pod:2632
37066 msgid ""
37067 "Documentation changes which don't affect any code are backported unless the "
37068 "documentation refers to a future feature which is not in stable."
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../src/guestfs.pod:2638
37073 msgid ""
37074 "Bug fixes which are not controversial, fix obvious problems, and have been "
37075 "well tested are backported."
37076 msgstr ""
37077
37078 #. type: textblock
37079 #: ../src/guestfs.pod:2643
37080 msgid ""
37081 "Simple rearrangements of code which shouldn't affect how it works get "
37082 "backported.  This is so that the code in the two branches doesn't get too "
37083 "far out of step, allowing us to backport future fixes more easily."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:2649
37088 msgid ""
37089 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37090 "exceptional case: the new feature is required in order to implement an "
37091 "important bug fix."
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:2655
37096 msgid ""
37097 "A new stable branch starts when we think the new features in development are "
37098 "substantial and compelling enough over the current stable branch to warrant "
37099 "it.  When that happens we create new stable and development versions 1.N.0 "
37100 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37101 "stable at this point, but by backporting fixes from development, that branch "
37102 "will stabilize over time."
37103 msgstr ""
37104
37105 #. type: =head1
37106 #: ../src/guestfs.pod:2663
37107 msgid "EXTENDING LIBGUESTFS"
37108 msgstr ""
37109
37110 #. type: =head2
37111 #: ../src/guestfs.pod:2665
37112 msgid "ADDING A NEW API ACTION"
37113 msgstr ""
37114
37115 #. type: textblock
37116 #: ../src/guestfs.pod:2667
37117 msgid ""
37118 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37119 "documentation) are generated, and this makes it easy to extend the "
37120 "libguestfs API."
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:2671
37125 msgid "To add a new API action there are two changes:"
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:2677
37130 msgid ""
37131 "You need to add a description of the call (name, parameters, return type, "
37132 "tests, documentation) to C<generator/generator_actions.ml>."
37133 msgstr ""
37134
37135 #. type: textblock
37136 #: ../src/guestfs.pod:2680
37137 msgid ""
37138 "There are two sorts of API action, depending on whether the call goes "
37139 "through to the daemon in the appliance, or is serviced entirely by the "
37140 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37141 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37142 "an example of the latter, since a trace flag is maintained in the handle and "
37143 "all tracing is done on the library side."
37144 msgstr ""
37145
37146 #. type: textblock
37147 #: ../src/guestfs.pod:2688
37148 msgid ""
37149 "Most new actions are of the first type, and get added to the "
37150 "C<daemon_functions> list.  Each function has a unique procedure number used "
37151 "in the RPC protocol which is assigned to that action when we publish "
37152 "libguestfs and cannot be reused.  Take the latest procedure number and "
37153 "increment it."
37154 msgstr ""
37155
37156 #. type: textblock
37157 #: ../src/guestfs.pod:2694
37158 msgid ""
37159 "For library-only actions of the second type, add to the "
37160 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37161 "library and do not travel over the RPC mechanism to the daemon, these "
37162 "functions do not need a procedure number, and so the procedure number is set "
37163 "to C<-1>."
37164 msgstr ""
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:2702
37168 msgid "Implement the action (in C):"
37169 msgstr ""
37170
37171 #. type: textblock
37172 #: ../src/guestfs.pod:2704
37173 msgid ""
37174 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37175 "C<daemon/> directory."
37176 msgstr ""
37177
37178 #. type: textblock
37179 #: ../src/guestfs.pod:2707
37180 msgid ""
37181 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37182 "(note: double underscore) in the C<src/> directory."
37183 msgstr ""
37184
37185 #. type: textblock
37186 #: ../src/guestfs.pod:2710
37187 msgid "In either case, use another function as an example of what to do."
37188 msgstr ""
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:2714
37192 msgid "After making these changes, use C<make> to compile."
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:2716
37197 msgid ""
37198 "Note that you don't need to implement the RPC, language bindings, manual "
37199 "pages or anything else.  It's all automatically generated from the OCaml "
37200 "description."
37201 msgstr ""
37202
37203 #. type: =head2
37204 #: ../src/guestfs.pod:2720
37205 msgid "ADDING TESTS FOR AN API ACTION"
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:2722
37210 msgid ""
37211 "You can supply zero or as many tests as you want per API call.  The tests "
37212 "can either be added as part of the API description "
37213 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
37214 "drop a script into C<regressions/>.  Note that adding a script to "
37215 "C<regressions/> is slower, so if possible use the first method."
37216 msgstr ""
37217
37218 #. type: textblock
37219 #: ../src/guestfs.pod:2728
37220 msgid ""
37221 "The following describes the test environment used when you add an API test "
37222 "in C<generator_actions.ml>."
37223 msgstr ""
37224
37225 #. type: textblock
37226 #: ../src/guestfs.pod:2731
37227 msgid "The test environment has 4 block devices:"
37228 msgstr ""
37229
37230 #. type: =item
37231 #: ../src/guestfs.pod:2735
37232 msgid "C</dev/sda> 500MB"
37233 msgstr ""
37234
37235 #. type: textblock
37236 #: ../src/guestfs.pod:2737
37237 msgid "General block device for testing."
37238 msgstr ""
37239
37240 #. type: =item
37241 #: ../src/guestfs.pod:2739
37242 msgid "C</dev/sdb> 50MB"
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../src/guestfs.pod:2741
37247 msgid ""
37248 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37249 "operations."
37250 msgstr ""
37251
37252 #. type: =item
37253 #: ../src/guestfs.pod:2744
37254 msgid "C</dev/sdc> 10MB"
37255 msgstr ""
37256
37257 #. type: textblock
37258 #: ../src/guestfs.pod:2746
37259 msgid "Used in a few tests where two block devices are needed."
37260 msgstr ""
37261
37262 #. type: =item
37263 #: ../src/guestfs.pod:2748
37264 msgid "C</dev/sdd>"
37265 msgstr ""
37266
37267 #. type: textblock
37268 #: ../src/guestfs.pod:2750
37269 msgid "ISO with fixed content (see C<images/test.iso>)."
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../src/guestfs.pod:2754
37274 msgid ""
37275 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37276 "appliance and block devices are reused between tests.  So don't try testing "
37277 "L</guestfs_kill_subprocess> :-x"
37278 msgstr ""
37279
37280 #. type: textblock
37281 #: ../src/guestfs.pod:2758
37282 msgid ""
37283 "Each test starts with an initial scenario, selected using one of the "
37284 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37285 "initialize the disks mentioned above in a particular way as documented in "
37286 "C<generator_types.ml>.  You should not assume anything about the previous "
37287 "contents of other disks that are not initialized."
37288 msgstr ""
37289
37290 #. type: textblock
37291 #: ../src/guestfs.pod:2764
37292 msgid ""
37293 "You can add a prerequisite clause to any individual test.  This is a "
37294 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
37295 "if testing a command which might not work on all variations of libguestfs "
37296 "builds.  A test that has prerequisite of C<Always> means to run "
37297 "unconditionally."
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../src/guestfs.pod:2770
37302 msgid ""
37303 "In addition, packagers can skip individual tests by setting environment "
37304 "variables before running C<make check>."
37305 msgstr ""
37306
37307 #. type: verbatim
37308 #: ../src/guestfs.pod:2773
37309 #, no-wrap
37310 msgid ""
37311 " SKIP_TEST_<CMD>_<NUM>=1\n"
37312 "\n"
37313 msgstr ""
37314
37315 #. type: textblock
37316 #: ../src/guestfs.pod:2775
37317 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37318 msgstr ""
37319
37320 #. type: textblock
37321 #: ../src/guestfs.pod:2777
37322 msgid "or:"
37323 msgstr ""
37324
37325 #. type: verbatim
37326 #: ../src/guestfs.pod:2779
37327 #, no-wrap
37328 msgid ""
37329 " SKIP_TEST_<CMD>=1\n"
37330 "\n"
37331 msgstr ""
37332
37333 #. type: textblock
37334 #: ../src/guestfs.pod:2781
37335 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37336 msgstr ""
37337
37338 #. type: textblock
37339 #: ../src/guestfs.pod:2783
37340 msgid "Packagers can run only certain tests by setting for example:"
37341 msgstr ""
37342
37343 #. type: verbatim
37344 #: ../src/guestfs.pod:2785
37345 #, no-wrap
37346 msgid ""
37347 " TEST_ONLY=\"vfs_type zerofree\"\n"
37348 "\n"
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:2787
37353 msgid ""
37354 "See C<capitests/tests.c> for more details of how these environment variables "
37355 "work."
37356 msgstr ""
37357
37358 #. type: =head2
37359 #: ../src/guestfs.pod:2790
37360 msgid "DEBUGGING NEW API ACTIONS"
37361 msgstr ""
37362
37363 #. type: textblock
37364 #: ../src/guestfs.pod:2792
37365 msgid "Test new actions work before submitting them."
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:2794
37370 msgid "You can use guestfish to try out new commands."
37371 msgstr ""
37372
37373 #. type: textblock
37374 #: ../src/guestfs.pod:2796
37375 msgid ""
37376 "Debugging the daemon is a problem because it runs inside a minimal "
37377 "environment.  However you can fprintf messages in the daemon to stderr, and "
37378 "they will show up if you use C<guestfish -v>."
37379 msgstr ""
37380
37381 #. type: =head2
37382 #: ../src/guestfs.pod:2800
37383 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37384 msgstr ""
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:2802
37388 msgid ""
37389 "Our C source code generally adheres to some basic code-formatting "
37390 "conventions.  The existing code base is not totally consistent on this "
37391 "front, but we do prefer that contributed code be formatted similarly.  In "
37392 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37393 "indentation level, and other than that, follow the K&R style."
37394 msgstr ""
37395
37396 #. type: textblock
37397 #: ../src/guestfs.pod:2808
37398 msgid ""
37399 "If you use Emacs, add the following to one of one of your start-up files "
37400 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
37401 msgstr ""
37402
37403 #. type: verbatim
37404 #: ../src/guestfs.pod:2811
37405 #, no-wrap
37406 msgid ""
37407 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37408 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37409 " (add-hook 'find-file-hook\n"
37410 "     '(lambda () (if (and buffer-file-name\n"
37411 "                          (string-match \"/libguestfs\\\\>\"\n"
37412 "                              (buffer-file-name))\n"
37413 "                          (not (string-equal mode-name \"Change Log\"))\n"
37414 "                          (not (string-equal mode-name \"Makefile\")))\n"
37415 "                     (setq indent-tabs-mode nil))))\n"
37416 " \n"
37417 msgstr ""
37418
37419 #. type: verbatim
37420 #: ../src/guestfs.pod:2821
37421 #, no-wrap
37422 msgid ""
37423 " ;;; When editing C sources in libguestfs, use this style.\n"
37424 " (defun libguestfs-c-mode ()\n"
37425 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37426 "   (interactive)\n"
37427 "   (c-set-style \"K&R\")\n"
37428 "   (setq c-indent-level 2)\n"
37429 "   (setq c-basic-offset 2))\n"
37430 " (add-hook 'c-mode-hook\n"
37431 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37432 "                               (buffer-file-name))\n"
37433 "                           (libguestfs-c-mode))))\n"
37434 "\n"
37435 msgstr ""
37436
37437 #. type: textblock
37438 #: ../src/guestfs.pod:2833
37439 msgid "Enable warnings when compiling (and fix any problems this finds):"
37440 msgstr ""
37441
37442 #. type: verbatim
37443 #: ../src/guestfs.pod:2836
37444 #, no-wrap
37445 msgid ""
37446 " ./configure --enable-gcc-warnings\n"
37447 "\n"
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:2838
37452 msgid "Useful targets are:"
37453 msgstr ""
37454
37455 #. type: verbatim
37456 #: ../src/guestfs.pod:2840
37457 #, no-wrap
37458 msgid ""
37459 " make syntax-check  # checks the syntax of the C code\n"
37460 " make check         # runs the test suite\n"
37461 "\n"
37462 msgstr ""
37463
37464 #. type: =head2
37465 #: ../src/guestfs.pod:2843
37466 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37467 msgstr ""
37468
37469 #. type: textblock
37470 #: ../src/guestfs.pod:2845
37471 msgid ""
37472 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37473 "which are used to do shell quoting."
37474 msgstr ""
37475
37476 #. type: =item
37477 #: ../src/guestfs.pod:2850
37478 msgid "%Q"
37479 msgstr ""
37480
37481 #. type: textblock
37482 #: ../src/guestfs.pod:2852
37483 msgid ""
37484 "Simple shell quoted string.  Any spaces or other shell characters are "
37485 "escaped for you."
37486 msgstr ""
37487
37488 #. type: =item
37489 #: ../src/guestfs.pod:2855
37490 msgid "%R"
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:2857
37495 msgid ""
37496 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37497 "the sysroot."
37498 msgstr ""
37499
37500 #. type: verbatim
37501 #: ../src/guestfs.pod:2864
37502 #, no-wrap
37503 msgid ""
37504 " asprintf (&cmd, \"cat %R\", path);\n"
37505 "\n"
37506 msgstr ""
37507
37508 #. type: textblock
37509 #: ../src/guestfs.pod:2866
37510 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:2868
37515 msgid ""
37516 "I<Note:> Do I<not> use these when you are passing parameters to the "
37517 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
37518 "because they are not passed via the shell (instead, straight to exec).  You "
37519 "probably want to use the C<sysroot_path()> function however."
37520 msgstr ""
37521
37522 #. type: =head2
37523 #: ../src/guestfs.pod:2874
37524 msgid "SUBMITTING YOUR NEW API ACTIONS"
37525 msgstr ""
37526
37527 #. type: textblock
37528 #: ../src/guestfs.pod:2876
37529 msgid ""
37530 "Submit patches to the mailing list: "
37531 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
37532 "L<rjones@redhat.com>."
37533 msgstr ""
37534
37535 #. type: =head2
37536 #: ../src/guestfs.pod:2880
37537 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37538 msgstr ""
37539
37540 #. type: textblock
37541 #: ../src/guestfs.pod:2882
37542 msgid "We support i18n (gettext anyhow) in the library."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../src/guestfs.pod:2884
37547 msgid ""
37548 "However many messages come from the daemon, and we don't translate those at "
37549 "the moment.  One reason is that the appliance generally has all locale files "
37550 "removed from it, because they take up a lot of space.  So we'd have to readd "
37551 "some of those, as well as copying our PO files into the appliance."
37552 msgstr ""
37553
37554 #. type: textblock
37555 #: ../src/guestfs.pod:2890
37556 msgid ""
37557 "Debugging messages are never translated, since they are intended for the "
37558 "programmers."
37559 msgstr ""
37560
37561 #. type: =head2
37562 #: ../src/guestfs.pod:2893
37563 msgid "SOURCE CODE SUBDIRECTORIES"
37564 msgstr ""
37565
37566 #. type: =item
37567 #: ../src/guestfs.pod:2897
37568 msgid "C<align>"
37569 msgstr ""
37570
37571 #. type: textblock
37572 #: ../src/guestfs.pod:2899
37573 msgid "L<virt-alignment-scan(1)> command and documentation."
37574 msgstr ""
37575
37576 #. type: textblock
37577 #: ../src/guestfs.pod:2903
37578 msgid "The libguestfs appliance, build scripts and so on."
37579 msgstr ""
37580
37581 #. type: =item
37582 #: ../src/guestfs.pod:2905
37583 msgid "C<capitests>"
37584 msgstr ""
37585
37586 #. type: textblock
37587 #: ../src/guestfs.pod:2907
37588 msgid "Automated tests of the C API."
37589 msgstr ""
37590
37591 #. type: =item
37592 #: ../src/guestfs.pod:2909
37593 msgid "C<cat>"
37594 msgstr ""
37595
37596 #. type: textblock
37597 #: ../src/guestfs.pod:2911
37598 msgid ""
37599 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37600 "documentation."
37601 msgstr ""
37602
37603 #. type: =item
37604 #: ../src/guestfs.pod:2914
37605 msgid "C<caution>"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:2916
37610 msgid ""
37611 "Safety and liveness tests of components that libguestfs depends upon (not of "
37612 "libguestfs itself).  Mainly this is for qemu and the kernel."
37613 msgstr ""
37614
37615 #. type: =item
37616 #: ../src/guestfs.pod:2919
37617 msgid "C<clone>"
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:2921
37622 msgid ""
37623 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
37624 "command and documentation."
37625 msgstr ""
37626
37627 #. type: =item
37628 #: ../src/guestfs.pod:2924
37629 msgid "C<contrib>"
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:2926
37634 msgid "Outside contributions, experimental parts."
37635 msgstr ""
37636
37637 #. type: =item
37638 #: ../src/guestfs.pod:2928
37639 msgid "C<daemon>"
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:2930
37644 msgid ""
37645 "The daemon that runs inside the libguestfs appliance and carries out "
37646 "actions."
37647 msgstr ""
37648
37649 #. type: =item
37650 #: ../src/guestfs.pod:2933
37651 msgid "C<df>"
37652 msgstr ""
37653
37654 #. type: textblock
37655 #: ../src/guestfs.pod:2935
37656 msgid "L<virt-df(1)> command and documentation."
37657 msgstr ""
37658
37659 #. type: =item
37660 #: ../src/guestfs.pod:2937
37661 msgid "C<edit>"
37662 msgstr ""
37663
37664 #. type: textblock
37665 #: ../src/guestfs.pod:2939
37666 msgid "L<virt-edit(1)> command and documentation."
37667 msgstr ""
37668
37669 #. type: =item
37670 #: ../src/guestfs.pod:2941
37671 msgid "C<examples>"
37672 msgstr ""
37673
37674 #. type: textblock
37675 #: ../src/guestfs.pod:2943
37676 msgid "C API example code."
37677 msgstr ""
37678
37679 #. type: =item
37680 #: ../src/guestfs.pod:2945
37681 msgid "C<fish>"
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:2947
37686 msgid ""
37687 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37688 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37689 "L<virt-tar-out(1)>."
37690 msgstr ""
37691
37692 #. type: =item
37693 #: ../src/guestfs.pod:2951
37694 msgid "C<fuse>"
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:2953
37699 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37700 msgstr ""
37701
37702 #. type: =item
37703 #: ../src/guestfs.pod:2955
37704 msgid "C<generator>"
37705 msgstr ""
37706
37707 #. type: textblock
37708 #: ../src/guestfs.pod:2957
37709 msgid ""
37710 "The crucially important generator, used to automatically generate large "
37711 "amounts of boilerplate C code for things like RPC and bindings."
37712 msgstr ""
37713
37714 #. type: =item
37715 #: ../src/guestfs.pod:2960
37716 msgid "C<images>"
37717 msgstr ""
37718
37719 #. type: textblock
37720 #: ../src/guestfs.pod:2962
37721 msgid "Files used by the test suite."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../src/guestfs.pod:2964
37726 msgid "Some \"phony\" guest images which we test against."
37727 msgstr ""
37728
37729 #. type: =item
37730 #: ../src/guestfs.pod:2966
37731 msgid "C<inspector>"
37732 msgstr ""
37733
37734 #. type: textblock
37735 #: ../src/guestfs.pod:2968
37736 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37737 msgstr ""
37738
37739 #. type: =item
37740 #: ../src/guestfs.pod:2970
37741 msgid "C<logo>"
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:2972
37746 msgid "Logo used on the website.  The fish is called Arthur by the way."
37747 msgstr ""
37748
37749 #. type: =item
37750 #: ../src/guestfs.pod:2974
37751 msgid "C<m4>"
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:2976
37756 msgid "M4 macros used by autoconf."
37757 msgstr ""
37758
37759 #. type: =item
37760 #: ../src/guestfs.pod:2978
37761 msgid "C<po>"
37762 msgstr ""
37763
37764 #. type: textblock
37765 #: ../src/guestfs.pod:2980
37766 msgid "Translations of simple gettext strings."
37767 msgstr ""
37768
37769 #. type: =item
37770 #: ../src/guestfs.pod:2982
37771 msgid "C<po-docs>"
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../src/guestfs.pod:2984
37776 msgid ""
37777 "The build infrastructure and PO files for translations of manpages and POD "
37778 "files.  Eventually this will be combined with the C<po> directory, but that "
37779 "is rather complicated."
37780 msgstr ""
37781
37782 #. type: =item
37783 #: ../src/guestfs.pod:2988
37784 msgid "C<regressions>"
37785 msgstr ""
37786
37787 #. type: textblock
37788 #: ../src/guestfs.pod:2990
37789 msgid "Regression tests."
37790 msgstr ""
37791
37792 #. type: =item
37793 #: ../src/guestfs.pod:2992
37794 msgid "C<rescue>"
37795 msgstr ""
37796
37797 #. type: textblock
37798 #: ../src/guestfs.pod:2994
37799 msgid "L<virt-rescue(1)> command and documentation."
37800 msgstr ""
37801
37802 #. type: =item
37803 #: ../src/guestfs.pod:2996
37804 msgid "C<resize>"
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:2998
37809 msgid "L<virt-resize(1)> command and documentation."
37810 msgstr ""
37811
37812 #. type: =item
37813 #: ../src/guestfs.pod:3000
37814 msgid "C<sparsify>"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:3002
37819 msgid "L<virt-sparsify(1)> command and documentation."
37820 msgstr ""
37821
37822 #. type: =item
37823 #: ../src/guestfs.pod:3004
37824 msgid "C<src>"
37825 msgstr ""
37826
37827 #. type: textblock
37828 #: ../src/guestfs.pod:3006
37829 msgid "Source code to the C library."
37830 msgstr ""
37831
37832 #. type: =item
37833 #: ../src/guestfs.pod:3008
37834 msgid "C<tools>"
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:3010
37839 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
37840 msgstr ""
37841
37842 #. type: =item
37843 #: ../src/guestfs.pod:3012
37844 msgid "C<test-tool>"
37845 msgstr ""
37846
37847 #. type: textblock
37848 #: ../src/guestfs.pod:3014
37849 msgid ""
37850 "Test tool for end users to test if their qemu/kernel combination will work "
37851 "with libguestfs."
37852 msgstr ""
37853
37854 #. type: =item
37855 #: ../src/guestfs.pod:3017
37856 msgid "C<csharp>"
37857 msgstr ""
37858
37859 #. type: =item
37860 #: ../src/guestfs.pod:3019
37861 msgid "C<erlang>"
37862 msgstr ""
37863
37864 #. type: =item
37865 #: ../src/guestfs.pod:3021
37866 msgid "C<haskell>"
37867 msgstr ""
37868
37869 #. type: =item
37870 #: ../src/guestfs.pod:3023
37871 msgid "C<java>"
37872 msgstr ""
37873
37874 #. type: =item
37875 #: ../src/guestfs.pod:3025
37876 msgid "C<ocaml>"
37877 msgstr ""
37878
37879 #. type: =item
37880 #: ../src/guestfs.pod:3027
37881 msgid "C<php>"
37882 msgstr ""
37883
37884 #. type: =item
37885 #: ../src/guestfs.pod:3029
37886 msgid "C<perl>"
37887 msgstr ""
37888
37889 #. type: =item
37890 #: ../src/guestfs.pod:3031
37891 msgid "C<python>"
37892 msgstr ""
37893
37894 #. type: =item
37895 #: ../src/guestfs.pod:3033
37896 msgid "C<ruby>"
37897 msgstr ""
37898
37899 #. type: textblock
37900 #: ../src/guestfs.pod:3035
37901 msgid "Language bindings."
37902 msgstr ""
37903
37904 #. type: =head2
37905 #: ../src/guestfs.pod:3039
37906 msgid "MAKING A STABLE RELEASE"
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:3041
37911 msgid ""
37912 "When we make a stable release, there are several steps documented here.  See "
37913 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
37914 "branch policy."
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../src/guestfs.pod:3049
37919 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
37920 msgstr ""
37921
37922 #. type: textblock
37923 #: ../src/guestfs.pod:3054
37924 msgid "Finalize RELEASE-NOTES."
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../src/guestfs.pod:3058
37929 msgid "Update ROADMAP."
37930 msgstr ""
37931
37932 #. type: textblock
37933 #: ../src/guestfs.pod:3062
37934 msgid "Run C<src/api-support/update-from-tarballs.sh>."
37935 msgstr ""
37936
37937 #. type: textblock
37938 #: ../src/guestfs.pod:3066
37939 msgid "Push and pull from Transifex."
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:3068
37944 msgid "Run:"
37945 msgstr ""
37946
37947 #. type: verbatim
37948 #: ../src/guestfs.pod:3070
37949 #, no-wrap
37950 msgid ""
37951 " tx push -s\n"
37952 "\n"
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../src/guestfs.pod:3072
37957 msgid "to push the latest POT files to Transifex.  Then run:"
37958 msgstr ""
37959
37960 #. type: verbatim
37961 #: ../src/guestfs.pod:3074
37962 #, no-wrap
37963 msgid ""
37964 " ./tx-pull.sh\n"
37965 "\n"
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:3076
37970 msgid "which is a wrapper to pull the latest translated C<*.po> files."
37971 msgstr ""
37972
37973 #. type: textblock
37974 #: ../src/guestfs.pod:3080
37975 msgid ""
37976 "Create new stable and development directories under "
37977 "L<http://libguestfs.org/download>."
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:3085
37982 msgid "Create the branch in git:"
37983 msgstr ""
37984
37985 #. type: verbatim
37986 #: ../src/guestfs.pod:3087
37987 #, no-wrap
37988 msgid ""
37989 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
37990 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
37991 " git branch stable-1.XX\n"
37992 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
37993 "\n"
37994 msgstr ""
37995
37996 #. type: =head1
37997 #: ../src/guestfs.pod:3094
37998 msgid "LIMITS"
37999 msgstr ""
38000
38001 #. type: =head2
38002 #: ../src/guestfs.pod:3096
38003 msgid "PROTOCOL LIMITS"
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:3098
38008 msgid ""
38009 "Internally libguestfs uses a message-based protocol to pass API calls and "
38010 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38011 "plenty more detail about this).  The maximum message size used by the "
38012 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38013 "aware of this limit.  The API calls which may be affected are individually "
38014 "documented, with a link back to this section of the documentation."
38015 msgstr ""
38016
38017 #. type: textblock
38018 #: ../src/guestfs.pod:3106
38019 msgid ""
38020 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38021 "a simple string.  Because this string is at some point internally encoded as "
38022 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38023 "the requested file is larger than this then you will get an error."
38024 msgstr ""
38025
38026 #. type: textblock
38027 #: ../src/guestfs.pod:3112
38028 msgid ""
38029 "In order to transfer large files into and out of the guest filesystem, you "
38030 "need to use particular calls that support this.  The sections L</UPLOADING> "
38031 "and L</DOWNLOADING> document how to do this."
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:3116
38036 msgid ""
38037 "You might also consider mounting the disk image using our FUSE filesystem "
38038 "support (L<guestmount(1)>)."
38039 msgstr ""
38040
38041 #. type: =head2
38042 #: ../src/guestfs.pod:3119
38043 msgid "MAXIMUM NUMBER OF DISKS"
38044 msgstr ""
38045
38046 #. type: textblock
38047 #: ../src/guestfs.pod:3121
38048 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38049 msgstr ""
38050
38051 #. type: textblock
38052 #: ../src/guestfs.pod:3124
38053 msgid ""
38054 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38055 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38056 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38057 "purposes."
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:3129
38062 msgid ""
38063 "We are working to substantially raise this limit in future versions but it "
38064 "requires complex changes to qemu."
38065 msgstr ""
38066
38067 #. type: textblock
38068 #: ../src/guestfs.pod:3132
38069 msgid ""
38070 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38071 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38072 "requires changes to qemu."
38073 msgstr ""
38074
38075 #. type: =head2
38076 #: ../src/guestfs.pod:3136
38077 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:3138
38082 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38083 msgstr ""
38084
38085 #. type: textblock
38086 #: ../src/guestfs.pod:3140
38087 msgid ""
38088 "This is because it reserves 4 bits for the minor device number (thus "
38089 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../src/guestfs.pod:3143
38094 msgid ""
38095 "If you attach a disk with more than 15 partitions, the extra partitions are "
38096 "ignored by libguestfs."
38097 msgstr ""
38098
38099 #. type: =head2
38100 #: ../src/guestfs.pod:3146
38101 msgid "MAXIMUM SIZE OF A DISK"
38102 msgstr ""
38103
38104 #. type: textblock
38105 #: ../src/guestfs.pod:3148
38106 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38107 msgstr ""
38108
38109 #. type: textblock
38110 #: ../src/guestfs.pod:3150
38111 msgid ""
38112 "We have tested block devices up to 1 exabyte (2**60 or "
38113 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38114 "filesystem."
38115 msgstr ""
38116
38117 #. type: textblock
38118 #: ../src/guestfs.pod:3154
38119 msgid ""
38120 "Although libguestfs probably does not impose any limit, the underlying host "
38121 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38122 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38123 "TB).  If you store disk images as host logical volumes then you are limited "
38124 "by the maximum size of an LV."
38125 msgstr ""
38126
38127 #. type: textblock
38128 #: ../src/guestfs.pod:3160
38129 msgid ""
38130 "For the hugest disk image files, we recommend using XFS on the host for "
38131 "storage."
38132 msgstr ""
38133
38134 #. type: =head2
38135 #: ../src/guestfs.pod:3163
38136 msgid "MAXIMUM SIZE OF A PARTITION"
38137 msgstr ""
38138
38139 #. type: textblock
38140 #: ../src/guestfs.pod:3165
38141 msgid ""
38142 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38143 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38144 "address a partition located beyond 2 TB on the disk."
38145 msgstr ""
38146
38147 #. type: textblock
38148 #: ../src/guestfs.pod:3169
38149 msgid ""
38150 "It is recommended that you use GPT partitions on disks which are larger than "
38151 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38152 "which are theoretically larger than the largest disk we could support."
38153 msgstr ""
38154
38155 #. type: =head2
38156 #: ../src/guestfs.pod:3174
38157 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:3176
38162 msgid ""
38163 "This depends on the filesystem type.  libguestfs itself does not impose any "
38164 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38165 "what these limits are."
38166 msgstr ""
38167
38168 #. type: =head2
38169 #: ../src/guestfs.pod:3180
38170 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:3182
38175 msgid ""
38176 "The API functions L</guestfs_upload>, L</guestfs_download>, "
38177 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38178 "uploads and downloads."
38179 msgstr ""
38180
38181 #. type: =head2
38182 #: ../src/guestfs.pod:3186
38183 msgid "INSPECTION LIMITS"
38184 msgstr ""
38185
38186 #. type: textblock
38187 #: ../src/guestfs.pod:3188
38188 msgid ""
38189 "The inspection code has several arbitrary limits on things like the size of "
38190 "Windows Registry hive it will read, and the length of product name.  These "
38191 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38192 "memory and disk space on the host, and should not be reached in practice.  "
38193 "See the source code for more information."
38194 msgstr ""
38195
38196 #. type: textblock
38197 #: ../src/guestfs.pod:3214
38198 msgid ""
38199 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38200 "effect as calling C<guestfs_set_verbose (g, 1)>."
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:3226
38205 msgid ""
38206 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38207 "the discussion of paths in section L</PATH> above."
38208 msgstr ""
38209
38210 #. type: textblock
38211 #: ../src/guestfs.pod:3235
38212 msgid "See also L</QEMU WRAPPERS> above."
38213 msgstr ""
38214
38215 #. type: textblock
38216 #: ../src/guestfs.pod:3239
38217 msgid ""
38218 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38219 "effect as calling C<guestfs_set_trace (g, 1)>."
38220 msgstr ""
38221
38222 #. type: textblock
38223 #: ../src/guestfs.pod:3257
38224 msgid ""
38225 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
38226 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
38227 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, "
38228 "L<virt-alignment-scan(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
38229 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
38230 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
38231 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
38232 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, "
38233 "L<virt-sysprep(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
38234 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38235 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)>, "
38236 "L<http://libguestfs.org/>."
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../src/guestfs.pod:3293
38241 msgid ""
38242 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
38243 "L<lvm(8)>, L<disktype(1)>."
38244 msgstr ""
38245
38246 #. type: =head1
38247 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
38248 msgid "BUGS"
38249 msgstr ""
38250
38251 #. type: textblock
38252 #: ../src/guestfs.pod:3302
38253 msgid "To get a list of bugs against libguestfs use this link:"
38254 msgstr ""
38255
38256 #. type: textblock
38257 #: ../src/guestfs.pod:3304
38258 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../src/guestfs.pod:3306
38263 msgid "To report a new bug against libguestfs use this link:"
38264 msgstr ""
38265
38266 #. type: textblock
38267 #: ../src/guestfs.pod:3308
38268 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
38269 msgstr ""
38270
38271 #. type: textblock
38272 #: ../src/guestfs.pod:3310
38273 msgid "When reporting a bug, please check:"
38274 msgstr ""
38275
38276 #. type: textblock
38277 #: ../src/guestfs.pod:3316
38278 msgid "That the bug hasn't been reported already."
38279 msgstr ""
38280
38281 #. type: textblock
38282 #: ../src/guestfs.pod:3320
38283 msgid "That you are testing a recent version."
38284 msgstr ""
38285
38286 #. type: textblock
38287 #: ../src/guestfs.pod:3324
38288 msgid "Describe the bug accurately, and give a way to reproduce it."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:3328
38293 msgid ""
38294 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38295 "bug report."
38296 msgstr ""
38297
38298 #. type: textblock
38299 #: ../test-tool/libguestfs-test-tool.pod:5
38300 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38301 msgstr ""
38302
38303 #. type: verbatim
38304 #: ../test-tool/libguestfs-test-tool.pod:9
38305 #, no-wrap
38306 msgid ""
38307 " libguestfs-test-tool [--options]\n"
38308 "\n"
38309 msgstr ""
38310
38311 #. type: textblock
38312 #: ../test-tool/libguestfs-test-tool.pod:13
38313 msgid ""
38314 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38315 "to check basic libguestfs functionality is working.  This is needed because "
38316 "libguestfs occasionally breaks for reasons beyond our control: usually "
38317 "because of changes in the underlying qemu or kernel packages, or the host "
38318 "environment."
38319 msgstr ""
38320
38321 #. type: textblock
38322 #: ../test-tool/libguestfs-test-tool.pod:19
38323 msgid "If you suspect a problem in libguestfs, then just run:"
38324 msgstr ""
38325
38326 #. type: verbatim
38327 #: ../test-tool/libguestfs-test-tool.pod:21
38328 #, no-wrap
38329 msgid ""
38330 " libguestfs-test-tool\n"
38331 "\n"
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../test-tool/libguestfs-test-tool.pod:23
38336 msgid "It will print lots of diagnostic messages."
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../test-tool/libguestfs-test-tool.pod:25
38341 msgid "If it runs to completion successfully, you will see this near the end:"
38342 msgstr ""
38343
38344 #. type: verbatim
38345 #: ../test-tool/libguestfs-test-tool.pod:27
38346 #, no-wrap
38347 msgid ""
38348 " ===== TEST FINISHED OK =====\n"
38349 "\n"
38350 msgstr ""
38351
38352 #. type: textblock
38353 #: ../test-tool/libguestfs-test-tool.pod:29
38354 msgid "and the test tool will exit with code 0."
38355 msgstr ""
38356
38357 #. type: textblock
38358 #: ../test-tool/libguestfs-test-tool.pod:31
38359 msgid ""
38360 "If it fails (and/or exits with non-zero error code), please paste the "
38361 "I<complete, unedited> output of the test tool into a bug report.  More "
38362 "information about reporting bugs can be found on the "
38363 "L<http://libguestfs.org/> website."
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../test-tool/libguestfs-test-tool.pod:42
38368 msgid "Display short usage information and exit."
38369 msgstr ""
38370
38371 #. type: =item
38372 #: ../test-tool/libguestfs-test-tool.pod:44
38373 msgid "B<--qemu qemu_binary>"
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../test-tool/libguestfs-test-tool.pod:46
38378 msgid ""
38379 "If you have downloaded another qemu binary, point this option at the full "
38380 "path of the binary to try it."
38381 msgstr ""
38382
38383 #. type: =item
38384 #: ../test-tool/libguestfs-test-tool.pod:49
38385 msgid "B<--qemudir qemu_source_dir>"
38386 msgstr ""
38387
38388 #. type: textblock
38389 #: ../test-tool/libguestfs-test-tool.pod:51
38390 msgid ""
38391 "If you have compiled qemu from source, point this option at the source "
38392 "directory to try it."
38393 msgstr ""
38394
38395 #. type: =item
38396 #: ../test-tool/libguestfs-test-tool.pod:54
38397 msgid "B<-t N>"
38398 msgstr ""
38399
38400 #. type: =item
38401 #: ../test-tool/libguestfs-test-tool.pod:56
38402 msgid "B<--timeout N>"
38403 msgstr ""
38404
38405 #. type: textblock
38406 #: ../test-tool/libguestfs-test-tool.pod:58
38407 msgid ""
38408 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
38409 "minutes) which does not usually need to be adjusted."
38410 msgstr ""
38411
38412 #. type: =head1
38413 #: ../test-tool/libguestfs-test-tool.pod:63
38414 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38415 msgstr ""
38416
38417 #. type: textblock
38418 #: ../test-tool/libguestfs-test-tool.pod:65
38419 msgid ""
38420 "If you have compiled another version of qemu from source and would like to "
38421 "try that, then you can use the I<--qemudir> option to point to the qemu "
38422 "source directory."
38423 msgstr ""
38424
38425 #. type: textblock
38426 #: ../test-tool/libguestfs-test-tool.pod:69
38427 msgid ""
38428 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38429 "option to point to the binary."
38430 msgstr ""
38431
38432 #. type: textblock
38433 #: ../test-tool/libguestfs-test-tool.pod:72
38434 msgid ""
38435 "Note when using these options, you can ignore the business of qemu wrapper "
38436 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
38437 "wrapper script for you if one is needed."
38438 msgstr ""
38439
38440 #. type: =head1
38441 #: ../test-tool/libguestfs-test-tool.pod:76
38442 msgid "TRYING OUT A DIFFERENT KERNEL"
38443 msgstr ""
38444
38445 #. type: textblock
38446 #: ../test-tool/libguestfs-test-tool.pod:78
38447 msgid ""
38448 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
38449 "libguestfs tries.  You do this by setting the environment variables "
38450 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../test-tool/libguestfs-test-tool.pod:82
38455 msgid ""
38456 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
38457 "information."
38458 msgstr ""
38459
38460 #. type: =head1
38461 #: ../test-tool/libguestfs-test-tool.pod:85
38462 msgid "SELF-DIAGNOSIS"
38463 msgstr ""
38464
38465 #. type: textblock
38466 #: ../test-tool/libguestfs-test-tool.pod:87
38467 msgid ""
38468 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
38469 "produced by libguestfs-test-tool and/or possible errors."
38470 msgstr ""
38471
38472 #. type: textblock
38473 #: ../test-tool/libguestfs-test-tool.pod:92
38474 msgid ""
38475 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38476 "I<1> if there was an error."
38477 msgstr ""
38478
38479 #. type: textblock
38480 #: ../test-tool/libguestfs-test-tool.pod:97
38481 msgid ""
38482 "For the full list of environment variables which may affect libguestfs, "
38483 "please see the L<guestfs(3)> manual page."
38484 msgstr ""
38485
38486 #. type: textblock
38487 #: ../test-tool/libguestfs-test-tool.pod:102
38488 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38489 msgstr ""
38490
38491 #. type: textblock
38492 #: ../tools/virt-list-filesystems.pl:32
38493 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38494 msgstr ""
38495
38496 #. type: verbatim
38497 #: ../tools/virt-list-filesystems.pl:36
38498 #, no-wrap
38499 msgid ""
38500 " virt-list-filesystems [--options] domname\n"
38501 "\n"
38502 msgstr ""
38503
38504 #. type: verbatim
38505 #: ../tools/virt-list-filesystems.pl:38
38506 #, no-wrap
38507 msgid ""
38508 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38509 "\n"
38510 msgstr ""
38511
38512 #. type: textblock
38513 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38514 msgid ""
38515 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38516 "replacement."
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../tools/virt-list-filesystems.pl:45
38521 msgid ""
38522 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38523 "are contained in a virtual machine or disk image."
38524 msgstr ""
38525
38526 #. type: textblock
38527 #: ../tools/virt-list-filesystems.pl:49
38528 msgid ""
38529 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38530 "functionality.  For more complex cases you should look at the "
38531 "L<guestfish(1)> tool."
38532 msgstr ""
38533
38534 #. type: textblock
38535 #: ../tools/virt-list-filesystems.pl:112
38536 msgid ""
38537 "With this option, C<virt-list-filesystems> displays the type of each "
38538 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38539 msgstr ""
38540
38541 #. type: =item
38542 #: ../tools/virt-list-filesystems.pl:119
38543 msgid "B<-a>"
38544 msgstr ""
38545
38546 #. type: textblock
38547 #: ../tools/virt-list-filesystems.pl:123
38548 msgid ""
38549 "Normally we only show mountable filesystems.  If this option is given then "
38550 "swap devices are shown too."
38551 msgstr ""
38552
38553 #. type: textblock
38554 #: ../tools/virt-list-filesystems.pl:197
38555 msgid ""
38556 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
38557 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
38558 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38559 msgstr ""
38560
38561 #. type: textblock
38562 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38563 msgid "Copyright (C) 2009 Red Hat Inc."
38564 msgstr ""
38565
38566 #. type: textblock
38567 #: ../tools/virt-list-partitions.pl:32
38568 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
38569 msgstr ""
38570
38571 #. type: verbatim
38572 #: ../tools/virt-list-partitions.pl:36
38573 #, no-wrap
38574 msgid ""
38575 " virt-list-partitions [--options] domname\n"
38576 "\n"
38577 msgstr ""
38578
38579 #. type: verbatim
38580 #: ../tools/virt-list-partitions.pl:38
38581 #, no-wrap
38582 msgid ""
38583 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38584 "\n"
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../tools/virt-list-partitions.pl:45
38589 msgid ""
38590 "C<virt-list-partitions> is a command line tool to list the partitions that "
38591 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38592 "first step to using L<virt-resize(1)>."
38593 msgstr ""
38594
38595 #. type: textblock
38596 #: ../tools/virt-list-partitions.pl:50
38597 msgid ""
38598 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38599 "functionality.  For more complex cases you should look at the "
38600 "L<guestfish(1)> tool."
38601 msgstr ""
38602
38603 #. type: textblock
38604 #: ../tools/virt-list-partitions.pl:113
38605 msgid "Show sizes in human-readable form (eg. \"1G\")."
38606 msgstr ""
38607
38608 #. type: textblock
38609 #: ../tools/virt-list-partitions.pl:123
38610 msgid ""
38611 "With this option, C<virt-list-partitions> displays the type and size of each "
38612 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38613 msgstr ""
38614
38615 #. type: =item
38616 #: ../tools/virt-list-partitions.pl:130
38617 msgid "B<-t>"
38618 msgstr ""
38619
38620 #. type: =item
38621 #: ../tools/virt-list-partitions.pl:132
38622 msgid "B<--total>"
38623 msgstr ""
38624
38625 #. type: textblock
38626 #: ../tools/virt-list-partitions.pl:134
38627 msgid "Display the total size of each block device (as a separate row or rows)."
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../tools/virt-list-partitions.pl:267
38632 msgid ""
38633 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
38634 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
38635 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38636 msgstr ""
38637
38638 #. type: textblock
38639 #: ../tools/virt-list-partitions.pl:283
38640 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38641 msgstr ""
38642
38643 #. type: textblock
38644 #: ../tools/virt-make-fs.pl:37
38645 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38646 msgstr ""
38647
38648 #. type: verbatim
38649 #: ../tools/virt-make-fs.pl:41
38650 #, no-wrap
38651 msgid ""
38652 " virt-make-fs [--options] input.tar output.img\n"
38653 "\n"
38654 msgstr ""
38655
38656 #. type: verbatim
38657 #: ../tools/virt-make-fs.pl:43
38658 #, no-wrap
38659 msgid ""
38660 " virt-make-fs [--options] input.tar.gz output.img\n"
38661 "\n"
38662 msgstr ""
38663
38664 #. type: verbatim
38665 #: ../tools/virt-make-fs.pl:45
38666 #, no-wrap
38667 msgid ""
38668 " virt-make-fs [--options] directory output.img\n"
38669 "\n"
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../tools/virt-make-fs.pl:49
38674 msgid ""
38675 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38676 "archive or some files in a directory.  It is similar to tools like "
38677 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
38678 "it can create common filesystem types like ext2/3 or NTFS, which can be "
38679 "useful if you want to attach these filesystems to existing virtual machines "
38680 "(eg. to import large amounts of read-only data to a VM)."
38681 msgstr ""
38682
38683 #. type: textblock
38684 #: ../tools/virt-make-fs.pl:57
38685 msgid "Basic usage is:"
38686 msgstr ""
38687
38688 #. type: verbatim
38689 #: ../tools/virt-make-fs.pl:59
38690 #, no-wrap
38691 msgid ""
38692 " virt-make-fs input output\n"
38693 "\n"
38694 msgstr ""
38695
38696 #. type: textblock
38697 #: ../tools/virt-make-fs.pl:61
38698 msgid ""
38699 "where C<input> is either a directory containing files that you want to add, "
38700 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38701 "C<output> is a disk image.  The input type is detected automatically.  The "
38702 "output disk image defaults to a raw ext2 image unless you specify extra "
38703 "flags (see L</OPTIONS> below)."
38704 msgstr ""
38705
38706 #. type: =head2
38707 #: ../tools/virt-make-fs.pl:67
38708 msgid "EXTRA SPACE"
38709 msgstr ""
38710
38711 #. type: textblock
38712 #: ../tools/virt-make-fs.pl:69
38713 msgid ""
38714 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38715 "the files that it contains, but might have extra space.  Depending on how "
38716 "you are going to use the output, you might think this extra space is wasted "
38717 "and want to minimize it, or you might want to leave space so that more files "
38718 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38719 "but you can use the I<--size> flag to leave space in the filesystem if you "
38720 "want it."
38721 msgstr ""
38722
38723 #. type: textblock
38724 #: ../tools/virt-make-fs.pl:77
38725 msgid ""
38726 "An alternative way to leave extra space but not make the output image any "
38727 "bigger is to use an alternative disk image format (instead of the default "
38728 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38729 "image format (check your hypervisor supports this before using it).  This "
38730 "allows you to choose a large I<--size> but the extra space won't actually be "
38731 "allocated in the image until you try to store something in it."
38732 msgstr ""
38733
38734 #. type: textblock
38735 #: ../tools/virt-make-fs.pl:85
38736 msgid ""
38737 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38738 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38739 "to build another image from scratch."
38740 msgstr ""
38741
38742 #. type: =head3
38743 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
38744 msgid "EXAMPLE"
38745 msgstr ""
38746
38747 #. type: verbatim
38748 #: ../tools/virt-make-fs.pl:91
38749 #, no-wrap
38750 msgid ""
38751 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38752 "\n"
38753 msgstr ""
38754
38755 #. type: =head2
38756 #: ../tools/virt-make-fs.pl:93
38757 msgid "FILESYSTEM TYPE"
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../tools/virt-make-fs.pl:95
38762 msgid ""
38763 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38764 "libguestfs supports can be used (but I<not> read-only formats like "
38765 "ISO9660).  Here are some of the more common choices:"
38766 msgstr ""
38767
38768 #. type: =item
38769 #: ../tools/virt-make-fs.pl:101
38770 msgid "I<ext3>"
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../tools/virt-make-fs.pl:103
38775 msgid ""
38776 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38777 "you are not going to use the filesystem in a way that requires the journal, "
38778 "then this is just wasted overhead."
38779 msgstr ""
38780
38781 #. type: =item
38782 #: ../tools/virt-make-fs.pl:107
38783 msgid "I<ntfs> or I<vfat>"
38784 msgstr ""
38785
38786 #. type: textblock
38787 #: ../tools/virt-make-fs.pl:109
38788 msgid "Useful if exporting data to a Windows guest."
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../tools/virt-make-fs.pl:111
38793 msgid ""
38794 "I<Note for vfat>: The tar archive or local directory must only contain files "
38795 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38796 "program running within libguestfs is unable to change the ownership of "
38797 "non-root files, since vfat itself does not support this."
38798 msgstr ""
38799
38800 #. type: =item
38801 #: ../tools/virt-make-fs.pl:116
38802 msgid "I<minix>"
38803 msgstr ""
38804
38805 #. type: textblock
38806 #: ../tools/virt-make-fs.pl:118
38807 msgid ""
38808 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38809 "total filesystem size."
38810 msgstr ""
38811
38812 #. type: verbatim
38813 #: ../tools/virt-make-fs.pl:125
38814 #, no-wrap
38815 msgid ""
38816 " virt-make-fs --type=minix input minixfs.img\n"
38817 "\n"
38818 msgstr ""
38819
38820 #. type: =head2
38821 #: ../tools/virt-make-fs.pl:127
38822 msgid "TO PARTITION OR NOT TO PARTITION"
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../tools/virt-make-fs.pl:129
38827 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38828 msgstr ""
38829
38830 #. type: textblock
38831 #: ../tools/virt-make-fs.pl:131
38832 msgid ""
38833 "Adding a partition can make the disk image more compatible with certain "
38834 "virtualized operating systems which don't expect to see a filesystem "
38835 "directly located on a block device (Linux doesn't care and will happily "
38836 "handle both types)."
38837 msgstr ""
38838
38839 #. type: textblock
38840 #: ../tools/virt-make-fs.pl:136
38841 msgid ""
38842 "On the other hand, if you have a partition table then the output image is no "
38843 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38844 "directly on a partitioned disk image.  (However libguestfs tools such as "
38845 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38846 msgstr ""
38847
38848 #. type: textblock
38849 #: ../tools/virt-make-fs.pl:144
38850 msgid "Add an MBR partition:"
38851 msgstr ""
38852
38853 #. type: verbatim
38854 #: ../tools/virt-make-fs.pl:146
38855 #, no-wrap
38856 msgid ""
38857 " virt-make-fs --partition -- input disk.img\n"
38858 "\n"
38859 msgstr ""
38860
38861 #. type: textblock
38862 #: ../tools/virt-make-fs.pl:148
38863 msgid ""
38864 "If the output disk image could be terabyte-sized or larger, it's better to "
38865 "use an EFI/GPT-compatible partition table:"
38866 msgstr ""
38867
38868 #. type: verbatim
38869 #: ../tools/virt-make-fs.pl:151
38870 #, no-wrap
38871 msgid ""
38872 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38873 "\n"
38874 msgstr ""
38875
38876 #. type: textblock
38877 #: ../tools/virt-make-fs.pl:179
38878 msgid "Enable debugging information."
38879 msgstr ""
38880
38881 #. type: =item
38882 #: ../tools/virt-make-fs.pl:185
38883 msgid "B<--size=E<lt>NE<gt>>"
38884 msgstr ""
38885
38886 #. type: =item
38887 #: ../tools/virt-make-fs.pl:187
38888 msgid "B<--size=+E<lt>NE<gt>>"
38889 msgstr ""
38890
38891 #. type: =item
38892 #: ../tools/virt-make-fs.pl:189
38893 msgid "B<-s E<lt>NE<gt>>"
38894 msgstr ""
38895
38896 #. type: =item
38897 #: ../tools/virt-make-fs.pl:191
38898 msgid "B<-s +E<lt>NE<gt>>"
38899 msgstr ""
38900
38901 #. type: textblock
38902 #: ../tools/virt-make-fs.pl:193
38903 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
38904 msgstr ""
38905
38906 #. type: textblock
38907 #: ../tools/virt-make-fs.pl:196
38908 msgid ""
38909 "If this option is I<not> given, then the output image will be just large "
38910 "enough to contain all the files, with not much wasted space."
38911 msgstr ""
38912
38913 #. type: textblock
38914 #: ../tools/virt-make-fs.pl:199
38915 msgid ""
38916 "To choose a fixed size output disk, specify an absolute number followed by "
38917 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38918 "Petabytes or Exabytes.  This must be large enough to contain all the input "
38919 "files, else you will get an error."
38920 msgstr ""
38921
38922 #. type: textblock
38923 #: ../tools/virt-make-fs.pl:204
38924 msgid ""
38925 "To leave extra space, specify C<+> (plus sign) and a number followed by "
38926 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
38927 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
38928 "the input files, and (approximately) an extra 200 MB free space."
38929 msgstr ""
38930
38931 #. type: textblock
38932 #: ../tools/virt-make-fs.pl:210
38933 msgid ""
38934 "Note that virt-make-fs estimates free space, and therefore will not produce "
38935 "filesystems containing precisely the free space requested.  (It is much more "
38936 "expensive and time-consuming to produce a filesystem which has precisely the "
38937 "desired free space)."
38938 msgstr ""
38939
38940 #. type: =item
38941 #: ../tools/virt-make-fs.pl:219
38942 msgid "B<--format=E<lt>fmtE<gt>>"
38943 msgstr ""
38944
38945 #. type: =item
38946 #: ../tools/virt-make-fs.pl:221
38947 msgid "B<-F E<lt>fmtE<gt>>"
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../tools/virt-make-fs.pl:223
38952 msgid "Choose the output disk image format."
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../tools/virt-make-fs.pl:225
38957 msgid "The default is C<raw> (raw disk image)."
38958 msgstr ""
38959
38960 #. type: textblock
38961 #: ../tools/virt-make-fs.pl:227
38962 msgid ""
38963 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
38964 "that would really make sense here is C<qcow2>."
38965 msgstr ""
38966
38967 #. type: =item
38968 #: ../tools/virt-make-fs.pl:234
38969 msgid "B<--type=E<lt>fsE<gt>>"
38970 msgstr ""
38971
38972 #. type: =item
38973 #: ../tools/virt-make-fs.pl:236
38974 msgid "B<-t E<lt>fsE<gt>>"
38975 msgstr ""
38976
38977 #. type: textblock
38978 #: ../tools/virt-make-fs.pl:238
38979 msgid "Choose the output filesystem type."
38980 msgstr ""
38981
38982 #. type: textblock
38983 #: ../tools/virt-make-fs.pl:240
38984 msgid "The default is C<ext2>."
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../tools/virt-make-fs.pl:242
38989 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
38990 msgstr ""
38991
38992 #. type: =item
38993 #: ../tools/virt-make-fs.pl:249
38994 msgid "B<--partition>"
38995 msgstr ""
38996
38997 #. type: =item
38998 #: ../tools/virt-make-fs.pl:251
38999 msgid "B<--partition=E<lt>parttypeE<gt>>"
39000 msgstr ""
39001
39002 #. type: textblock
39003 #: ../tools/virt-make-fs.pl:253
39004 msgid ""
39005 "If specified, this flag adds an MBR partition table to the output disk "
39006 "image."
39007 msgstr ""
39008
39009 #. type: textblock
39010 #: ../tools/virt-make-fs.pl:256
39011 msgid ""
39012 "You can change the partition table type, eg. I<--partition=gpt> for large "
39013 "disks."
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../tools/virt-make-fs.pl:259
39018 msgid ""
39019 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39020 "might consider the next parameter to be the partition type.  For example:"
39021 msgstr ""
39022
39023 #. type: verbatim
39024 #: ../tools/virt-make-fs.pl:263
39025 #, no-wrap
39026 msgid ""
39027 " virt-make-fs --partition input.tar ...\n"
39028 "\n"
39029 msgstr ""
39030
39031 #. type: textblock
39032 #: ../tools/virt-make-fs.pl:265
39033 msgid ""
39034 "would cause virt-make-fs to think you wanted to use a partition type of "
39035 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39036 "dash) between options and the input file argument:"
39037 msgstr ""
39038
39039 #. type: verbatim
39040 #: ../tools/virt-make-fs.pl:269
39041 #, no-wrap
39042 msgid ""
39043 " virt-make-fs --partition -- input.tar ...\n"
39044 "\n"
39045 msgstr ""
39046
39047 #. type: textblock
39048 #: ../tools/virt-make-fs.pl:541
39049 msgid ""
39050 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39051 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
39052 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39053 msgstr ""
39054
39055 #. type: textblock
39056 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39057 msgid ""
39058 "When reporting bugs, please enable debugging and capture the I<complete> "
39059 "output:"
39060 msgstr ""
39061
39062 #. type: verbatim
39063 #: ../tools/virt-make-fs.pl:558
39064 #, no-wrap
39065 msgid ""
39066 " export LIBGUESTFS_DEBUG=1\n"
39067 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39068 "\n"
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../tools/virt-make-fs.pl:561
39073 msgid ""
39074 "Attach /tmp/virt-make-fs.log to a new bug report at "
39075 "L<https://bugzilla.redhat.com/>"
39076 msgstr ""
39077
39078 #. type: textblock
39079 #: ../tools/virt-tar.pl:33
39080 msgid "virt-tar - Extract or upload files to a virtual machine"
39081 msgstr ""
39082
39083 #. type: verbatim
39084 #: ../tools/virt-tar.pl:37
39085 #, no-wrap
39086 msgid ""
39087 " virt-tar [--options] -x domname directory tarball\n"
39088 "\n"
39089 msgstr ""
39090
39091 #. type: verbatim
39092 #: ../tools/virt-tar.pl:39
39093 #, no-wrap
39094 msgid ""
39095 " virt-tar [--options] -u domname tarball directory\n"
39096 "\n"
39097 msgstr ""
39098
39099 #. type: verbatim
39100 #: ../tools/virt-tar.pl:41
39101 #, no-wrap
39102 msgid ""
39103 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39104 "\n"
39105 msgstr ""
39106
39107 #. type: verbatim
39108 #: ../tools/virt-tar.pl:43
39109 #, no-wrap
39110 msgid ""
39111 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39112 "\n"
39113 msgstr ""
39114
39115 #. type: =head2
39116 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39117 msgid "NOTE"
39118 msgstr ""
39119
39120 #. type: textblock
39121 #: ../tools/virt-tar.pl:47
39122 msgid ""
39123 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
39124 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
39125 msgstr ""
39126
39127 #. type: textblock
39128 #: ../tools/virt-tar.pl:52
39129 msgid "Download C</home> from the VM into a local tarball:"
39130 msgstr ""
39131
39132 #. type: verbatim
39133 #: ../tools/virt-tar.pl:54
39134 #, no-wrap
39135 msgid ""
39136 " virt-tar -x domname /home home.tar\n"
39137 "\n"
39138 msgstr ""
39139
39140 #. type: verbatim
39141 #: ../tools/virt-tar.pl:56
39142 #, no-wrap
39143 msgid ""
39144 " virt-tar -zx domname /home home.tar.gz\n"
39145 "\n"
39146 msgstr ""
39147
39148 #. type: textblock
39149 #: ../tools/virt-tar.pl:58
39150 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39151 msgstr ""
39152
39153 #. type: verbatim
39154 #: ../tools/virt-tar.pl:60
39155 #, no-wrap
39156 msgid ""
39157 " virt-tar -u domname uploadstuff.tar /tmp\n"
39158 "\n"
39159 msgstr ""
39160
39161 #. type: verbatim
39162 #: ../tools/virt-tar.pl:62
39163 #, no-wrap
39164 msgid ""
39165 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39166 "\n"
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../tools/virt-tar.pl:66
39171 msgid ""
39172 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39173 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39174 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../tools/virt-tar.pl:71
39179 msgid ""
39180 "You can use I<-x> (extract) on live virtual machines, but you might get "
39181 "inconsistent results or errors if there is filesystem activity inside the "
39182 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39183 "work, but the only way to guarantee consistent results is if the virtual "
39184 "machine is shut down."
39185 msgstr ""
39186
39187 #. type: textblock
39188 #: ../tools/virt-tar.pl:79
39189 msgid ""
39190 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39191 "parts of a guest filesystem.  There are many possibilities: making backups, "
39192 "uploading data files, snooping on guest activity, fixing or customizing "
39193 "guests, etc."
39194 msgstr ""
39195
39196 #. type: textblock
39197 #: ../tools/virt-tar.pl:84
39198 msgid ""
39199 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39200 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39201 "should look at the L<guestfish(1)> tool."
39202 msgstr ""
39203
39204 #. type: textblock
39205 #: ../tools/virt-tar.pl:88
39206 msgid ""
39207 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39208 "its contents (recursively) from the virtual machine into a local tarball.  "
39209 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39210 "virtual machine.  You cannot use these two options together."
39211 msgstr ""
39212
39213 #. type: textblock
39214 #: ../tools/virt-tar.pl:94
39215 msgid ""
39216 "In addition, you may need to use the I<-z> (gZip) option to enable "
39217 "compression.  When uploading, you have to specify I<-z> if the upload file "
39218 "is compressed because virt-tar won't detect this on its own."
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../tools/virt-tar.pl:98
39223 msgid ""
39224 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39225 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39226 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39227 "the L<libguestfs(3)> API)."
39228 msgstr ""
39229
39230 #. type: =item
39231 #: ../tools/virt-tar.pl:160
39232 msgid "B<--extract>"
39233 msgstr ""
39234
39235 #. type: =item
39236 #: ../tools/virt-tar.pl:162
39237 msgid "B<--download>"
39238 msgstr ""
39239
39240 #. type: =item
39241 #: ../tools/virt-tar.pl:164
39242 msgid "B<-u>"
39243 msgstr ""
39244
39245 #. type: =item
39246 #: ../tools/virt-tar.pl:166
39247 msgid "B<--upload>"
39248 msgstr ""
39249
39250 #. type: textblock
39251 #: ../tools/virt-tar.pl:168
39252 msgid ""
39253 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39254 "local tarball."
39255 msgstr ""
39256
39257 #. type: textblock
39258 #: ../tools/virt-tar.pl:171
39259 msgid ""
39260 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39261 "Please read the L</WARNING> section above before using this option."
39262 msgstr ""
39263
39264 #. type: textblock
39265 #: ../tools/virt-tar.pl:175
39266 msgid "You must specify exactly one of these options."
39267 msgstr ""
39268
39269 #. type: =item
39270 #: ../tools/virt-tar.pl:181
39271 msgid "B<-z>"
39272 msgstr ""
39273
39274 #. type: =item
39275 #: ../tools/virt-tar.pl:183
39276 msgid "B<--gzip>"
39277 msgstr ""
39278
39279 #. type: textblock
39280 #: ../tools/virt-tar.pl:185
39281 msgid "Specify that the input or output tarball is gzip-compressed."
39282 msgstr ""
39283
39284 #. type: textblock
39285 #: ../tools/virt-tar.pl:298
39286 msgid ""
39287 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
39288 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39289 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
39290 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39291 msgstr ""
39292
39293 #. type: textblock
39294 #: ../tools/virt-win-reg.pl:37
39295 msgid ""
39296 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
39297 "guest"
39298 msgstr ""
39299
39300 #. type: verbatim
39301 #: ../tools/virt-win-reg.pl:41
39302 #, no-wrap
39303 msgid ""
39304 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39305 "\n"
39306 msgstr ""
39307
39308 #. type: verbatim
39309 #: ../tools/virt-win-reg.pl:43
39310 #, no-wrap
39311 msgid ""
39312 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39313 "\n"
39314 msgstr ""
39315
39316 #. type: verbatim
39317 #: ../tools/virt-win-reg.pl:45
39318 #, no-wrap
39319 msgid ""
39320 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39321 "\n"
39322 msgstr ""
39323
39324 #. type: verbatim
39325 #: ../tools/virt-win-reg.pl:47
39326 #, no-wrap
39327 msgid ""
39328 " virt-win-reg --merge domname [input.reg ...]\n"
39329 "\n"
39330 msgstr ""
39331
39332 #. type: verbatim
39333 #: ../tools/virt-win-reg.pl:49
39334 #, no-wrap
39335 msgid ""
39336 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39337 "\n"
39338 msgstr ""
39339
39340 #. type: textblock
39341 #: ../tools/virt-win-reg.pl:53
39342 msgid ""
39343 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39344 "virtual machines.  If you do this, you I<will> get irreversible disk "
39345 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39346 "but doesn't catch all cases."
39347 msgstr ""
39348
39349 #. type: textblock
39350 #: ../tools/virt-win-reg.pl:58
39351 msgid ""
39352 "Modifying the Windows Registry is an inherently risky operation.  The format "
39353 "is deliberately obscure and undocumented, and Registry changes can leave the "
39354 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39355 "you have a reliable backup first."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../tools/virt-win-reg.pl:65
39360 msgid ""
39361 "This program can export and merge Windows Registry entries from a Windows "
39362 "guest."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../tools/virt-win-reg.pl:68
39367 msgid ""
39368 "The first parameter is the libvirt guest name or the raw disk image of a "
39369 "Windows guest."
39370 msgstr ""
39371
39372 #. type: textblock
39373 #: ../tools/virt-win-reg.pl:71
39374 msgid ""
39375 "If I<--merge> is I<not> specified, then the chosen registry key is "
39376 "displayed/exported (recursively).  For example:"
39377 msgstr ""
39378
39379 #. type: verbatim
39380 #: ../tools/virt-win-reg.pl:74
39381 #, no-wrap
39382 msgid ""
39383 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39384 "\n"
39385 msgstr ""
39386
39387 #. type: textblock
39388 #: ../tools/virt-win-reg.pl:76
39389 msgid "You can also display single values from within registry keys, for example:"
39390 msgstr ""
39391
39392 #. type: verbatim
39393 #: ../tools/virt-win-reg.pl:79
39394 #, no-wrap
39395 msgid ""
39396 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39397 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39398 " Windows 7 Enterprise\n"
39399 "\n"
39400 msgstr ""
39401
39402 #. type: textblock
39403 #: ../tools/virt-win-reg.pl:83
39404 msgid ""
39405 "With I<--merge>, you can merge a textual regedit file into the Windows "
39406 "Registry:"
39407 msgstr ""
39408
39409 #. type: verbatim
39410 #: ../tools/virt-win-reg.pl:86
39411 #, no-wrap
39412 msgid ""
39413 " $ virt-win-reg --merge Windows7 changes.reg\n"
39414 "\n"
39415 msgstr ""
39416
39417 #. type: textblock
39418 #: ../tools/virt-win-reg.pl:90
39419 msgid ""
39420 "This program is only meant for simple access to the registry.  If you want "
39421 "to do complicated things with the registry, we suggest you download the "
39422 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39423 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39424 "L<hivexregedit(1)>."
39425 msgstr ""
39426
39427 #. type: =item
39428 #: ../tools/virt-win-reg.pl:159
39429 msgid "B<--merge>"
39430 msgstr ""
39431
39432 #. type: textblock
39433 #: ../tools/virt-win-reg.pl:161
39434 msgid ""
39435 "In merge mode, this merges a textual regedit file into the Windows Registry "
39436 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39437 "displays or exports Registry entries instead."
39438 msgstr ""
39439
39440 #. type: textblock
39441 #: ../tools/virt-win-reg.pl:165
39442 msgid ""
39443 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39444 "result in disk corruption.  However exporting (without this flag)  is always "
39445 "safe."
39446 msgstr ""
39447
39448 #. type: =item
39449 #: ../tools/virt-win-reg.pl:173
39450 msgid "B<--encoding> UTF-16LE|ASCII"
39451 msgstr ""
39452
39453 #. type: textblock
39454 #: ../tools/virt-win-reg.pl:175
39455 msgid ""
39456 "When merging (only), you may need to specify the encoding for strings to be "
39457 "used in the hive file.  This is explained in detail in "
39458 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
39459 msgstr ""
39460
39461 #. type: textblock
39462 #: ../tools/virt-win-reg.pl:179
39463 msgid ""
39464 "The default is to use UTF-16LE, which should work with recent versions of "
39465 "Windows."
39466 msgstr ""
39467
39468 #. type: =item
39469 #: ../tools/virt-win-reg.pl:186
39470 msgid "B<--unsafe-printable-strings>"
39471 msgstr ""
39472
39473 #. type: textblock
39474 #: ../tools/virt-win-reg.pl:188
39475 msgid ""
39476 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39477 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39478 "present."
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../tools/virt-win-reg.pl:192
39483 msgid ""
39484 "This is unsafe and does not preserve the fidelity of strings in the original "
39485 "Registry for various reasons:"
39486 msgstr ""
39487
39488 #. type: textblock
39489 #: ../tools/virt-win-reg.pl:199
39490 msgid ""
39491 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39492 "other encodings will be corrupted by this transformation."
39493 msgstr ""
39494
39495 #. type: textblock
39496 #: ../tools/virt-win-reg.pl:204
39497 msgid ""
39498 "Assumes that everything which has type 1 or 2 is really a string and that "
39499 "everything else is not a string, but the type field in real Registries is "
39500 "not reliable."
39501 msgstr ""
39502
39503 #. type: textblock
39504 #: ../tools/virt-win-reg.pl:210
39505 msgid ""
39506 "Loses information about whether a zero codepoint followed the string in the "
39507 "Registry or not."
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../tools/virt-win-reg.pl:215
39512 msgid ""
39513 "This all happens because the Registry itself contains no information about "
39514 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../tools/virt-win-reg.pl:219
39519 msgid ""
39520 "You should only use this option for quick hacking and debugging of the "
39521 "Registry contents, and I<never> use it if the output is going to be passed "
39522 "into another program or stored in another Registry."
39523 msgstr ""
39524
39525 #. type: =head1
39526 #: ../tools/virt-win-reg.pl:556
39527 msgid "SUPPORTED SYSTEMS"
39528 msgstr ""
39529
39530 #. type: textblock
39531 #: ../tools/virt-win-reg.pl:558
39532 msgid ""
39533 "The program currently supports Windows NT-derived guests starting with "
39534 "Windows XP through to at least Windows 7."
39535 msgstr ""
39536
39537 #. type: textblock
39538 #: ../tools/virt-win-reg.pl:561
39539 msgid "The following Registry keys are supported:"
39540 msgstr ""
39541
39542 #. type: =item
39543 #: ../tools/virt-win-reg.pl:565
39544 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39545 msgstr ""
39546
39547 #. type: =item
39548 #: ../tools/virt-win-reg.pl:567
39549 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39550 msgstr ""
39551
39552 #. type: =item
39553 #: ../tools/virt-win-reg.pl:569
39554 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39555 msgstr ""
39556
39557 #. type: =item
39558 #: ../tools/virt-win-reg.pl:571
39559 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39560 msgstr ""
39561
39562 #. type: =item
39563 #: ../tools/virt-win-reg.pl:573
39564 msgid "C<HKEY_USERS\\.DEFAULT>"
39565 msgstr ""
39566
39567 #. type: =item
39568 #: ../tools/virt-win-reg.pl:575
39569 msgid "C<HKEY_USERS\\I<SID>>"
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../tools/virt-win-reg.pl:577
39574 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39575 msgstr ""
39576
39577 #. type: =item
39578 #: ../tools/virt-win-reg.pl:579
39579 msgid "C<HKEY_USERS\\I<username>>"
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../tools/virt-win-reg.pl:581
39584 msgid "where I<username> is a local user name (this is a libguestfs extension)."
39585 msgstr ""
39586
39587 #. type: textblock
39588 #: ../tools/virt-win-reg.pl:585
39589 msgid ""
39590 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39591 "C<HKEY_USERS>."
39592 msgstr ""
39593
39594 #. type: textblock
39595 #: ../tools/virt-win-reg.pl:588
39596 msgid ""
39597 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39598 "supported (there is no \"current user\")."
39599 msgstr ""
39600
39601 #. type: =head1
39602 #: ../tools/virt-win-reg.pl:591
39603 msgid "ENCODING"
39604 msgstr ""
39605
39606 #. type: textblock
39607 #: ../tools/virt-win-reg.pl:593
39608 msgid ""
39609 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39610 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
39611 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
39612 "with Windows-style line endings, you may need to reencode the whole file "
39613 "before or after processing."
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../tools/virt-win-reg.pl:599
39618 msgid ""
39619 "To reencode a file from Windows format to Linux (before processing it with "
39620 "the I<--merge> option), you would do something like this:"
39621 msgstr ""
39622
39623 #. type: verbatim
39624 #: ../tools/virt-win-reg.pl:602
39625 #, no-wrap
39626 msgid ""
39627 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39628 "\n"
39629 msgstr ""
39630
39631 #. type: textblock
39632 #: ../tools/virt-win-reg.pl:604
39633 msgid ""
39634 "To go in the opposite direction, after exporting and before sending the file "
39635 "to a Windows user, do something like this:"
39636 msgstr ""
39637
39638 #. type: verbatim
39639 #: ../tools/virt-win-reg.pl:607
39640 #, no-wrap
39641 msgid ""
39642 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39643 "\n"
39644 msgstr ""
39645
39646 #. type: textblock
39647 #: ../tools/virt-win-reg.pl:609
39648 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39649 msgstr ""
39650
39651 #. type: textblock
39652 #: ../tools/virt-win-reg.pl:611
39653 msgid ""
39654 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39655 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
39656 "Windows-style (CRLF) line endings, like this:"
39657 msgstr ""
39658
39659 #. type: verbatim
39660 #: ../tools/virt-win-reg.pl:615
39661 #, no-wrap
39662 msgid ""
39663 " $ file software.reg\n"
39664 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39665 " with CRLF line terminators\n"
39666 "\n"
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../tools/virt-win-reg.pl:619
39671 msgid "This file would need conversion before you could I<--merge> it."
39672 msgstr ""
39673
39674 #. type: =head1
39675 #: ../tools/virt-win-reg.pl:621
39676 msgid "CurrentControlSet etc."
39677 msgstr ""
39678
39679 #. type: textblock
39680 #: ../tools/virt-win-reg.pl:623
39681 msgid ""
39682 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39683 "Registry at the level of the hive file, and therefore you cannot modify "
39684 "these."
39685 msgstr ""
39686
39687 #. type: textblock
39688 #: ../tools/virt-win-reg.pl:627
39689 msgid ""
39690 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39691 "circumstances it might refer to another control set.  The way to find out is "
39692 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39693 msgstr ""
39694
39695 #. type: verbatim
39696 #: ../tools/virt-win-reg.pl:631
39697 #, no-wrap
39698 msgid ""
39699 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39700 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39701 " \"Current\"=dword:00000001\n"
39702 " \"Default\"=dword:00000001\n"
39703 " \"Failed\"=dword:00000000\n"
39704 " \"LastKnownGood\"=dword:00000002\n"
39705 "\n"
39706 msgstr ""
39707
39708 #. type: textblock
39709 #: ../tools/virt-win-reg.pl:638
39710 msgid "\"Current\" is the one which Windows will choose when it boots."
39711 msgstr ""
39712
39713 #. type: textblock
39714 #: ../tools/virt-win-reg.pl:640
39715 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
39716 msgstr ""
39717
39718 #. type: =head1
39719 #: ../tools/virt-win-reg.pl:643
39720 msgid "WINDOWS TIPS"
39721 msgstr ""
39722
39723 #. type: textblock
39724 #: ../tools/virt-win-reg.pl:645
39725 msgid ""
39726 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39727 "be shut off, else you will get disk corruption."
39728 msgstr ""
39729
39730 #. type: =head2
39731 #: ../tools/virt-win-reg.pl:648
39732 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39733 msgstr ""
39734
39735 #. type: textblock
39736 #: ../tools/virt-win-reg.pl:650
39737 msgid ""
39738 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39739 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39740 "is uploaded into C<C:\\>:"
39741 msgstr ""
39742
39743 #. type: verbatim
39744 #: ../tools/virt-win-reg.pl:654
39745 #, no-wrap
39746 msgid ""
39747 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39748 "\n"
39749 msgstr ""
39750
39751 #. type: textblock
39752 #: ../tools/virt-win-reg.pl:656
39753 msgid "Prepare a regedit file containing the registry change:"
39754 msgstr ""
39755
39756 #. type: verbatim
39757 #: ../tools/virt-win-reg.pl:658
39758 #, no-wrap
39759 msgid ""
39760 " cat > test.reg <<'EOF'\n"
39761 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39762 " \"Test\"=\"c:\\\\test.bat\"\n"
39763 " EOF\n"
39764 "\n"
39765 msgstr ""
39766
39767 #. type: textblock
39768 #: ../tools/virt-win-reg.pl:663
39769 msgid ""
39770 "In this example we use the key C<RunOnce> which means that the script will "
39771 "run precisely once when the first user logs in.  If you want it to run every "
39772 "time a user logs in, replace C<RunOnce> with C<Run>."
39773 msgstr ""
39774
39775 #. type: textblock
39776 #: ../tools/virt-win-reg.pl:667
39777 msgid "Now update the registry:"
39778 msgstr ""
39779
39780 #. type: verbatim
39781 #: ../tools/virt-win-reg.pl:669
39782 #, no-wrap
39783 msgid ""
39784 " virt-win-reg --merge WindowsGuest test.reg\n"
39785 "\n"
39786 msgstr ""
39787
39788 #. type: =head2
39789 #: ../tools/virt-win-reg.pl:671
39790 msgid "INSTALLING A SERVICE"
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../tools/virt-win-reg.pl:673
39795 msgid ""
39796 "This section assumes you are familiar with Windows services, and you either "
39797 "have a program which handles the Windows Service Control Protocol directly "
39798 "or you want to run any program using a service wrapper like SrvAny or the "
39799 "free RHSrvAny."
39800 msgstr ""
39801
39802 #. type: textblock
39803 #: ../tools/virt-win-reg.pl:678
39804 msgid ""
39805 "First upload the program and optionally the service wrapper.  In this case "
39806 "the test program is called C<test.exe> and we are using the RHSrvAny "
39807 "wrapper:"
39808 msgstr ""
39809
39810 #. type: verbatim
39811 #: ../tools/virt-win-reg.pl:682
39812 #, no-wrap
39813 msgid ""
39814 " guestfish -i -d WindowsGuest <<EOF\n"
39815 "   upload rhsrvany.exe /rhsrvany.exe\n"
39816 "   upload test.exe /test.exe\n"
39817 " EOF\n"
39818 "\n"
39819 msgstr ""
39820
39821 #. type: textblock
39822 #: ../tools/virt-win-reg.pl:687
39823 msgid ""
39824 "Prepare a regedit file containing the registry changes.  In this example, "
39825 "the first registry change is needed for the service itself or the service "
39826 "wrapper (if used).  The second registry change is only needed because I am "
39827 "using the RHSrvAny service wrapper."
39828 msgstr ""
39829
39830 #. type: verbatim
39831 #: ../tools/virt-win-reg.pl:692
39832 #, no-wrap
39833 msgid ""
39834 " cat > service.reg <<'EOF'\n"
39835 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39836 " \"Type\"=dword:00000010\n"
39837 " \"Start\"=dword:00000002\n"
39838 " \"ErrorControl\"=dword:00000001\n"
39839 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39840 " \"DisplayName\"=\"RHSrvAny\"\n"
39841 " \"ObjectName\"=\"NetworkService\"\n"
39842 " \n"
39843 msgstr ""
39844
39845 #. type: verbatim
39846 #: ../tools/virt-win-reg.pl:701
39847 #, no-wrap
39848 msgid ""
39849 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39850 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39851 " \"PWD\"=\"c:\\\\Temp\"\n"
39852 " EOF\n"
39853 "\n"
39854 msgstr ""
39855
39856 #. type: textblock
39857 #: ../tools/virt-win-reg.pl:712
39858 msgid ""
39859 "For use of C<ControlSet001> see the section above in this manual page.  You "
39860 "may need to adjust this according to the control set that is in use by the "
39861 "guest."
39862 msgstr ""
39863
39864 #. type: textblock
39865 #: ../tools/virt-win-reg.pl:718
39866 msgid ""
39867 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
39868 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
39869 "privileged account."
39870 msgstr ""
39871
39872 #. type: textblock
39873 #: ../tools/virt-win-reg.pl:724
39874 msgid ""
39875 "For the meaning of the magic numbers, see this Microsoft KB article: "
39876 "L<http://support.microsoft.com/kb/103000>."
39877 msgstr ""
39878
39879 #. type: textblock
39880 #: ../tools/virt-win-reg.pl:729
39881 msgid "Update the registry:"
39882 msgstr ""
39883
39884 #. type: verbatim
39885 #: ../tools/virt-win-reg.pl:731
39886 #, no-wrap
39887 msgid ""
39888 " virt-win-reg --merge WindowsGuest service.reg\n"
39889 "\n"
39890 msgstr ""
39891
39892 #. type: textblock
39893 #: ../tools/virt-win-reg.pl:735
39894 msgid ""
39895 "Be careful when passing parameters containing C<\\> (backslash) in the "
39896 "shell.  Usually you will have to use 'single quotes' or double backslashes "
39897 "(but not both) to protect them from the shell."
39898 msgstr ""
39899
39900 #. type: textblock
39901 #: ../tools/virt-win-reg.pl:739
39902 msgid "Paths and value names are case-insensitive."
39903 msgstr ""
39904
39905 #. type: textblock
39906 #: ../tools/virt-win-reg.pl:748
39907 msgid ""
39908 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
39909 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
39910 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
39911 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39912 msgstr ""
39913
39914 #. type: verbatim
39915 #: ../tools/virt-win-reg.pl:766
39916 #, no-wrap
39917 msgid ""
39918 " export LIBGUESTFS_DEBUG=1\n"
39919 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
39920 "\n"
39921 msgstr ""
39922
39923 #. type: textblock
39924 #: ../tools/virt-win-reg.pl:769
39925 msgid ""
39926 "Attach /tmp/virt-win-reg.log to a new bug report at "
39927 "L<https://bugzilla.redhat.com/>"
39928 msgstr ""