Version 1.13.16.
[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.16\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-01 14:27+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 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.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 ../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 #: ../cat/virt-cat.pod:5
27 msgid "virt-cat - Display files in a virtual machine"
28 msgstr ""
29
30 #. type: =head1
31 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.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 ../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 #: ../cat/virt-cat.pod:9
37 #, no-wrap
38 msgid ""
39 " virt-cat [--options] -d domname file [file ...]\n"
40 "\n"
41 msgstr ""
42
43 #. type: verbatim
44 #: ../cat/virt-cat.pod:11
45 #, no-wrap
46 msgid ""
47 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
48 "\n"
49 msgstr ""
50
51 #. type: textblock
52 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15 ../inspector/virt-inspector.pod:13
53 msgid "Old-style:"
54 msgstr ""
55
56 #. type: verbatim
57 #: ../cat/virt-cat.pod:15
58 #, no-wrap
59 msgid ""
60 " virt-cat domname file\n"
61 "\n"
62 msgstr ""
63
64 #. type: verbatim
65 #: ../cat/virt-cat.pod:17
66 #, no-wrap
67 msgid ""
68 " virt-cat disk.img file\n"
69 "\n"
70 msgstr ""
71
72 #. type: =head1
73 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../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 ../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
74 msgid "DESCRIPTION"
75 msgstr ""
76
77 #. type: textblock
78 #: ../cat/virt-cat.pod:21
79 msgid ""
80 "C<virt-cat> is a command line tool to display the contents of C<file> where "
81 "C<file> exists in the named virtual machine (or disk image)."
82 msgstr ""
83
84 #. type: textblock
85 #: ../cat/virt-cat.pod:24
86 msgid ""
87 "Multiple filenames can be given, in which case they are concatenated "
88 "together.  Each filename must be a full path, starting at the root directory "
89 "(starting with '/')."
90 msgstr ""
91
92 #. type: textblock
93 #: ../cat/virt-cat.pod:28
94 msgid ""
95 "C<virt-cat> can be used to quickly view a file.  To edit a file, use "
96 "C<virt-edit>.  For more complex cases you should look at the L<guestfish(1)> "
97 "tool (see L</USING GUESTFISH> below)."
98 msgstr ""
99
100 #. type: =head1
101 #: ../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:1018 ../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 ../tools/virt-tar.pl:50
102 msgid "EXAMPLES"
103 msgstr ""
104
105 #. type: textblock
106 #: ../cat/virt-cat.pod:34
107 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
108 msgstr ""
109
110 #. type: verbatim
111 #: ../cat/virt-cat.pod:37
112 #, no-wrap
113 msgid ""
114 " virt-cat -d mydomain /etc/fstab\n"
115 "\n"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:39
120 msgid "List syslog messages from a VM disk image file:"
121 msgstr ""
122
123 #. type: verbatim
124 #: ../cat/virt-cat.pod:41
125 #, no-wrap
126 msgid ""
127 " virt-cat -a disk.img /var/log/messages | tail\n"
128 "\n"
129 msgstr ""
130
131 #. type: textblock
132 #: ../cat/virt-cat.pod:43
133 msgid "Find out what DHCP IP address a VM acquired:"
134 msgstr ""
135
136 #. type: verbatim
137 #: ../cat/virt-cat.pod:45
138 #, no-wrap
139 msgid ""
140 " virt-cat -d mydomain /var/log/messages | \\\n"
141 "   grep 'dhclient: bound to' | tail\n"
142 "\n"
143 msgstr ""
144
145 #. type: textblock
146 #: ../cat/virt-cat.pod:48
147 msgid "Find out what packages were recently installed:"
148 msgstr ""
149
150 #. type: verbatim
151 #: ../cat/virt-cat.pod:50
152 #, no-wrap
153 msgid ""
154 " virt-cat -d mydomain /var/log/yum.log | tail\n"
155 "\n"
156 msgstr ""
157
158 #. type: textblock
159 #: ../cat/virt-cat.pod:52
160 msgid "Find out who is logged on inside a virtual machine:"
161 msgstr ""
162
163 #. type: verbatim
164 #: ../cat/virt-cat.pod:54
165 #, no-wrap
166 msgid ""
167 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
168 " who /tmp/utmp\n"
169 "\n"
170 msgstr ""
171
172 #. type: textblock
173 #: ../cat/virt-cat.pod:57
174 msgid "or who was logged on:"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../cat/virt-cat.pod:59
179 #, no-wrap
180 msgid ""
181 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
182 " last -f /tmp/wtmp\n"
183 "\n"
184 msgstr ""
185
186 #. type: =head1
187 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../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 ../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
188 msgid "OPTIONS"
189 msgstr ""
190
191 #. type: =item
192 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../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 ../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
193 msgid "B<--help>"
194 msgstr ""
195
196 #. type: textblock
197 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../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
198 msgid "Display brief help."
199 msgstr ""
200
201 #. type: =item
202 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
203 msgid "B<-a> file"
204 msgstr ""
205
206 #. type: =item
207 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
208 msgid "B<--add> file"
209 msgstr ""
210
211 #. type: textblock
212 #: ../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
213 msgid ""
214 "Add I<file> which should be a disk image from a virtual machine.  If the "
215 "virtual machine has multiple block devices, you must supply all of them with "
216 "separate I<-a> options."
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../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
221 msgid ""
222 "The format of the disk image is auto-detected.  To override this and force a "
223 "particular format use the I<--format=..> option."
224 msgstr ""
225
226 #. type: =item
227 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
228 msgid "B<-c> URI"
229 msgstr ""
230
231 #. type: =item
232 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
233 msgid "B<--connect> URI"
234 msgstr ""
235
236 #. type: textblock
237 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../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
238 msgid ""
239 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
240 "to the default libvirt hypervisor."
241 msgstr ""
242
243 #. type: textblock
244 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
245 msgid ""
246 "If you specify guest block devices directly (I<-a>), then libvirt is not "
247 "used at all."
248 msgstr ""
249
250 #. type: =item
251 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
252 msgid "B<-d> guest"
253 msgstr ""
254
255 #. type: =item
256 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
257 msgid "B<--domain> guest"
258 msgstr ""
259
260 #. type: textblock
261 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
262 msgid ""
263 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
264 "instead of names."
265 msgstr ""
266
267 #. type: =item
268 #: ../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
269 msgid "B<--echo-keys>"
270 msgstr ""
271
272 #. type: textblock
273 #: ../cat/virt-cat.pod:100
274 msgid ""
275 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
276 "so you cannot see what you are typing.  If you are not worried about Tempest "
277 "attacks and there is no one else in the room you can specify this flag to "
278 "see what you are typing."
279 msgstr ""
280
281 #. type: =item
282 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
283 msgid "B<--format=raw|qcow2|..>"
284 msgstr ""
285
286 #. type: =item
287 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../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
288 msgid "B<--format>"
289 msgstr ""
290
291 #. type: textblock
292 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
293 msgid ""
294 "The default for the I<-a> option is to auto-detect the format of the disk "
295 "image.  Using this forces the disk format for I<-a> options which follow on "
296 "the command line.  Using I<--format> with no argument switches back to "
297 "auto-detection for subsequent I<-a> options."
298 msgstr ""
299
300 #. type: textblock
301 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../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:2791
302 msgid "For example:"
303 msgstr ""
304
305 #. type: verbatim
306 #: ../cat/virt-cat.pod:116
307 #, no-wrap
308 msgid ""
309 " virt-cat --format=raw -a disk.img file\n"
310 "\n"
311 msgstr ""
312
313 #. type: textblock
314 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
315 msgid "forces raw format (no auto-detection) for C<disk.img>."
316 msgstr ""
317
318 #. type: verbatim
319 #: ../cat/virt-cat.pod:120
320 #, no-wrap
321 msgid ""
322 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
323 "\n"
324 msgstr ""
325
326 #. type: textblock
327 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
328 msgid ""
329 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
330 "auto-detection for C<another.img>."
331 msgstr ""
332
333 #. type: textblock
334 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
335 msgid ""
336 "If you have untrusted raw-format guest disk images, you should use this "
337 "option to specify the disk format.  This avoids a possible security problem "
338 "with malicious guests (CVE-2010-3851)."
339 msgstr ""
340
341 #. type: =item
342 #: ../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
343 msgid "B<--keys-from-stdin>"
344 msgstr ""
345
346 #. type: textblock
347 #: ../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
348 msgid ""
349 "Read key or passphrase parameters from stdin.  The default is to try to read "
350 "passphrases from the user by opening C</dev/tty>."
351 msgstr ""
352
353 #. type: =item
354 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../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
355 msgid "B<-v>"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../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
360 msgid "B<--verbose>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
365 msgid "Enable verbose messages for debugging."
366 msgstr ""
367
368 #. type: =item
369 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../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
370 msgid "B<-V>"
371 msgstr ""
372
373 #. type: =item
374 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../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 ../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
375 msgid "B<--version>"
376 msgstr ""
377
378 #. type: textblock
379 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435 ../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 ../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
380 msgid "Display version number and exit."
381 msgstr ""
382
383 #. type: =item
384 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../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 ../tools/virt-tar.pl:158
385 msgid "B<-x>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
390 msgid "Enable tracing of libguestfs API calls."
391 msgstr ""
392
393 #. type: =head1
394 #: ../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
395 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
396 msgstr ""
397
398 #. type: textblock
399 #: ../cat/virt-cat.pod:154
400 msgid "Previous versions of virt-cat allowed you to write either:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../cat/virt-cat.pod:156
405 #, no-wrap
406 msgid ""
407 " virt-cat disk.img [disk.img ...] file\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../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
413 msgid "or"
414 msgstr ""
415
416 #. type: verbatim
417 #: ../cat/virt-cat.pod:160
418 #, no-wrap
419 msgid ""
420 " virt-cat guestname file\n"
421 "\n"
422 msgstr ""
423
424 #. type: textblock
425 #: ../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
426 msgid ""
427 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
428 "the confusing case where a disk image might have the same name as a guest."
429 msgstr ""
430
431 #. type: textblock
432 #: ../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
433 msgid "For compatibility the old style is still supported."
434 msgstr ""
435
436 #. type: =head1
437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
438 msgid "USING GUESTFISH"
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:170
443 msgid ""
444 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
445 "C<virt-cat> doesn't work."
446 msgstr ""
447
448 #. type: textblock
449 #: ../cat/virt-cat.pod:173
450 msgid "Using C<virt-cat> is approximately equivalent to doing:"
451 msgstr ""
452
453 #. type: verbatim
454 #: ../cat/virt-cat.pod:175
455 #, no-wrap
456 msgid ""
457 " guestfish --ro -i -d domname download file -\n"
458 "\n"
459 msgstr ""
460
461 #. type: textblock
462 #: ../cat/virt-cat.pod:177
463 msgid ""
464 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
465 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
466 msgstr ""
467
468 #. type: textblock
469 #: ../cat/virt-cat.pod:181
470 msgid ""
471 "The command above uses libguestfs's guest inspection feature and so does not "
472 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
473 "disk images that don't contain guests.  To display a file from a disk image "
474 "directly, use:"
475 msgstr ""
476
477 #. type: verbatim
478 #: ../cat/virt-cat.pod:186
479 #, no-wrap
480 msgid ""
481 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
482 "\n"
483 msgstr ""
484
485 #. type: textblock
486 #: ../cat/virt-cat.pod:188
487 msgid ""
488 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
489 "the disk image, and C<file> is the full path to the file."
490 msgstr ""
491
492 #. type: =head1
493 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../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
494 msgid "SHELL QUOTING"
495 msgstr ""
496
497 #. type: textblock
498 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../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
499 msgid ""
500 "Libvirt guest names can contain arbitrary characters, some of which have "
501 "meaning to the shell such as C<#> and space.  You may need to quote or "
502 "escape these characters on the command line.  See the shell manual page "
503 "L<sh(1)> for details."
504 msgstr ""
505
506 #. type: =head1
507 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608 ../test-tool/libguestfs-test-tool.pod:90
508 msgid "EXIT STATUS"
509 msgstr ""
510
511 #. type: textblock
512 #: ../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
513 msgid "This program returns 0 if successful, or non-zero if there was an error."
514 msgstr ""
515
516 #. type: =head1
517 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495 ../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:1235 ../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 ../src/guestfs.pod:3167 ../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
518 msgid "SEE ALSO"
519 msgstr ""
520
521 #. type: textblock
522 #: ../cat/virt-cat.pod:205
523 msgid ""
524 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
525 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
526 msgstr ""
527
528 #. type: =head1
529 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:634 ../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
530 msgid "AUTHOR"
531 msgstr ""
532
533 #. type: textblock
534 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:636 ../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
535 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
536 msgstr ""
537
538 #. type: =head1
539 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511 ../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:1264 ../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:638 ../ruby/examples/guestfs-ruby.pod:52 ../src/guestfs.pod:3244 ../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
540 msgid "COPYRIGHT"
541 msgstr ""
542
543 #. type: textblock
544 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405 ../resize/virt-resize.pod:640
545 msgid "Copyright (C) 2010-2011 Red Hat Inc."
546 msgstr ""
547
548 #. type: textblock
549 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1269 ../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:642 ../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
550 msgid ""
551 "This program is free software; you can redistribute it and/or modify it "
552 "under the terms of the GNU General Public License as published by the Free "
553 "Software Foundation; either version 2 of the License, or (at your option) "
554 "any later version."
555 msgstr ""
556
557 #. type: textblock
558 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1274 ../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:647 ../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
559 msgid ""
560 "This program is distributed in the hope that it will be useful, but WITHOUT "
561 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
562 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
563 "more details."
564 msgstr ""
565
566 #. type: textblock
567 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1279 ../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:652 ../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
568 msgid ""
569 "You should have received a copy of the GNU General Public License along with "
570 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
571 "Ave, Cambridge, MA 02139, USA."
572 msgstr ""
573
574 #. type: textblock
575 #: ../cat/virt-filesystems.pod:5
576 msgid ""
577 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
578 "virtual machine or disk image"
579 msgstr ""
580
581 #. type: verbatim
582 #: ../cat/virt-filesystems.pod:9
583 #, no-wrap
584 msgid ""
585 " virt-filesystems [--options] -d domname\n"
586 "\n"
587 msgstr ""
588
589 #. type: verbatim
590 #: ../cat/virt-filesystems.pod:11
591 #, no-wrap
592 msgid ""
593 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
594 "\n"
595 msgstr ""
596
597 #. type: textblock
598 #: ../cat/virt-filesystems.pod:15
599 msgid ""
600 "This tool allows you to discover filesystems, partitions, logical volumes, "
601 "and their sizes in a disk image or virtual machine.  It is a replacement for "
602 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
603 msgstr ""
604
605 #. type: textblock
606 #: ../cat/virt-filesystems.pod:20
607 msgid ""
608 "One use for this tool is from shell scripts to iterate over all filesystems "
609 "from a disk image:"
610 msgstr ""
611
612 #. type: verbatim
613 #: ../cat/virt-filesystems.pod:23
614 #, no-wrap
615 msgid ""
616 " for fs in $(virt-filesystems -a disk.img); do\n"
617 "   # ...\n"
618 " done\n"
619 "\n"
620 msgstr ""
621
622 #. type: textblock
623 #: ../cat/virt-filesystems.pod:27
624 msgid ""
625 "Another use is to list partitions before using another tool to modify those "
626 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
627 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
628 msgstr ""
629
630 #. type: textblock
631 #: ../cat/virt-filesystems.pod:32
632 msgid ""
633 "Various command line options control what this program displays.  You need "
634 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
635 "guest respectively.  If you just specify that then the program shows "
636 "filesystems found, one per line, like this:"
637 msgstr ""
638
639 #. type: verbatim
640 #: ../cat/virt-filesystems.pod:37
641 #, no-wrap
642 msgid ""
643 " $ virt-filesystems -a disk.img\n"
644 " /dev/sda1\n"
645 " /dev/vg_guest/lv_root\n"
646 "\n"
647 msgstr ""
648
649 #. type: textblock
650 #: ../cat/virt-filesystems.pod:41
651 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
652 msgstr ""
653
654 #. type: verbatim
655 #: ../cat/virt-filesystems.pod:44
656 #, no-wrap
657 msgid ""
658 " $ virt-filesystems -a disk.img -l\n"
659 " Name                   Type         VFS   Label  Size\n"
660 " /dev/sda1              filesystem   ext4  boot   524288000\n"
661 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
662 "\n"
663 msgstr ""
664
665 #. type: textblock
666 #: ../cat/virt-filesystems.pod:49
667 msgid ""
668 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
669 "shown as well:"
670 msgstr ""
671
672 #. type: verbatim
673 #: ../cat/virt-filesystems.pod:52
674 #, no-wrap
675 msgid ""
676 " $ virt-filesystems -a disk.img --extra\n"
677 " /dev/sda1\n"
678 " /dev/vg_guest/lv_root\n"
679 " /dev/vg_guest/lv_swap\n"
680 " /dev/vg_guest/lv_data\n"
681 "\n"
682 msgstr ""
683
684 #. type: textblock
685 #: ../cat/virt-filesystems.pod:58
686 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
687 msgstr ""
688
689 #. type: verbatim
690 #: ../cat/virt-filesystems.pod:60
691 #, no-wrap
692 msgid ""
693 " $ virt-filesystems -a disk.img --partitions\n"
694 " /dev/sda1\n"
695 " /dev/sda2\n"
696 "\n"
697 msgstr ""
698
699 #. type: textblock
700 #: ../cat/virt-filesystems.pod:64
701 msgid ""
702 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
703 "I<--physical-volumes>, I<--block-devices> to list those items."
704 msgstr ""
705
706 #. type: textblock
707 #: ../cat/virt-filesystems.pod:67
708 msgid ""
709 "You can use these options in combination as well (if you want a combination "
710 "including filesystems, you have to add I<--filesystems>).  Notice that some "
711 "items fall into several categories (eg. C</dev/sda1> might be both a "
712 "partition and a filesystem).  These items are listed several times.  To get "
713 "a list which includes absolutely everything that virt-filesystems knows "
714 "about, use the I<--all> option."
715 msgstr ""
716
717 #. type: textblock
718 #: ../cat/virt-filesystems.pod:74
719 msgid ""
720 "UUIDs (because they are quite long) are not shown by default.  Add the "
721 "I<--uuid> option to display device and filesystem UUIDs in the long output."
722 msgstr ""
723
724 #. type: textblock
725 #: ../cat/virt-filesystems.pod:78
726 msgid ""
727 "I<--all --long --uuid> is a useful combination to display all possible "
728 "information about everything."
729 msgstr ""
730
731 #. type: verbatim
732 #: ../cat/virt-filesystems.pod:81
733 #, no-wrap
734 msgid ""
735 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
736 " Name      Type       VFS  Label           Size Parent   UUID\n"
737 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
738 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
739 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
740 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
741 " /dev/sda  device     -    -               20G  -        -\n"
742 "\n"
743 msgstr ""
744
745 #. type: textblock
746 #: ../cat/virt-filesystems.pod:89
747 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
748 msgstr ""
749
750 #. type: =item
751 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
752 msgid "B<--all>"
753 msgstr ""
754
755 #. type: textblock
756 #: ../cat/virt-filesystems.pod:112
757 msgid ""
758 "Display everything.  This is currently the same as specifying these options: "
759 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
760 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
761 "be added to this list in future)."
762 msgstr ""
763
764 #. type: textblock
765 #: ../cat/virt-filesystems.pod:117
766 msgid "See also I<--long>."
767 msgstr ""
768
769 #. type: =item
770 #: ../cat/virt-filesystems.pod:119
771 msgid "B<--blkdevs>"
772 msgstr ""
773
774 #. type: =item
775 #: ../cat/virt-filesystems.pod:121
776 msgid "B<--block-devices>"
777 msgstr ""
778
779 #. type: textblock
780 #: ../cat/virt-filesystems.pod:123
781 msgid "Display block devices."
782 msgstr ""
783
784 #. type: =item
785 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
786 msgid "B<--csv>"
787 msgstr ""
788
789 #. type: textblock
790 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
791 msgid ""
792 "Write out the results in CSV format (comma-separated values).  This format "
793 "can be imported easily into databases and spreadsheets, but read L</NOTE "
794 "ABOUT CSV FORMAT> below."
795 msgstr ""
796
797 #. type: textblock
798 #: ../cat/virt-filesystems.pod:150
799 msgid ""
800 "When prompting for keys and passphrases, virt-filesystems normally turns "
801 "echoing off so you cannot see what you are typing.  If you are not worried "
802 "about Tempest attacks and there is no one else in the room you can specify "
803 "this flag to see what you are typing."
804 msgstr ""
805
806 #. type: =item
807 #: ../cat/virt-filesystems.pod:155
808 msgid "B<--extra>"
809 msgstr ""
810
811 #. type: textblock
812 #: ../cat/virt-filesystems.pod:157
813 msgid ""
814 "This causes filesystems that are not ordinary, mountable filesystems to be "
815 "displayed.  This category includes swapspace, and filesystems that are empty "
816 "or contain unknown data."
817 msgstr ""
818
819 #. type: textblock
820 #: ../cat/virt-filesystems.pod:161
821 msgid "This option implies I<--filesystems>."
822 msgstr ""
823
824 #. type: =item
825 #: ../cat/virt-filesystems.pod:163
826 msgid "B<--filesystems>"
827 msgstr ""
828
829 #. type: textblock
830 #: ../cat/virt-filesystems.pod:165
831 msgid ""
832 "Display mountable filesystems.  If no display option was selected then this "
833 "option is implied."
834 msgstr ""
835
836 #. type: textblock
837 #: ../cat/virt-filesystems.pod:168
838 msgid "With I<--extra>, non-mountable filesystems are shown too."
839 msgstr ""
840
841 #. type: verbatim
842 #: ../cat/virt-filesystems.pod:181
843 #, no-wrap
844 msgid ""
845 " virt-filesystems --format=raw -a disk.img\n"
846 "\n"
847 msgstr ""
848
849 #. type: verbatim
850 #: ../cat/virt-filesystems.pod:185
851 #, no-wrap
852 msgid ""
853 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
854 "\n"
855 msgstr ""
856
857 #. type: =item
858 #: ../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
859 msgid "B<-h>"
860 msgstr ""
861
862 #. type: =item
863 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
864 msgid "B<--human-readable>"
865 msgstr ""
866
867 #. type: textblock
868 #: ../cat/virt-filesystems.pod:198
869 msgid "In I<--long> mode, display sizes in human-readable format."
870 msgstr ""
871
872 #. type: =item
873 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
874 msgid "B<-l>"
875 msgstr ""
876
877 #. type: =item
878 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
879 msgid "B<--long>"
880 msgstr ""
881
882 #. type: textblock
883 #: ../cat/virt-filesystems.pod:209
884 msgid "Display extra columns of data (\"long format\")."
885 msgstr ""
886
887 #. type: textblock
888 #: ../cat/virt-filesystems.pod:211
889 msgid "A title row is added unless you also specify I<--no-title>."
890 msgstr ""
891
892 #. type: textblock
893 #: ../cat/virt-filesystems.pod:213
894 msgid ""
895 "The extra columns displayed depend on what output you select, and the "
896 "ordering of columns may change in future versions.  Use the title row, "
897 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
898 "programs."
899 msgstr ""
900
901 #. type: textblock
902 #: ../cat/virt-filesystems.pod:218
903 msgid ""
904 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
905 "default is to show raw numbers of I<bytes>."
906 msgstr ""
907
908 #. type: textblock
909 #: ../cat/virt-filesystems.pod:221
910 msgid "Use I<--uuid> to display UUIDs too."
911 msgstr ""
912
913 #. type: =item
914 #: ../cat/virt-filesystems.pod:223
915 msgid "B<--lvs>"
916 msgstr ""
917
918 #. type: =item
919 #: ../cat/virt-filesystems.pod:225
920 msgid "B<--logvols>"
921 msgstr ""
922
923 #. type: =item
924 #: ../cat/virt-filesystems.pod:227
925 msgid "B<--logical-volumes>"
926 msgstr ""
927
928 #. type: textblock
929 #: ../cat/virt-filesystems.pod:229
930 msgid ""
931 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
932 "of whether the LVs contain filesystems."
933 msgstr ""
934
935 #. type: =item
936 #: ../cat/virt-filesystems.pod:232
937 msgid "B<--no-title>"
938 msgstr ""
939
940 #. type: textblock
941 #: ../cat/virt-filesystems.pod:234
942 msgid "In I<--long> mode, don't add a title row."
943 msgstr ""
944
945 #. type: textblock
946 #: ../cat/virt-filesystems.pod:236
947 msgid ""
948 "Note that the order of the columns is not fixed, and may change in future "
949 "versions of virt-filesystems, so using this option may give you unexpected "
950 "surprises."
951 msgstr ""
952
953 #. type: =item
954 #: ../cat/virt-filesystems.pod:240
955 msgid "B<--parts>"
956 msgstr ""
957
958 #. type: =item
959 #: ../cat/virt-filesystems.pod:242
960 msgid "B<--partitions>"
961 msgstr ""
962
963 #. type: textblock
964 #: ../cat/virt-filesystems.pod:244
965 msgid ""
966 "Display partitions.  In this mode, these are displayed irrespective of "
967 "whether the partitions contain filesystems."
968 msgstr ""
969
970 #. type: =item
971 #: ../cat/virt-filesystems.pod:247
972 msgid "B<--pvs>"
973 msgstr ""
974
975 #. type: =item
976 #: ../cat/virt-filesystems.pod:249
977 msgid "B<--physvols>"
978 msgstr ""
979
980 #. type: =item
981 #: ../cat/virt-filesystems.pod:251
982 msgid "B<--physical-volumes>"
983 msgstr ""
984
985 #. type: textblock
986 #: ../cat/virt-filesystems.pod:253
987 msgid "Display LVM physical volumes."
988 msgstr ""
989
990 #. type: =item
991 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
992 msgid "B<--uuid>"
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-filesystems.pod:257
997 msgid "B<--uuids>"
998 msgstr ""
999
1000 #. type: textblock
1001 #: ../cat/virt-filesystems.pod:259
1002 msgid "In I<--long> mode, display UUIDs as well."
1003 msgstr ""
1004
1005 #. type: =item
1006 #: ../cat/virt-filesystems.pod:273
1007 msgid "B<--vgs>"
1008 msgstr ""
1009
1010 #. type: =item
1011 #: ../cat/virt-filesystems.pod:275
1012 msgid "B<--volgroups>"
1013 msgstr ""
1014
1015 #. type: =item
1016 #: ../cat/virt-filesystems.pod:277
1017 msgid "B<--volume-groups>"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../cat/virt-filesystems.pod:279
1022 msgid "Display LVM volume groups."
1023 msgstr ""
1024
1025 #. type: =head1
1026 #: ../cat/virt-filesystems.pod:287
1027 msgid "COLUMNS"
1028 msgstr ""
1029
1030 #. type: textblock
1031 #: ../cat/virt-filesystems.pod:289
1032 msgid ""
1033 "Note that columns in the output are subject to reordering and change in "
1034 "future versions of this tool."
1035 msgstr ""
1036
1037 #. type: =item
1038 #: ../cat/virt-filesystems.pod:294
1039 msgid "B<Name>"
1040 msgstr ""
1041
1042 #. type: textblock
1043 #: ../cat/virt-filesystems.pod:296
1044 msgid "The filesystem, partition, block device or LVM name."
1045 msgstr ""
1046
1047 #. type: textblock
1048 #: ../cat/virt-filesystems.pod:298
1049 msgid ""
1050 "For device and partition names these are displayed as canonical libguestfs "
1051 "names, so that for example C</dev/sda2> is the second partition on the first "
1052 "device."
1053 msgstr ""
1054
1055 #. type: textblock
1056 #: ../cat/virt-filesystems.pod:302
1057 msgid ""
1058 "If the I<--long> option is B<not> specified, then only the name column is "
1059 "shown in the output."
1060 msgstr ""
1061
1062 #. type: =item
1063 #: ../cat/virt-filesystems.pod:305
1064 msgid "B<Type>"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:307
1069 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1070 msgstr ""
1071
1072 #. type: =item
1073 #: ../cat/virt-filesystems.pod:309
1074 msgid "B<VFS>"
1075 msgstr ""
1076
1077 #. type: textblock
1078 #: ../cat/virt-filesystems.pod:311
1079 msgid ""
1080 "If there is a filesystem, then this column displays the filesystem type if "
1081 "one could be detected, eg. C<ext4>."
1082 msgstr ""
1083
1084 #. type: =item
1085 #: ../cat/virt-filesystems.pod:314
1086 msgid "B<Label>"
1087 msgstr ""
1088
1089 #. type: textblock
1090 #: ../cat/virt-filesystems.pod:316
1091 msgid ""
1092 "If the object has a label (used for identifying and mounting filesystems) "
1093 "then this column contains the label."
1094 msgstr ""
1095
1096 #. type: =item
1097 #: ../cat/virt-filesystems.pod:319
1098 msgid "B<Size>"
1099 msgstr ""
1100
1101 #. type: textblock
1102 #: ../cat/virt-filesystems.pod:321
1103 msgid ""
1104 "The size of the object in bytes.  If the I<--human> option is used then the "
1105 "size is displayed in a human-readable form."
1106 msgstr ""
1107
1108 #. type: =item
1109 #: ../cat/virt-filesystems.pod:324
1110 msgid "B<Parent>"
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../cat/virt-filesystems.pod:326
1115 msgid ""
1116 "The parent column records the parent relationship between objects.  For "
1117 "example, if the object is a partition, then this column contains the name of "
1118 "the containing device.  If the object is a logical volume, then this column "
1119 "is the name of the volume group."
1120 msgstr ""
1121
1122 #. type: =item
1123 #: ../cat/virt-filesystems.pod:331
1124 msgid "B<UUID>"
1125 msgstr ""
1126
1127 #. type: textblock
1128 #: ../cat/virt-filesystems.pod:333
1129 msgid ""
1130 "If the object has a UUID (used for identifying and mounting filesystems and "
1131 "block devices) then this column contains the UUID as a string."
1132 msgstr ""
1133
1134 #. type: textblock
1135 #: ../cat/virt-filesystems.pod:337
1136 msgid "The UUID is only displayed if the I<--uuid> option is given."
1137 msgstr ""
1138
1139 #. type: =head1
1140 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1141 msgid "NOTE ABOUT CSV FORMAT"
1142 msgstr ""
1143
1144 #. type: textblock
1145 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1146 msgid ""
1147 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1148 "should be easy to parse, but it is definitely not easy to parse."
1149 msgstr ""
1150
1151 #. type: textblock
1152 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1153 msgid ""
1154 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1155 "reliably.  This example has two columns:"
1156 msgstr ""
1157
1158 #. type: verbatim
1159 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1160 #, no-wrap
1161 msgid ""
1162 " \"foo,bar\",baz\n"
1163 "\n"
1164 msgstr ""
1165
1166 #. type: textblock
1167 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1168 msgid ""
1169 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1170 "reliably.  This example has one row:"
1171 msgstr ""
1172
1173 #. type: verbatim
1174 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1175 #, no-wrap
1176 msgid ""
1177 " \"foo\n"
1178 " bar\",baz\n"
1179 "\n"
1180 msgstr ""
1181
1182 #. type: textblock
1183 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1184 msgid ""
1185 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1186 "packaged in major Linux distributions)."
1187 msgstr ""
1188
1189 #. type: textblock
1190 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1191 msgid ""
1192 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1193 "or Python's built-in csv library)."
1194 msgstr ""
1195
1196 #. type: textblock
1197 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1198 msgid "Most spreadsheets and databases can import CSV directly."
1199 msgstr ""
1200
1201 #. type: textblock
1202 #: ../cat/virt-filesystems.pod:379
1203 msgid ""
1204 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1205 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1206 "L<http://libguestfs.org/>."
1207 msgstr ""
1208
1209 #. type: textblock
1210 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1211 msgid "Copyright (C) 2010 Red Hat Inc."
1212 msgstr ""
1213
1214 #. type: textblock
1215 #: ../cat/virt-ls.pod:5
1216 msgid "virt-ls - List files in a virtual machine"
1217 msgstr ""
1218
1219 #. type: verbatim
1220 #: ../cat/virt-ls.pod:9
1221 #, no-wrap
1222 msgid ""
1223 " virt-ls [--options] -d domname directory [directory ...]\n"
1224 "\n"
1225 msgstr ""
1226
1227 #. type: verbatim
1228 #: ../cat/virt-ls.pod:11
1229 #, no-wrap
1230 msgid ""
1231 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1232 "...]\n"
1233 "\n"
1234 msgstr ""
1235
1236 #. type: textblock
1237 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1238 msgid "Old style:"
1239 msgstr ""
1240
1241 #. type: verbatim
1242 #: ../cat/virt-ls.pod:15
1243 #, no-wrap
1244 msgid ""
1245 " virt-ls [--options] domname directory\n"
1246 "\n"
1247 msgstr ""
1248
1249 #. type: verbatim
1250 #: ../cat/virt-ls.pod:17
1251 #, no-wrap
1252 msgid ""
1253 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1254 "\n"
1255 msgstr ""
1256
1257 #. type: textblock
1258 #: ../cat/virt-ls.pod:21
1259 msgid ""
1260 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1261 "more from a virtual machine or disk image."
1262 msgstr ""
1263
1264 #. type: textblock
1265 #: ../cat/virt-ls.pod:24
1266 msgid ""
1267 "Multiple directory names can be given, in which case the output from each is "
1268 "concatenated."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-ls.pod:27
1273 msgid ""
1274 "To list directories from a libvirt guest use the I<-d> option to specify the "
1275 "name of the guest.  For a disk image, use the I<-a> option."
1276 msgstr ""
1277
1278 #. type: textblock
1279 #: ../cat/virt-ls.pod:31
1280 msgid ""
1281 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1282 "may need to use L<guestfish(1)>, or write a program directly to the "
1283 "L<guestfs(3)> API."
1284 msgstr ""
1285
1286 #. type: textblock
1287 #: ../cat/virt-ls.pod:37
1288 msgid "Get a list of all files and directories in a virtual machine:"
1289 msgstr ""
1290
1291 #. type: verbatim
1292 #: ../cat/virt-ls.pod:39
1293 #, no-wrap
1294 msgid ""
1295 " virt-ls -R -d guest /\n"
1296 "\n"
1297 msgstr ""
1298
1299 #. type: textblock
1300 #: ../cat/virt-ls.pod:41
1301 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1302 msgstr ""
1303
1304 #. type: verbatim
1305 #: ../cat/virt-ls.pod:43
1306 #, no-wrap
1307 msgid ""
1308 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1309 "\n"
1310 msgstr ""
1311
1312 #. type: textblock
1313 #: ../cat/virt-ls.pod:45
1314 msgid "List all public-writable directories in a Linux virtual machine:"
1315 msgstr ""
1316
1317 #. type: verbatim
1318 #: ../cat/virt-ls.pod:47
1319 #, no-wrap
1320 msgid ""
1321 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1322 "\n"
1323 msgstr ""
1324
1325 #. type: textblock
1326 #: ../cat/virt-ls.pod:49
1327 msgid "List all Unix domain sockets in a Linux virtual machine:"
1328 msgstr ""
1329
1330 #. type: verbatim
1331 #: ../cat/virt-ls.pod:51
1332 #, no-wrap
1333 msgid ""
1334 " virt-ls -lR -d guest / | grep '^s'\n"
1335 "\n"
1336 msgstr ""
1337
1338 #. type: textblock
1339 #: ../cat/virt-ls.pod:53
1340 msgid "List all regular files with filenames ending in '.png':"
1341 msgstr ""
1342
1343 #. type: verbatim
1344 #: ../cat/virt-ls.pod:55
1345 #, no-wrap
1346 msgid ""
1347 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1348 "\n"
1349 msgstr ""
1350
1351 #. type: textblock
1352 #: ../cat/virt-ls.pod:57
1353 msgid "To display files larger than 10MB in home directories:"
1354 msgstr ""
1355
1356 #. type: verbatim
1357 #: ../cat/virt-ls.pod:59
1358 #, no-wrap
1359 msgid ""
1360 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1361 "\n"
1362 msgstr ""
1363
1364 #. type: textblock
1365 #: ../cat/virt-ls.pod:61
1366 msgid "Find everything modified in the last 7 days:"
1367 msgstr ""
1368
1369 #. type: verbatim
1370 #: ../cat/virt-ls.pod:63
1371 #, no-wrap
1372 msgid ""
1373 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1374 "\n"
1375 msgstr ""
1376
1377 #. type: textblock
1378 #: ../cat/virt-ls.pod:65
1379 msgid "Find regular files modified in the last 24 hours:"
1380 msgstr ""
1381
1382 #. type: verbatim
1383 #: ../cat/virt-ls.pod:67
1384 #, no-wrap
1385 msgid ""
1386 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1387 "\n"
1388 msgstr ""
1389
1390 #. type: =head2
1391 #: ../cat/virt-ls.pod:69
1392 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1393 msgstr ""
1394
1395 #. type: textblock
1396 #: ../cat/virt-ls.pod:71
1397 msgid ""
1398 "Find the differences between files in a guest and an earlier snapshot of the "
1399 "same guest."
1400 msgstr ""
1401
1402 #. type: verbatim
1403 #: ../cat/virt-ls.pod:74
1404 #, no-wrap
1405 msgid ""
1406 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1407 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1408 " diff -u old new | less\n"
1409 "\n"
1410 msgstr ""
1411
1412 #. type: textblock
1413 #: ../cat/virt-ls.pod:78
1414 msgid ""
1415 "The commands above won't find files where the content has changed but the "
1416 "metadata (eg. file size and modification date) is the same.  To do that, you "
1417 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1418 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1419 "of every regular file in the virtual machine."
1420 msgstr ""
1421
1422 #. type: =head1
1423 #: ../cat/virt-ls.pod:84
1424 msgid "OUTPUT MODES"
1425 msgstr ""
1426
1427 #. type: textblock
1428 #: ../cat/virt-ls.pod:86
1429 msgid ""
1430 "C<virt-ls> has four output modes, controlled by different combinations of "
1431 "the I<-l> and I<-R> options."
1432 msgstr ""
1433
1434 #. type: =head2
1435 #: ../cat/virt-ls.pod:89
1436 msgid "SIMPLE LISTING"
1437 msgstr ""
1438
1439 #. type: textblock
1440 #: ../cat/virt-ls.pod:91
1441 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1442 msgstr ""
1443
1444 #. type: verbatim
1445 #: ../cat/virt-ls.pod:93
1446 #, no-wrap
1447 msgid ""
1448 " $ virt-ls -d guest /\n"
1449 " bin\n"
1450 " boot\n"
1451 " [etc.]\n"
1452 "\n"
1453 msgstr ""
1454
1455 #. type: =head2
1456 #: ../cat/virt-ls.pod:98
1457 msgid "LONG LISTING"
1458 msgstr ""
1459
1460 #. type: textblock
1461 #: ../cat/virt-ls.pod:100
1462 msgid ""
1463 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1464 "(more specifically, like the C<guestfs_ll> function)."
1465 msgstr ""
1466
1467 #. type: verbatim
1468 #: ../cat/virt-ls.pod:103
1469 #, no-wrap
1470 msgid ""
1471 " $ virt-ls -l -d guest /\n"
1472 " total 204\n"
1473 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1474 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1475 " [etc.]\n"
1476 "\n"
1477 msgstr ""
1478
1479 #. type: textblock
1480 #: ../cat/virt-ls.pod:109
1481 msgid ""
1482 "Note that while this is useful for displaying a directory, do not try "
1483 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1484 "instead."
1485 msgstr ""
1486
1487 #. type: =head2
1488 #: ../cat/virt-ls.pod:113
1489 msgid "RECURSIVE LISTING"
1490 msgstr ""
1491
1492 #. type: textblock
1493 #: ../cat/virt-ls.pod:115
1494 msgid ""
1495 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1496 "and directories recursively:"
1497 msgstr ""
1498
1499 #. type: verbatim
1500 #: ../cat/virt-ls.pod:118
1501 #, no-wrap
1502 msgid ""
1503 " $ virt-ls -R -d guest /tmp\n"
1504 " foo\n"
1505 " foo/bar\n"
1506 " [etc.]\n"
1507 "\n"
1508 msgstr ""
1509
1510 #. type: textblock
1511 #: ../cat/virt-ls.pod:123
1512 msgid ""
1513 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1514 "converts C<\\0> characters to C<\\n>."
1515 msgstr ""
1516
1517 #. type: =head2
1518 #: ../cat/virt-ls.pod:126
1519 msgid "RECURSIVE LONG LISTING"
1520 msgstr ""
1521
1522 #. type: textblock
1523 #: ../cat/virt-ls.pod:128
1524 msgid ""
1525 "Using I<-lR> options together changes the output to display directories "
1526 "recursively, with file stats, and optionally other features such as "
1527 "checksums and extended attributes."
1528 msgstr ""
1529
1530 #. type: textblock
1531 #: ../cat/virt-ls.pod:132
1532 msgid ""
1533 "Most of the interesting features of C<virt-ls> are only available when using "
1534 "I<-lR> mode."
1535 msgstr ""
1536
1537 #. type: textblock
1538 #: ../cat/virt-ls.pod:135
1539 msgid ""
1540 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1541 "you cannot use the output in another program (because filenames can contain "
1542 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1543 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1544 "on you by creating filenames with embedded newline characters.  To B<safely> "
1545 "parse the output in another program, use the I<--csv> (Comma-Separated "
1546 "Values) option."
1547 msgstr ""
1548
1549 #. type: textblock
1550 #: ../cat/virt-ls.pod:143
1551 msgid ""
1552 "Note that this output format is completely unrelated to the C<ls -lR> "
1553 "command."
1554 msgstr ""
1555
1556 #. type: verbatim
1557 #: ../cat/virt-ls.pod:146
1558 #, no-wrap
1559 msgid ""
1560 " $ virt-ls -lR -d guest /bin\n"
1561 " d 0555       4096 /bin\n"
1562 " - 0755        123 /bin/alsaunmute\n"
1563 " - 0755      28328 /bin/arch\n"
1564 " l 0777          4 /bin/awk -> gawk\n"
1565 " - 0755      27216 /bin/basename\n"
1566 " - 0755     943360 /bin/bash\n"
1567 " [etc.]\n"
1568 "\n"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-ls.pod:155
1573 msgid "These basic fields are always shown:"
1574 msgstr ""
1575
1576 #. type: =item
1577 #: ../cat/virt-ls.pod:159
1578 msgid "type"
1579 msgstr ""
1580
1581 #. type: textblock
1582 #: ../cat/virt-ls.pod:161
1583 msgid ""
1584 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1585 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1586 "link), C<s> (socket) or C<u> (unknown)."
1587 msgstr ""
1588
1589 #. type: =item
1590 #: ../cat/virt-ls.pod:171
1591 msgid "permissions"
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-ls.pod:173
1596 msgid "The Unix permissions, displayed as a 4 digit octal number."
1597 msgstr ""
1598
1599 #. type: =item
1600 #: ../cat/virt-ls.pod:175
1601 msgid "size"
1602 msgstr ""
1603
1604 #. type: textblock
1605 #: ../cat/virt-ls.pod:177
1606 msgid ""
1607 "The size of the file.  This is shown in bytes unless I<-h> or "
1608 "I<--human-readable> option is given, in which case this is shown as a "
1609 "human-readable number."
1610 msgstr ""
1611
1612 #. type: =head2
1613 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
1614 msgid "path"
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-ls.pod:183
1619 msgid "The full path of the file or directory."
1620 msgstr ""
1621
1622 #. type: =item
1623 #: ../cat/virt-ls.pod:185
1624 msgid "link"
1625 msgstr ""
1626
1627 #. type: textblock
1628 #: ../cat/virt-ls.pod:187
1629 msgid "For symbolic links only, the link target."
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-ls.pod:191
1634 msgid ""
1635 "In I<-lR> mode, additional command line options enable the display of more "
1636 "fields."
1637 msgstr ""
1638
1639 #. type: textblock
1640 #: ../cat/virt-ls.pod:194
1641 msgid ""
1642 "With the I<--uids> flag, these additional fields are displayed before the "
1643 "path:"
1644 msgstr ""
1645
1646 #. type: =item
1647 #: ../cat/virt-ls.pod:199
1648 msgid "uid"
1649 msgstr ""
1650
1651 #. type: =item
1652 #: ../cat/virt-ls.pod:201
1653 msgid "gid"
1654 msgstr ""
1655
1656 #. type: textblock
1657 #: ../cat/virt-ls.pod:203
1658 msgid ""
1659 "The UID and GID of the owner of the file (displayed numerically).  Note "
1660 "these only make sense in the context of a Unix-like guest."
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:208
1665 msgid "With the I<--times> flag, these additional fields are displayed:"
1666 msgstr ""
1667
1668 #. type: =item
1669 #: ../cat/virt-ls.pod:212
1670 msgid "atime"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-ls.pod:214
1675 msgid "The time of last access."
1676 msgstr ""
1677
1678 #. type: =item
1679 #: ../cat/virt-ls.pod:216
1680 msgid "mtime"
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../cat/virt-ls.pod:218
1685 msgid "The time of last modification."
1686 msgstr ""
1687
1688 #. type: =item
1689 #: ../cat/virt-ls.pod:220
1690 msgid "ctime"
1691 msgstr ""
1692
1693 #. type: textblock
1694 #: ../cat/virt-ls.pod:222
1695 msgid "The time of last status change."
1696 msgstr ""
1697
1698 #. type: textblock
1699 #: ../cat/virt-ls.pod:226
1700 msgid ""
1701 "The time fields are displayed as string dates and times, unless one of the "
1702 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../cat/virt-ls.pod:229
1707 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1708 msgstr ""
1709
1710 #. type: =item
1711 #: ../cat/virt-ls.pod:233
1712 msgid "device"
1713 msgstr ""
1714
1715 #. type: textblock
1716 #: ../cat/virt-ls.pod:235
1717 msgid ""
1718 "The device containing the file (displayed as major:minor).  This may not "
1719 "match devices as known to the guest."
1720 msgstr ""
1721
1722 #. type: =item
1723 #: ../cat/virt-ls.pod:238
1724 msgid "inode"
1725 msgstr ""
1726
1727 #. type: textblock
1728 #: ../cat/virt-ls.pod:240
1729 msgid "The inode number."
1730 msgstr ""
1731
1732 #. type: =item
1733 #: ../cat/virt-ls.pod:242
1734 msgid "nlink"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../cat/virt-ls.pod:244
1739 msgid "The number of hard links."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-ls.pod:246
1744 msgid "rdev"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-ls.pod:248
1749 msgid "For block and char special files, the device (displayed as major:minor)."
1750 msgstr ""
1751
1752 #. type: =item
1753 #: ../cat/virt-ls.pod:251
1754 msgid "blocks"
1755 msgstr ""
1756
1757 #. type: textblock
1758 #: ../cat/virt-ls.pod:253
1759 msgid "The number of 512 byte blocks allocated to the file."
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-ls.pod:257
1764 msgid ""
1765 "With the I<--checksum> flag, the checksum of the file contents is shown "
1766 "(only for regular files).  Computing file checksums can take a considerable "
1767 "amount of time."
1768 msgstr ""
1769
1770 #. type: =item
1771 #: ../cat/virt-ls.pod:280
1772 msgid "B<--checksum>"
1773 msgstr ""
1774
1775 #. type: =item
1776 #: ../cat/virt-ls.pod:282
1777 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:284
1782 msgid ""
1783 "Display checksum over file contents for regular files.  With no argument, "
1784 "this defaults to using I<md5>.  Using an argument, you can select the "
1785 "checksum type to use."
1786 msgstr ""
1787
1788 #. type: textblock
1789 #: ../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
1790 msgid ""
1791 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
1792 "LISTING> above."
1793 msgstr ""
1794
1795 #. type: textblock
1796 #: ../cat/virt-ls.pod:316
1797 msgid ""
1798 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
1799 "so you cannot see what you are typing.  If you are not worried about Tempest "
1800 "attacks and there is no one else in the room you can specify this flag to "
1801 "see what you are typing."
1802 msgstr ""
1803
1804 #. type: =item
1805 #: ../cat/virt-ls.pod:321
1806 msgid "B<--extra-stats>"
1807 msgstr ""
1808
1809 #. type: textblock
1810 #: ../cat/virt-ls.pod:323
1811 msgid "Display extra stats."
1812 msgstr ""
1813
1814 #. type: verbatim
1815 #: ../cat/virt-ls.pod:339
1816 #, no-wrap
1817 msgid ""
1818 " virt-ls --format=raw -a disk.img /dir\n"
1819 "\n"
1820 msgstr ""
1821
1822 #. type: verbatim
1823 #: ../cat/virt-ls.pod:343
1824 #, no-wrap
1825 msgid ""
1826 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
1827 "\n"
1828 msgstr ""
1829
1830 #. type: textblock
1831 #: ../cat/virt-ls.pod:356
1832 msgid "Display file sizes in human-readable format."
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-ls.pod:370
1837 msgid "B<-R>"
1838 msgstr ""
1839
1840 #. type: =item
1841 #: ../cat/virt-ls.pod:372
1842 msgid "B<--recursive>"
1843 msgstr ""
1844
1845 #. type: textblock
1846 #: ../cat/virt-ls.pod:374
1847 msgid ""
1848 "Select the mode.  With neither of these options, C<virt-ls> produces a "
1849 "simple, flat list of the files in the named directory.  See L</SIMPLE "
1850 "LISTING>."
1851 msgstr ""
1852
1853 #. type: textblock
1854 #: ../cat/virt-ls.pod:378
1855 msgid ""
1856 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
1857 "L</LONG LISTING>."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-ls.pod:381
1862 msgid ""
1863 "C<virt-ls -R> produces a recursive list of files starting at the named "
1864 "directory.  See L</RECURSIVE LISTING>."
1865 msgstr ""
1866
1867 #. type: textblock
1868 #: ../cat/virt-ls.pod:384
1869 msgid ""
1870 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
1871 "parsed.  See L</RECURSIVE LONG LISTING>."
1872 msgstr ""
1873
1874 #. type: =item
1875 #: ../cat/virt-ls.pod:387
1876 msgid "B<--times>"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:389
1881 msgid "Display time fields."
1882 msgstr ""
1883
1884 #. type: =item
1885 #: ../cat/virt-ls.pod:394
1886 msgid "B<--time-days>"
1887 msgstr ""
1888
1889 #. type: textblock
1890 #: ../cat/virt-ls.pod:396
1891 msgid "Display time fields as days before now (negative if in the future)."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-ls.pod:398
1896 msgid ""
1897 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
1898 "of the file is between 0 and 86399 seconds."
1899 msgstr ""
1900
1901 #. type: =item
1902 #: ../cat/virt-ls.pod:404
1903 msgid "B<--time-relative>"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:406
1908 msgid "Display time fields as seconds before now (negative if in the future)."
1909 msgstr ""
1910
1911 #. type: =item
1912 #: ../cat/virt-ls.pod:411
1913 msgid "B<--time-t>"
1914 msgstr ""
1915
1916 #. type: textblock
1917 #: ../cat/virt-ls.pod:413
1918 msgid "Display time fields as seconds since the Unix epoch."
1919 msgstr ""
1920
1921 #. type: =item
1922 #: ../cat/virt-ls.pod:418
1923 msgid "B<--uids>"
1924 msgstr ""
1925
1926 #. type: textblock
1927 #: ../cat/virt-ls.pod:420
1928 msgid "Display UID and GID fields."
1929 msgstr ""
1930
1931 #. type: textblock
1932 #: ../cat/virt-ls.pod:445
1933 msgid "Previous versions of virt-ls allowed you to write either:"
1934 msgstr ""
1935
1936 #. type: verbatim
1937 #: ../cat/virt-ls.pod:447
1938 #, no-wrap
1939 msgid ""
1940 " virt-ls disk.img [disk.img ...] /dir\n"
1941 "\n"
1942 msgstr ""
1943
1944 #. type: verbatim
1945 #: ../cat/virt-ls.pod:451
1946 #, no-wrap
1947 msgid ""
1948 " virt-ls guestname /dir\n"
1949 "\n"
1950 msgstr ""
1951
1952 #. type: textblock
1953 #: ../cat/virt-ls.pod:497
1954 msgid ""
1955 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
1956 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
1957 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1958 msgstr ""
1959
1960 #. type: textblock
1961 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374 ../rescue/virt-rescue.pod:302
1962 msgid "Copyright (C) 2009-2011 Red Hat Inc."
1963 msgstr ""
1964
1965 #. type: textblock
1966 #: ../df/virt-df.pod:5
1967 msgid "virt-df - Display free space on virtual filesystems"
1968 msgstr ""
1969
1970 #. type: verbatim
1971 #: ../df/virt-df.pod:9
1972 #, no-wrap
1973 msgid ""
1974 " virt-df [--options]\n"
1975 "\n"
1976 msgstr ""
1977
1978 #. type: verbatim
1979 #: ../df/virt-df.pod:11
1980 #, no-wrap
1981 msgid ""
1982 " virt-df [--options] -d domname\n"
1983 "\n"
1984 msgstr ""
1985
1986 #. type: verbatim
1987 #: ../df/virt-df.pod:13
1988 #, no-wrap
1989 msgid ""
1990 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
1991 "\n"
1992 msgstr ""
1993
1994 #. type: verbatim
1995 #: ../df/virt-df.pod:17
1996 #, no-wrap
1997 msgid ""
1998 " virt-df [--options] domname\n"
1999 "\n"
2000 msgstr ""
2001
2002 #. type: verbatim
2003 #: ../df/virt-df.pod:19
2004 #, no-wrap
2005 msgid ""
2006 " virt-df [--options] disk.img [disk.img ...]\n"
2007 "\n"
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../df/virt-df.pod:23
2012 msgid ""
2013 "C<virt-df> is a command line tool to display free space on virtual machine "
2014 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2015 "allocated to a virtual machine, but can look inside disk images to see how "
2016 "much space is really being used."
2017 msgstr ""
2018
2019 #. type: textblock
2020 #: ../df/virt-df.pod:28
2021 msgid ""
2022 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2023 "to get a list of all active and inactive guests, and performs a C<df>-type "
2024 "operation on each one in turn, printing out the results."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../df/virt-df.pod:32
2029 msgid ""
2030 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
2031 "C<df>-type operation on either the single named libvirt domain, or on the "
2032 "disk image(s) listed on the command line (which must all belong to a single "
2033 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
2034 "single guest>.  If you want to run on multiple guests, then you have to "
2035 "invoke C<virt-df> multiple times."
2036 msgstr ""
2037
2038 #. type: textblock
2039 #: ../df/virt-df.pod:39
2040 msgid ""
2041 "Use the I<--csv> option to get a format which can be easily parsed by other "
2042 "programs.  Other options are similar to the standard L<df(1)> command."
2043 msgstr ""
2044
2045 #. type: textblock
2046 #: ../df/virt-df.pod:45
2047 msgid ""
2048 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2049 "output human-readable:"
2050 msgstr ""
2051
2052 #. type: verbatim
2053 #: ../df/virt-df.pod:48
2054 #, no-wrap
2055 msgid ""
2056 " # virt-df -d F14x64 -h\n"
2057 " Filesystem                       Size     Used  Available  Use%\n"
2058 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2059 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2060 "\n"
2061 msgstr ""
2062
2063 #. type: textblock
2064 #: ../df/virt-df.pod:53
2065 msgid "Show disk usage for a disk image file called C<test.img>:"
2066 msgstr ""
2067
2068 #. type: verbatim
2069 #: ../df/virt-df.pod:55
2070 #, no-wrap
2071 msgid ""
2072 " $ virt-df -a test1.img\n"
2073 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2074 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2075 "\n"
2076 msgstr ""
2077
2078 #. type: verbatim
2079 #: ../df/virt-df.pod:112
2080 #, no-wrap
2081 msgid ""
2082 " virt-df --format=raw -a disk.img\n"
2083 "\n"
2084 msgstr ""
2085
2086 #. type: verbatim
2087 #: ../df/virt-df.pod:116
2088 #, no-wrap
2089 msgid ""
2090 " virt-df --format=raw -a disk.img --format -a another.img\n"
2091 "\n"
2092 msgstr ""
2093
2094 #. type: textblock
2095 #: ../df/virt-df.pod:129
2096 msgid "Print sizes in human-readable format."
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../df/virt-df.pod:131
2101 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2102 msgstr ""
2103
2104 #. type: =item
2105 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2106 msgid "B<-i>"
2107 msgstr ""
2108
2109 #. type: =item
2110 #: ../df/virt-df.pod:135
2111 msgid "B<--inodes>"
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../df/virt-df.pod:137
2116 msgid "Print inodes instead of blocks."
2117 msgstr ""
2118
2119 #. type: =item
2120 #: ../df/virt-df.pod:139
2121 msgid "B<--one-per-guest>"
2122 msgstr ""
2123
2124 #. type: textblock
2125 #: ../df/virt-df.pod:141
2126 msgid ""
2127 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2128 "disks from several guests to a single libguestfs appliance."
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../df/virt-df.pod:144
2133 msgid "You might use this option in the following circumstances:"
2134 msgstr ""
2135
2136 #. type: =item
2137 #: ../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 ../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:1774 ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782 ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1794 ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802 ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1816 ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1958 ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1967 ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2042 ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:2462 ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:3006 ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3020 ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3034 ../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:2559 ../src/guestfs.pod:2565 ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2959 ../src/guestfs.pod:2964 ../src/guestfs.pod:2968 ../src/guestfs.pod:2972 ../src/guestfs.pod:2976 ../src/guestfs.pod:2990 ../src/guestfs.pod:2995 ../src/guestfs.pod:3221 ../src/guestfs.pod:3225 ../src/guestfs.pod:3229 ../src/guestfs.pod:3233 ../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
2138 msgid "*"
2139 msgstr ""
2140
2141 #. type: textblock
2142 #: ../df/virt-df.pod:150
2143 msgid ""
2144 "If you think an untrusted guest might actively try to exploit the libguestfs "
2145 "appliance kernel, then this prevents one guest from interfering with the "
2146 "stats printed for another guest."
2147 msgstr ""
2148
2149 #. type: textblock
2150 #: ../df/virt-df.pod:156
2151 msgid ""
2152 "If the kernel has a bug which stops it from accessing a filesystem in one "
2153 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2154 "and report stats for further guests."
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../df/virt-df.pod:165
2159 msgid ""
2160 "Print UUIDs instead of names.  This is useful for following a guest even "
2161 "when the guest is migrated or renamed, or when two guests happen to have the "
2162 "same name."
2163 msgstr ""
2164
2165 #. type: textblock
2166 #: ../df/virt-df.pod:169
2167 msgid ""
2168 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2169 "images, we still print the disk image name even when this option is "
2170 "specified."
2171 msgstr ""
2172
2173 #. type: textblock
2174 #: ../df/virt-df.pod:229
2175 msgid ""
2176 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
2177 "L<http://libguestfs.org/>."
2178 msgstr ""
2179
2180 #. type: textblock
2181 #: ../edit/virt-edit.pod:5
2182 msgid "virt-edit - Edit a file in a virtual machine"
2183 msgstr ""
2184
2185 #. type: verbatim
2186 #: ../edit/virt-edit.pod:9
2187 #, no-wrap
2188 msgid ""
2189 " virt-edit [--options] -d domname file [file ...]\n"
2190 "\n"
2191 msgstr ""
2192
2193 #. type: verbatim
2194 #: ../edit/virt-edit.pod:11
2195 #, no-wrap
2196 msgid ""
2197 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2198 "\n"
2199 msgstr ""
2200
2201 #. type: verbatim
2202 #: ../edit/virt-edit.pod:13
2203 #, no-wrap
2204 msgid ""
2205 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2206 "\n"
2207 msgstr ""
2208
2209 #. type: verbatim
2210 #: ../edit/virt-edit.pod:17
2211 #, no-wrap
2212 msgid ""
2213 " virt-edit domname file\n"
2214 "\n"
2215 msgstr ""
2216
2217 #. type: verbatim
2218 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2219 #, no-wrap
2220 msgid ""
2221 " virt-edit disk.img [disk.img ...] file\n"
2222 "\n"
2223 msgstr ""
2224
2225 #. type: =head1
2226 #: ../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
2227 msgid "WARNING"
2228 msgstr ""
2229
2230 #. type: textblock
2231 #: ../edit/virt-edit.pod:23
2232 msgid ""
2233 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2234 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2235 "doing this, but doesn't catch all cases."
2236 msgstr ""
2237
2238 #. type: textblock
2239 #: ../edit/virt-edit.pod:29
2240 msgid ""
2241 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2242 "exists in the named virtual machine (or disk image)."
2243 msgstr ""
2244
2245 #. type: textblock
2246 #: ../edit/virt-edit.pod:32
2247 msgid ""
2248 "Multiple filenames can be given, in which case they are each edited in "
2249 "turn.  Each filename must be a full path, starting at the root directory "
2250 "(starting with '/')."
2251 msgstr ""
2252
2253 #. type: textblock
2254 #: ../edit/virt-edit.pod:36
2255 msgid "If you want to just view a file, use L<virt-cat(1)>."
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../edit/virt-edit.pod:38
2260 msgid ""
2261 "For more complex cases you should look at the L<guestfish(1)> tool (see "
2262 "L</USING GUESTFISH> below)."
2263 msgstr ""
2264
2265 #. type: textblock
2266 #: ../edit/virt-edit.pod:41
2267 msgid ""
2268 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2269 "that and much more."
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../edit/virt-edit.pod:46
2274 msgid "Edit the named files interactively:"
2275 msgstr ""
2276
2277 #. type: verbatim
2278 #: ../edit/virt-edit.pod:48
2279 #, no-wrap
2280 msgid ""
2281 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2282 "\n"
2283 msgstr ""
2284
2285 #. type: verbatim
2286 #: ../edit/virt-edit.pod:50
2287 #, no-wrap
2288 msgid ""
2289 " virt-edit -d mydomain /etc/passwd\n"
2290 "\n"
2291 msgstr ""
2292
2293 #. type: textblock
2294 #: ../edit/virt-edit.pod:52
2295 msgid "For Windows guests, some Windows paths are understood:"
2296 msgstr ""
2297
2298 #. type: verbatim
2299 #: ../edit/virt-edit.pod:54
2300 #, no-wrap
2301 msgid ""
2302 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2303 "\n"
2304 msgstr ""
2305
2306 #. type: textblock
2307 #: ../edit/virt-edit.pod:56
2308 msgid ""
2309 "If Perl is installed, you can also edit files non-interactively (see "
2310 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
2311 msgstr ""
2312
2313 #. type: verbatim
2314 #: ../edit/virt-edit.pod:60
2315 #, no-wrap
2316 msgid ""
2317 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2318 "\n"
2319 msgstr ""
2320
2321 #. type: =item
2322 #: ../edit/virt-edit.pod:81
2323 msgid "B<-b> extension"
2324 msgstr ""
2325
2326 #. type: =item
2327 #: ../edit/virt-edit.pod:83
2328 msgid "B<--backup> extension"
2329 msgstr ""
2330
2331 #. type: textblock
2332 #: ../edit/virt-edit.pod:85
2333 msgid ""
2334 "Create a backup of the original file I<in the guest disk image>.  The backup "
2335 "has the original filename with C<extension> added."
2336 msgstr ""
2337
2338 #. type: textblock
2339 #: ../edit/virt-edit.pod:88
2340 msgid ""
2341 "Usually the first character of C<extension> would be a dot C<.> so you would "
2342 "write:"
2343 msgstr ""
2344
2345 #. type: verbatim
2346 #: ../edit/virt-edit.pod:91
2347 #, no-wrap
2348 msgid ""
2349 " virt-edit -b .orig [etc]\n"
2350 "\n"
2351 msgstr ""
2352
2353 #. type: textblock
2354 #: ../edit/virt-edit.pod:93
2355 msgid "By default, no backup file is made."
2356 msgstr ""
2357
2358 #. type: =item
2359 #: ../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
2360 msgid "B<-c URI>"
2361 msgstr ""
2362
2363 #. type: =item
2364 #: ../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
2365 msgid "B<--connect URI>"
2366 msgstr ""
2367
2368 #. type: textblock
2369 #: ../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
2370 msgid ""
2371 "If you specify guest block devices directly, then libvirt is not used at "
2372 "all."
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../edit/virt-edit.pod:114
2377 msgid ""
2378 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2379 "off so you cannot see what you are typing.  If you are not worried about "
2380 "Tempest attacks and there is no one else in the room you can specify this "
2381 "flag to see what you are typing."
2382 msgstr ""
2383
2384 #. type: =item
2385 #: ../edit/virt-edit.pod:119
2386 msgid "B<-e> EXPR"
2387 msgstr ""
2388
2389 #. type: =item
2390 #: ../edit/virt-edit.pod:121
2391 msgid "B<--expr> EXPR"
2392 msgstr ""
2393
2394 #. type: textblock
2395 #: ../edit/virt-edit.pod:123
2396 msgid ""
2397 "Instead of launching the external editor, non-interactively apply the Perl "
2398 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2399 "EDITING> below."
2400 msgstr ""
2401
2402 #. type: textblock
2403 #: ../edit/virt-edit.pod:127
2404 msgid ""
2405 "Be careful to properly quote the expression to prevent it from being altered "
2406 "by the shell."
2407 msgstr ""
2408
2409 #. type: textblock
2410 #: ../edit/virt-edit.pod:130
2411 msgid "Note that this option is only available when Perl 5 is installed."
2412 msgstr ""
2413
2414 #. type: =item
2415 #: ../edit/virt-edit.pod:132
2416 msgid "B<--format> raw|qcow2|..."
2417 msgstr ""
2418
2419 #. type: verbatim
2420 #: ../edit/virt-edit.pod:143
2421 #, no-wrap
2422 msgid ""
2423 " virt-edit --format=raw -a disk.img file\n"
2424 "\n"
2425 msgstr ""
2426
2427 #. type: verbatim
2428 #: ../edit/virt-edit.pod:147
2429 #, no-wrap
2430 msgid ""
2431 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2432 "\n"
2433 msgstr ""
2434
2435 #. type: textblock
2436 #: ../edit/virt-edit.pod:181
2437 msgid "Previous versions of virt-edit allowed you to write either:"
2438 msgstr ""
2439
2440 #. type: verbatim
2441 #: ../edit/virt-edit.pod:187
2442 #, no-wrap
2443 msgid ""
2444 " virt-edit guestname file\n"
2445 "\n"
2446 msgstr ""
2447
2448 #. type: =head1
2449 #: ../edit/virt-edit.pod:195
2450 msgid "NON-INTERACTIVE EDITING"
2451 msgstr ""
2452
2453 #. type: textblock
2454 #: ../edit/virt-edit.pod:197
2455 msgid ""
2456 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2457 "administrator can interactively edit the file."
2458 msgstr ""
2459
2460 #. type: textblock
2461 #: ../edit/virt-edit.pod:200
2462 msgid ""
2463 "There are two ways also to use C<virt-edit> from scripts in order to make "
2464 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2465 "like this, it's less error-prone to write scripts directly using the "
2466 "libguestfs API and Augeas for configuration file editing.)"
2467 msgstr ""
2468
2469 #. type: textblock
2470 #: ../edit/virt-edit.pod:206
2471 msgid ""
2472 "The first method is to temporarily set C<$EDITOR> to any script or program "
2473 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2474 "update C<tmpfile> in place however it likes."
2475 msgstr ""
2476
2477 #. type: textblock
2478 #: ../edit/virt-edit.pod:210
2479 msgid ""
2480 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2481 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2482 "instances of C<foo> with C<bar> in a file:"
2483 msgstr ""
2484
2485 #. type: verbatim
2486 #: ../edit/virt-edit.pod:214
2487 #, no-wrap
2488 msgid ""
2489 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2490 "\n"
2491 msgstr ""
2492
2493 #. type: textblock
2494 #: ../edit/virt-edit.pod:216
2495 msgid ""
2496 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2497 "For example to delete root's password you could do:"
2498 msgstr ""
2499
2500 #. type: verbatim
2501 #: ../edit/virt-edit.pod:219
2502 #, no-wrap
2503 msgid ""
2504 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2505 "\n"
2506 msgstr ""
2507
2508 #. type: textblock
2509 #: ../edit/virt-edit.pod:221
2510 msgid ""
2511 "What really happens is that the snippet is evaluated as a Perl expression "
2512 "for each line of the file.  The line, including the final C<\\n>, is passed "
2513 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2514 msgstr ""
2515
2516 #. type: textblock
2517 #: ../edit/virt-edit.pod:226
2518 msgid ""
2519 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2520 "C<apache> user account from the password file you can do:"
2521 msgstr ""
2522
2523 #. type: verbatim
2524 #: ../edit/virt-edit.pod:229
2525 #, no-wrap
2526 msgid ""
2527 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2528 "\n"
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../edit/virt-edit.pod:231
2533 msgid ""
2534 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2535 "the end of the file is rather difficult this way since there is no concept "
2536 "of \"last line of the file\" - your expression just doesn't get called "
2537 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2538 "want to do this."
2539 msgstr ""
2540
2541 #. type: textblock
2542 #: ../edit/virt-edit.pod:237
2543 msgid ""
2544 "The variable C<$lineno> contains the current line number.  As is "
2545 "traditional, the first line in the file is number C<1>."
2546 msgstr ""
2547
2548 #. type: textblock
2549 #: ../edit/virt-edit.pod:240
2550 msgid ""
2551 "The return value from the expression is ignored, but the expression may call "
2552 "C<die> in order to abort the whole program, leaving the original file "
2553 "untouched."
2554 msgstr ""
2555
2556 #. type: textblock
2557 #: ../edit/virt-edit.pod:244
2558 msgid ""
2559 "Remember when matching the end of a line that C<$_> may contain the final "
2560 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2561 "newline then neither of these.  Thus to match or substitute some text at the "
2562 "end of a line, use this regular expression:"
2563 msgstr ""
2564
2565 #. type: verbatim
2566 #: ../edit/virt-edit.pod:249
2567 #, no-wrap
2568 msgid ""
2569 " /some text(\\r?\\n)?$/\n"
2570 "\n"
2571 msgstr ""
2572
2573 #. type: textblock
2574 #: ../edit/virt-edit.pod:251
2575 msgid ""
2576 "Alternately, use the perl C<chomp> function, being careful not to chomp "
2577 "C<$_> itself (since that would remove all newlines from the file):"
2578 msgstr ""
2579
2580 #. type: verbatim
2581 #: ../edit/virt-edit.pod:255
2582 #, no-wrap
2583 msgid ""
2584 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2585 "\n"
2586 msgstr ""
2587
2588 #. type: =head1
2589 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2590 msgid "WINDOWS PATHS"
2591 msgstr ""
2592
2593 #. type: textblock
2594 #: ../edit/virt-edit.pod:259
2595 msgid ""
2596 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2597 "paths (eg. C<E:\\foo\\bar.txt>)."
2598 msgstr ""
2599
2600 #. type: textblock
2601 #: ../edit/virt-edit.pod:262
2602 msgid "If and only if the guest is running Windows then:"
2603 msgstr ""
2604
2605 #. type: textblock
2606 #: ../edit/virt-edit.pod:268
2607 msgid ""
2608 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2609 "to the correct filesystem."
2610 msgstr ""
2611
2612 #. type: textblock
2613 #: ../edit/virt-edit.pod:273
2614 msgid ""
2615 "Any backslash (C<\\>) characters in the path are replaced with forward "
2616 "slashes so that libguestfs can process it."
2617 msgstr ""
2618
2619 #. type: textblock
2620 #: ../edit/virt-edit.pod:278
2621 msgid ""
2622 "The path is resolved case insensitively to locate the file that should be "
2623 "edited."
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../edit/virt-edit.pod:283
2628 msgid "There are some known shortcomings:"
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../edit/virt-edit.pod:289
2633 msgid "Some NTFS symbolic links may not be followed correctly."
2634 msgstr ""
2635
2636 #. type: textblock
2637 #: ../edit/virt-edit.pod:293
2638 msgid "NTFS junction points that cross filesystems are not followed."
2639 msgstr ""
2640
2641 #. type: textblock
2642 #: ../edit/virt-edit.pod:299
2643 msgid ""
2644 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2645 "C<virt-edit> doesn't work."
2646 msgstr ""
2647
2648 #. type: textblock
2649 #: ../edit/virt-edit.pod:302
2650 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2651 msgstr ""
2652
2653 #. type: verbatim
2654 #: ../edit/virt-edit.pod:304
2655 #, no-wrap
2656 msgid ""
2657 " guestfish --rw -i -d domname edit /file\n"
2658 "\n"
2659 msgstr ""
2660
2661 #. type: textblock
2662 #: ../edit/virt-edit.pod:306
2663 msgid ""
2664 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2665 "path to the file."
2666 msgstr ""
2667
2668 #. type: textblock
2669 #: ../edit/virt-edit.pod:309
2670 msgid ""
2671 "The command above uses libguestfs's guest inspection feature and so does not "
2672 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2673 "disk images that don't contain guests.  To edit a file on a disk image "
2674 "directly, use:"
2675 msgstr ""
2676
2677 #. type: verbatim
2678 #: ../edit/virt-edit.pod:314
2679 #, no-wrap
2680 msgid ""
2681 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2682 "\n"
2683 msgstr ""
2684
2685 #. type: textblock
2686 #: ../edit/virt-edit.pod:316
2687 msgid ""
2688 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2689 "the disk image to edit, and C</file> is the full path to the file."
2690 msgstr ""
2691
2692 #. type: textblock
2693 #: ../edit/virt-edit.pod:320
2694 msgid ""
2695 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2696 "C<write> or C<upload> instead:"
2697 msgstr ""
2698
2699 #. type: verbatim
2700 #: ../edit/virt-edit.pod:323
2701 #, no-wrap
2702 msgid ""
2703 " guestfish --rw -i -d domname touch /newfile\n"
2704 "\n"
2705 msgstr ""
2706
2707 #. type: verbatim
2708 #: ../edit/virt-edit.pod:325
2709 #, no-wrap
2710 msgid ""
2711 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
2712 "\n"
2713 msgstr ""
2714
2715 #. type: verbatim
2716 #: ../edit/virt-edit.pod:327
2717 #, no-wrap
2718 msgid ""
2719 " guestfish --rw -i -d domname upload localfile /newfile\n"
2720 "\n"
2721 msgstr ""
2722
2723 #. type: =head1
2724 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086 ../rescue/virt-rescue.pod:261 ../src/guestfs.pod:3106 ../test-tool/libguestfs-test-tool.pod:95
2725 msgid "ENVIRONMENT VARIABLES"
2726 msgstr ""
2727
2728 #. type: =item
2729 #: ../edit/virt-edit.pod:333
2730 msgid "C<EDITOR>"
2731 msgstr ""
2732
2733 #. type: textblock
2734 #: ../edit/virt-edit.pod:335
2735 msgid ""
2736 "If set, this string is used as the editor.  It may contain arguments, "
2737 "eg. C<\"emacs -nw\">"
2738 msgstr ""
2739
2740 #. type: textblock
2741 #: ../edit/virt-edit.pod:338
2742 msgid "If not set, C<vi> is used."
2743 msgstr ""
2744
2745 #. type: textblock
2746 #: ../edit/virt-edit.pod:356
2747 msgid ""
2748 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
2749 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2750 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
2751 msgstr ""
2752
2753 #. type: textblock
2754 #: ../erlang/examples/guestfs-erlang.pod:5
2755 msgid "guestfs-erlang - How to use libguestfs from Erlang"
2756 msgstr ""
2757
2758 #. type: verbatim
2759 #: ../erlang/examples/guestfs-erlang.pod:9
2760 #, no-wrap
2761 msgid ""
2762 " {ok, G} = guestfs:create(),\n"
2763 " ok = guestfs:add_drive_opts(G, Disk,\n"
2764 "                             [{format, \"raw\"}, {readonly, true}]),\n"
2765 " ok = guestfs:launch(G),\n"
2766 " [Device] = guestfs:list_devices(G),\n"
2767 " ok = guestfs:close(G).\n"
2768 "\n"
2769 msgstr ""
2770
2771 #. type: textblock
2772 #: ../erlang/examples/guestfs-erlang.pod:18
2773 msgid ""
2774 "This manual page documents how to call libguestfs from the Erlang "
2775 "programming language.  This page just documents the differences from the C "
2776 "API and gives some examples.  If you are not familiar with using libguestfs, "
2777 "you also need to read L<guestfs(3)>."
2778 msgstr ""
2779
2780 #. type: =head2
2781 #: ../erlang/examples/guestfs-erlang.pod:23
2782 msgid "OPENING AND CLOSING THE HANDLE"
2783 msgstr ""
2784
2785 #. type: textblock
2786 #: ../erlang/examples/guestfs-erlang.pod:25
2787 msgid ""
2788 "The Erlang bindings are implemented using an external program called "
2789 "C<erl-guestfs>.  This program must be on the current PATH, or else you "
2790 "should specify the full path to the program:"
2791 msgstr ""
2792
2793 #. type: verbatim
2794 #: ../erlang/examples/guestfs-erlang.pod:29
2795 #, no-wrap
2796 msgid ""
2797 " {ok, G} = guestfs:create().\n"
2798 "\n"
2799 msgstr ""
2800
2801 #. type: verbatim
2802 #: ../erlang/examples/guestfs-erlang.pod:31
2803 #, no-wrap
2804 msgid ""
2805 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
2806 "\n"
2807 msgstr ""
2808
2809 #. type: textblock
2810 #: ../erlang/examples/guestfs-erlang.pod:33
2811 msgid "C<G> is the libguestfs handle which you should pass to other functions."
2812 msgstr ""
2813
2814 #. type: textblock
2815 #: ../erlang/examples/guestfs-erlang.pod:36
2816 msgid "To close the handle:"
2817 msgstr ""
2818
2819 #. type: verbatim
2820 #: ../erlang/examples/guestfs-erlang.pod:38
2821 #, no-wrap
2822 msgid ""
2823 " ok = guestfs:close(G).\n"
2824 "\n"
2825 msgstr ""
2826
2827 #. type: =head2
2828 #: ../erlang/examples/guestfs-erlang.pod:40
2829 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../erlang/examples/guestfs-erlang.pod:42
2834 msgid ""
2835 "For functions that take optional arguments, the first arguments are the "
2836 "non-optional ones.  The last argument is a list of tuples supplying the "
2837 "remaining optional arguments."
2838 msgstr ""
2839
2840 #. type: verbatim
2841 #: ../erlang/examples/guestfs-erlang.pod:46
2842 #, no-wrap
2843 msgid ""
2844 " ok = guestfs:add_drive_opts(G, Disk,\n"
2845 "                             [{format, \"raw\"}, {readonly, true}]).\n"
2846 "\n"
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../erlang/examples/guestfs-erlang.pod:49
2851 msgid "If the last argument would be an empty list, you can also omit it:"
2852 msgstr ""
2853
2854 #. type: verbatim
2855 #: ../erlang/examples/guestfs-erlang.pod:51
2856 #, no-wrap
2857 msgid ""
2858 " ok = guestfs:add_drive_opts(G, Disk).\n"
2859 "\n"
2860 msgstr ""
2861
2862 #. type: =head2
2863 #: ../erlang/examples/guestfs-erlang.pod:53
2864 msgid "RETURN VALUES AND ERRORS"
2865 msgstr ""
2866
2867 #. type: textblock
2868 #: ../erlang/examples/guestfs-erlang.pod:55
2869 msgid ""
2870 "On success, most functions return a C<Result> term (which could be a list, "
2871 "string, tuple etc.).  If there is nothing for the function to return, then "
2872 "the atom C<ok> is returned."
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../erlang/examples/guestfs-erlang.pod:59
2877 msgid "On error, you would see one of the following tuples:"
2878 msgstr ""
2879
2880 #. type: =item
2881 #: ../erlang/examples/guestfs-erlang.pod:63
2882 msgid "C<{error, Msg, Errno}>"
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../erlang/examples/guestfs-erlang.pod:65
2887 msgid "This indicates an ordinary error from the function."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../erlang/examples/guestfs-erlang.pod:67
2892 msgid ""
2893 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
2894 "(integer)."
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../erlang/examples/guestfs-erlang.pod:70
2899 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
2900 msgstr ""
2901
2902 #. type: =item
2903 #: ../erlang/examples/guestfs-erlang.pod:72
2904 msgid "C<{unknown, Function}>"
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../erlang/examples/guestfs-erlang.pod:74
2909 msgid ""
2910 "This indicates that the function you called is not known.  Generally this "
2911 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
2912 "which you should not do."
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../erlang/examples/guestfs-erlang.pod:78
2917 msgid "C<Function> is the name of the unknown function."
2918 msgstr ""
2919
2920 #. type: =item
2921 #: ../erlang/examples/guestfs-erlang.pod:80
2922 msgid "C<{unknownarg, Arg}>"
2923 msgstr ""
2924
2925 #. type: textblock
2926 #: ../erlang/examples/guestfs-erlang.pod:82
2927 msgid ""
2928 "This indicates that you called a function with optional arguments, with an "
2929 "unknown argument name."
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../erlang/examples/guestfs-erlang.pod:85
2934 msgid "C<Arg> is the name of the unknown argument."
2935 msgstr ""
2936
2937 #. type: =head1
2938 #: ../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
2939 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../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
2944 msgid "@EXAMPLE1@"
2945 msgstr ""
2946
2947 #. type: =head1
2948 #: ../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
2949 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../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
2954 msgid "@EXAMPLE2@"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../erlang/examples/guestfs-erlang.pod:99
2959 msgid ""
2960 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
2961 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
2962 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  "
2963 "L<http://libguestfs.org/>."
2964 msgstr ""
2965
2966 #. type: =head1
2967 #: ../erlang/examples/guestfs-erlang.pod:110 ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397 ../fish/guestfish.pod:1260 ../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:3240 ../test-tool/libguestfs-test-tool.pod:106
2968 msgid "AUTHORS"
2969 msgstr ""
2970
2971 #. type: textblock
2972 #: ../erlang/examples/guestfs-erlang.pod:112 ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399 ../fish/guestfish.pod:1262 ../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:3242 ../test-tool/libguestfs-test-tool.pod:108
2973 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
2974 msgstr ""
2975
2976 #. type: textblock
2977 #: ../erlang/examples/guestfs-erlang.pod:116 ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
2978 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
2979 msgstr ""
2980
2981 #. type: textblock
2982 #: ../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
2983 msgid ""
2984 "The examples in this manual page may be freely copied, modified and "
2985 "distributed without any restrictions."
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../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:3249
2990 msgid ""
2991 "This library is free software; you can redistribute it and/or modify it "
2992 "under the terms of the GNU Lesser General Public License as published by the "
2993 "Free Software Foundation; either version 2 of the License, or (at your "
2994 "option) any later version."
2995 msgstr ""
2996
2997 #. type: textblock
2998 #: ../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:3254
2999 msgid ""
3000 "This library is distributed in the hope that it will be useful, but WITHOUT "
3001 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3002 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3003 "for more details."
3004 msgstr ""
3005
3006 #. type: textblock
3007 #: ../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:3259
3008 msgid ""
3009 "You should have received a copy of the GNU Lesser General Public License "
3010 "along with this library; if not, write to the Free Software Foundation, "
3011 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../examples/guestfs-examples.pod:5
3016 msgid "guestfs-examples - Examples of using libguestfs from C"
3017 msgstr ""
3018
3019 #. type: verbatim
3020 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3021 #, no-wrap
3022 msgid ""
3023 " #include <guestfs.h>\n"
3024 " \n"
3025 msgstr ""
3026
3027 #. type: verbatim
3028 #: ../examples/guestfs-examples.pod:11
3029 #, no-wrap
3030 msgid ""
3031 " guestfs_h *g = guestfs_create ();\n"
3032 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3033 " guestfs_launch (g);\n"
3034 "\n"
3035 msgstr ""
3036
3037 #. type: verbatim
3038 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3039 #, no-wrap
3040 msgid ""
3041 " cc prog.c -o prog -lguestfs\n"
3042 "or:\n"
3043 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3044 "\n"
3045 msgstr ""
3046
3047 #. type: textblock
3048 #: ../examples/guestfs-examples.pod:21
3049 msgid ""
3050 "This manual page contains examples of calling libguestfs from the C "
3051 "programming language.  If you are not familiar with using libguestfs, you "
3052 "also need to read L<guestfs(3)>."
3053 msgstr ""
3054
3055 #. type: textblock
3056 #: ../examples/guestfs-examples.pod:35
3057 msgid ""
3058 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
3059 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3060 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3061 msgstr ""
3062
3063 #. type: textblock
3064 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97 ../python/examples/guestfs-python.pod:60 ../ruby/examples/guestfs-ruby.pod:54
3065 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3066 msgstr ""
3067
3068 #. type: =end
3069 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3070 msgid "comment"
3071 msgstr ""
3072
3073 #. type: textblock
3074 #: ../examples/guestfs-recipes.pod:5
3075 msgid ""
3076 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3077 "here.  The only way which works for both sorts of output is to just write "
3078 "the URL directly.  Do NOT use L<...> for URLs."
3079 msgstr ""
3080
3081 #. type: textblock
3082 #: ../examples/guestfs-recipes.pod:9
3083 msgid ""
3084 "We break with tradition here and don't use ALL CAPS for the section "
3085 "headings, as this makes them much easier to read."
3086 msgstr ""
3087
3088 #. type: textblock
3089 #: ../examples/guestfs-recipes.pod:16
3090 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3091 msgstr ""
3092
3093 #. type: textblock
3094 #: ../examples/guestfs-recipes.pod:20
3095 msgid ""
3096 "This page contains recipes for and links to things you can do using "
3097 "libguestfs, L<guestfish(1)> and the virt tools."
3098 msgstr ""
3099
3100 #. type: =head1
3101 #: ../examples/guestfs-recipes.pod:23
3102 msgid "Audit a virtual machine for setuid files"
3103 msgstr ""
3104
3105 #. type: textblock
3106 #: ../examples/guestfs-recipes.pod:25
3107 msgid ""
3108 "The link below contains a small program which can be used to audit a Linux "
3109 "virtual machine to see what setuid and setgid files it contains."
3110 msgstr ""
3111
3112 #. type: textblock
3113 #: ../examples/guestfs-recipes.pod:28
3114 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
3115 msgstr ""
3116
3117 #. type: =head1
3118 #: ../examples/guestfs-recipes.pod:30
3119 msgid "Change the background image in a Windows XP VM"
3120 msgstr ""
3121
3122 #. type: textblock
3123 #: ../examples/guestfs-recipes.pod:32
3124 msgid ""
3125 "The links below explain how to use L<guestfish(1)> to change the background "
3126 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3127 "be substantially different for each version of Windows."
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../examples/guestfs-recipes.pod:37
3132 msgid ""
3133 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
3134 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3135 msgstr ""
3136
3137 #. type: =head1
3138 #: ../examples/guestfs-recipes.pod:40
3139 msgid "Cloning a virtual machine (Linux)"
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../examples/guestfs-recipes.pod:42
3144 msgid ""
3145 "The guestfish technique described in the link below works well for most "
3146 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3147 "slightly."
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../examples/guestfs-recipes.pod:46
3152 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
3153 msgstr ""
3154
3155 #. type: textblock
3156 #: ../examples/guestfs-recipes.pod:48
3157 msgid ""
3158 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3159 "discussion."
3160 msgstr ""
3161
3162 #. type: textblock
3163 #: ../examples/guestfs-recipes.pod:51
3164 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3165 msgstr ""
3166
3167 #. type: =head1
3168 #: ../examples/guestfs-recipes.pod:53
3169 msgid "Cloning a virtual machine (Windows)"
3170 msgstr ""
3171
3172 #. type: textblock
3173 #: ../examples/guestfs-recipes.pod:55
3174 msgid ""
3175 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3176 "straightforward.  Currently there is code in the Aeolus Oz project which "
3177 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3178 "we may add sysprepping ability."
3179 msgstr ""
3180
3181 #. type: textblock
3182 #: ../examples/guestfs-recipes.pod:60
3183 msgid ""
3184 "https://github.com/clalancette/oz "
3185 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3186 msgstr ""
3187
3188 #. type: =head1
3189 #: ../examples/guestfs-recipes.pod:63
3190 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3191 msgstr ""
3192
3193 #. type: textblock
3194 #: ../examples/guestfs-recipes.pod:65
3195 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3196 msgstr ""
3197
3198 #. type: verbatim
3199 #: ../examples/guestfs-recipes.pod:67
3200 #, no-wrap
3201 msgid ""
3202 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3203 "\n"
3204 msgstr ""
3205
3206 #. type: textblock
3207 #: ../examples/guestfs-recipes.pod:69
3208 msgid "To export just a subdirectory, eg. C</files>, do:"
3209 msgstr ""
3210
3211 #. type: verbatim
3212 #: ../examples/guestfs-recipes.pod:71
3213 #, no-wrap
3214 msgid ""
3215 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3216 "\n"
3217 msgstr ""
3218
3219 #. type: =head1
3220 #: ../examples/guestfs-recipes.pod:73
3221 msgid "Create empty disk images"
3222 msgstr ""
3223
3224 #. type: textblock
3225 #: ../examples/guestfs-recipes.pod:75
3226 msgid ""
3227 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3228 "The useful guide below explains the options available."
3229 msgstr ""
3230
3231 #. type: textblock
3232 #: ../examples/guestfs-recipes.pod:78
3233 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
3234 msgstr ""
3235
3236 #. type: =head1
3237 #: ../examples/guestfs-recipes.pod:80
3238 msgid "Dump raw filesystem content from inside a disk image or VM"
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../examples/guestfs-recipes.pod:82
3243 msgid ""
3244 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3245 "filesystem content from any filesystem in a disk image or a VM (even one "
3246 "which is encrypted or buried inside an LV):"
3247 msgstr ""
3248
3249 #. type: verbatim
3250 #: ../examples/guestfs-recipes.pod:86
3251 #, no-wrap
3252 msgid ""
3253 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3254 "\n"
3255 msgstr ""
3256
3257 #. type: verbatim
3258 #: ../examples/guestfs-recipes.pod:88
3259 #, no-wrap
3260 msgid ""
3261 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3262 "\n"
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../examples/guestfs-recipes.pod:90
3267 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3268 msgstr ""
3269
3270 #. type: =head1
3271 #: ../examples/guestfs-recipes.pod:92
3272 msgid "Edit grub configuration in a VM"
3273 msgstr ""
3274
3275 #. type: textblock
3276 #: ../examples/guestfs-recipes.pod:94
3277 msgid "You can use this to:"
3278 msgstr ""
3279
3280 #. type: textblock
3281 #: ../examples/guestfs-recipes.pod:100
3282 msgid "Fix a virtual machine that does not boot."
3283 msgstr ""
3284
3285 #. type: textblock
3286 #: ../examples/guestfs-recipes.pod:104
3287 msgid "Change which kernel is used to boot the VM."
3288 msgstr ""
3289
3290 #. type: textblock
3291 #: ../examples/guestfs-recipes.pod:108
3292 msgid "Change kernel command line options."
3293 msgstr ""
3294
3295 #. type: textblock
3296 #: ../examples/guestfs-recipes.pod:112
3297 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3298 msgstr ""
3299
3300 #. type: verbatim
3301 #: ../examples/guestfs-recipes.pod:114
3302 #, no-wrap
3303 msgid ""
3304 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3305 "\n"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../examples/guestfs-recipes.pod:116
3310 msgid ""
3311 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3312 "this:"
3313 msgstr ""
3314
3315 #. type: verbatim
3316 #: ../examples/guestfs-recipes.pod:119
3317 #, no-wrap
3318 msgid ""
3319 " virt-rescue -d BrokenGuest\n"
3320 "\n"
3321 msgstr ""
3322
3323 #. type: =head1
3324 #: ../examples/guestfs-recipes.pod:121
3325 msgid "Export any directory from a VM"
3326 msgstr ""
3327
3328 #. type: textblock
3329 #: ../examples/guestfs-recipes.pod:123
3330 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3331 msgstr ""
3332
3333 #. type: verbatim
3334 #: ../examples/guestfs-recipes.pod:126
3335 #, no-wrap
3336 msgid ""
3337 " virt-copy-out -d Guest /home .\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: textblock
3342 #: ../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:2029 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:3002 ../src/guestfs.pod:1670 ../tools/virt-win-reg.pl:706
3343 msgid "Notes:"
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../examples/guestfs-recipes.pod:134
3348 msgid ""
3349 "The final dot of the command is not a printing error.  It means we want to "
3350 "copy out to the current directory."
3351 msgstr ""
3352
3353 #. type: textblock
3354 #: ../examples/guestfs-recipes.pod:139
3355 msgid "This creates a directory called C<home> under the current directory."
3356 msgstr ""
3357
3358 #. type: textblock
3359 #: ../examples/guestfs-recipes.pod:143
3360 msgid ""
3361 "If the guest is a Windows guest then you can use drive letters and "
3362 "backslashes, but you must prefix the path with C<win:> and quote it to "
3363 "protect it from the shell, like this:"
3364 msgstr ""
3365
3366 #. type: verbatim
3367 #: ../examples/guestfs-recipes.pod:147
3368 #, no-wrap
3369 msgid ""
3370 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3371 "\n"
3372 msgstr ""
3373
3374 #. type: textblock
3375 #: ../examples/guestfs-recipes.pod:149
3376 msgid "To get the output as a compressed tarball, do:"
3377 msgstr ""
3378
3379 #. type: verbatim
3380 #: ../examples/guestfs-recipes.pod:151
3381 #, no-wrap
3382 msgid ""
3383 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3384 "\n"
3385 msgstr ""
3386
3387 #. type: textblock
3388 #: ../examples/guestfs-recipes.pod:153
3389 msgid ""
3390 "Although it sounds tempting, this is usually not a reliable way to get a "
3391 "backup from a running guest.  See the entry in the FAQ: "
3392 "http://libguestfs.org/FAQ.html#backup"
3393 msgstr ""
3394
3395 #. type: =head1
3396 #: ../examples/guestfs-recipes.pod:157
3397 msgid "Find out which user is using the most space"
3398 msgstr ""
3399
3400 #. type: textblock
3401 #: ../examples/guestfs-recipes.pod:159
3402 msgid ""
3403 "This simple script examines a Linux guest to find out which user is using "
3404 "the most space in their home directory:"
3405 msgstr ""
3406
3407 #. type: verbatim
3408 #: ../examples/guestfs-recipes.pod:162
3409 #, no-wrap
3410 msgid ""
3411 " #!/bin/sh -\n"
3412 " \n"
3413 msgstr ""
3414
3415 #. type: verbatim
3416 #: ../examples/guestfs-recipes.pod:164
3417 #, no-wrap
3418 msgid ""
3419 " set -e\n"
3420 " \n"
3421 msgstr ""
3422
3423 #. type: verbatim
3424 #: ../examples/guestfs-recipes.pod:166
3425 #, no-wrap
3426 msgid ""
3427 " vm=\"$1\"\n"
3428 " dir=/home\n"
3429 " \n"
3430 msgstr ""
3431
3432 #. type: verbatim
3433 #: ../examples/guestfs-recipes.pod:169
3434 #, no-wrap
3435 msgid ""
3436 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3437 " \n"
3438 msgstr ""
3439
3440 #. type: verbatim
3441 #: ../examples/guestfs-recipes.pod:171
3442 #, no-wrap
3443 msgid ""
3444 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3445 "     echo -n \"$dir/$d\"\n"
3446 "     echo -ne '\\t'\n"
3447 "     guestfish --remote du \"$dir/$d\";\n"
3448 " done | sort -nr -k 2\n"
3449 " \n"
3450 msgstr ""
3451
3452 #. type: verbatim
3453 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3454 #, no-wrap
3455 msgid ""
3456 " guestfish --remote exit\n"
3457 "\n"
3458 msgstr ""
3459
3460 #. type: =head1
3461 #: ../examples/guestfs-recipes.pod:179
3462 msgid "Get DHCP address from a VM"
3463 msgstr ""
3464
3465 #. type: textblock
3466 #: ../examples/guestfs-recipes.pod:181
3467 msgid ""
3468 "The link below explains the many different possible techniques for getting "
3469 "the last assigned DHCP address of a virtual machine."
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../examples/guestfs-recipes.pod:184
3474 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../examples/guestfs-recipes.pod:186
3479 msgid ""
3480 "In the libguestfs source examples directory you will find the latest version "
3481 "of the C<virt-dhcp-address.c> program."
3482 msgstr ""
3483
3484 #. type: =head1
3485 #: ../examples/guestfs-recipes.pod:189
3486 msgid "Get the operating system product name string"
3487 msgstr ""
3488
3489 #. type: textblock
3490 #: ../examples/guestfs-recipes.pod:191
3491 msgid "Save the following script into a file called C<product-name.sh>:"
3492 msgstr ""
3493
3494 #. type: verbatim
3495 #: ../examples/guestfs-recipes.pod:193
3496 #, no-wrap
3497 msgid ""
3498 " #!/bin/sh -\n"
3499 " set -e\n"
3500 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3501 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3502 " guestfish --remote inspect-get-product-name \"$root\"\n"
3503 " guestfish --remote exit\n"
3504 "\n"
3505 msgstr ""
3506
3507 #. type: textblock
3508 #: ../examples/guestfs-recipes.pod:200
3509 msgid "Make the script executable and run it on a named guest:"
3510 msgstr ""
3511
3512 #. type: verbatim
3513 #: ../examples/guestfs-recipes.pod:202
3514 #, no-wrap
3515 msgid ""
3516 " # product-name.sh RHEL60x64\n"
3517 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3518 "\n"
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../examples/guestfs-recipes.pod:205
3523 msgid ""
3524 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3525 "C<xpath> command line tool or from your favourite programming language:"
3526 msgstr ""
3527
3528 #. type: verbatim
3529 #: ../examples/guestfs-recipes.pod:209
3530 #, no-wrap
3531 msgid ""
3532 " # virt-inspector RHEL60x64 > xml\n"
3533 " # xpath '//product_name' < xml\n"
3534 " Found 1 nodes:\n"
3535 " -- NODE --\n"
3536 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
3537 "(Santiago)</product_name>\n"
3538 "\n"
3539 msgstr ""
3540
3541 #. type: =head1
3542 #: ../examples/guestfs-recipes.pod:215
3543 msgid "Get the default boot kernel for a Linux VM"
3544 msgstr ""
3545
3546 #. type: textblock
3547 #: ../examples/guestfs-recipes.pod:217
3548 msgid ""
3549 "The link below contains a program to print the default boot kernel for a "
3550 "Linux VM."
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../examples/guestfs-recipes.pod:220
3555 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
3556 msgstr ""
3557
3558 #. type: textblock
3559 #: ../examples/guestfs-recipes.pod:222
3560 msgid ""
3561 "It uses Augeas, and the technique is generally applicable for many different "
3562 "tasks, such as:"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../examples/guestfs-recipes.pod:229
3567 msgid "listing the user accounts in the guest"
3568 msgstr ""
3569
3570 #. type: textblock
3571 #: ../examples/guestfs-recipes.pod:233
3572 msgid "what repositories is it configured to use"
3573 msgstr ""
3574
3575 #. type: textblock
3576 #: ../examples/guestfs-recipes.pod:237
3577 msgid "what NTP servers does it connect to"
3578 msgstr ""
3579
3580 #. type: textblock
3581 #: ../examples/guestfs-recipes.pod:241
3582 msgid "what were the boot messages last time it booted"
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../examples/guestfs-recipes.pod:245
3587 msgid "listing who was logged in recently"
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../examples/guestfs-recipes.pod:249
3592 msgid "http://augeas.net/"
3593 msgstr ""
3594
3595 #. type: =head1
3596 #: ../examples/guestfs-recipes.pod:251
3597 msgid "Install RPMs in a guest"
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../examples/guestfs-recipes.pod:253
3602 msgid ""
3603 "The link below contains a method to install RPMs in a guest.  In fact the "
3604 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3605 "installs them next time the guest is booted.  You could use this technique "
3606 "to install vital security updates in an offline guest."
3607 msgstr ""
3608
3609 #. type: textblock
3610 #: ../examples/guestfs-recipes.pod:259
3611 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3612 msgstr ""
3613
3614 #. type: =head1
3615 #: ../examples/guestfs-recipes.pod:261
3616 msgid "List applications installed in a VM"
3617 msgstr ""
3618
3619 #. type: textblock
3620 #: ../examples/guestfs-recipes.pod:263
3621 msgid "Save the following to a file C<list-apps.sh>:"
3622 msgstr ""
3623
3624 #. type: verbatim
3625 #: ../examples/guestfs-recipes.pod:265
3626 #, no-wrap
3627 msgid ""
3628 " #!/bin/sh -\n"
3629 " set -e\n"
3630 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3631 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3632 " guestfish --remote inspect-list-applications \"$root\"\n"
3633 " guestfish --remote exit\n"
3634 "\n"
3635 msgstr ""
3636
3637 #. type: textblock
3638 #: ../examples/guestfs-recipes.pod:272
3639 msgid ""
3640 "Make the file executable and then you can run it on any named virtual "
3641 "machine:"
3642 msgstr ""
3643
3644 #. type: verbatim
3645 #: ../examples/guestfs-recipes.pod:275
3646 #, no-wrap
3647 msgid ""
3648 " # list-apps.sh WinGuest\n"
3649 " [0] = {\n"
3650 "   app_name: Mozilla Firefox (3.6.12)\n"
3651 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3652 "   app_epoch: 0\n"
3653 "   app_version: 3.6.12 (en-GB)\n"
3654 "   app_release:\n"
3655 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3656 "   app_trans_path:\n"
3657 "   app_publisher: Mozilla\n"
3658 "   app_url: http://www.mozilla.com/en-GB/\n"
3659 "   app_source_package:\n"
3660 "   app_summary:\n"
3661 "   app_description: Mozilla Firefox\n"
3662 " }\n"
3663 " [1] = {\n"
3664 "   app_name: VLC media player\n"
3665 "   app_display_name: VLC media player 1.1.5\n"
3666 "   app_epoch: 0\n"
3667 "   app_version: 1.1.5\n"
3668 "   app_release:\n"
3669 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3670 "   app_trans_path:\n"
3671 "   app_publisher: VideoLAN\n"
3672 "   app_url: http://www.videolan.org/\n"
3673 "   app_source_package:\n"
3674 "   app_summary:\n"
3675 "   app_description:\n"
3676 " }\n"
3677 "\n"
3678 msgstr ""
3679
3680 #. type: textblock
3681 #: ../examples/guestfs-recipes.pod:305
3682 msgid ""
3683 "If you want to run the script on disk images (instead of libvirt virtual "
3684 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
3685 "L<virt-inspector(1)>."
3686 msgstr ""
3687
3688 #. type: =head1
3689 #: ../examples/guestfs-recipes.pod:309
3690 msgid "List files and directories in a VM"
3691 msgstr ""
3692
3693 #. type: textblock
3694 #: ../examples/guestfs-recipes.pod:311
3695 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3696 msgstr ""
3697
3698 #. type: verbatim
3699 #: ../examples/guestfs-recipes.pod:313
3700 #, no-wrap
3701 msgid ""
3702 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3703 "\n"
3704 msgstr ""
3705
3706 #. type: =head1
3707 #: ../examples/guestfs-recipes.pod:315
3708 msgid "List services in a Windows VM"
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../examples/guestfs-recipes.pod:317
3713 msgid ""
3714 "The link below contains a script that can be used to list out the services "
3715 "from a Windows VM, and whether those services run at boot time or are loaded "
3716 "on demand."
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../examples/guestfs-recipes.pod:321
3721 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
3722 msgstr ""
3723
3724 #. type: =head1
3725 #: ../examples/guestfs-recipes.pod:323
3726 msgid "Make a disk image sparse"
3727 msgstr ""
3728
3729 #. type: textblock
3730 #: ../examples/guestfs-recipes.pod:325
3731 msgid ""
3732 "The link below contains some guides for making a disk image sparse (or "
3733 "reintroducing sparseness)."
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../examples/guestfs-recipes.pod:328
3738 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3739 msgstr ""
3740
3741 #. type: =head1
3742 #: ../examples/guestfs-recipes.pod:330
3743 msgid "Monitor disk usage over time"
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../examples/guestfs-recipes.pod:332
3748 msgid ""
3749 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3750 "The link below contains a guide."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../examples/guestfs-recipes.pod:335
3755 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3756 msgstr ""
3757
3758 #. type: =head1
3759 #: ../examples/guestfs-recipes.pod:337
3760 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../examples/guestfs-recipes.pod:339
3765 msgid ""
3766 "L<guestfish(1)> plus the tools described in the link below can be used to "
3767 "read out the Windows Event Log from any virtual machine running Windows "
3768 "Vista or a later version."
3769 msgstr ""
3770
3771 #. type: textblock
3772 #: ../examples/guestfs-recipes.pod:343
3773 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
3774 msgstr ""
3775
3776 #. type: =head1
3777 #: ../examples/guestfs-recipes.pod:345
3778 msgid "Remove root password (Linux)"
3779 msgstr ""
3780
3781 #. type: textblock
3782 #: ../examples/guestfs-recipes.pod:347
3783 msgid ""
3784 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3785 "files.  One use is to remove the root password from a Linux guest:"
3786 msgstr ""
3787
3788 #. type: verbatim
3789 #: ../examples/guestfs-recipes.pod:350
3790 #, no-wrap
3791 msgid ""
3792 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3793 "\n"
3794 msgstr ""
3795
3796 #. type: =head1
3797 #: ../examples/guestfs-recipes.pod:352
3798 msgid "Remove Administrator password (Windows)"
3799 msgstr ""
3800
3801 #. type: textblock
3802 #: ../examples/guestfs-recipes.pod:354
3803 msgid ""
3804 "The link below contains one technique for removing the Administrator "
3805 "password from a Windows VM, or to be more precise, it gives you a command "
3806 "prompt the next time you log in which you can use to bypass any security:"
3807 msgstr ""
3808
3809 #. type: textblock
3810 #: ../examples/guestfs-recipes.pod:359
3811 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
3812 msgstr ""
3813
3814 #. type: =head1
3815 #: ../examples/guestfs-recipes.pod:361
3816 msgid "Unpack a live CD"
3817 msgstr ""
3818
3819 #. type: textblock
3820 #: ../examples/guestfs-recipes.pod:363
3821 msgid ""
3822 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3823 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
3824 "layers, as outlined in the guide below."
3825 msgstr ""
3826
3827 #. type: textblock
3828 #: ../examples/guestfs-recipes.pod:367
3829 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
3830 msgstr ""
3831
3832 #. type: =head1
3833 #: ../examples/guestfs-recipes.pod:369
3834 msgid "Uploading and downloading files"
3835 msgstr ""
3836
3837 #. type: textblock
3838 #: ../examples/guestfs-recipes.pod:371
3839 msgid ""
3840 "The link below contains general tips on uploading (copying in)  and "
3841 "downloading (copying out) files from VMs."
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../examples/guestfs-recipes.pod:374
3846 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
3847 msgstr ""
3848
3849 #. type: =head1
3850 #: ../examples/guestfs-recipes.pod:376
3851 msgid "Use libguestfs tools on VMware ESX guests"
3852 msgstr ""
3853
3854 #. type: textblock
3855 #: ../examples/guestfs-recipes.pod:378
3856 msgid ""
3857 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
3858 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../examples/guestfs-recipes.pod:382
3863 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
3864 msgstr ""
3865
3866 #. type: textblock
3867 #: ../examples/guestfs-recipes.pod:386
3868 msgid ""
3869 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, "
3870 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
3871 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
3872 "L<http://libguestfs.org/>."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../examples/guestfs-recipes.pod:403
3877 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
3878 msgstr ""
3879
3880 #. type: =head2
3881 #: ../fish/guestfish-actions.pod:1
3882 msgid "add-cdrom"
3883 msgstr ""
3884
3885 #. type: verbatim
3886 #: ../fish/guestfish-actions.pod:3
3887 #, no-wrap
3888 msgid ""
3889 " add-cdrom filename\n"
3890 "\n"
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
3895 msgid "This function adds a virtual CD-ROM disk image to the guest."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
3900 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
3901 msgstr ""
3902
3903 #. type: textblock
3904 #: ../fish/guestfish-actions.pod:15
3905 msgid ""
3906 "This call checks for the existence of C<filename>.  This stops you from "
3907 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3908 "and C<http:> URLs.  To specify those, use the general L</config> call "
3909 "instead."
3910 msgstr ""
3911
3912 #. type: textblock
3913 #: ../fish/guestfish-actions.pod:22
3914 msgid ""
3915 "If you just want to add an ISO file (often you use this as an efficient way "
3916 "to transfer large files into the guest), then you should probably use "
3917 "L</add-drive-ro> instead."
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
3922 msgid ""
3923 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
3924 "instead."
3925 msgstr ""
3926
3927 #. type: textblock
3928 #: ../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:1615 ../src/guestfs-actions.pod:2114 ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:4765 ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5387 ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6711 ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:7740 ../src/guestfs-actions.pod:7849 ../src/guestfs-actions.pod:8032
3929 msgid ""
3930 "Deprecated functions will not be removed from the API, but the fact that "
3931 "they are deprecated indicates that there are problems with correct use of "
3932 "these functions."
3933 msgstr ""
3934
3935 #. type: =head2
3936 #: ../fish/guestfish-actions.pod:35
3937 msgid "add-domain"
3938 msgstr ""
3939
3940 #. type: =head2
3941 #: ../fish/guestfish-actions.pod:37
3942 msgid "domain"
3943 msgstr ""
3944
3945 #. type: verbatim
3946 #: ../fish/guestfish-actions.pod:39
3947 #, no-wrap
3948 msgid ""
3949 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
3950 "[allowuuid:..]\n"
3951 "\n"
3952 msgstr ""
3953
3954 #. type: textblock
3955 #: ../fish/guestfish-actions.pod:41
3956 msgid ""
3957 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
3958 "It works by connecting to libvirt, requesting the domain and domain XML from "
3959 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
3960 msgstr ""
3961
3962 #. type: textblock
3963 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
3964 msgid ""
3965 "The number of disks added is returned.  This operation is atomic: if an "
3966 "error is returned, then no disks are added."
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
3971 msgid ""
3972 "This function does some minimal checks to make sure the libvirt domain is "
3973 "not running (unless C<readonly> is true).  In a future version we will try "
3974 "to acquire the libvirt lock on each disk."
3975 msgstr ""
3976
3977 #. type: textblock
3978 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
3979 msgid ""
3980 "Disks must be accessible locally.  This often means that adding disks from a "
3981 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
3982 "unless those disks are accessible via the same device path locally too."
3983 msgstr ""
3984
3985 #. type: textblock
3986 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
3987 msgid ""
3988 "The optional C<libvirturi> parameter sets the libvirt URI (see "
3989 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
3990 "default libvirt URI (or one set through an environment variable, see the "
3991 "libvirt documentation for full details)."
3992 msgstr ""
3993
3994 #. type: textblock
3995 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
3996 msgid ""
3997 "The optional C<live> flag controls whether this call will try to connect to "
3998 "a running virtual machine C<guestfsd> process if it sees a suitable "
3999 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4000 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4001 "DAEMONS> for more information."
4002 msgstr ""
4003
4004 #. type: textblock
4005 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4006 msgid ""
4007 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4008 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4009 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4010 "as usual."
4011 msgstr ""
4012
4013 #. type: textblock
4014 #: ../fish/guestfish-actions.pod:76
4015 msgid ""
4016 "The other optional parameters are passed directly through to "
4017 "L</add-drive-opts>."
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../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
4022 msgid ""
4023 "This command has one or more optional arguments.  See L</OPTIONAL "
4024 "ARGUMENTS>."
4025 msgstr ""
4026
4027 #. type: =head2
4028 #: ../fish/guestfish-actions.pod:81
4029 msgid "add-drive"
4030 msgstr ""
4031
4032 #. type: verbatim
4033 #: ../fish/guestfish-actions.pod:83
4034 #, no-wrap
4035 msgid ""
4036 " add-drive filename\n"
4037 "\n"
4038 msgstr ""
4039
4040 #. type: textblock
4041 #: ../fish/guestfish-actions.pod:85
4042 msgid ""
4043 "This function is the equivalent of calling L</add-drive-opts> with no "
4044 "optional parameters, so the disk is added writable, with the format being "
4045 "detected automatically."
4046 msgstr ""
4047
4048 #. type: textblock
4049 #: ../fish/guestfish-actions.pod:89
4050 msgid ""
4051 "Automatic detection of the format opens you up to a potential security hole "
4052 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4053 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4054 "you should think about replacing calls to this function with calls to "
4055 "L</add-drive-opts>, and specifying the format."
4056 msgstr ""
4057
4058 #. type: =head2
4059 #: ../fish/guestfish-actions.pod:96
4060 msgid "add-drive-opts"
4061 msgstr ""
4062
4063 #. type: =head2
4064 #: ../fish/guestfish-actions.pod:98
4065 msgid "add"
4066 msgstr ""
4067
4068 #. type: verbatim
4069 #: ../fish/guestfish-actions.pod:100
4070 #, no-wrap
4071 msgid ""
4072 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4073 "\n"
4074 msgstr ""
4075
4076 #. type: textblock
4077 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4078 msgid ""
4079 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4080 "The first time you call this function, the disk appears as C</dev/sda>, the "
4081 "second time as C</dev/sdb>, and so on."
4082 msgstr ""
4083
4084 #. type: textblock
4085 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4086 msgid ""
4087 "You don't necessarily need to be root when using libguestfs.  However you "
4088 "obviously do need sufficient permissions to access the filename for whatever "
4089 "operations you want to perform (ie. read access if you just want to read the "
4090 "image or write access if you want to modify the image)."
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4095 msgid "This call checks that C<filename> exists."
4096 msgstr ""
4097
4098 #. type: textblock
4099 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4100 msgid "The optional arguments are:"
4101 msgstr ""
4102
4103 #. type: =item
4104 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4105 msgid "C<readonly>"
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4110 msgid ""
4111 "If true then the image is treated as read-only.  Writes are still allowed, "
4112 "but they are stored in a temporary snapshot overlay which is discarded at "
4113 "the end.  The disk that you add is not modified."
4114 msgstr ""
4115
4116 #. type: =item
4117 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4118 msgid "C<format>"
4119 msgstr ""
4120
4121 #. type: textblock
4122 #: ../fish/guestfish-actions.pod:127
4123 msgid ""
4124 "This forces the image format.  If you omit this (or use L</add-drive> or "
4125 "L</add-drive-ro>) then the format is automatically detected.  Possible "
4126 "formats include C<raw> and C<qcow2>."
4127 msgstr ""
4128
4129 #. type: textblock
4130 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4131 msgid ""
4132 "Automatic detection of the format opens you up to a potential security hole "
4133 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4134 "RHBZ#642934.  Specifying the format closes this security hole."
4135 msgstr ""
4136
4137 #. type: =item
4138 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4139 msgid "C<iface>"
4140 msgstr ""
4141
4142 #. type: textblock
4143 #: ../fish/guestfish-actions.pod:138
4144 msgid ""
4145 "This rarely-used option lets you emulate the behaviour of the deprecated "
4146 "L</add-drive-with-if> call (q.v.)"
4147 msgstr ""
4148
4149 #. type: =head2
4150 #: ../fish/guestfish-actions.pod:145
4151 msgid "add-drive-ro"
4152 msgstr ""
4153
4154 #. type: =head2
4155 #: ../fish/guestfish-actions.pod:147
4156 msgid "add-ro"
4157 msgstr ""
4158
4159 #. type: verbatim
4160 #: ../fish/guestfish-actions.pod:149
4161 #, no-wrap
4162 msgid ""
4163 " add-drive-ro filename\n"
4164 "\n"
4165 msgstr ""
4166
4167 #. type: textblock
4168 #: ../fish/guestfish-actions.pod:151
4169 msgid ""
4170 "This function is the equivalent of calling L</add-drive-opts> with the "
4171 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4172 "is added read-only, with the format being detected automatically."
4173 msgstr ""
4174
4175 #. type: =head2
4176 #: ../fish/guestfish-actions.pod:156
4177 msgid "add-drive-ro-with-if"
4178 msgstr ""
4179
4180 #. type: verbatim
4181 #: ../fish/guestfish-actions.pod:158
4182 #, no-wrap
4183 msgid ""
4184 " add-drive-ro-with-if filename iface\n"
4185 "\n"
4186 msgstr ""
4187
4188 #. type: textblock
4189 #: ../fish/guestfish-actions.pod:160
4190 msgid ""
4191 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4192 "interface emulation to use at run time."
4193 msgstr ""
4194
4195 #. type: =head2
4196 #: ../fish/guestfish-actions.pod:170
4197 msgid "add-drive-with-if"
4198 msgstr ""
4199
4200 #. type: verbatim
4201 #: ../fish/guestfish-actions.pod:172
4202 #, no-wrap
4203 msgid ""
4204 " add-drive-with-if filename iface\n"
4205 "\n"
4206 msgstr ""
4207
4208 #. type: textblock
4209 #: ../fish/guestfish-actions.pod:174
4210 msgid ""
4211 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4212 "interface emulation to use at run time."
4213 msgstr ""
4214
4215 #. type: =head2
4216 #: ../fish/guestfish-actions.pod:184
4217 msgid "aug-clear"
4218 msgstr ""
4219
4220 #. type: verbatim
4221 #: ../fish/guestfish-actions.pod:186
4222 #, no-wrap
4223 msgid ""
4224 " aug-clear augpath\n"
4225 "\n"
4226 msgstr ""
4227
4228 #. type: textblock
4229 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4230 msgid ""
4231 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4232 "L<augtool(1)> C<clear> command."
4233 msgstr ""
4234
4235 #. type: =head2
4236 #: ../fish/guestfish-actions.pod:191
4237 msgid "aug-close"
4238 msgstr ""
4239
4240 #. type: verbatim
4241 #: ../fish/guestfish-actions.pod:193
4242 #, no-wrap
4243 msgid ""
4244 " aug-close\n"
4245 "\n"
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../fish/guestfish-actions.pod:195
4250 msgid ""
4251 "Close the current Augeas handle and free up any resources used by it.  After "
4252 "calling this, you have to call L</aug-init> again before you can use any "
4253 "other Augeas functions."
4254 msgstr ""
4255
4256 #. type: =head2
4257 #: ../fish/guestfish-actions.pod:200
4258 msgid "aug-defnode"
4259 msgstr ""
4260
4261 #. type: verbatim
4262 #: ../fish/guestfish-actions.pod:202
4263 #, no-wrap
4264 msgid ""
4265 " aug-defnode name expr val\n"
4266 "\n"
4267 msgstr ""
4268
4269 #. type: textblock
4270 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4271 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4272 msgstr ""
4273
4274 #. type: textblock
4275 #: ../fish/guestfish-actions.pod:207
4276 msgid ""
4277 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4278 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4279 "containing that single node."
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4284 msgid ""
4285 "On success this returns a pair containing the number of nodes in the "
4286 "nodeset, and a boolean flag if a node was created."
4287 msgstr ""
4288
4289 #. type: =head2
4290 #: ../fish/guestfish-actions.pod:215
4291 msgid "aug-defvar"
4292 msgstr ""
4293
4294 #. type: verbatim
4295 #: ../fish/guestfish-actions.pod:217
4296 #, no-wrap
4297 msgid ""
4298 " aug-defvar name expr\n"
4299 "\n"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4304 msgid ""
4305 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4306 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4311 msgid ""
4312 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4313 "evaluates to something which is not a nodeset."
4314 msgstr ""
4315
4316 #. type: =head2
4317 #: ../fish/guestfish-actions.pod:226
4318 msgid "aug-get"
4319 msgstr ""
4320
4321 #. type: verbatim
4322 #: ../fish/guestfish-actions.pod:228
4323 #, no-wrap
4324 msgid ""
4325 " aug-get augpath\n"
4326 "\n"
4327 msgstr ""
4328
4329 #. type: textblock
4330 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4331 msgid ""
4332 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4333 "node, the C<value> is returned."
4334 msgstr ""
4335
4336 #. type: =head2
4337 #: ../fish/guestfish-actions.pod:233
4338 msgid "aug-init"
4339 msgstr ""
4340
4341 #. type: verbatim
4342 #: ../fish/guestfish-actions.pod:235
4343 #, no-wrap
4344 msgid ""
4345 " aug-init root flags\n"
4346 "\n"
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4351 msgid ""
4352 "Create a new Augeas handle for editing configuration files.  If there was "
4353 "any previous Augeas handle associated with this guestfs session, then it is "
4354 "closed."
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../fish/guestfish-actions.pod:241
4359 msgid "You must call this before using any other L</aug-*> commands."
4360 msgstr ""
4361
4362 #. type: textblock
4363 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4364 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4365 msgstr ""
4366
4367 #. type: textblock
4368 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4369 msgid ""
4370 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4371 "logical I<or> of the following integers:"
4372 msgstr ""
4373
4374 #. type: =item
4375 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4376 msgid "C<AUG_SAVE_BACKUP> = 1"
4377 msgstr ""
4378
4379 #. type: textblock
4380 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4381 msgid "Keep the original file with a C<.augsave> extension."
4382 msgstr ""
4383
4384 #. type: =item
4385 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4386 msgid "C<AUG_SAVE_NEWFILE> = 2"
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4391 msgid ""
4392 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4393 "original.  Overrides C<AUG_SAVE_BACKUP>."
4394 msgstr ""
4395
4396 #. type: =item
4397 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4398 msgid "C<AUG_TYPE_CHECK> = 4"
4399 msgstr ""
4400
4401 #. type: textblock
4402 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4403 msgid "Typecheck lenses."
4404 msgstr ""
4405
4406 #. type: textblock
4407 #: ../fish/guestfish-actions.pod:266
4408 msgid ""
4409 "This option is only useful when debugging Augeas lenses.  Use of this option "
4410 "may require additional memory for the libguestfs appliance.  You may need to "
4411 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4412 msgstr ""
4413
4414 #. type: =item
4415 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4416 msgid "C<AUG_NO_STDINC> = 8"
4417 msgstr ""
4418
4419 #. type: textblock
4420 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4421 msgid "Do not use standard load path for modules."
4422 msgstr ""
4423
4424 #. type: =item
4425 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4426 msgid "C<AUG_SAVE_NOOP> = 16"
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4431 msgid "Make save a no-op, just record what would have been changed."
4432 msgstr ""
4433
4434 #. type: =item
4435 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4436 msgid "C<AUG_NO_LOAD> = 32"
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../fish/guestfish-actions.pod:281
4441 msgid "Do not load the tree in L</aug-init>."
4442 msgstr ""
4443
4444 #. type: textblock
4445 #: ../fish/guestfish-actions.pod:285
4446 msgid "To close the handle, you can call L</aug-close>."
4447 msgstr ""
4448
4449 #. type: textblock
4450 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4451 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4452 msgstr ""
4453
4454 #. type: =head2
4455 #: ../fish/guestfish-actions.pod:289
4456 msgid "aug-insert"
4457 msgstr ""
4458
4459 #. type: verbatim
4460 #: ../fish/guestfish-actions.pod:291
4461 #, no-wrap
4462 msgid ""
4463 " aug-insert augpath label true|false\n"
4464 "\n"
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4469 msgid ""
4470 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4471 "or after C<path> (depending on the boolean flag C<before>)."
4472 msgstr ""
4473
4474 #. type: textblock
4475 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4476 msgid ""
4477 "C<path> must match exactly one existing node in the tree, and C<label> must "
4478 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4479 msgstr ""
4480
4481 #. type: =head2
4482 #: ../fish/guestfish-actions.pod:301
4483 msgid "aug-load"
4484 msgstr ""
4485
4486 #. type: verbatim
4487 #: ../fish/guestfish-actions.pod:303
4488 #, no-wrap
4489 msgid ""
4490 " aug-load\n"
4491 "\n"
4492 msgstr ""
4493
4494 #. type: textblock
4495 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4496 msgid "Load files into the tree."
4497 msgstr ""
4498
4499 #. type: textblock
4500 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4501 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4502 msgstr ""
4503
4504 #. type: =head2
4505 #: ../fish/guestfish-actions.pod:310
4506 msgid "aug-ls"
4507 msgstr ""
4508
4509 #. type: verbatim
4510 #: ../fish/guestfish-actions.pod:312
4511 #, no-wrap
4512 msgid ""
4513 " aug-ls augpath\n"
4514 "\n"
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../fish/guestfish-actions.pod:314
4519 msgid ""
4520 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4521 "resulting nodes into alphabetical order."
4522 msgstr ""
4523
4524 #. type: =head2
4525 #: ../fish/guestfish-actions.pod:317
4526 msgid "aug-match"
4527 msgstr ""
4528
4529 #. type: verbatim
4530 #: ../fish/guestfish-actions.pod:319
4531 #, no-wrap
4532 msgid ""
4533 " aug-match augpath\n"
4534 "\n"
4535 msgstr ""
4536
4537 #. type: textblock
4538 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4539 msgid ""
4540 "Returns a list of paths which match the path expression C<path>.  The "
4541 "returned paths are sufficiently qualified so that they match exactly one "
4542 "node in the current tree."
4543 msgstr ""
4544
4545 #. type: =head2
4546 #: ../fish/guestfish-actions.pod:325
4547 msgid "aug-mv"
4548 msgstr ""
4549
4550 #. type: verbatim
4551 #: ../fish/guestfish-actions.pod:327
4552 #, no-wrap
4553 msgid ""
4554 " aug-mv src dest\n"
4555 "\n"
4556 msgstr ""
4557
4558 #. type: textblock
4559 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4560 msgid ""
4561 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4562 "C<dest> is overwritten if it exists."
4563 msgstr ""
4564
4565 #. type: =head2
4566 #: ../fish/guestfish-actions.pod:332
4567 msgid "aug-rm"
4568 msgstr ""
4569
4570 #. type: verbatim
4571 #: ../fish/guestfish-actions.pod:334
4572 #, no-wrap
4573 msgid ""
4574 " aug-rm augpath\n"
4575 "\n"
4576 msgstr ""
4577
4578 #. type: textblock
4579 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4580 msgid "Remove C<path> and all of its children."
4581 msgstr ""
4582
4583 #. type: textblock
4584 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4585 msgid "On success this returns the number of entries which were removed."
4586 msgstr ""
4587
4588 #. type: =head2
4589 #: ../fish/guestfish-actions.pod:340
4590 msgid "aug-save"
4591 msgstr ""
4592
4593 #. type: verbatim
4594 #: ../fish/guestfish-actions.pod:342
4595 #, no-wrap
4596 msgid ""
4597 " aug-save\n"
4598 "\n"
4599 msgstr ""
4600
4601 #. type: textblock
4602 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4603 msgid "This writes all pending changes to disk."
4604 msgstr ""
4605
4606 #. type: textblock
4607 #: ../fish/guestfish-actions.pod:346
4608 msgid ""
4609 "The flags which were passed to L</aug-init> affect exactly how files are "
4610 "saved."
4611 msgstr ""
4612
4613 #. type: =head2
4614 #: ../fish/guestfish-actions.pod:349
4615 msgid "aug-set"
4616 msgstr ""
4617
4618 #. type: verbatim
4619 #: ../fish/guestfish-actions.pod:351
4620 #, no-wrap
4621 msgid ""
4622 " aug-set augpath val\n"
4623 "\n"
4624 msgstr ""
4625
4626 #. type: textblock
4627 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4628 msgid "Set the value associated with C<path> to C<val>."
4629 msgstr ""
4630
4631 #. type: textblock
4632 #: ../fish/guestfish-actions.pod:355
4633 msgid ""
4634 "In the Augeas API, it is possible to clear a node by setting the value to "
4635 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4636 "this call.  Instead you must use the L</aug-clear> call."
4637 msgstr ""
4638
4639 #. type: =head2
4640 #: ../fish/guestfish-actions.pod:360
4641 msgid "available"
4642 msgstr ""
4643
4644 #. type: verbatim
4645 #: ../fish/guestfish-actions.pod:362
4646 #, no-wrap
4647 msgid ""
4648 " available 'groups ...'\n"
4649 "\n"
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4654 msgid ""
4655 "This command is used to check the availability of some groups of "
4656 "functionality in the appliance, which not all builds of the libguestfs "
4657 "appliance will be able to provide."
4658 msgstr ""
4659
4660 #. type: textblock
4661 #: ../fish/guestfish-actions.pod:368
4662 msgid ""
4663 "The libguestfs groups, and the functions that those groups correspond to, "
4664 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4665 "runtime by calling L</available-all-groups>."
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4670 msgid ""
4671 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4672 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4673 "and Augeas (configuration file editing) functions."
4674 msgstr ""
4675
4676 #. type: textblock
4677 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4678 msgid "The command returns no error if I<all> requested groups are available."
4679 msgstr ""
4680
4681 #. type: textblock
4682 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4683 msgid ""
4684 "It fails with an error if one or more of the requested groups is unavailable "
4685 "in the appliance."
4686 msgstr ""
4687
4688 #. type: textblock
4689 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4690 msgid ""
4691 "If an unknown group name is included in the list of groups then an error is "
4692 "always returned."
4693 msgstr ""
4694
4695 #. type: textblock
4696 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4697 msgid "I<Notes:>"
4698 msgstr ""
4699
4700 #. type: textblock
4701 #: ../fish/guestfish-actions.pod:392
4702 msgid "You must call L</launch> before calling this function."
4703 msgstr ""
4704
4705 #. type: textblock
4706 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4707 msgid ""
4708 "The reason is because we don't know what groups are supported by the "
4709 "appliance/daemon until it is running and can be queried."
4710 msgstr ""
4711
4712 #. type: textblock
4713 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4714 msgid ""
4715 "If a group of functions is available, this does not necessarily mean that "
4716 "they will work.  You still have to check for errors when calling individual "
4717 "API functions even if they are available."
4718 msgstr ""
4719
4720 #. type: textblock
4721 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4722 msgid ""
4723 "It is usually the job of distro packagers to build complete functionality "
4724 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4725 "with all requirements satisfied, will support everything."
4726 msgstr ""
4727
4728 #. type: textblock
4729 #: ../fish/guestfish-actions.pod:414
4730 msgid ""
4731 "This call was added in version C<1.0.80>.  In previous versions of "
4732 "libguestfs all you could do would be to speculatively execute a command to "
4733 "find out if the daemon implemented it.  See also L</version>."
4734 msgstr ""
4735
4736 #. type: =head2
4737 #: ../fish/guestfish-actions.pod:421
4738 msgid "available-all-groups"
4739 msgstr ""
4740
4741 #. type: verbatim
4742 #: ../fish/guestfish-actions.pod:423
4743 #, no-wrap
4744 msgid ""
4745 " available-all-groups\n"
4746 "\n"
4747 msgstr ""
4748
4749 #. type: textblock
4750 #: ../fish/guestfish-actions.pod:425
4751 msgid ""
4752 "This command returns a list of all optional groups that this daemon knows "
4753 "about.  Note this returns both supported and unsupported groups.  To find "
4754 "out which ones the daemon can actually support you have to call "
4755 "L</available> on each member of the returned list."
4756 msgstr ""
4757
4758 #. type: textblock
4759 #: ../fish/guestfish-actions.pod:431
4760 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4761 msgstr ""
4762
4763 #. type: =head2
4764 #: ../fish/guestfish-actions.pod:433
4765 msgid "base64-in"
4766 msgstr ""
4767
4768 #. type: verbatim
4769 #: ../fish/guestfish-actions.pod:435
4770 #, no-wrap
4771 msgid ""
4772 " base64-in (base64file|-) filename\n"
4773 "\n"
4774 msgstr ""
4775
4776 #. type: textblock
4777 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4778 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../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
4783 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4784 msgstr ""
4785
4786 #. type: =head2
4787 #: ../fish/guestfish-actions.pod:442
4788 msgid "base64-out"
4789 msgstr ""
4790
4791 #. type: verbatim
4792 #: ../fish/guestfish-actions.pod:444
4793 #, no-wrap
4794 msgid ""
4795 " base64-out filename (base64file|-)\n"
4796 "\n"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
4801 msgid ""
4802 "This command downloads the contents of C<filename>, writing it out to local "
4803 "file C<base64file> encoded as base64."
4804 msgstr ""
4805
4806 #. type: =head2
4807 #: ../fish/guestfish-actions.pod:451
4808 msgid "blockdev-flushbufs"
4809 msgstr ""
4810
4811 #. type: verbatim
4812 #: ../fish/guestfish-actions.pod:453
4813 #, no-wrap
4814 msgid ""
4815 " blockdev-flushbufs device\n"
4816 "\n"
4817 msgstr ""
4818
4819 #. type: textblock
4820 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
4821 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4822 msgstr ""
4823
4824 #. type: textblock
4825 #: ../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
4826 msgid "This uses the L<blockdev(8)> command."
4827 msgstr ""
4828
4829 #. type: =head2
4830 #: ../fish/guestfish-actions.pod:460
4831 msgid "blockdev-getbsz"
4832 msgstr ""
4833
4834 #. type: verbatim
4835 #: ../fish/guestfish-actions.pod:462
4836 #, no-wrap
4837 msgid ""
4838 " blockdev-getbsz device\n"
4839 "\n"
4840 msgstr ""
4841
4842 #. type: textblock
4843 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
4844 msgid "This returns the block size of a device."
4845 msgstr ""
4846
4847 #. type: textblock
4848 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
4849 msgid ""
4850 "(Note this is different from both I<size in blocks> and I<filesystem block "
4851 "size>)."
4852 msgstr ""
4853
4854 #. type: =head2
4855 #: ../fish/guestfish-actions.pod:471
4856 msgid "blockdev-getro"
4857 msgstr ""
4858
4859 #. type: verbatim
4860 #: ../fish/guestfish-actions.pod:473
4861 #, no-wrap
4862 msgid ""
4863 " blockdev-getro device\n"
4864 "\n"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
4869 msgid ""
4870 "Returns a boolean indicating if the block device is read-only (true if "
4871 "read-only, false if not)."
4872 msgstr ""
4873
4874 #. type: =head2
4875 #: ../fish/guestfish-actions.pod:480
4876 msgid "blockdev-getsize64"
4877 msgstr ""
4878
4879 #. type: verbatim
4880 #: ../fish/guestfish-actions.pod:482
4881 #, no-wrap
4882 msgid ""
4883 " blockdev-getsize64 device\n"
4884 "\n"
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
4889 msgid "This returns the size of the device in bytes."
4890 msgstr ""
4891
4892 #. type: textblock
4893 #: ../fish/guestfish-actions.pod:486
4894 msgid "See also L</blockdev-getsz>."
4895 msgstr ""
4896
4897 #. type: =head2
4898 #: ../fish/guestfish-actions.pod:490
4899 msgid "blockdev-getss"
4900 msgstr ""
4901
4902 #. type: verbatim
4903 #: ../fish/guestfish-actions.pod:492
4904 #, no-wrap
4905 msgid ""
4906 " blockdev-getss device\n"
4907 "\n"
4908 msgstr ""
4909
4910 #. type: textblock
4911 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
4912 msgid ""
4913 "This returns the size of sectors on a block device.  Usually 512, but can be "
4914 "larger for modern devices."
4915 msgstr ""
4916
4917 #. type: textblock
4918 #: ../fish/guestfish-actions.pod:497
4919 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
4920 msgstr ""
4921
4922 #. type: =head2
4923 #: ../fish/guestfish-actions.pod:502
4924 msgid "blockdev-getsz"
4925 msgstr ""
4926
4927 #. type: verbatim
4928 #: ../fish/guestfish-actions.pod:504
4929 #, no-wrap
4930 msgid ""
4931 " blockdev-getsz device\n"
4932 "\n"
4933 msgstr ""
4934
4935 #. type: textblock
4936 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
4937 msgid ""
4938 "This returns the size of the device in units of 512-byte sectors (even if "
4939 "the sectorsize isn't 512 bytes ... weird)."
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../fish/guestfish-actions.pod:509
4944 msgid ""
4945 "See also L</blockdev-getss> for the real sector size of the device, and "
4946 "L</blockdev-getsize64> for the more useful I<size in bytes>."
4947 msgstr ""
4948
4949 #. type: =head2
4950 #: ../fish/guestfish-actions.pod:515
4951 msgid "blockdev-rereadpt"
4952 msgstr ""
4953
4954 #. type: verbatim
4955 #: ../fish/guestfish-actions.pod:517
4956 #, no-wrap
4957 msgid ""
4958 " blockdev-rereadpt device\n"
4959 "\n"
4960 msgstr ""
4961
4962 #. type: textblock
4963 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
4964 msgid "Reread the partition table on C<device>."
4965 msgstr ""
4966
4967 #. type: =head2
4968 #: ../fish/guestfish-actions.pod:523
4969 msgid "blockdev-setbsz"
4970 msgstr ""
4971
4972 #. type: verbatim
4973 #: ../fish/guestfish-actions.pod:525
4974 #, no-wrap
4975 msgid ""
4976 " blockdev-setbsz device blocksize\n"
4977 "\n"
4978 msgstr ""
4979
4980 #. type: textblock
4981 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
4982 msgid "This sets the block size of a device."
4983 msgstr ""
4984
4985 #. type: =head2
4986 #: ../fish/guestfish-actions.pod:534
4987 msgid "blockdev-setro"
4988 msgstr ""
4989
4990 #. type: verbatim
4991 #: ../fish/guestfish-actions.pod:536
4992 #, no-wrap
4993 msgid ""
4994 " blockdev-setro device\n"
4995 "\n"
4996 msgstr ""
4997
4998 #. type: textblock
4999 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5000 msgid "Sets the block device named C<device> to read-only."
5001 msgstr ""
5002
5003 #. type: =head2
5004 #: ../fish/guestfish-actions.pod:542
5005 msgid "blockdev-setrw"
5006 msgstr ""
5007
5008 #. type: verbatim
5009 #: ../fish/guestfish-actions.pod:544
5010 #, no-wrap
5011 msgid ""
5012 " blockdev-setrw device\n"
5013 "\n"
5014 msgstr ""
5015
5016 #. type: textblock
5017 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5018 msgid "Sets the block device named C<device> to read-write."
5019 msgstr ""
5020
5021 #. type: =head2
5022 #: ../fish/guestfish-actions.pod:550
5023 msgid "btrfs-filesystem-resize"
5024 msgstr ""
5025
5026 #. type: verbatim
5027 #: ../fish/guestfish-actions.pod:552
5028 #, no-wrap
5029 msgid ""
5030 " btrfs-filesystem-resize mountpoint [size:..]\n"
5031 "\n"
5032 msgstr ""
5033
5034 #. type: textblock
5035 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5036 msgid "This command resizes a btrfs filesystem."
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5041 msgid ""
5042 "Note that unlike other resize calls, the filesystem has to be mounted and "
5043 "the parameter is the mountpoint not the device (this is a requirement of "
5044 "btrfs itself)."
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5326
5049 msgid "The optional parameters are:"
5050 msgstr ""
5051
5052 #. type: =item
5053 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5330
5054 msgid "C<size>"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5059 msgid ""
5060 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5061 "resized to the maximum size."
5062 msgstr ""
5063
5064 #. type: textblock
5065 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5066 msgid "See also L<btrfs(8)>."
5067 msgstr ""
5068
5069 #. type: =head2
5070 #: ../fish/guestfish-actions.pod:575
5071 msgid "case-sensitive-path"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../fish/guestfish-actions.pod:577
5076 #, no-wrap
5077 msgid ""
5078 " case-sensitive-path path\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5084 msgid ""
5085 "This can be used to resolve case insensitive paths on a filesystem which is "
5086 "case sensitive.  The use case is to resolve paths which you have read from "
5087 "Windows configuration files or the Windows Registry, to the true path."
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5092 msgid ""
5093 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5094 "(and probably others), which is that although the underlying filesystem is "
5095 "case-insensitive, the driver exports the filesystem to Linux as "
5096 "case-sensitive."
5097 msgstr ""
5098
5099 #. type: textblock
5100 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5101 msgid ""
5102 "One consequence of this is that special directories such as C<c:\\windows> "
5103 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5104 "precise details of how they were created.  In Windows itself this would not "
5105 "be a problem."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5110 msgid ""
5111 "Bug or feature? You decide: "
5112 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
5113 msgstr ""
5114
5115 #. type: textblock
5116 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5117 msgid ""
5118 "This function resolves the true case of each element in the path and returns "
5119 "the case-sensitive path."
5120 msgstr ""
5121
5122 #. type: textblock
5123 #: ../fish/guestfish-actions.pod:601
5124 msgid ""
5125 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
5126 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
5127 "how the directories were originally created under Windows)."
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5132 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5133 msgstr ""
5134
5135 #. type: textblock
5136 #: ../fish/guestfish-actions.pod:609
5137 msgid "See also L</realpath>."
5138 msgstr ""
5139
5140 #. type: =head2
5141 #: ../fish/guestfish-actions.pod:611
5142 msgid "cat"
5143 msgstr ""
5144
5145 #. type: verbatim
5146 #: ../fish/guestfish-actions.pod:613
5147 #, no-wrap
5148 msgid ""
5149 " cat path\n"
5150 "\n"
5151 msgstr ""
5152
5153 #. type: textblock
5154 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5969
5155 msgid "Return the contents of the file named C<path>."
5156 msgstr ""
5157
5158 #. type: textblock
5159 #: ../fish/guestfish-actions.pod:617
5160 msgid ""
5161 "Note that this function cannot correctly handle binary files (specifically, "
5162 "files containing C<\\0> character which is treated as end of string).  For "
5163 "those you need to use the L</read-file> or L</download> functions which have "
5164 "a more complex interface."
5165 msgstr ""
5166
5167 #. type: textblock
5168 #: ../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: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:2417 ../src/guestfs-actions.pod:2436 ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5777 ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:5958 ../src/guestfs-actions.pod:6923 ../src/guestfs-actions.pod:6978 ../src/guestfs-actions.pod:7124 ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7813 ../src/guestfs-actions.pod:7833 ../src/guestfs-actions.pod:7866 ../src/guestfs-actions.pod:7885 ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7998 ../src/guestfs-actions.pod:8017 ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8082
5169 msgid ""
5170 "Because of the message protocol, there is a transfer limit of somewhere "
5171 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5172 msgstr ""
5173
5174 #. type: =head2
5175 #: ../fish/guestfish-actions.pod:625
5176 msgid "checksum"
5177 msgstr ""
5178
5179 #. type: verbatim
5180 #: ../fish/guestfish-actions.pod:627
5181 #, no-wrap
5182 msgid ""
5183 " checksum csumtype path\n"
5184 "\n"
5185 msgstr ""
5186
5187 #. type: textblock
5188 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5189 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5194 msgid ""
5195 "The type of checksum to compute is given by the C<csumtype> parameter which "
5196 "must have one of the following values:"
5197 msgstr ""
5198
5199 #. type: =item
5200 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5201 msgid "C<crc>"
5202 msgstr ""
5203
5204 #. type: textblock
5205 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5206 msgid ""
5207 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5208 "C<cksum> command."
5209 msgstr ""
5210
5211 #. type: =item
5212 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5213 msgid "C<md5>"
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5218 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5219 msgstr ""
5220
5221 #. type: =item
5222 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5223 msgid "C<sha1>"
5224 msgstr ""
5225
5226 #. type: textblock
5227 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5228 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5229 msgstr ""
5230
5231 #. type: =item
5232 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5233 msgid "C<sha224>"
5234 msgstr ""
5235
5236 #. type: textblock
5237 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5238 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5239 msgstr ""
5240
5241 #. type: =item
5242 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5243 msgid "C<sha256>"
5244 msgstr ""
5245
5246 #. type: textblock
5247 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5248 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5249 msgstr ""
5250
5251 #. type: =item
5252 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5253 msgid "C<sha384>"
5254 msgstr ""
5255
5256 #. type: textblock
5257 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5258 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5259 msgstr ""
5260
5261 #. type: =item
5262 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5263 msgid "C<sha512>"
5264 msgstr ""
5265
5266 #. type: textblock
5267 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5268 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5269 msgstr ""
5270
5271 #. type: textblock
5272 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5273 msgid "The checksum is returned as a printable string."
5274 msgstr ""
5275
5276 #. type: textblock
5277 #: ../fish/guestfish-actions.pod:670
5278 msgid "To get the checksum for a device, use L</checksum-device>."
5279 msgstr ""
5280
5281 #. type: textblock
5282 #: ../fish/guestfish-actions.pod:672
5283 msgid "To get the checksums for many files, use L</checksums-out>."
5284 msgstr ""
5285
5286 #. type: =head2
5287 #: ../fish/guestfish-actions.pod:674
5288 msgid "checksum-device"
5289 msgstr ""
5290
5291 #. type: verbatim
5292 #: ../fish/guestfish-actions.pod:676
5293 #, no-wrap
5294 msgid ""
5295 " checksum-device csumtype device\n"
5296 "\n"
5297 msgstr ""
5298
5299 #. type: textblock
5300 #: ../fish/guestfish-actions.pod:678
5301 msgid ""
5302 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5303 "device named C<device>.  For the types of checksums supported see the "
5304 "L</checksum> command."
5305 msgstr ""
5306
5307 #. type: =head2
5308 #: ../fish/guestfish-actions.pod:682
5309 msgid "checksums-out"
5310 msgstr ""
5311
5312 #. type: verbatim
5313 #: ../fish/guestfish-actions.pod:684
5314 #, no-wrap
5315 msgid ""
5316 " checksums-out csumtype directory (sumsfile|-)\n"
5317 "\n"
5318 msgstr ""
5319
5320 #. type: textblock
5321 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5322 msgid ""
5323 "This command computes the checksums of all regular files in C<directory> and "
5324 "then emits a list of those checksums to the local output file C<sumsfile>."
5325 msgstr ""
5326
5327 #. type: textblock
5328 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5329 msgid ""
5330 "This can be used for verifying the integrity of a virtual machine.  However "
5331 "to be properly secure you should pay attention to the output of the checksum "
5332 "command (it uses the ones from GNU coreutils).  In particular when the "
5333 "filename is not printable, coreutils uses a special backslash syntax.  For "
5334 "more information, see the GNU coreutils info file."
5335 msgstr ""
5336
5337 #. type: =head2
5338 #: ../fish/guestfish-actions.pod:700
5339 msgid "chmod"
5340 msgstr ""
5341
5342 #. type: verbatim
5343 #: ../fish/guestfish-actions.pod:702
5344 #, no-wrap
5345 msgid ""
5346 " chmod mode path\n"
5347 "\n"
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5352 msgid ""
5353 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5354 "supported."
5355 msgstr ""
5356
5357 #. type: textblock
5358 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5359 msgid ""
5360 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5361 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5362 "C<700>."
5363 msgstr ""
5364
5365 #. type: textblock
5366 #: ../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:4733 ../src/guestfs-actions.pod:4942 ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
5367 msgid "The mode actually set is affected by the umask."
5368 msgstr ""
5369
5370 #. type: =head2
5371 #: ../fish/guestfish-actions.pod:713
5372 msgid "chown"
5373 msgstr ""
5374
5375 #. type: verbatim
5376 #: ../fish/guestfish-actions.pod:715
5377 #, no-wrap
5378 msgid ""
5379 " chown owner group path\n"
5380 "\n"
5381 msgstr ""
5382
5383 #. type: textblock
5384 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5385 msgid "Change the file owner to C<owner> and group to C<group>."
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
5390 msgid ""
5391 "Only numeric uid and gid are supported.  If you want to use names, you will "
5392 "need to locate and parse the password file yourself (Augeas support makes "
5393 "this relatively easy)."
5394 msgstr ""
5395
5396 #. type: =head2
5397 #: ../fish/guestfish-actions.pod:723
5398 msgid "command"
5399 msgstr ""
5400
5401 #. type: verbatim
5402 #: ../fish/guestfish-actions.pod:725
5403 #, no-wrap
5404 msgid ""
5405 " command 'arguments ...'\n"
5406 "\n"
5407 msgstr ""
5408
5409 #. type: textblock
5410 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5411 msgid ""
5412 "This call runs a command from the guest filesystem.  The filesystem must be "
5413 "mounted, and must contain a compatible operating system (ie. something "
5414 "Linux, with the same or compatible processor architecture)."
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../fish/guestfish-actions.pod:732
5419 msgid ""
5420 "The single parameter is an argv-style list of arguments.  The first element "
5421 "is the name of the program to run.  Subsequent elements are parameters.  The "
5422 "list must be non-empty (ie. must contain a program name).  Note that the "
5423 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5424 msgstr ""
5425
5426 #. type: textblock
5427 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5428 msgid "The return value is anything printed to I<stdout> by the command."
5429 msgstr ""
5430
5431 #. type: textblock
5432 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5433 msgid ""
5434 "If the command returns a non-zero exit status, then this function returns an "
5435 "error message.  The error message string is the content of I<stderr> from "
5436 "the command."
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5441 msgid ""
5442 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5443 "C</bin>.  If you require a program from another location, you should provide "
5444 "the full path in the first parameter."
5445 msgstr ""
5446
5447 #. type: textblock
5448 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5449 msgid ""
5450 "Shared libraries and data files required by the program must be available on "
5451 "filesystems which are mounted in the correct places.  It is the caller's "
5452 "responsibility to ensure all filesystems that are needed are mounted at the "
5453 "right locations."
5454 msgstr ""
5455
5456 #. type: =head2
5457 #: ../fish/guestfish-actions.pod:760
5458 msgid "command-lines"
5459 msgstr ""
5460
5461 #. type: verbatim
5462 #: ../fish/guestfish-actions.pod:762
5463 #, no-wrap
5464 msgid ""
5465 " command-lines 'arguments ...'\n"
5466 "\n"
5467 msgstr ""
5468
5469 #. type: textblock
5470 #: ../fish/guestfish-actions.pod:764
5471 msgid "This is the same as L</command>, but splits the result into a list of lines."
5472 msgstr ""
5473
5474 #. type: textblock
5475 #: ../fish/guestfish-actions.pod:767
5476 msgid "See also: L</sh-lines>"
5477 msgstr ""
5478
5479 #. type: =head2
5480 #: ../fish/guestfish-actions.pod:772
5481 msgid "compress-device-out"
5482 msgstr ""
5483
5484 #. type: verbatim
5485 #: ../fish/guestfish-actions.pod:774
5486 #, no-wrap
5487 msgid ""
5488 " compress-device-out ctype device (zdevice|-) [level:..]\n"
5489 "\n"
5490 msgstr ""
5491
5492 #. type: textblock
5493 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
5494 msgid ""
5495 "This command compresses C<device> and writes it out to the local file "
5496 "C<zdevice>."
5497 msgstr ""
5498
5499 #. type: textblock
5500 #: ../fish/guestfish-actions.pod:779
5501 msgid ""
5502 "The C<ctype> and optional C<level> parameters have the same meaning as in "
5503 "L</compress-out>."
5504 msgstr ""
5505
5506 #. type: =head2
5507 #: ../fish/guestfish-actions.pod:786
5508 msgid "compress-out"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../fish/guestfish-actions.pod:788
5513 #, no-wrap
5514 msgid ""
5515 " compress-out ctype file (zfile|-) [level:..]\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: textblock
5520 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
5521 msgid ""
5522 "This command compresses C<file> and writes it out to the local file "
5523 "C<zfile>."
5524 msgstr ""
5525
5526 #. type: textblock
5527 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
5528 msgid ""
5529 "The compression program used is controlled by the C<ctype> parameter.  "
5530 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
5531 "Some compression types may not be supported by particular builds of "
5532 "libguestfs, in which case you will get an error containing the substring "
5533 "\"not supported\"."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
5538 msgid ""
5539 "The optional C<level> parameter controls compression level.  The meaning and "
5540 "default for this parameter depends on the compression program being used."
5541 msgstr ""
5542
5543 #. type: =head2
5544 #: ../fish/guestfish-actions.pod:807
5545 msgid "config"
5546 msgstr ""
5547
5548 #. type: verbatim
5549 #: ../fish/guestfish-actions.pod:809
5550 #, no-wrap
5551 msgid ""
5552 " config qemuparam qemuvalue\n"
5553 "\n"
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
5558 msgid ""
5559 "This can be used to add arbitrary qemu command line parameters of the form "
5560 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5561 "setting some parameters which would interfere with parameters that we use."
5562 msgstr ""
5563
5564 #. type: textblock
5565 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
5566 msgid "The first character of C<param> string must be a C<-> (dash)."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
5571 msgid "C<value> can be NULL."
5572 msgstr ""
5573
5574 #. type: =head2
5575 #: ../fish/guestfish-actions.pod:820
5576 msgid "copy-size"
5577 msgstr ""
5578
5579 #. type: verbatim
5580 #: ../fish/guestfish-actions.pod:822
5581 #, no-wrap
5582 msgid ""
5583 " copy-size src dest size\n"
5584 "\n"
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
5589 msgid ""
5590 "This command copies exactly C<size> bytes from one source device or file "
5591 "C<src> to another destination device or file C<dest>."
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
5596 msgid ""
5597 "Note this will fail if the source is too short or if the destination is not "
5598 "large enough."
5599 msgstr ""
5600
5601 #. type: =head2
5602 #: ../fish/guestfish-actions.pod:830
5603 msgid "cp"
5604 msgstr ""
5605
5606 #. type: verbatim
5607 #: ../fish/guestfish-actions.pod:832
5608 #, no-wrap
5609 msgid ""
5610 " cp src dest\n"
5611 "\n"
5612 msgstr ""
5613
5614 #. type: textblock
5615 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
5616 msgid ""
5617 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5618 "destination filename or destination directory."
5619 msgstr ""
5620
5621 #. type: =head2
5622 #: ../fish/guestfish-actions.pod:837
5623 msgid "cp-a"
5624 msgstr ""
5625
5626 #. type: verbatim
5627 #: ../fish/guestfish-actions.pod:839
5628 #, no-wrap
5629 msgid ""
5630 " cp-a src dest\n"
5631 "\n"
5632 msgstr ""
5633
5634 #. type: textblock
5635 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
5636 msgid ""
5637 "This copies a file or directory from C<src> to C<dest> recursively using the "
5638 "C<cp -a> command."
5639 msgstr ""
5640
5641 #. type: =head2
5642 #: ../fish/guestfish-actions.pod:844
5643 msgid "dd"
5644 msgstr ""
5645
5646 #. type: verbatim
5647 #: ../fish/guestfish-actions.pod:846
5648 #, no-wrap
5649 msgid ""
5650 " dd src dest\n"
5651 "\n"
5652 msgstr ""
5653
5654 #. type: textblock
5655 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
5656 msgid ""
5657 "This command copies from one source device or file C<src> to another "
5658 "destination device or file C<dest>.  Normally you would use this to copy to "
5659 "or from a device or partition, for example to duplicate a filesystem."
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../fish/guestfish-actions.pod:853
5664 msgid ""
5665 "If the destination is a device, it must be as large or larger than the "
5666 "source file or device, otherwise the copy will fail.  This command cannot do "
5667 "partial copies (see L</copy-size>)."
5668 msgstr ""
5669
5670 #. type: =head2
5671 #: ../fish/guestfish-actions.pod:857
5672 msgid "df"
5673 msgstr ""
5674
5675 #. type: verbatim
5676 #: ../fish/guestfish-actions.pod:859
5677 #, no-wrap
5678 msgid ""
5679 " df\n"
5680 "\n"
5681 msgstr ""
5682
5683 #. type: textblock
5684 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
5685 msgid "This command runs the C<df> command to report disk space used."
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
5690 msgid ""
5691 "This command is mostly useful for interactive sessions.  It is I<not> "
5692 "intended that you try to parse the output string.  Use L</statvfs> from "
5693 "programs."
5694 msgstr ""
5695
5696 #. type: =head2
5697 #: ../fish/guestfish-actions.pod:867
5698 msgid "df-h"
5699 msgstr ""
5700
5701 #. type: verbatim
5702 #: ../fish/guestfish-actions.pod:869
5703 #, no-wrap
5704 msgid ""
5705 " df-h\n"
5706 "\n"
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
5711 msgid ""
5712 "This command runs the C<df -h> command to report disk space used in "
5713 "human-readable format."
5714 msgstr ""
5715
5716 #. type: =head2
5717 #: ../fish/guestfish-actions.pod:878
5718 msgid "dmesg"
5719 msgstr ""
5720
5721 #. type: verbatim
5722 #: ../fish/guestfish-actions.pod:880
5723 #, no-wrap
5724 msgid ""
5725 " dmesg\n"
5726 "\n"
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
5731 msgid ""
5732 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5733 "This is sometimes useful for extended debugging of problems."
5734 msgstr ""
5735
5736 #. type: textblock
5737 #: ../fish/guestfish-actions.pod:886
5738 msgid ""
5739 "Another way to get the same information is to enable verbose messages with "
5740 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5741 "before running the program."
5742 msgstr ""
5743
5744 #. type: =head2
5745 #: ../fish/guestfish-actions.pod:891
5746 msgid "download"
5747 msgstr ""
5748
5749 #. type: verbatim
5750 #: ../fish/guestfish-actions.pod:893
5751 #, no-wrap
5752 msgid ""
5753 " download remotefilename (filename|-)\n"
5754 "\n"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
5759 msgid ""
5760 "Download file C<remotefilename> and save it as C<filename> on the local "
5761 "machine."
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7383
5766 msgid "C<filename> can also be a named pipe."
5767 msgstr ""
5768
5769 #. type: textblock
5770 #: ../fish/guestfish-actions.pod:900
5771 msgid "See also L</upload>, L</cat>."
5772 msgstr ""
5773
5774 #. type: =head2
5775 #: ../fish/guestfish-actions.pod:904
5776 msgid "download-offset"
5777 msgstr ""
5778
5779 #. type: verbatim
5780 #: ../fish/guestfish-actions.pod:906
5781 #, no-wrap
5782 msgid ""
5783 " download-offset remotefilename (filename|-) offset size\n"
5784 "\n"
5785 msgstr ""
5786
5787 #. type: textblock
5788 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
5789 msgid ""
5790 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5791 "region must be within the file or device)."
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../fish/guestfish-actions.pod:914
5796 msgid ""
5797 "Note that there is no limit on the amount of data that can be downloaded "
5798 "with this call, unlike with L</pread>, and this call always reads the full "
5799 "amount unless an error occurs."
5800 msgstr ""
5801
5802 #. type: textblock
5803 #: ../fish/guestfish-actions.pod:919
5804 msgid "See also L</download>, L</pread>."
5805 msgstr ""
5806
5807 #. type: =head2
5808 #: ../fish/guestfish-actions.pod:923
5809 msgid "drop-caches"
5810 msgstr ""
5811
5812 #. type: verbatim
5813 #: ../fish/guestfish-actions.pod:925
5814 #, no-wrap
5815 msgid ""
5816 " drop-caches whattodrop\n"
5817 "\n"
5818 msgstr ""
5819
5820 #. type: textblock
5821 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
5822 msgid ""
5823 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5824 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5825 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5826 msgstr ""
5827
5828 #. type: textblock
5829 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
5830 msgid "Setting C<whattodrop> to 3 should drop everything."
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
5835 msgid ""
5836 "This automatically calls L<sync(2)> before the operation, so that the "
5837 "maximum guest memory is freed."
5838 msgstr ""
5839
5840 #. type: =head2
5841 #: ../fish/guestfish-actions.pod:937
5842 msgid "du"
5843 msgstr ""
5844
5845 #. type: verbatim
5846 #: ../fish/guestfish-actions.pod:939
5847 #, no-wrap
5848 msgid ""
5849 " du path\n"
5850 "\n"
5851 msgstr ""
5852
5853 #. type: textblock
5854 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
5855 msgid ""
5856 "This command runs the C<du -s> command to estimate file space usage for "
5857 "C<path>."
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
5862 msgid ""
5863 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5864 "estimate includes the contents of the directory and all subdirectories "
5865 "(recursively)."
5866 msgstr ""
5867
5868 #. type: textblock
5869 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
5870 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5871 msgstr ""
5872
5873 #. type: =head2
5874 #: ../fish/guestfish-actions.pod:951
5875 msgid "e2fsck-f"
5876 msgstr ""
5877
5878 #. type: verbatim
5879 #: ../fish/guestfish-actions.pod:953
5880 #, no-wrap
5881 msgid ""
5882 " e2fsck-f device\n"
5883 "\n"
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
5888 msgid ""
5889 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5890 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5891 "clean (I<-f>)."
5892 msgstr ""
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:959
5896 msgid ""
5897 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5898 "should use L</fsck>."
5899 msgstr ""
5900
5901 #. type: =head2
5902 #: ../fish/guestfish-actions.pod:962
5903 msgid "echo-daemon"
5904 msgstr ""
5905
5906 #. type: verbatim
5907 #: ../fish/guestfish-actions.pod:964
5908 #, no-wrap
5909 msgid ""
5910 " echo-daemon 'words ...'\n"
5911 "\n"
5912 msgstr ""
5913
5914 #. type: textblock
5915 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
5916 msgid ""
5917 "This command concatenates the list of C<words> passed with single spaces "
5918 "between them and returns the resulting string."
5919 msgstr ""
5920
5921 #. type: textblock
5922 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
5923 msgid "You can use this command to test the connection through to the daemon."
5924 msgstr ""
5925
5926 #. type: textblock
5927 #: ../fish/guestfish-actions.pod:971
5928 msgid "See also L</ping-daemon>."
5929 msgstr ""
5930
5931 #. type: =head2
5932 #: ../fish/guestfish-actions.pod:973
5933 msgid "egrep"
5934 msgstr ""
5935
5936 #. type: verbatim
5937 #: ../fish/guestfish-actions.pod:975
5938 #, no-wrap
5939 msgid ""
5940 " egrep regex path\n"
5941 "\n"
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
5946 msgid "This calls the external C<egrep> program and returns the matching lines."
5947 msgstr ""
5948
5949 #. type: =head2
5950 #: ../fish/guestfish-actions.pod:983
5951 msgid "egrepi"
5952 msgstr ""
5953
5954 #. type: verbatim
5955 #: ../fish/guestfish-actions.pod:985
5956 #, no-wrap
5957 msgid ""
5958 " egrepi regex path\n"
5959 "\n"
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
5964 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5965 msgstr ""
5966
5967 #. type: =head2
5968 #: ../fish/guestfish-actions.pod:993
5969 msgid "equal"
5970 msgstr ""
5971
5972 #. type: verbatim
5973 #: ../fish/guestfish-actions.pod:995
5974 #, no-wrap
5975 msgid ""
5976 " equal file1 file2\n"
5977 "\n"
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
5982 msgid ""
5983 "This compares the two files C<file1> and C<file2> and returns true if their "
5984 "content is exactly equal, or false otherwise."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
5989 msgid "The external L<cmp(1)> program is used for the comparison."
5990 msgstr ""
5991
5992 #. type: =head2
5993 #: ../fish/guestfish-actions.pod:1002
5994 msgid "exists"
5995 msgstr ""
5996
5997 #. type: verbatim
5998 #: ../fish/guestfish-actions.pod:1004
5999 #, no-wrap
6000 msgid ""
6001 " exists path\n"
6002 "\n"
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6007 msgid ""
6008 "This returns C<true> if and only if there is a file, directory (or anything) "
6009 "with the given C<path> name."
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:1009
6014 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6015 msgstr ""
6016
6017 #. type: =head2
6018 #: ../fish/guestfish-actions.pod:1011
6019 msgid "fallocate"
6020 msgstr ""
6021
6022 #. type: verbatim
6023 #: ../fish/guestfish-actions.pod:1013
6024 #, no-wrap
6025 msgid ""
6026 " fallocate path len\n"
6027 "\n"
6028 msgstr ""
6029
6030 #. type: textblock
6031 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
6032 msgid ""
6033 "This command preallocates a file (containing zero bytes) named C<path> of "
6034 "size C<len> bytes.  If the file exists already, it is overwritten."
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
6039 msgid ""
6040 "Do not confuse this with the guestfish-specific C<alloc> command which "
6041 "allocates a file in the host and attaches it as a device."
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:1023
6046 msgid ""
6047 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6048 "instead."
6049 msgstr ""
6050
6051 #. type: =head2
6052 #: ../fish/guestfish-actions.pod:1030
6053 msgid "fallocate64"
6054 msgstr ""
6055
6056 #. type: verbatim
6057 #: ../fish/guestfish-actions.pod:1032
6058 #, no-wrap
6059 msgid ""
6060 " fallocate64 path len\n"
6061 "\n"
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../fish/guestfish-actions.pod:1038
6066 msgid ""
6067 "Note that this call allocates disk blocks for the file.  To create a sparse "
6068 "file use L</truncate-size> instead."
6069 msgstr ""
6070
6071 #. type: textblock
6072 #: ../fish/guestfish-actions.pod:1041
6073 msgid ""
6074 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6075 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6076 "maximum size of files created through that call to 1GB."
6077 msgstr ""
6078
6079 #. type: textblock
6080 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
6081 msgid ""
6082 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6083 "commands which create a file in the host and attach it as a device."
6084 msgstr ""
6085
6086 #. type: =head2
6087 #: ../fish/guestfish-actions.pod:1050
6088 msgid "fgrep"
6089 msgstr ""
6090
6091 #. type: verbatim
6092 #: ../fish/guestfish-actions.pod:1052
6093 #, no-wrap
6094 msgid ""
6095 " fgrep pattern path\n"
6096 "\n"
6097 msgstr ""
6098
6099 #. type: textblock
6100 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
6101 msgid "This calls the external C<fgrep> program and returns the matching lines."
6102 msgstr ""
6103
6104 #. type: =head2
6105 #: ../fish/guestfish-actions.pod:1060
6106 msgid "fgrepi"
6107 msgstr ""
6108
6109 #. type: verbatim
6110 #: ../fish/guestfish-actions.pod:1062
6111 #, no-wrap
6112 msgid ""
6113 " fgrepi pattern path\n"
6114 "\n"
6115 msgstr ""
6116
6117 #. type: textblock
6118 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
6119 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6120 msgstr ""
6121
6122 #. type: =head2
6123 #: ../fish/guestfish-actions.pod:1070
6124 msgid "file"
6125 msgstr ""
6126
6127 #. type: verbatim
6128 #: ../fish/guestfish-actions.pod:1072
6129 #, no-wrap
6130 msgid ""
6131 " file path\n"
6132 "\n"
6133 msgstr ""
6134
6135 #. type: textblock
6136 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
6137 msgid ""
6138 "This call uses the standard L<file(1)> command to determine the type or "
6139 "contents of the file."
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
6144 msgid ""
6145 "This call will also transparently look inside various types of compressed "
6146 "file."
6147 msgstr ""
6148
6149 #. type: textblock
6150 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
6151 msgid ""
6152 "The exact command which runs is C<file -zb path>.  Note in particular that "
6153 "the filename is not prepended to the output (the I<-b> option)."
6154 msgstr ""
6155
6156 #. type: textblock
6157 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
6158 msgid ""
6159 "The output depends on the output of the underlying L<file(1)> command and it "
6160 "can change in future in ways beyond our control.  In other words, the output "
6161 "is not guaranteed by the ABI."
6162 msgstr ""
6163
6164 #. type: textblock
6165 #: ../fish/guestfish-actions.pod:1088
6166 msgid ""
6167 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6168 "(etc), L</is-zero>."
6169 msgstr ""
6170
6171 #. type: =head2
6172 #: ../fish/guestfish-actions.pod:1091
6173 msgid "file-architecture"
6174 msgstr ""
6175
6176 #. type: verbatim
6177 #: ../fish/guestfish-actions.pod:1093
6178 #, no-wrap
6179 msgid ""
6180 " file-architecture filename\n"
6181 "\n"
6182 msgstr ""
6183
6184 #. type: textblock
6185 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
6186 msgid ""
6187 "This detects the architecture of the binary C<filename>, and returns it if "
6188 "known."
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
6193 msgid "Currently defined architectures are:"
6194 msgstr ""
6195
6196 #. type: =item
6197 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
6198 msgid "\"i386\""
6199 msgstr ""
6200
6201 #. type: textblock
6202 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
6203 msgid ""
6204 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6205 "irrespective of the precise processor requirements of the binary."
6206 msgstr ""
6207
6208 #. type: =item
6209 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
6210 msgid "\"x86_64\""
6211 msgstr ""
6212
6213 #. type: textblock
6214 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
6215 msgid "64 bit x86-64."
6216 msgstr ""
6217
6218 #. type: =item
6219 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
6220 msgid "\"sparc\""
6221 msgstr ""
6222
6223 #. type: textblock
6224 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
6225 msgid "32 bit SPARC."
6226 msgstr ""
6227
6228 #. type: =item
6229 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
6230 msgid "\"sparc64\""
6231 msgstr ""
6232
6233 #. type: textblock
6234 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
6235 msgid "64 bit SPARC V9 and above."
6236 msgstr ""
6237
6238 #. type: =item
6239 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
6240 msgid "\"ia64\""
6241 msgstr ""
6242
6243 #. type: textblock
6244 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
6245 msgid "Intel Itanium."
6246 msgstr ""
6247
6248 #. type: =item
6249 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
6250 msgid "\"ppc\""
6251 msgstr ""
6252
6253 #. type: textblock
6254 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
6255 msgid "32 bit Power PC."
6256 msgstr ""
6257
6258 #. type: =item
6259 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
6260 msgid "\"ppc64\""
6261 msgstr ""
6262
6263 #. type: textblock
6264 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
6265 msgid "64 bit Power PC."
6266 msgstr ""
6267
6268 #. type: textblock
6269 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
6270 msgid "Libguestfs may return other architecture strings in future."
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
6275 msgid "The function works on at least the following types of files:"
6276 msgstr ""
6277
6278 #. type: textblock
6279 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
6280 msgid "many types of Un*x and Linux binary"
6281 msgstr ""
6282
6283 #. type: textblock
6284 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
6285 msgid "many types of Un*x and Linux shared library"
6286 msgstr ""
6287
6288 #. type: textblock
6289 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
6290 msgid "Windows Win32 and Win64 binaries"
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
6295 msgid "Windows Win32 and Win64 DLLs"
6296 msgstr ""
6297
6298 #. type: textblock
6299 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
6300 msgid "Win32 binaries and DLLs return C<i386>."
6301 msgstr ""
6302
6303 #. type: textblock
6304 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
6305 msgid "Win64 binaries and DLLs return C<x86_64>."
6306 msgstr ""
6307
6308 #. type: textblock
6309 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
6310 msgid "Linux kernel modules"
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
6315 msgid "Linux new-style initrd images"
6316 msgstr ""
6317
6318 #. type: textblock
6319 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
6320 msgid "some non-x86 Linux vmlinuz kernels"
6321 msgstr ""
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
6325 msgid "What it can't do currently:"
6326 msgstr ""
6327
6328 #. type: textblock
6329 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
6330 msgid "static libraries (libfoo.a)"
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
6335 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6336 msgstr ""
6337
6338 #. type: textblock
6339 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
6340 msgid "x86 Linux vmlinuz kernels"
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
6345 msgid ""
6346 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6347 "compressed code, and are horribly hard to unpack.  If you want to find the "
6348 "architecture of a kernel, use the architecture of the associated initrd or "
6349 "kernel module(s) instead."
6350 msgstr ""
6351
6352 #. type: =head2
6353 #: ../fish/guestfish-actions.pod:1196
6354 msgid "filesize"
6355 msgstr ""
6356
6357 #. type: verbatim
6358 #: ../fish/guestfish-actions.pod:1198
6359 #, no-wrap
6360 msgid ""
6361 " filesize file\n"
6362 "\n"
6363 msgstr ""
6364
6365 #. type: textblock
6366 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
6367 msgid "This command returns the size of C<file> in bytes."
6368 msgstr ""
6369
6370 #. type: textblock
6371 #: ../fish/guestfish-actions.pod:1202
6372 msgid ""
6373 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6374 "L</is-file> etc.  To get the size of block devices, use "
6375 "L</blockdev-getsize64>."
6376 msgstr ""
6377
6378 #. type: =head2
6379 #: ../fish/guestfish-actions.pod:1206
6380 msgid "fill"
6381 msgstr ""
6382
6383 #. type: verbatim
6384 #: ../fish/guestfish-actions.pod:1208
6385 #, no-wrap
6386 msgid ""
6387 " fill c len path\n"
6388 "\n"
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
6393 msgid ""
6394 "This command creates a new file called C<path>.  The initial content of the "
6395 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6396 "C<[0..255]>."
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../fish/guestfish-actions.pod:1214
6401 msgid ""
6402 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6403 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6404 "L</fill-pattern>."
6405 msgstr ""
6406
6407 #. type: =head2
6408 #: ../fish/guestfish-actions.pod:1219
6409 msgid "fill-pattern"
6410 msgstr ""
6411
6412 #. type: verbatim
6413 #: ../fish/guestfish-actions.pod:1221
6414 #, no-wrap
6415 msgid ""
6416 " fill-pattern pattern len path\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:1223
6422 msgid ""
6423 "This function is like L</fill> except that it creates a new file of length "
6424 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6425 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6426 "bytes."
6427 msgstr ""
6428
6429 #. type: =head2
6430 #: ../fish/guestfish-actions.pod:1228
6431 msgid "find"
6432 msgstr ""
6433
6434 #. type: verbatim
6435 #: ../fish/guestfish-actions.pod:1230
6436 #, no-wrap
6437 msgid ""
6438 " find directory\n"
6439 "\n"
6440 msgstr ""
6441
6442 #. type: textblock
6443 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
6444 msgid ""
6445 "This command lists out all files and directories, recursively, starting at "
6446 "C<directory>.  It is essentially equivalent to running the shell command "
6447 "C<find directory -print> but some post-processing happens on the output, "
6448 "described below."
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
6453 msgid ""
6454 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6455 "structure was:"
6456 msgstr ""
6457
6458 #. type: verbatim
6459 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
6460 #, no-wrap
6461 msgid ""
6462 " /tmp/a\n"
6463 " /tmp/b\n"
6464 " /tmp/c/d\n"
6465 "\n"
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:1244
6470 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6471 msgstr ""
6472
6473 #. type: verbatim
6474 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
6475 #, no-wrap
6476 msgid ""
6477 " a\n"
6478 " b\n"
6479 " c\n"
6480 " c/d\n"
6481 "\n"
6482 msgstr ""
6483
6484 #. type: textblock
6485 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
6486 msgid "If C<directory> is not a directory, then this command returns an error."
6487 msgstr ""
6488
6489 #. type: textblock
6490 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
6491 msgid "The returned list is sorted."
6492 msgstr ""
6493
6494 #. type: textblock
6495 #: ../fish/guestfish-actions.pod:1257
6496 msgid "See also L</find0>."
6497 msgstr ""
6498
6499 #. type: =head2
6500 #: ../fish/guestfish-actions.pod:1262
6501 msgid "find0"
6502 msgstr ""
6503
6504 #. type: verbatim
6505 #: ../fish/guestfish-actions.pod:1264
6506 #, no-wrap
6507 msgid ""
6508 " find0 directory (files|-)\n"
6509 "\n"
6510 msgstr ""
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
6514 msgid ""
6515 "This command lists out all files and directories, recursively, starting at "
6516 "C<directory>, placing the resulting list in the external file called "
6517 "C<files>."
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1270
6522 msgid "This command works the same way as L</find> with the following exceptions:"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
6527 msgid "The resulting list is written to an external file."
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
6532 msgid ""
6533 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6534 "L<find(1)> option I<-print0>."
6535 msgstr ""
6536
6537 #. type: textblock
6538 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
6539 msgid "This command is not limited in the number of names that it can return."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
6544 msgid "The result list is not sorted."
6545 msgstr ""
6546
6547 #. type: =head2
6548 #: ../fish/guestfish-actions.pod:1297
6549 msgid "findfs-label"
6550 msgstr ""
6551
6552 #. type: verbatim
6553 #: ../fish/guestfish-actions.pod:1299
6554 #, no-wrap
6555 msgid ""
6556 " findfs-label label\n"
6557 "\n"
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
6562 msgid ""
6563 "This command searches the filesystems and returns the one which has the "
6564 "given label.  An error is returned if no such filesystem can be found."
6565 msgstr ""
6566
6567 #. type: textblock
6568 #: ../fish/guestfish-actions.pod:1305
6569 msgid "To find the label of a filesystem, use L</vfs-label>."
6570 msgstr ""
6571
6572 #. type: =head2
6573 #: ../fish/guestfish-actions.pod:1307
6574 msgid "findfs-uuid"
6575 msgstr ""
6576
6577 #. type: verbatim
6578 #: ../fish/guestfish-actions.pod:1309
6579 #, no-wrap
6580 msgid ""
6581 " findfs-uuid uuid\n"
6582 "\n"
6583 msgstr ""
6584
6585 #. type: textblock
6586 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
6587 msgid ""
6588 "This command searches the filesystems and returns the one which has the "
6589 "given UUID.  An error is returned if no such filesystem can be found."
6590 msgstr ""
6591
6592 #. type: textblock
6593 #: ../fish/guestfish-actions.pod:1315
6594 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6595 msgstr ""
6596
6597 #. type: =head2
6598 #: ../fish/guestfish-actions.pod:1317
6599 msgid "fsck"
6600 msgstr ""
6601
6602 #. type: verbatim
6603 #: ../fish/guestfish-actions.pod:1319
6604 #, no-wrap
6605 msgid ""
6606 " fsck fstype device\n"
6607 "\n"
6608 msgstr ""
6609
6610 #. type: textblock
6611 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
6612 msgid ""
6613 "This runs the filesystem checker (fsck) on C<device> which should have "
6614 "filesystem type C<fstype>."
6615 msgstr ""
6616
6617 #. type: textblock
6618 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
6619 msgid ""
6620 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6621 "codes from C<fsck>."
6622 msgstr ""
6623
6624 #. type: textblock
6625 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
6626 msgid "Multiple status codes can be summed together."
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
6631 msgid ""
6632 "A non-zero return code can mean \"success\", for example if errors have been "
6633 "corrected on the filesystem."
6634 msgstr ""
6635
6636 #. type: textblock
6637 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
6638 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6639 msgstr ""
6640
6641 #. type: textblock
6642 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
6643 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6644 msgstr ""
6645
6646 #. type: =head2
6647 #: ../fish/guestfish-actions.pod:1349
6648 msgid "get-append"
6649 msgstr ""
6650
6651 #. type: verbatim
6652 #: ../fish/guestfish-actions.pod:1351
6653 #, no-wrap
6654 msgid ""
6655 " get-append\n"
6656 "\n"
6657 msgstr ""
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
6661 msgid ""
6662 "Return the additional kernel options which are added to the guest kernel "
6663 "command line."
6664 msgstr ""
6665
6666 #. type: textblock
6667 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
6668 msgid "If C<NULL> then no options are added."
6669 msgstr ""
6670
6671 #. type: =head2
6672 #: ../fish/guestfish-actions.pod:1358
6673 msgid "get-attach-method"
6674 msgstr ""
6675
6676 #. type: verbatim
6677 #: ../fish/guestfish-actions.pod:1360
6678 #, no-wrap
6679 msgid ""
6680 " get-attach-method\n"
6681 "\n"
6682 msgstr ""
6683
6684 #. type: textblock
6685 #: ../fish/guestfish-actions.pod:1362
6686 msgid "Return the current attach method.  See L</set-attach-method>."
6687 msgstr ""
6688
6689 #. type: =head2
6690 #: ../fish/guestfish-actions.pod:1364
6691 msgid "get-autosync"
6692 msgstr ""
6693
6694 #. type: verbatim
6695 #: ../fish/guestfish-actions.pod:1366
6696 #, no-wrap
6697 msgid ""
6698 " get-autosync\n"
6699 "\n"
6700 msgstr ""
6701
6702 #. type: textblock
6703 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
6704 msgid "Get the autosync flag."
6705 msgstr ""
6706
6707 #. type: =head2
6708 #: ../fish/guestfish-actions.pod:1370
6709 msgid "get-direct"
6710 msgstr ""
6711
6712 #. type: verbatim
6713 #: ../fish/guestfish-actions.pod:1372
6714 #, no-wrap
6715 msgid ""
6716 " get-direct\n"
6717 "\n"
6718 msgstr ""
6719
6720 #. type: textblock
6721 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
6722 msgid "Return the direct appliance mode flag."
6723 msgstr ""
6724
6725 #. type: =head2
6726 #: ../fish/guestfish-actions.pod:1376
6727 msgid "get-e2label"
6728 msgstr ""
6729
6730 #. type: verbatim
6731 #: ../fish/guestfish-actions.pod:1378
6732 #, no-wrap
6733 msgid ""
6734 " get-e2label device\n"
6735 "\n"
6736 msgstr ""
6737
6738 #. type: textblock
6739 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
6740 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:1383
6745 msgid ""
6746 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6747 "instead."
6748 msgstr ""
6749
6750 #. type: =head2
6751 #: ../fish/guestfish-actions.pod:1390
6752 msgid "get-e2uuid"
6753 msgstr ""
6754
6755 #. type: verbatim
6756 #: ../fish/guestfish-actions.pod:1392
6757 #, no-wrap
6758 msgid ""
6759 " get-e2uuid device\n"
6760 "\n"
6761 msgstr ""
6762
6763 #. type: textblock
6764 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
6765 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6766 msgstr ""
6767
6768 #. type: textblock
6769 #: ../fish/guestfish-actions.pod:1397
6770 msgid ""
6771 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6772 "instead."
6773 msgstr ""
6774
6775 #. type: =head2
6776 #: ../fish/guestfish-actions.pod:1404
6777 msgid "get-memsize"
6778 msgstr ""
6779
6780 #. type: verbatim
6781 #: ../fish/guestfish-actions.pod:1406
6782 #, no-wrap
6783 msgid ""
6784 " get-memsize\n"
6785 "\n"
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
6790 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6791 msgstr ""
6792
6793 #. type: textblock
6794 #: ../fish/guestfish-actions.pod:1411
6795 msgid ""
6796 "If L</set-memsize> was not called on this handle, and if "
6797 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6798 "value for memsize."
6799 msgstr ""
6800
6801 #. type: textblock
6802 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472 ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6556
6803 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6804 msgstr ""
6805
6806 #. type: =head2
6807 #: ../fish/guestfish-actions.pod:1418
6808 msgid "get-network"
6809 msgstr ""
6810
6811 #. type: verbatim
6812 #: ../fish/guestfish-actions.pod:1420
6813 #, no-wrap
6814 msgid ""
6815 " get-network\n"
6816 "\n"
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
6821 msgid "This returns the enable network flag."
6822 msgstr ""
6823
6824 #. type: =head2
6825 #: ../fish/guestfish-actions.pod:1424
6826 msgid "get-path"
6827 msgstr ""
6828
6829 #. type: verbatim
6830 #: ../fish/guestfish-actions.pod:1426
6831 #, no-wrap
6832 msgid ""
6833 " get-path\n"
6834 "\n"
6835 msgstr ""
6836
6837 #. type: textblock
6838 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
6839 msgid "Return the current search path."
6840 msgstr ""
6841
6842 #. type: textblock
6843 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
6844 msgid ""
6845 "This is always non-NULL.  If it wasn't set already, then this will return "
6846 "the default path."
6847 msgstr ""
6848
6849 #. type: =head2
6850 #: ../fish/guestfish-actions.pod:1433
6851 msgid "get-pgroup"
6852 msgstr ""
6853
6854 #. type: verbatim
6855 #: ../fish/guestfish-actions.pod:1435
6856 #, no-wrap
6857 msgid ""
6858 " get-pgroup\n"
6859 "\n"
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
6864 msgid "This returns the process group flag."
6865 msgstr ""
6866
6867 #. type: =head2
6868 #: ../fish/guestfish-actions.pod:1439
6869 msgid "get-pid"
6870 msgstr ""
6871
6872 #. type: =head2
6873 #: ../fish/guestfish-actions.pod:1441
6874 msgid "pid"
6875 msgstr ""
6876
6877 #. type: verbatim
6878 #: ../fish/guestfish-actions.pod:1443
6879 #, no-wrap
6880 msgid ""
6881 " get-pid\n"
6882 "\n"
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
6887 msgid ""
6888 "Return the process ID of the qemu subprocess.  If there is no qemu "
6889 "subprocess, then this will return an error."
6890 msgstr ""
6891
6892 #. type: textblock
6893 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
6894 msgid "This is an internal call used for debugging and testing."
6895 msgstr ""
6896
6897 #. type: =head2
6898 #: ../fish/guestfish-actions.pod:1450
6899 msgid "get-qemu"
6900 msgstr ""
6901
6902 #. type: verbatim
6903 #: ../fish/guestfish-actions.pod:1452
6904 #, no-wrap
6905 msgid ""
6906 " get-qemu\n"
6907 "\n"
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
6912 msgid "Return the current qemu binary."
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
6917 msgid ""
6918 "This is always non-NULL.  If it wasn't set already, then this will return "
6919 "the default qemu binary name."
6920 msgstr ""
6921
6922 #. type: =head2
6923 #: ../fish/guestfish-actions.pod:1459
6924 msgid "get-recovery-proc"
6925 msgstr ""
6926
6927 #. type: verbatim
6928 #: ../fish/guestfish-actions.pod:1461
6929 #, no-wrap
6930 msgid ""
6931 " get-recovery-proc\n"
6932 "\n"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
6937 msgid "Return the recovery process enabled flag."
6938 msgstr ""
6939
6940 #. type: =head2
6941 #: ../fish/guestfish-actions.pod:1465
6942 msgid "get-selinux"
6943 msgstr ""
6944
6945 #. type: verbatim
6946 #: ../fish/guestfish-actions.pod:1467
6947 #, no-wrap
6948 msgid ""
6949 " get-selinux\n"
6950 "\n"
6951 msgstr ""
6952
6953 #. type: textblock
6954 #: ../fish/guestfish-actions.pod:1469
6955 msgid ""
6956 "This returns the current setting of the selinux flag which is passed to the "
6957 "appliance at boot time.  See L</set-selinux>."
6958 msgstr ""
6959
6960 #. type: =head2
6961 #: ../fish/guestfish-actions.pod:1475
6962 msgid "get-smp"
6963 msgstr ""
6964
6965 #. type: verbatim
6966 #: ../fish/guestfish-actions.pod:1477
6967 #, no-wrap
6968 msgid ""
6969 " get-smp\n"
6970 "\n"
6971 msgstr ""
6972
6973 #. type: textblock
6974 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
6975 msgid "This returns the number of virtual CPUs assigned to the appliance."
6976 msgstr ""
6977
6978 #. type: =head2
6979 #: ../fish/guestfish-actions.pod:1481
6980 msgid "get-state"
6981 msgstr ""
6982
6983 #. type: verbatim
6984 #: ../fish/guestfish-actions.pod:1483
6985 #, no-wrap
6986 msgid ""
6987 " get-state\n"
6988 "\n"
6989 msgstr ""
6990
6991 #. type: textblock
6992 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
6993 msgid ""
6994 "This returns the current state as an opaque integer.  This is only useful "
6995 "for printing debug and internal error messages."
6996 msgstr ""
6997
6998 #. type: textblock
6999 #: ../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:2275 ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
7000 msgid "For more information on states, see L<guestfs(3)>."
7001 msgstr ""
7002
7003 #. type: =head2
7004 #: ../fish/guestfish-actions.pod:1490
7005 msgid "get-trace"
7006 msgstr ""
7007
7008 #. type: verbatim
7009 #: ../fish/guestfish-actions.pod:1492
7010 #, no-wrap
7011 msgid ""
7012 " get-trace\n"
7013 "\n"
7014 msgstr ""
7015
7016 #. type: textblock
7017 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
7018 msgid "Return the command trace flag."
7019 msgstr ""
7020
7021 #. type: =head2
7022 #: ../fish/guestfish-actions.pod:1496
7023 msgid "get-umask"
7024 msgstr ""
7025
7026 #. type: verbatim
7027 #: ../fish/guestfish-actions.pod:1498
7028 #, no-wrap
7029 msgid ""
7030 " get-umask\n"
7031 "\n"
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1500
7036 msgid ""
7037 "Return the current umask.  By default the umask is C<022> unless it has been "
7038 "set by calling L</umask>."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:1503
7043 msgid "get-verbose"
7044 msgstr ""
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:1505
7048 #, no-wrap
7049 msgid ""
7050 " get-verbose\n"
7051 "\n"
7052 msgstr ""
7053
7054 #. type: textblock
7055 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
7056 msgid "This returns the verbose messages flag."
7057 msgstr ""
7058
7059 #. type: =head2
7060 #: ../fish/guestfish-actions.pod:1509
7061 msgid "getcon"
7062 msgstr ""
7063
7064 #. type: verbatim
7065 #: ../fish/guestfish-actions.pod:1511
7066 #, no-wrap
7067 msgid ""
7068 " getcon\n"
7069 "\n"
7070 msgstr ""
7071
7072 #. type: textblock
7073 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
7074 msgid "This gets the SELinux security context of the daemon."
7075 msgstr ""
7076
7077 #. type: textblock
7078 #: ../fish/guestfish-actions.pod:1515
7079 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7080 msgstr ""
7081
7082 #. type: =head2
7083 #: ../fish/guestfish-actions.pod:1518
7084 msgid "getxattr"
7085 msgstr ""
7086
7087 #. type: verbatim
7088 #: ../fish/guestfish-actions.pod:1520
7089 #, no-wrap
7090 msgid ""
7091 " getxattr path name\n"
7092 "\n"
7093 msgstr ""
7094
7095 #. type: textblock
7096 #: ../fish/guestfish-actions.pod:1522
7097 msgid ""
7098 "Get a single extended attribute from file C<path> named C<name>.  This call "
7099 "follows symlinks.  If you want to lookup an extended attribute for the "
7100 "symlink itself, use L</lgetxattr>."
7101 msgstr ""
7102
7103 #. type: textblock
7104 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
7105 msgid ""
7106 "Normally it is better to get all extended attributes from a file in one go "
7107 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7108 "buggy and do not provide a way to list out attributes.  For these "
7109 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7110 "attributes you want in advance and call this function."
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586 ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
7115 msgid ""
7116 "Extended attribute values are blobs of binary data.  If there is no extended "
7117 "attribute named C<name>, this returns an error."
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:1536
7122 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7123 msgstr ""
7124
7125 #. type: =head2
7126 #: ../fish/guestfish-actions.pod:1538
7127 msgid "getxattrs"
7128 msgstr ""
7129
7130 #. type: verbatim
7131 #: ../fish/guestfish-actions.pod:1540
7132 #, no-wrap
7133 msgid ""
7134 " getxattrs path\n"
7135 "\n"
7136 msgstr ""
7137
7138 #. type: textblock
7139 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
7140 msgid "This call lists the extended attributes of the file or directory C<path>."
7141 msgstr ""
7142
7143 #. type: textblock
7144 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
7145 msgid ""
7146 "At the system call level, this is a combination of the L<listxattr(2)> and "
7147 "L<getxattr(2)> calls."
7148 msgstr ""
7149
7150 #. type: textblock
7151 #: ../fish/guestfish-actions.pod:1548
7152 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7153 msgstr ""
7154
7155 #. type: =head2
7156 #: ../fish/guestfish-actions.pod:1550
7157 msgid "glob-expand"
7158 msgstr ""
7159
7160 #. type: verbatim
7161 #: ../fish/guestfish-actions.pod:1552
7162 #, no-wrap
7163 msgid ""
7164 " glob-expand pattern\n"
7165 "\n"
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
7170 msgid ""
7171 "This command searches for all the pathnames matching C<pattern> according to "
7172 "the wildcard expansion rules used by the shell."
7173 msgstr ""
7174
7175 #. type: textblock
7176 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
7177 msgid "If no paths match, then this returns an empty list (note: not an error)."
7178 msgstr ""
7179
7180 #. type: textblock
7181 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
7182 msgid ""
7183 "It is just a wrapper around the C L<glob(3)> function with flags "
7184 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7185 msgstr ""
7186
7187 #. type: =head2
7188 #: ../fish/guestfish-actions.pod:1565
7189 msgid "grep"
7190 msgstr ""
7191
7192 #. type: verbatim
7193 #: ../fish/guestfish-actions.pod:1567
7194 #, no-wrap
7195 msgid ""
7196 " grep regex path\n"
7197 "\n"
7198 msgstr ""
7199
7200 #. type: textblock
7201 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
7202 msgid "This calls the external C<grep> program and returns the matching lines."
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../fish/guestfish-actions.pod:1575
7207 msgid "grepi"
7208 msgstr ""
7209
7210 #. type: verbatim
7211 #: ../fish/guestfish-actions.pod:1577
7212 #, no-wrap
7213 msgid ""
7214 " grepi regex path\n"
7215 "\n"
7216 msgstr ""
7217
7218 #. type: textblock
7219 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
7220 msgid "This calls the external C<grep -i> program and returns the matching lines."
7221 msgstr ""
7222
7223 #. type: =head2
7224 #: ../fish/guestfish-actions.pod:1585
7225 msgid "grub-install"
7226 msgstr ""
7227
7228 #. type: verbatim
7229 #: ../fish/guestfish-actions.pod:1587
7230 #, no-wrap
7231 msgid ""
7232 " grub-install root device\n"
7233 "\n"
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
7238 msgid ""
7239 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7240 "with the root directory being C<root>."
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
7245 msgid ""
7246 "There is currently no way in the API to install grub2, which is used by most "
7247 "modern Linux guests.  It is possible to run the grub2 command from the "
7248 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7249 msgstr ""
7250
7251 #. type: textblock
7252 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
7253 msgid ""
7254 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7255 "compatible with itself, so this only works in rather narrow circumstances.  "
7256 "Careful testing with each guest version is advisable."
7257 msgstr ""
7258
7259 #. type: textblock
7260 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
7261 msgid ""
7262 "If grub-install reports the error \"No suitable drive was found in the "
7263 "generated device map.\" it may be that you need to create a "
7264 "C</boot/grub/device.map> file first that contains the mapping between grub "
7265 "device names and Linux device names.  It is usually sufficient to create a "
7266 "file containing:"
7267 msgstr ""
7268
7269 #. type: verbatim
7270 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
7271 #, no-wrap
7272 msgid ""
7273 " (hd0) /dev/vda\n"
7274 "\n"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
7279 msgid "replacing C</dev/vda> with the name of the installation device."
7280 msgstr ""
7281
7282 #. type: =head2
7283 #: ../fish/guestfish-actions.pod:1625
7284 msgid "head"
7285 msgstr ""
7286
7287 #. type: verbatim
7288 #: ../fish/guestfish-actions.pod:1627
7289 #, no-wrap
7290 msgid ""
7291 " head path\n"
7292 "\n"
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
7297 msgid ""
7298 "This command returns up to the first 10 lines of a file as a list of "
7299 "strings."
7300 msgstr ""
7301
7302 #. type: =head2
7303 #: ../fish/guestfish-actions.pod:1635
7304 msgid "head-n"
7305 msgstr ""
7306
7307 #. type: verbatim
7308 #: ../fish/guestfish-actions.pod:1637
7309 #, no-wrap
7310 msgid ""
7311 " head-n nrlines path\n"
7312 "\n"
7313 msgstr ""
7314
7315 #. type: textblock
7316 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
7317 msgid ""
7318 "If the parameter C<nrlines> is a positive number, this returns the first "
7319 "C<nrlines> lines of the file C<path>."
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
7324 msgid ""
7325 "If the parameter C<nrlines> is a negative number, this returns lines from "
7326 "the file C<path>, excluding the last C<nrlines> lines."
7327 msgstr ""
7328
7329 #. type: textblock
7330 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717 ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7142
7331 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7332 msgstr ""
7333
7334 #. type: =head2
7335 #: ../fish/guestfish-actions.pod:1650
7336 msgid "hexdump"
7337 msgstr ""
7338
7339 #. type: verbatim
7340 #: ../fish/guestfish-actions.pod:1652
7341 #, no-wrap
7342 msgid ""
7343 " hexdump path\n"
7344 "\n"
7345 msgstr ""
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
7349 msgid ""
7350 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7351 "human-readable, canonical hex dump of the file."
7352 msgstr ""
7353
7354 #. type: =head2
7355 #: ../fish/guestfish-actions.pod:1660
7356 msgid "initrd-cat"
7357 msgstr ""
7358
7359 #. type: verbatim
7360 #: ../fish/guestfish-actions.pod:1662
7361 #, no-wrap
7362 msgid ""
7363 " initrd-cat initrdpath filename\n"
7364 "\n"
7365 msgstr ""
7366
7367 #. type: textblock
7368 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
7369 msgid ""
7370 "This command unpacks the file C<filename> from the initrd file called "
7371 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7372 "character."
7373 msgstr ""
7374
7375 #. type: textblock
7376 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
7377 msgid ""
7378 "For example, in guestfish you could use the following command to examine the "
7379 "boot script (usually called C</init>)  contained in a Linux initrd or "
7380 "initramfs image:"
7381 msgstr ""
7382
7383 #. type: verbatim
7384 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
7385 #, no-wrap
7386 msgid ""
7387 " initrd-cat /boot/initrd-<version>.img init\n"
7388 "\n"
7389 msgstr ""
7390
7391 #. type: textblock
7392 #: ../fish/guestfish-actions.pod:1674
7393 msgid "See also L</initrd-list>."
7394 msgstr ""
7395
7396 #. type: =head2
7397 #: ../fish/guestfish-actions.pod:1679
7398 msgid "initrd-list"
7399 msgstr ""
7400
7401 #. type: verbatim
7402 #: ../fish/guestfish-actions.pod:1681
7403 #, no-wrap
7404 msgid ""
7405 " initrd-list path\n"
7406 "\n"
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
7411 msgid "This command lists out files contained in an initrd."
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
7416 msgid ""
7417 "The files are listed without any initial C</> character.  The files are "
7418 "listed in the order they appear (not necessarily alphabetical).  Directory "
7419 "names are listed as separate items."
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
7424 msgid ""
7425 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7426 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7427 "files)."
7428 msgstr ""
7429
7430 #. type: =head2
7431 #: ../fish/guestfish-actions.pod:1693
7432 msgid "inotify-add-watch"
7433 msgstr ""
7434
7435 #. type: verbatim
7436 #: ../fish/guestfish-actions.pod:1695
7437 #, no-wrap
7438 msgid ""
7439 " inotify-add-watch path mask\n"
7440 "\n"
7441 msgstr ""
7442
7443 #. type: textblock
7444 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
7445 msgid "Watch C<path> for the events listed in C<mask>."
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
7450 msgid ""
7451 "Note that if C<path> is a directory then events within that directory are "
7452 "watched, but this does I<not> happen recursively (in subdirectories)."
7453 msgstr ""
7454
7455 #. type: textblock
7456 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
7457 msgid ""
7458 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7459 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7460 msgstr ""
7461
7462 #. type: =head2
7463 #: ../fish/guestfish-actions.pod:1707
7464 msgid "inotify-close"
7465 msgstr ""
7466
7467 #. type: verbatim
7468 #: ../fish/guestfish-actions.pod:1709
7469 #, no-wrap
7470 msgid ""
7471 " inotify-close\n"
7472 "\n"
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
7477 msgid ""
7478 "This closes the inotify handle which was previously opened by inotify_init.  "
7479 "It removes all watches, throws away any pending events, and deallocates all "
7480 "resources."
7481 msgstr ""
7482
7483 #. type: =head2
7484 #: ../fish/guestfish-actions.pod:1715
7485 msgid "inotify-files"
7486 msgstr ""
7487
7488 #. type: verbatim
7489 #: ../fish/guestfish-actions.pod:1717
7490 #, no-wrap
7491 msgid ""
7492 " inotify-files\n"
7493 "\n"
7494 msgstr ""
7495
7496 #. type: textblock
7497 #: ../fish/guestfish-actions.pod:1719
7498 msgid ""
7499 "This function is a helpful wrapper around L</inotify-read> which just "
7500 "returns a list of pathnames of objects that were touched.  The returned "
7501 "pathnames are sorted and deduplicated."
7502 msgstr ""
7503
7504 #. type: =head2
7505 #: ../fish/guestfish-actions.pod:1723
7506 msgid "inotify-init"
7507 msgstr ""
7508
7509 #. type: verbatim
7510 #: ../fish/guestfish-actions.pod:1725
7511 #, no-wrap
7512 msgid ""
7513 " inotify-init maxevents\n"
7514 "\n"
7515 msgstr ""
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
7519 msgid ""
7520 "This command creates a new inotify handle.  The inotify subsystem can be "
7521 "used to notify events which happen to objects in the guest filesystem."
7522 msgstr ""
7523
7524 #. type: textblock
7525 #: ../fish/guestfish-actions.pod:1731
7526 msgid ""
7527 "C<maxevents> is the maximum number of events which will be queued up between "
7528 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7529 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7530 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7531 "but records the fact that it threw them away by setting a flag "
7532 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7533 msgstr ""
7534
7535 #. type: textblock
7536 #: ../fish/guestfish-actions.pod:1741
7537 msgid ""
7538 "Before any events are generated, you have to add some watches to the "
7539 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7540 "L</inotify-watch-all>."
7541 msgstr ""
7542
7543 #. type: textblock
7544 #: ../fish/guestfish-actions.pod:1747
7545 msgid ""
7546 "Queued up events should be read periodically by calling L</inotify-read> (or "
7547 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7548 "If you don't read the events out often enough then you risk the internal "
7549 "queue overflowing."
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../fish/guestfish-actions.pod:1754
7554 msgid ""
7555 "The handle should be closed after use by calling L</inotify-close>.  This "
7556 "also removes any watches automatically."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
7561 msgid ""
7562 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7563 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7564 "that there is one global inotify handle per libguestfs instance."
7565 msgstr ""
7566
7567 #. type: =head2
7568 #: ../fish/guestfish-actions.pod:1763
7569 msgid "inotify-read"
7570 msgstr ""
7571
7572 #. type: verbatim
7573 #: ../fish/guestfish-actions.pod:1765
7574 #, no-wrap
7575 msgid ""
7576 " inotify-read\n"
7577 "\n"
7578 msgstr ""
7579
7580 #. type: textblock
7581 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
7582 msgid ""
7583 "Return the complete queue of events that have happened since the previous "
7584 "read call."
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
7589 msgid "If no events have happened, this returns an empty list."
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
7594 msgid ""
7595 "I<Note>: In order to make sure that all events have been read, you must call "
7596 "this function repeatedly until it returns an empty list.  The reason is that "
7597 "the call will read events up to the maximum appliance-to-host message size "
7598 "and leave remaining events in the queue."
7599 msgstr ""
7600
7601 #. type: =head2
7602 #: ../fish/guestfish-actions.pod:1778
7603 msgid "inotify-rm-watch"
7604 msgstr ""
7605
7606 #. type: verbatim
7607 #: ../fish/guestfish-actions.pod:1780
7608 #, no-wrap
7609 msgid ""
7610 " inotify-rm-watch wd\n"
7611 "\n"
7612 msgstr ""
7613
7614 #. type: textblock
7615 #: ../fish/guestfish-actions.pod:1782
7616 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7617 msgstr ""
7618
7619 #. type: =head2
7620 #: ../fish/guestfish-actions.pod:1785
7621 msgid "inspect-get-arch"
7622 msgstr ""
7623
7624 #. type: verbatim
7625 #: ../fish/guestfish-actions.pod:1787
7626 #, no-wrap
7627 msgid ""
7628 " inspect-get-arch root\n"
7629 "\n"
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:1789
7634 msgid ""
7635 "This returns the architecture of the inspected operating system.  The "
7636 "possible return values are listed under L</file-architecture>."
7637 msgstr ""
7638
7639 #. type: textblock
7640 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
7641 msgid ""
7642 "If the architecture could not be determined, then the string C<unknown> is "
7643 "returned."
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../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:2741 ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939 ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089 ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274 ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334 ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371 ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
7648 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7649 msgstr ""
7650
7651 #. type: =head2
7652 #: ../fish/guestfish-actions.pod:1798
7653 msgid "inspect-get-distro"
7654 msgstr ""
7655
7656 #. type: verbatim
7657 #: ../fish/guestfish-actions.pod:1800
7658 #, no-wrap
7659 msgid ""
7660 " inspect-get-distro root\n"
7661 "\n"
7662 msgstr ""
7663
7664 #. type: textblock
7665 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
7666 msgid "This returns the distro (distribution) of the inspected operating system."
7667 msgstr ""
7668
7669 #. type: textblock
7670 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
7671 msgid "Currently defined distros are:"
7672 msgstr ""
7673
7674 #. type: =item
7675 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
7676 msgid "\"archlinux\""
7677 msgstr ""
7678
7679 #. type: textblock
7680 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
7681 msgid "Arch Linux."
7682 msgstr ""
7683
7684 #. type: =item
7685 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
7686 msgid "\"centos\""
7687 msgstr ""
7688
7689 #. type: textblock
7690 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
7691 msgid "CentOS."
7692 msgstr ""
7693
7694 #. type: =item
7695 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
7696 msgid "\"debian\""
7697 msgstr ""
7698
7699 #. type: textblock
7700 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
7701 msgid "Debian."
7702 msgstr ""
7703
7704 #. type: =item
7705 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
7706 msgid "\"fedora\""
7707 msgstr ""
7708
7709 #. type: textblock
7710 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
7711 msgid "Fedora."
7712 msgstr ""
7713
7714 #. type: =item
7715 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
7716 msgid "\"gentoo\""
7717 msgstr ""
7718
7719 #. type: textblock
7720 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
7721 msgid "Gentoo."
7722 msgstr ""
7723
7724 #. type: =item
7725 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
7726 msgid "\"linuxmint\""
7727 msgstr ""
7728
7729 #. type: textblock
7730 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
7731 msgid "Linux Mint."
7732 msgstr ""
7733
7734 #. type: =item
7735 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
7736 msgid "\"mandriva\""
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
7741 msgid "Mandriva."
7742 msgstr ""
7743
7744 #. type: =item
7745 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
7746 msgid "\"meego\""
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
7751 msgid "MeeGo."
7752 msgstr ""
7753
7754 #. type: =item
7755 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
7756 msgid "\"pardus\""
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
7761 msgid "Pardus."
7762 msgstr ""
7763
7764 #. type: =item
7765 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
7766 msgid "\"redhat-based\""
7767 msgstr ""
7768
7769 #. type: textblock
7770 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
7771 msgid "Some Red Hat-derived distro."
7772 msgstr ""
7773
7774 #. type: =item
7775 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
7776 msgid "\"rhel\""
7777 msgstr ""
7778
7779 #. type: textblock
7780 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
7781 msgid "Red Hat Enterprise Linux."
7782 msgstr ""
7783
7784 #. type: =item
7785 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
7786 msgid "\"scientificlinux\""
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
7791 msgid "Scientific Linux."
7792 msgstr ""
7793
7794 #. type: =item
7795 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
7796 msgid "\"slackware\""
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
7801 msgid "Slackware."
7802 msgstr ""
7803
7804 #. type: =item
7805 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
7806 msgid "\"ttylinux\""
7807 msgstr ""
7808
7809 #. type: textblock
7810 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
7811 msgid "ttylinux."
7812 msgstr ""
7813
7814 #. type: =item
7815 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
7816 msgid "\"ubuntu\""
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
7821 msgid "Ubuntu."
7822 msgstr ""
7823
7824 #. type: =item
7825 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953 ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
7826 msgid "\"unknown\""
7827 msgstr ""
7828
7829 #. type: textblock
7830 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
7831 msgid "The distro could not be determined."
7832 msgstr ""
7833
7834 #. type: =item
7835 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209 ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
7836 msgid "\"windows\""
7837 msgstr ""
7838
7839 #. type: textblock
7840 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
7841 msgid ""
7842 "Windows does not have distributions.  This string is returned if the OS type "
7843 "is Windows."
7844 msgstr ""
7845
7846 #. type: textblock
7847 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832 ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
7848 msgid ""
7849 "Future versions of libguestfs may return other strings here.  The caller "
7850 "should be prepared to handle any string."
7851 msgstr ""
7852
7853 #. type: =head2
7854 #: ../fish/guestfish-actions.pod:1885
7855 msgid "inspect-get-drive-mappings"
7856 msgstr ""
7857
7858 #. type: verbatim
7859 #: ../fish/guestfish-actions.pod:1887
7860 #, no-wrap
7861 msgid ""
7862 " inspect-get-drive-mappings root\n"
7863 "\n"
7864 msgstr ""
7865
7866 #. type: textblock
7867 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
7868 msgid ""
7869 "This call is useful for Windows which uses a primitive system of assigning "
7870 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7871 "Windows Registry to find out how disks/partitions are mapped to drive "
7872 "letters, and returns a hash table as in the example below:"
7873 msgstr ""
7874
7875 #. type: verbatim
7876 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
7877 #, no-wrap
7878 msgid ""
7879 " C      =>     /dev/vda2\n"
7880 " E      =>     /dev/vdb1\n"
7881 " F      =>     /dev/vdc1\n"
7882 "\n"
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
7887 msgid ""
7888 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7889 "and just contains the drive letter, without the customary colon separator "
7890 "character."
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
7895 msgid ""
7896 "In future we may support other operating systems that also used drive "
7897 "letters, but the keys for those might not be case insensitive and might be "
7898 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7899 "C<h1> etc."
7900 msgstr ""
7901
7902 #. type: textblock
7903 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
7904 msgid ""
7905 "For Windows guests, currently only hard drive mappings are returned.  "
7906 "Removable disks (eg. DVD-ROMs) are ignored."
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
7911 msgid ""
7912 "For guests that do not use drive mappings, or if the drive mappings could "
7913 "not be determined, this returns an empty hash table."
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:1914
7918 msgid ""
7919 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7920 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7921 msgstr ""
7922
7923 #. type: =head2
7924 #: ../fish/guestfish-actions.pod:1918
7925 msgid "inspect-get-filesystems"
7926 msgstr ""
7927
7928 #. type: verbatim
7929 #: ../fish/guestfish-actions.pod:1920
7930 #, no-wrap
7931 msgid ""
7932 " inspect-get-filesystems root\n"
7933 "\n"
7934 msgstr ""
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
7938 msgid ""
7939 "This returns a list of all the filesystems that we think are associated with "
7940 "this operating system.  This includes the root filesystem, other ordinary "
7941 "filesystems, and non-mounted devices like swap partitions."
7942 msgstr ""
7943
7944 #. type: textblock
7945 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
7946 msgid ""
7947 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7948 "to be shared between operating systems."
7949 msgstr ""
7950
7951 #. type: textblock
7952 #: ../fish/guestfish-actions.pod:1930
7953 msgid ""
7954 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7955 "L</inspect-get-mountpoints>."
7956 msgstr ""
7957
7958 #. type: =head2
7959 #: ../fish/guestfish-actions.pod:1933
7960 msgid "inspect-get-format"
7961 msgstr ""
7962
7963 #. type: verbatim
7964 #: ../fish/guestfish-actions.pod:1935
7965 #, no-wrap
7966 msgid ""
7967 " inspect-get-format root\n"
7968 "\n"
7969 msgstr ""
7970
7971 #. type: textblock
7972 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
7973 msgid ""
7974 "This returns the format of the inspected operating system.  You can use it "
7975 "to detect install images, live CDs and similar."
7976 msgstr ""
7977
7978 #. type: textblock
7979 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
7980 msgid "Currently defined formats are:"
7981 msgstr ""
7982
7983 #. type: =item
7984 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
7985 msgid "\"installed\""
7986 msgstr ""
7987
7988 #. type: textblock
7989 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
7990 msgid "This is an installed operating system."
7991 msgstr ""
7992
7993 #. type: =item
7994 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
7995 msgid "\"installer\""
7996 msgstr ""
7997
7998 #. type: textblock
7999 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
8000 msgid ""
8001 "The disk image being inspected is not an installed operating system, but a "
8002 "I<bootable> install disk, live CD, or similar."
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
8007 msgid "The format of this disk image is not known."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:1964
8012 msgid "inspect-get-hostname"
8013 msgstr ""
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:1966
8017 #, no-wrap
8018 msgid ""
8019 " inspect-get-hostname root\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
8025 msgid ""
8026 "This function returns the hostname of the operating system as found by "
8027 "inspection of the guest's configuration files."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
8032 msgid ""
8033 "If the hostname could not be determined, then the string C<unknown> is "
8034 "returned."
8035 msgstr ""
8036
8037 #. type: =head2
8038 #: ../fish/guestfish-actions.pod:1976
8039 msgid "inspect-get-icon"
8040 msgstr ""
8041
8042 #. type: verbatim
8043 #: ../fish/guestfish-actions.pod:1978
8044 #, no-wrap
8045 msgid ""
8046 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8047 "\n"
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
8052 msgid ""
8053 "This function returns an icon corresponding to the inspected operating "
8054 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8055 "to PNG if necessary)."
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
8060 msgid ""
8061 "If it was not possible to get an icon this function returns a zero-length "
8062 "(non-NULL) buffer.  I<Callers must check for this case>."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
8067 msgid ""
8068 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8069 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8070 "this file will be returned.  You can disable favicons by passing the "
8071 "optional C<favicon> boolean as false (default is true)."
8072 msgstr ""
8073
8074 #. type: textblock
8075 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
8076 msgid ""
8077 "If finding the favicon fails, then we look in other places in the guest for "
8078 "a suitable icon."
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
8083 msgid ""
8084 "If the optional C<highquality> boolean is true then only high quality icons "
8085 "are returned, which means only icons of high resolution with an alpha "
8086 "channel.  The default (false) is to return any icon we can, even if it is of "
8087 "substandard quality."
8088 msgstr ""
8089
8090 #. type: textblock
8091 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
8092 msgid ""
8093 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8094 "before you call this, since it needs to read information from the guest "
8095 "filesystem during the call."
8096 msgstr ""
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
8100 msgid ""
8101 "B<Security:> The icon data comes from the untrusted guest, and should be "
8102 "treated with caution.  PNG files have been known to contain exploits.  "
8103 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8104 "trying to process or display the icon."
8105 msgstr ""
8106
8107 #. type: textblock
8108 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
8109 msgid ""
8110 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8111 "tries to return the largest, highest quality icon available.  The "
8112 "application must scale the icon to the required size."
8113 msgstr ""
8114
8115 #. type: textblock
8116 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
8117 msgid ""
8118 "Extracting icons from Windows guests requires the external C<wrestool> "
8119 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8120 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8121 "installed separately."
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
8126 msgid ""
8127 "Operating system icons are usually trademarks.  Seek legal advice before "
8128 "using trademarks in applications."
8129 msgstr ""
8130
8131 #. type: =head2
8132 #: ../fish/guestfish-actions.pod:2042
8133 msgid "inspect-get-major-version"
8134 msgstr ""
8135
8136 #. type: verbatim
8137 #: ../fish/guestfish-actions.pod:2044
8138 #, no-wrap
8139 msgid ""
8140 " inspect-get-major-version root\n"
8141 "\n"
8142 msgstr ""
8143
8144 #. type: textblock
8145 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
8146 msgid "This returns the major version number of the inspected operating system."
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
8151 msgid ""
8152 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8153 "popular public names used by the operating system.  Notably the operating "
8154 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8155 "1).  You can find out the real versions corresponding to releases of Windows "
8156 "by consulting Wikipedia or MSDN."
8157 msgstr ""
8158
8159 #. type: textblock
8160 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
8161 msgid "If the version could not be determined, then C<0> is returned."
8162 msgstr ""
8163
8164 #. type: =head2
8165 #: ../fish/guestfish-actions.pod:2060
8166 msgid "inspect-get-minor-version"
8167 msgstr ""
8168
8169 #. type: verbatim
8170 #: ../fish/guestfish-actions.pod:2062
8171 #, no-wrap
8172 msgid ""
8173 " inspect-get-minor-version root\n"
8174 "\n"
8175 msgstr ""
8176
8177 #. type: textblock
8178 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
8179 msgid "This returns the minor version number of the inspected operating system."
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:2069
8184 msgid ""
8185 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8186 "L</inspect-get-major-version>."
8187 msgstr ""
8188
8189 #. type: =head2
8190 #: ../fish/guestfish-actions.pod:2072
8191 msgid "inspect-get-mountpoints"
8192 msgstr ""
8193
8194 #. type: verbatim
8195 #: ../fish/guestfish-actions.pod:2074
8196 #, no-wrap
8197 msgid ""
8198 " inspect-get-mountpoints root\n"
8199 "\n"
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
8204 msgid ""
8205 "This returns a hash of where we think the filesystems associated with this "
8206 "operating system should be mounted.  Callers should note that this is at "
8207 "best an educated guess made by reading configuration files such as "
8208 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
8209 "are non-existent or not mountable and callers should be prepared to handle "
8210 "or ignore failures if they try to mount them."
8211 msgstr ""
8212
8213 #. type: textblock
8214 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
8215 msgid ""
8216 "Each element in the returned hashtable has a key which is the path of the "
8217 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8218 "mounted there (eg. C</dev/sda1>)."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
8223 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8224 msgstr ""
8225
8226 #. type: textblock
8227 #: ../fish/guestfish-actions.pod:2093
8228 msgid ""
8229 "For operating systems like Windows which still use drive letters, this call "
8230 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8231 "information about the mapping of drive letters to partitions, see "
8232 "L</inspect-get-drive-mappings>."
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../fish/guestfish-actions.pod:2099
8237 msgid ""
8238 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8239 "L</inspect-get-filesystems>."
8240 msgstr ""
8241
8242 #. type: =head2
8243 #: ../fish/guestfish-actions.pod:2102
8244 msgid "inspect-get-package-format"
8245 msgstr ""
8246
8247 #. type: verbatim
8248 #: ../fish/guestfish-actions.pod:2104
8249 #, no-wrap
8250 msgid ""
8251 " inspect-get-package-format root\n"
8252 "\n"
8253 msgstr ""
8254
8255 #. type: textblock
8256 #: ../fish/guestfish-actions.pod:2106
8257 msgid ""
8258 "This function and L</inspect-get-package-management> return the package "
8259 "format and package management tool used by the inspected operating system.  "
8260 "For example for Fedora these functions would return C<rpm> (package format) "
8261 "and C<yum> (package management)."
8262 msgstr ""
8263
8264 #. type: textblock
8265 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
8266 msgid ""
8267 "This returns the string C<unknown> if we could not determine the package "
8268 "format I<or> if the operating system does not have a real packaging system "
8269 "(eg. Windows)."
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
8274 msgid ""
8275 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8276 "Future versions of libguestfs may return other strings."
8277 msgstr ""
8278
8279 #. type: =head2
8280 #: ../fish/guestfish-actions.pod:2121
8281 msgid "inspect-get-package-management"
8282 msgstr ""
8283
8284 #. type: verbatim
8285 #: ../fish/guestfish-actions.pod:2123
8286 #, no-wrap
8287 msgid ""
8288 " inspect-get-package-management root\n"
8289 "\n"
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:2125
8294 msgid ""
8295 "L</inspect-get-package-format> and this function return the package format "
8296 "and package management tool used by the inspected operating system.  For "
8297 "example for Fedora these functions would return C<rpm> (package format) and "
8298 "C<yum> (package management)."
8299 msgstr ""
8300
8301 #. type: textblock
8302 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
8303 msgid ""
8304 "This returns the string C<unknown> if we could not determine the package "
8305 "management tool I<or> if the operating system does not have a real packaging "
8306 "system (eg. Windows)."
8307 msgstr ""
8308
8309 #. type: textblock
8310 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
8311 msgid ""
8312 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8313 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8314 "libguestfs may return other strings."
8315 msgstr ""
8316
8317 #. type: =head2
8318 #: ../fish/guestfish-actions.pod:2142
8319 msgid "inspect-get-product-name"
8320 msgstr ""
8321
8322 #. type: verbatim
8323 #: ../fish/guestfish-actions.pod:2144
8324 #, no-wrap
8325 msgid ""
8326 " inspect-get-product-name root\n"
8327 "\n"
8328 msgstr ""
8329
8330 #. type: textblock
8331 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
8332 msgid ""
8333 "This returns the product name of the inspected operating system.  The "
8334 "product name is generally some freeform string which can be displayed to the "
8335 "user, but should not be parsed by programs."
8336 msgstr ""
8337
8338 #. type: textblock
8339 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
8340 msgid ""
8341 "If the product name could not be determined, then the string C<unknown> is "
8342 "returned."
8343 msgstr ""
8344
8345 #. type: =head2
8346 #: ../fish/guestfish-actions.pod:2156
8347 msgid "inspect-get-product-variant"
8348 msgstr ""
8349
8350 #. type: verbatim
8351 #: ../fish/guestfish-actions.pod:2158
8352 #, no-wrap
8353 msgid ""
8354 " inspect-get-product-variant root\n"
8355 "\n"
8356 msgstr ""
8357
8358 #. type: textblock
8359 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
8360 msgid "This returns the product variant of the inspected operating system."
8361 msgstr ""
8362
8363 #. type: textblock
8364 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
8365 msgid ""
8366 "For Windows guests, this returns the contents of the Registry key "
8367 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8368 "which is usually a string such as C<Client> or C<Server> (other values are "
8369 "possible).  This can be used to distinguish consumer and enterprise versions "
8370 "of Windows that have the same version number (for example, Windows 7 and "
8371 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8372 "the latter is C<Server>)."
8373 msgstr ""
8374
8375 #. type: textblock
8376 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
8377 msgid ""
8378 "For enterprise Linux guests, in future we intend this to return the product "
8379 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8380 "implemented at present."
8381 msgstr ""
8382
8383 #. type: textblock
8384 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
8385 msgid ""
8386 "If the product variant could not be determined, then the string C<unknown> "
8387 "is returned."
8388 msgstr ""
8389
8390 #. type: textblock
8391 #: ../fish/guestfish-actions.pod:2179
8392 msgid ""
8393 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8394 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8395 msgstr ""
8396
8397 #. type: =head2
8398 #: ../fish/guestfish-actions.pod:2183
8399 msgid "inspect-get-roots"
8400 msgstr ""
8401
8402 #. type: verbatim
8403 #: ../fish/guestfish-actions.pod:2185
8404 #, no-wrap
8405 msgid ""
8406 " inspect-get-roots\n"
8407 "\n"
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:2187
8412 msgid ""
8413 "This function is a convenient way to get the list of root devices, as "
8414 "returned from a previous call to L</inspect-os>, but without redoing the "
8415 "whole inspection process."
8416 msgstr ""
8417
8418 #. type: textblock
8419 #: ../fish/guestfish-actions.pod:2191
8420 msgid ""
8421 "This returns an empty list if either no root devices were found or the "
8422 "caller has not called L</inspect-os>."
8423 msgstr ""
8424
8425 #. type: =head2
8426 #: ../fish/guestfish-actions.pod:2196
8427 msgid "inspect-get-type"
8428 msgstr ""
8429
8430 #. type: verbatim
8431 #: ../fish/guestfish-actions.pod:2198
8432 #, no-wrap
8433 msgid ""
8434 " inspect-get-type root\n"
8435 "\n"
8436 msgstr ""
8437
8438 #. type: textblock
8439 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
8440 msgid ""
8441 "This returns the type of the inspected operating system.  Currently defined "
8442 "types are:"
8443 msgstr ""
8444
8445 #. type: =item
8446 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
8447 msgid "\"linux\""
8448 msgstr ""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
8452 msgid "Any Linux-based operating system."
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
8457 msgid "Any Microsoft Windows operating system."
8458 msgstr ""
8459
8460 #. type: =item
8461 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
8462 msgid "\"freebsd\""
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
8467 msgid "FreeBSD."
8468 msgstr ""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
8472 msgid "The operating system type could not be determined."
8473 msgstr ""
8474
8475 #. type: =head2
8476 #: ../fish/guestfish-actions.pod:2228
8477 msgid "inspect-get-windows-current-control-set"
8478 msgstr ""
8479
8480 #. type: verbatim
8481 #: ../fish/guestfish-actions.pod:2230
8482 #, no-wrap
8483 msgid ""
8484 " inspect-get-windows-current-control-set root\n"
8485 "\n"
8486 msgstr ""
8487
8488 #. type: textblock
8489 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
8490 msgid ""
8491 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8492 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
8497 msgid ""
8498 "This call assumes that the guest is Windows and that the Registry could be "
8499 "examined by inspection.  If this is not the case then an error is returned."
8500 msgstr ""
8501
8502 #. type: =head2
8503 #: ../fish/guestfish-actions.pod:2241
8504 msgid "inspect-get-windows-systemroot"
8505 msgstr ""
8506
8507 #. type: verbatim
8508 #: ../fish/guestfish-actions.pod:2243
8509 #, no-wrap
8510 msgid ""
8511 " inspect-get-windows-systemroot root\n"
8512 "\n"
8513 msgstr ""
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
8517 msgid ""
8518 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8519 "is a directory path such as C</WINDOWS>."
8520 msgstr ""
8521
8522 #. type: textblock
8523 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
8524 msgid ""
8525 "This call assumes that the guest is Windows and that the systemroot could be "
8526 "determined by inspection.  If this is not the case then an error is "
8527 "returned."
8528 msgstr ""
8529
8530 #. type: =head2
8531 #: ../fish/guestfish-actions.pod:2254
8532 msgid "inspect-is-live"
8533 msgstr ""
8534
8535 #. type: verbatim
8536 #: ../fish/guestfish-actions.pod:2256
8537 #, no-wrap
8538 msgid ""
8539 " inspect-is-live root\n"
8540 "\n"
8541 msgstr ""
8542
8543 #. type: textblock
8544 #: ../fish/guestfish-actions.pod:2258
8545 msgid ""
8546 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8547 "then this returns true if a live image was detected on the disk."
8548 msgstr ""
8549
8550 #. type: =head2
8551 #: ../fish/guestfish-actions.pod:2264
8552 msgid "inspect-is-multipart"
8553 msgstr ""
8554
8555 #. type: verbatim
8556 #: ../fish/guestfish-actions.pod:2266
8557 #, no-wrap
8558 msgid ""
8559 " inspect-is-multipart root\n"
8560 "\n"
8561 msgstr ""
8562
8563 #. type: textblock
8564 #: ../fish/guestfish-actions.pod:2268
8565 msgid ""
8566 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8567 "then this returns true if the disk is part of a set."
8568 msgstr ""
8569
8570 #. type: =head2
8571 #: ../fish/guestfish-actions.pod:2274
8572 msgid "inspect-is-netinst"
8573 msgstr ""
8574
8575 #. type: verbatim
8576 #: ../fish/guestfish-actions.pod:2276
8577 #, no-wrap
8578 msgid ""
8579 " inspect-is-netinst root\n"
8580 "\n"
8581 msgstr ""
8582
8583 #. type: textblock
8584 #: ../fish/guestfish-actions.pod:2278
8585 msgid ""
8586 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8587 "then this returns true if the disk is a network installer, ie. not a "
8588 "self-contained install CD but one which is likely to require network access "
8589 "to complete the install."
8590 msgstr ""
8591
8592 #. type: =head2
8593 #: ../fish/guestfish-actions.pod:2286
8594 msgid "inspect-list-applications"
8595 msgstr ""
8596
8597 #. type: verbatim
8598 #: ../fish/guestfish-actions.pod:2288
8599 #, no-wrap
8600 msgid ""
8601 " inspect-list-applications root\n"
8602 "\n"
8603 msgstr ""
8604
8605 #. type: textblock
8606 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
8607 msgid "Return the list of applications installed in the operating system."
8608 msgstr ""
8609
8610 #. type: textblock
8611 #: ../fish/guestfish-actions.pod:2292
8612 msgid ""
8613 "I<Note:> This call works differently from other parts of the inspection "
8614 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8615 "then mount up the disks, before calling this.  Listing applications is a "
8616 "significantly more difficult operation which requires access to the full "
8617 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8618 "are just returning data cached in the libguestfs handle, this call actually "
8619 "reads parts of the mounted filesystems during the call."
8620 msgstr ""
8621
8622 #. type: textblock
8623 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
8624 msgid ""
8625 "This returns an empty list if the inspection code was not able to determine "
8626 "the list of applications."
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
8631 msgid "The application structure contains the following fields:"
8632 msgstr ""
8633
8634 #. type: =item
8635 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
8636 msgid "C<app_name>"
8637 msgstr ""
8638
8639 #. type: textblock
8640 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
8641 msgid ""
8642 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8643 "guests, this is the package name."
8644 msgstr ""
8645
8646 #. type: =item
8647 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
8648 msgid "C<app_display_name>"
8649 msgstr ""
8650
8651 #. type: textblock
8652 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
8653 msgid ""
8654 "The display name of the application, sometimes localized to the install "
8655 "language of the guest operating system."
8656 msgstr ""
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
8660 msgid ""
8661 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8662 "to display something can use C<app_name> instead."
8663 msgstr ""
8664
8665 #. type: =item
8666 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
8667 msgid "C<app_epoch>"
8668 msgstr ""
8669
8670 #. type: textblock
8671 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
8672 msgid ""
8673 "For package managers which use epochs, this contains the epoch of the "
8674 "package (an integer).  If unavailable, this is returned as C<0>."
8675 msgstr ""
8676
8677 #. type: =item
8678 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
8679 msgid "C<app_version>"
8680 msgstr ""
8681
8682 #. type: textblock
8683 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
8684 msgid ""
8685 "The version string of the application or package.  If unavailable this is "
8686 "returned as an empty string C<\"\">."
8687 msgstr ""
8688
8689 #. type: =item
8690 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
8691 msgid "C<app_release>"
8692 msgstr ""
8693
8694 #. type: textblock
8695 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
8696 msgid ""
8697 "The release string of the application or package, for package managers that "
8698 "use this.  If unavailable this is returned as an empty string C<\"\">."
8699 msgstr ""
8700
8701 #. type: =item
8702 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
8703 msgid "C<app_install_path>"
8704 msgstr ""
8705
8706 #. type: textblock
8707 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
8708 msgid ""
8709 "The installation path of the application (on operating systems such as "
8710 "Windows which use installation paths).  This path is in the format used by "
8711 "the guest operating system, it is not a libguestfs path."
8712 msgstr ""
8713
8714 #. type: textblock
8715 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
8716 msgid "If unavailable this is returned as an empty string C<\"\">."
8717 msgstr ""
8718
8719 #. type: =item
8720 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
8721 msgid "C<app_trans_path>"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
8726 msgid ""
8727 "The install path translated into a libguestfs path.  If unavailable this is "
8728 "returned as an empty string C<\"\">."
8729 msgstr ""
8730
8731 #. type: =item
8732 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
8733 msgid "C<app_publisher>"
8734 msgstr ""
8735
8736 #. type: textblock
8737 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
8738 msgid ""
8739 "The name of the publisher of the application, for package managers that use "
8740 "this.  If unavailable this is returned as an empty string C<\"\">."
8741 msgstr ""
8742
8743 #. type: =item
8744 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
8745 msgid "C<app_url>"
8746 msgstr ""
8747
8748 #. type: textblock
8749 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
8750 msgid ""
8751 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8752 "returned as an empty string C<\"\">."
8753 msgstr ""
8754
8755 #. type: =item
8756 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
8757 msgid "C<app_source_package>"
8758 msgstr ""
8759
8760 #. type: textblock
8761 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
8762 msgid ""
8763 "For packaging systems which support this, the name of the source package.  "
8764 "If unavailable this is returned as an empty string C<\"\">."
8765 msgstr ""
8766
8767 #. type: =item
8768 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
8769 msgid "C<app_summary>"
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
8774 msgid ""
8775 "A short (usually one line) description of the application or package.  If "
8776 "unavailable this is returned as an empty string C<\"\">."
8777 msgstr ""
8778
8779 #. type: =item
8780 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
8781 msgid "C<app_description>"
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
8786 msgid ""
8787 "A longer description of the application or package.  If unavailable this is "
8788 "returned as an empty string C<\"\">."
8789 msgstr ""
8790
8791 #. type: =head2
8792 #: ../fish/guestfish-actions.pod:2382
8793 msgid "inspect-os"
8794 msgstr ""
8795
8796 #. type: verbatim
8797 #: ../fish/guestfish-actions.pod:2384
8798 #, no-wrap
8799 msgid ""
8800 " inspect-os\n"
8801 "\n"
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
8806 msgid ""
8807 "This function uses other libguestfs functions and certain heuristics to "
8808 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8809 "for operating systems."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
8814 msgid "The list returned is empty if no operating systems were found."
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
8819 msgid ""
8820 "If one operating system was found, then this returns a list with a single "
8821 "element, which is the name of the root filesystem of this operating system.  "
8822 "It is also possible for this function to return a list containing more than "
8823 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8824 "element being the root filesystem of one of the operating systems."
8825 msgstr ""
8826
8827 #. type: textblock
8828 #: ../fish/guestfish-actions.pod:2399
8829 msgid ""
8830 "You can pass the root string(s) returned to other L</inspect-get-*> "
8831 "functions in order to query further information about each operating system, "
8832 "such as the name and version."
8833 msgstr ""
8834
8835 #. type: textblock
8836 #: ../fish/guestfish-actions.pod:2404
8837 msgid ""
8838 "This function uses other libguestfs features such as L</mount-ro> and "
8839 "L</umount-all> in order to mount and unmount filesystems and look at the "
8840 "contents.  This should be called with no disks currently mounted.  The "
8841 "function may also use Augeas, so any existing Augeas handle will be closed."
8842 msgstr ""
8843
8844 #. type: textblock
8845 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
8846 msgid ""
8847 "This function cannot decrypt encrypted disks.  The caller must do that first "
8848 "(supplying the necessary keys) if the disk is encrypted."
8849 msgstr ""
8850
8851 #. type: textblock
8852 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614 ../fish/guestfish-actions.pod:2673
8853 msgid "See also L</list-filesystems>."
8854 msgstr ""
8855
8856 #. type: =head2
8857 #: ../fish/guestfish-actions.pod:2418
8858 msgid "is-blockdev"
8859 msgstr ""
8860
8861 #. type: verbatim
8862 #: ../fish/guestfish-actions.pod:2420
8863 #, no-wrap
8864 msgid ""
8865 " is-blockdev path\n"
8866 "\n"
8867 msgstr ""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
8871 msgid ""
8872 "This returns C<true> if and only if there is a block device with the given "
8873 "C<path> name."
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../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
8878 msgid "See also L</stat>."
8879 msgstr ""
8880
8881 #. type: =head2
8882 #: ../fish/guestfish-actions.pod:2427
8883 msgid "is-busy"
8884 msgstr ""
8885
8886 #. type: verbatim
8887 #: ../fish/guestfish-actions.pod:2429
8888 #, no-wrap
8889 msgid ""
8890 " is-busy\n"
8891 "\n"
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
8896 msgid ""
8897 "This returns true iff this handle is busy processing a command (in the "
8898 "C<BUSY> state)."
8899 msgstr ""
8900
8901 #. type: =head2
8902 #: ../fish/guestfish-actions.pod:2436
8903 msgid "is-chardev"
8904 msgstr ""
8905
8906 #. type: verbatim
8907 #: ../fish/guestfish-actions.pod:2438
8908 #, no-wrap
8909 msgid ""
8910 " is-chardev path\n"
8911 "\n"
8912 msgstr ""
8913
8914 #. type: textblock
8915 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
8916 msgid ""
8917 "This returns C<true> if and only if there is a character device with the "
8918 "given C<path> name."
8919 msgstr ""
8920
8921 #. type: =head2
8922 #: ../fish/guestfish-actions.pod:2445
8923 msgid "is-config"
8924 msgstr ""
8925
8926 #. type: verbatim
8927 #: ../fish/guestfish-actions.pod:2447
8928 #, no-wrap
8929 msgid ""
8930 " is-config\n"
8931 "\n"
8932 msgstr ""
8933
8934 #. type: textblock
8935 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
8936 msgid ""
8937 "This returns true iff this handle is being configured (in the C<CONFIG> "
8938 "state)."
8939 msgstr ""
8940
8941 #. type: =head2
8942 #: ../fish/guestfish-actions.pod:2454
8943 msgid "is-dir"
8944 msgstr ""
8945
8946 #. type: verbatim
8947 #: ../fish/guestfish-actions.pod:2456
8948 #, no-wrap
8949 msgid ""
8950 " is-dir path\n"
8951 "\n"
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
8956 msgid ""
8957 "This returns C<true> if and only if there is a directory with the given "
8958 "C<path> name.  Note that it returns false for other objects like files."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:2464
8963 msgid "is-fifo"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:2466
8968 #, no-wrap
8969 msgid ""
8970 " is-fifo path\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
8976 msgid ""
8977 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8978 "given C<path> name."
8979 msgstr ""
8980
8981 #. type: =head2
8982 #: ../fish/guestfish-actions.pod:2473
8983 msgid "is-file"
8984 msgstr ""
8985
8986 #. type: verbatim
8987 #: ../fish/guestfish-actions.pod:2475
8988 #, no-wrap
8989 msgid ""
8990 " is-file path\n"
8991 "\n"
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
8996 msgid ""
8997 "This returns C<true> if and only if there is a regular file with the given "
8998 "C<path> name.  Note that it returns false for other objects like "
8999 "directories."
9000 msgstr ""
9001
9002 #. type: =head2
9003 #: ../fish/guestfish-actions.pod:2483
9004 msgid "is-launching"
9005 msgstr ""
9006
9007 #. type: verbatim
9008 #: ../fish/guestfish-actions.pod:2485
9009 #, no-wrap
9010 msgid ""
9011 " is-launching\n"
9012 "\n"
9013 msgstr ""
9014
9015 #. type: textblock
9016 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
9017 msgid ""
9018 "This returns true iff this handle is launching the subprocess (in the "
9019 "C<LAUNCHING> state)."
9020 msgstr ""
9021
9022 #. type: =head2
9023 #: ../fish/guestfish-actions.pod:2492
9024 msgid "is-lv"
9025 msgstr ""
9026
9027 #. type: verbatim
9028 #: ../fish/guestfish-actions.pod:2494
9029 #, no-wrap
9030 msgid ""
9031 " is-lv device\n"
9032 "\n"
9033 msgstr ""
9034
9035 #. type: textblock
9036 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
9037 msgid ""
9038 "This command tests whether C<device> is a logical volume, and returns true "
9039 "iff this is the case."
9040 msgstr ""
9041
9042 #. type: =head2
9043 #: ../fish/guestfish-actions.pod:2499
9044 msgid "is-ready"
9045 msgstr ""
9046
9047 #. type: verbatim
9048 #: ../fish/guestfish-actions.pod:2501
9049 #, no-wrap
9050 msgid ""
9051 " is-ready\n"
9052 "\n"
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
9057 msgid ""
9058 "This returns true iff this handle is ready to accept commands (in the "
9059 "C<READY> state)."
9060 msgstr ""
9061
9062 #. type: =head2
9063 #: ../fish/guestfish-actions.pod:2508
9064 msgid "is-socket"
9065 msgstr ""
9066
9067 #. type: verbatim
9068 #: ../fish/guestfish-actions.pod:2510
9069 #, no-wrap
9070 msgid ""
9071 " is-socket path\n"
9072 "\n"
9073 msgstr ""
9074
9075 #. type: textblock
9076 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
9077 msgid ""
9078 "This returns C<true> if and only if there is a Unix domain socket with the "
9079 "given C<path> name."
9080 msgstr ""
9081
9082 #. type: =head2
9083 #: ../fish/guestfish-actions.pod:2517
9084 msgid "is-symlink"
9085 msgstr ""
9086
9087 #. type: verbatim
9088 #: ../fish/guestfish-actions.pod:2519
9089 #, no-wrap
9090 msgid ""
9091 " is-symlink path\n"
9092 "\n"
9093 msgstr ""
9094
9095 #. type: textblock
9096 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
9097 msgid ""
9098 "This returns C<true> if and only if there is a symbolic link with the given "
9099 "C<path> name."
9100 msgstr ""
9101
9102 #. type: =head2
9103 #: ../fish/guestfish-actions.pod:2526
9104 msgid "is-zero"
9105 msgstr ""
9106
9107 #. type: verbatim
9108 #: ../fish/guestfish-actions.pod:2528
9109 #, no-wrap
9110 msgid ""
9111 " is-zero path\n"
9112 "\n"
9113 msgstr ""
9114
9115 #. type: textblock
9116 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
9117 msgid ""
9118 "This returns true iff the file exists and the file is empty or it contains "
9119 "all zero bytes."
9120 msgstr ""
9121
9122 #. type: =head2
9123 #: ../fish/guestfish-actions.pod:2533
9124 msgid "is-zero-device"
9125 msgstr ""
9126
9127 #. type: verbatim
9128 #: ../fish/guestfish-actions.pod:2535
9129 #, no-wrap
9130 msgid ""
9131 " is-zero-device device\n"
9132 "\n"
9133 msgstr ""
9134
9135 #. type: textblock
9136 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
9137 msgid "This returns true iff the device exists and contains all zero bytes."
9138 msgstr ""
9139
9140 #. type: textblock
9141 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
9142 msgid "Note that for large devices this can take a long time to run."
9143 msgstr ""
9144
9145 #. type: =head2
9146 #: ../fish/guestfish-actions.pod:2541
9147 msgid "kill-subprocess"
9148 msgstr ""
9149
9150 #. type: verbatim
9151 #: ../fish/guestfish-actions.pod:2543
9152 #, no-wrap
9153 msgid ""
9154 " kill-subprocess\n"
9155 "\n"
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
9160 msgid "This kills the qemu subprocess.  You should never need to call this."
9161 msgstr ""
9162
9163 #. type: =head2
9164 #: ../fish/guestfish-actions.pod:2547
9165 msgid "launch"
9166 msgstr ""
9167
9168 #. type: =head2
9169 #: ../fish/guestfish-actions.pod:2549
9170 msgid "run"
9171 msgstr ""
9172
9173 #. type: verbatim
9174 #: ../fish/guestfish-actions.pod:2551
9175 #, no-wrap
9176 msgid ""
9177 " launch\n"
9178 "\n"
9179 msgstr ""
9180
9181 #. type: textblock
9182 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
9183 msgid ""
9184 "Internally libguestfs is implemented by running a virtual machine using "
9185 "L<qemu(1)>."
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
9190 msgid ""
9191 "You should call this after configuring the handle (eg. adding drives) but "
9192 "before performing any actions."
9193 msgstr ""
9194
9195 #. type: =head2
9196 #: ../fish/guestfish-actions.pod:2559
9197 msgid "lchown"
9198 msgstr ""
9199
9200 #. type: verbatim
9201 #: ../fish/guestfish-actions.pod:2561
9202 #, no-wrap
9203 msgid ""
9204 " lchown owner group path\n"
9205 "\n"
9206 msgstr ""
9207
9208 #. type: textblock
9209 #: ../fish/guestfish-actions.pod:2563
9210 msgid ""
9211 "Change the file owner to C<owner> and group to C<group>.  This is like "
9212 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
9213 "the target."
9214 msgstr ""
9215
9216 #. type: =head2
9217 #: ../fish/guestfish-actions.pod:2571
9218 msgid "lgetxattr"
9219 msgstr ""
9220
9221 #. type: verbatim
9222 #: ../fish/guestfish-actions.pod:2573
9223 #, no-wrap
9224 msgid ""
9225 " lgetxattr path name\n"
9226 "\n"
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
9231 msgid ""
9232 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9233 "is a symlink, then this call returns an extended attribute from the symlink."
9234 msgstr ""
9235
9236 #. type: textblock
9237 #: ../fish/guestfish-actions.pod:2589
9238 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9239 msgstr ""
9240
9241 #. type: =head2
9242 #: ../fish/guestfish-actions.pod:2591
9243 msgid "lgetxattrs"
9244 msgstr ""
9245
9246 #. type: verbatim
9247 #: ../fish/guestfish-actions.pod:2593
9248 #, no-wrap
9249 msgid ""
9250 " lgetxattrs path\n"
9251 "\n"
9252 msgstr ""
9253
9254 #. type: textblock
9255 #: ../fish/guestfish-actions.pod:2595
9256 msgid ""
9257 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9258 "it returns the extended attributes of the link itself."
9259 msgstr ""
9260
9261 #. type: =head2
9262 #: ../fish/guestfish-actions.pod:2599
9263 msgid "list-9p"
9264 msgstr ""
9265
9266 #. type: verbatim
9267 #: ../fish/guestfish-actions.pod:2601
9268 #, no-wrap
9269 msgid ""
9270 " list-9p\n"
9271 "\n"
9272 msgstr ""
9273
9274 #. type: textblock
9275 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
9276 msgid ""
9277 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9278 "returned."
9279 msgstr ""
9280
9281 #. type: =head2
9282 #: ../fish/guestfish-actions.pod:2606
9283 msgid "list-devices"
9284 msgstr ""
9285
9286 #. type: verbatim
9287 #: ../fish/guestfish-actions.pod:2608
9288 #, no-wrap
9289 msgid ""
9290 " list-devices\n"
9291 "\n"
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
9296 msgid "List all the block devices."
9297 msgstr ""
9298
9299 #. type: textblock
9300 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
9301 msgid "The full block device names are returned, eg. C</dev/sda>."
9302 msgstr ""
9303
9304 #. type: =head2
9305 #: ../fish/guestfish-actions.pod:2616
9306 msgid "list-dm-devices"
9307 msgstr ""
9308
9309 #. type: verbatim
9310 #: ../fish/guestfish-actions.pod:2618
9311 #, no-wrap
9312 msgid ""
9313 " list-dm-devices\n"
9314 "\n"
9315 msgstr ""
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
9319 msgid "List all device mapper devices."
9320 msgstr ""
9321
9322 #. type: textblock
9323 #: ../fish/guestfish-actions.pod:2622
9324 msgid ""
9325 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9326 "previous call to L</luks-open>."
9327 msgstr ""
9328
9329 #. type: textblock
9330 #: ../fish/guestfish-actions.pod:2625
9331 msgid ""
9332 "Device mapper devices which correspond to logical volumes are I<not> "
9333 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9334 msgstr ""
9335
9336 #. type: =head2
9337 #: ../fish/guestfish-actions.pod:2629
9338 msgid "list-filesystems"
9339 msgstr ""
9340
9341 #. type: verbatim
9342 #: ../fish/guestfish-actions.pod:2631
9343 #, no-wrap
9344 msgid ""
9345 " list-filesystems\n"
9346 "\n"
9347 msgstr ""
9348
9349 #. type: textblock
9350 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
9351 msgid ""
9352 "This inspection command looks for filesystems on partitions, block devices "
9353 "and logical volumes, returning a list of devices containing filesystems and "
9354 "their type."
9355 msgstr ""
9356
9357 #. type: textblock
9358 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
9359 msgid ""
9360 "The return value is a hash, where the keys are the devices containing "
9361 "filesystems, and the values are the filesystem types.  For example:"
9362 msgstr ""
9363
9364 #. type: verbatim
9365 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
9366 #, no-wrap
9367 msgid ""
9368 " \"/dev/sda1\" => \"ntfs\"\n"
9369 " \"/dev/sda2\" => \"ext2\"\n"
9370 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9371 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9372 "\n"
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
9377 msgid ""
9378 "The value can have the special value \"unknown\", meaning the content of the "
9379 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9380 msgstr ""
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:2650
9384 msgid ""
9385 "This command runs other libguestfs commands, which might include L</mount> "
9386 "and L</umount>, and therefore you should use this soon after launch and only "
9387 "when nothing is mounted."
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:2654
9392 msgid ""
9393 "Not all of the filesystems returned will be mountable.  In particular, swap "
9394 "partitions are returned in the list.  Also this command does not check that "
9395 "each filesystem found is valid and mountable, and some filesystems might be "
9396 "mountable but require special options.  Filesystems may not all belong to a "
9397 "single logical operating system (use L</inspect-os> to look for OSes)."
9398 msgstr ""
9399
9400 #. type: =head2
9401 #: ../fish/guestfish-actions.pod:2662
9402 msgid "list-partitions"
9403 msgstr ""
9404
9405 #. type: verbatim
9406 #: ../fish/guestfish-actions.pod:2664
9407 #, no-wrap
9408 msgid ""
9409 " list-partitions\n"
9410 "\n"
9411 msgstr ""
9412
9413 #. type: textblock
9414 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
9415 msgid "List all the partitions detected on all block devices."
9416 msgstr ""
9417
9418 #. type: textblock
9419 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
9420 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9421 msgstr ""
9422
9423 #. type: textblock
9424 #: ../fish/guestfish-actions.pod:2670
9425 msgid ""
9426 "This does not return logical volumes.  For that you will need to call "
9427 "L</lvs>."
9428 msgstr ""
9429
9430 #. type: =head2
9431 #: ../fish/guestfish-actions.pod:2675
9432 msgid "ll"
9433 msgstr ""
9434
9435 #. type: verbatim
9436 #: ../fish/guestfish-actions.pod:2677
9437 #, no-wrap
9438 msgid ""
9439 " ll directory\n"
9440 "\n"
9441 msgstr ""
9442
9443 #. type: textblock
9444 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
9445 msgid ""
9446 "List the files in C<directory> (relative to the root directory, there is no "
9447 "cwd) in the format of 'ls -la'."
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
9452 msgid ""
9453 "This command is mostly useful for interactive sessions.  It is I<not> "
9454 "intended that you try to parse the output string."
9455 msgstr ""
9456
9457 #. type: =head2
9458 #: ../fish/guestfish-actions.pod:2685
9459 msgid "ln"
9460 msgstr ""
9461
9462 #. type: verbatim
9463 #: ../fish/guestfish-actions.pod:2687
9464 #, no-wrap
9465 msgid ""
9466 " ln target linkname\n"
9467 "\n"
9468 msgstr ""
9469
9470 #. type: textblock
9471 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
9472 msgid "This command creates a hard link using the C<ln> command."
9473 msgstr ""
9474
9475 #. type: =head2
9476 #: ../fish/guestfish-actions.pod:2691
9477 msgid "ln-f"
9478 msgstr ""
9479
9480 #. type: verbatim
9481 #: ../fish/guestfish-actions.pod:2693
9482 #, no-wrap
9483 msgid ""
9484 " ln-f target linkname\n"
9485 "\n"
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
9490 msgid ""
9491 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9492 "option removes the link (C<linkname>) if it exists already."
9493 msgstr ""
9494
9495 #. type: =head2
9496 #: ../fish/guestfish-actions.pod:2698
9497 msgid "ln-s"
9498 msgstr ""
9499
9500 #. type: verbatim
9501 #: ../fish/guestfish-actions.pod:2700
9502 #, no-wrap
9503 msgid ""
9504 " ln-s target linkname\n"
9505 "\n"
9506 msgstr ""
9507
9508 #. type: textblock
9509 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
9510 msgid "This command creates a symbolic link using the C<ln -s> command."
9511 msgstr ""
9512
9513 #. type: =head2
9514 #: ../fish/guestfish-actions.pod:2704
9515 msgid "ln-sf"
9516 msgstr ""
9517
9518 #. type: verbatim
9519 #: ../fish/guestfish-actions.pod:2706
9520 #, no-wrap
9521 msgid ""
9522 " ln-sf target linkname\n"
9523 "\n"
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
9528 msgid ""
9529 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9530 "option removes the link (C<linkname>) if it exists already."
9531 msgstr ""
9532
9533 #. type: =head2
9534 #: ../fish/guestfish-actions.pod:2711
9535 msgid "lremovexattr"
9536 msgstr ""
9537
9538 #. type: verbatim
9539 #: ../fish/guestfish-actions.pod:2713
9540 #, no-wrap
9541 msgid ""
9542 " lremovexattr xattr path\n"
9543 "\n"
9544 msgstr ""
9545
9546 #. type: textblock
9547 #: ../fish/guestfish-actions.pod:2715
9548 msgid ""
9549 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9550 "it removes an extended attribute of the link itself."
9551 msgstr ""
9552
9553 #. type: =head2
9554 #: ../fish/guestfish-actions.pod:2719
9555 msgid "ls"
9556 msgstr ""
9557
9558 #. type: verbatim
9559 #: ../fish/guestfish-actions.pod:2721
9560 #, no-wrap
9561 msgid ""
9562 " ls directory\n"
9563 "\n"
9564 msgstr ""
9565
9566 #. type: textblock
9567 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
9568 msgid ""
9569 "List the files in C<directory> (relative to the root directory, there is no "
9570 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9571 "shown."
9572 msgstr ""
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:2727
9576 msgid ""
9577 "This command is mostly useful for interactive sessions.  Programs should "
9578 "probably use L</readdir> instead."
9579 msgstr ""
9580
9581 #. type: =head2
9582 #: ../fish/guestfish-actions.pod:2730
9583 msgid "lsetxattr"
9584 msgstr ""
9585
9586 #. type: verbatim
9587 #: ../fish/guestfish-actions.pod:2732
9588 #, no-wrap
9589 msgid ""
9590 " lsetxattr xattr val vallen path\n"
9591 "\n"
9592 msgstr ""
9593
9594 #. type: textblock
9595 #: ../fish/guestfish-actions.pod:2734
9596 msgid ""
9597 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9598 "sets an extended attribute of the link itself."
9599 msgstr ""
9600
9601 #. type: =head2
9602 #: ../fish/guestfish-actions.pod:2738
9603 msgid "lstat"
9604 msgstr ""
9605
9606 #. type: verbatim
9607 #: ../fish/guestfish-actions.pod:2740
9608 #, no-wrap
9609 msgid ""
9610 " lstat path\n"
9611 "\n"
9612 msgstr ""
9613
9614 #. type: textblock
9615 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6882
9616 msgid "Returns file information for the given C<path>."
9617 msgstr ""
9618
9619 #. type: textblock
9620 #: ../fish/guestfish-actions.pod:2744
9621 msgid ""
9622 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9623 "the link is stat-ed, not the file it refers to."
9624 msgstr ""
9625
9626 #. type: textblock
9627 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
9628 msgid "This is the same as the C<lstat(2)> system call."
9629 msgstr ""
9630
9631 #. type: =head2
9632 #: ../fish/guestfish-actions.pod:2750
9633 msgid "lstatlist"
9634 msgstr ""
9635
9636 #. type: verbatim
9637 #: ../fish/guestfish-actions.pod:2752
9638 #, no-wrap
9639 msgid ""
9640 " lstatlist path 'names ...'\n"
9641 "\n"
9642 msgstr ""
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:2754
9646 msgid ""
9647 "This call allows you to perform the L</lstat> operation on multiple files, "
9648 "where all files are in the directory C<path>.  C<names> is the list of files "
9649 "from this directory."
9650 msgstr ""
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
9654 msgid ""
9655 "On return you get a list of stat structs, with a one-to-one correspondence "
9656 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9657 "then the C<ino> field of that structure is set to C<-1>."
9658 msgstr ""
9659
9660 #. type: textblock
9661 #: ../fish/guestfish-actions.pod:2763
9662 msgid ""
9663 "This call is intended for programs that want to efficiently list a directory "
9664 "contents without making many round-trips.  See also L</lxattrlist> for a "
9665 "similarly efficient call for getting extended attributes.  Very long "
9666 "directory listings might cause the protocol message size to be exceeded, "
9667 "causing this call to fail.  The caller must split up such requests into "
9668 "smaller groups of names."
9669 msgstr ""
9670
9671 #. type: =head2
9672 #: ../fish/guestfish-actions.pod:2771
9673 msgid "luks-add-key"
9674 msgstr ""
9675
9676 #. type: verbatim
9677 #: ../fish/guestfish-actions.pod:2773
9678 #, no-wrap
9679 msgid ""
9680 " luks-add-key device keyslot\n"
9681 "\n"
9682 msgstr ""
9683
9684 #. type: textblock
9685 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
9686 msgid ""
9687 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9688 "existing key, and is used to access the device.  C<newkey> is the new key to "
9689 "add.  C<keyslot> is the key slot that will be replaced."
9690 msgstr ""
9691
9692 #. type: textblock
9693 #: ../fish/guestfish-actions.pod:2780
9694 msgid ""
9695 "Note that if C<keyslot> already contains a key, then this command will "
9696 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../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
9701 msgid ""
9702 "This command has one or more key or passphrase parameters.  Guestfish will "
9703 "prompt for these separately."
9704 msgstr ""
9705
9706 #. type: =head2
9707 #: ../fish/guestfish-actions.pod:2787
9708 msgid "luks-close"
9709 msgstr ""
9710
9711 #. type: verbatim
9712 #: ../fish/guestfish-actions.pod:2789
9713 #, no-wrap
9714 msgid ""
9715 " luks-close device\n"
9716 "\n"
9717 msgstr ""
9718
9719 #. type: textblock
9720 #: ../fish/guestfish-actions.pod:2791
9721 msgid ""
9722 "This closes a LUKS device that was created earlier by L</luks-open> or "
9723 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9724 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9725 "underlying block device."
9726 msgstr ""
9727
9728 #. type: =head2
9729 #: ../fish/guestfish-actions.pod:2797
9730 msgid "luks-format"
9731 msgstr ""
9732
9733 #. type: verbatim
9734 #: ../fish/guestfish-actions.pod:2799
9735 #, no-wrap
9736 msgid ""
9737 " luks-format device keyslot\n"
9738 "\n"
9739 msgstr ""
9740
9741 #. type: textblock
9742 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
9743 msgid ""
9744 "This command erases existing data on C<device> and formats the device as a "
9745 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9746 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9747 msgstr ""
9748
9749 #. type: textblock
9750 #: ../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:4200 ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:7958
9751 msgid ""
9752 "B<This command is dangerous.  Without careful use you can easily destroy all "
9753 "your data>."
9754 msgstr ""
9755
9756 #. type: =head2
9757 #: ../fish/guestfish-actions.pod:2812
9758 msgid "luks-format-cipher"
9759 msgstr ""
9760
9761 #. type: verbatim
9762 #: ../fish/guestfish-actions.pod:2814
9763 #, no-wrap
9764 msgid ""
9765 " luks-format-cipher device keyslot cipher\n"
9766 "\n"
9767 msgstr ""
9768
9769 #. type: textblock
9770 #: ../fish/guestfish-actions.pod:2816
9771 msgid ""
9772 "This command is the same as L</luks-format> but it also allows you to set "
9773 "the C<cipher> used."
9774 msgstr ""
9775
9776 #. type: =head2
9777 #: ../fish/guestfish-actions.pod:2825
9778 msgid "luks-kill-slot"
9779 msgstr ""
9780
9781 #. type: verbatim
9782 #: ../fish/guestfish-actions.pod:2827
9783 #, no-wrap
9784 msgid ""
9785 " luks-kill-slot device keyslot\n"
9786 "\n"
9787 msgstr ""
9788
9789 #. type: textblock
9790 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
9791 msgid ""
9792 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9793 "device C<device>.  C<key> must be one of the I<other> keys."
9794 msgstr ""
9795
9796 #. type: =head2
9797 #: ../fish/guestfish-actions.pod:2836
9798 msgid "luks-open"
9799 msgstr ""
9800
9801 #. type: verbatim
9802 #: ../fish/guestfish-actions.pod:2838
9803 #, no-wrap
9804 msgid ""
9805 " luks-open device mapname\n"
9806 "\n"
9807 msgstr ""
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
9811 msgid ""
9812 "This command opens a block device which has been encrypted according to the "
9813 "Linux Unified Key Setup (LUKS) standard."
9814 msgstr ""
9815
9816 #. type: textblock
9817 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
9818 msgid "C<device> is the encrypted block device or partition."
9819 msgstr ""
9820
9821 #. type: textblock
9822 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
9823 msgid ""
9824 "The caller must supply one of the keys associated with the LUKS block "
9825 "device, in the C<key> parameter."
9826 msgstr ""
9827
9828 #. type: textblock
9829 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
9830 msgid ""
9831 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9832 "writes to this block device are decrypted from and encrypted to the "
9833 "underlying C<device> respectively."
9834 msgstr ""
9835
9836 #. type: textblock
9837 #: ../fish/guestfish-actions.pod:2852
9838 msgid ""
9839 "If this block device contains LVM volume groups, then calling L</vgscan> "
9840 "followed by L</vg-activate-all> will make them visible."
9841 msgstr ""
9842
9843 #. type: textblock
9844 #: ../fish/guestfish-actions.pod:2856
9845 msgid "Use L</list-dm-devices> to list all device mapper devices."
9846 msgstr ""
9847
9848 #. type: =head2
9849 #: ../fish/guestfish-actions.pod:2862
9850 msgid "luks-open-ro"
9851 msgstr ""
9852
9853 #. type: verbatim
9854 #: ../fish/guestfish-actions.pod:2864
9855 #, no-wrap
9856 msgid ""
9857 " luks-open-ro device mapname\n"
9858 "\n"
9859 msgstr ""
9860
9861 #. type: textblock
9862 #: ../fish/guestfish-actions.pod:2866
9863 msgid ""
9864 "This is the same as L</luks-open> except that a read-only mapping is "
9865 "created."
9866 msgstr ""
9867
9868 #. type: =head2
9869 #: ../fish/guestfish-actions.pod:2872
9870 msgid "lvcreate"
9871 msgstr ""
9872
9873 #. type: verbatim
9874 #: ../fish/guestfish-actions.pod:2874
9875 #, no-wrap
9876 msgid ""
9877 " lvcreate logvol volgroup mbytes\n"
9878 "\n"
9879 msgstr ""
9880
9881 #. type: textblock
9882 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
9883 msgid ""
9884 "This creates an LVM logical volume called C<logvol> on the volume group "
9885 "C<volgroup>, with C<size> megabytes."
9886 msgstr ""
9887
9888 #. type: =head2
9889 #: ../fish/guestfish-actions.pod:2879
9890 msgid "lvm-canonical-lv-name"
9891 msgstr ""
9892
9893 #. type: verbatim
9894 #: ../fish/guestfish-actions.pod:2881
9895 #, no-wrap
9896 msgid ""
9897 " lvm-canonical-lv-name lvname\n"
9898 "\n"
9899 msgstr ""
9900
9901 #. type: textblock
9902 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
9903 msgid ""
9904 "This converts alternative naming schemes for LVs that you might find to the "
9905 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9906 "C</dev/VG/LV>."
9907 msgstr ""
9908
9909 #. type: textblock
9910 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
9911 msgid ""
9912 "This command returns an error if the C<lvname> parameter does not refer to a "
9913 "logical volume."
9914 msgstr ""
9915
9916 #. type: textblock
9917 #: ../fish/guestfish-actions.pod:2890
9918 msgid "See also L</is-lv>."
9919 msgstr ""
9920
9921 #. type: =head2
9922 #: ../fish/guestfish-actions.pod:2892
9923 msgid "lvm-clear-filter"
9924 msgstr ""
9925
9926 #. type: verbatim
9927 #: ../fish/guestfish-actions.pod:2894
9928 #, no-wrap
9929 msgid ""
9930 " lvm-clear-filter\n"
9931 "\n"
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:2896
9936 msgid ""
9937 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9938 "block device."
9939 msgstr ""
9940
9941 #. type: textblock
9942 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
9943 msgid "This command also clears the LVM cache and performs a volume group scan."
9944 msgstr ""
9945
9946 #. type: =head2
9947 #: ../fish/guestfish-actions.pod:2902
9948 msgid "lvm-remove-all"
9949 msgstr ""
9950
9951 #. type: verbatim
9952 #: ../fish/guestfish-actions.pod:2904
9953 #, no-wrap
9954 msgid ""
9955 " lvm-remove-all\n"
9956 "\n"
9957 msgstr ""
9958
9959 #. type: textblock
9960 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
9961 msgid ""
9962 "This command removes all LVM logical volumes, volume groups and physical "
9963 "volumes."
9964 msgstr ""
9965
9966 #. type: =head2
9967 #: ../fish/guestfish-actions.pod:2912
9968 msgid "lvm-set-filter"
9969 msgstr ""
9970
9971 #. type: verbatim
9972 #: ../fish/guestfish-actions.pod:2914
9973 #, no-wrap
9974 msgid ""
9975 " lvm-set-filter 'devices ...'\n"
9976 "\n"
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
9981 msgid ""
9982 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9983 "block devices in the list C<devices>, and will ignore all other attached "
9984 "block devices."
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
9989 msgid ""
9990 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9991 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9992 "there are two types of duplication possible: either cloned PVs/VGs which "
9993 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9994 "same name.  In normal operation you cannot create this situation, but you "
9995 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9996 "inside the LVM metadata."
9997 msgstr ""
9998
9999 #. type: textblock
10000 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
10001 msgid "You can filter whole block devices or individual partitions."
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
10006 msgid ""
10007 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10008 "filesystem), even if you are not filtering out that VG."
10009 msgstr ""
10010
10011 #. type: =head2
10012 #: ../fish/guestfish-actions.pod:2939
10013 msgid "lvremove"
10014 msgstr ""
10015
10016 #. type: verbatim
10017 #: ../fish/guestfish-actions.pod:2941
10018 #, no-wrap
10019 msgid ""
10020 " lvremove device\n"
10021 "\n"
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
10026 msgid ""
10027 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10028 "LV, such as C</dev/VG/LV>."
10029 msgstr ""
10030
10031 #. type: textblock
10032 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
10033 msgid ""
10034 "You can also remove all LVs in a volume group by specifying the VG name, "
10035 "C</dev/VG>."
10036 msgstr ""
10037
10038 #. type: =head2
10039 #: ../fish/guestfish-actions.pod:2949
10040 msgid "lvrename"
10041 msgstr ""
10042
10043 #. type: verbatim
10044 #: ../fish/guestfish-actions.pod:2951
10045 #, no-wrap
10046 msgid ""
10047 " lvrename logvol newlogvol\n"
10048 "\n"
10049 msgstr ""
10050
10051 #. type: textblock
10052 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
10053 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10054 msgstr ""
10055
10056 #. type: =head2
10057 #: ../fish/guestfish-actions.pod:2955
10058 msgid "lvresize"
10059 msgstr ""
10060
10061 #. type: verbatim
10062 #: ../fish/guestfish-actions.pod:2957
10063 #, no-wrap
10064 msgid ""
10065 " lvresize device mbytes\n"
10066 "\n"
10067 msgstr ""
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
10071 msgid ""
10072 "This resizes (expands or shrinks) an existing LVM logical volume to "
10073 "C<mbytes>.  When reducing, data in the reduced part is lost."
10074 msgstr ""
10075
10076 #. type: =head2
10077 #: ../fish/guestfish-actions.pod:2963
10078 msgid "lvresize-free"
10079 msgstr ""
10080
10081 #. type: verbatim
10082 #: ../fish/guestfish-actions.pod:2965
10083 #, no-wrap
10084 msgid ""
10085 " lvresize-free lv percent\n"
10086 "\n"
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
10091 msgid ""
10092 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10093 "remaining free space in the volume group.  Commonly you would call this with "
10094 "pc = 100 which expands the logical volume as much as possible, using all "
10095 "remaining free space in the volume group."
10096 msgstr ""
10097
10098 #. type: =head2
10099 #: ../fish/guestfish-actions.pod:2973
10100 msgid "lvs"
10101 msgstr ""
10102
10103 #. type: verbatim
10104 #: ../fish/guestfish-actions.pod:2975
10105 #, no-wrap
10106 msgid ""
10107 " lvs\n"
10108 "\n"
10109 msgstr ""
10110
10111 #. type: textblock
10112 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
10113 msgid ""
10114 "List all the logical volumes detected.  This is the equivalent of the "
10115 "L<lvs(8)> command."
10116 msgstr ""
10117
10118 #. type: textblock
10119 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
10120 msgid ""
10121 "This returns a list of the logical volume device names "
10122 "(eg. C</dev/VolGroup00/LogVol00>)."
10123 msgstr ""
10124
10125 #. type: textblock
10126 #: ../fish/guestfish-actions.pod:2983
10127 msgid "See also L</lvs-full>, L</list-filesystems>."
10128 msgstr ""
10129
10130 #. type: =head2
10131 #: ../fish/guestfish-actions.pod:2985
10132 msgid "lvs-full"
10133 msgstr ""
10134
10135 #. type: verbatim
10136 #: ../fish/guestfish-actions.pod:2987
10137 #, no-wrap
10138 msgid ""
10139 " lvs-full\n"
10140 "\n"
10141 msgstr ""
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
10145 msgid ""
10146 "List all the logical volumes detected.  This is the equivalent of the "
10147 "L<lvs(8)> command.  The \"full\" version includes all fields."
10148 msgstr ""
10149
10150 #. type: =head2
10151 #: ../fish/guestfish-actions.pod:2992
10152 msgid "lvuuid"
10153 msgstr ""
10154
10155 #. type: verbatim
10156 #: ../fish/guestfish-actions.pod:2994
10157 #, no-wrap
10158 msgid ""
10159 " lvuuid device\n"
10160 "\n"
10161 msgstr ""
10162
10163 #. type: textblock
10164 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
10165 msgid "This command returns the UUID of the LVM LV C<device>."
10166 msgstr ""
10167
10168 #. type: =head2
10169 #: ../fish/guestfish-actions.pod:2998
10170 msgid "lxattrlist"
10171 msgstr ""
10172
10173 #. type: verbatim
10174 #: ../fish/guestfish-actions.pod:3000
10175 #, no-wrap
10176 msgid ""
10177 " lxattrlist path 'names ...'\n"
10178 "\n"
10179 msgstr ""
10180
10181 #. type: textblock
10182 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
10183 msgid ""
10184 "This call allows you to get the extended attributes of multiple files, where "
10185 "all files are in the directory C<path>.  C<names> is the list of files from "
10186 "this directory."
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
10191 msgid ""
10192 "On return you get a flat list of xattr structs which must be interpreted "
10193 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10194 "C<attrval> in this struct is zero-length to indicate there was an error "
10195 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10196 "number (the number of following attributes for this file, which could be "
10197 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10198 "attributes for the first named file.  This repeats for the second and "
10199 "subsequent files."
10200 msgstr ""
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:3016
10204 msgid ""
10205 "This call is intended for programs that want to efficiently list a directory "
10206 "contents without making many round-trips.  See also L</lstatlist> for a "
10207 "similarly efficient call for getting standard stats.  Very long directory "
10208 "listings might cause the protocol message size to be exceeded, causing this "
10209 "call to fail.  The caller must split up such requests into smaller groups of "
10210 "names."
10211 msgstr ""
10212
10213 #. type: =head2
10214 #: ../fish/guestfish-actions.pod:3024
10215 msgid "mkdir"
10216 msgstr ""
10217
10218 #. type: verbatim
10219 #: ../fish/guestfish-actions.pod:3026
10220 #, no-wrap
10221 msgid ""
10222 " mkdir path\n"
10223 "\n"
10224 msgstr ""
10225
10226 #. type: textblock
10227 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
10228 msgid "Create a directory named C<path>."
10229 msgstr ""
10230
10231 #. type: =head2
10232 #: ../fish/guestfish-actions.pod:3030
10233 msgid "mkdir-mode"
10234 msgstr ""
10235
10236 #. type: verbatim
10237 #: ../fish/guestfish-actions.pod:3032
10238 #, no-wrap
10239 msgid ""
10240 " mkdir-mode path mode\n"
10241 "\n"
10242 msgstr ""
10243
10244 #. type: textblock
10245 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
10246 msgid ""
10247 "This command creates a directory, setting the initial permissions of the "
10248 "directory to C<mode>."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
10253 msgid ""
10254 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10255 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10256 "other ways."
10257 msgstr ""
10258
10259 #. type: textblock
10260 #: ../fish/guestfish-actions.pod:3041
10261 msgid "See also L</mkdir>, L</umask>"
10262 msgstr ""
10263
10264 #. type: =head2
10265 #: ../fish/guestfish-actions.pod:3043
10266 msgid "mkdir-p"
10267 msgstr ""
10268
10269 #. type: verbatim
10270 #: ../fish/guestfish-actions.pod:3045
10271 #, no-wrap
10272 msgid ""
10273 " mkdir-p path\n"
10274 "\n"
10275 msgstr ""
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
10279 msgid ""
10280 "Create a directory named C<path>, creating any parent directories as "
10281 "necessary.  This is like the C<mkdir -p> shell command."
10282 msgstr ""
10283
10284 #. type: =head2
10285 #: ../fish/guestfish-actions.pod:3050
10286 msgid "mkdtemp"
10287 msgstr ""
10288
10289 #. type: verbatim
10290 #: ../fish/guestfish-actions.pod:3052
10291 #, no-wrap
10292 msgid ""
10293 " mkdtemp template\n"
10294 "\n"
10295 msgstr ""
10296
10297 #. type: textblock
10298 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
10299 msgid ""
10300 "This command creates a temporary directory.  The C<template> parameter "
10301 "should be a full pathname for the temporary directory name with the final "
10302 "six characters being \"XXXXXX\"."
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
10307 msgid ""
10308 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10309 "being suitable for Windows filesystems."
10310 msgstr ""
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
10314 msgid "The name of the temporary directory that was created is returned."
10315 msgstr ""
10316
10317 #. type: textblock
10318 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
10319 msgid "The temporary directory is created with mode 0700 and is owned by root."
10320 msgstr ""
10321
10322 #. type: textblock
10323 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
10324 msgid ""
10325 "The caller is responsible for deleting the temporary directory and its "
10326 "contents after use."
10327 msgstr ""
10328
10329 #. type: textblock
10330 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
10331 msgid "See also: L<mkdtemp(3)>"
10332 msgstr ""
10333
10334 #. type: =head2
10335 #: ../fish/guestfish-actions.pod:3073
10336 msgid "mke2fs-J"
10337 msgstr ""
10338
10339 #. type: verbatim
10340 #: ../fish/guestfish-actions.pod:3075
10341 #, no-wrap
10342 msgid ""
10343 " mke2fs-J fstype blocksize device journal\n"
10344 "\n"
10345 msgstr ""
10346
10347 #. type: textblock
10348 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
10349 msgid ""
10350 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10351 "C<journal>.  It is equivalent to the command:"
10352 msgstr ""
10353
10354 #. type: verbatim
10355 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
10356 #, no-wrap
10357 msgid ""
10358 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10359 "\n"
10360 msgstr ""
10361
10362 #. type: textblock
10363 #: ../fish/guestfish-actions.pod:3083
10364 msgid "See also L</mke2journal>."
10365 msgstr ""
10366
10367 #. type: =head2
10368 #: ../fish/guestfish-actions.pod:3085
10369 msgid "mke2fs-JL"
10370 msgstr ""
10371
10372 #. type: verbatim
10373 #: ../fish/guestfish-actions.pod:3087
10374 #, no-wrap
10375 msgid ""
10376 " mke2fs-JL fstype blocksize device label\n"
10377 "\n"
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
10382 msgid ""
10383 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10384 "the journal labeled C<label>."
10385 msgstr ""
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:3092
10389 msgid "See also L</mke2journal-L>."
10390 msgstr ""
10391
10392 #. type: =head2
10393 #: ../fish/guestfish-actions.pod:3094
10394 msgid "mke2fs-JU"
10395 msgstr ""
10396
10397 #. type: verbatim
10398 #: ../fish/guestfish-actions.pod:3096
10399 #, no-wrap
10400 msgid ""
10401 " mke2fs-JU fstype blocksize device uuid\n"
10402 "\n"
10403 msgstr ""
10404
10405 #. type: textblock
10406 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
10407 msgid ""
10408 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10409 "the journal with UUID C<uuid>."
10410 msgstr ""
10411
10412 #. type: textblock
10413 #: ../fish/guestfish-actions.pod:3101
10414 msgid "See also L</mke2journal-U>."
10415 msgstr ""
10416
10417 #. type: =head2
10418 #: ../fish/guestfish-actions.pod:3103
10419 msgid "mke2journal"
10420 msgstr ""
10421
10422 #. type: verbatim
10423 #: ../fish/guestfish-actions.pod:3105
10424 #, no-wrap
10425 msgid ""
10426 " mke2journal blocksize device\n"
10427 "\n"
10428 msgstr ""
10429
10430 #. type: textblock
10431 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
10432 msgid ""
10433 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10434 "command:"
10435 msgstr ""
10436
10437 #. type: verbatim
10438 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
10439 #, no-wrap
10440 msgid ""
10441 " mke2fs -O journal_dev -b blocksize device\n"
10442 "\n"
10443 msgstr ""
10444
10445 #. type: =head2
10446 #: ../fish/guestfish-actions.pod:3112
10447 msgid "mke2journal-L"
10448 msgstr ""
10449
10450 #. type: verbatim
10451 #: ../fish/guestfish-actions.pod:3114
10452 #, no-wrap
10453 msgid ""
10454 " mke2journal-L blocksize label device\n"
10455 "\n"
10456 msgstr ""
10457
10458 #. type: textblock
10459 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
10460 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10461 msgstr ""
10462
10463 #. type: =head2
10464 #: ../fish/guestfish-actions.pod:3118
10465 msgid "mke2journal-U"
10466 msgstr ""
10467
10468 #. type: verbatim
10469 #: ../fish/guestfish-actions.pod:3120
10470 #, no-wrap
10471 msgid ""
10472 " mke2journal-U blocksize uuid device\n"
10473 "\n"
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
10478 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10479 msgstr ""
10480
10481 #. type: =head2
10482 #: ../fish/guestfish-actions.pod:3124
10483 msgid "mkfifo"
10484 msgstr ""
10485
10486 #. type: verbatim
10487 #: ../fish/guestfish-actions.pod:3126
10488 #, no-wrap
10489 msgid ""
10490 " mkfifo mode path\n"
10491 "\n"
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:3128
10496 msgid ""
10497 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10498 "is just a convenient wrapper around L</mknod>."
10499 msgstr ""
10500
10501 #. type: =head2
10502 #: ../fish/guestfish-actions.pod:3134
10503 msgid "mkfs"
10504 msgstr ""
10505
10506 #. type: verbatim
10507 #: ../fish/guestfish-actions.pod:3136
10508 #, no-wrap
10509 msgid ""
10510 " mkfs fstype device\n"
10511 "\n"
10512 msgstr ""
10513
10514 #. type: textblock
10515 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
10516 msgid ""
10517 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10518 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10519 msgstr ""
10520
10521 #. type: =head2
10522 #: ../fish/guestfish-actions.pod:3142
10523 msgid "mkfs-b"
10524 msgstr ""
10525
10526 #. type: verbatim
10527 #: ../fish/guestfish-actions.pod:3144
10528 #, no-wrap
10529 msgid ""
10530 " mkfs-b fstype blocksize device\n"
10531 "\n"
10532 msgstr ""
10533
10534 #. type: textblock
10535 #: ../fish/guestfish-actions.pod:3146
10536 msgid ""
10537 "This call is similar to L</mkfs>, but it allows you to control the block "
10538 "size of the resulting filesystem.  Supported block sizes depend on the "
10539 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10540 msgstr ""
10541
10542 #. type: textblock
10543 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
10544 msgid ""
10545 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10546 "cluster size."
10547 msgstr ""
10548
10549 #. type: textblock
10550 #: ../fish/guestfish-actions.pod:3154
10551 msgid ""
10552 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10553 "instead."
10554 msgstr ""
10555
10556 #. type: =head2
10557 #: ../fish/guestfish-actions.pod:3161
10558 msgid "mkfs-opts"
10559 msgstr ""
10560
10561 #. type: verbatim
10562 #: ../fish/guestfish-actions.pod:3163
10563 #, no-wrap
10564 msgid ""
10565 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10566 "[sectorsize:..]\n"
10567 "\n"
10568 msgstr ""
10569
10570 #. type: textblock
10571 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
10572 msgid ""
10573 "This function creates a filesystem on C<device>.  The filesystem type is "
10574 "C<fstype>, for example C<ext3>."
10575 msgstr ""
10576
10577 #. type: =item
10578 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
10579 msgid "C<blocksize>"
10580 msgstr ""
10581
10582 #. type: textblock
10583 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
10584 msgid ""
10585 "The filesystem block size.  Supported block sizes depend on the filesystem "
10586 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10587 "filesystems."
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
10592 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10593 msgstr ""
10594
10595 #. type: =item
10596 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
10597 msgid "C<features>"
10598 msgstr ""
10599
10600 #. type: textblock
10601 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
10602 msgid "This passes the I<-O> parameter to the external mkfs program."
10603 msgstr ""
10604
10605 #. type: textblock
10606 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
10607 msgid ""
10608 "For certain filesystem types, this allows extra filesystem features to be "
10609 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10610 msgstr ""
10611
10612 #. type: textblock
10613 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
10614 msgid ""
10615 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10616 "type."
10617 msgstr ""
10618
10619 #. type: =item
10620 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
10621 msgid "C<inode>"
10622 msgstr ""
10623
10624 #. type: textblock
10625 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
10626 msgid ""
10627 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10628 "sets the inode size (only for ext2/3/4 filesystems at present)."
10629 msgstr ""
10630
10631 #. type: =item
10632 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
10633 msgid "C<sectorsize>"
10634 msgstr ""
10635
10636 #. type: textblock
10637 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
10638 msgid ""
10639 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10640 "sets sector size for ufs filesystem."
10641 msgstr ""
10642
10643 #. type: =head2
10644 #: ../fish/guestfish-actions.pod:3208
10645 msgid "mkmountpoint"
10646 msgstr ""
10647
10648 #. type: verbatim
10649 #: ../fish/guestfish-actions.pod:3210
10650 #, no-wrap
10651 msgid ""
10652 " mkmountpoint exemptpath\n"
10653 "\n"
10654 msgstr ""
10655
10656 #. type: textblock
10657 #: ../fish/guestfish-actions.pod:3212
10658 msgid ""
10659 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10660 "to create extra mountpoints before mounting the first filesystem."
10661 msgstr ""
10662
10663 #. type: textblock
10664 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
10665 msgid ""
10666 "These calls are I<only> necessary in some very limited circumstances, mainly "
10667 "the case where you want to mount a mix of unrelated and/or read-only "
10668 "filesystems together."
10669 msgstr ""
10670
10671 #. type: textblock
10672 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
10673 msgid ""
10674 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10675 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10676 "inside that.  You can unpack this as follows in guestfish:"
10677 msgstr ""
10678
10679 #. type: verbatim
10680 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
10681 #, no-wrap
10682 msgid ""
10683 " add-ro Fedora-11-i686-Live.iso\n"
10684 " run\n"
10685 " mkmountpoint /cd\n"
10686 " mkmountpoint /sqsh\n"
10687 " mkmountpoint /ext3fs\n"
10688 " mount /dev/sda /cd\n"
10689 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10690 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10691 "\n"
10692 msgstr ""
10693
10694 #. type: textblock
10695 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
10696 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:3236
10701 msgid ""
10702 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10703 "unexpected errors if you try to mix these calls.  It is safest to manually "
10704 "unmount filesystems and remove mountpoints after use."
10705 msgstr ""
10706
10707 #. type: textblock
10708 #: ../fish/guestfish-actions.pod:3240
10709 msgid ""
10710 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10711 "for this to work for manual mountpoints, you must ensure that the innermost "
10712 "mountpoints have the longest pathnames, as in the example code above."
10713 msgstr ""
10714
10715 #. type: textblock
10716 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
10717 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:3247
10722 msgid ""
10723 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10724 "L</umount-all> to be called when the handle is closed which can also trigger "
10725 "these issues."
10726 msgstr ""
10727
10728 #. type: =head2
10729 #: ../fish/guestfish-actions.pod:3251
10730 msgid "mknod"
10731 msgstr ""
10732
10733 #. type: verbatim
10734 #: ../fish/guestfish-actions.pod:3253
10735 #, no-wrap
10736 msgid ""
10737 " mknod mode devmajor devminor path\n"
10738 "\n"
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
10743 msgid ""
10744 "This call creates block or character special devices, or named pipes "
10745 "(FIFOs)."
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
10750 msgid ""
10751 "The C<mode> parameter should be the mode, using the standard constants.  "
10752 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10753 "used when creating block and character special devices."
10754 msgstr ""
10755
10756 #. type: textblock
10757 #: ../fish/guestfish-actions.pod:3263
10758 msgid ""
10759 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10760 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10761 "regular file).  These constants are available in the standard Linux header "
10762 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10763 "wrappers around this command which bitwise OR in the appropriate constant "
10764 "for you."
10765 msgstr ""
10766
10767 #. type: =head2
10768 #: ../fish/guestfish-actions.pod:3273
10769 msgid "mknod-b"
10770 msgstr ""
10771
10772 #. type: verbatim
10773 #: ../fish/guestfish-actions.pod:3275
10774 #, no-wrap
10775 msgid ""
10776 " mknod-b mode devmajor devminor path\n"
10777 "\n"
10778 msgstr ""
10779
10780 #. type: textblock
10781 #: ../fish/guestfish-actions.pod:3277
10782 msgid ""
10783 "This call creates a block device node called C<path> with mode C<mode> and "
10784 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10785 "wrapper around L</mknod>."
10786 msgstr ""
10787
10788 #. type: =head2
10789 #: ../fish/guestfish-actions.pod:3283
10790 msgid "mknod-c"
10791 msgstr ""
10792
10793 #. type: verbatim
10794 #: ../fish/guestfish-actions.pod:3285
10795 #, no-wrap
10796 msgid ""
10797 " mknod-c mode devmajor devminor path\n"
10798 "\n"
10799 msgstr ""
10800
10801 #. type: textblock
10802 #: ../fish/guestfish-actions.pod:3287
10803 msgid ""
10804 "This call creates a char device node called C<path> with mode C<mode> and "
10805 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10806 "wrapper around L</mknod>."
10807 msgstr ""
10808
10809 #. type: =head2
10810 #: ../fish/guestfish-actions.pod:3293
10811 msgid "mkswap"
10812 msgstr ""
10813
10814 #. type: verbatim
10815 #: ../fish/guestfish-actions.pod:3295
10816 #, no-wrap
10817 msgid ""
10818 " mkswap device\n"
10819 "\n"
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
10824 msgid "Create a swap partition on C<device>."
10825 msgstr ""
10826
10827 #. type: =head2
10828 #: ../fish/guestfish-actions.pod:3299
10829 msgid "mkswap-L"
10830 msgstr ""
10831
10832 #. type: verbatim
10833 #: ../fish/guestfish-actions.pod:3301
10834 #, no-wrap
10835 msgid ""
10836 " mkswap-L label device\n"
10837 "\n"
10838 msgstr ""
10839
10840 #. type: textblock
10841 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
10842 msgid "Create a swap partition on C<device> with label C<label>."
10843 msgstr ""
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
10847 msgid ""
10848 "Note that you cannot attach a swap label to a block device "
10849 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10850 "the kernel or swap tools."
10851 msgstr ""
10852
10853 #. type: =head2
10854 #: ../fish/guestfish-actions.pod:3309
10855 msgid "mkswap-U"
10856 msgstr ""
10857
10858 #. type: verbatim
10859 #: ../fish/guestfish-actions.pod:3311
10860 #, no-wrap
10861 msgid ""
10862 " mkswap-U uuid device\n"
10863 "\n"
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
10868 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10869 msgstr ""
10870
10871 #. type: =head2
10872 #: ../fish/guestfish-actions.pod:3315
10873 msgid "mkswap-file"
10874 msgstr ""
10875
10876 #. type: verbatim
10877 #: ../fish/guestfish-actions.pod:3317
10878 #, no-wrap
10879 msgid ""
10880 " mkswap-file path\n"
10881 "\n"
10882 msgstr ""
10883
10884 #. type: textblock
10885 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
10886 msgid "Create a swap file."
10887 msgstr ""
10888
10889 #. type: textblock
10890 #: ../fish/guestfish-actions.pod:3321
10891 msgid ""
10892 "This command just writes a swap file signature to an existing file.  To "
10893 "create the file itself, use something like L</fallocate>."
10894 msgstr ""
10895
10896 #. type: =head2
10897 #: ../fish/guestfish-actions.pod:3324
10898 msgid "modprobe"
10899 msgstr ""
10900
10901 #. type: verbatim
10902 #: ../fish/guestfish-actions.pod:3326
10903 #, no-wrap
10904 msgid ""
10905 " modprobe modulename\n"
10906 "\n"
10907 msgstr ""
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
10911 msgid "This loads a kernel module in the appliance."
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
10916 msgid ""
10917 "The kernel module must have been whitelisted when libguestfs was built (see "
10918 "C<appliance/kmod.whitelist.in> in the source)."
10919 msgstr ""
10920
10921 #. type: =head2
10922 #: ../fish/guestfish-actions.pod:3333
10923 msgid "mount"
10924 msgstr ""
10925
10926 #. type: verbatim
10927 #: ../fish/guestfish-actions.pod:3335
10928 #, no-wrap
10929 msgid ""
10930 " mount device mountpoint\n"
10931 "\n"
10932 msgstr ""
10933
10934 #. type: textblock
10935 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5065
10936 msgid ""
10937 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10938 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10939 "those block devices contain partitions, they will have the usual names "
10940 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10941 msgstr ""
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5071
10945 msgid ""
10946 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10947 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10948 "mounted on directories which already exist."
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
10953 msgid ""
10954 "The mounted filesystem is writable, if we have sufficient permissions on the "
10955 "underlying device."
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:3351
10960 msgid ""
10961 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
10962 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
10963 "problems for users.  If your program might need to work with older versions "
10964 "of libguestfs, use L</mount-options> instead (using an empty string for the "
10965 "first parameter if you don't want any options)."
10966 msgstr ""
10967
10968 #. type: =head2
10969 #: ../fish/guestfish-actions.pod:3358
10970 msgid "mount-9p"
10971 msgstr ""
10972
10973 #. type: verbatim
10974 #: ../fish/guestfish-actions.pod:3360
10975 #, no-wrap
10976 msgid ""
10977 " mount-9p mounttag mountpoint [options:..]\n"
10978 "\n"
10979 msgstr ""
10980
10981 #. type: textblock
10982 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5105
10983 msgid ""
10984 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10985 "C<mountpoint>."
10986 msgstr ""
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5108
10990 msgid ""
10991 "If required, C<trans=virtio> will be automatically added to the options.  "
10992 "Any other options required can be passed in the optional C<options> "
10993 "parameter."
10994 msgstr ""
10995
10996 #. type: =head2
10997 #: ../fish/guestfish-actions.pod:3371
10998 msgid "mount-loop"
10999 msgstr ""
11000
11001 #. type: verbatim
11002 #: ../fish/guestfish-actions.pod:3373
11003 #, no-wrap
11004 msgid ""
11005 " mount-loop file mountpoint\n"
11006 "\n"
11007 msgstr ""
11008
11009 #. type: textblock
11010 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5147
11011 msgid ""
11012 "This command lets you mount C<file> (a filesystem image in a file) on a "
11013 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11014 "mountpoint>."
11015 msgstr ""
11016
11017 #. type: =head2
11018 #: ../fish/guestfish-actions.pod:3379
11019 msgid "mount-options"
11020 msgstr ""
11021
11022 #. type: verbatim
11023 #: ../fish/guestfish-actions.pod:3381
11024 #, no-wrap
11025 msgid ""
11026 " mount-options options device mountpoint\n"
11027 "\n"
11028 msgstr ""
11029
11030 #. type: textblock
11031 #: ../fish/guestfish-actions.pod:3383
11032 msgid ""
11033 "This is the same as the L</mount> command, but it allows you to set the "
11034 "mount options as for the L<mount(8)> I<-o> flag."
11035 msgstr ""
11036
11037 #. type: textblock
11038 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5167
11039 msgid ""
11040 "If the C<options> parameter is an empty string, then no options are passed "
11041 "(all options default to whatever the filesystem uses)."
11042 msgstr ""
11043
11044 #. type: =head2
11045 #: ../fish/guestfish-actions.pod:3391
11046 msgid "mount-ro"
11047 msgstr ""
11048
11049 #. type: verbatim
11050 #: ../fish/guestfish-actions.pod:3393
11051 #, no-wrap
11052 msgid ""
11053 " mount-ro device mountpoint\n"
11054 "\n"
11055 msgstr ""
11056
11057 #. type: textblock
11058 #: ../fish/guestfish-actions.pod:3395
11059 msgid ""
11060 "This is the same as the L</mount> command, but it mounts the filesystem with "
11061 "the read-only (I<-o ro>) flag."
11062 msgstr ""
11063
11064 #. type: =head2
11065 #: ../fish/guestfish-actions.pod:3398
11066 msgid "mount-vfs"
11067 msgstr ""
11068
11069 #. type: verbatim
11070 #: ../fish/guestfish-actions.pod:3400
11071 #, no-wrap
11072 msgid ""
11073 " mount-vfs options vfstype device mountpoint\n"
11074 "\n"
11075 msgstr ""
11076
11077 #. type: textblock
11078 #: ../fish/guestfish-actions.pod:3402
11079 msgid ""
11080 "This is the same as the L</mount> command, but it allows you to set both the "
11081 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11082 msgstr ""
11083
11084 #. type: =head2
11085 #: ../fish/guestfish-actions.pod:3406
11086 msgid "mountpoints"
11087 msgstr ""
11088
11089 #. type: verbatim
11090 #: ../fish/guestfish-actions.pod:3408
11091 #, no-wrap
11092 msgid ""
11093 " mountpoints\n"
11094 "\n"
11095 msgstr ""
11096
11097 #. type: textblock
11098 #: ../fish/guestfish-actions.pod:3410
11099 msgid ""
11100 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11101 "This one returns a hash table (map) of device name to directory where the "
11102 "device is mounted."
11103 msgstr ""
11104
11105 #. type: =head2
11106 #: ../fish/guestfish-actions.pod:3414
11107 msgid "mounts"
11108 msgstr ""
11109
11110 #. type: verbatim
11111 #: ../fish/guestfish-actions.pod:3416
11112 #, no-wrap
11113 msgid ""
11114 " mounts\n"
11115 "\n"
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5228
11120 msgid ""
11121 "This returns the list of currently mounted filesystems.  It returns the list "
11122 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11123 msgstr ""
11124
11125 #. type: textblock
11126 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5231
11127 msgid "Some internal mounts are not shown."
11128 msgstr ""
11129
11130 #. type: textblock
11131 #: ../fish/guestfish-actions.pod:3423
11132 msgid "See also: L</mountpoints>"
11133 msgstr ""
11134
11135 #. type: =head2
11136 #: ../fish/guestfish-actions.pod:3425
11137 msgid "mv"
11138 msgstr ""
11139
11140 #. type: verbatim
11141 #: ../fish/guestfish-actions.pod:3427
11142 #, no-wrap
11143 msgid ""
11144 " mv src dest\n"
11145 "\n"
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5248
11150 msgid ""
11151 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11152 "destination filename or destination directory."
11153 msgstr ""
11154
11155 #. type: =head2
11156 #: ../fish/guestfish-actions.pod:3432
11157 msgid "ntfs-3g-probe"
11158 msgstr ""
11159
11160 #. type: verbatim
11161 #: ../fish/guestfish-actions.pod:3434
11162 #, no-wrap
11163 msgid ""
11164 " ntfs-3g-probe true|false device\n"
11165 "\n"
11166 msgstr ""
11167
11168 #. type: textblock
11169 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5262
11170 msgid ""
11171 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11172 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11173 "read-write, and some cannot be mounted at all)."
11174 msgstr ""
11175
11176 #. type: textblock
11177 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5266
11178 msgid ""
11179 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11180 "can be mounted read-write.  Set it to false if you want to test if the "
11181 "volume can be mounted read-only."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5270
11186 msgid ""
11187 "The return value is an integer which C<0> if the operation would succeed, or "
11188 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11189 msgstr ""
11190
11191 #. type: =head2
11192 #: ../fish/guestfish-actions.pod:3448
11193 msgid "ntfsresize"
11194 msgstr ""
11195
11196 #. type: verbatim
11197 #: ../fish/guestfish-actions.pod:3450
11198 #, no-wrap
11199 msgid ""
11200 " ntfsresize device\n"
11201 "\n"
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476 ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5323
11206 msgid ""
11207 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11208 "size of the underlying device."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5294
11213 msgid ""
11214 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11215 "consistency check (for safety).  You have to boot into Windows to perform "
11216 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11217 "resize filesystems which have been marked in this way.  So in effect it is "
11218 "not possible to call ntfsresize multiple times on a single filesystem "
11219 "without booting into Windows between each resize."
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502 ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5349
11224 msgid "See also L<ntfsresize(8)>."
11225 msgstr ""
11226
11227 #. type: textblock
11228 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
11229 msgid ""
11230 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11231 "call instead."
11232 msgstr ""
11233
11234 #. type: =head2
11235 #: ../fish/guestfish-actions.pod:3472
11236 msgid "ntfsresize-opts"
11237 msgstr ""
11238
11239 #. type: verbatim
11240 #: ../fish/guestfish-actions.pod:3474
11241 #, no-wrap
11242 msgid ""
11243 " ntfsresize-opts device [size:..] [force:..]\n"
11244 "\n"
11245 msgstr ""
11246
11247 #. type: textblock
11248 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5332
11249 msgid ""
11250 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11251 "resized to fit the container (eg. partition)."
11252 msgstr ""
11253
11254 #. type: =item
11255 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5335
11256 msgid "C<force>"
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5337
11261 msgid ""
11262 "If this option is true, then force the resize of the filesystem even if the "
11263 "filesystem is marked as requiring a consistency check."
11264 msgstr ""
11265
11266 #. type: textblock
11267 #: ../fish/guestfish-actions.pod:3493
11268 msgid ""
11269 "After the resize operation, the filesystem is always marked as requiring a "
11270 "consistency check (for safety).  You have to boot into Windows to perform "
11271 "this check and clear this condition.  If you I<don't> set the C<force> "
11272 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11273 "a single filesystem without booting into Windows between each resize."
11274 msgstr ""
11275
11276 #. type: =head2
11277 #: ../fish/guestfish-actions.pod:3506
11278 msgid "ntfsresize-size"
11279 msgstr ""
11280
11281 #. type: verbatim
11282 #: ../fish/guestfish-actions.pod:3508
11283 #, no-wrap
11284 msgid ""
11285 " ntfsresize-size device size\n"
11286 "\n"
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:3510
11291 msgid ""
11292 "This command is the same as L</ntfsresize> except that it allows you to "
11293 "specify the new size (in bytes) explicitly."
11294 msgstr ""
11295
11296 #. type: =head2
11297 #: ../fish/guestfish-actions.pod:3520
11298 msgid "part-add"
11299 msgstr ""
11300
11301 #. type: verbatim
11302 #: ../fish/guestfish-actions.pod:3522
11303 #, no-wrap
11304 msgid ""
11305 " part-add device prlogex startsect endsect\n"
11306 "\n"
11307 msgstr ""
11308
11309 #. type: textblock
11310 #: ../fish/guestfish-actions.pod:3524
11311 msgid ""
11312 "This command adds a partition to C<device>.  If there is no partition table "
11313 "on the device, call L</part-init> first."
11314 msgstr ""
11315
11316 #. type: textblock
11317 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5410
11318 msgid ""
11319 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11320 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11321 "C<logical>) and C<e> (or C<extended>) partition types."
11322 msgstr ""
11323
11324 #. type: textblock
11325 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5415
11326 msgid ""
11327 "C<startsect> and C<endsect> are the start and end of the partition in "
11328 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11329 "from the end of the disk (C<-1> is the last sector)."
11330 msgstr ""
11331
11332 #. type: textblock
11333 #: ../fish/guestfish-actions.pod:3536
11334 msgid ""
11335 "Creating a partition which covers the whole disk is not so easy.  Use "
11336 "L</part-disk> to do that."
11337 msgstr ""
11338
11339 #. type: =head2
11340 #: ../fish/guestfish-actions.pod:3539
11341 msgid "part-del"
11342 msgstr ""
11343
11344 #. type: verbatim
11345 #: ../fish/guestfish-actions.pod:3541
11346 #, no-wrap
11347 msgid ""
11348 " part-del device partnum\n"
11349 "\n"
11350 msgstr ""
11351
11352 #. type: textblock
11353 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5433
11354 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11355 msgstr ""
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
11359 msgid ""
11360 "Note that in the case of MBR partitioning, deleting an extended partition "
11361 "also deletes any logical partitions it contains."
11362 msgstr ""
11363
11364 #. type: =head2
11365 #: ../fish/guestfish-actions.pod:3549
11366 msgid "part-disk"
11367 msgstr ""
11368
11369 #. type: verbatim
11370 #: ../fish/guestfish-actions.pod:3551
11371 #, no-wrap
11372 msgid ""
11373 " part-disk device parttype\n"
11374 "\n"
11375 msgstr ""
11376
11377 #. type: textblock
11378 #: ../fish/guestfish-actions.pod:3553
11379 msgid ""
11380 "This command is simply a combination of L</part-init> followed by "
11381 "L</part-add> to create a single primary partition covering the whole disk."
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3557
11386 msgid ""
11387 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11388 "possible values are described in L</part-init>."
11389 msgstr ""
11390
11391 #. type: =head2
11392 #: ../fish/guestfish-actions.pod:3563
11393 msgid "part-get-bootable"
11394 msgstr ""
11395
11396 #. type: verbatim
11397 #: ../fish/guestfish-actions.pod:3565
11398 #, no-wrap
11399 msgid ""
11400 " part-get-bootable device partnum\n"
11401 "\n"
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5471
11406 msgid ""
11407 "This command returns true if the partition C<partnum> on C<device> has the "
11408 "bootable flag set."
11409 msgstr ""
11410
11411 #. type: textblock
11412 #: ../fish/guestfish-actions.pod:3570
11413 msgid "See also L</part-set-bootable>."
11414 msgstr ""
11415
11416 #. type: =head2
11417 #: ../fish/guestfish-actions.pod:3572
11418 msgid "part-get-mbr-id"
11419 msgstr ""
11420
11421 #. type: verbatim
11422 #: ../fish/guestfish-actions.pod:3574
11423 #, no-wrap
11424 msgid ""
11425 " part-get-mbr-id device partnum\n"
11426 "\n"
11427 msgstr ""
11428
11429 #. type: textblock
11430 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5487
11431 msgid ""
11432 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11433 "partition C<partnum>."
11434 msgstr ""
11435
11436 #. type: textblock
11437 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
11438 msgid ""
11439 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11440 "undefined results for other partition table types (see "
11441 "L</part-get-parttype>)."
11442 msgstr ""
11443
11444 #. type: =head2
11445 #: ../fish/guestfish-actions.pod:3583
11446 msgid "part-get-parttype"
11447 msgstr ""
11448
11449 #. type: verbatim
11450 #: ../fish/guestfish-actions.pod:3585
11451 #, no-wrap
11452 msgid ""
11453 " part-get-parttype device\n"
11454 "\n"
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5504
11459 msgid ""
11460 "This command examines the partition table on C<device> and returns the "
11461 "partition table type (format) being used."
11462 msgstr ""
11463
11464 #. type: textblock
11465 #: ../fish/guestfish-actions.pod:3590
11466 msgid ""
11467 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11468 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11469 "possible, although unusual.  See L</part-init> for a full list."
11470 msgstr ""
11471
11472 #. type: =head2
11473 #: ../fish/guestfish-actions.pod:3595
11474 msgid "part-init"
11475 msgstr ""
11476
11477 #. type: verbatim
11478 #: ../fish/guestfish-actions.pod:3597
11479 #, no-wrap
11480 msgid ""
11481 " part-init device parttype\n"
11482 "\n"
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5524
11487 msgid ""
11488 "This creates an empty partition table on C<device> of one of the partition "
11489 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11490 "(for large disks)."
11491 msgstr ""
11492
11493 #. type: textblock
11494 #: ../fish/guestfish-actions.pod:3603
11495 msgid ""
11496 "Initially there are no partitions.  Following this, you should call "
11497 "L</part-add> for each partition required."
11498 msgstr ""
11499
11500 #. type: textblock
11501 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5531
11502 msgid "Possible values for C<parttype> are:"
11503 msgstr ""
11504
11505 #. type: =item
11506 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5535
11507 msgid "B<efi>"
11508 msgstr ""
11509
11510 #. type: =item
11511 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5537
11512 msgid "B<gpt>"
11513 msgstr ""
11514
11515 #. type: textblock
11516 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5539
11517 msgid "Intel EFI / GPT partition table."
11518 msgstr ""
11519
11520 #. type: textblock
11521 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
11522 msgid ""
11523 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11524 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11525 "the C<mbr> format."
11526 msgstr ""
11527
11528 #. type: =item
11529 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
11530 msgid "B<mbr>"
11531 msgstr ""
11532
11533 #. type: =item
11534 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
11535 msgid "B<msdos>"
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
11540 msgid ""
11541 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11542 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11543 "TB.  For large disks we recommend using C<gpt>."
11544 msgstr ""
11545
11546 #. type: textblock
11547 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5556
11548 msgid "Other partition table types that may work but are not supported include:"
11549 msgstr ""
11550
11551 #. type: =item
11552 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5561
11553 msgid "B<aix>"
11554 msgstr ""
11555
11556 #. type: textblock
11557 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5563
11558 msgid "AIX disk labels."
11559 msgstr ""
11560
11561 #. type: =item
11562 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5565
11563 msgid "B<amiga>"
11564 msgstr ""
11565
11566 #. type: =item
11567 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5567
11568 msgid "B<rdb>"
11569 msgstr ""
11570
11571 #. type: textblock
11572 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5569
11573 msgid "Amiga \"Rigid Disk Block\" format."
11574 msgstr ""
11575
11576 #. type: =item
11577 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
11578 msgid "B<bsd>"
11579 msgstr ""
11580
11581 #. type: textblock
11582 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
11583 msgid "BSD disk labels."
11584 msgstr ""
11585
11586 #. type: =item
11587 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
11588 msgid "B<dasd>"
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
11593 msgid "DASD, used on IBM mainframes."
11594 msgstr ""
11595
11596 #. type: =item
11597 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
11598 msgid "B<dvh>"
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
11603 msgid "MIPS/SGI volumes."
11604 msgstr ""
11605
11606 #. type: =item
11607 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
11608 msgid "B<mac>"
11609 msgstr ""
11610
11611 #. type: textblock
11612 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
11613 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11614 msgstr ""
11615
11616 #. type: =item
11617 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
11618 msgid "B<pc98>"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
11623 msgid "NEC PC-98 format, common in Japan apparently."
11624 msgstr ""
11625
11626 #. type: =item
11627 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
11628 msgid "B<sun>"
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
11633 msgid "Sun disk labels."
11634 msgstr ""
11635
11636 #. type: =head2
11637 #: ../fish/guestfish-actions.pod:3672
11638 msgid "part-list"
11639 msgstr ""
11640
11641 #. type: verbatim
11642 #: ../fish/guestfish-actions.pod:3674
11643 #, no-wrap
11644 msgid ""
11645 " part-list device\n"
11646 "\n"
11647 msgstr ""
11648
11649 #. type: textblock
11650 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5607
11651 msgid ""
11652 "This command parses the partition table on C<device> and returns the list of "
11653 "partitions found."
11654 msgstr ""
11655
11656 #. type: textblock
11657 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
11658 msgid "The fields in the returned structure are:"
11659 msgstr ""
11660
11661 #. type: =item
11662 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5614
11663 msgid "B<part_num>"
11664 msgstr ""
11665
11666 #. type: textblock
11667 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5616
11668 msgid "Partition number, counting from 1."
11669 msgstr ""
11670
11671 #. type: =item
11672 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5618
11673 msgid "B<part_start>"
11674 msgstr ""
11675
11676 #. type: textblock
11677 #: ../fish/guestfish-actions.pod:3689
11678 msgid ""
11679 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11680 "the device's sector size, see L</blockdev-getss>."
11681 msgstr ""
11682
11683 #. type: =item
11684 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5623
11685 msgid "B<part_end>"
11686 msgstr ""
11687
11688 #. type: textblock
11689 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5625
11690 msgid "End of the partition in bytes."
11691 msgstr ""
11692
11693 #. type: =item
11694 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5627
11695 msgid "B<part_size>"
11696 msgstr ""
11697
11698 #. type: textblock
11699 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5629
11700 msgid "Size of the partition in bytes."
11701 msgstr ""
11702
11703 #. type: =head2
11704 #: ../fish/guestfish-actions.pod:3702
11705 msgid "part-set-bootable"
11706 msgstr ""
11707
11708 #. type: verbatim
11709 #: ../fish/guestfish-actions.pod:3704
11710 #, no-wrap
11711 msgid ""
11712 " part-set-bootable device partnum true|false\n"
11713 "\n"
11714 msgstr ""
11715
11716 #. type: textblock
11717 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5647
11718 msgid ""
11719 "This sets the bootable flag on partition numbered C<partnum> on device "
11720 "C<device>.  Note that partitions are numbered from 1."
11721 msgstr ""
11722
11723 #. type: textblock
11724 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5650
11725 msgid ""
11726 "The bootable flag is used by some operating systems (notably Windows) to "
11727 "determine which partition to boot from.  It is by no means universally "
11728 "recognized."
11729 msgstr ""
11730
11731 #. type: =head2
11732 #: ../fish/guestfish-actions.pod:3713
11733 msgid "part-set-mbr-id"
11734 msgstr ""
11735
11736 #. type: verbatim
11737 #: ../fish/guestfish-actions.pod:3715
11738 #, no-wrap
11739 msgid ""
11740 " part-set-mbr-id device partnum idbyte\n"
11741 "\n"
11742 msgstr ""
11743
11744 #. type: textblock
11745 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5666
11746 msgid ""
11747 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11748 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11749 "documentation are in fact hexadecimal numbers, but usually documented "
11750 "without any leading \"0x\" which might be confusing."
11751 msgstr ""
11752
11753 #. type: =head2
11754 #: ../fish/guestfish-actions.pod:3727
11755 msgid "part-set-name"
11756 msgstr ""
11757
11758 #. type: verbatim
11759 #: ../fish/guestfish-actions.pod:3729
11760 #, no-wrap
11761 msgid ""
11762 " part-set-name device partnum name\n"
11763 "\n"
11764 msgstr ""
11765
11766 #. type: textblock
11767 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5688
11768 msgid ""
11769 "This sets the partition name on partition numbered C<partnum> on device "
11770 "C<device>.  Note that partitions are numbered from 1."
11771 msgstr ""
11772
11773 #. type: textblock
11774 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5691
11775 msgid ""
11776 "The partition name can only be set on certain types of partition table.  "
11777 "This works on C<gpt> but not on C<mbr> partitions."
11778 msgstr ""
11779
11780 #. type: =head2
11781 #: ../fish/guestfish-actions.pod:3737
11782 msgid "part-to-dev"
11783 msgstr ""
11784
11785 #. type: verbatim
11786 #: ../fish/guestfish-actions.pod:3739
11787 #, no-wrap
11788 msgid ""
11789 " part-to-dev partition\n"
11790 "\n"
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5704
11795 msgid ""
11796 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11797 "partition number, returning the device name (eg. \"/dev/sdb\")."
11798 msgstr ""
11799
11800 #. type: textblock
11801 #: ../fish/guestfish-actions.pod:3745
11802 msgid ""
11803 "The named partition must exist, for example as a string returned from "
11804 "L</list-partitions>."
11805 msgstr ""
11806
11807 #. type: =head2
11808 #: ../fish/guestfish-actions.pod:3748
11809 msgid "ping-daemon"
11810 msgstr ""
11811
11812 #. type: verbatim
11813 #: ../fish/guestfish-actions.pod:3750
11814 #, no-wrap
11815 msgid ""
11816 " ping-daemon\n"
11817 "\n"
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5721
11822 msgid ""
11823 "This is a test probe into the guestfs daemon running inside the qemu "
11824 "subprocess.  Calling this function checks that the daemon responds to the "
11825 "ping message, without affecting the daemon or attached block device(s) in "
11826 "any other way."
11827 msgstr ""
11828
11829 #. type: =head2
11830 #: ../fish/guestfish-actions.pod:3757
11831 msgid "pread"
11832 msgstr ""
11833
11834 #. type: verbatim
11835 #: ../fish/guestfish-actions.pod:3759
11836 #, no-wrap
11837 msgid ""
11838 " pread path count offset\n"
11839 "\n"
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5739
11844 msgid ""
11845 "This command lets you read part of a file.  It reads C<count> bytes of the "
11846 "file, starting at C<offset>, from file C<path>."
11847 msgstr ""
11848
11849 #. type: textblock
11850 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:5768
11851 msgid ""
11852 "This may read fewer bytes than requested.  For further details see the "
11853 "L<pread(2)> system call."
11854 msgstr ""
11855
11856 #. type: textblock
11857 #: ../fish/guestfish-actions.pod:3767
11858 msgid "See also L</pwrite>, L</pread-device>."
11859 msgstr ""
11860
11861 #. type: =head2
11862 #: ../fish/guestfish-actions.pod:3772
11863 msgid "pread-device"
11864 msgstr ""
11865
11866 #. type: verbatim
11867 #: ../fish/guestfish-actions.pod:3774
11868 #, no-wrap
11869 msgid ""
11870 " pread-device device count offset\n"
11871 "\n"
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5765
11876 msgid ""
11877 "This command lets you read part of a file.  It reads C<count> bytes of "
11878 "C<device>, starting at C<offset>."
11879 msgstr ""
11880
11881 #. type: textblock
11882 #: ../fish/guestfish-actions.pod:3782
11883 msgid "See also L</pread>."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:3787
11888 msgid "pvcreate"
11889 msgstr ""
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:3789
11893 #, no-wrap
11894 msgid ""
11895 " pvcreate device\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5788
11901 msgid ""
11902 "This creates an LVM physical volume on the named C<device>, where C<device> "
11903 "should usually be a partition name such as C</dev/sda1>."
11904 msgstr ""
11905
11906 #. type: =head2
11907 #: ../fish/guestfish-actions.pod:3795
11908 msgid "pvremove"
11909 msgstr ""
11910
11911 #. type: verbatim
11912 #: ../fish/guestfish-actions.pod:3797
11913 #, no-wrap
11914 msgid ""
11915 " pvremove device\n"
11916 "\n"
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5802
11921 msgid ""
11922 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11923 "it."
11924 msgstr ""
11925
11926 #. type: textblock
11927 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5805
11928 msgid ""
11929 "The implementation uses the C<pvremove> command which refuses to wipe "
11930 "physical volumes that contain any volume groups, so you have to remove those "
11931 "first."
11932 msgstr ""
11933
11934 #. type: =head2
11935 #: ../fish/guestfish-actions.pod:3806
11936 msgid "pvresize"
11937 msgstr ""
11938
11939 #. type: verbatim
11940 #: ../fish/guestfish-actions.pod:3808
11941 #, no-wrap
11942 msgid ""
11943 " pvresize device\n"
11944 "\n"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5819
11949 msgid ""
11950 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11951 "the new size of the underlying device."
11952 msgstr ""
11953
11954 #. type: =head2
11955 #: ../fish/guestfish-actions.pod:3813
11956 msgid "pvresize-size"
11957 msgstr ""
11958
11959 #. type: verbatim
11960 #: ../fish/guestfish-actions.pod:3815
11961 #, no-wrap
11962 msgid ""
11963 " pvresize-size device size\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:3817
11969 msgid ""
11970 "This command is the same as L</pvresize> except that it allows you to "
11971 "specify the new size (in bytes) explicitly."
11972 msgstr ""
11973
11974 #. type: =head2
11975 #: ../fish/guestfish-actions.pod:3820
11976 msgid "pvs"
11977 msgstr ""
11978
11979 #. type: verbatim
11980 #: ../fish/guestfish-actions.pod:3822
11981 #, no-wrap
11982 msgid ""
11983 " pvs\n"
11984 "\n"
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5845
11989 msgid ""
11990 "List all the physical volumes detected.  This is the equivalent of the "
11991 "L<pvs(8)> command."
11992 msgstr ""
11993
11994 #. type: textblock
11995 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5848
11996 msgid ""
11997 "This returns a list of just the device names that contain PVs "
11998 "(eg. C</dev/sda2>)."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:3830
12003 msgid "See also L</pvs-full>."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../fish/guestfish-actions.pod:3832
12008 msgid "pvs-full"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../fish/guestfish-actions.pod:3834
12013 #, no-wrap
12014 msgid ""
12015 " pvs-full\n"
12016 "\n"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5864
12021 msgid ""
12022 "List all the physical volumes detected.  This is the equivalent of the "
12023 "L<pvs(8)> command.  The \"full\" version includes all fields."
12024 msgstr ""
12025
12026 #. type: =head2
12027 #: ../fish/guestfish-actions.pod:3839
12028 msgid "pvuuid"
12029 msgstr ""
12030
12031 #. type: verbatim
12032 #: ../fish/guestfish-actions.pod:3841
12033 #, no-wrap
12034 msgid ""
12035 " pvuuid device\n"
12036 "\n"
12037 msgstr ""
12038
12039 #. type: textblock
12040 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5879
12041 msgid "This command returns the UUID of the LVM PV C<device>."
12042 msgstr ""
12043
12044 #. type: =head2
12045 #: ../fish/guestfish-actions.pod:3845
12046 msgid "pwrite"
12047 msgstr ""
12048
12049 #. type: verbatim
12050 #: ../fish/guestfish-actions.pod:3847
12051 #, no-wrap
12052 msgid ""
12053 " pwrite path content offset\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5895
12059 msgid ""
12060 "This command writes to part of a file.  It writes the data buffer C<content> "
12061 "to the file C<path> starting at offset C<offset>."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5898
12066 msgid ""
12067 "This command implements the L<pwrite(2)> system call, and like that system "
12068 "call it may not write the full data requested.  The return value is the "
12069 "number of bytes that were actually written to the file.  This could even be "
12070 "0, although short writes are unlikely for regular files in ordinary "
12071 "circumstances."
12072 msgstr ""
12073
12074 #. type: textblock
12075 #: ../fish/guestfish-actions.pod:3858
12076 msgid "See also L</pread>, L</pwrite-device>."
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../fish/guestfish-actions.pod:3863
12081 msgid "pwrite-device"
12082 msgstr ""
12083
12084 #. type: verbatim
12085 #: ../fish/guestfish-actions.pod:3865
12086 #, no-wrap
12087 msgid ""
12088 " pwrite-device device content offset\n"
12089 "\n"
12090 msgstr ""
12091
12092 #. type: textblock
12093 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5922
12094 msgid ""
12095 "This command writes to part of a device.  It writes the data buffer "
12096 "C<content> to C<device> starting at offset C<offset>."
12097 msgstr ""
12098
12099 #. type: textblock
12100 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5925
12101 msgid ""
12102 "This command implements the L<pwrite(2)> system call, and like that system "
12103 "call it may not write the full data requested (although short writes to disk "
12104 "devices and partitions are probably impossible with standard Linux kernels)."
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:3875
12109 msgid "See also L</pwrite>."
12110 msgstr ""
12111
12112 #. type: =head2
12113 #: ../fish/guestfish-actions.pod:3880
12114 msgid "read-file"
12115 msgstr ""
12116
12117 #. type: verbatim
12118 #: ../fish/guestfish-actions.pod:3882
12119 #, no-wrap
12120 msgid ""
12121 " read-file path\n"
12122 "\n"
12123 msgstr ""
12124
12125 #. type: textblock
12126 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5946
12127 msgid "This calls returns the contents of the file C<path> as a buffer."
12128 msgstr ""
12129
12130 #. type: textblock
12131 #: ../fish/guestfish-actions.pod:3887
12132 msgid ""
12133 "Unlike L</cat>, this function can correctly handle files that contain "
12134 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12135 "is limited in the total size of file that can be handled."
12136 msgstr ""
12137
12138 #. type: =head2
12139 #: ../fish/guestfish-actions.pod:3895
12140 msgid "read-lines"
12141 msgstr ""
12142
12143 #. type: verbatim
12144 #: ../fish/guestfish-actions.pod:3897
12145 #, no-wrap
12146 msgid ""
12147 " read-lines path\n"
12148 "\n"
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5971
12153 msgid ""
12154 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12155 "C<CRLF> character sequences are I<not> returned."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:3904
12160 msgid ""
12161 "Note that this function cannot correctly handle binary files (specifically, "
12162 "files containing C<\\0> character which is treated as end of line).  For "
12163 "those you need to use the L</read-file> function which has a more complex "
12164 "interface."
12165 msgstr ""
12166
12167 #. type: =head2
12168 #: ../fish/guestfish-actions.pod:3909
12169 msgid "readdir"
12170 msgstr ""
12171
12172 #. type: verbatim
12173 #: ../fish/guestfish-actions.pod:3911
12174 #, no-wrap
12175 msgid ""
12176 " readdir dir\n"
12177 "\n"
12178 msgstr ""
12179
12180 #. type: textblock
12181 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5991
12182 msgid "This returns the list of directory entries in directory C<dir>."
12183 msgstr ""
12184
12185 #. type: textblock
12186 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5993
12187 msgid ""
12188 "All entries in the directory are returned, including C<.> and C<..>.  The "
12189 "entries are I<not> sorted, but returned in the same order as the underlying "
12190 "filesystem."
12191 msgstr ""
12192
12193 #. type: textblock
12194 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5997
12195 msgid ""
12196 "Also this call returns basic file type information about each file.  The "
12197 "C<ftyp> field will contain one of the following characters:"
12198 msgstr ""
12199
12200 #. type: =item
12201 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6002
12202 msgid "'b'"
12203 msgstr ""
12204
12205 #. type: textblock
12206 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6004
12207 msgid "Block special"
12208 msgstr ""
12209
12210 #. type: =item
12211 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6006
12212 msgid "'c'"
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6008
12217 msgid "Char special"
12218 msgstr ""
12219
12220 #. type: =item
12221 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6010
12222 msgid "'d'"
12223 msgstr ""
12224
12225 #. type: textblock
12226 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
12227 msgid "Directory"
12228 msgstr ""
12229
12230 #. type: =item
12231 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
12232 msgid "'f'"
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
12237 msgid "FIFO (named pipe)"
12238 msgstr ""
12239
12240 #. type: =item
12241 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
12242 msgid "'l'"
12243 msgstr ""
12244
12245 #. type: textblock
12246 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
12247 msgid "Symbolic link"
12248 msgstr ""
12249
12250 #. type: =item
12251 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
12252 msgid "'r'"
12253 msgstr ""
12254
12255 #. type: textblock
12256 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
12257 msgid "Regular file"
12258 msgstr ""
12259
12260 #. type: =item
12261 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
12262 msgid "'s'"
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
12267 msgid "Socket"
12268 msgstr ""
12269
12270 #. type: =item
12271 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
12272 msgid "'u'"
12273 msgstr ""
12274
12275 #. type: textblock
12276 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
12277 msgid "Unknown file type"
12278 msgstr ""
12279
12280 #. type: =item
12281 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
12282 msgid "'?'"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
12287 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12288 msgstr ""
12289
12290 #. type: textblock
12291 #: ../fish/guestfish-actions.pod:3963
12292 msgid ""
12293 "This function is primarily intended for use by programs.  To get a simple "
12294 "list of names, use L</ls>.  To get a printable directory for human "
12295 "consumption, use L</ll>."
12296 msgstr ""
12297
12298 #. type: =head2
12299 #: ../fish/guestfish-actions.pod:3967
12300 msgid "readlink"
12301 msgstr ""
12302
12303 #. type: verbatim
12304 #: ../fish/guestfish-actions.pod:3969
12305 #, no-wrap
12306 msgid ""
12307 " readlink path\n"
12308 "\n"
12309 msgstr ""
12310
12311 #. type: textblock
12312 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6057
12313 msgid "This command reads the target of a symbolic link."
12314 msgstr ""
12315
12316 #. type: =head2
12317 #: ../fish/guestfish-actions.pod:3973
12318 msgid "readlinklist"
12319 msgstr ""
12320
12321 #. type: verbatim
12322 #: ../fish/guestfish-actions.pod:3975
12323 #, no-wrap
12324 msgid ""
12325 " readlinklist path 'names ...'\n"
12326 "\n"
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6071
12331 msgid ""
12332 "This call allows you to do a C<readlink> operation on multiple files, where "
12333 "all files are in the directory C<path>.  C<names> is the list of files from "
12334 "this directory."
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6075
12339 msgid ""
12340 "On return you get a list of strings, with a one-to-one correspondence to the "
12341 "C<names> list.  Each string is the value of the symbolic link."
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6079
12346 msgid ""
12347 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12348 "result string is the empty string C<\"\">.  However the whole operation is "
12349 "completed even if there were C<readlink(2)> errors, and so you can call this "
12350 "function with names where you don't know if they are symbolic links already "
12351 "(albeit slightly less efficient)."
12352 msgstr ""
12353
12354 #. type: textblock
12355 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6086
12356 msgid ""
12357 "This call is intended for programs that want to efficiently list a directory "
12358 "contents without making many round-trips.  Very long directory listings "
12359 "might cause the protocol message size to be exceeded, causing this call to "
12360 "fail.  The caller must split up such requests into smaller groups of names."
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../fish/guestfish-actions.pod:3999
12365 msgid "realpath"
12366 msgstr ""
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:4001
12370 #, no-wrap
12371 msgid ""
12372 " realpath path\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6105
12378 msgid ""
12379 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12380 "has no C<.>, C<..> or symbolic link path elements."
12381 msgstr ""
12382
12383 #. type: =head2
12384 #: ../fish/guestfish-actions.pod:4006
12385 msgid "removexattr"
12386 msgstr ""
12387
12388 #. type: verbatim
12389 #: ../fish/guestfish-actions.pod:4008
12390 #, no-wrap
12391 msgid ""
12392 " removexattr xattr path\n"
12393 "\n"
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6120
12398 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../fish/guestfish-actions.pod:4013
12403 msgid "See also: L</lremovexattr>, L<attr(5)>."
12404 msgstr ""
12405
12406 #. type: =head2
12407 #: ../fish/guestfish-actions.pod:4015
12408 msgid "resize2fs"
12409 msgstr ""
12410
12411 #. type: verbatim
12412 #: ../fish/guestfish-actions.pod:4017
12413 #, no-wrap
12414 msgid ""
12415 " resize2fs device\n"
12416 "\n"
12417 msgstr ""
12418
12419 #. type: textblock
12420 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6135
12421 msgid ""
12422 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12423 "underlying device."
12424 msgstr ""
12425
12426 #. type: textblock
12427 #: ../fish/guestfish-actions.pod:4022
12428 msgid ""
12429 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12430 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12431 "gives an error about this and sometimes not.  In any case, it is always safe "
12432 "to call L</e2fsck-f> before calling this function."
12433 msgstr ""
12434
12435 #. type: =head2
12436 #: ../fish/guestfish-actions.pod:4028
12437 msgid "resize2fs-M"
12438 msgstr ""
12439
12440 #. type: verbatim
12441 #: ../fish/guestfish-actions.pod:4030
12442 #, no-wrap
12443 msgid ""
12444 " resize2fs-M device\n"
12445 "\n"
12446 msgstr ""
12447
12448 #. type: textblock
12449 #: ../fish/guestfish-actions.pod:4032
12450 msgid ""
12451 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12452 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12453 "command."
12454 msgstr ""
12455
12456 #. type: textblock
12457 #: ../fish/guestfish-actions.pod:4036
12458 msgid ""
12459 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12460 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12461 "multiplied together, give the resulting size of the minimal filesystem in "
12462 "bytes."
12463 msgstr ""
12464
12465 #. type: =head2
12466 #: ../fish/guestfish-actions.pod:4041
12467 msgid "resize2fs-size"
12468 msgstr ""
12469
12470 #. type: verbatim
12471 #: ../fish/guestfish-actions.pod:4043
12472 #, no-wrap
12473 msgid ""
12474 " resize2fs-size device size\n"
12475 "\n"
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../fish/guestfish-actions.pod:4045
12480 msgid ""
12481 "This command is the same as L</resize2fs> except that it allows you to "
12482 "specify the new size (in bytes) explicitly."
12483 msgstr ""
12484
12485 #. type: =head2
12486 #: ../fish/guestfish-actions.pod:4048
12487 msgid "rm"
12488 msgstr ""
12489
12490 #. type: verbatim
12491 #: ../fish/guestfish-actions.pod:4050
12492 #, no-wrap
12493 msgid ""
12494 " rm path\n"
12495 "\n"
12496 msgstr ""
12497
12498 #. type: textblock
12499 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6187
12500 msgid "Remove the single file C<path>."
12501 msgstr ""
12502
12503 #. type: =head2
12504 #: ../fish/guestfish-actions.pod:4054
12505 msgid "rm-rf"
12506 msgstr ""
12507
12508 #. type: verbatim
12509 #: ../fish/guestfish-actions.pod:4056
12510 #, no-wrap
12511 msgid ""
12512 " rm-rf path\n"
12513 "\n"
12514 msgstr ""
12515
12516 #. type: textblock
12517 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6199
12518 msgid ""
12519 "Remove the file or directory C<path>, recursively removing the contents if "
12520 "its a directory.  This is like the C<rm -rf> shell command."
12521 msgstr ""
12522
12523 #. type: =head2
12524 #: ../fish/guestfish-actions.pod:4062
12525 msgid "rmdir"
12526 msgstr ""
12527
12528 #. type: verbatim
12529 #: ../fish/guestfish-actions.pod:4064
12530 #, no-wrap
12531 msgid ""
12532 " rmdir path\n"
12533 "\n"
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6213
12538 msgid "Remove the single directory C<path>."
12539 msgstr ""
12540
12541 #. type: =head2
12542 #: ../fish/guestfish-actions.pod:4068
12543 msgid "rmmountpoint"
12544 msgstr ""
12545
12546 #. type: verbatim
12547 #: ../fish/guestfish-actions.pod:4070
12548 #, no-wrap
12549 msgid ""
12550 " rmmountpoint exemptpath\n"
12551 "\n"
12552 msgstr ""
12553
12554 #. type: textblock
12555 #: ../fish/guestfish-actions.pod:4072
12556 msgid ""
12557 "This calls removes a mountpoint that was previously created with "
12558 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../fish/guestfish-actions.pod:4076
12563 msgid "scrub-device"
12564 msgstr ""
12565
12566 #. type: verbatim
12567 #: ../fish/guestfish-actions.pod:4078
12568 #, no-wrap
12569 msgid ""
12570 " scrub-device device\n"
12571 "\n"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6239
12576 msgid ""
12577 "This command writes patterns over C<device> to make data retrieval more "
12578 "difficult."
12579 msgstr ""
12580
12581 #. type: textblock
12582 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098 ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
12583 msgid ""
12584 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12585 "more details."
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../fish/guestfish-actions.pod:4089
12590 msgid "scrub-file"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../fish/guestfish-actions.pod:4091
12595 #, no-wrap
12596 msgid ""
12597 " scrub-file file\n"
12598 "\n"
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
12603 msgid ""
12604 "This command writes patterns over a file to make data retrieval more "
12605 "difficult."
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6261
12610 msgid "The file is I<removed> after scrubbing."
12611 msgstr ""
12612
12613 #. type: =head2
12614 #: ../fish/guestfish-actions.pod:4101
12615 msgid "scrub-freespace"
12616 msgstr ""
12617
12618 #. type: verbatim
12619 #: ../fish/guestfish-actions.pod:4103
12620 #, no-wrap
12621 msgid ""
12622 " scrub-freespace dir\n"
12623 "\n"
12624 msgstr ""
12625
12626 #. type: textblock
12627 #: ../fish/guestfish-actions.pod:4105
12628 msgid ""
12629 "This command creates the directory C<dir> and then fills it with files until "
12630 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12631 "deletes them.  The intention is to scrub any free space on the partition "
12632 "containing C<dir>."
12633 msgstr ""
12634
12635 #. type: =head2
12636 #: ../fish/guestfish-actions.pod:4114
12637 msgid "set-append"
12638 msgstr ""
12639
12640 #. type: =head2
12641 #: ../fish/guestfish-actions.pod:4116
12642 msgid "append"
12643 msgstr ""
12644
12645 #. type: verbatim
12646 #: ../fish/guestfish-actions.pod:4118
12647 #, no-wrap
12648 msgid ""
12649 " set-append append\n"
12650 "\n"
12651 msgstr ""
12652
12653 #. type: textblock
12654 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6295
12655 msgid ""
12656 "This function is used to add additional options to the guest kernel command "
12657 "line."
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6298
12662 msgid ""
12663 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12664 "environment variable."
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6301
12669 msgid ""
12670 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12671 "(libguestfs always adds a few of its own)."
12672 msgstr ""
12673
12674 #. type: =head2
12675 #: ../fish/guestfish-actions.pod:4129
12676 msgid "set-attach-method"
12677 msgstr ""
12678
12679 #. type: =head2
12680 #: ../fish/guestfish-actions.pod:4131
12681 msgid "attach-method"
12682 msgstr ""
12683
12684 #. type: verbatim
12685 #: ../fish/guestfish-actions.pod:4133
12686 #, no-wrap
12687 msgid ""
12688 " set-attach-method attachmethod\n"
12689 "\n"
12690 msgstr ""
12691
12692 #. type: textblock
12693 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6314
12694 msgid ""
12695 "Set the method that libguestfs uses to connect to the back end guestfsd "
12696 "daemon.  Possible methods are:"
12697 msgstr ""
12698
12699 #. type: =item
12700 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6319 ../src/guestfs.pod:2826
12701 msgid "C<appliance>"
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6321
12706 msgid ""
12707 "Launch an appliance and connect to it.  This is the ordinary method and the "
12708 "default."
12709 msgstr ""
12710
12711 #. type: =item
12712 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
12713 msgid "C<unix:I<path>>"
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6326
12718 msgid "Connect to the Unix domain socket I<path>."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6328
12723 msgid ""
12724 "This method lets you connect to an existing daemon or (using virtio-serial) "
12725 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12726 "RUNNING DAEMONS>."
12727 msgstr ""
12728
12729 #. type: =head2
12730 #: ../fish/guestfish-actions.pod:4155
12731 msgid "set-autosync"
12732 msgstr ""
12733
12734 #. type: =head2
12735 #: ../fish/guestfish-actions.pod:4157
12736 msgid "autosync"
12737 msgstr ""
12738
12739 #. type: verbatim
12740 #: ../fish/guestfish-actions.pod:4159
12741 #, no-wrap
12742 msgid ""
12743 " set-autosync true|false\n"
12744 "\n"
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6344
12749 msgid ""
12750 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12751 "effort attempt to make filesystems consistent and synchronized when the "
12752 "handle is closed (also if the program exits without closing handles)."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6349
12757 msgid ""
12758 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12759 "disabled by default)."
12760 msgstr ""
12761
12762 #. type: =head2
12763 #: ../fish/guestfish-actions.pod:4169
12764 msgid "set-direct"
12765 msgstr ""
12766
12767 #. type: =head2
12768 #: ../fish/guestfish-actions.pod:4171
12769 msgid "direct"
12770 msgstr ""
12771
12772 #. type: verbatim
12773 #: ../fish/guestfish-actions.pod:4173
12774 #, no-wrap
12775 msgid ""
12776 " set-direct true|false\n"
12777 "\n"
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6362
12782 msgid ""
12783 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12784 "passed directly through to the appliance once it is launched."
12785 msgstr ""
12786
12787 #. type: textblock
12788 #: ../fish/guestfish-actions.pod:4179
12789 msgid ""
12790 "One consequence of this is that log messages aren't caught by the library "
12791 "and handled by L</set-log-message-callback>, but go straight to stdout."
12792 msgstr ""
12793
12794 #. type: textblock
12795 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6370
12796 msgid "You probably don't want to use this unless you know what you are doing."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6373
12801 msgid "The default is disabled."
12802 msgstr ""
12803
12804 #. type: =head2
12805 #: ../fish/guestfish-actions.pod:4188
12806 msgid "set-e2label"
12807 msgstr ""
12808
12809 #. type: verbatim
12810 #: ../fish/guestfish-actions.pod:4190
12811 #, no-wrap
12812 msgid ""
12813 " set-e2label device label\n"
12814 "\n"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6386
12819 msgid ""
12820 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12821 "C<label>.  Filesystem labels are limited to 16 characters."
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../fish/guestfish-actions.pod:4196
12826 msgid ""
12827 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12828 "label on a filesystem."
12829 msgstr ""
12830
12831 #. type: =head2
12832 #: ../fish/guestfish-actions.pod:4199
12833 msgid "set-e2uuid"
12834 msgstr ""
12835
12836 #. type: verbatim
12837 #: ../fish/guestfish-actions.pod:4201
12838 #, no-wrap
12839 msgid ""
12840 " set-e2uuid device uuid\n"
12841 "\n"
12842 msgstr ""
12843
12844 #. type: textblock
12845 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6404
12846 msgid ""
12847 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12848 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12849 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12850 msgstr ""
12851
12852 #. type: textblock
12853 #: ../fish/guestfish-actions.pod:4208
12854 msgid ""
12855 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12856 "UUID of a filesystem."
12857 msgstr ""
12858
12859 #. type: =head2
12860 #: ../fish/guestfish-actions.pod:4211
12861 msgid "set-memsize"
12862 msgstr ""
12863
12864 #. type: =head2
12865 #: ../fish/guestfish-actions.pod:4213
12866 msgid "memsize"
12867 msgstr ""
12868
12869 #. type: verbatim
12870 #: ../fish/guestfish-actions.pod:4215
12871 #, no-wrap
12872 msgid ""
12873 " set-memsize memsize\n"
12874 "\n"
12875 msgstr ""
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:4217
12879 msgid ""
12880 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12881 "This only has any effect if called before L</launch>."
12882 msgstr ""
12883
12884 #. type: textblock
12885 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6426
12886 msgid ""
12887 "You can also change this by setting the environment variable "
12888 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12889 msgstr ""
12890
12891 #. type: =head2
12892 #: ../fish/guestfish-actions.pod:4228
12893 msgid "set-network"
12894 msgstr ""
12895
12896 #. type: =head2
12897 #: ../fish/guestfish-actions.pod:4230
12898 msgid "network"
12899 msgstr ""
12900
12901 #. type: verbatim
12902 #: ../fish/guestfish-actions.pod:4232
12903 #, no-wrap
12904 msgid ""
12905 " set-network true|false\n"
12906 "\n"
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6443
12911 msgid ""
12912 "If C<network> is true, then the network is enabled in the libguestfs "
12913 "appliance.  The default is false."
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6446
12918 msgid ""
12919 "This affects whether commands are able to access the network (see "
12920 "L<guestfs(3)/RUNNING COMMANDS>)."
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:4240
12925 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12926 msgstr ""
12927
12928 #. type: =head2
12929 #: ../fish/guestfish-actions.pod:4243
12930 msgid "set-path"
12931 msgstr ""
12932
12933 #. type: verbatim
12934 #: ../fish/guestfish-actions.pod:4247
12935 #, no-wrap
12936 msgid ""
12937 " set-path searchpath\n"
12938 "\n"
12939 msgstr ""
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6462
12943 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12944 msgstr ""
12945
12946 #. type: textblock
12947 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6464
12948 msgid ""
12949 "The default is C<$libdir/guestfs> unless overridden by setting "
12950 "C<LIBGUESTFS_PATH> environment variable."
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6467
12955 msgid "Setting C<path> to C<NULL> restores the default path."
12956 msgstr ""
12957
12958 #. type: =head2
12959 #: ../fish/guestfish-actions.pod:4256
12960 msgid "set-pgroup"
12961 msgstr ""
12962
12963 #. type: =head2
12964 #: ../fish/guestfish-actions.pod:4258
12965 msgid "pgroup"
12966 msgstr ""
12967
12968 #. type: verbatim
12969 #: ../fish/guestfish-actions.pod:4260
12970 #, no-wrap
12971 msgid ""
12972 " set-pgroup true|false\n"
12973 "\n"
12974 msgstr ""
12975
12976 #. type: textblock
12977 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6479
12978 msgid ""
12979 "If C<pgroup> is true, child processes are placed into their own process "
12980 "group."
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6482
12985 msgid ""
12986 "The practical upshot of this is that signals like C<SIGINT> (from users "
12987 "pressing C<^C>) won't be received by the child process."
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6485
12992 msgid ""
12993 "The default for this flag is false, because usually you want C<^C> to kill "
12994 "the subprocess."
12995 msgstr ""
12996
12997 #. type: =head2
12998 #: ../fish/guestfish-actions.pod:4271
12999 msgid "set-qemu"
13000 msgstr ""
13001
13002 #. type: =head2
13003 #: ../fish/guestfish-actions.pod:4273
13004 msgid "qemu"
13005 msgstr ""
13006
13007 #. type: verbatim
13008 #: ../fish/guestfish-actions.pod:4275
13009 #, no-wrap
13010 msgid ""
13011 " set-qemu qemu\n"
13012 "\n"
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6498
13017 msgid "Set the qemu binary that we will use."
13018 msgstr ""
13019
13020 #. type: textblock
13021 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6500
13022 msgid "The default is chosen when the library was compiled by the configure script."
13023 msgstr ""
13024
13025 #. type: textblock
13026 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6503
13027 msgid ""
13028 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13029 "variable."
13030 msgstr ""
13031
13032 #. type: textblock
13033 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6506
13034 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13035 msgstr ""
13036
13037 #. type: textblock
13038 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
13039 msgid ""
13040 "Note that you should call this function as early as possible after creating "
13041 "the handle.  This is because some pre-launch operations depend on testing "
13042 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
13043 "don't retest features, and so you might see inconsistent results.  Using the "
13044 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
13045 "the qemu binary at the same time as the handle is created."
13046 msgstr ""
13047
13048 #. type: =head2
13049 #: ../fish/guestfish-actions.pod:4295
13050 msgid "set-recovery-proc"
13051 msgstr ""
13052
13053 #. type: =head2
13054 #: ../fish/guestfish-actions.pod:4297
13055 msgid "recovery-proc"
13056 msgstr ""
13057
13058 #. type: verbatim
13059 #: ../fish/guestfish-actions.pod:4299
13060 #, no-wrap
13061 msgid ""
13062 " set-recovery-proc true|false\n"
13063 "\n"
13064 msgstr ""
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:4301
13068 msgid ""
13069 "If this is called with the parameter C<false> then L</launch> does not "
13070 "create a recovery process.  The purpose of the recovery process is to stop "
13071 "runaway qemu processes in the case where the main program aborts abruptly."
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:4306
13076 msgid ""
13077 "This only has any effect if called before L</launch>, and the default is "
13078 "true."
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6534
13083 msgid ""
13084 "About the only time when you would want to disable this is if the main "
13085 "process will fork itself into the background (\"daemonize\" itself).  In "
13086 "this case the recovery process thinks that the main program has disappeared "
13087 "and so kills qemu, which is not very helpful."
13088 msgstr ""
13089
13090 #. type: =head2
13091 #: ../fish/guestfish-actions.pod:4315
13092 msgid "set-selinux"
13093 msgstr ""
13094
13095 #. type: =head2
13096 #: ../fish/guestfish-actions.pod:4317
13097 msgid "selinux"
13098 msgstr ""
13099
13100 #. type: verbatim
13101 #: ../fish/guestfish-actions.pod:4319
13102 #, no-wrap
13103 msgid ""
13104 " set-selinux true|false\n"
13105 "\n"
13106 msgstr ""
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6550
13110 msgid ""
13111 "This sets the selinux flag that is passed to the appliance at boot time.  "
13112 "The default is C<selinux=0> (disabled)."
13113 msgstr ""
13114
13115 #. type: textblock
13116 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6553
13117 msgid ""
13118 "Note that if SELinux is enabled, it is always in Permissive mode "
13119 "(C<enforcing=0>)."
13120 msgstr ""
13121
13122 #. type: =head2
13123 #: ../fish/guestfish-actions.pod:4330
13124 msgid "set-smp"
13125 msgstr ""
13126
13127 #. type: =head2
13128 #: ../fish/guestfish-actions.pod:4332
13129 msgid "smp"
13130 msgstr ""
13131
13132 #. type: verbatim
13133 #: ../fish/guestfish-actions.pod:4334
13134 #, no-wrap
13135 msgid ""
13136 " set-smp smp\n"
13137 "\n"
13138 msgstr ""
13139
13140 #. type: textblock
13141 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6569
13142 msgid ""
13143 "Change the number of virtual CPUs assigned to the appliance.  The default is "
13144 "C<1>.  Increasing this may improve performance, though often it has no "
13145 "effect."
13146 msgstr ""
13147
13148 #. type: textblock
13149 #: ../fish/guestfish-actions.pod:4340
13150 msgid "This function must be called before L</launch>."
13151 msgstr ""
13152
13153 #. type: =head2
13154 #: ../fish/guestfish-actions.pod:4342
13155 msgid "set-trace"
13156 msgstr ""
13157
13158 #. type: =head2
13159 #: ../fish/guestfish-actions.pod:4344
13160 msgid "trace"
13161 msgstr ""
13162
13163 #. type: verbatim
13164 #: ../fish/guestfish-actions.pod:4346
13165 #, no-wrap
13166 msgid ""
13167 " set-trace true|false\n"
13168 "\n"
13169 msgstr ""
13170
13171 #. type: textblock
13172 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6583
13173 msgid ""
13174 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13175 "return values are traced."
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6586
13180 msgid ""
13181 "If you want to trace C API calls into libguestfs (and other libraries) then "
13182 "possibly a better way is to use the external ltrace(1) command."
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6590
13187 msgid ""
13188 "Command traces are disabled unless the environment variable "
13189 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:4358
13194 msgid ""
13195 "Trace messages are normally sent to C<stderr>, unless you register a "
13196 "callback to send them somewhere else (see L</set-event-callback>)."
13197 msgstr ""
13198
13199 #. type: =head2
13200 #: ../fish/guestfish-actions.pod:4362
13201 msgid "set-verbose"
13202 msgstr ""
13203
13204 #. type: =head2
13205 #: ../fish/guestfish-actions.pod:4364
13206 msgid "verbose"
13207 msgstr ""
13208
13209 #. type: verbatim
13210 #: ../fish/guestfish-actions.pod:4366
13211 #, no-wrap
13212 msgid ""
13213 " set-verbose true|false\n"
13214 "\n"
13215 msgstr ""
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6607
13219 msgid "If C<verbose> is true, this turns on verbose messages."
13220 msgstr ""
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6609
13224 msgid ""
13225 "Verbose messages are disabled unless the environment variable "
13226 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:4373
13231 msgid ""
13232 "Verbose messages are normally sent to C<stderr>, unless you register a "
13233 "callback to send them somewhere else (see L</set-event-callback>)."
13234 msgstr ""
13235
13236 #. type: =head2
13237 #: ../fish/guestfish-actions.pod:4377
13238 msgid "setcon"
13239 msgstr ""
13240
13241 #. type: verbatim
13242 #: ../fish/guestfish-actions.pod:4379
13243 #, no-wrap
13244 msgid ""
13245 " setcon context\n"
13246 "\n"
13247 msgstr ""
13248
13249 #. type: textblock
13250 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6626
13251 msgid ""
13252 "This sets the SELinux security context of the daemon to the string "
13253 "C<context>."
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6629
13258 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13259 msgstr ""
13260
13261 #. type: =head2
13262 #: ../fish/guestfish-actions.pod:4386
13263 msgid "setxattr"
13264 msgstr ""
13265
13266 #. type: verbatim
13267 #: ../fish/guestfish-actions.pod:4388
13268 #, no-wrap
13269 msgid ""
13270 " setxattr xattr val vallen path\n"
13271 "\n"
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6644
13276 msgid ""
13277 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13278 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:4394
13283 msgid "See also: L</lsetxattr>, L<attr(5)>."
13284 msgstr ""
13285
13286 #. type: =head2
13287 #: ../fish/guestfish-actions.pod:4396
13288 msgid "sfdisk"
13289 msgstr ""
13290
13291 #. type: verbatim
13292 #: ../fish/guestfish-actions.pod:4398
13293 #, no-wrap
13294 msgid ""
13295 " sfdisk device cyls heads sectors 'lines ...'\n"
13296 "\n"
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6671
13301 msgid ""
13302 "This is a direct interface to the L<sfdisk(8)> program for creating "
13303 "partitions on block devices."
13304 msgstr ""
13305
13306 #. type: textblock
13307 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6674
13308 msgid "C<device> should be a block device, for example C</dev/sda>."
13309 msgstr ""
13310
13311 #. type: textblock
13312 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6676
13313 msgid ""
13314 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13315 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13316 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13317 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13318 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13319 "the kernel) cannot work out the right geometry and you will need to tell it."
13320 msgstr ""
13321
13322 #. type: textblock
13323 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
13324 msgid ""
13325 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13326 "refer to the L<sfdisk(8)> manpage."
13327 msgstr ""
13328
13329 #. type: textblock
13330 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6687
13331 msgid ""
13332 "To create a single partition occupying the whole disk, you would pass "
13333 "C<lines> as a single element list, when the single element being the string "
13334 "C<,> (comma)."
13335 msgstr ""
13336
13337 #. type: textblock
13338 #: ../fish/guestfish-actions.pod:4420
13339 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449 ../fish/guestfish-actions.pod:4471
13344 msgid ""
13345 "I<This function is deprecated.> In new code, use the L</part_add> call "
13346 "instead."
13347 msgstr ""
13348
13349 #. type: =head2
13350 #: ../fish/guestfish-actions.pod:4433
13351 msgid "sfdiskM"
13352 msgstr ""
13353
13354 #. type: verbatim
13355 #: ../fish/guestfish-actions.pod:4435
13356 #, no-wrap
13357 msgid ""
13358 " sfdiskM device 'lines ...'\n"
13359 "\n"
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:4437
13364 msgid ""
13365 "This is a simplified interface to the L</sfdisk> command, where partition "
13366 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13367 "you don't need to specify the cyls, heads and sectors parameters which were "
13368 "rarely if ever used anyway."
13369 msgstr ""
13370
13371 #. type: textblock
13372 #: ../fish/guestfish-actions.pod:4443
13373 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13374 msgstr ""
13375
13376 #. type: =head2
13377 #: ../fish/guestfish-actions.pod:4456
13378 msgid "sfdisk-N"
13379 msgstr ""
13380
13381 #. type: verbatim
13382 #: ../fish/guestfish-actions.pod:4458
13383 #, no-wrap
13384 msgid ""
13385 " sfdisk-N device partnum cyls heads sectors line\n"
13386 "\n"
13387 msgstr ""
13388
13389 #. type: textblock
13390 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6749
13391 msgid ""
13392 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13393 "(note: C<n> counts from 1)."
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:4463
13398 msgid ""
13399 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13400 "cyls/heads/sectors parameters."
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:4466
13405 msgid "See also: L</part-add>"
13406 msgstr ""
13407
13408 #. type: =head2
13409 #: ../fish/guestfish-actions.pod:4478
13410 msgid "sfdisk-disk-geometry"
13411 msgstr ""
13412
13413 #. type: verbatim
13414 #: ../fish/guestfish-actions.pod:4480
13415 #, no-wrap
13416 msgid ""
13417 " sfdisk-disk-geometry device\n"
13418 "\n"
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:4482
13423 msgid ""
13424 "This displays the disk geometry of C<device> read from the partition table.  "
13425 "Especially in the case where the underlying block device has been resized, "
13426 "this can be different from the kernel's idea of the geometry (see "
13427 "L</sfdisk-kernel-geometry>)."
13428 msgstr ""
13429
13430 #. type: textblock
13431 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6791
13432 msgid "The result is in human-readable format, and not designed to be parsed."
13433 msgstr ""
13434
13435 #. type: =head2
13436 #: ../fish/guestfish-actions.pod:4490
13437 msgid "sfdisk-kernel-geometry"
13438 msgstr ""
13439
13440 #. type: verbatim
13441 #: ../fish/guestfish-actions.pod:4492
13442 #, no-wrap
13443 msgid ""
13444 " sfdisk-kernel-geometry device\n"
13445 "\n"
13446 msgstr ""
13447
13448 #. type: textblock
13449 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6789
13450 msgid "This displays the kernel's idea of the geometry of C<device>."
13451 msgstr ""
13452
13453 #. type: =head2
13454 #: ../fish/guestfish-actions.pod:4499
13455 msgid "sfdisk-l"
13456 msgstr ""
13457
13458 #. type: verbatim
13459 #: ../fish/guestfish-actions.pod:4501
13460 #, no-wrap
13461 msgid ""
13462 " sfdisk-l device\n"
13463 "\n"
13464 msgstr ""
13465
13466 #. type: textblock
13467 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6812
13468 msgid ""
13469 "This displays the partition table on C<device>, in the human-readable output "
13470 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:4507
13475 msgid "See also: L</part-list>"
13476 msgstr ""
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:4509
13480 msgid ""
13481 "I<This function is deprecated.> In new code, use the L</part_list> call "
13482 "instead."
13483 msgstr ""
13484
13485 #. type: =head2
13486 #: ../fish/guestfish-actions.pod:4516
13487 msgid "sh"
13488 msgstr ""
13489
13490 #. type: verbatim
13491 #: ../fish/guestfish-actions.pod:4518
13492 #, no-wrap
13493 msgid ""
13494 " sh command\n"
13495 "\n"
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6829
13500 msgid ""
13501 "This call runs a command from the guest filesystem via the guest's "
13502 "C</bin/sh>."
13503 msgstr ""
13504
13505 #. type: textblock
13506 #: ../fish/guestfish-actions.pod:4523
13507 msgid "This is like L</command>, but passes the command to:"
13508 msgstr ""
13509
13510 #. type: verbatim
13511 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6834
13512 #, no-wrap
13513 msgid ""
13514 " /bin/sh -c \"command\"\n"
13515 "\n"
13516 msgstr ""
13517
13518 #. type: textblock
13519 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6836
13520 msgid ""
13521 "Depending on the guest's shell, this usually results in wildcards being "
13522 "expanded, shell expressions being interpolated and so on."
13523 msgstr ""
13524
13525 #. type: textblock
13526 #: ../fish/guestfish-actions.pod:4531
13527 msgid "All the provisos about L</command> apply to this call."
13528 msgstr ""
13529
13530 #. type: =head2
13531 #: ../fish/guestfish-actions.pod:4533
13532 msgid "sh-lines"
13533 msgstr ""
13534
13535 #. type: verbatim
13536 #: ../fish/guestfish-actions.pod:4535
13537 #, no-wrap
13538 msgid ""
13539 " sh-lines command\n"
13540 "\n"
13541 msgstr ""
13542
13543 #. type: textblock
13544 #: ../fish/guestfish-actions.pod:4537
13545 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13546 msgstr ""
13547
13548 #. type: textblock
13549 #: ../fish/guestfish-actions.pod:4540
13550 msgid "See also: L</command-lines>"
13551 msgstr ""
13552
13553 #. type: =head2
13554 #: ../fish/guestfish-actions.pod:4542
13555 msgid "sleep"
13556 msgstr ""
13557
13558 #. type: verbatim
13559 #: ../fish/guestfish-actions.pod:4544
13560 #, no-wrap
13561 msgid ""
13562 " sleep secs\n"
13563 "\n"
13564 msgstr ""
13565
13566 #. type: textblock
13567 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6870
13568 msgid "Sleep for C<secs> seconds."
13569 msgstr ""
13570
13571 #. type: =head2
13572 #: ../fish/guestfish-actions.pod:4548
13573 msgid "stat"
13574 msgstr ""
13575
13576 #. type: verbatim
13577 #: ../fish/guestfish-actions.pod:4550
13578 #, no-wrap
13579 msgid ""
13580 " stat path\n"
13581 "\n"
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6884
13586 msgid "This is the same as the C<stat(2)> system call."
13587 msgstr ""
13588
13589 #. type: =head2
13590 #: ../fish/guestfish-actions.pod:4556
13591 msgid "statvfs"
13592 msgstr ""
13593
13594 #. type: verbatim
13595 #: ../fish/guestfish-actions.pod:4558
13596 #, no-wrap
13597 msgid ""
13598 " statvfs path\n"
13599 "\n"
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6898
13604 msgid ""
13605 "Returns file system statistics for any mounted file system.  C<path> should "
13606 "be a file or directory in the mounted file system (typically it is the mount "
13607 "point itself, but it doesn't need to be)."
13608 msgstr ""
13609
13610 #. type: textblock
13611 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6902
13612 msgid "This is the same as the C<statvfs(2)> system call."
13613 msgstr ""
13614
13615 #. type: =head2
13616 #: ../fish/guestfish-actions.pod:4566
13617 msgid "strings"
13618 msgstr ""
13619
13620 #. type: verbatim
13621 #: ../fish/guestfish-actions.pod:4568
13622 #, no-wrap
13623 msgid ""
13624 " strings path\n"
13625 "\n"
13626 msgstr ""
13627
13628 #. type: textblock
13629 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6916
13630 msgid ""
13631 "This runs the L<strings(1)> command on a file and returns the list of "
13632 "printable strings found."
13633 msgstr ""
13634
13635 #. type: =head2
13636 #: ../fish/guestfish-actions.pod:4576
13637 msgid "strings-e"
13638 msgstr ""
13639
13640 #. type: verbatim
13641 #: ../fish/guestfish-actions.pod:4578
13642 #, no-wrap
13643 msgid ""
13644 " strings-e encoding path\n"
13645 "\n"
13646 msgstr ""
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:4580
13650 msgid ""
13651 "This is like the L</strings> command, but allows you to specify the encoding "
13652 "of strings that are looked for in the source file C<path>."
13653 msgstr ""
13654
13655 #. type: textblock
13656 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6939
13657 msgid "Allowed encodings are:"
13658 msgstr ""
13659
13660 #. type: =item
13661 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
13662 msgid "s"
13663 msgstr ""
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:4590
13667 msgid ""
13668 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13669 "ISO-8859-X (this is what L</strings> uses)."
13670 msgstr ""
13671
13672 #. type: =item
13673 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6948
13674 msgid "S"
13675 msgstr ""
13676
13677 #. type: textblock
13678 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6950
13679 msgid "Single 8-bit-byte characters."
13680 msgstr ""
13681
13682 #. type: =item
13683 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6952
13684 msgid "b"
13685 msgstr ""
13686
13687 #. type: textblock
13688 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6954
13689 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13690 msgstr ""
13691
13692 #. type: =item
13693 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6957
13694 msgid "l (lower case letter L)"
13695 msgstr ""
13696
13697 #. type: textblock
13698 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6959
13699 msgid ""
13700 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13701 "examining binaries in Windows guests."
13702 msgstr ""
13703
13704 #. type: =item
13705 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
13706 msgid "B"
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
13711 msgid "32-bit big endian such as UCS-4BE."
13712 msgstr ""
13713
13714 #. type: =item
13715 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6966
13716 msgid "L"
13717 msgstr ""
13718
13719 #. type: textblock
13720 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6968
13721 msgid "32-bit little endian such as UCS-4LE."
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
13726 msgid "The returned strings are transcoded to UTF-8."
13727 msgstr ""
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:4622
13731 msgid "swapoff-device"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:4624
13736 #, no-wrap
13737 msgid ""
13738 " swapoff-device device\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:4626
13744 msgid ""
13745 "This command disables the libguestfs appliance swap device or partition "
13746 "named C<device>.  See L</swapon-device>."
13747 msgstr ""
13748
13749 #. type: =head2
13750 #: ../fish/guestfish-actions.pod:4630
13751 msgid "swapoff-file"
13752 msgstr ""
13753
13754 #. type: verbatim
13755 #: ../fish/guestfish-actions.pod:4632
13756 #, no-wrap
13757 msgid ""
13758 " swapoff-file file\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7003
13764 msgid "This command disables the libguestfs appliance swap on file."
13765 msgstr ""
13766
13767 #. type: =head2
13768 #: ../fish/guestfish-actions.pod:4636
13769 msgid "swapoff-label"
13770 msgstr ""
13771
13772 #. type: verbatim
13773 #: ../fish/guestfish-actions.pod:4638
13774 #, no-wrap
13775 msgid ""
13776 " swapoff-label label\n"
13777 "\n"
13778 msgstr ""
13779
13780 #. type: textblock
13781 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7015
13782 msgid ""
13783 "This command disables the libguestfs appliance swap on labeled swap "
13784 "partition."
13785 msgstr ""
13786
13787 #. type: =head2
13788 #: ../fish/guestfish-actions.pod:4643
13789 msgid "swapoff-uuid"
13790 msgstr ""
13791
13792 #. type: verbatim
13793 #: ../fish/guestfish-actions.pod:4645
13794 #, no-wrap
13795 msgid ""
13796 " swapoff-uuid uuid\n"
13797 "\n"
13798 msgstr ""
13799
13800 #. type: textblock
13801 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7028
13802 msgid ""
13803 "This command disables the libguestfs appliance swap partition with the given "
13804 "UUID."
13805 msgstr ""
13806
13807 #. type: =head2
13808 #: ../fish/guestfish-actions.pod:4650
13809 msgid "swapon-device"
13810 msgstr ""
13811
13812 #. type: verbatim
13813 #: ../fish/guestfish-actions.pod:4652
13814 #, no-wrap
13815 msgid ""
13816 " swapon-device device\n"
13817 "\n"
13818 msgstr ""
13819
13820 #. type: textblock
13821 #: ../fish/guestfish-actions.pod:4654
13822 msgid ""
13823 "This command enables the libguestfs appliance to use the swap device or "
13824 "partition named C<device>.  The increased memory is made available for all "
13825 "commands, for example those run using L</command> or L</sh>."
13826 msgstr ""
13827
13828 #. type: textblock
13829 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7046
13830 msgid ""
13831 "Note that you should not swap to existing guest swap partitions unless you "
13832 "know what you are doing.  They may contain hibernation information, or other "
13833 "information that the guest doesn't want you to trash.  You also risk leaking "
13834 "information about the host to the guest this way.  Instead, attach a new "
13835 "host device to the guest and swap on that."
13836 msgstr ""
13837
13838 #. type: =head2
13839 #: ../fish/guestfish-actions.pod:4666
13840 msgid "swapon-file"
13841 msgstr ""
13842
13843 #. type: verbatim
13844 #: ../fish/guestfish-actions.pod:4668
13845 #, no-wrap
13846 msgid ""
13847 " swapon-file file\n"
13848 "\n"
13849 msgstr ""
13850
13851 #. type: textblock
13852 #: ../fish/guestfish-actions.pod:4670
13853 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13854 msgstr ""
13855
13856 #. type: =head2
13857 #: ../fish/guestfish-actions.pod:4673
13858 msgid "swapon-label"
13859 msgstr ""
13860
13861 #. type: verbatim
13862 #: ../fish/guestfish-actions.pod:4675
13863 #, no-wrap
13864 msgid ""
13865 " swapon-label label\n"
13866 "\n"
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:4677
13871 msgid ""
13872 "This command enables swap to a labeled swap partition.  See "
13873 "L</swapon-device> for other notes."
13874 msgstr ""
13875
13876 #. type: =head2
13877 #: ../fish/guestfish-actions.pod:4680
13878 msgid "swapon-uuid"
13879 msgstr ""
13880
13881 #. type: verbatim
13882 #: ../fish/guestfish-actions.pod:4682
13883 #, no-wrap
13884 msgid ""
13885 " swapon-uuid uuid\n"
13886 "\n"
13887 msgstr ""
13888
13889 #. type: textblock
13890 #: ../fish/guestfish-actions.pod:4684
13891 msgid ""
13892 "This command enables swap to a swap partition with the given UUID.  See "
13893 "L</swapon-device> for other notes."
13894 msgstr ""
13895
13896 #. type: =head2
13897 #: ../fish/guestfish-actions.pod:4687
13898 msgid "sync"
13899 msgstr ""
13900
13901 #. type: verbatim
13902 #: ../fish/guestfish-actions.pod:4689
13903 #, no-wrap
13904 msgid ""
13905 " sync\n"
13906 "\n"
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7101
13911 msgid ""
13912 "This syncs the disk, so that any writes are flushed through to the "
13913 "underlying disk image."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7104
13918 msgid ""
13919 "You should always call this if you have modified a disk image, before "
13920 "closing the handle."
13921 msgstr ""
13922
13923 #. type: =head2
13924 #: ../fish/guestfish-actions.pod:4697
13925 msgid "tail"
13926 msgstr ""
13927
13928 #. type: verbatim
13929 #: ../fish/guestfish-actions.pod:4699
13930 #, no-wrap
13931 msgid ""
13932 " tail path\n"
13933 "\n"
13934 msgstr ""
13935
13936 #. type: textblock
13937 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7117
13938 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13939 msgstr ""
13940
13941 #. type: =head2
13942 #: ../fish/guestfish-actions.pod:4707
13943 msgid "tail-n"
13944 msgstr ""
13945
13946 #. type: verbatim
13947 #: ../fish/guestfish-actions.pod:4709
13948 #, no-wrap
13949 msgid ""
13950 " tail-n nrlines path\n"
13951 "\n"
13952 msgstr ""
13953
13954 #. type: textblock
13955 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7136
13956 msgid ""
13957 "If the parameter C<nrlines> is a positive number, this returns the last "
13958 "C<nrlines> lines of the file C<path>."
13959 msgstr ""
13960
13961 #. type: textblock
13962 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7139
13963 msgid ""
13964 "If the parameter C<nrlines> is a negative number, this returns lines from "
13965 "the file C<path>, starting with the C<-nrlines>th line."
13966 msgstr ""
13967
13968 #. type: =head2
13969 #: ../fish/guestfish-actions.pod:4722
13970 msgid "tar-in"
13971 msgstr ""
13972
13973 #. type: verbatim
13974 #: ../fish/guestfish-actions.pod:4724
13975 #, no-wrap
13976 msgid ""
13977 " tar-in (tarfile|-) directory\n"
13978 "\n"
13979 msgstr ""
13980
13981 #. type: textblock
13982 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7160
13983 msgid ""
13984 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13985 "tar file) into C<directory>."
13986 msgstr ""
13987
13988 #. type: textblock
13989 #: ../fish/guestfish-actions.pod:4729
13990 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13991 msgstr ""
13992
13993 #. type: =head2
13994 #: ../fish/guestfish-actions.pod:4734
13995 msgid "tar-out"
13996 msgstr ""
13997
13998 #. type: verbatim
13999 #: ../fish/guestfish-actions.pod:4736
14000 #, no-wrap
14001 msgid ""
14002 " tar-out directory (tarfile|-)\n"
14003 "\n"
14004 msgstr ""
14005
14006 #. type: textblock
14007 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7177
14008 msgid ""
14009 "This command packs the contents of C<directory> and downloads it to local "
14010 "file C<tarfile>."
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../fish/guestfish-actions.pod:4741
14015 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
14016 msgstr ""
14017
14018 #. type: =head2
14019 #: ../fish/guestfish-actions.pod:4746
14020 msgid "tgz-in"
14021 msgstr ""
14022
14023 #. type: verbatim
14024 #: ../fish/guestfish-actions.pod:4748
14025 #, no-wrap
14026 msgid ""
14027 " tgz-in (tarball|-) directory\n"
14028 "\n"
14029 msgstr ""
14030
14031 #. type: textblock
14032 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7194
14033 msgid ""
14034 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
14035 "tar file) into C<directory>."
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:4753
14040 msgid "To upload an uncompressed tarball, use L</tar-in>."
14041 msgstr ""
14042
14043 #. type: =head2
14044 #: ../fish/guestfish-actions.pod:4757
14045 msgid "tgz-out"
14046 msgstr ""
14047
14048 #. type: verbatim
14049 #: ../fish/guestfish-actions.pod:4759
14050 #, no-wrap
14051 msgid ""
14052 " tgz-out directory (tarball|-)\n"
14053 "\n"
14054 msgstr ""
14055
14056 #. type: textblock
14057 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7210
14058 msgid ""
14059 "This command packs the contents of C<directory> and downloads it to local "
14060 "file C<tarball>."
14061 msgstr ""
14062
14063 #. type: textblock
14064 #: ../fish/guestfish-actions.pod:4764
14065 msgid "To download an uncompressed tarball, use L</tar-out>."
14066 msgstr ""
14067
14068 #. type: =head2
14069 #: ../fish/guestfish-actions.pod:4768
14070 msgid "touch"
14071 msgstr ""
14072
14073 #. type: verbatim
14074 #: ../fish/guestfish-actions.pod:4770
14075 #, no-wrap
14076 msgid ""
14077 " touch path\n"
14078 "\n"
14079 msgstr ""
14080
14081 #. type: textblock
14082 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7225
14083 msgid ""
14084 "Touch acts like the L<touch(1)> command.  It can be used to update the "
14085 "timestamps on a file, or, if the file does not exist, to create a new "
14086 "zero-length file."
14087 msgstr ""
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7229
14091 msgid ""
14092 "This command only works on regular files, and will fail on other file types "
14093 "such as directories, symbolic links, block special etc."
14094 msgstr ""
14095
14096 #. type: =head2
14097 #: ../fish/guestfish-actions.pod:4779
14098 msgid "truncate"
14099 msgstr ""
14100
14101 #. type: verbatim
14102 #: ../fish/guestfish-actions.pod:4781
14103 #, no-wrap
14104 msgid ""
14105 " truncate path\n"
14106 "\n"
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7242
14111 msgid ""
14112 "This command truncates C<path> to a zero-length file.  The file must exist "
14113 "already."
14114 msgstr ""
14115
14116 #. type: =head2
14117 #: ../fish/guestfish-actions.pod:4786
14118 msgid "truncate-size"
14119 msgstr ""
14120
14121 #. type: verbatim
14122 #: ../fish/guestfish-actions.pod:4788
14123 #, no-wrap
14124 msgid ""
14125 " truncate-size path size\n"
14126 "\n"
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7256
14131 msgid ""
14132 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14133 "already."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:4793
14138 msgid ""
14139 "If the current file size is less than C<size> then the file is extended to "
14140 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14141 "blocks are not allocated for the file until you write to it).  To create a "
14142 "non-sparse file of zeroes, use L</fallocate64> instead."
14143 msgstr ""
14144
14145 #. type: =head2
14146 #: ../fish/guestfish-actions.pod:4799
14147 msgid "tune2fs-l"
14148 msgstr ""
14149
14150 #. type: verbatim
14151 #: ../fish/guestfish-actions.pod:4801
14152 #, no-wrap
14153 msgid ""
14154 " tune2fs-l device\n"
14155 "\n"
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7275
14160 msgid ""
14161 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14162 "C<device>."
14163 msgstr ""
14164
14165 #. type: textblock
14166 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7278
14167 msgid ""
14168 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14169 "for more details.  The list of fields returned isn't clearly defined, and "
14170 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14171 "and the filesystem itself."
14172 msgstr ""
14173
14174 #. type: =head2
14175 #: ../fish/guestfish-actions.pod:4811
14176 msgid "txz-in"
14177 msgstr ""
14178
14179 #. type: verbatim
14180 #: ../fish/guestfish-actions.pod:4813
14181 #, no-wrap
14182 msgid ""
14183 " txz-in (tarball|-) directory\n"
14184 "\n"
14185 msgstr ""
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7298
14189 msgid ""
14190 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14191 "tar file) into C<directory>."
14192 msgstr ""
14193
14194 #. type: =head2
14195 #: ../fish/guestfish-actions.pod:4820
14196 msgid "txz-out"
14197 msgstr ""
14198
14199 #. type: verbatim
14200 #: ../fish/guestfish-actions.pod:4822
14201 #, no-wrap
14202 msgid ""
14203 " txz-out directory (tarball|-)\n"
14204 "\n"
14205 msgstr ""
14206
14207 #. type: textblock
14208 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7312
14209 msgid ""
14210 "This command packs the contents of C<directory> and downloads it to local "
14211 "file C<tarball> (as an xz compressed tar archive)."
14212 msgstr ""
14213
14214 #. type: =head2
14215 #: ../fish/guestfish-actions.pod:4829
14216 msgid "umask"
14217 msgstr ""
14218
14219 #. type: verbatim
14220 #: ../fish/guestfish-actions.pod:4831
14221 #, no-wrap
14222 msgid ""
14223 " umask mask\n"
14224 "\n"
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
14229 msgid ""
14230 "This function sets the mask used for creating new files and device nodes to "
14231 "C<mask & 0777>."
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7328
14236 msgid ""
14237 "Typical umask values would be C<022> which creates new files with "
14238 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14239 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7333
14244 msgid ""
14245 "The default umask is C<022>.  This is important because it means that "
14246 "directories and device nodes will be created with C<0644> or C<0755> mode "
14247 "even if you specify C<0777>."
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:4845
14252 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7340
14257 msgid "This call returns the previous umask."
14258 msgstr ""
14259
14260 #. type: =head2
14261 #: ../fish/guestfish-actions.pod:4850
14262 msgid "umount"
14263 msgstr ""
14264
14265 #. type: =head2
14266 #: ../fish/guestfish-actions.pod:4852
14267 msgid "unmount"
14268 msgstr ""
14269
14270 #. type: verbatim
14271 #: ../fish/guestfish-actions.pod:4854
14272 #, no-wrap
14273 msgid ""
14274 " umount pathordevice\n"
14275 "\n"
14276 msgstr ""
14277
14278 #. type: textblock
14279 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7352
14280 msgid ""
14281 "This unmounts the given filesystem.  The filesystem may be specified either "
14282 "by its mountpoint (path) or the device which contains the filesystem."
14283 msgstr ""
14284
14285 #. type: =head2
14286 #: ../fish/guestfish-actions.pod:4860
14287 msgid "umount-all"
14288 msgstr ""
14289
14290 #. type: =head2
14291 #: ../fish/guestfish-actions.pod:4862
14292 msgid "unmount-all"
14293 msgstr ""
14294
14295 #. type: verbatim
14296 #: ../fish/guestfish-actions.pod:4864
14297 #, no-wrap
14298 msgid ""
14299 " umount-all\n"
14300 "\n"
14301 msgstr ""
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7365
14305 msgid "This unmounts all mounted filesystems."
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7367
14310 msgid "Some internal mounts are not unmounted by this call."
14311 msgstr ""
14312
14313 #. type: =head2
14314 #: ../fish/guestfish-actions.pod:4870
14315 msgid "upload"
14316 msgstr ""
14317
14318 #. type: verbatim
14319 #: ../fish/guestfish-actions.pod:4872
14320 #, no-wrap
14321 msgid ""
14322 " upload (filename|-) remotefilename\n"
14323 "\n"
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7380 ../src/guestfs-actions.pod:7404
14328 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14329 msgstr ""
14330
14331 #. type: textblock
14332 #: ../fish/guestfish-actions.pod:4879
14333 msgid "See also L</download>."
14334 msgstr ""
14335
14336 #. type: =head2
14337 #: ../fish/guestfish-actions.pod:4883
14338 msgid "upload-offset"
14339 msgstr ""
14340
14341 #. type: verbatim
14342 #: ../fish/guestfish-actions.pod:4885
14343 #, no-wrap
14344 msgid ""
14345 " upload-offset (filename|-) remotefilename offset\n"
14346 "\n"
14347 msgstr ""
14348
14349 #. type: textblock
14350 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7407
14351 msgid ""
14352 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14353 "The intention is to overwrite parts of existing files or devices, although "
14354 "if a non-existant file is specified then it is created with a \"hole\" "
14355 "before C<offset>.  The size of the data written is implicit in the size of "
14356 "the source C<filename>."
14357 msgstr ""
14358
14359 #. type: textblock
14360 #: ../fish/guestfish-actions.pod:4897
14361 msgid ""
14362 "Note that there is no limit on the amount of data that can be uploaded with "
14363 "this call, unlike with L</pwrite>, and this call always writes the full "
14364 "amount unless an error occurs."
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../fish/guestfish-actions.pod:4902
14369 msgid "See also L</upload>, L</pwrite>."
14370 msgstr ""
14371
14372 #. type: =head2
14373 #: ../fish/guestfish-actions.pod:4906
14374 msgid "utimens"
14375 msgstr ""
14376
14377 #. type: verbatim
14378 #: ../fish/guestfish-actions.pod:4908
14379 #, no-wrap
14380 msgid ""
14381 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14382 "\n"
14383 msgstr ""
14384
14385 #. type: textblock
14386 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7440
14387 msgid "This command sets the timestamps of a file with nanosecond precision."
14388 msgstr ""
14389
14390 #. type: textblock
14391 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7443
14392 msgid ""
14393 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14394 "from the epoch."
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7446
14399 msgid ""
14400 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14401 "nanoseconds from the epoch."
14402 msgstr ""
14403
14404 #. type: textblock
14405 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7449
14406 msgid ""
14407 "If the C<*nsecs> field contains the special value C<-1> then the "
14408 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14409 "ignored in this case)."
14410 msgstr ""
14411
14412 #. type: textblock
14413 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
14414 msgid ""
14415 "If the C<*nsecs> field contains the special value C<-2> then the "
14416 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14417 "in this case)."
14418 msgstr ""
14419
14420 #. type: =head2
14421 #: ../fish/guestfish-actions.pod:4927
14422 msgid "version"
14423 msgstr ""
14424
14425 #. type: verbatim
14426 #: ../fish/guestfish-actions.pod:4929
14427 #, no-wrap
14428 msgid ""
14429 " version\n"
14430 "\n"
14431 msgstr ""
14432
14433 #. type: textblock
14434 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7466
14435 msgid "Return the libguestfs version number that the program is linked against."
14436 msgstr ""
14437
14438 #. type: textblock
14439 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7469
14440 msgid ""
14441 "Note that because of dynamic linking this is not necessarily the version of "
14442 "libguestfs that you compiled against.  You can compile the program, and then "
14443 "at runtime dynamically link against a completely different C<libguestfs.so> "
14444 "library."
14445 msgstr ""
14446
14447 #. type: textblock
14448 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7474
14449 msgid ""
14450 "This call was added in version C<1.0.58>.  In previous versions of "
14451 "libguestfs there was no way to get the version number.  From C code you can "
14452 "use dynamic linker functions to find out if this symbol exists (if it "
14453 "doesn't, then it's an earlier version)."
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7480
14458 msgid ""
14459 "The call returns a structure with four elements.  The first three (C<major>, "
14460 "C<minor> and C<release>) are numbers and correspond to the usual version "
14461 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14462 "but may be used for distro-specific information."
14463 msgstr ""
14464
14465 #. type: textblock
14466 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7486
14467 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14468 msgstr ""
14469
14470 #. type: textblock
14471 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7489
14472 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14473 msgstr ""
14474
14475 #. type: textblock
14476 #: ../fish/guestfish-actions.pod:4956
14477 msgid ""
14478 "I<Note:> Don't use this call to test for availability of features.  In "
14479 "enterprise distributions we backport features from later versions into "
14480 "earlier versions, making this an unreliable way to test for features.  Use "
14481 "L</available> instead."
14482 msgstr ""
14483
14484 #. type: =head2
14485 #: ../fish/guestfish-actions.pod:4962
14486 msgid "vfs-label"
14487 msgstr ""
14488
14489 #. type: verbatim
14490 #: ../fish/guestfish-actions.pod:4964
14491 #, no-wrap
14492 msgid ""
14493 " vfs-label device\n"
14494 "\n"
14495 msgstr ""
14496
14497 #. type: textblock
14498 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7509
14499 msgid "This returns the filesystem label of the filesystem on C<device>."
14500 msgstr ""
14501
14502 #. type: textblock
14503 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7512
14504 msgid "If the filesystem is unlabeled, this returns the empty string."
14505 msgstr ""
14506
14507 #. type: textblock
14508 #: ../fish/guestfish-actions.pod:4971
14509 msgid "To find a filesystem from the label, use L</findfs-label>."
14510 msgstr ""
14511
14512 #. type: =head2
14513 #: ../fish/guestfish-actions.pod:4973
14514 msgid "vfs-type"
14515 msgstr ""
14516
14517 #. type: verbatim
14518 #: ../fish/guestfish-actions.pod:4975
14519 #, no-wrap
14520 msgid ""
14521 " vfs-type device\n"
14522 "\n"
14523 msgstr ""
14524
14525 #. type: textblock
14526 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7527
14527 msgid ""
14528 "This command gets the filesystem type corresponding to the filesystem on "
14529 "C<device>."
14530 msgstr ""
14531
14532 #. type: textblock
14533 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7530
14534 msgid ""
14535 "For most filesystems, the result is the name of the Linux VFS module which "
14536 "would be used to mount this filesystem if you mounted it without specifying "
14537 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14538 msgstr ""
14539
14540 #. type: =head2
14541 #: ../fish/guestfish-actions.pod:4985
14542 msgid "vfs-uuid"
14543 msgstr ""
14544
14545 #. type: verbatim
14546 #: ../fish/guestfish-actions.pod:4987
14547 #, no-wrap
14548 msgid ""
14549 " vfs-uuid device\n"
14550 "\n"
14551 msgstr ""
14552
14553 #. type: textblock
14554 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7546
14555 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14556 msgstr ""
14557
14558 #. type: textblock
14559 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7549
14560 msgid "If the filesystem does not have a UUID, this returns the empty string."
14561 msgstr ""
14562
14563 #. type: textblock
14564 #: ../fish/guestfish-actions.pod:4994
14565 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14566 msgstr ""
14567
14568 #. type: =head2
14569 #: ../fish/guestfish-actions.pod:4996
14570 msgid "vg-activate"
14571 msgstr ""
14572
14573 #. type: verbatim
14574 #: ../fish/guestfish-actions.pod:4998
14575 #, no-wrap
14576 msgid ""
14577 " vg-activate true|false 'volgroups ...'\n"
14578 "\n"
14579 msgstr ""
14580
14581 #. type: textblock
14582 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7565
14583 msgid ""
14584 "This command activates or (if C<activate> is false) deactivates all logical "
14585 "volumes in the listed volume groups C<volgroups>."
14586 msgstr ""
14587
14588 #. type: textblock
14589 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7568
14590 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14591 msgstr ""
14592
14593 #. type: textblock
14594 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
14595 msgid ""
14596 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14597 "activated or deactivated."
14598 msgstr ""
14599
14600 #. type: =head2
14601 #: ../fish/guestfish-actions.pod:5008
14602 msgid "vg-activate-all"
14603 msgstr ""
14604
14605 #. type: verbatim
14606 #: ../fish/guestfish-actions.pod:5010
14607 #, no-wrap
14608 msgid ""
14609 " vg-activate-all true|false\n"
14610 "\n"
14611 msgstr ""
14612
14613 #. type: textblock
14614 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7583
14615 msgid ""
14616 "This command activates or (if C<activate> is false) deactivates all logical "
14617 "volumes in all volume groups."
14618 msgstr ""
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7586
14622 msgid "This command is the same as running C<vgchange -a y|n>"
14623 msgstr ""
14624
14625 #. type: =head2
14626 #: ../fish/guestfish-actions.pod:5017
14627 msgid "vgcreate"
14628 msgstr ""
14629
14630 #. type: verbatim
14631 #: ../fish/guestfish-actions.pod:5019
14632 #, no-wrap
14633 msgid ""
14634 " vgcreate volgroup 'physvols ...'\n"
14635 "\n"
14636 msgstr ""
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7599
14640 msgid ""
14641 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14642 "of physical volumes C<physvols>."
14643 msgstr ""
14644
14645 #. type: =head2
14646 #: ../fish/guestfish-actions.pod:5024
14647 msgid "vglvuuids"
14648 msgstr ""
14649
14650 #. type: verbatim
14651 #: ../fish/guestfish-actions.pod:5026
14652 #, no-wrap
14653 msgid ""
14654 " vglvuuids vgname\n"
14655 "\n"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7612
14660 msgid ""
14661 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14662 "volumes created in this volume group."
14663 msgstr ""
14664
14665 #. type: textblock
14666 #: ../fish/guestfish-actions.pod:5031
14667 msgid ""
14668 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14669 "logical volumes and volume groups."
14670 msgstr ""
14671
14672 #. type: textblock
14673 #: ../fish/guestfish-actions.pod:5034
14674 msgid "See also L</vgpvuuids>."
14675 msgstr ""
14676
14677 #. type: =head2
14678 #: ../fish/guestfish-actions.pod:5036
14679 msgid "vgpvuuids"
14680 msgstr ""
14681
14682 #. type: verbatim
14683 #: ../fish/guestfish-actions.pod:5038
14684 #, no-wrap
14685 msgid ""
14686 " vgpvuuids vgname\n"
14687 "\n"
14688 msgstr ""
14689
14690 #. type: textblock
14691 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7632
14692 msgid ""
14693 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14694 "volumes that this volume group resides on."
14695 msgstr ""
14696
14697 #. type: textblock
14698 #: ../fish/guestfish-actions.pod:5043
14699 msgid ""
14700 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14701 "physical volumes and volume groups."
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:5046
14706 msgid "See also L</vglvuuids>."
14707 msgstr ""
14708
14709 #. type: =head2
14710 #: ../fish/guestfish-actions.pod:5048
14711 msgid "vgremove"
14712 msgstr ""
14713
14714 #. type: verbatim
14715 #: ../fish/guestfish-actions.pod:5050
14716 #, no-wrap
14717 msgid ""
14718 " vgremove vgname\n"
14719 "\n"
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7652
14724 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14725 msgstr ""
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7654
14729 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14730 msgstr ""
14731
14732 #. type: =head2
14733 #: ../fish/guestfish-actions.pod:5057
14734 msgid "vgrename"
14735 msgstr ""
14736
14737 #. type: verbatim
14738 #: ../fish/guestfish-actions.pod:5059
14739 #, no-wrap
14740 msgid ""
14741 " vgrename volgroup newvolgroup\n"
14742 "\n"
14743 msgstr ""
14744
14745 #. type: textblock
14746 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7668
14747 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14748 msgstr ""
14749
14750 #. type: =head2
14751 #: ../fish/guestfish-actions.pod:5063
14752 msgid "vgs"
14753 msgstr ""
14754
14755 #. type: verbatim
14756 #: ../fish/guestfish-actions.pod:5065
14757 #, no-wrap
14758 msgid ""
14759 " vgs\n"
14760 "\n"
14761 msgstr ""
14762
14763 #. type: textblock
14764 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7679
14765 msgid ""
14766 "List all the volumes groups detected.  This is the equivalent of the "
14767 "L<vgs(8)> command."
14768 msgstr ""
14769
14770 #. type: textblock
14771 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7682
14772 msgid ""
14773 "This returns a list of just the volume group names that were detected "
14774 "(eg. C<VolGroup00>)."
14775 msgstr ""
14776
14777 #. type: textblock
14778 #: ../fish/guestfish-actions.pod:5073
14779 msgid "See also L</vgs-full>."
14780 msgstr ""
14781
14782 #. type: =head2
14783 #: ../fish/guestfish-actions.pod:5075
14784 msgid "vgs-full"
14785 msgstr ""
14786
14787 #. type: verbatim
14788 #: ../fish/guestfish-actions.pod:5077
14789 #, no-wrap
14790 msgid ""
14791 " vgs-full\n"
14792 "\n"
14793 msgstr ""
14794
14795 #. type: textblock
14796 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7698
14797 msgid ""
14798 "List all the volumes groups detected.  This is the equivalent of the "
14799 "L<vgs(8)> command.  The \"full\" version includes all fields."
14800 msgstr ""
14801
14802 #. type: =head2
14803 #: ../fish/guestfish-actions.pod:5082
14804 msgid "vgscan"
14805 msgstr ""
14806
14807 #. type: verbatim
14808 #: ../fish/guestfish-actions.pod:5084
14809 #, no-wrap
14810 msgid ""
14811 " vgscan\n"
14812 "\n"
14813 msgstr ""
14814
14815 #. type: textblock
14816 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7712
14817 msgid ""
14818 "This rescans all block devices and rebuilds the list of LVM physical "
14819 "volumes, volume groups and logical volumes."
14820 msgstr ""
14821
14822 #. type: =head2
14823 #: ../fish/guestfish-actions.pod:5089
14824 msgid "vguuid"
14825 msgstr ""
14826
14827 #. type: verbatim
14828 #: ../fish/guestfish-actions.pod:5091
14829 #, no-wrap
14830 msgid ""
14831 " vguuid vgname\n"
14832 "\n"
14833 msgstr ""
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7725
14837 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14838 msgstr ""
14839
14840 #. type: =head2
14841 #: ../fish/guestfish-actions.pod:5095
14842 msgid "wc-c"
14843 msgstr ""
14844
14845 #. type: verbatim
14846 #: ../fish/guestfish-actions.pod:5097
14847 #, no-wrap
14848 msgid ""
14849 " wc-c path\n"
14850 "\n"
14851 msgstr ""
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7765
14855 msgid ""
14856 "This command counts the characters in a file, using the C<wc -c> external "
14857 "command."
14858 msgstr ""
14859
14860 #. type: =head2
14861 #: ../fish/guestfish-actions.pod:5102
14862 msgid "wc-l"
14863 msgstr ""
14864
14865 #. type: verbatim
14866 #: ../fish/guestfish-actions.pod:5104
14867 #, no-wrap
14868 msgid ""
14869 " wc-l path\n"
14870 "\n"
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7778
14875 msgid ""
14876 "This command counts the lines in a file, using the C<wc -l> external "
14877 "command."
14878 msgstr ""
14879
14880 #. type: =head2
14881 #: ../fish/guestfish-actions.pod:5109
14882 msgid "wc-w"
14883 msgstr ""
14884
14885 #. type: verbatim
14886 #: ../fish/guestfish-actions.pod:5111
14887 #, no-wrap
14888 msgid ""
14889 " wc-w path\n"
14890 "\n"
14891 msgstr ""
14892
14893 #. type: textblock
14894 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7791
14895 msgid ""
14896 "This command counts the words in a file, using the C<wc -w> external "
14897 "command."
14898 msgstr ""
14899
14900 #. type: =head2
14901 #: ../fish/guestfish-actions.pod:5116
14902 msgid "write"
14903 msgstr ""
14904
14905 #. type: verbatim
14906 #: ../fish/guestfish-actions.pod:5118
14907 #, no-wrap
14908 msgid ""
14909 " write path content\n"
14910 "\n"
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7806
14915 msgid ""
14916 "This call creates a file called C<path>.  The content of the file is the "
14917 "string C<content> (which can contain any 8 bit data)."
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../fish/guestfish-actions.pod:5123
14922 msgid "See also L</write-append>."
14923 msgstr ""
14924
14925 #. type: =head2
14926 #: ../fish/guestfish-actions.pod:5128
14927 msgid "write-append"
14928 msgstr ""
14929
14930 #. type: verbatim
14931 #: ../fish/guestfish-actions.pod:5130
14932 #, no-wrap
14933 msgid ""
14934 " write-append path content\n"
14935 "\n"
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7826
14940 msgid ""
14941 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14942 "not exist, then a new file is created."
14943 msgstr ""
14944
14945 #. type: textblock
14946 #: ../fish/guestfish-actions.pod:5135
14947 msgid "See also L</write>."
14948 msgstr ""
14949
14950 #. type: =head2
14951 #: ../fish/guestfish-actions.pod:5140
14952 msgid "write-file"
14953 msgstr ""
14954
14955 #. type: verbatim
14956 #: ../fish/guestfish-actions.pod:5142
14957 #, no-wrap
14958 msgid ""
14959 " write-file path content size\n"
14960 "\n"
14961 msgstr ""
14962
14963 #. type: textblock
14964 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7853
14965 msgid ""
14966 "This call creates a file called C<path>.  The contents of the file is the "
14967 "string C<content> (which can contain any 8 bit data), with length C<size>."
14968 msgstr ""
14969
14970 #. type: textblock
14971 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7857
14972 msgid ""
14973 "As a special case, if C<size> is C<0> then the length is calculated using "
14974 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14975 msgstr ""
14976
14977 #. type: textblock
14978 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7861
14979 msgid ""
14980 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14981 "I<not> work, even if the length is specified."
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:5158
14986 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:5165
14991 msgid "zegrep"
14992 msgstr ""
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:5167
14996 #, no-wrap
14997 msgid ""
14998 " zegrep regex path\n"
14999 "\n"
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7878
15004 msgid "This calls the external C<zegrep> program and returns the matching lines."
15005 msgstr ""
15006
15007 #. type: =head2
15008 #: ../fish/guestfish-actions.pod:5175
15009 msgid "zegrepi"
15010 msgstr ""
15011
15012 #. type: verbatim
15013 #: ../fish/guestfish-actions.pod:5177
15014 #, no-wrap
15015 msgid ""
15016 " zegrepi regex path\n"
15017 "\n"
15018 msgstr ""
15019
15020 #. type: textblock
15021 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7897
15022 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
15023 msgstr ""
15024
15025 #. type: =head2
15026 #: ../fish/guestfish-actions.pod:5185
15027 msgid "zero"
15028 msgstr ""
15029
15030 #. type: verbatim
15031 #: ../fish/guestfish-actions.pod:5187
15032 #, no-wrap
15033 msgid ""
15034 " zero device\n"
15035 "\n"
15036 msgstr ""
15037
15038 #. type: textblock
15039 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7915
15040 msgid "This command writes zeroes over the first few blocks of C<device>."
15041 msgstr ""
15042
15043 #. type: textblock
15044 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7917
15045 msgid ""
15046 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
15047 "securely wipe the device).  It should be sufficient to remove any partition "
15048 "tables, filesystem superblocks and so on."
15049 msgstr ""
15050
15051 #. type: textblock
15052 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210 ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:7947
15053 msgid ""
15054 "If blocks are already zero, then this command avoids writing zeroes.  This "
15055 "prevents the underlying device from becoming non-sparse or growing "
15056 "unnecessarily."
15057 msgstr ""
15058
15059 #. type: textblock
15060 #: ../fish/guestfish-actions.pod:5199
15061 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
15062 msgstr ""
15063
15064 #. type: =head2
15065 #: ../fish/guestfish-actions.pod:5202
15066 msgid "zero-device"
15067 msgstr ""
15068
15069 #. type: verbatim
15070 #: ../fish/guestfish-actions.pod:5204
15071 #, no-wrap
15072 msgid ""
15073 " zero-device device\n"
15074 "\n"
15075 msgstr ""
15076
15077 #. type: textblock
15078 #: ../fish/guestfish-actions.pod:5206
15079 msgid ""
15080 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
15081 "which just zeroes the first few blocks of a device."
15082 msgstr ""
15083
15084 #. type: =head2
15085 #: ../fish/guestfish-actions.pod:5217
15086 msgid "zerofree"
15087 msgstr ""
15088
15089 #. type: verbatim
15090 #: ../fish/guestfish-actions.pod:5219
15091 #, no-wrap
15092 msgid ""
15093 " zerofree device\n"
15094 "\n"
15095 msgstr ""
15096
15097 #. type: textblock
15098 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7969
15099 msgid ""
15100 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
15101 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
15102 "possible to compress the filesystem more effectively."
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7974
15107 msgid "You should B<not> run this program if the filesystem is mounted."
15108 msgstr ""
15109
15110 #. type: textblock
15111 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7977
15112 msgid ""
15113 "It is possible that using this program can damage the filesystem or data on "
15114 "the filesystem."
15115 msgstr ""
15116
15117 #. type: =head2
15118 #: ../fish/guestfish-actions.pod:5232
15119 msgid "zfgrep"
15120 msgstr ""
15121
15122 #. type: verbatim
15123 #: ../fish/guestfish-actions.pod:5234
15124 #, no-wrap
15125 msgid ""
15126 " zfgrep pattern path\n"
15127 "\n"
15128 msgstr ""
15129
15130 #. type: textblock
15131 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7991
15132 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15133 msgstr ""
15134
15135 #. type: =head2
15136 #: ../fish/guestfish-actions.pod:5242
15137 msgid "zfgrepi"
15138 msgstr ""
15139
15140 #. type: verbatim
15141 #: ../fish/guestfish-actions.pod:5244
15142 #, no-wrap
15143 msgid ""
15144 " zfgrepi pattern path\n"
15145 "\n"
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8010
15150 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15151 msgstr ""
15152
15153 #. type: =head2
15154 #: ../fish/guestfish-actions.pod:5252
15155 msgid "zfile"
15156 msgstr ""
15157
15158 #. type: verbatim
15159 #: ../fish/guestfish-actions.pod:5254
15160 #, no-wrap
15161 msgid ""
15162 " zfile meth path\n"
15163 "\n"
15164 msgstr ""
15165
15166 #. type: textblock
15167 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8036
15168 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15169 msgstr ""
15170
15171 #. type: textblock
15172 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8039
15173 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15174 msgstr ""
15175
15176 #. type: textblock
15177 #: ../fish/guestfish-actions.pod:5261
15178 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
15179 msgstr ""
15180
15181 #. type: textblock
15182 #: ../fish/guestfish-actions.pod:5264
15183 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
15184 msgstr ""
15185
15186 #. type: =head2
15187 #: ../fish/guestfish-actions.pod:5271
15188 msgid "zgrep"
15189 msgstr ""
15190
15191 #. type: verbatim
15192 #: ../fish/guestfish-actions.pod:5273
15193 #, no-wrap
15194 msgid ""
15195 " zgrep regex path\n"
15196 "\n"
15197 msgstr ""
15198
15199 #. type: textblock
15200 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8056
15201 msgid "This calls the external C<zgrep> program and returns the matching lines."
15202 msgstr ""
15203
15204 #. type: =head2
15205 #: ../fish/guestfish-actions.pod:5281
15206 msgid "zgrepi"
15207 msgstr ""
15208
15209 #. type: verbatim
15210 #: ../fish/guestfish-actions.pod:5283
15211 #, no-wrap
15212 msgid ""
15213 " zgrepi regex path\n"
15214 "\n"
15215 msgstr ""
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8075
15219 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15220 msgstr ""
15221
15222 #. type: =head2
15223 #: ../fish/guestfish-commands.pod:1
15224 msgid "alloc"
15225 msgstr ""
15226
15227 #. type: =head2
15228 #: ../fish/guestfish-commands.pod:3
15229 msgid "allocate"
15230 msgstr ""
15231
15232 #. type: verbatim
15233 #: ../fish/guestfish-commands.pod:5
15234 #, no-wrap
15235 msgid ""
15236 " alloc filename size\n"
15237 "\n"
15238 msgstr ""
15239
15240 #. type: textblock
15241 #: ../fish/guestfish-commands.pod:7
15242 msgid ""
15243 "This creates an empty (zeroed) file of the given size, and then adds so it "
15244 "can be further examined."
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15249 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15254 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15255 msgstr ""
15256
15257 #. type: textblock
15258 #: ../fish/guestfish-commands.pod:14
15259 msgid ""
15260 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15261 "image, see L</PREPARED DISK IMAGES>."
15262 msgstr ""
15263
15264 #. type: =head2
15265 #: ../fish/guestfish-commands.pod:17
15266 msgid "copy-in"
15267 msgstr ""
15268
15269 #. type: verbatim
15270 #: ../fish/guestfish-commands.pod:19
15271 #, no-wrap
15272 msgid ""
15273 " copy-in local [local ...] /remotedir\n"
15274 "\n"
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-commands.pod:21
15279 msgid ""
15280 "C<copy-in> copies local files or directories recursively into the disk "
15281 "image, placing them in the directory called C</remotedir> (which must "
15282 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15283 "other commands as necessary."
15284 msgstr ""
15285
15286 #. type: textblock
15287 #: ../fish/guestfish-commands.pod:26
15288 msgid ""
15289 "Multiple local files and directories can be specified, but the last "
15290 "parameter must always be a remote directory.  Wildcards cannot be used."
15291 msgstr ""
15292
15293 #. type: =head2
15294 #: ../fish/guestfish-commands.pod:30
15295 msgid "copy-out"
15296 msgstr ""
15297
15298 #. type: verbatim
15299 #: ../fish/guestfish-commands.pod:32
15300 #, no-wrap
15301 msgid ""
15302 " copy-out remote [remote ...] localdir\n"
15303 "\n"
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-commands.pod:34
15308 msgid ""
15309 "C<copy-out> copies remote files or directories recursively out of the disk "
15310 "image, placing them on the host disk in a local directory called C<localdir> "
15311 "(which must exist).  This guestfish meta-command turns into a sequence of "
15312 "L</download>, L</tar-out> and other commands as necessary."
15313 msgstr ""
15314
15315 #. type: textblock
15316 #: ../fish/guestfish-commands.pod:40
15317 msgid ""
15318 "Multiple remote files and directories can be specified, but the last "
15319 "parameter must always be a local directory.  To download to the current "
15320 "directory, use C<.> as in:"
15321 msgstr ""
15322
15323 #. type: verbatim
15324 #: ../fish/guestfish-commands.pod:44
15325 #, no-wrap
15326 msgid ""
15327 " copy-out /home .\n"
15328 "\n"
15329 msgstr ""
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-commands.pod:46
15333 msgid ""
15334 "Wildcards cannot be used in the ordinary command, but you can use them with "
15335 "the help of L</glob> like this:"
15336 msgstr ""
15337
15338 #. type: verbatim
15339 #: ../fish/guestfish-commands.pod:49
15340 #, no-wrap
15341 msgid ""
15342 " glob copy-out /home/* .\n"
15343 "\n"
15344 msgstr ""
15345
15346 #. type: =head2
15347 #: ../fish/guestfish-commands.pod:51
15348 msgid "display"
15349 msgstr ""
15350
15351 #. type: verbatim
15352 #: ../fish/guestfish-commands.pod:53
15353 #, no-wrap
15354 msgid ""
15355 " display filename\n"
15356 "\n"
15357 msgstr ""
15358
15359 #. type: textblock
15360 #: ../fish/guestfish-commands.pod:55
15361 msgid ""
15362 "Use C<display> (a graphical display program) to display an image file.  It "
15363 "downloads the file, and runs C<display> on it."
15364 msgstr ""
15365
15366 #. type: textblock
15367 #: ../fish/guestfish-commands.pod:58
15368 msgid ""
15369 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15370 "environment variable.  For example to use the GNOME display program:"
15371 msgstr ""
15372
15373 #. type: verbatim
15374 #: ../fish/guestfish-commands.pod:61
15375 #, no-wrap
15376 msgid ""
15377 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15378 "\n"
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-commands.pod:63
15383 msgid "See also L<display(1)>."
15384 msgstr ""
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-commands.pod:65
15388 msgid "echo"
15389 msgstr ""
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-commands.pod:67
15393 #, no-wrap
15394 msgid ""
15395 " echo [params ...]\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-commands.pod:69
15401 msgid "This echos the parameters to the terminal."
15402 msgstr ""
15403
15404 #. type: =head2
15405 #: ../fish/guestfish-commands.pod:71
15406 msgid "edit"
15407 msgstr ""
15408
15409 #. type: =head2
15410 #: ../fish/guestfish-commands.pod:73
15411 msgid "vi"
15412 msgstr ""
15413
15414 #. type: =head2
15415 #: ../fish/guestfish-commands.pod:75
15416 msgid "emacs"
15417 msgstr ""
15418
15419 #. type: verbatim
15420 #: ../fish/guestfish-commands.pod:77
15421 #, no-wrap
15422 msgid ""
15423 " edit filename\n"
15424 "\n"
15425 msgstr ""
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-commands.pod:79
15429 msgid ""
15430 "This is used to edit a file.  It downloads the file, edits it locally using "
15431 "your editor, then uploads the result."
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-commands.pod:82
15436 msgid ""
15437 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15438 "or C<emacs> you will get those corresponding editors."
15439 msgstr ""
15440
15441 #. type: =head2
15442 #: ../fish/guestfish-commands.pod:86
15443 msgid "glob"
15444 msgstr ""
15445
15446 #. type: verbatim
15447 #: ../fish/guestfish-commands.pod:88
15448 #, no-wrap
15449 msgid ""
15450 " glob command args...\n"
15451 "\n"
15452 msgstr ""
15453
15454 #. type: textblock
15455 #: ../fish/guestfish-commands.pod:90
15456 msgid ""
15457 "Expand wildcards in any paths in the args list, and run C<command> "
15458 "repeatedly on each matching path."
15459 msgstr ""
15460
15461 #. type: textblock
15462 #: ../fish/guestfish-commands.pod:93
15463 msgid "See L</WILDCARDS AND GLOBBING>."
15464 msgstr ""
15465
15466 #. type: =head2
15467 #: ../fish/guestfish-commands.pod:95
15468 msgid "hexedit"
15469 msgstr ""
15470
15471 #. type: verbatim
15472 #: ../fish/guestfish-commands.pod:97
15473 #, no-wrap
15474 msgid ""
15475 " hexedit <filename|device>\n"
15476 " hexedit <filename|device> <max>\n"
15477 " hexedit <filename|device> <start> <max>\n"
15478 "\n"
15479 msgstr ""
15480
15481 #. type: textblock
15482 #: ../fish/guestfish-commands.pod:101
15483 msgid ""
15484 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15485 "device."
15486 msgstr ""
15487
15488 #. type: textblock
15489 #: ../fish/guestfish-commands.pod:104
15490 msgid ""
15491 "This command works by downloading potentially the whole file or device, "
15492 "editing it locally, then uploading it.  If the file or device is large, you "
15493 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15494 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15495 "usual modifiers allowed such as C<1M> (1 megabyte)."
15496 msgstr ""
15497
15498 #. type: textblock
15499 #: ../fish/guestfish-commands.pod:111
15500 msgid "For example to edit the first few sectors of a disk you might do:"
15501 msgstr ""
15502
15503 #. type: verbatim
15504 #: ../fish/guestfish-commands.pod:114
15505 #, no-wrap
15506 msgid ""
15507 " hexedit /dev/sda 1M\n"
15508 "\n"
15509 msgstr ""
15510
15511 #. type: textblock
15512 #: ../fish/guestfish-commands.pod:116
15513 msgid ""
15514 "which would allow you to edit anywhere within the first megabyte of the "
15515 "disk."
15516 msgstr ""
15517
15518 #. type: textblock
15519 #: ../fish/guestfish-commands.pod:119
15520 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15521 msgstr ""
15522
15523 #. type: verbatim
15524 #: ../fish/guestfish-commands.pod:121
15525 #, no-wrap
15526 msgid ""
15527 " hexedit /dev/sda1 0x400 0x400\n"
15528 "\n"
15529 msgstr ""
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-commands.pod:123
15533 msgid "(assuming the superblock is in the standard location)."
15534 msgstr ""
15535
15536 #. type: textblock
15537 #: ../fish/guestfish-commands.pod:125
15538 msgid ""
15539 "This command requires the external L<hexedit(1)> program.  You can specify "
15540 "another program to use by setting the C<HEXEDITOR> environment variable."
15541 msgstr ""
15542
15543 #. type: textblock
15544 #: ../fish/guestfish-commands.pod:129
15545 msgid "See also L</hexdump>."
15546 msgstr ""
15547
15548 #. type: =head2
15549 #: ../fish/guestfish-commands.pod:131
15550 msgid "lcd"
15551 msgstr ""
15552
15553 #. type: verbatim
15554 #: ../fish/guestfish-commands.pod:133
15555 #, no-wrap
15556 msgid ""
15557 " lcd directory\n"
15558 "\n"
15559 msgstr ""
15560
15561 #. type: textblock
15562 #: ../fish/guestfish-commands.pod:135
15563 msgid "Change the local directory, ie. the current directory of guestfish itself."
15564 msgstr ""
15565
15566 #. type: textblock
15567 #: ../fish/guestfish-commands.pod:138
15568 msgid "Note that C<!cd> won't do what you might expect."
15569 msgstr ""
15570
15571 #. type: =head2
15572 #: ../fish/guestfish-commands.pod:140
15573 msgid "man"
15574 msgstr ""
15575
15576 #. type: =head2
15577 #: ../fish/guestfish-commands.pod:142
15578 msgid "manual"
15579 msgstr ""
15580
15581 #. type: verbatim
15582 #: ../fish/guestfish-commands.pod:144
15583 #, no-wrap
15584 msgid ""
15585 "  man\n"
15586 "\n"
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-commands.pod:146
15591 msgid "Opens the manual page for guestfish."
15592 msgstr ""
15593
15594 #. type: =head2
15595 #: ../fish/guestfish-commands.pod:148
15596 msgid "more"
15597 msgstr ""
15598
15599 #. type: =head2
15600 #: ../fish/guestfish-commands.pod:150
15601 msgid "less"
15602 msgstr ""
15603
15604 #. type: verbatim
15605 #: ../fish/guestfish-commands.pod:152
15606 #, no-wrap
15607 msgid ""
15608 " more filename\n"
15609 "\n"
15610 msgstr ""
15611
15612 #. type: verbatim
15613 #: ../fish/guestfish-commands.pod:154
15614 #, no-wrap
15615 msgid ""
15616 " less filename\n"
15617 "\n"
15618 msgstr ""
15619
15620 #. type: textblock
15621 #: ../fish/guestfish-commands.pod:156
15622 msgid "This is used to view a file."
15623 msgstr ""
15624
15625 #. type: textblock
15626 #: ../fish/guestfish-commands.pod:158
15627 msgid ""
15628 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15629 "C<less> you will get the C<less> command specifically."
15630 msgstr ""
15631
15632 #. type: =head2
15633 #: ../fish/guestfish-commands.pod:161
15634 msgid "reopen"
15635 msgstr ""
15636
15637 #. type: verbatim
15638 #: ../fish/guestfish-commands.pod:163
15639 #, no-wrap
15640 msgid ""
15641 "  reopen\n"
15642 "\n"
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-commands.pod:165
15647 msgid ""
15648 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15649 "normally, because the handle is closed properly when guestfish exits.  "
15650 "However this is occasionally useful for testing."
15651 msgstr ""
15652
15653 #. type: =head2
15654 #: ../fish/guestfish-commands.pod:169
15655 msgid "setenv"
15656 msgstr ""
15657
15658 #. type: verbatim
15659 #: ../fish/guestfish-commands.pod:171
15660 #, no-wrap
15661 msgid ""
15662 "  setenv VAR value\n"
15663 "\n"
15664 msgstr ""
15665
15666 #. type: textblock
15667 #: ../fish/guestfish-commands.pod:173
15668 msgid "Set the environment variable C<VAR> to the string C<value>."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-commands.pod:175
15673 msgid "To print the value of an environment variable use a shell command such as:"
15674 msgstr ""
15675
15676 #. type: verbatim
15677 #: ../fish/guestfish-commands.pod:178
15678 #, no-wrap
15679 msgid ""
15680 " !echo $VAR\n"
15681 "\n"
15682 msgstr ""
15683
15684 #. type: =head2
15685 #: ../fish/guestfish-commands.pod:180
15686 msgid "sparse"
15687 msgstr ""
15688
15689 #. type: verbatim
15690 #: ../fish/guestfish-commands.pod:182
15691 #, no-wrap
15692 msgid ""
15693 " sparse filename size\n"
15694 "\n"
15695 msgstr ""
15696
15697 #. type: textblock
15698 #: ../fish/guestfish-commands.pod:184
15699 msgid ""
15700 "This creates an empty sparse file of the given size, and then adds so it can "
15701 "be further examined."
15702 msgstr ""
15703
15704 #. type: textblock
15705 #: ../fish/guestfish-commands.pod:187
15706 msgid ""
15707 "In all respects it works the same as the L</alloc> command, except that the "
15708 "image file is allocated sparsely, which means that disk blocks are not "
15709 "assigned to the file until they are needed.  Sparse disk files only use "
15710 "space when written to, but they are slower and there is a danger you could "
15711 "run out of real disk space during a write operation."
15712 msgstr ""
15713
15714 #. type: =head2
15715 #: ../fish/guestfish-commands.pod:197
15716 msgid "supported"
15717 msgstr ""
15718
15719 #. type: verbatim
15720 #: ../fish/guestfish-commands.pod:199
15721 #, no-wrap
15722 msgid ""
15723 " supported\n"
15724 "\n"
15725 msgstr ""
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-commands.pod:201
15729 msgid ""
15730 "This command returns a list of the optional groups known to the daemon, and "
15731 "indicates which ones are supported by this build of the libguestfs "
15732 "appliance."
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish-commands.pod:205
15737 msgid "See also L<guestfs(3)/AVAILABILITY>."
15738 msgstr ""
15739
15740 #. type: =head2
15741 #: ../fish/guestfish-commands.pod:207
15742 msgid "time"
15743 msgstr ""
15744
15745 #. type: verbatim
15746 #: ../fish/guestfish-commands.pod:209
15747 #, no-wrap
15748 msgid ""
15749 " time command args...\n"
15750 "\n"
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-commands.pod:211
15755 msgid ""
15756 "Run the command as usual, but print the elapsed time afterwards.  This can "
15757 "be useful for benchmarking operations."
15758 msgstr ""
15759
15760 #. type: =head2
15761 #: ../fish/guestfish-commands.pod:214
15762 msgid "unsetenv"
15763 msgstr ""
15764
15765 #. type: verbatim
15766 #: ../fish/guestfish-commands.pod:216
15767 #, no-wrap
15768 msgid ""
15769 "  unsetenv VAR\n"
15770 "\n"
15771 msgstr ""
15772
15773 #. type: textblock
15774 #: ../fish/guestfish-commands.pod:218
15775 msgid "Remove C<VAR> from the environment."
15776 msgstr ""
15777
15778 #. type: textblock
15779 #: ../fish/guestfish.pod:5
15780 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15781 msgstr ""
15782
15783 #. type: verbatim
15784 #: ../fish/guestfish.pod:9
15785 #, no-wrap
15786 msgid ""
15787 " guestfish [--options] [commands]\n"
15788 "\n"
15789 msgstr ""
15790
15791 #. type: verbatim
15792 #: ../fish/guestfish.pod:11
15793 #, no-wrap
15794 msgid ""
15795 " guestfish\n"
15796 "\n"
15797 msgstr ""
15798
15799 #. type: verbatim
15800 #: ../fish/guestfish.pod:13
15801 #, no-wrap
15802 msgid ""
15803 " guestfish [--ro|--rw] -a disk.img\n"
15804 "\n"
15805 msgstr ""
15806
15807 #. type: verbatim
15808 #: ../fish/guestfish.pod:15
15809 #, no-wrap
15810 msgid ""
15811 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15812 "\n"
15813 msgstr ""
15814
15815 #. type: verbatim
15816 #: ../fish/guestfish.pod:17
15817 #, no-wrap
15818 msgid ""
15819 " guestfish -d libvirt-domain\n"
15820 "\n"
15821 msgstr ""
15822
15823 #. type: verbatim
15824 #: ../fish/guestfish.pod:19
15825 #, no-wrap
15826 msgid ""
15827 " guestfish [--ro|--rw] -a disk.img -i\n"
15828 "\n"
15829 msgstr ""
15830
15831 #. type: verbatim
15832 #: ../fish/guestfish.pod:21
15833 #, no-wrap
15834 msgid ""
15835 " guestfish -d libvirt-domain -i\n"
15836 "\n"
15837 msgstr ""
15838
15839 #. type: textblock
15840 #: ../fish/guestfish.pod:25
15841 msgid ""
15842 "Using guestfish in read/write mode on live virtual machines can be "
15843 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15844 "option to use guestfish safely if the disk image or virtual machine might be "
15845 "live."
15846 msgstr ""
15847
15848 #. type: textblock
15849 #: ../fish/guestfish.pod:32
15850 msgid ""
15851 "Guestfish is a shell and command-line tool for examining and modifying "
15852 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15853 "functionality of the guestfs API, see L<guestfs(3)>."
15854 msgstr ""
15855
15856 #. type: textblock
15857 #: ../fish/guestfish.pod:36
15858 msgid ""
15859 "Guestfish gives you structured access to the libguestfs API, from shell "
15860 "scripts or the command line or interactively.  If you want to rescue a "
15861 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15862 "command."
15863 msgstr ""
15864
15865 #. type: =head2
15866 #: ../fish/guestfish.pod:43
15867 msgid "As an interactive shell"
15868 msgstr ""
15869
15870 #. type: verbatim
15871 #: ../fish/guestfish.pod:45
15872 #, no-wrap
15873 msgid ""
15874 " $ guestfish\n"
15875 " \n"
15876 msgstr ""
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish.pod:47
15880 #, no-wrap
15881 msgid ""
15882 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15883 " editing virtual machine filesystems.\n"
15884 " \n"
15885 msgstr ""
15886
15887 #. type: verbatim
15888 #: ../fish/guestfish.pod:50
15889 #, no-wrap
15890 msgid ""
15891 " Type: 'help' for a list of commands\n"
15892 "       'man' to read the manual\n"
15893 "       'quit' to quit the shell\n"
15894 " \n"
15895 msgstr ""
15896
15897 #. type: verbatim
15898 #: ../fish/guestfish.pod:54
15899 #, no-wrap
15900 msgid ""
15901 " ><fs> add-ro disk.img\n"
15902 " ><fs> run\n"
15903 " ><fs> list-filesystems\n"
15904 " /dev/sda1: ext4\n"
15905 " /dev/vg_guest/lv_root: ext4\n"
15906 " /dev/vg_guest/lv_swap: swap\n"
15907 " ><fs> mount /dev/vg_guest/lv_root /\n"
15908 " ><fs> cat /etc/fstab\n"
15909 " # /etc/fstab\n"
15910 " # Created by anaconda\n"
15911 " [...]\n"
15912 " ><fs> exit\n"
15913 "\n"
15914 msgstr ""
15915
15916 #. type: =head2
15917 #: ../fish/guestfish.pod:67
15918 msgid "From shell scripts"
15919 msgstr ""
15920
15921 #. type: textblock
15922 #: ../fish/guestfish.pod:69
15923 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15924 msgstr ""
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish.pod:71
15928 #, no-wrap
15929 msgid ""
15930 " guestfish <<_EOF_\n"
15931 " add disk.img\n"
15932 " run\n"
15933 " mount /dev/vg_guest/lv_root /\n"
15934 " write /etc/motd \"Welcome, new users\"\n"
15935 " _EOF_\n"
15936 "\n"
15937 msgstr ""
15938
15939 #. type: textblock
15940 #: ../fish/guestfish.pod:78
15941 msgid "List the LVM logical volumes in a disk image:"
15942 msgstr ""
15943
15944 #. type: verbatim
15945 #: ../fish/guestfish.pod:80
15946 #, no-wrap
15947 msgid ""
15948 " guestfish -a disk.img --ro <<_EOF_\n"
15949 " run\n"
15950 " lvs\n"
15951 " _EOF_\n"
15952 "\n"
15953 msgstr ""
15954
15955 #. type: textblock
15956 #: ../fish/guestfish.pod:85
15957 msgid "List all the filesystems in a disk image:"
15958 msgstr ""
15959
15960 #. type: verbatim
15961 #: ../fish/guestfish.pod:87
15962 #, no-wrap
15963 msgid ""
15964 " guestfish -a disk.img --ro <<_EOF_\n"
15965 " run\n"
15966 " list-filesystems\n"
15967 " _EOF_\n"
15968 "\n"
15969 msgstr ""
15970
15971 #. type: =head2
15972 #: ../fish/guestfish.pod:92
15973 msgid "On one command line"
15974 msgstr ""
15975
15976 #. type: textblock
15977 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15978 msgid "Update C</etc/resolv.conf> in a guest:"
15979 msgstr ""
15980
15981 #. type: verbatim
15982 #: ../fish/guestfish.pod:96
15983 #, no-wrap
15984 msgid ""
15985 " guestfish \\\n"
15986 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15987 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15988 "\n"
15989 msgstr ""
15990
15991 #. type: textblock
15992 #: ../fish/guestfish.pod:100
15993 msgid "Edit C</boot/grub/grub.conf> interactively:"
15994 msgstr ""
15995
15996 #. type: verbatim
15997 #: ../fish/guestfish.pod:102
15998 #, no-wrap
15999 msgid ""
16000 " guestfish --rw --add disk.img \\\n"
16001 "   --mount /dev/vg_guest/lv_root \\\n"
16002 "   --mount /dev/sda1:/boot \\\n"
16003 "   edit /boot/grub/grub.conf\n"
16004 "\n"
16005 msgstr ""
16006
16007 #. type: =head2
16008 #: ../fish/guestfish.pod:107
16009 msgid "Mount disks automatically"
16010 msgstr ""
16011
16012 #. type: textblock
16013 #: ../fish/guestfish.pod:109
16014 msgid ""
16015 "Use the I<-i> option to automatically mount the disks from a virtual "
16016 "machine:"
16017 msgstr ""
16018
16019 #. type: verbatim
16020 #: ../fish/guestfish.pod:112
16021 #, no-wrap
16022 msgid ""
16023 " guestfish --ro -a disk.img -i cat /etc/group\n"
16024 "\n"
16025 msgstr ""
16026
16027 #. type: verbatim
16028 #: ../fish/guestfish.pod:114
16029 #, no-wrap
16030 msgid ""
16031 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
16032 "\n"
16033 msgstr ""
16034
16035 #. type: textblock
16036 #: ../fish/guestfish.pod:116
16037 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
16038 msgstr ""
16039
16040 #. type: verbatim
16041 #: ../fish/guestfish.pod:118
16042 #, no-wrap
16043 msgid ""
16044 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
16045 "\n"
16046 msgstr ""
16047
16048 #. type: =head2
16049 #: ../fish/guestfish.pod:120
16050 msgid "As a script interpreter"
16051 msgstr ""
16052
16053 #. type: textblock
16054 #: ../fish/guestfish.pod:122
16055 msgid "Create a 100MB disk containing an ext2-formatted partition:"
16056 msgstr ""
16057
16058 #. type: verbatim
16059 #: ../fish/guestfish.pod:124
16060 #, no-wrap
16061 msgid ""
16062 " #!/usr/bin/guestfish -f\n"
16063 " sparse test1.img 100M\n"
16064 " run\n"
16065 " part-disk /dev/sda mbr\n"
16066 " mkfs ext2 /dev/sda1\n"
16067 "\n"
16068 msgstr ""
16069
16070 #. type: =head2
16071 #: ../fish/guestfish.pod:130
16072 msgid "Start with a prepared disk"
16073 msgstr ""
16074
16075 #. type: textblock
16076 #: ../fish/guestfish.pod:132
16077 msgid ""
16078 "An alternate way to create a 100MB disk called C<test1.img> containing a "
16079 "single ext2-formatted partition:"
16080 msgstr ""
16081
16082 #. type: verbatim
16083 #: ../fish/guestfish.pod:135
16084 #, no-wrap
16085 msgid ""
16086 " guestfish -N fs\n"
16087 "\n"
16088 msgstr ""
16089
16090 #. type: textblock
16091 #: ../fish/guestfish.pod:137
16092 msgid "To list what is available do:"
16093 msgstr ""
16094
16095 #. type: verbatim
16096 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
16097 #, no-wrap
16098 msgid ""
16099 " guestfish -N help | less\n"
16100 "\n"
16101 msgstr ""
16102
16103 #. type: =head2
16104 #: ../fish/guestfish.pod:141
16105 msgid "Remote control"
16106 msgstr ""
16107
16108 #. type: verbatim
16109 #: ../fish/guestfish.pod:143
16110 #, no-wrap
16111 msgid ""
16112 " eval \"`guestfish --listen`\"\n"
16113 " guestfish --remote add-ro disk.img\n"
16114 " guestfish --remote run\n"
16115 " guestfish --remote lvs\n"
16116 "\n"
16117 msgstr ""
16118
16119 #. type: textblock
16120 #: ../fish/guestfish.pod:154
16121 msgid "Displays general help on options."
16122 msgstr ""
16123
16124 #. type: =item
16125 #: ../fish/guestfish.pod:158
16126 msgid "B<--cmd-help>"
16127 msgstr ""
16128
16129 #. type: textblock
16130 #: ../fish/guestfish.pod:160
16131 msgid "Lists all available guestfish commands."
16132 msgstr ""
16133
16134 #. type: =item
16135 #: ../fish/guestfish.pod:162
16136 msgid "B<-h cmd>"
16137 msgstr ""
16138
16139 #. type: =item
16140 #: ../fish/guestfish.pod:164
16141 msgid "B<--cmd-help cmd>"
16142 msgstr ""
16143
16144 #. type: textblock
16145 #: ../fish/guestfish.pod:166
16146 msgid "Displays detailed help on a single command C<cmd>."
16147 msgstr ""
16148
16149 #. type: =item
16150 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16151 msgid "B<-a image>"
16152 msgstr ""
16153
16154 #. type: =item
16155 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16156 msgid "B<--add image>"
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../fish/guestfish.pod:172
16161 msgid "Add a block device or virtual machine image to the shell."
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../fish/guestfish.pod:177
16166 msgid ""
16167 "Using this flag is mostly equivalent to using the C<add> command, with "
16168 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16169 "the I<--format=...> flag was given."
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16174 msgid ""
16175 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16176 "URI to use.  The default is to use the default libvirt connection."
16177 msgstr ""
16178
16179 #. type: =item
16180 #: ../fish/guestfish.pod:189
16181 msgid "B<--csh>"
16182 msgstr ""
16183
16184 #. type: textblock
16185 #: ../fish/guestfish.pod:191
16186 msgid ""
16187 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16188 "section L</REMOTE CONTROL AND CSH> below."
16189 msgstr ""
16190
16191 #. type: =item
16192 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16193 msgid "B<-d libvirt-domain>"
16194 msgstr ""
16195
16196 #. type: =item
16197 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16198 msgid "B<--domain libvirt-domain>"
16199 msgstr ""
16200
16201 #. type: textblock
16202 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16203 msgid ""
16204 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16205 "used, then any libvirt domain can be used.  However in write mode, only "
16206 "libvirt domains which are shut down can be named here."
16207 msgstr ""
16208
16209 #. type: textblock
16210 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16211 msgid "Domain UUIDs can be used instead of names."
16212 msgstr ""
16213
16214 #. type: textblock
16215 #: ../fish/guestfish.pod:204
16216 msgid ""
16217 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16218 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16219 "if the I<--format:...> flag was given."
16220 msgstr ""
16221
16222 #. type: =item
16223 #: ../fish/guestfish.pod:208
16224 msgid "B<-D>"
16225 msgstr ""
16226
16227 #. type: =item
16228 #: ../fish/guestfish.pod:210
16229 msgid "B<--no-dest-paths>"
16230 msgstr ""
16231
16232 #. type: textblock
16233 #: ../fish/guestfish.pod:212
16234 msgid ""
16235 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16236 "to hit the tab key to complete paths on the guest filesystem, but this "
16237 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16238 "allow this feature to be disabled."
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16243 msgid ""
16244 "When prompting for keys and passphrases, guestfish normally turns echoing "
16245 "off so you cannot see what you are typing.  If you are not worried about "
16246 "Tempest attacks and there is no one else in the room you can specify this "
16247 "flag to see what you are typing."
16248 msgstr ""
16249
16250 #. type: =item
16251 #: ../fish/guestfish.pod:224
16252 msgid "B<-f file>"
16253 msgstr ""
16254
16255 #. type: =item
16256 #: ../fish/guestfish.pod:226
16257 msgid "B<--file file>"
16258 msgstr ""
16259
16260 #. type: textblock
16261 #: ../fish/guestfish.pod:228
16262 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16263 msgstr ""
16264
16265 #. type: verbatim
16266 #: ../fish/guestfish.pod:231
16267 #, no-wrap
16268 msgid ""
16269 " #!/usr/bin/guestfish -f\n"
16270 "\n"
16271 msgstr ""
16272
16273 #. type: verbatim
16274 #: ../fish/guestfish.pod:244
16275 #, no-wrap
16276 msgid ""
16277 " guestfish --format=raw -a disk.img\n"
16278 "\n"
16279 msgstr ""
16280
16281 #. type: verbatim
16282 #: ../fish/guestfish.pod:248
16283 #, no-wrap
16284 msgid ""
16285 " guestfish --format=raw -a disk.img --format -a another.img\n"
16286 "\n"
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish.pod:253
16291 msgid ""
16292 "If you have untrusted raw-format guest disk images, you should use this "
16293 "option to specify the disk format.  This avoids a possible security problem "
16294 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16295 msgstr ""
16296
16297 #. type: =item
16298 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16299 msgid "B<--inspector>"
16300 msgstr ""
16301
16302 #. type: textblock
16303 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16304 msgid ""
16305 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16306 "system and mount filesystems as they would be mounted on the real virtual "
16307 "machine."
16308 msgstr ""
16309
16310 #. type: textblock
16311 #: ../fish/guestfish.pod:266
16312 msgid "Typical usage is either:"
16313 msgstr ""
16314
16315 #. type: verbatim
16316 #: ../fish/guestfish.pod:268
16317 #, no-wrap
16318 msgid ""
16319 " guestfish -d myguest -i\n"
16320 "\n"
16321 msgstr ""
16322
16323 #. type: textblock
16324 #: ../fish/guestfish.pod:270
16325 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16326 msgstr ""
16327
16328 #. type: verbatim
16329 #: ../fish/guestfish.pod:272
16330 #, no-wrap
16331 msgid ""
16332 " guestfish --ro -d myguest -i\n"
16333 "\n"
16334 msgstr ""
16335
16336 #. type: textblock
16337 #: ../fish/guestfish.pod:274
16338 msgid "(for active domains, readonly), or specify the block device directly:"
16339 msgstr ""
16340
16341 #. type: verbatim
16342 #: ../fish/guestfish.pod:276
16343 #, no-wrap
16344 msgid ""
16345 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16346 "\n"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish.pod:278
16351 msgid ""
16352 "Note that the command line syntax changed slightly over older versions of "
16353 "guestfish.  You can still use the old syntax:"
16354 msgstr ""
16355
16356 #. type: verbatim
16357 #: ../fish/guestfish.pod:281
16358 #, no-wrap
16359 msgid ""
16360 " guestfish [--ro] -i disk.img\n"
16361 "\n"
16362 msgstr ""
16363
16364 #. type: verbatim
16365 #: ../fish/guestfish.pod:283
16366 #, no-wrap
16367 msgid ""
16368 " guestfish [--ro] -i libvirt-domain\n"
16369 "\n"
16370 msgstr ""
16371
16372 #. type: textblock
16373 #: ../fish/guestfish.pod:285
16374 msgid ""
16375 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16376 "then using other commands to mount the filesystems that were found."
16377 msgstr ""
16378
16379 #. type: =item
16380 #: ../fish/guestfish.pod:294
16381 msgid "B<--listen>"
16382 msgstr ""
16383
16384 #. type: textblock
16385 #: ../fish/guestfish.pod:296
16386 msgid ""
16387 "Fork into the background and listen for remote commands.  See section "
16388 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16389 msgstr ""
16390
16391 #. type: =item
16392 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16393 msgid "B<--live>"
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16398 msgid ""
16399 "Connect to a live virtual machine.  (Experimental, see "
16400 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16401 msgstr ""
16402
16403 #. type: =item
16404 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16405 msgid "B<-m dev[:mountpoint[:options]]>"
16406 msgstr ""
16407
16408 #. type: =item
16409 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16410 msgid "B<--mount dev[:mountpoint[:options]]>"
16411 msgstr ""
16412
16413 #. type: textblock
16414 #: ../fish/guestfish.pod:308
16415 msgid "Mount the named partition or logical volume on the given mountpoint."
16416 msgstr ""
16417
16418 #. type: textblock
16419 #: ../fish/guestfish.pod:310
16420 msgid "If the mountpoint is omitted, it defaults to C</>."
16421 msgstr ""
16422
16423 #. type: textblock
16424 #: ../fish/guestfish.pod:312
16425 msgid "You have to mount something on C</> before most commands will work."
16426 msgstr ""
16427
16428 #. type: textblock
16429 #: ../fish/guestfish.pod:314
16430 msgid ""
16431 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16432 "launched."
16433 msgstr ""
16434
16435 #. type: textblock
16436 #: ../fish/guestfish.pod:317
16437 msgid ""
16438 "If you don't know what filesystems a disk image contains, you can either run "
16439 "guestfish without this option, then list the partitions, filesystems and LVs "
16440 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16441 "commands), or you can use the L<virt-filesystems(1)> program."
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16446 msgid ""
16447 "The third (and rarely used) part of the mount parameter is the list of mount "
16448 "options used to mount the underlying filesystem.  If this is not given, then "
16449 "the mount options are either the empty string or C<ro> (the latter if the "
16450 "I<--ro> flag is used).  By specifying the mount options, you override this "
16451 "default choice.  Probably the only time you would use this is to enable ACLs "
16452 "and/or extended attributes if the filesystem can support them:"
16453 msgstr ""
16454
16455 #. type: verbatim
16456 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16457 #, no-wrap
16458 msgid ""
16459 " -m /dev/sda1:/:acl,user_xattr\n"
16460 "\n"
16461 msgstr ""
16462
16463 #. type: textblock
16464 #: ../fish/guestfish.pod:333
16465 msgid "Using this flag is equivalent to using the C<mount-options> command."
16466 msgstr ""
16467
16468 #. type: =item
16469 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:358
16470 msgid "B<-n>"
16471 msgstr ""
16472
16473 #. type: =item
16474 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16475 msgid "B<--no-sync>"
16476 msgstr ""
16477
16478 #. type: textblock
16479 #: ../fish/guestfish.pod:339
16480 msgid ""
16481 "Disable autosync.  This is enabled by default.  See the discussion of "
16482 "autosync in the L<guestfs(3)> manpage."
16483 msgstr ""
16484
16485 #. type: =item
16486 #: ../fish/guestfish.pod:342
16487 msgid "B<-N type>"
16488 msgstr ""
16489
16490 #. type: =item
16491 #: ../fish/guestfish.pod:344
16492 msgid "B<--new type>"
16493 msgstr ""
16494
16495 #. type: =item
16496 #: ../fish/guestfish.pod:346
16497 msgid "B<-N help>"
16498 msgstr ""
16499
16500 #. type: textblock
16501 #: ../fish/guestfish.pod:348
16502 msgid ""
16503 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16504 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16505 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16506 "IMAGES> below."
16507 msgstr ""
16508
16509 #. type: =item
16510 #: ../fish/guestfish.pod:353
16511 msgid "B<--progress-bars>"
16512 msgstr ""
16513
16514 #. type: textblock
16515 #: ../fish/guestfish.pod:355
16516 msgid "Enable progress bars, even when guestfish is used non-interactively."
16517 msgstr ""
16518
16519 #. type: textblock
16520 #: ../fish/guestfish.pod:357
16521 msgid ""
16522 "Progress bars are enabled by default when guestfish is used as an "
16523 "interactive shell."
16524 msgstr ""
16525
16526 #. type: =item
16527 #: ../fish/guestfish.pod:360
16528 msgid "B<--no-progress-bars>"
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish.pod:362
16533 msgid "Disable progress bars."
16534 msgstr ""
16535
16536 #. type: =item
16537 #: ../fish/guestfish.pod:364
16538 msgid "B<--remote[=pid]>"
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish.pod:366
16543 msgid ""
16544 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16545 "CONTROL GUESTFISH OVER A SOCKET> below."
16546 msgstr ""
16547
16548 #. type: =item
16549 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16550 msgid "B<-r>"
16551 msgstr ""
16552
16553 #. type: =item
16554 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16555 msgid "B<--ro>"
16556 msgstr ""
16557
16558 #. type: textblock
16559 #: ../fish/guestfish.pod:373
16560 msgid ""
16561 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16562 "mounts are done read-only."
16563 msgstr ""
16564
16565 #. type: textblock
16566 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16567 msgid ""
16568 "The option must always be used if the disk image or virtual machine might be "
16569 "running, and is generally recommended in cases where you don't need write "
16570 "access to the disk."
16571 msgstr ""
16572
16573 #. type: textblock
16574 #: ../fish/guestfish.pod:380
16575 msgid ""
16576 "Note that prepared disk images created with I<-N> are not affected by this "
16577 "option.  Also commands like C<add> are not affected - you have to specify "
16578 "the C<readonly:true> option explicitly if you need it."
16579 msgstr ""
16580
16581 #. type: textblock
16582 #: ../fish/guestfish.pod:384
16583 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16584 msgstr ""
16585
16586 #. type: =item
16587 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16588 msgid "B<--selinux>"
16589 msgstr ""
16590
16591 #. type: textblock
16592 #: ../fish/guestfish.pod:388
16593 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16594 msgstr ""
16595
16596 #. type: textblock
16597 #: ../fish/guestfish.pod:394
16598 msgid ""
16599 "Enable very verbose messages.  This is particularly useful if you find a "
16600 "bug."
16601 msgstr ""
16602
16603 #. type: textblock
16604 #: ../fish/guestfish.pod:401
16605 msgid "Display the guestfish / libguestfs version number and exit."
16606 msgstr ""
16607
16608 #. type: =item
16609 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:194
16610 msgid "B<-w>"
16611 msgstr ""
16612
16613 #. type: =item
16614 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:196
16615 msgid "B<--rw>"
16616 msgstr ""
16617
16618 #. type: textblock
16619 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16620 msgid ""
16621 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16622 "mounts are done read-write."
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish.pod:410
16627 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16628 msgstr ""
16629
16630 #. type: textblock
16631 #: ../fish/guestfish.pod:414
16632 msgid "Echo each command before executing it."
16633 msgstr ""
16634
16635 #. type: =head1
16636 #: ../fish/guestfish.pod:418
16637 msgid "COMMANDS ON COMMAND LINE"
16638 msgstr ""
16639
16640 #. type: textblock
16641 #: ../fish/guestfish.pod:420
16642 msgid "Any additional (non-option) arguments are treated as commands to execute."
16643 msgstr ""
16644
16645 #. type: textblock
16646 #: ../fish/guestfish.pod:423
16647 msgid ""
16648 "Commands to execute should be separated by a colon (C<:>), where the colon "
16649 "is a separate parameter.  Thus:"
16650 msgstr ""
16651
16652 #. type: verbatim
16653 #: ../fish/guestfish.pod:426
16654 #, no-wrap
16655 msgid ""
16656 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16657 "\n"
16658 msgstr ""
16659
16660 #. type: textblock
16661 #: ../fish/guestfish.pod:428
16662 msgid ""
16663 "If there are no additional arguments, then we enter a shell, either an "
16664 "interactive shell with a prompt (if the input is a terminal) or a "
16665 "non-interactive shell."
16666 msgstr ""
16667
16668 #. type: textblock
16669 #: ../fish/guestfish.pod:432
16670 msgid ""
16671 "In either command line mode or non-interactive shell, the first command that "
16672 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16673 "prompt) if a command fails, you can continue to enter commands."
16674 msgstr ""
16675
16676 #. type: =head1
16677 #: ../fish/guestfish.pod:437
16678 msgid "USING launch (OR run)"
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish.pod:439
16683 msgid ""
16684 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16685 "then launch it, then mount any disks you need, and finally issue "
16686 "actions/commands.  So the general order of the day is:"
16687 msgstr ""
16688
16689 #. type: textblock
16690 #: ../fish/guestfish.pod:447
16691 msgid "add or -a/--add"
16692 msgstr ""
16693
16694 #. type: textblock
16695 #: ../fish/guestfish.pod:451
16696 msgid "launch (aka run)"
16697 msgstr ""
16698
16699 #. type: textblock
16700 #: ../fish/guestfish.pod:455
16701 msgid "mount or -m/--mount"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish.pod:459
16706 msgid "any other commands"
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../fish/guestfish.pod:463
16711 msgid ""
16712 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16713 "guest before mounting or performing any other commands."
16714 msgstr ""
16715
16716 #. type: textblock
16717 #: ../fish/guestfish.pod:466
16718 msgid ""
16719 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16720 "I<--new> options were given then C<run> is done automatically, simply "
16721 "because guestfish can't perform the action you asked for without doing this."
16722 msgstr ""
16723
16724 #. type: =head1
16725 #: ../fish/guestfish.pod:471
16726 msgid "OPENING DISKS FOR READ AND WRITE"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish.pod:473
16731 msgid ""
16732 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16733 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16734 "I<-i> and I<-m> open disk images read-only or for writing."
16735 msgstr ""
16736
16737 #. type: textblock
16738 #: ../fish/guestfish.pod:478
16739 msgid ""
16740 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16741 "opening disk images supplied on the command line for write.  To open a disk "
16742 "image read-only you have to do I<-a image --ro>."
16743 msgstr ""
16744
16745 #. type: textblock
16746 #: ../fish/guestfish.pod:482
16747 msgid ""
16748 "This matters: If you accidentally open a live VM disk image writable then "
16749 "you will cause irreversible disk corruption."
16750 msgstr ""
16751
16752 #. type: textblock
16753 #: ../fish/guestfish.pod:485
16754 msgid ""
16755 "In a future libguestfs we intend to change the default the other way.  Disk "
16756 "images will be opened read-only.  You will have to either specify "
16757 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16758 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16759 "access for disk images specified by those other command line options."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish.pod:492
16764 msgid ""
16765 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16766 "which does nothing (it is already the default).  However it is highly "
16767 "recommended that you use this option to indicate that you need write access, "
16768 "and prepare your scripts for the day when this option will be required for "
16769 "write access."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish.pod:498
16774 msgid ""
16775 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16776 "other libguestfs program apart from guestfish and guestmount."
16777 msgstr ""
16778
16779 #. type: =head1
16780 #: ../fish/guestfish.pod:501
16781 msgid "QUOTING"
16782 msgstr ""
16783
16784 #. type: textblock
16785 #: ../fish/guestfish.pod:503
16786 msgid ""
16787 "You can quote ordinary parameters using either single or double quotes.  For "
16788 "example:"
16789 msgstr ""
16790
16791 #. type: verbatim
16792 #: ../fish/guestfish.pod:506
16793 #, no-wrap
16794 msgid ""
16795 " add \"file with a space.img\"\n"
16796 "\n"
16797 msgstr ""
16798
16799 #. type: verbatim
16800 #: ../fish/guestfish.pod:508
16801 #, no-wrap
16802 msgid ""
16803 " rm '/file name'\n"
16804 "\n"
16805 msgstr ""
16806
16807 #. type: verbatim
16808 #: ../fish/guestfish.pod:510
16809 #, no-wrap
16810 msgid ""
16811 " rm '/\"'\n"
16812 "\n"
16813 msgstr ""
16814
16815 #. type: textblock
16816 #: ../fish/guestfish.pod:512
16817 msgid ""
16818 "A few commands require a list of strings to be passed.  For these, use a "
16819 "whitespace-separated list, enclosed in quotes.  Strings containing "
16820 "whitespace to be passed through must be enclosed in single quotes.  A "
16821 "literal single quote must be escaped with a backslash."
16822 msgstr ""
16823
16824 #. type: verbatim
16825 #: ../fish/guestfish.pod:517
16826 #, no-wrap
16827 msgid ""
16828 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16829 " command \"/bin/echo 'foo      bar'\"\n"
16830 " command \"/bin/echo \\'foo\\'\"\n"
16831 "\n"
16832 msgstr ""
16833
16834 #. type: =head2
16835 #: ../fish/guestfish.pod:521
16836 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16837 msgstr ""
16838
16839 #. type: textblock
16840 #: ../fish/guestfish.pod:523
16841 msgid ""
16842 "In double-quoted arguments (only) use backslash to insert special "
16843 "characters:"
16844 msgstr ""
16845
16846 #. type: =item
16847 #: ../fish/guestfish.pod:528
16848 msgid "C<\\a>"
16849 msgstr ""
16850
16851 #. type: textblock
16852 #: ../fish/guestfish.pod:530
16853 msgid "Alert (bell) character."
16854 msgstr ""
16855
16856 #. type: =item
16857 #: ../fish/guestfish.pod:532
16858 msgid "C<\\b>"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish.pod:534
16863 msgid "Backspace character."
16864 msgstr ""
16865
16866 #. type: =item
16867 #: ../fish/guestfish.pod:536
16868 msgid "C<\\f>"
16869 msgstr ""
16870
16871 #. type: textblock
16872 #: ../fish/guestfish.pod:538
16873 msgid "Form feed character."
16874 msgstr ""
16875
16876 #. type: =item
16877 #: ../fish/guestfish.pod:540
16878 msgid "C<\\n>"
16879 msgstr ""
16880
16881 #. type: textblock
16882 #: ../fish/guestfish.pod:542
16883 msgid "Newline character."
16884 msgstr ""
16885
16886 #. type: =item
16887 #: ../fish/guestfish.pod:544
16888 msgid "C<\\r>"
16889 msgstr ""
16890
16891 #. type: textblock
16892 #: ../fish/guestfish.pod:546
16893 msgid "Carriage return character."
16894 msgstr ""
16895
16896 #. type: =item
16897 #: ../fish/guestfish.pod:548
16898 msgid "C<\\t>"
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish.pod:550
16903 msgid "Horizontal tab character."
16904 msgstr ""
16905
16906 #. type: =item
16907 #: ../fish/guestfish.pod:552
16908 msgid "C<\\v>"
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish.pod:554
16913 msgid "Vertical tab character."
16914 msgstr ""
16915
16916 #. type: =item
16917 #: ../fish/guestfish.pod:556
16918 msgid "C<\\\">"
16919 msgstr ""
16920
16921 #. type: textblock
16922 #: ../fish/guestfish.pod:558
16923 msgid "A literal double quote character."
16924 msgstr ""
16925
16926 #. type: =item
16927 #: ../fish/guestfish.pod:560
16928 msgid "C<\\ooo>"
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish.pod:562
16933 msgid ""
16934 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16935 "(unlike C)."
16936 msgstr ""
16937
16938 #. type: =item
16939 #: ../fish/guestfish.pod:565
16940 msgid "C<\\xhh>"
16941 msgstr ""
16942
16943 #. type: textblock
16944 #: ../fish/guestfish.pod:567
16945 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16946 msgstr ""
16947
16948 #. type: textblock
16949 #: ../fish/guestfish.pod:570
16950 msgid ""
16951 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16952 "strings."
16953 msgstr ""
16954
16955 #. type: =item
16956 #: ../fish/guestfish.pod:573
16957 msgid "C<\\\\>"
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish.pod:575
16962 msgid "A literal backslash character."
16963 msgstr ""
16964
16965 #. type: =head1
16966 #: ../fish/guestfish.pod:579
16967 msgid "OPTIONAL ARGUMENTS"
16968 msgstr ""
16969
16970 #. type: textblock
16971 #: ../fish/guestfish.pod:581
16972 msgid ""
16973 "Some commands take optional arguments.  These arguments appear in this "
16974 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16975 msgstr ""
16976
16977 #. type: verbatim
16978 #: ../fish/guestfish.pod:585
16979 #, no-wrap
16980 msgid ""
16981 " add-drive-opts filename\n"
16982 "\n"
16983 msgstr ""
16984
16985 #. type: verbatim
16986 #: ../fish/guestfish.pod:587
16987 #, no-wrap
16988 msgid ""
16989 " add-drive-opts filename readonly:true\n"
16990 "\n"
16991 msgstr ""
16992
16993 #. type: verbatim
16994 #: ../fish/guestfish.pod:589
16995 #, no-wrap
16996 msgid ""
16997 " add-drive-opts filename format:qcow2 readonly:false\n"
16998 "\n"
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish.pod:591
17003 msgid ""
17004 "Each optional argument can appear at most once.  All optional arguments must "
17005 "appear after the required ones."
17006 msgstr ""
17007
17008 #. type: =head1
17009 #: ../fish/guestfish.pod:594
17010 msgid "NUMBERS"
17011 msgstr ""
17012
17013 #. type: textblock
17014 #: ../fish/guestfish.pod:596
17015 msgid "This section applies to all commands which can take integers as parameters."
17016 msgstr ""
17017
17018 #. type: =head2
17019 #: ../fish/guestfish.pod:599
17020 msgid "SIZE SUFFIX"
17021 msgstr ""
17022
17023 #. type: textblock
17024 #: ../fish/guestfish.pod:601
17025 msgid ""
17026 "When the command takes a parameter measured in bytes, you can use one of the "
17027 "following suffixes to specify kilobytes, megabytes and larger sizes:"
17028 msgstr ""
17029
17030 #. type: =item
17031 #: ../fish/guestfish.pod:607
17032 msgid "B<k> or B<K> or B<KiB>"
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish.pod:609
17037 msgid "The size in kilobytes (multiplied by 1024)."
17038 msgstr ""
17039
17040 #. type: =item
17041 #: ../fish/guestfish.pod:611
17042 msgid "B<KB>"
17043 msgstr ""
17044
17045 #. type: textblock
17046 #: ../fish/guestfish.pod:613
17047 msgid "The size in SI 1000 byte units."
17048 msgstr ""
17049
17050 #. type: =item
17051 #: ../fish/guestfish.pod:615
17052 msgid "B<M> or B<MiB>"
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../fish/guestfish.pod:617
17057 msgid "The size in megabytes (multiplied by 1048576)."
17058 msgstr ""
17059
17060 #. type: =item
17061 #: ../fish/guestfish.pod:619
17062 msgid "B<MB>"
17063 msgstr ""
17064
17065 #. type: textblock
17066 #: ../fish/guestfish.pod:621
17067 msgid "The size in SI 1000000 byte units."
17068 msgstr ""
17069
17070 #. type: =item
17071 #: ../fish/guestfish.pod:623
17072 msgid "B<G> or B<GiB>"
17073 msgstr ""
17074
17075 #. type: textblock
17076 #: ../fish/guestfish.pod:625
17077 msgid "The size in gigabytes (multiplied by 2**30)."
17078 msgstr ""
17079
17080 #. type: =item
17081 #: ../fish/guestfish.pod:627
17082 msgid "B<GB>"
17083 msgstr ""
17084
17085 #. type: textblock
17086 #: ../fish/guestfish.pod:629
17087 msgid "The size in SI 10**9 byte units."
17088 msgstr ""
17089
17090 #. type: =item
17091 #: ../fish/guestfish.pod:631
17092 msgid "B<T> or B<TiB>"
17093 msgstr ""
17094
17095 #. type: textblock
17096 #: ../fish/guestfish.pod:633
17097 msgid "The size in terabytes (multiplied by 2**40)."
17098 msgstr ""
17099
17100 #. type: =item
17101 #: ../fish/guestfish.pod:635
17102 msgid "B<TB>"
17103 msgstr ""
17104
17105 #. type: textblock
17106 #: ../fish/guestfish.pod:637
17107 msgid "The size in SI 10**12 byte units."
17108 msgstr ""
17109
17110 #. type: =item
17111 #: ../fish/guestfish.pod:639
17112 msgid "B<P> or B<PiB>"
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish.pod:641
17117 msgid "The size in petabytes (multiplied by 2**50)."
17118 msgstr ""
17119
17120 #. type: =item
17121 #: ../fish/guestfish.pod:643
17122 msgid "B<PB>"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish.pod:645
17127 msgid "The size in SI 10**15 byte units."
17128 msgstr ""
17129
17130 #. type: =item
17131 #: ../fish/guestfish.pod:647
17132 msgid "B<E> or B<EiB>"
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish.pod:649
17137 msgid "The size in exabytes (multiplied by 2**60)."
17138 msgstr ""
17139
17140 #. type: =item
17141 #: ../fish/guestfish.pod:651
17142 msgid "B<EB>"
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish.pod:653
17147 msgid "The size in SI 10**18 byte units."
17148 msgstr ""
17149
17150 #. type: =item
17151 #: ../fish/guestfish.pod:655
17152 msgid "B<Z> or B<ZiB>"
17153 msgstr ""
17154
17155 #. type: textblock
17156 #: ../fish/guestfish.pod:657
17157 msgid "The size in zettabytes (multiplied by 2**70)."
17158 msgstr ""
17159
17160 #. type: =item
17161 #: ../fish/guestfish.pod:659
17162 msgid "B<ZB>"
17163 msgstr ""
17164
17165 #. type: textblock
17166 #: ../fish/guestfish.pod:661
17167 msgid "The size in SI 10**21 byte units."
17168 msgstr ""
17169
17170 #. type: =item
17171 #: ../fish/guestfish.pod:663
17172 msgid "B<Y> or B<YiB>"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish.pod:665
17177 msgid "The size in yottabytes (multiplied by 2**80)."
17178 msgstr ""
17179
17180 #. type: =item
17181 #: ../fish/guestfish.pod:667
17182 msgid "B<YB>"
17183 msgstr ""
17184
17185 #. type: textblock
17186 #: ../fish/guestfish.pod:669
17187 msgid "The size in SI 10**24 byte units."
17188 msgstr ""
17189
17190 #. type: verbatim
17191 #: ../fish/guestfish.pod:675
17192 #, no-wrap
17193 msgid ""
17194 " truncate-size /file 1G\n"
17195 "\n"
17196 msgstr ""
17197
17198 #. type: textblock
17199 #: ../fish/guestfish.pod:677
17200 msgid "would truncate the file to 1 gigabyte."
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish.pod:679
17205 msgid ""
17206 "Be careful because a few commands take sizes in kilobytes or megabytes "
17207 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17208 "Adding a suffix will probably not do what you expect."
17209 msgstr ""
17210
17211 #. type: =head2
17212 #: ../fish/guestfish.pod:683
17213 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17214 msgstr ""
17215
17216 #. type: textblock
17217 #: ../fish/guestfish.pod:685
17218 msgid ""
17219 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17220 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17221 msgstr ""
17222
17223 #. type: verbatim
17224 #: ../fish/guestfish.pod:688
17225 #, no-wrap
17226 msgid ""
17227 " 1234      decimal number 1234\n"
17228 " 02322     octal number, equivalent to decimal 1234\n"
17229 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17230 "\n"
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish.pod:692
17235 msgid ""
17236 "When using the C<chmod> command, you almost always want to specify an octal "
17237 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17238 "L<chmod(1)> program):"
17239 msgstr ""
17240
17241 #. type: verbatim
17242 #: ../fish/guestfish.pod:696
17243 #, no-wrap
17244 msgid ""
17245 " chmod 0777 /public  # OK\n"
17246 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17247 "\n"
17248 msgstr ""
17249
17250 #. type: textblock
17251 #: ../fish/guestfish.pod:699
17252 msgid ""
17253 "Commands that return numbers usually print them in decimal, but some "
17254 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17255 "octal, preceeded by C<0>)."
17256 msgstr ""
17257
17258 #. type: =head1
17259 #: ../fish/guestfish.pod:703
17260 msgid "WILDCARDS AND GLOBBING"
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish.pod:705
17265 msgid ""
17266 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17267 "(globbing) by default.  So for example the following will not do what you "
17268 "expect:"
17269 msgstr ""
17270
17271 #. type: verbatim
17272 #: ../fish/guestfish.pod:709
17273 #, no-wrap
17274 msgid ""
17275 " rm-rf /home/*\n"
17276 "\n"
17277 msgstr ""
17278
17279 #. type: textblock
17280 #: ../fish/guestfish.pod:711
17281 msgid ""
17282 "Assuming you don't have a directory called literally C</home/*> then the "
17283 "above command will return an error."
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish.pod:714
17288 msgid "To perform wildcard expansion, use the C<glob> command."
17289 msgstr ""
17290
17291 #. type: verbatim
17292 #: ../fish/guestfish.pod:716
17293 #, no-wrap
17294 msgid ""
17295 " glob rm-rf /home/*\n"
17296 "\n"
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish.pod:718
17301 msgid ""
17302 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17303 "many times), equivalent to:"
17304 msgstr ""
17305
17306 #. type: verbatim
17307 #: ../fish/guestfish.pod:721
17308 #, no-wrap
17309 msgid ""
17310 " rm-rf /home/jim\n"
17311 " rm-rf /home/joe\n"
17312 " rm-rf /home/mary\n"
17313 "\n"
17314 msgstr ""
17315
17316 #. type: textblock
17317 #: ../fish/guestfish.pod:725
17318 msgid "C<glob> only works on simple guest paths and not on device names."
17319 msgstr ""
17320
17321 #. type: textblock
17322 #: ../fish/guestfish.pod:727
17323 msgid ""
17324 "If you have several parameters, each containing a wildcard, then glob will "
17325 "perform a Cartesian product."
17326 msgstr ""
17327
17328 #. type: =head1
17329 #: ../fish/guestfish.pod:730
17330 msgid "COMMENTS"
17331 msgstr ""
17332
17333 #. type: textblock
17334 #: ../fish/guestfish.pod:732
17335 msgid ""
17336 "Any line which starts with a I<#> character is treated as a comment and "
17337 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17338 "a command.  For example:"
17339 msgstr ""
17340
17341 #. type: verbatim
17342 #: ../fish/guestfish.pod:736
17343 #, no-wrap
17344 msgid ""
17345 " # this is a comment\n"
17346 "         # this is a comment\n"
17347 " foo # NOT a comment\n"
17348 "\n"
17349 msgstr ""
17350
17351 #. type: textblock
17352 #: ../fish/guestfish.pod:740
17353 msgid "Blank lines are also ignored."
17354 msgstr ""
17355
17356 #. type: =head1
17357 #: ../fish/guestfish.pod:742
17358 msgid "RUNNING COMMANDS LOCALLY"
17359 msgstr ""
17360
17361 #. type: textblock
17362 #: ../fish/guestfish.pod:744
17363 msgid ""
17364 "Any line which starts with a I<!> character is treated as a command sent to "
17365 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17366 msgstr ""
17367
17368 #. type: verbatim
17369 #: ../fish/guestfish.pod:748
17370 #, no-wrap
17371 msgid ""
17372 " !mkdir local\n"
17373 " tgz-out /remote local/remote-data.tar.gz\n"
17374 "\n"
17375 msgstr ""
17376
17377 #. type: textblock
17378 #: ../fish/guestfish.pod:751
17379 msgid ""
17380 "will create a directory C<local> on the host, and then export the contents "
17381 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17382 "(See C<tgz-out>)."
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:755
17387 msgid ""
17388 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17389 "effect, due to the way that subprocesses work in Unix."
17390 msgstr ""
17391
17392 #. type: =head2
17393 #: ../fish/guestfish.pod:758
17394 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17395 msgstr ""
17396
17397 #. type: textblock
17398 #: ../fish/guestfish.pod:760
17399 msgid ""
17400 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17401 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17402 "and executed as guestfish commands."
17403 msgstr ""
17404
17405 #. type: textblock
17406 #: ../fish/guestfish.pod:764
17407 msgid ""
17408 "Thus you can use shell script to construct arbitrary guestfish commands "
17409 "which are then parsed by guestfish."
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish.pod:767
17414 msgid ""
17415 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17416 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17417 "if we use a shell script to create the guestfish commands for us:"
17418 msgstr ""
17419
17420 #. type: verbatim
17421 #: ../fish/guestfish.pod:772
17422 #, no-wrap
17423 msgid ""
17424 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17425 "\n"
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish.pod:774
17430 msgid "or with names like C</foo.001>:"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish.pod:776
17435 #, no-wrap
17436 msgid ""
17437 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17438 "\n"
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish.pod:778
17443 msgid ""
17444 "When using guestfish interactively it can be helpful to just run the shell "
17445 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17446 "ordinary I<!> local command), see what guestfish commands it would run, and "
17447 "when you are happy with those prepend the C<E<lt>> character to run the "
17448 "guestfish commands for real."
17449 msgstr ""
17450
17451 #. type: =head1
17452 #: ../fish/guestfish.pod:784
17453 msgid "PIPES"
17454 msgstr ""
17455
17456 #. type: textblock
17457 #: ../fish/guestfish.pod:786
17458 msgid ""
17459 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17460 "command (a guestfish command) to the second command (any host command).  For "
17461 "example:"
17462 msgstr ""
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish.pod:790
17466 #, no-wrap
17467 msgid ""
17468 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17469 "\n"
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../fish/guestfish.pod:792
17474 msgid ""
17475 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17476 "program).  The above command would list all accounts in the guest filesystem "
17477 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17478 msgstr ""
17479
17480 #. type: verbatim
17481 #: ../fish/guestfish.pod:797
17482 #, no-wrap
17483 msgid ""
17484 " hexdump /bin/ls | head\n"
17485 " list-devices | tail -1\n"
17486 " tgz-out / - | tar ztf -\n"
17487 "\n"
17488 msgstr ""
17489
17490 #. type: textblock
17491 #: ../fish/guestfish.pod:801
17492 msgid ""
17493 "The space before the pipe symbol is required, any space after the pipe "
17494 "symbol is optional.  Everything after the pipe symbol is just passed "
17495 "straight to the host shell, so it can contain redirections, globs and "
17496 "anything else that makes sense on the host side."
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish.pod:806
17501 msgid ""
17502 "To use a literal argument which begins with a pipe symbol, you have to quote "
17503 "it, eg:"
17504 msgstr ""
17505
17506 #. type: verbatim
17507 #: ../fish/guestfish.pod:809
17508 #, no-wrap
17509 msgid ""
17510 " echo \"|\"\n"
17511 "\n"
17512 msgstr ""
17513
17514 #. type: =head1
17515 #: ../fish/guestfish.pod:811
17516 msgid "HOME DIRECTORIES"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:813
17521 msgid ""
17522 "If a parameter starts with the character C<~> then the tilde may be expanded "
17523 "as a home directory path (either C<~> for the current user's home directory, "
17524 "or C<~user> for another user)."
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:817
17529 msgid ""
17530 "Note that home directory expansion happens for users known I<on the host>, "
17531 "not in the guest filesystem."
17532 msgstr ""
17533
17534 #. type: textblock
17535 #: ../fish/guestfish.pod:820
17536 msgid ""
17537 "To use a literal argument which begins with a tilde, you have to quote it, "
17538 "eg:"
17539 msgstr ""
17540
17541 #. type: verbatim
17542 #: ../fish/guestfish.pod:823
17543 #, no-wrap
17544 msgid ""
17545 " echo \"~\"\n"
17546 "\n"
17547 msgstr ""
17548
17549 #. type: =head2
17550 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17551 msgid "ENCRYPTED DISKS"
17552 msgstr ""
17553
17554 #. type: textblock
17555 #: ../fish/guestfish.pod:827
17556 msgid ""
17557 "Libguestfs has some support for Linux guests encrypted according to the "
17558 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17559 "disk encryption systems used by modern Linux guests.  Currently only "
17560 "LVM-on-LUKS is supported."
17561 msgstr ""
17562
17563 #. type: textblock
17564 #: ../fish/guestfish.pod:832
17565 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17566 msgstr ""
17567
17568 #. type: verbatim
17569 #: ../fish/guestfish.pod:834
17570 #, no-wrap
17571 msgid ""
17572 " ><fs> vfs-type /dev/sda2\n"
17573 " crypto_LUKS\n"
17574 "\n"
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish.pod:837
17579 msgid ""
17580 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17581 "device called C</dev/mapper/luksdev>."
17582 msgstr ""
17583
17584 #. type: verbatim
17585 #: ../fish/guestfish.pod:840
17586 #, no-wrap
17587 msgid ""
17588 " ><fs> luks-open /dev/sda2 luksdev\n"
17589 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17590 "\n"
17591 msgstr ""
17592
17593 #. type: textblock
17594 #: ../fish/guestfish.pod:843
17595 msgid ""
17596 "Finally you have to tell LVM to scan for volume groups on the newly created "
17597 "mapper device:"
17598 msgstr ""
17599
17600 #. type: verbatim
17601 #: ../fish/guestfish.pod:846
17602 #, no-wrap
17603 msgid ""
17604 " vgscan\n"
17605 " vg-activate-all true\n"
17606 "\n"
17607 msgstr ""
17608
17609 #. type: textblock
17610 #: ../fish/guestfish.pod:849
17611 msgid "The logical volume(s) can now be mounted in the usual way."
17612 msgstr ""
17613
17614 #. type: textblock
17615 #: ../fish/guestfish.pod:851
17616 msgid ""
17617 "Before closing a LUKS device you must unmount any logical volumes on it and "
17618 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17619 "one.  Then you can close the mapper device:"
17620 msgstr ""
17621
17622 #. type: verbatim
17623 #: ../fish/guestfish.pod:855
17624 #, no-wrap
17625 msgid ""
17626 " vg-activate false /dev/VG\n"
17627 " luks-close /dev/mapper/luksdev\n"
17628 "\n"
17629 msgstr ""
17630
17631 #. type: textblock
17632 #: ../fish/guestfish.pod:860
17633 msgid ""
17634 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17635 "letters and paths (with some limitations).  The following commands are "
17636 "equivalent:"
17637 msgstr ""
17638
17639 #. type: verbatim
17640 #: ../fish/guestfish.pod:864
17641 #, no-wrap
17642 msgid ""
17643 " file /WINDOWS/system32/config/system.LOG\n"
17644 "\n"
17645 msgstr ""
17646
17647 #. type: verbatim
17648 #: ../fish/guestfish.pod:866
17649 #, no-wrap
17650 msgid ""
17651 " file win:\\windows\\system32\\config\\system.log\n"
17652 "\n"
17653 msgstr ""
17654
17655 #. type: verbatim
17656 #: ../fish/guestfish.pod:868
17657 #, no-wrap
17658 msgid ""
17659 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17660 "\n"
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../fish/guestfish.pod:870
17665 msgid ""
17666 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17667 "where the drive is mounted, prepending that to the path, changing all "
17668 "backslash characters to forward slash, then resolving the result using "
17669 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17670 "then the parameter might be rewritten like this:"
17671 msgstr ""
17672
17673 #. type: verbatim
17674 #: ../fish/guestfish.pod:876
17675 #, no-wrap
17676 msgid ""
17677 " win:e:\\foo\\bar => /e/FOO/bar\n"
17678 "\n"
17679 msgstr ""
17680
17681 #. type: textblock
17682 #: ../fish/guestfish.pod:878
17683 msgid "This only works in argument positions that expect a path."
17684 msgstr ""
17685
17686 #. type: =head1
17687 #: ../fish/guestfish.pod:880
17688 msgid "UPLOADING AND DOWNLOADING FILES"
17689 msgstr ""
17690
17691 #. type: textblock
17692 #: ../fish/guestfish.pod:882
17693 msgid ""
17694 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17695 "others which upload from or download to a local file, you can use the "
17696 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17697 msgstr ""
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish.pod:886
17701 #, no-wrap
17702 msgid ""
17703 " upload - /foo\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish.pod:888
17709 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17710 msgstr ""
17711
17712 #. type: verbatim
17713 #: ../fish/guestfish.pod:891
17714 #, no-wrap
17715 msgid ""
17716 " tar-out /etc - | tar tf -\n"
17717 "\n"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:893
17722 msgid ""
17723 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17724 "command (see L</PIPES>)."
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:896
17729 msgid ""
17730 "When using C<-> to read from stdin, the input is read up to the end of "
17731 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17732 "some arbitrary end marker:"
17733 msgstr ""
17734
17735 #. type: verbatim
17736 #: ../fish/guestfish.pod:900
17737 #, no-wrap
17738 msgid ""
17739 " upload -<<END /foo\n"
17740 " input line 1\n"
17741 " input line 2\n"
17742 " input line 3\n"
17743 " END\n"
17744 "\n"
17745 msgstr ""
17746
17747 #. type: textblock
17748 #: ../fish/guestfish.pod:906
17749 msgid ""
17750 "Any string of characters can be used instead of C<END>.  The end marker must "
17751 "appear on a line of its own, without any preceeding or following characters "
17752 "(not even spaces)."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../fish/guestfish.pod:910
17757 msgid ""
17758 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17759 "upload local files (so-called \"FileIn\" parameters in the generator)."
17760 msgstr ""
17761
17762 #. type: =head1
17763 #: ../fish/guestfish.pod:913
17764 msgid "EXIT ON ERROR BEHAVIOUR"
17765 msgstr ""
17766
17767 #. type: textblock
17768 #: ../fish/guestfish.pod:915
17769 msgid ""
17770 "By default, guestfish will ignore any errors when in interactive mode "
17771 "(ie. taking commands from a human over a tty), and will exit on the first "
17772 "error in non-interactive mode (scripts, commands given on the command line)."
17773 msgstr ""
17774
17775 #. type: textblock
17776 #: ../fish/guestfish.pod:920
17777 msgid ""
17778 "If you prefix a command with a I<-> character, then that command will not "
17779 "cause guestfish to exit, even if that (one) command returns an error."
17780 msgstr ""
17781
17782 #. type: =head1
17783 #: ../fish/guestfish.pod:924
17784 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17785 msgstr ""
17786
17787 #. type: textblock
17788 #: ../fish/guestfish.pod:926
17789 msgid ""
17790 "Guestfish can be remote-controlled over a socket.  This is useful "
17791 "particularly in shell scripts where you want to make several different "
17792 "changes to a filesystem, but you don't want the overhead of starting up a "
17793 "guestfish process each time."
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish.pod:931
17798 msgid "Start a guestfish server process using:"
17799 msgstr ""
17800
17801 #. type: verbatim
17802 #: ../fish/guestfish.pod:933
17803 #, no-wrap
17804 msgid ""
17805 " eval \"`guestfish --listen`\"\n"
17806 "\n"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:935
17811 msgid "and then send it commands by doing:"
17812 msgstr ""
17813
17814 #. type: verbatim
17815 #: ../fish/guestfish.pod:937
17816 #, no-wrap
17817 msgid ""
17818 " guestfish --remote cmd [...]\n"
17819 "\n"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:939
17824 msgid "To cause the server to exit, send it the exit command:"
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../fish/guestfish.pod:943
17829 msgid ""
17830 "Note that the server will normally exit if there is an error in a command.  "
17831 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17832 "BEHAVIOUR>."
17833 msgstr ""
17834
17835 #. type: =head2
17836 #: ../fish/guestfish.pod:947
17837 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../fish/guestfish.pod:949
17842 msgid ""
17843 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17844 "is how the I<--remote> option knows where to send the commands.  You can "
17845 "have several guestfish listener processes running using:"
17846 msgstr ""
17847
17848 #. type: verbatim
17849 #: ../fish/guestfish.pod:953
17850 #, no-wrap
17851 msgid ""
17852 " eval \"`guestfish --listen`\"\n"
17853 " pid1=$GUESTFISH_PID\n"
17854 " eval \"`guestfish --listen`\"\n"
17855 " pid2=$GUESTFISH_PID\n"
17856 " ...\n"
17857 " guestfish --remote=$pid1 cmd\n"
17858 " guestfish --remote=$pid2 cmd\n"
17859 "\n"
17860 msgstr ""
17861
17862 #. type: =head2
17863 #: ../fish/guestfish.pod:961
17864 msgid "REMOTE CONTROL AND CSH"
17865 msgstr ""
17866
17867 #. type: textblock
17868 #: ../fish/guestfish.pod:963
17869 msgid ""
17870 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17871 "option:"
17872 msgstr ""
17873
17874 #. type: verbatim
17875 #: ../fish/guestfish.pod:966
17876 #, no-wrap
17877 msgid ""
17878 " eval \"`guestfish --listen --csh`\"\n"
17879 "\n"
17880 msgstr ""
17881
17882 #. type: =head2
17883 #: ../fish/guestfish.pod:968
17884 msgid "REMOTE CONTROL DETAILS"
17885 msgstr ""
17886
17887 #. type: textblock
17888 #: ../fish/guestfish.pod:970
17889 msgid ""
17890 "Remote control happens over a Unix domain socket called "
17891 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17892 "of the process, and C<$PID> is the process ID of the server."
17893 msgstr ""
17894
17895 #. type: textblock
17896 #: ../fish/guestfish.pod:974
17897 msgid "Guestfish client and server versions must match exactly."
17898 msgstr ""
17899
17900 #. type: =head2
17901 #: ../fish/guestfish.pod:976
17902 msgid "REMOTE CONTROL RUN COMMAND HANGING"
17903 msgstr ""
17904
17905 #. type: textblock
17906 #: ../fish/guestfish.pod:978
17907 msgid ""
17908 "Using the C<run> (or C<launch>) command remotely in a command substitution "
17909 "context hangs, ie. don't do (note the backquotes):"
17910 msgstr ""
17911
17912 #. type: verbatim
17913 #: ../fish/guestfish.pod:981
17914 #, no-wrap
17915 msgid ""
17916 " a=`guestfish --remote run`\n"
17917 "\n"
17918 msgstr ""
17919
17920 #. type: textblock
17921 #: ../fish/guestfish.pod:983
17922 msgid ""
17923 "Since the C<run> command produces no output on stdout, this is not useful "
17924 "anyway.  For further information see "
17925 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
17926 msgstr ""
17927
17928 #. type: =head1
17929 #: ../fish/guestfish.pod:987
17930 msgid "PREPARED DISK IMAGES"
17931 msgstr ""
17932
17933 #. type: textblock
17934 #: ../fish/guestfish.pod:989
17935 msgid ""
17936 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17937 "preformatted disk images that guestfish can make for you to save typing.  "
17938 "This is particularly useful for testing purposes.  This option is used "
17939 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17940 "can be mixed with I<-a>)."
17941 msgstr ""
17942
17943 #. type: textblock
17944 #: ../fish/guestfish.pod:995
17945 msgid ""
17946 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17947 "the second and so on.  Existing files in the current directory are "
17948 "I<overwritten>."
17949 msgstr ""
17950
17951 #. type: textblock
17952 #: ../fish/guestfish.pod:999
17953 msgid ""
17954 "The type briefly describes how the disk should be sized, partitioned, how "
17955 "filesystem(s) should be created, and how content should be added.  "
17956 "Optionally the type can be followed by extra parameters, separated by C<:> "
17957 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17958 "sparsely-allocated disk, containing a single partition, with the partition "
17959 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17960 "on a 1GB disk instead."
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish.pod:1007
17965 msgid "To list the available types and any extra parameters they take, run:"
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish.pod:1011
17970 msgid ""
17971 "Note that the prepared filesystem is not mounted.  You would usually have to "
17972 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17973 msgstr ""
17974
17975 #. type: textblock
17976 #: ../fish/guestfish.pod:1015
17977 msgid ""
17978 "If any I<-N> or I<--new> options are given, the guest is automatically "
17979 "launched."
17980 msgstr ""
17981
17982 #. type: textblock
17983 #: ../fish/guestfish.pod:1020
17984 msgid "Create a 100MB disk with an ext4-formatted partition:"
17985 msgstr ""
17986
17987 #. type: verbatim
17988 #: ../fish/guestfish.pod:1022
17989 #, no-wrap
17990 msgid ""
17991 " guestfish -N fs:ext4\n"
17992 "\n"
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish.pod:1024
17997 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17998 msgstr ""
17999
18000 #. type: verbatim
18001 #: ../fish/guestfish.pod:1026
18002 #, no-wrap
18003 msgid ""
18004 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
18005 "\n"
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish.pod:1028
18010 msgid "Create a blank 200MB disk:"
18011 msgstr ""
18012
18013 #. type: verbatim
18014 #: ../fish/guestfish.pod:1030
18015 #, no-wrap
18016 msgid ""
18017 " guestfish -N disk:200M\n"
18018 "\n"
18019 msgstr ""
18020
18021 #. type: =head1
18022 #: ../fish/guestfish.pod:1032
18023 msgid "PROGRESS BARS"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish.pod:1034
18028 msgid ""
18029 "Some (not all) long-running commands send progress notification messages as "
18030 "they are running.  Guestfish turns these messages into progress bars."
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:1038
18035 msgid ""
18036 "When a command that supports progress bars takes longer than two seconds to "
18037 "run, and if progress bars are enabled, then you will see one appearing below "
18038 "the command:"
18039 msgstr ""
18040
18041 #. type: verbatim
18042 #: ../fish/guestfish.pod:1042
18043 #, no-wrap
18044 msgid ""
18045 " ><fs> copy-size /large-file /another-file 2048M\n"
18046 " / 10% [#####-----------------------------------------] 00:30\n"
18047 "\n"
18048 msgstr ""
18049
18050 #. type: textblock
18051 #: ../fish/guestfish.pod:1045
18052 msgid ""
18053 "The spinner on the left hand side moves round once for every progress "
18054 "notification received from the backend.  This is a (reasonably) golden "
18055 "assurance that the command is \"doing something\" even if the progress bar "
18056 "is not moving, because the command is able to send the progress "
18057 "notifications.  When the bar reaches 100% and the command finishes, the "
18058 "spinner disappears."
18059 msgstr ""
18060
18061 #. type: textblock
18062 #: ../fish/guestfish.pod:1052
18063 msgid ""
18064 "Progress bars are enabled by default when guestfish is used interactively.  "
18065 "You can enable them even for non-interactive modes using I<--progress-bars>, "
18066 "and you can disable them completely using I<--no-progress-bars>."
18067 msgstr ""
18068
18069 #. type: =head1
18070 #: ../fish/guestfish.pod:1057
18071 msgid "GUESTFISH COMMANDS"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:1059
18076 msgid ""
18077 "The commands in this section are guestfish convenience commands, in other "
18078 "words, they are not part of the L<guestfs(3)> API."
18079 msgstr ""
18080
18081 #. type: =head2
18082 #: ../fish/guestfish.pod:1062
18083 msgid "help"
18084 msgstr ""
18085
18086 #. type: verbatim
18087 #: ../fish/guestfish.pod:1064
18088 #, no-wrap
18089 msgid ""
18090 " help\n"
18091 " help cmd\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: textblock
18096 #: ../fish/guestfish.pod:1067
18097 msgid "Without any parameter, this provides general help."
18098 msgstr ""
18099
18100 #. type: textblock
18101 #: ../fish/guestfish.pod:1069
18102 msgid "With a C<cmd> parameter, this displays detailed help for that command."
18103 msgstr ""
18104
18105 #. type: =head2
18106 #: ../fish/guestfish.pod:1071
18107 msgid "quit | exit"
18108 msgstr ""
18109
18110 #. type: textblock
18111 #: ../fish/guestfish.pod:1073
18112 msgid "This exits guestfish.  You can also use C<^D> key."
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/guestfish.pod:1075
18117 msgid "@FISH_COMMANDS@"
18118 msgstr ""
18119
18120 #. type: =head1
18121 #: ../fish/guestfish.pod:1077
18122 msgid "COMMANDS"
18123 msgstr ""
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
18127 msgid "@ACTIONS@"
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/guestfish.pod:1083
18132 msgid ""
18133 "guestfish returns 0 if the commands completed without error, or 1 if there "
18134 "was an error."
18135 msgstr ""
18136
18137 #. type: =item
18138 #: ../fish/guestfish.pod:1090
18139 msgid "EDITOR"
18140 msgstr ""
18141
18142 #. type: textblock
18143 #: ../fish/guestfish.pod:1092
18144 msgid ""
18145 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18146 "C<vi>."
18147 msgstr ""
18148
18149 #. type: =item
18150 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
18151 msgid "FEBOOTSTRAP_KERNEL"
18152 msgstr ""
18153
18154 #. type: =item
18155 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
18156 msgid "FEBOOTSTRAP_MODULES"
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
18161 msgid ""
18162 "These two environment variables allow the kernel that libguestfs uses in the "
18163 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18164 "most recent host kernel is chosen.  For more information about kernel "
18165 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18166 "available in febootstrap E<ge> 3.8."
18167 msgstr ""
18168
18169 #. type: =item
18170 #: ../fish/guestfish.pod:1105
18171 msgid "GUESTFISH_DISPLAY_IMAGE"
18172 msgstr ""
18173
18174 #. type: textblock
18175 #: ../fish/guestfish.pod:1107
18176 msgid ""
18177 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18178 "If not set, it uses L<display(1)>."
18179 msgstr ""
18180
18181 #. type: =item
18182 #: ../fish/guestfish.pod:1110
18183 msgid "GUESTFISH_PID"
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/guestfish.pod:1112
18188 msgid ""
18189 "Used with the I<--remote> option to specify the remote guestfish process to "
18190 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18191 msgstr ""
18192
18193 #. type: =item
18194 #: ../fish/guestfish.pod:1116
18195 msgid "HEXEDITOR"
18196 msgstr ""
18197
18198 #. type: textblock
18199 #: ../fish/guestfish.pod:1118
18200 msgid ""
18201 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18202 "not specified, the external L<hexedit(1)> program is used."
18203 msgstr ""
18204
18205 #. type: =item
18206 #: ../fish/guestfish.pod:1122
18207 msgid "HOME"
18208 msgstr ""
18209
18210 #. type: textblock
18211 #: ../fish/guestfish.pod:1124
18212 msgid ""
18213 "If compiled with GNU readline support, various files in the home directory "
18214 "can be used.  See L</FILES>."
18215 msgstr ""
18216
18217 #. type: =item
18218 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
18219 msgid "LIBGUESTFS_APPEND"
18220 msgstr ""
18221
18222 #. type: textblock
18223 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
18224 msgid "Pass additional options to the guest kernel."
18225 msgstr ""
18226
18227 #. type: =item
18228 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
18229 msgid "LIBGUESTFS_DEBUG"
18230 msgstr ""
18231
18232 #. type: textblock
18233 #: ../fish/guestfish.pod:1133
18234 msgid ""
18235 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18236 "effect as using the B<-v> option."
18237 msgstr ""
18238
18239 #. type: =item
18240 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
18241 msgid "LIBGUESTFS_MEMSIZE"
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
18246 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
18247 msgstr ""
18248
18249 #. type: verbatim
18250 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
18251 #, no-wrap
18252 msgid ""
18253 " LIBGUESTFS_MEMSIZE=700\n"
18254 "\n"
18255 msgstr ""
18256
18257 #. type: =item
18258 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
18259 msgid "LIBGUESTFS_PATH"
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../fish/guestfish.pod:1145
18264 msgid ""
18265 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18266 "the discussion of paths in L<guestfs(3)>."
18267 msgstr ""
18268
18269 #. type: =item
18270 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
18271 msgid "LIBGUESTFS_QEMU"
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
18276 msgid ""
18277 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18278 "which was found at compile time by the configure script is used."
18279 msgstr ""
18280
18281 #. type: =item
18282 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
18283 msgid "LIBGUESTFS_TRACE"
18284 msgstr ""
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:1156
18288 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18289 msgstr ""
18290
18291 #. type: =item
18292 #: ../fish/guestfish.pod:1158
18293 msgid "PAGER"
18294 msgstr ""
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:1160
18298 msgid ""
18299 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18300 "C<more>."
18301 msgstr ""
18302
18303 #. type: =item
18304 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3154
18305 msgid "TMPDIR"
18306 msgstr ""
18307
18308 #. type: textblock
18309 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
18310 msgid ""
18311 "Location of temporary directory, defaults to C</tmp> except for the cached "
18312 "supermin appliance which defaults to C</var/tmp>."
18313 msgstr ""
18314
18315 #. type: textblock
18316 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
18317 msgid ""
18318 "If libguestfs was compiled to use the supermin appliance then the real "
18319 "appliance is cached in this directory, shared between all handles belonging "
18320 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18321 "use in case C</var/tmp> is not large enough."
18322 msgstr ""
18323
18324 #. type: =head1
18325 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:273
18326 msgid "FILES"
18327 msgstr ""
18328
18329 #. type: =item
18330 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:277
18331 msgid "$HOME/.libguestfs-tools.rc"
18332 msgstr ""
18333
18334 #. type: =item
18335 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:279
18336 msgid "/etc/libguestfs-tools.conf"
18337 msgstr ""
18338
18339 #. type: textblock
18340 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:281
18341 msgid ""
18342 "This configuration file controls the default read-only or read-write mode "
18343 "(I<--ro> or I<--rw>)."
18344 msgstr ""
18345
18346 #. type: textblock
18347 #: ../fish/guestfish.pod:1187
18348 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18349 msgstr ""
18350
18351 #. type: =item
18352 #: ../fish/guestfish.pod:1189
18353 msgid "$HOME/.guestfish"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish.pod:1191
18358 msgid ""
18359 "If compiled with GNU readline support, then the command history is saved in "
18360 "this file."
18361 msgstr ""
18362
18363 #. type: =item
18364 #: ../fish/guestfish.pod:1194
18365 msgid "$HOME/.inputrc"
18366 msgstr ""
18367
18368 #. type: =item
18369 #: ../fish/guestfish.pod:1196
18370 msgid "/etc/inputrc"
18371 msgstr ""
18372
18373 #. type: textblock
18374 #: ../fish/guestfish.pod:1198
18375 msgid ""
18376 "If compiled with GNU readline support, then these files can be used to "
18377 "configure readline.  For further information, please see "
18378 "L<readline(3)/INITIALIZATION FILE>."
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish.pod:1202
18383 msgid "To write rules which only apply to guestfish, use:"
18384 msgstr ""
18385
18386 #. type: verbatim
18387 #: ../fish/guestfish.pod:1204
18388 #, no-wrap
18389 msgid ""
18390 " $if guestfish\n"
18391 " ...\n"
18392 " $endif\n"
18393 "\n"
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fish/guestfish.pod:1208
18398 msgid ""
18399 "Variables that you can set in inputrc that change the behaviour of guestfish "
18400 "in useful ways include:"
18401 msgstr ""
18402
18403 #. type: =item
18404 #: ../fish/guestfish.pod:1213
18405 msgid "completion-ignore-case (default: on)"
18406 msgstr ""
18407
18408 #. type: textblock
18409 #: ../fish/guestfish.pod:1215
18410 msgid ""
18411 "By default, guestfish will ignore case when tab-completing paths on the "
18412 "disk.  Use:"
18413 msgstr ""
18414
18415 #. type: verbatim
18416 #: ../fish/guestfish.pod:1218
18417 #, no-wrap
18418 msgid ""
18419 " set completion-ignore-case off\n"
18420 "\n"
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish.pod:1220
18425 msgid "to make guestfish case sensitive."
18426 msgstr ""
18427
18428 #. type: =item
18429 #: ../fish/guestfish.pod:1224
18430 msgid "test1.img"
18431 msgstr ""
18432
18433 #. type: =item
18434 #: ../fish/guestfish.pod:1226
18435 msgid "test2.img (etc)"
18436 msgstr ""
18437
18438 #. type: textblock
18439 #: ../fish/guestfish.pod:1228
18440 msgid ""
18441 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18442 "will be created in the file C<test1.img> in the current directory.  The "
18443 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18444 "the same name will be overwritten."
18445 msgstr ""
18446
18447 #. type: textblock
18448 #: ../fish/guestfish.pod:1237
18449 msgid ""
18450 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
18451 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
18452 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
18453 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
18454 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
18455 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18456 "L<febootstrap-supermin-helper(8)>."
18457 msgstr ""
18458
18459 #. type: textblock
18460 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3246 ../test-tool/libguestfs-test-tool.pod:112
18461 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18462 msgstr ""
18463
18464 #. type: textblock
18465 #: ../fish/virt-copy-in.pod:5
18466 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18467 msgstr ""
18468
18469 #. type: verbatim
18470 #: ../fish/virt-copy-in.pod:9
18471 #, no-wrap
18472 msgid ""
18473 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18474 "\n"
18475 msgstr ""
18476
18477 #. type: verbatim
18478 #: ../fish/virt-copy-in.pod:11
18479 #, no-wrap
18480 msgid ""
18481 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18482 "\n"
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../fish/virt-copy-in.pod:15
18487 msgid ""
18488 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18489 "causing disk corruption.  The virtual machine must be shut down before you "
18490 "use this command."
18491 msgstr ""
18492
18493 #. type: textblock
18494 #: ../fish/virt-copy-in.pod:21
18495 msgid ""
18496 "C<virt-copy-in> copies files and directories from the local disk into a "
18497 "virtual machine disk image or named libvirt domain."
18498 msgstr ""
18499
18500 #. type: textblock
18501 #: ../fish/virt-copy-in.pod:24
18502 msgid ""
18503 "You can give one of more filenames and directories on the command line.  "
18504 "Directories are copied in recursively.  The final parameter must be the "
18505 "destination directory in the disk image which must be an absolute path "
18506 "starting with a C</> character."
18507 msgstr ""
18508
18509 #. type: verbatim
18510 #: ../fish/virt-copy-in.pod:33
18511 #, no-wrap
18512 msgid ""
18513 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18514 "\n"
18515 msgstr ""
18516
18517 #. type: textblock
18518 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18519 msgid "Upload a home directory to a guest:"
18520 msgstr ""
18521
18522 #. type: verbatim
18523 #: ../fish/virt-copy-in.pod:37
18524 #, no-wrap
18525 msgid ""
18526 " virt-copy-in -d MyGuest skel /home\n"
18527 "\n"
18528 msgstr ""
18529
18530 #. type: =head1
18531 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18532 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18533 msgstr ""
18534
18535 #. type: textblock
18536 #: ../fish/virt-copy-in.pod:41
18537 msgid ""
18538 "This command is just a simple shell script wrapper around the "
18539 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18540 "trivial copy, you are probably better off using guestfish directly."
18541 msgstr ""
18542
18543 #. type: textblock
18544 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18545 msgid ""
18546 "Since the shell script just passes options straight to guestfish, read "
18547 "L<guestfish(1)> to see the full list of options."
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/virt-copy-in.pod:52
18552 msgid ""
18553 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18554 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18555 msgstr ""
18556
18557 #. type: textblock
18558 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18559 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18560 msgstr ""
18561
18562 #. type: textblock
18563 #: ../fish/virt-copy-out.pod:5
18564 msgid ""
18565 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18566 "image."
18567 msgstr ""
18568
18569 #. type: verbatim
18570 #: ../fish/virt-copy-out.pod:9
18571 #, no-wrap
18572 msgid ""
18573 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18574 "\n"
18575 msgstr ""
18576
18577 #. type: verbatim
18578 #: ../fish/virt-copy-out.pod:11
18579 #, no-wrap
18580 msgid ""
18581 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18582 "\n"
18583 msgstr ""
18584
18585 #. type: textblock
18586 #: ../fish/virt-copy-out.pod:15
18587 msgid ""
18588 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18589 "image or named libvirt domain."
18590 msgstr ""
18591
18592 #. type: textblock
18593 #: ../fish/virt-copy-out.pod:18
18594 msgid ""
18595 "You can give one of more filenames and directories on the command line.  "
18596 "Directories are copied out recursively."
18597 msgstr ""
18598
18599 #. type: textblock
18600 #: ../fish/virt-copy-out.pod:23
18601 msgid "Download the home directories from a virtual machine:"
18602 msgstr ""
18603
18604 #. type: verbatim
18605 #: ../fish/virt-copy-out.pod:25
18606 #, no-wrap
18607 msgid ""
18608 " mkdir homes\n"
18609 " virt-copy-out -d MyGuest /home homes\n"
18610 "\n"
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/virt-copy-out.pod:30
18615 msgid ""
18616 "This command is just a simple shell script wrapper around the "
18617 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18618 "trivial copy, you are probably better off using guestfish directly."
18619 msgstr ""
18620
18621 #. type: textblock
18622 #: ../fish/virt-copy-out.pod:41
18623 msgid ""
18624 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18625 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18626 msgstr ""
18627
18628 #. type: textblock
18629 #: ../fish/virt-tar-in.pod:5
18630 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18631 msgstr ""
18632
18633 #. type: verbatim
18634 #: ../fish/virt-tar-in.pod:9
18635 #, no-wrap
18636 msgid ""
18637 " virt-tar-in -a disk.img data.tar /destination\n"
18638 "\n"
18639 msgstr ""
18640
18641 #. type: verbatim
18642 #: ../fish/virt-tar-in.pod:11
18643 #, no-wrap
18644 msgid ""
18645 " virt-tar-in -d domain data.tar /destination\n"
18646 "\n"
18647 msgstr ""
18648
18649 #. type: verbatim
18650 #: ../fish/virt-tar-in.pod:13
18651 #, no-wrap
18652 msgid ""
18653 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18654 "\n"
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/virt-tar-in.pod:17
18659 msgid ""
18660 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18661 "causing disk corruption.  The virtual machine must be shut down before you "
18662 "use this command."
18663 msgstr ""
18664
18665 #. type: textblock
18666 #: ../fish/virt-tar-in.pod:23
18667 msgid ""
18668 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18669 "image or named libvirt domain."
18670 msgstr ""
18671
18672 #. type: textblock
18673 #: ../fish/virt-tar-in.pod:26
18674 msgid ""
18675 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18676 "standard input.  The second parameter is the absolute target directory to "
18677 "unpack into."
18678 msgstr ""
18679
18680 #. type: verbatim
18681 #: ../fish/virt-tar-in.pod:34
18682 #, no-wrap
18683 msgid ""
18684 " virt-tar-in -d MyGuest homes.tar /home\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fish/virt-tar-in.pod:38
18690 msgid ""
18691 "This command is just a simple shell script wrapper around the "
18692 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18693 "copy, you are probably better off using guestfish directly."
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/virt-tar-in.pod:49
18698 msgid ""
18699 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18700 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18701 "L<http://libguestfs.org/>."
18702 msgstr ""
18703
18704 #. type: textblock
18705 #: ../fish/virt-tar-out.pod:5
18706 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18707 msgstr ""
18708
18709 #. type: verbatim
18710 #: ../fish/virt-tar-out.pod:9
18711 #, no-wrap
18712 msgid ""
18713 " virt-tar-out -a disk.img /dir files.tar\n"
18714 "\n"
18715 msgstr ""
18716
18717 #. type: verbatim
18718 #: ../fish/virt-tar-out.pod:11
18719 #, no-wrap
18720 msgid ""
18721 " virt-tar-out -d domain /dir files.tar\n"
18722 "\n"
18723 msgstr ""
18724
18725 #. type: verbatim
18726 #: ../fish/virt-tar-out.pod:13
18727 #, no-wrap
18728 msgid ""
18729 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18730 "\n"
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fish/virt-tar-out.pod:17
18735 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18736 msgstr ""
18737
18738 #. type: textblock
18739 #: ../fish/virt-tar-out.pod:20
18740 msgid ""
18741 "The first parameter is the absolute path of the virtual machine directory.  "
18742 "The second parameter is the tar file to write.  Use C<-> to write to "
18743 "standard output."
18744 msgstr ""
18745
18746 #. type: textblock
18747 #: ../fish/virt-tar-out.pod:26
18748 msgid "Download the home directories from a guest:"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../fish/virt-tar-out.pod:28
18753 #, no-wrap
18754 msgid ""
18755 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18756 "\n"
18757 msgstr ""
18758
18759 #. type: textblock
18760 #: ../fish/virt-tar-out.pod:32
18761 msgid ""
18762 "This command is just a simple shell script wrapper around the "
18763 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
18764 "trivial copy, you are probably better off using guestfish directly."
18765 msgstr ""
18766
18767 #. type: textblock
18768 #: ../fish/virt-tar-out.pod:43
18769 msgid ""
18770 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18771 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18772 msgstr ""
18773
18774 #. type: textblock
18775 #: ../fuse/guestmount.pod:5
18776 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18777 msgstr ""
18778
18779 #. type: verbatim
18780 #: ../fuse/guestmount.pod:9
18781 #, no-wrap
18782 msgid ""
18783 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18784 "\n"
18785 msgstr ""
18786
18787 #. type: verbatim
18788 #: ../fuse/guestmount.pod:11
18789 #, no-wrap
18790 msgid ""
18791 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18792 "\n"
18793 msgstr ""
18794
18795 #. type: verbatim
18796 #: ../fuse/guestmount.pod:13
18797 #, no-wrap
18798 msgid ""
18799 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18800 "\n"
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fuse/guestmount.pod:17
18805 msgid ""
18806 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18807 "machines.  If you do this, you risk disk corruption in the VM."
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fuse/guestmount.pod:22
18812 msgid ""
18813 "The guestmount program can be used to mount virtual machine filesystems and "
18814 "other disk images on the host.  It uses libguestfs for access to the guest "
18815 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18816 "a mountable device."
18817 msgstr ""
18818
18819 #. type: textblock
18820 #: ../fuse/guestmount.pod:27
18821 msgid ""
18822 "Along with other options, you have to give at least one device (I<-a> "
18823 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18824 "option) or use the I<-i> inspection option.  How this works is better "
18825 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18826 "below."
18827 msgstr ""
18828
18829 #. type: textblock
18830 #: ../fuse/guestmount.pod:33
18831 msgid ""
18832 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18833 "by you, and the filesystem will not be visible to any other users unless you "
18834 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18835 "the filesystem, use the C<fusermount -u> command."
18836 msgstr ""
18837
18838 #. type: textblock
18839 #: ../fuse/guestmount.pod:41
18840 msgid ""
18841 "For a typical Windows guest which has its main filesystem on the first "
18842 "partition:"
18843 msgstr ""
18844
18845 #. type: verbatim
18846 #: ../fuse/guestmount.pod:44
18847 #, no-wrap
18848 msgid ""
18849 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18850 "\n"
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fuse/guestmount.pod:46
18855 msgid ""
18856 "For a typical Linux guest which has a /boot filesystem on the first "
18857 "partition, and the root filesystem on a logical volume:"
18858 msgstr ""
18859
18860 #. type: verbatim
18861 #: ../fuse/guestmount.pod:49
18862 #, no-wrap
18863 msgid ""
18864 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
18865 "\n"
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../fuse/guestmount.pod:51
18870 msgid "To get libguestfs to detect guest mountpoints for you:"
18871 msgstr ""
18872
18873 #. type: verbatim
18874 #: ../fuse/guestmount.pod:53
18875 #, no-wrap
18876 msgid ""
18877 " guestmount -a guest.img -i --ro /mnt\n"
18878 "\n"
18879 msgstr ""
18880
18881 #. type: textblock
18882 #: ../fuse/guestmount.pod:55
18883 msgid "For a libvirt guest called \"Guest\" you could do:"
18884 msgstr ""
18885
18886 #. type: verbatim
18887 #: ../fuse/guestmount.pod:57
18888 #, no-wrap
18889 msgid ""
18890 " guestmount -d Guest -i --ro /mnt\n"
18891 "\n"
18892 msgstr ""
18893
18894 #. type: textblock
18895 #: ../fuse/guestmount.pod:59
18896 msgid ""
18897 "If you don't know what filesystems are contained in a guest or disk image, "
18898 "use L<virt-filesystems(1)> first:"
18899 msgstr ""
18900
18901 #. type: verbatim
18902 #: ../fuse/guestmount.pod:62
18903 #, no-wrap
18904 msgid ""
18905 " virt-filesystems MyGuest\n"
18906 "\n"
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fuse/guestmount.pod:64
18911 msgid ""
18912 "If you want to trace the libguestfs calls but without excessive debugging "
18913 "information, we recommend:"
18914 msgstr ""
18915
18916 #. type: verbatim
18917 #: ../fuse/guestmount.pod:67
18918 #, no-wrap
18919 msgid ""
18920 " guestmount [...] --trace /mnt\n"
18921 "\n"
18922 msgstr ""
18923
18924 #. type: textblock
18925 #: ../fuse/guestmount.pod:69
18926 msgid "If you want to debug the program, we recommend:"
18927 msgstr ""
18928
18929 #. type: verbatim
18930 #: ../fuse/guestmount.pod:71
18931 #, no-wrap
18932 msgid ""
18933 " guestmount [...] --trace --verbose /mnt\n"
18934 "\n"
18935 msgstr ""
18936
18937 #. type: =head1
18938 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:544
18939 msgid "NOTES"
18940 msgstr ""
18941
18942 #. type: =head2
18943 #: ../fuse/guestmount.pod:75
18944 msgid "Other users cannot see the filesystem by default"
18945 msgstr ""
18946
18947 #. type: textblock
18948 #: ../fuse/guestmount.pod:77
18949 msgid ""
18950 "If you mount a filesystem as one user (eg. root), then other users will not "
18951 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
18952 "option when mounting:"
18953 msgstr ""
18954
18955 #. type: verbatim
18956 #: ../fuse/guestmount.pod:81
18957 #, no-wrap
18958 msgid ""
18959 " sudo guestmount [...] -o allow_other /mnt\n"
18960 "\n"
18961 msgstr ""
18962
18963 #. type: textblock
18964 #: ../fuse/guestmount.pod:91
18965 msgid "Add a block device or virtual machine image."
18966 msgstr ""
18967
18968 #. type: =item
18969 #: ../fuse/guestmount.pod:114
18970 msgid "B<--dir-cache-timeout N>"
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fuse/guestmount.pod:116
18975 msgid ""
18976 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
18977 "seconds.  The readdir cache [actually, there are several semi-independent "
18978 "caches] is populated after a readdir(2) call with the stat and extended "
18979 "attributes of the files in the directory, in anticipation that they will be "
18980 "requested soon after."
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fuse/guestmount.pod:122
18985 msgid ""
18986 "There is also a different attribute cache implemented by FUSE (see the FUSE "
18987 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
18988 "requests, only cache existing ones."
18989 msgstr ""
18990
18991 #. type: textblock
18992 #: ../fuse/guestmount.pod:142
18993 msgid ""
18994 "If you have untrusted raw-format guest disk images, you should use this "
18995 "option to specify the disk format.  This avoids a possible security problem "
18996 "with malicious guests (CVE-2010-3851).  See also "
18997 "L<guestfs(3)/guestfs_add_drive_opts>."
18998 msgstr ""
18999
19000 #. type: =item
19001 #: ../fuse/guestmount.pod:147
19002 msgid "B<--fuse-help>"
19003 msgstr ""
19004
19005 #. type: textblock
19006 #: ../fuse/guestmount.pod:149
19007 msgid "Display help on special FUSE options (see I<-o> below)."
19008 msgstr ""
19009
19010 #. type: textblock
19011 #: ../fuse/guestmount.pod:153
19012 msgid "Display brief help and exit."
19013 msgstr ""
19014
19015 #. type: textblock
19016 #: ../fuse/guestmount.pod:177
19017 msgid ""
19018 "Mount the named partition or logical volume on the given mountpoint B<in the "
19019 "guest> (this has nothing to do with mountpoints in the host)."
19020 msgstr ""
19021
19022 #. type: textblock
19023 #: ../fuse/guestmount.pod:180
19024 msgid ""
19025 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
19026 "something on C</>."
19027 msgstr ""
19028
19029 #. type: textblock
19030 #: ../fuse/guestmount.pod:197
19031 msgid ""
19032 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
19033 "unmounted.  If you specify this option, then we don't attempt to sync the "
19034 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
19035 msgstr ""
19036
19037 #. type: =item
19038 #: ../fuse/guestmount.pod:202
19039 msgid "B<-o option>"
19040 msgstr ""
19041
19042 #. type: =item
19043 #: ../fuse/guestmount.pod:204
19044 msgid "B<--option option>"
19045 msgstr ""
19046
19047 #. type: textblock
19048 #: ../fuse/guestmount.pod:206
19049 msgid "Pass extra options to FUSE."
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../fuse/guestmount.pod:208
19054 msgid ""
19055 "To get a list of all the extra options supported by FUSE, use the command "
19056 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
19057 "of them are a good idea."
19058 msgstr ""
19059
19060 #. type: verbatim
19061 #: ../fuse/guestmount.pod:212
19062 #, no-wrap
19063 msgid ""
19064 " guestmount --fuse-help\n"
19065 "\n"
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fuse/guestmount.pod:214
19070 msgid "Some potentially useful FUSE options:"
19071 msgstr ""
19072
19073 #. type: =item
19074 #: ../fuse/guestmount.pod:218
19075 msgid "B<-o allow_other>"
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fuse/guestmount.pod:220
19080 msgid "Allow other users to see the filesystem."
19081 msgstr ""
19082
19083 #. type: =item
19084 #: ../fuse/guestmount.pod:222
19085 msgid "B<-o attr_timeout=N>"
19086 msgstr ""
19087
19088 #. type: textblock
19089 #: ../fuse/guestmount.pod:224
19090 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
19091 msgstr ""
19092
19093 #. type: =item
19094 #: ../fuse/guestmount.pod:226
19095 msgid "B<-o kernel_cache>"
19096 msgstr ""
19097
19098 #. type: textblock
19099 #: ../fuse/guestmount.pod:228
19100 msgid ""
19101 "Allow the kernel to cache files (reduces the number of reads that have to go "
19102 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
19103 "afford the extra memory usage."
19104 msgstr ""
19105
19106 #. type: =item
19107 #: ../fuse/guestmount.pod:232
19108 msgid "B<-o uid=N> B<-o gid=N>"
19109 msgstr ""
19110
19111 #. type: textblock
19112 #: ../fuse/guestmount.pod:234
19113 msgid ""
19114 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19115 "the chosen values."
19116 msgstr ""
19117
19118 #. type: textblock
19119 #: ../fuse/guestmount.pod:243
19120 msgid ""
19121 "Add devices and mount everything read-only.  Also disallow writes and make "
19122 "the disk appear read-only to FUSE."
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../fuse/guestmount.pod:246
19127 msgid ""
19128 "This is highly recommended if you are not going to edit the guest disk.  If "
19129 "the guest is running and this option is I<not> supplied, then there is a "
19130 "strong risk of disk corruption in the guest.  We try to prevent this from "
19131 "happening, but it is not always possible."
19132 msgstr ""
19133
19134 #. type: textblock
19135 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19136 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fuse/guestmount.pod:255
19141 msgid "Enable SELinux support for the guest."
19142 msgstr ""
19143
19144 #. type: textblock
19145 #: ../fuse/guestmount.pod:261
19146 msgid "Enable verbose messages from underlying libguestfs."
19147 msgstr ""
19148
19149 #. type: textblock
19150 #: ../fuse/guestmount.pod:267
19151 msgid "Display the program version and exit."
19152 msgstr ""
19153
19154 #. type: textblock
19155 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
19156 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19157 msgstr ""
19158
19159 #. type: =item
19160 #: ../fuse/guestmount.pod:280
19161 msgid "B<--trace>"
19162 msgstr ""
19163
19164 #. type: textblock
19165 #: ../fuse/guestmount.pod:282
19166 msgid "Trace libguestfs calls and entry into each FUSE function."
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fuse/guestmount.pod:284
19171 msgid "This also stops the daemon from forking into the background."
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../fuse/guestmount.pod:310
19176 msgid ""
19177 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19178 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
19179 "L<http://fuse.sf.net/>."
19180 msgstr ""
19181
19182 #. type: textblock
19183 #: ../fuse/guestmount.pod:325
19184 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19185 msgstr ""
19186
19187 #. type: textblock
19188 #: ../inspector/virt-inspector.pod:5
19189 msgid ""
19190 "virt-inspector - Display operating system version and other information "
19191 "about a virtual machine"
19192 msgstr ""
19193
19194 #. type: verbatim
19195 #: ../inspector/virt-inspector.pod:9
19196 #, no-wrap
19197 msgid ""
19198 " virt-inspector [--options] -d domname\n"
19199 "\n"
19200 msgstr ""
19201
19202 #. type: verbatim
19203 #: ../inspector/virt-inspector.pod:11
19204 #, no-wrap
19205 msgid ""
19206 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19207 "\n"
19208 msgstr ""
19209
19210 #. type: verbatim
19211 #: ../inspector/virt-inspector.pod:15
19212 #, no-wrap
19213 msgid ""
19214 " virt-inspector domname\n"
19215 "\n"
19216 msgstr ""
19217
19218 #. type: verbatim
19219 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19220 #, no-wrap
19221 msgid ""
19222 " virt-inspector disk.img [disk.img ...]\n"
19223 "\n"
19224 msgstr ""
19225
19226 #. type: textblock
19227 #: ../inspector/virt-inspector.pod:21
19228 msgid ""
19229 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19230 "determine the version of the operating system and other information about "
19231 "the virtual machine."
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../inspector/virt-inspector.pod:25
19236 msgid "Virt-inspector produces XML output for feeding into other programs."
19237 msgstr ""
19238
19239 #. type: textblock
19240 #: ../inspector/virt-inspector.pod:27
19241 msgid ""
19242 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19243 "the libvirt domain (see: C<virsh list --all>)."
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../inspector/virt-inspector.pod:30
19248 msgid ""
19249 "You can also run virt-inspector directly on disk images from a single "
19250 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19251 "has several block devices, in which case you should list several I<-a> "
19252 "options one after another, with the first corresponding to the guest's "
19253 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
19254 msgstr ""
19255
19256 #. type: textblock
19257 #: ../inspector/virt-inspector.pod:37
19258 msgid ""
19259 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19260 "keys and similar."
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../inspector/virt-inspector.pod:40
19265 msgid ""
19266 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19267 "inspect several virtual machines, you have to run virt-inspector several "
19268 "times (for example, from a shell script for-loop)."
19269 msgstr ""
19270
19271 #. type: textblock
19272 #: ../inspector/virt-inspector.pod:45
19273 msgid ""
19274 "Because virt-inspector needs direct access to guest images, it won't "
19275 "normally work over remote libvirt connections."
19276 msgstr ""
19277
19278 #. type: textblock
19279 #: ../inspector/virt-inspector.pod:48
19280 msgid ""
19281 "All of the information available from virt-inspector is also available "
19282 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19283 "The same information can also be fetched using guestfish or via libguestfs "
19284 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19285 "WITH OTHER PROGRAMMING LANGUAGES>)."
19286 msgstr ""
19287
19288 #. type: textblock
19289 #: ../inspector/virt-inspector.pod:81
19290 msgid ""
19291 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19292 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19293 "at all."
19294 msgstr ""
19295
19296 #. type: textblock
19297 #: ../inspector/virt-inspector.pod:94
19298 msgid ""
19299 "When prompting for keys and passphrases, virt-inspector normally turns "
19300 "echoing off so you cannot see what you are typing.  If you are not worried "
19301 "about Tempest attacks and there is no one else in the room you can specify "
19302 "this flag to see what you are typing."
19303 msgstr ""
19304
19305 #. type: textblock
19306 #: ../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
19307 msgid ""
19308 "Specify the format of disk images given on the command line.  If this is "
19309 "omitted then the format is autodetected from the content of the disk image."
19310 msgstr ""
19311
19312 #. type: textblock
19313 #: ../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
19314 msgid ""
19315 "If disk images are requested from libvirt, then this program asks libvirt "
19316 "for this information.  In this case, the value of the format parameter is "
19317 "ignored."
19318 msgstr ""
19319
19320 #. type: textblock
19321 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314 ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
19322 msgid ""
19323 "If working with untrusted raw-format guest disk images, you should ensure "
19324 "the format is always specified."
19325 msgstr ""
19326
19327 #. type: textblock
19328 #: ../inspector/virt-inspector.pod:139
19329 msgid "Previous versions of virt-inspector allowed you to write either:"
19330 msgstr ""
19331
19332 #. type: verbatim
19333 #: ../inspector/virt-inspector.pod:145
19334 #, no-wrap
19335 msgid ""
19336 " virt-inspector guestname\n"
19337 "\n"
19338 msgstr ""
19339
19340 #. type: =head1
19341 #: ../inspector/virt-inspector.pod:153
19342 msgid "XML FORMAT"
19343 msgstr ""
19344
19345 #. type: textblock
19346 #: ../inspector/virt-inspector.pod:155
19347 msgid ""
19348 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19349 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19350 "just an overview."
19351 msgstr ""
19352
19353 #. type: textblock
19354 #: ../inspector/virt-inspector.pod:159
19355 msgid ""
19356 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19357 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19358 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19359 "which is vanishingly rare in real world VMs."
19360 msgstr ""
19361
19362 #. type: =head2
19363 #: ../inspector/virt-inspector.pod:164
19364 msgid "E<lt>operatingsystemE<gt>"
19365 msgstr ""
19366
19367 #. type: textblock
19368 #: ../inspector/virt-inspector.pod:166
19369 msgid ""
19370 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19371 "describe the operating system, its architecture, the descriptive \"product "
19372 "name\" string, the type of OS and so on, as in this example:"
19373 msgstr ""
19374
19375 #. type: verbatim
19376 #: ../inspector/virt-inspector.pod:170
19377 #, no-wrap
19378 msgid ""
19379 " <operatingsystems>\n"
19380 "   <operatingsystem>\n"
19381 "     <root>/dev/sda2</root>\n"
19382 "     <name>windows</name>\n"
19383 "     <arch>i386</arch>\n"
19384 "     <distro>windows</distro>\n"
19385 "     <product_name>Windows 7 Enterprise</product_name>\n"
19386 "     <product_variant>Client</product_variant>\n"
19387 "     <major_version>6</major_version>\n"
19388 "     <minor_version>1</minor_version>\n"
19389 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19390 "     <format>installed</format>\n"
19391 "\n"
19392 msgstr ""
19393
19394 #. type: textblock
19395 #: ../inspector/virt-inspector.pod:183
19396 msgid ""
19397 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19398 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19399 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19400 "architecture.  The other fields are fairly self-explanatory, but because "
19401 "these fields are taken directly from the libguestfs inspection API you can "
19402 "find precise information from L<guestfs(3)/INSPECTION>."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../inspector/virt-inspector.pod:191
19407 msgid ""
19408 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19409 "of view of libguestfs (block devices may have completely different names "
19410 "inside the VM itself)."
19411 msgstr ""
19412
19413 #. type: =head2
19414 #: ../inspector/virt-inspector.pod:195
19415 msgid "E<lt>mountpointsE<gt>"
19416 msgstr ""
19417
19418 #. type: textblock
19419 #: ../inspector/virt-inspector.pod:197
19420 msgid ""
19421 "Un*x-like guests typically have multiple filesystems which are mounted at "
19422 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19423 "element which looks like this:"
19424 msgstr ""
19425
19426 #. type: verbatim
19427 #: ../inspector/virt-inspector.pod:201
19428 #, no-wrap
19429 msgid ""
19430 " <operatingsystems>\n"
19431 "   <operatingsystem>\n"
19432 "     ...\n"
19433 "     <mountpoints>\n"
19434 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19435 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19436 "     </mountpoints>\n"
19437 "\n"
19438 msgstr ""
19439
19440 #. type: textblock
19441 #: ../inspector/virt-inspector.pod:209
19442 msgid ""
19443 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19444 "and may have completely different names inside the guest.  Only mountable "
19445 "filesystems appear in this list, not things like swap devices."
19446 msgstr ""
19447
19448 #. type: =head2
19449 #: ../inspector/virt-inspector.pod:214
19450 msgid "E<lt>filesystemsE<gt>"
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../inspector/virt-inspector.pod:216
19455 msgid ""
19456 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19457 "filesystems belonging to the guest, including swap and empty partitions.  "
19458 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19459 "this OS or shared with this OS and other OSes)."
19460 msgstr ""
19461
19462 #. type: textblock
19463 #: ../inspector/virt-inspector.pod:222
19464 msgid "You might see something like this:"
19465 msgstr ""
19466
19467 #. type: verbatim
19468 #: ../inspector/virt-inspector.pod:224
19469 #, no-wrap
19470 msgid ""
19471 " <operatingsystems>\n"
19472 "   <operatingsystem>\n"
19473 "     ...\n"
19474 "     <filesystems>\n"
19475 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19476 "         <type>ext4</type>\n"
19477 "         <label>Fedora-13-x86_64</label>\n"
19478 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19479 "       </filesystem>\n"
19480 "\n"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../inspector/virt-inspector.pod:234
19485 msgid ""
19486 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19487 "the label, and the UUID."
19488 msgstr ""
19489
19490 #. type: =head2
19491 #: ../inspector/virt-inspector.pod:237
19492 msgid "E<lt>applicationsE<gt>"
19493 msgstr ""
19494
19495 #. type: textblock
19496 #: ../inspector/virt-inspector.pod:239
19497 msgid ""
19498 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19499 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19500 "machine."
19501 msgstr ""
19502
19503 #. type: textblock
19504 #: ../inspector/virt-inspector.pod:243
19505 msgid ""
19506 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19507 "Typical values would be C<rpm> and C<deb>."
19508 msgstr ""
19509
19510 #. type: textblock
19511 #: ../inspector/virt-inspector.pod:246
19512 msgid ""
19513 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19514 "Typical values include C<yum>, C<up2date> and C<apt>"
19515 msgstr ""
19516
19517 #. type: textblock
19518 #: ../inspector/virt-inspector.pod:249
19519 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19520 msgstr ""
19521
19522 #. type: verbatim
19523 #: ../inspector/virt-inspector.pod:252
19524 #, no-wrap
19525 msgid ""
19526 " <operatingsystems>\n"
19527 "   <operatingsystem>\n"
19528 "     ...\n"
19529 "     <applications>\n"
19530 "       <application>\n"
19531 "         <name>coreutils</name>\n"
19532 "         <version>8.5</version>\n"
19533 "         <release>1</release>\n"
19534 "       </application>\n"
19535 "\n"
19536 msgstr ""
19537
19538 #. type: textblock
19539 #: ../inspector/virt-inspector.pod:262
19540 msgid ""
19541 "The version and release fields may not be available for some types guests.  "
19542 "Other fields are possible, see "
19543 "L<guestfs(3)/guestfs_inspect_list_applications>."
19544 msgstr ""
19545
19546 #. type: =head2
19547 #: ../inspector/virt-inspector.pod:266
19548 msgid "E<lt>drive_mappingsE<gt>"
19549 msgstr ""
19550
19551 #. type: textblock
19552 #: ../inspector/virt-inspector.pod:268
19553 msgid ""
19554 "For operating systems like Windows which use drive letters, virt-inspector "
19555 "is able to find out how drive letters map to filesystems."
19556 msgstr ""
19557
19558 #. type: verbatim
19559 #: ../inspector/virt-inspector.pod:272
19560 #, no-wrap
19561 msgid ""
19562 " <operatingsystems>\n"
19563 "   <operatingsystem>\n"
19564 "     ...\n"
19565 "     <drive_mappings>\n"
19566 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19567 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19568 "     </drive_mappings>\n"
19569 "\n"
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../inspector/virt-inspector.pod:280
19574 msgid ""
19575 "In the example above, drive C maps to the filesystem on the second partition "
19576 "on the first disk, and drive E maps to the filesystem on the first partition "
19577 "on the second disk."
19578 msgstr ""
19579
19580 #. type: textblock
19581 #: ../inspector/virt-inspector.pod:284
19582 msgid ""
19583 "Note that this only covers permanent local filesystem mappings, not things "
19584 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19585 "here."
19586 msgstr ""
19587
19588 #. type: =head2
19589 #: ../inspector/virt-inspector.pod:288
19590 msgid "E<lt>iconE<gt>"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../inspector/virt-inspector.pod:290
19595 msgid ""
19596 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19597 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19598 "very large and high quality."
19599 msgstr ""
19600
19601 #. type: verbatim
19602 #: ../inspector/virt-inspector.pod:294
19603 #, no-wrap
19604 msgid ""
19605 " <operatingsystems>\n"
19606 "   <operatingsystem>\n"
19607 "     ...\n"
19608 "     <icon>\n"
19609 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19610 "       [... many lines of base64 data ...]\n"
19611 "     </icon>\n"
19612 "\n"
19613 msgstr ""
19614
19615 #. type: textblock
19616 #: ../inspector/virt-inspector.pod:302
19617 msgid ""
19618 "To display the icon, you have to extract it and convert the base64 data back "
19619 "to a binary file.  Use an XPath query or simply an editor to extract the "
19620 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19621 "to a PNG file:"
19622 msgstr ""
19623
19624 #. type: verbatim
19625 #: ../inspector/virt-inspector.pod:307
19626 #, no-wrap
19627 msgid ""
19628 " base64 -i -d < icon.data > icon.png\n"
19629 "\n"
19630 msgstr ""
19631
19632 #. type: =head2
19633 #: ../inspector/virt-inspector.pod:309
19634 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19635 msgstr ""
19636
19637 #. type: textblock
19638 #: ../inspector/virt-inspector.pod:311
19639 msgid ""
19640 "Virt-inspector can detect some operating system installers on install disks, "
19641 "live CDs, bootable USB keys and more."
19642 msgstr ""
19643
19644 #. type: textblock
19645 #: ../inspector/virt-inspector.pod:314
19646 msgid ""
19647 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19648 "fields may be present to indicate a live CD, network installer, or one part "
19649 "of a multipart CD.  For example:"
19650 msgstr ""
19651
19652 #. type: verbatim
19653 #: ../inspector/virt-inspector.pod:318
19654 #, no-wrap
19655 msgid ""
19656 " <operatingsystems>\n"
19657 "   <operatingsystem>\n"
19658 "     <root>/dev/sda</root>\n"
19659 "     <name>linux</name>\n"
19660 "     <arch>i386</arch>\n"
19661 "     <distro>ubuntu</distro>\n"
19662 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19663 "Meerkat&quot;</product_name>\n"
19664 "     <major_version>10</major_version>\n"
19665 "     <minor_version>10</minor_version>\n"
19666 "     <format>installer</format>\n"
19667 "     <live/>\n"
19668 "\n"
19669 msgstr ""
19670
19671 #. type: =head1
19672 #: ../inspector/virt-inspector.pod:330
19673 msgid "USING XPATH"
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../inspector/virt-inspector.pod:332
19678 msgid ""
19679 "You can use the XPath query language to select parts of the XML.  We "
19680 "recommend using C<xmlstarlet> to perform XPath queries from the command "
19681 "line."
19682 msgstr ""
19683
19684 #. type: verbatim
19685 #: ../inspector/virt-inspector.pod:338
19686 #, no-wrap
19687 msgid ""
19688 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19689 " <filesystems>\n"
19690 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19691 "        <type>ext4</type>\n"
19692 " [...]\n"
19693 "\n"
19694 msgstr ""
19695
19696 #. type: verbatim
19697 #: ../inspector/virt-inspector.pod:344
19698 #, no-wrap
19699 msgid ""
19700 " $ virt-inspector -d Guest | \\\n"
19701 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19702 " ext4\n"
19703 "\n"
19704 msgstr ""
19705
19706 #. type: verbatim
19707 #: ../inspector/virt-inspector.pod:348
19708 #, no-wrap
19709 msgid ""
19710 " $ virt-inspector -d Guest | \\\n"
19711 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19712 " [displays the guest icon, if there is one]\n"
19713 "\n"
19714 msgstr ""
19715
19716 #. type: =head1
19717 #: ../inspector/virt-inspector.pod:359
19718 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../inspector/virt-inspector.pod:361
19723 msgid ""
19724 "Early versions of libguestfs shipped with a different virt-inspector program "
19725 "written in Perl (the current version is written in C).  The XML output of "
19726 "the Perl virt-inspector was different and it could also output in other "
19727 "formats like text."
19728 msgstr ""
19729
19730 #. type: textblock
19731 #: ../inspector/virt-inspector.pod:366
19732 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19733 msgstr ""
19734
19735 #. type: textblock
19736 #: ../inspector/virt-inspector.pod:369
19737 msgid ""
19738 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19739 "versions of virt-inspector with different names:"
19740 msgstr ""
19741
19742 #. type: verbatim
19743 #: ../inspector/virt-inspector.pod:372
19744 #, no-wrap
19745 msgid ""
19746 " virt-inspector     Old Perl version.\n"
19747 " virt-inspector2    New C version.\n"
19748 "\n"
19749 msgstr ""
19750
19751 #. type: textblock
19752 #: ../inspector/virt-inspector.pod:382
19753 msgid ""
19754 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19755 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
19756 msgstr ""
19757
19758 #. type: textblock
19759 #: ../inspector/virt-inspector.pod:399
19760 msgid "Matthew Booth L<mbooth@redhat.com>"
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../java/examples/guestfs-java.pod:5
19765 msgid "guestfs-java - How to use libguestfs from Java"
19766 msgstr ""
19767
19768 #. type: verbatim
19769 #: ../java/examples/guestfs-java.pod:9
19770 #, no-wrap
19771 msgid ""
19772 " import com.redhat.et.libguestfs.*;\n"
19773 " \n"
19774 msgstr ""
19775
19776 #. type: verbatim
19777 #: ../java/examples/guestfs-java.pod:11
19778 #, no-wrap
19779 msgid ""
19780 " GuestFS g = new GuestFS ();\n"
19781 " g.add_drive_opts (\"disk.img\", null);\n"
19782 " g.launch ();\n"
19783 "\n"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../java/examples/guestfs-java.pod:17
19788 msgid ""
19789 "This manual page documents how to call libguestfs from the Java programming "
19790 "language.  This page just documents the differences from the C API and gives "
19791 "some examples.  If you are not familiar with using libguestfs, you also need "
19792 "to read L<guestfs(3)>."
19793 msgstr ""
19794
19795 #. type: =head2
19796 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19797 msgid "CLOSING THE HANDLE"
19798 msgstr ""
19799
19800 #. type: textblock
19801 #: ../java/examples/guestfs-java.pod:24
19802 msgid ""
19803 "The handle is closed when it is reaped by the garbage collector.  Because "
19804 "libguestfs handles include a lot of state, it is also possible to close (and "
19805 "hence free) them explicitly by calling the C<close> method."
19806 msgstr ""
19807
19808 #. type: =head2
19809 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19810 msgid "EXCEPTIONS"
19811 msgstr ""
19812
19813 #. type: textblock
19814 #: ../java/examples/guestfs-java.pod:31
19815 msgid ""
19816 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19817 "exception.  This has a single parameter which is the error message (a "
19818 "C<String>)."
19819 msgstr ""
19820
19821 #. type: textblock
19822 #: ../java/examples/guestfs-java.pod:35
19823 msgid "Calling any method on a closed handle raises the same exception."
19824 msgstr ""
19825
19826 #. type: textblock
19827 #: ../java/examples/guestfs-java.pod:47
19828 msgid ""
19829 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
19830 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
19831 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
19832 "L<http://caml.inria.fr/>."
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../ocaml/examples/guestfs-ocaml.pod:5
19837 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19838 msgstr ""
19839
19840 #. type: textblock
19841 #: ../ocaml/examples/guestfs-ocaml.pod:9
19842 msgid "Module style:"
19843 msgstr ""
19844
19845 #. type: verbatim
19846 #: ../ocaml/examples/guestfs-ocaml.pod:11
19847 #, no-wrap
19848 msgid ""
19849 " let g = Guestfs.create () in\n"
19850 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19851 " Guestfs.launch g;\n"
19852 "\n"
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../ocaml/examples/guestfs-ocaml.pod:15
19857 msgid "Object-oriented style:"
19858 msgstr ""
19859
19860 #. type: verbatim
19861 #: ../ocaml/examples/guestfs-ocaml.pod:17
19862 #, no-wrap
19863 msgid ""
19864 " let g = new Guestfs.guestfs () in\n"
19865 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19866 " g#launch ();\n"
19867 "\n"
19868 msgstr ""
19869
19870 #. type: verbatim
19871 #: ../ocaml/examples/guestfs-ocaml.pod:21
19872 #, no-wrap
19873 msgid ""
19874 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19875 "or:\n"
19876 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19877 "\n"
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../ocaml/examples/guestfs-ocaml.pod:27
19882 msgid ""
19883 "This manual page documents how to call libguestfs from the OCaml programming "
19884 "language.  This page just documents the differences from the C API and gives "
19885 "some examples.  If you are not familiar with using libguestfs, you also need "
19886 "to read L<guestfs(3)>."
19887 msgstr ""
19888
19889 #. type: =head2
19890 #: ../ocaml/examples/guestfs-ocaml.pod:32
19891 msgid "PROGRAMMING STYLES"
19892 msgstr ""
19893
19894 #. type: textblock
19895 #: ../ocaml/examples/guestfs-ocaml.pod:34
19896 msgid ""
19897 "There are two different programming styles supported by the OCaml bindings.  "
19898 "You can use a module style, with each C function mapped to an OCaml "
19899 "function:"
19900 msgstr ""
19901
19902 #. type: verbatim
19903 #: ../ocaml/examples/guestfs-ocaml.pod:38
19904 #, no-wrap
19905 msgid ""
19906 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19907 "\n"
19908 msgstr ""
19909
19910 #. type: textblock
19911 #: ../ocaml/examples/guestfs-ocaml.pod:40
19912 msgid "becomes:"
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../ocaml/examples/guestfs-ocaml.pod:42
19917 #, no-wrap
19918 msgid ""
19919 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19920 "\n"
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../ocaml/examples/guestfs-ocaml.pod:44
19925 msgid ""
19926 "Alternately you can use an object-oriented style, calling methods on the "
19927 "class C<Guestfs.guestfs>:"
19928 msgstr ""
19929
19930 #. type: verbatim
19931 #: ../ocaml/examples/guestfs-ocaml.pod:47
19932 #, no-wrap
19933 msgid ""
19934 " method set_verbose : bool -> unit\n"
19935 "\n"
19936 msgstr ""
19937
19938 #. type: textblock
19939 #: ../ocaml/examples/guestfs-ocaml.pod:49
19940 msgid ""
19941 "The object-oriented style is usually briefer, and the minor performance "
19942 "penalty isn't noticable in the general overhead of performing libguestfs "
19943 "functions."
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../ocaml/examples/guestfs-ocaml.pod:55
19948 msgid ""
19949 "The handle is closed when it is reaped by the garbage collector.  Because "
19950 "libguestfs handles include a lot of state, it is also possible to close (and "
19951 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19952 "method."
19953 msgstr ""
19954
19955 #. type: textblock
19956 #: ../ocaml/examples/guestfs-ocaml.pod:62
19957 msgid ""
19958 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19959 "exception.  This has a single parameter which is the error message (a "
19960 "string)."
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../ocaml/examples/guestfs-ocaml.pod:66
19965 msgid ""
19966 "Calling any function/method on a closed handle raises "
19967 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19968 "that you called."
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../ocaml/examples/guestfs-ocaml.pod:80
19973 msgid ""
19974 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
19975 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
19976 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
19977 "L<http://caml.inria.fr/>."
19978 msgstr ""
19979
19980 #. type: textblock
19981 #: ../perl/examples/guestfs-perl.pod:5
19982 msgid "guestfs-perl - How to use libguestfs from Perl"
19983 msgstr ""
19984
19985 #. type: verbatim
19986 #: ../perl/examples/guestfs-perl.pod:9
19987 #, no-wrap
19988 msgid ""
19989 " use Sys::Guestfs;\n"
19990 " \n"
19991 msgstr ""
19992
19993 #. type: verbatim
19994 #: ../perl/examples/guestfs-perl.pod:11
19995 #, no-wrap
19996 msgid ""
19997 " my $h = Sys::Guestfs->new ();\n"
19998 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19999 " $h->launch ();\n"
20000 " $h->mount_options ('', '/dev/sda1', '/');\n"
20001 " $h->touch ('/hello');\n"
20002 " $h->sync ();\n"
20003 "\n"
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../perl/examples/guestfs-perl.pod:20
20008 msgid ""
20009 "This manual page documents how to call libguestfs from the Perl programming "
20010 "language.  This page just documents the differences from the C API and gives "
20011 "some examples.  If you are not familiar with using libguestfs, you also need "
20012 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
20013 msgstr ""
20014
20015 #. type: =head2
20016 #: ../perl/examples/guestfs-perl.pod:26
20017 msgid "ERRORS"
20018 msgstr ""
20019
20020 #. type: textblock
20021 #: ../perl/examples/guestfs-perl.pod:28
20022 msgid ""
20023 "Errors from libguestfs functions turn into calls to C<croak> (see "
20024 "L<Carp(3)>)."
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../perl/examples/guestfs-perl.pod:41
20029 msgid ""
20030 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
20031 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
20032 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
20033 "L<http://libguestfs.org/>."
20034 msgstr ""
20035
20036 #. type: textblock
20037 #: ../python/examples/guestfs-python.pod:5
20038 msgid "guestfs-python - How to use libguestfs from Python"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../python/examples/guestfs-python.pod:9
20043 #, no-wrap
20044 msgid ""
20045 " import guestfs\n"
20046 " g = guestfs.GuestFS ()\n"
20047 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
20048 " g.launch\n"
20049 "\n"
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../python/examples/guestfs-python.pod:16
20054 msgid ""
20055 "This manual page documents how to call libguestfs from the Python "
20056 "programming language.  This page just documents the differences from the C "
20057 "API and gives some examples.  If you are not familiar with using libguestfs, "
20058 "you also need to read L<guestfs(3)>."
20059 msgstr ""
20060
20061 #. type: textblock
20062 #: ../python/examples/guestfs-python.pod:23
20063 msgid ""
20064 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
20065 "single string argument which is the error message."
20066 msgstr ""
20067
20068 #. type: =head2
20069 #: ../python/examples/guestfs-python.pod:26
20070 msgid "MORE DOCUMENTATION"
20071 msgstr ""
20072
20073 #. type: textblock
20074 #: ../python/examples/guestfs-python.pod:28
20075 msgid "Type:"
20076 msgstr ""
20077
20078 #. type: verbatim
20079 #: ../python/examples/guestfs-python.pod:30
20080 #, no-wrap
20081 msgid ""
20082 " $ python\n"
20083 " >>> import guestfs\n"
20084 " >>> help (guestfs)\n"
20085 "\n"
20086 msgstr ""
20087
20088 #. type: textblock
20089 #: ../python/examples/guestfs-python.pod:44
20090 msgid ""
20091 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
20092 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
20093 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
20094 msgstr ""
20095
20096 #. type: textblock
20097 #: ../rescue/virt-rescue.pod:5
20098 msgid "virt-rescue - Run a rescue shell on a virtual machine"
20099 msgstr ""
20100
20101 #. type: verbatim
20102 #: ../rescue/virt-rescue.pod:9
20103 #, no-wrap
20104 msgid ""
20105 " virt-rescue [--options] -d domname\n"
20106 "\n"
20107 msgstr ""
20108
20109 #. type: verbatim
20110 #: ../rescue/virt-rescue.pod:11
20111 #, no-wrap
20112 msgid ""
20113 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20114 "\n"
20115 msgstr ""
20116
20117 #. type: verbatim
20118 #: ../rescue/virt-rescue.pod:15
20119 #, no-wrap
20120 msgid ""
20121 " virt-rescue [--options] domname\n"
20122 "\n"
20123 msgstr ""
20124
20125 #. type: verbatim
20126 #: ../rescue/virt-rescue.pod:17
20127 #, no-wrap
20128 msgid ""
20129 " virt-rescue [--options] disk.img [disk.img ...]\n"
20130 "\n"
20131 msgstr ""
20132
20133 #. type: textblock
20134 #: ../rescue/virt-rescue.pod:21
20135 msgid ""
20136 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20137 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20138 "you from doing this, but doesn't catch all cases."
20139 msgstr ""
20140
20141 #. type: textblock
20142 #: ../rescue/virt-rescue.pod:25
20143 msgid ""
20144 "However if you use the I<--ro> (read only) option, then you can attach a "
20145 "shell to a live virtual machine.  The results might be strange or "
20146 "inconsistent at times but you won't get disk corruption."
20147 msgstr ""
20148
20149 #. type: textblock
20150 #: ../rescue/virt-rescue.pod:31
20151 msgid ""
20152 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20153 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20154 "recovery tools which you can use to examine or rescue a virtual machine or "
20155 "disk image."
20156 msgstr ""
20157
20158 #. type: textblock
20159 #: ../rescue/virt-rescue.pod:36
20160 msgid ""
20161 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20162 "on disk image(s):"
20163 msgstr ""
20164
20165 #. type: verbatim
20166 #: ../rescue/virt-rescue.pod:39
20167 #, no-wrap
20168 msgid ""
20169 " virt-rescue -d GuestName\n"
20170 "\n"
20171 msgstr ""
20172
20173 #. type: verbatim
20174 #: ../rescue/virt-rescue.pod:41
20175 #, no-wrap
20176 msgid ""
20177 " virt-rescue --ro -a /path/to/disk.img\n"
20178 "\n"
20179 msgstr ""
20180
20181 #. type: verbatim
20182 #: ../rescue/virt-rescue.pod:43
20183 #, no-wrap
20184 msgid ""
20185 " virt-rescue -a /dev/sdc\n"
20186 "\n"
20187 msgstr ""
20188
20189 #. type: textblock
20190 #: ../rescue/virt-rescue.pod:45
20191 msgid "For live VMs you I<must> use the --ro option."
20192 msgstr ""
20193
20194 #. type: textblock
20195 #: ../rescue/virt-rescue.pod:47
20196 msgid ""
20197 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20198 "in an interactive bash shell where you can use many ordinary Linux "
20199 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20200 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20201 "is an empty directory called C</sysroot> where you can mount filesystems."
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../rescue/virt-rescue.pod:54
20206 msgid ""
20207 "In the example below, we list logical volumes, then choose one to mount "
20208 "under C</sysroot>:"
20209 msgstr ""
20210
20211 #. type: verbatim
20212 #: ../rescue/virt-rescue.pod:57
20213 #, no-wrap
20214 msgid ""
20215 " ><rescue> lvs\n"
20216 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20217 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20218 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20219 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20220 " ><rescue> ls /sysroot\n"
20221 "\n"
20222 msgstr ""
20223
20224 #. type: textblock
20225 #: ../rescue/virt-rescue.pod:64
20226 msgid ""
20227 "If you don't know what filesystems are available on the virtual machine then "
20228 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20229 msgstr ""
20230
20231 #. type: textblock
20232 #: ../rescue/virt-rescue.pod:70
20233 msgid ""
20234 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20235 "virtual machine.  For example you can use it on a blank file if you want to "
20236 "partition that file (although we would recommend using L<guestfish(1)> "
20237 "instead as it is more suitable for this purpose).  You can even use "
20238 "virt-rescue on things like SD cards."
20239 msgstr ""
20240
20241 #. type: textblock
20242 #: ../rescue/virt-rescue.pod:76
20243 msgid ""
20244 "Virt-rescue does not require root.  You only need to run it as root if you "
20245 "need root to open the disk image."
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../rescue/virt-rescue.pod:79
20250 msgid ""
20251 "This tool is just designed for quick interactive hacking on a virtual "
20252 "machine.  For more structured access to a virtual machine disk image, you "
20253 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20254 "make scripted changes to guests, use L<guestfish(1)>."
20255 msgstr ""
20256
20257 #. type: =item
20258 #: ../rescue/virt-rescue.pod:103
20259 msgid "B<--append kernelopts>"
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../rescue/virt-rescue.pod:105
20264 msgid "Pass additional options to the rescue kernel."
20265 msgstr ""
20266
20267 #. type: verbatim
20268 #: ../rescue/virt-rescue.pod:135
20269 #, no-wrap
20270 msgid ""
20271 " virt-rescue --format=raw -a disk.img\n"
20272 "\n"
20273 msgstr ""
20274
20275 #. type: verbatim
20276 #: ../rescue/virt-rescue.pod:139
20277 #, no-wrap
20278 msgid ""
20279 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20280 "\n"
20281 msgstr ""
20282
20283 #. type: =item
20284 #: ../rescue/virt-rescue.pod:148
20285 msgid "B<-m MB>"
20286 msgstr ""
20287
20288 #. type: =item
20289 #: ../rescue/virt-rescue.pod:150
20290 msgid "B<--memsize MB>"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../rescue/virt-rescue.pod:152
20295 msgid ""
20296 "Change the amount of memory allocated to the rescue system.  The default is "
20297 "set by libguestfs and is small but adequate for running system tools.  The "
20298 "occasional program might need more memory.  The parameter is specified in "
20299 "megabytes."
20300 msgstr ""
20301
20302 #. type: =item
20303 #: ../rescue/virt-rescue.pod:157
20304 msgid "B<--network>"
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../rescue/virt-rescue.pod:159
20309 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20310 msgstr ""
20311
20312 #. type: textblock
20313 #: ../rescue/virt-rescue.pod:165
20314 msgid "Open the image read-only."
20315 msgstr ""
20316
20317 #. type: textblock
20318 #: ../rescue/virt-rescue.pod:175
20319 msgid ""
20320 "Enable SELinux in the rescue appliance.  You should read "
20321 "L<guestfs(3)/SELINUX> before using this option."
20322 msgstr ""
20323
20324 #. type: =item
20325 #: ../rescue/virt-rescue.pod:178
20326 msgid "B<--smp> N"
20327 msgstr ""
20328
20329 #. type: textblock
20330 #: ../rescue/virt-rescue.pod:180
20331 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../rescue/virt-rescue.pod:198
20336 msgid ""
20337 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20338 "are done read-write."
20339 msgstr ""
20340
20341 #. type: textblock
20342 #: ../rescue/virt-rescue.pod:211
20343 msgid "Previous versions of virt-rescue allowed you to write either:"
20344 msgstr ""
20345
20346 #. type: verbatim
20347 #: ../rescue/virt-rescue.pod:213
20348 #, no-wrap
20349 msgid ""
20350 " virt-rescue disk.img [disk.img ...]\n"
20351 "\n"
20352 msgstr ""
20353
20354 #. type: verbatim
20355 #: ../rescue/virt-rescue.pod:217
20356 #, no-wrap
20357 msgid ""
20358 " virt-rescue guestname\n"
20359 "\n"
20360 msgstr ""
20361
20362 #. type: =head1
20363 #: ../rescue/virt-rescue.pod:225
20364 msgid "NETWORK"
20365 msgstr ""
20366
20367 #. type: textblock
20368 #: ../rescue/virt-rescue.pod:227
20369 msgid ""
20370 "Adding the I<--network> option enables QEMU user networking in the rescue "
20371 "appliance.  There are some differences between user networking and ordinary "
20372 "networking:"
20373 msgstr ""
20374
20375 #. type: =item
20376 #: ../rescue/virt-rescue.pod:233
20377 msgid "ping does not work"
20378 msgstr ""
20379
20380 #. type: textblock
20381 #: ../rescue/virt-rescue.pod:235
20382 msgid ""
20383 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20384 "send the ping packets, and because virt-rescue must be able to run as "
20385 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
20386 "command.  The ping command will appear to resolve addresses but will not be "
20387 "able to send or receive any packets.  This does not mean that the network is "
20388 "not working."
20389 msgstr ""
20390
20391 #. type: =item
20392 #: ../rescue/virt-rescue.pod:242
20393 msgid "cannot receive connections"
20394 msgstr ""
20395
20396 #. type: textblock
20397 #: ../rescue/virt-rescue.pod:244
20398 msgid "QEMU user networking cannot receive incoming connections."
20399 msgstr ""
20400
20401 #. type: =item
20402 #: ../rescue/virt-rescue.pod:246
20403 msgid "making TCP connections"
20404 msgstr ""
20405
20406 #. type: textblock
20407 #: ../rescue/virt-rescue.pod:248
20408 msgid ""
20409 "The virt-rescue appliance needs to be small and so does not include many "
20410 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20411 "make TCP connections from the shell using the magical "
20412 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20413 msgstr ""
20414
20415 #. type: verbatim
20416 #: ../rescue/virt-rescue.pod:253
20417 #, no-wrap
20418 msgid ""
20419 " exec 3<>/dev/tcp/redhat.com/80\n"
20420 " echo \"GET /\" >&3\n"
20421 " cat <&3\n"
20422 "\n"
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../rescue/virt-rescue.pod:257
20427 msgid "See L<bash(1)> for more details."
20428 msgstr ""
20429
20430 #. type: textblock
20431 #: ../rescue/virt-rescue.pod:263
20432 msgid ""
20433 "Several environment variables affect virt-rescue.  See "
20434 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20435 msgstr ""
20436
20437 #. type: textblock
20438 #: ../rescue/virt-rescue.pod:290
20439 msgid ""
20440 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20441 "L<http://libguestfs.org/>."
20442 msgstr ""
20443
20444 #. type: textblock
20445 #: ../resize/virt-resize.pod:5
20446 msgid "virt-resize - Resize a virtual machine disk"
20447 msgstr ""
20448
20449 #. type: verbatim
20450 #: ../resize/virt-resize.pod:9
20451 #, no-wrap
20452 msgid ""
20453 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20454 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20455 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20456 "\n"
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../resize/virt-resize.pod:15
20461 msgid ""
20462 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20463 "larger or smaller overall, and resizing or deleting any partitions contained "
20464 "within."
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../resize/virt-resize.pod:19
20469 msgid ""
20470 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20471 "not> be used on live virtual machines - for consistent results, shut the "
20472 "virtual machine down before resizing it."
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../resize/virt-resize.pod:23
20477 msgid ""
20478 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20479 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20480 msgstr ""
20481
20482 #. type: =item
20483 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520 ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
20484 msgid "1."
20485 msgstr ""
20486
20487 #. type: textblock
20488 #: ../resize/virt-resize.pod:33
20489 msgid ""
20490 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20491 "fill the extra 5GB of space."
20492 msgstr ""
20493
20494 #. type: verbatim
20495 #: ../resize/virt-resize.pod:36
20496 #, no-wrap
20497 msgid ""
20498 " virt-filesystems --long -h --all -a olddisk\n"
20499 " \n"
20500 msgstr ""
20501
20502 #. type: verbatim
20503 #: ../resize/virt-resize.pod:38
20504 #, no-wrap
20505 msgid ""
20506 " truncate -r olddisk newdisk\n"
20507 " truncate -s +5G newdisk\n"
20508 " \n"
20509 msgstr ""
20510
20511 #. type: verbatim
20512 #: ../resize/virt-resize.pod:41
20513 #, no-wrap
20514 msgid ""
20515 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20516 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20517 "\n"
20518 msgstr ""
20519
20520 #. type: =item
20521 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527 ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
20522 msgid "2."
20523 msgstr ""
20524
20525 #. type: textblock
20526 #: ../resize/virt-resize.pod:46
20527 msgid ""
20528 "As above, but make the /boot partition 200MB bigger, while giving the "
20529 "remaining space to /dev/sda2:"
20530 msgstr ""
20531
20532 #. type: verbatim
20533 #: ../resize/virt-resize.pod:49
20534 #, no-wrap
20535 msgid ""
20536 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20537 "   olddisk newdisk\n"
20538 "\n"
20539 msgstr ""
20540
20541 #. type: =item
20542 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533 ../src/guestfs.pod:486 ../src/guestfs.pod:1436
20543 msgid "3."
20544 msgstr ""
20545
20546 #. type: textblock
20547 #: ../resize/virt-resize.pod:54
20548 msgid ""
20549 "As in the first example, but expand a logical volume as the final step.  "
20550 "This is what you would typically use for Linux guests that use LVM:"
20551 msgstr ""
20552
20553 #. type: verbatim
20554 #: ../resize/virt-resize.pod:58
20555 #, no-wrap
20556 msgid ""
20557 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20558 "   olddisk newdisk\n"
20559 "\n"
20560 msgstr ""
20561
20562 #. type: =item
20563 #: ../resize/virt-resize.pod:61
20564 msgid "4."
20565 msgstr ""
20566
20567 #. type: textblock
20568 #: ../resize/virt-resize.pod:63
20569 msgid ""
20570 "As in the first example, but the output format will be qcow2 instead of a "
20571 "raw disk:"
20572 msgstr ""
20573
20574 #. type: verbatim
20575 #: ../resize/virt-resize.pod:66
20576 #, no-wrap
20577 msgid ""
20578 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20579 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20580 "\n"
20581 msgstr ""
20582
20583 #. type: =head1
20584 #: ../resize/virt-resize.pod:71
20585 msgid "DETAILED USAGE"
20586 msgstr ""
20587
20588 #. type: =head2
20589 #: ../resize/virt-resize.pod:73
20590 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20591 msgstr ""
20592
20593 #. type: =item
20594 #: ../resize/virt-resize.pod:77
20595 msgid "1. Shut down the virtual machine"
20596 msgstr ""
20597
20598 #. type: =item
20599 #: ../resize/virt-resize.pod:79
20600 msgid "2. Locate input disk image"
20601 msgstr ""
20602
20603 #. type: textblock
20604 #: ../resize/virt-resize.pod:81
20605 msgid ""
20606 "Locate the input disk image (ie. the file or device on the host containing "
20607 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20608 "dumpxml> like this to find the disk image name:"
20609 msgstr ""
20610
20611 #. type: verbatim
20612 #: ../resize/virt-resize.pod:85
20613 #, no-wrap
20614 msgid ""
20615 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20616 " Found 1 nodes:\n"
20617 " -- NODE --\n"
20618 " <source dev=\"/dev/vg/lv_guest\" />\n"
20619 "\n"
20620 msgstr ""
20621
20622 #. type: =item
20623 #: ../resize/virt-resize.pod:90
20624 msgid "3. Look at current sizing"
20625 msgstr ""
20626
20627 #. type: textblock
20628 #: ../resize/virt-resize.pod:92
20629 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20630 msgstr ""
20631
20632 #. type: verbatim
20633 #: ../resize/virt-resize.pod:95
20634 #, no-wrap
20635 msgid ""
20636 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20637 " Name       Type       Size  Parent\n"
20638 " /dev/sda1  partition  101M  /dev/sda\n"
20639 " /dev/sda2  partition  7.9G  /dev/sda\n"
20640 " /dev/sda   device     8.0G  -\n"
20641 "\n"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../resize/virt-resize.pod:101
20646 msgid ""
20647 "(This example is a virtual machine with an 8 GB disk which we would like to "
20648 "expand up to 10 GB)."
20649 msgstr ""
20650
20651 #. type: =item
20652 #: ../resize/virt-resize.pod:104
20653 msgid "4. Create output disk"
20654 msgstr ""
20655
20656 #. type: textblock
20657 #: ../resize/virt-resize.pod:106
20658 msgid ""
20659 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20660 "to store the resized output disk."
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../resize/virt-resize.pod:109
20665 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20666 msgstr ""
20667
20668 #. type: verbatim
20669 #: ../resize/virt-resize.pod:112
20670 #, no-wrap
20671 msgid ""
20672 " # rm -f outdisk\n"
20673 " # truncate -s 10G outdisk\n"
20674 "\n"
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../resize/virt-resize.pod:115
20679 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20680 msgstr ""
20681
20682 #. type: verbatim
20683 #: ../resize/virt-resize.pod:117
20684 #, no-wrap
20685 msgid ""
20686 " # lvcreate -L 10G -n lv_name vg_name\n"
20687 "\n"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../resize/virt-resize.pod:119
20692 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20693 msgstr ""
20694
20695 #. type: verbatim
20696 #: ../resize/virt-resize.pod:121
20697 #, no-wrap
20698 msgid ""
20699 " # virsh pool-list\n"
20700 " # virsh vol-create-as poolname newvol 10G\n"
20701 "\n"
20702 msgstr ""
20703
20704 #. type: =item
20705 #: ../resize/virt-resize.pod:124
20706 msgid "5. Resize"
20707 msgstr ""
20708
20709 #. type: textblock
20710 #: ../resize/virt-resize.pod:126
20711 msgid ""
20712 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20713 "file) and the output disk.  The output disk is the one created in the "
20714 "previous step."
20715 msgstr ""
20716
20717 #. type: verbatim
20718 #: ../resize/virt-resize.pod:130
20719 #, no-wrap
20720 msgid ""
20721 " # virt-resize indisk outdisk\n"
20722 "\n"
20723 msgstr ""
20724
20725 #. type: textblock
20726 #: ../resize/virt-resize.pod:132
20727 msgid ""
20728 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20729 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20730 "larger, then an extra, empty partition is created at the end of the disk "
20731 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20732 "error."
20733 msgstr ""
20734
20735 #. type: textblock
20736 #: ../resize/virt-resize.pod:138
20737 msgid ""
20738 "More realistically you'd want to expand existing partitions in the disk "
20739 "image by passing extra options (for the full list see the L</OPTIONS> "
20740 "section below)."
20741 msgstr ""
20742
20743 #. type: textblock
20744 #: ../resize/virt-resize.pod:142
20745 msgid ""
20746 "L</--expand> is the most useful option.  It expands the named partition "
20747 "within the disk to fill any extra space:"
20748 msgstr ""
20749
20750 #. type: verbatim
20751 #: ../resize/virt-resize.pod:145
20752 #, no-wrap
20753 msgid ""
20754 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20755 "\n"
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../resize/virt-resize.pod:147
20760 msgid ""
20761 "(In this case, an extra partition is I<not> created at the end of the disk, "
20762 "because there will be no unused space)."
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../resize/virt-resize.pod:150
20767 msgid ""
20768 "L</--resize> is the other commonly used option.  The following would "
20769 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20770 "rest of the available space:"
20771 msgstr ""
20772
20773 #. type: verbatim
20774 #: ../resize/virt-resize.pod:154
20775 #, no-wrap
20776 msgid ""
20777 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20778 "     indisk outdisk\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../resize/virt-resize.pod:157
20784 msgid ""
20785 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20786 "if virt-resize knows how, it will resize the contents, the equivalent of "
20787 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20788 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20789 "filesystems, so you would have to online resize them after booting the "
20790 "guest."
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../resize/virt-resize.pod:164
20795 msgid "Other options are covered below."
20796 msgstr ""
20797
20798 #. type: =item
20799 #: ../resize/virt-resize.pod:166
20800 msgid "6. Test"
20801 msgstr ""
20802
20803 #. type: textblock
20804 #: ../resize/virt-resize.pod:168
20805 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20806 msgstr ""
20807
20808 #. type: textblock
20809 #: ../resize/virt-resize.pod:170
20810 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20811 msgstr ""
20812
20813 #. type: verbatim
20814 #: ../resize/virt-resize.pod:172
20815 #, no-wrap
20816 msgid ""
20817 " # virsh edit guestname\n"
20818 "\n"
20819 msgstr ""
20820
20821 #. type: textblock
20822 #: ../resize/virt-resize.pod:174
20823 msgid ""
20824 "Change E<lt>source ...E<gt>, see "
20825 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20826 msgstr ""
20827
20828 #. type: textblock
20829 #: ../resize/virt-resize.pod:177
20830 msgid "Then start up the domain with the new, resized disk:"
20831 msgstr ""
20832
20833 #. type: verbatim
20834 #: ../resize/virt-resize.pod:179
20835 #, no-wrap
20836 msgid ""
20837 " # virsh start guestname\n"
20838 "\n"
20839 msgstr ""
20840
20841 #. type: textblock
20842 #: ../resize/virt-resize.pod:181
20843 msgid ""
20844 "and check that it still works.  See also the L</NOTES> section below for "
20845 "additional information."
20846 msgstr ""
20847
20848 #. type: =item
20849 #: ../resize/virt-resize.pod:184
20850 msgid "7. Resize LVs etc inside the guest"
20851 msgstr ""
20852
20853 #. type: textblock
20854 #: ../resize/virt-resize.pod:186
20855 msgid "(This can also be done offline using L<guestfish(1)>)"
20856 msgstr ""
20857
20858 #. type: textblock
20859 #: ../resize/virt-resize.pod:188
20860 msgid ""
20861 "Once the guest has booted you should see the new space available, at least "
20862 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20863 "may need to resize LVs inside PVs, and also resize filesystem types that "
20864 "virt-resize does not know how to expand."
20865 msgstr ""
20866
20867 #. type: =head2
20868 #: ../resize/virt-resize.pod:195
20869 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20870 msgstr ""
20871
20872 #. type: textblock
20873 #: ../resize/virt-resize.pod:197
20874 msgid ""
20875 "Shrinking is somewhat more complex than expanding, and only an overview is "
20876 "given here."
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../resize/virt-resize.pod:200
20881 msgid ""
20882 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20883 "filesystems).  The user has to shrink content before passing the disk image "
20884 "to virt-resize, and virt-resize will check that the content has been shrunk "
20885 "properly."
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../resize/virt-resize.pod:205
20890 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20891 msgstr ""
20892
20893 #. type: textblock
20894 #: ../resize/virt-resize.pod:207
20895 msgid ""
20896 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20897 "steps 3 and 4 above to allocate a new disk image."
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../resize/virt-resize.pod:210
20902 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20903 msgstr ""
20904
20905 #. type: =head2
20906 #: ../resize/virt-resize.pod:213
20907 msgid "IGNORING OR DELETING PARTITIONS"
20908 msgstr ""
20909
20910 #. type: textblock
20911 #: ../resize/virt-resize.pod:215
20912 msgid ""
20913 "virt-resize also gives a convenient way to ignore or delete partitions when "
20914 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20915 "up the copy where you don't care about the existing contents of a "
20916 "partition.  Deleting a partition removes it completely, but note that it "
20917 "also renumbers any partitions after the one which is deleted, which can "
20918 "leave some guests unbootable."
20919 msgstr ""
20920
20921 #. type: =head2
20922 #: ../resize/virt-resize.pod:222
20923 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../resize/virt-resize.pod:224
20928 msgid ""
20929 "If the input disk is in qcow2 format, then you may prefer that the output is "
20930 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20931 "the fly.  The output format is simply determined by the format of the empty "
20932 "output container that you provide.  Thus to create qcow2 output, use:"
20933 msgstr ""
20934
20935 #. type: verbatim
20936 #: ../resize/virt-resize.pod:230
20937 #, no-wrap
20938 msgid ""
20939 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20940 "\n"
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../resize/virt-resize.pod:232
20945 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20946 msgstr ""
20947
20948 #. type: textblock
20949 #: ../resize/virt-resize.pod:234
20950 msgid "Similarly, to get non-sparse raw output use:"
20951 msgstr ""
20952
20953 #. type: verbatim
20954 #: ../resize/virt-resize.pod:236
20955 #, no-wrap
20956 msgid ""
20957 " fallocate -l size outdisk\n"
20958 "\n"
20959 msgstr ""
20960
20961 #. type: textblock
20962 #: ../resize/virt-resize.pod:238
20963 msgid ""
20964 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20965 "if=/dev/zero of=outdisk bs=1M count=..>)"
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../resize/virt-resize.pod:247
20970 msgid "Display help."
20971 msgstr ""
20972
20973 #. type: =item
20974 #: ../resize/virt-resize.pod:249
20975 msgid "B<-d>"
20976 msgstr ""
20977
20978 #. type: =item
20979 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20980 msgid "B<--debug>"
20981 msgstr ""
20982
20983 #. type: textblock
20984 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20985 msgid "Enable debugging messages."
20986 msgstr ""
20987
20988 #. type: =item
20989 #: ../resize/virt-resize.pod:255
20990 msgid "B<--delete part>"
20991 msgstr ""
20992
20993 #. type: textblock
20994 #: ../resize/virt-resize.pod:257
20995 msgid ""
20996 "Delete the named partition.  It would be more accurate to describe this as "
20997 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20998 "the original disk image is left intact."
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../resize/virt-resize.pod:261
21003 msgid ""
21004 "Note that when you delete a partition, then anything contained in the "
21005 "partition is also deleted.  Furthermore, this causes any partitions that "
21006 "come after to be I<renumbered>, which can easily make your guest unbootable."
21007 msgstr ""
21008
21009 #. type: textblock
21010 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454
21011 msgid "You can give this option multiple times."
21012 msgstr ""
21013
21014 #. type: =item
21015 #: ../resize/virt-resize.pod:268
21016 msgid "B<--expand part>"
21017 msgstr ""
21018
21019 #. type: textblock
21020 #: ../resize/virt-resize.pod:270
21021 msgid ""
21022 "Expand the named partition so it uses up all extra space (space left over "
21023 "after any other resize changes that you request have been done)."
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../resize/virt-resize.pod:273
21028 msgid ""
21029 "If virt-resize knows how, it will expand the direct content of the "
21030 "partition.  For example, if the partition is an LVM PV, it will expand the "
21031 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
21032 "content it doesn't know about alone."
21033 msgstr ""
21034
21035 #. type: textblock
21036 #: ../resize/virt-resize.pod:278
21037 msgid "Currently virt-resize can resize:"
21038 msgstr ""
21039
21040 #. type: textblock
21041 #: ../resize/virt-resize.pod:284
21042 msgid "ext2, ext3 and ext4 filesystems."
21043 msgstr ""
21044
21045 #. type: textblock
21046 #: ../resize/virt-resize.pod:288
21047 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
21048 msgstr ""
21049
21050 #. type: textblock
21051 #: ../resize/virt-resize.pod:290
21052 msgid ""
21053 "The filesystem must have been shut down consistently last time it was used.  "
21054 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
21055 "consistency check, so at the first boot after resizing Windows will check "
21056 "the disk."
21057 msgstr ""
21058
21059 #. type: textblock
21060 #: ../resize/virt-resize.pod:297
21061 msgid ""
21062 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
21063 "inside the PV, but see the I<--LV-expand> option.  The user could also "
21064 "resize LVs as desired after boot."
21065 msgstr ""
21066
21067 #. type: textblock
21068 #: ../resize/virt-resize.pod:303
21069 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
21070 msgstr ""
21071
21072 #. type: textblock
21073 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
21074 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
21075 msgstr ""
21076
21077 #. type: =item
21078 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
21079 msgid "B<--format> raw"
21080 msgstr ""
21081
21082 #. type: textblock
21083 #: ../resize/virt-resize.pod:311
21084 msgid ""
21085 "Specify the format of the input disk image.  If this flag is not given then "
21086 "it is auto-detected from the image itself."
21087 msgstr ""
21088
21089 #. type: textblock
21090 #: ../resize/virt-resize.pod:317
21091 msgid ""
21092 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
21093 "AND NON-SPARSE RAW FORMATS>."
21094 msgstr ""
21095
21096 #. type: =item
21097 #: ../resize/virt-resize.pod:320
21098 msgid "B<--ignore part>"
21099 msgstr ""
21100
21101 #. type: textblock
21102 #: ../resize/virt-resize.pod:322
21103 msgid ""
21104 "Ignore the named partition.  Effectively this means the partition is "
21105 "allocated on the destination disk, but the content is not copied across from "
21106 "the source disk.  The content of the partition will be blank (all zero "
21107 "bytes)."
21108 msgstr ""
21109
21110 #. type: =item
21111 #: ../resize/virt-resize.pod:329
21112 msgid "B<--LV-expand logvol>"
21113 msgstr ""
21114
21115 #. type: textblock
21116 #: ../resize/virt-resize.pod:331
21117 msgid ""
21118 "This takes the logical volume and, as a final step, expands it to fill all "
21119 "the space available in its volume group.  A typical usage, assuming a Linux "
21120 "guest with a single PV C</dev/sda2> and a root device called "
21121 "C</dev/vg_guest/lv_root> would be:"
21122 msgstr ""
21123
21124 #. type: verbatim
21125 #: ../resize/virt-resize.pod:336
21126 #, no-wrap
21127 msgid ""
21128 " virt-resize indisk outdisk \\\n"
21129 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21130 "\n"
21131 msgstr ""
21132
21133 #. type: textblock
21134 #: ../resize/virt-resize.pod:339
21135 msgid ""
21136 "This would first expand the partition (and PV), and then expand the root "
21137 "device to fill the extra space in the PV."
21138 msgstr ""
21139
21140 #. type: textblock
21141 #: ../resize/virt-resize.pod:342
21142 msgid ""
21143 "The contents of the LV are also resized if virt-resize knows how to do "
21144 "that.  You can stop virt-resize from trying to expand the content by using "
21145 "the option I<--no-expand-content>."
21146 msgstr ""
21147
21148 #. type: textblock
21149 #: ../resize/virt-resize.pod:346
21150 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../resize/virt-resize.pod:348
21155 msgid ""
21156 "You can give this option multiple times, I<but> it doesn't make sense to do "
21157 "this unless the logical volumes you specify are all in different volume "
21158 "groups."
21159 msgstr ""
21160
21161 #. type: =item
21162 #: ../resize/virt-resize.pod:352
21163 msgid "B<--machine-readable>"
21164 msgstr ""
21165
21166 #. type: textblock
21167 #: ../resize/virt-resize.pod:354
21168 msgid ""
21169 "This option is used to make the output more machine friendly when being "
21170 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21171 msgstr ""
21172
21173 #. type: =item
21174 #: ../resize/virt-resize.pod:360
21175 msgid "B<--dryrun>"
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../resize/virt-resize.pod:362
21180 msgid "Print a summary of what would be done, but don't do anything."
21181 msgstr ""
21182
21183 #. type: =item
21184 #: ../resize/virt-resize.pod:364
21185 msgid "B<--no-copy-boot-loader>"
21186 msgstr ""
21187
21188 #. type: textblock
21189 #: ../resize/virt-resize.pod:366
21190 msgid ""
21191 "By default, virt-resize copies over some sectors at the start of the disk "
21192 "(up to the beginning of the first partition).  Commonly these sectors "
21193 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21194 "in order for the guest to boot correctly."
21195 msgstr ""
21196
21197 #. type: textblock
21198 #: ../resize/virt-resize.pod:371
21199 msgid ""
21200 "If you specify this flag, then this initial copy is not done.  You may need "
21201 "to reinstall the boot loader in this case."
21202 msgstr ""
21203
21204 #. type: =item
21205 #: ../resize/virt-resize.pod:374
21206 msgid "B<--no-extra-partition>"
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../resize/virt-resize.pod:376
21211 msgid ""
21212 "By default, virt-resize creates an extra partition if there is any extra, "
21213 "unused space after all resizing has happened.  Use this option to prevent "
21214 "the extra partition from being created.  If you do this then the extra space "
21215 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21216 "tool in the guest."
21217 msgstr ""
21218
21219 #. type: textblock
21220 #: ../resize/virt-resize.pod:382
21221 msgid ""
21222 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21223 "will be created."
21224 msgstr ""
21225
21226 #. type: =item
21227 #: ../resize/virt-resize.pod:385
21228 msgid "B<--no-expand-content>"
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../resize/virt-resize.pod:387
21233 msgid ""
21234 "By default, virt-resize will try to expand the direct contents of "
21235 "partitions, if it knows how (see I<--expand> option above)."
21236 msgstr ""
21237
21238 #. type: textblock
21239 #: ../resize/virt-resize.pod:390
21240 msgid ""
21241 "If you give the I<--no-expand-content> option then virt-resize will not "
21242 "attempt this."
21243 msgstr ""
21244
21245 #. type: =item
21246 #: ../resize/virt-resize.pod:393
21247 msgid "B<--ntfsresize-force>"
21248 msgstr ""
21249
21250 #. type: textblock
21251 #: ../resize/virt-resize.pod:395
21252 msgid ""
21253 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21254 "the NTFS disk is marked as needing a consistency check.  You have to use "
21255 "this option if you want to resize a Windows guest multiple times without "
21256 "booting into Windows between each resize."
21257 msgstr ""
21258
21259 #. type: =item
21260 #: ../resize/virt-resize.pod:401
21261 msgid "B<--output-format> raw"
21262 msgstr ""
21263
21264 #. type: textblock
21265 #: ../resize/virt-resize.pod:403
21266 msgid ""
21267 "Specify the format of the output disk image.  If this flag is not given then "
21268 "it is auto-detected from the image itself."
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../resize/virt-resize.pod:409
21273 msgid ""
21274 "Note that this option I<does not create> the output format.  This option "
21275 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21276 "need to create the output disk with the right format.  See L</QCOW2 AND "
21277 "NON-SPARSE RAW FORMATS>."
21278 msgstr ""
21279
21280 #. type: =item
21281 #: ../resize/virt-resize.pod:414
21282 msgid "B<-q>"
21283 msgstr ""
21284
21285 #. type: =item
21286 #: ../resize/virt-resize.pod:416
21287 msgid "B<--quiet>"
21288 msgstr ""
21289
21290 #. type: textblock
21291 #: ../resize/virt-resize.pod:418
21292 msgid "Don't print the summary."
21293 msgstr ""
21294
21295 #. type: =item
21296 #: ../resize/virt-resize.pod:420
21297 msgid "B<--resize part=size>"
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../resize/virt-resize.pod:422
21302 msgid ""
21303 "Resize the named partition (expanding or shrinking it) so that it has the "
21304 "given size."
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../resize/virt-resize.pod:425
21309 msgid ""
21310 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21311 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21312 "size; or as a relative number or percentage.  For example:"
21313 msgstr ""
21314
21315 #. type: verbatim
21316 #: ../resize/virt-resize.pod:431
21317 #, no-wrap
21318 msgid ""
21319 " --resize /dev/sda2=10G\n"
21320 "\n"
21321 msgstr ""
21322
21323 #. type: verbatim
21324 #: ../resize/virt-resize.pod:433
21325 #, no-wrap
21326 msgid ""
21327 " --resize /dev/sda4=90%\n"
21328 "\n"
21329 msgstr ""
21330
21331 #. type: verbatim
21332 #: ../resize/virt-resize.pod:435
21333 #, no-wrap
21334 msgid ""
21335 " --resize /dev/sda2=+1G\n"
21336 "\n"
21337 msgstr ""
21338
21339 #. type: verbatim
21340 #: ../resize/virt-resize.pod:437
21341 #, no-wrap
21342 msgid ""
21343 " --resize /dev/sda2=-200M\n"
21344 "\n"
21345 msgstr ""
21346
21347 #. type: verbatim
21348 #: ../resize/virt-resize.pod:439
21349 #, no-wrap
21350 msgid ""
21351 " --resize /dev/sda1=+128K\n"
21352 "\n"
21353 msgstr ""
21354
21355 #. type: verbatim
21356 #: ../resize/virt-resize.pod:441
21357 #, no-wrap
21358 msgid ""
21359 " --resize /dev/sda1=+10%\n"
21360 "\n"
21361 msgstr ""
21362
21363 #. type: verbatim
21364 #: ../resize/virt-resize.pod:443
21365 #, no-wrap
21366 msgid ""
21367 " --resize /dev/sda1=-10%\n"
21368 "\n"
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../resize/virt-resize.pod:445
21373 msgid ""
21374 "You can increase the size of any partition.  Virt-resize will expand the "
21375 "direct content of the partition if it knows how (see I<--expand> below)."
21376 msgstr ""
21377
21378 #. type: textblock
21379 #: ../resize/virt-resize.pod:449
21380 msgid ""
21381 "You can only I<decrease> the size of partitions that contain filesystems or "
21382 "PVs which have already been shrunk.  Virt-resize will check this has been "
21383 "done before proceeding, or else will print an error (see also "
21384 "I<--resize-force>)."
21385 msgstr ""
21386
21387 #. type: =item
21388 #: ../resize/virt-resize.pod:456
21389 msgid "B<--resize-force part=size>"
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../resize/virt-resize.pod:458
21394 msgid ""
21395 "This is the same as I<--resize> except that it will let you decrease the "
21396 "size of any partition.  Generally this means you will lose any data which "
21397 "was at the end of the partition you shrink, but you may not care about that "
21398 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21399 "as a swap partition)."
21400 msgstr ""
21401
21402 #. type: textblock
21403 #: ../resize/virt-resize.pod:464
21404 msgid "See also the I<--ignore> option."
21405 msgstr ""
21406
21407 #. type: =item
21408 #: ../resize/virt-resize.pod:466
21409 msgid "B<--shrink part>"
21410 msgstr ""
21411
21412 #. type: textblock
21413 #: ../resize/virt-resize.pod:468
21414 msgid ""
21415 "Shrink the named partition until the overall disk image fits in the "
21416 "destination.  The named partition B<must> contain a filesystem or PV which "
21417 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21418 "online tools).  Virt-resize will check this and give an error if it has not "
21419 "been done."
21420 msgstr ""
21421
21422 #. type: textblock
21423 #: ../resize/virt-resize.pod:474
21424 msgid ""
21425 "The amount by which the overall disk must be shrunk (after carrying out all "
21426 "other operations requested by the user) is called the \"deficit\".  For "
21427 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21428 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21429 "would give an error unless the user specified a partition to shrink and that "
21430 "partition had more than a gigabyte of free space."
21431 msgstr ""
21432
21433 #. type: =head1
21434 #: ../resize/virt-resize.pod:492
21435 msgid "MACHINE READABLE OUTPUT"
21436 msgstr ""
21437
21438 #. type: textblock
21439 #: ../resize/virt-resize.pod:494
21440 msgid ""
21441 "The I<--machine-readable> option can be used to make the output more machine "
21442 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21443 "etc."
21444 msgstr ""
21445
21446 #. type: textblock
21447 #: ../resize/virt-resize.pod:498
21448 msgid "There are two ways to use this option."
21449 msgstr ""
21450
21451 #. type: textblock
21452 #: ../resize/virt-resize.pod:500
21453 msgid ""
21454 "Firstly use the option on its own to query the capabilities of the "
21455 "virt-resize binary.  Typical output looks like this:"
21456 msgstr ""
21457
21458 #. type: verbatim
21459 #: ../resize/virt-resize.pod:503
21460 #, no-wrap
21461 msgid ""
21462 " $ virt-resize --machine-readable\n"
21463 " virt-resize\n"
21464 " ntfsresize-force\n"
21465 " 32bitok\n"
21466 " ntfs\n"
21467 " btrfs\n"
21468 "\n"
21469 msgstr ""
21470
21471 #. type: textblock
21472 #: ../resize/virt-resize.pod:510
21473 msgid ""
21474 "A list of features is printed, one per line, and the program exits with "
21475 "status 0."
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../resize/virt-resize.pod:513
21480 msgid ""
21481 "Secondly use the option in conjunction with other options to make the "
21482 "regular program output more machine friendly."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../resize/virt-resize.pod:516
21487 msgid "At the moment this means:"
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../resize/virt-resize.pod:522
21492 msgid ""
21493 "Progress bar messages can be parsed from stdout by looking for this regular "
21494 "expression:"
21495 msgstr ""
21496
21497 #. type: verbatim
21498 #: ../resize/virt-resize.pod:525
21499 #, no-wrap
21500 msgid ""
21501 " ^[0-9]+/[0-9]+$\n"
21502 "\n"
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../resize/virt-resize.pod:529
21507 msgid ""
21508 "The calling program should treat messages sent to stdout (except for "
21509 "progress bar messages) as status messages.  They can be logged and/or "
21510 "displayed to the user."
21511 msgstr ""
21512
21513 #. type: textblock
21514 #: ../resize/virt-resize.pod:535
21515 msgid ""
21516 "The calling program should treat messages sent to stderr as error messages.  "
21517 "In addition, virt-resize exits with a non-zero status code if there was a "
21518 "fatal error."
21519 msgstr ""
21520
21521 #. type: textblock
21522 #: ../resize/virt-resize.pod:541
21523 msgid ""
21524 "Versions of the program prior to 1.13.9 did not support the "
21525 "I<--machine-readable> option and will return an error."
21526 msgstr ""
21527
21528 #. type: =head2
21529 #: ../resize/virt-resize.pod:546
21530 msgid "\"Partition 1 does not end on cylinder boundary.\""
21531 msgstr ""
21532
21533 #. type: textblock
21534 #: ../resize/virt-resize.pod:548
21535 msgid ""
21536 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21537 "means the partitions will not be aligned to the ancient CHS geometry.  "
21538 "However CHS geometry is meaningless for disks manufactured since the early "
21539 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21540 "cylinders is not required by any modern operating system."
21541 msgstr ""
21542
21543 #. type: =head2
21544 #: ../resize/virt-resize.pod:555
21545 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../resize/virt-resize.pod:557
21550 msgid ""
21551 "In Windows Vista and later versions, Microsoft switched to using a separate "
21552 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21553 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21554 "the boot partition.  Doing so seems to break the guest completely.  However "
21555 "expanding the second partition (ie. C: drive) should work."
21556 msgstr ""
21557
21558 #. type: textblock
21559 #: ../resize/virt-resize.pod:564
21560 msgid ""
21561 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21562 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21563 "it find errors) is nothing to worry about."
21564 msgstr ""
21565
21566 #. type: =head2
21567 #: ../resize/virt-resize.pod:568
21568 msgid "GUEST BOOT STUCK AT \"GRUB\""
21569 msgstr ""
21570
21571 #. type: textblock
21572 #: ../resize/virt-resize.pod:570
21573 msgid ""
21574 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21575 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21576 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21577 "although we think is to do with partition alignment."
21578 msgstr ""
21579
21580 #. type: verbatim
21581 #: ../resize/virt-resize.pod:575
21582 #, no-wrap
21583 msgid ""
21584 " guestfish -i -a newdisk\n"
21585 " ><fs> cat /boot/grub/device.map\n"
21586 " # check the contents of this file are sensible or\n"
21587 " # edit the file if necessary\n"
21588 " ><fs> grub-install / /dev/vda\n"
21589 " ><fs> exit\n"
21590 "\n"
21591 msgstr ""
21592
21593 #. type: textblock
21594 #: ../resize/virt-resize.pod:582
21595 msgid ""
21596 "For more flexible guest reconfiguration, including if you need to specify "
21597 "other parameters to grub-install, use L<virt-rescue(1)>."
21598 msgstr ""
21599
21600 #. type: =head1
21601 #: ../resize/virt-resize.pod:585
21602 msgid "ALTERNATIVE TOOLS"
21603 msgstr ""
21604
21605 #. type: textblock
21606 #: ../resize/virt-resize.pod:587
21607 msgid ""
21608 "There are several proprietary tools for resizing partitions.  We won't "
21609 "mention any here."
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../resize/virt-resize.pod:590
21614 msgid ""
21615 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21616 "operations on disk images.  They can resize and move partitions, but I don't "
21617 "think they can do anything with the contents, and they certainly don't "
21618 "understand LVM."
21619 msgstr ""
21620
21621 #. type: textblock
21622 #: ../resize/virt-resize.pod:595
21623 msgid ""
21624 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21625 "but at a much lower level.  You will probably end up hand-calculating sector "
21626 "offsets, which is something that virt-resize was designed to avoid.  If you "
21627 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21628 "I<--debug> flag."
21629 msgstr ""
21630
21631 #. type: textblock
21632 #: ../resize/virt-resize.pod:615
21633 msgid ""
21634 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21635 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21636 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21637 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21638 "L<http://libguestfs.org/>."
21639 msgstr ""
21640
21641 #. type: textblock
21642 #: ../ruby/examples/guestfs-ruby.pod:5
21643 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21644 msgstr ""
21645
21646 #. type: verbatim
21647 #: ../ruby/examples/guestfs-ruby.pod:9
21648 #, no-wrap
21649 msgid ""
21650 " require 'guestfs'\n"
21651 " g = Guestfs::Guestfs.new()\n"
21652 " g.add_drive_opts(\"disk.img\",\n"
21653 "                  :readonly => 1, :format => \"raw\")\n"
21654 " g.launch()\n"
21655 "\n"
21656 msgstr ""
21657
21658 #. type: textblock
21659 #: ../ruby/examples/guestfs-ruby.pod:17
21660 msgid ""
21661 "This manual page documents how to call libguestfs from the Ruby programming "
21662 "language.  This page just documents the differences from the C API and gives "
21663 "some examples.  If you are not familiar with using libguestfs, you also need "
21664 "to read L<guestfs(3)>."
21665 msgstr ""
21666
21667 #. type: textblock
21668 #: ../ruby/examples/guestfs-ruby.pod:24
21669 msgid ""
21670 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21671 "This has a single parameter which is the error message (a string)."
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../ruby/examples/guestfs-ruby.pod:38
21676 msgid ""
21677 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21678 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21679 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21680 msgstr ""
21681
21682 #. type: =head2
21683 #: ../src/guestfs-actions.pod:1
21684 msgid "guestfs_add_cdrom"
21685 msgstr ""
21686
21687 #. type: verbatim
21688 #: ../src/guestfs-actions.pod:3
21689 #, no-wrap
21690 msgid ""
21691 " int\n"
21692 " guestfs_add_cdrom (guestfs_h *g,\n"
21693 "                    const char *filename);\n"
21694 "\n"
21695 msgstr ""
21696
21697 #. type: textblock
21698 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
21699 msgid ""
21700 "I<This function is deprecated.> In new code, use the "
21701 "L</guestfs_add_drive_opts> call instead."
21702 msgstr ""
21703
21704 #. type: textblock
21705 #: ../src/guestfs-actions.pod:24
21706 msgid ""
21707 "This call checks for the existence of C<filename>.  This stops you from "
21708 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21709 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21710 "instead."
21711 msgstr ""
21712
21713 #. type: textblock
21714 #: ../src/guestfs-actions.pod:31
21715 msgid ""
21716 "If you just want to add an ISO file (often you use this as an efficient way "
21717 "to transfer large files into the guest), then you should probably use "
21718 "C<guestfs_add_drive_ro> instead."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../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:1231 ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326 ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472 ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627 ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869 ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628 ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997 ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024 ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198 ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352 ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400 ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461 ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638 ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674 ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704 ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735 ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913 ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963 ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024 ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054 ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5112 ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5171 ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5202 ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5394 ../src/guestfs-actions.pod:5422 ../src/guestfs-actions.pod:5439 ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5597 ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5676 ../src/guestfs-actions.pod:5694 ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:5809 ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:5836 ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6177 ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6203 ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6229 ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6266 ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304 ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6352 ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6393 ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6433 ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6469 ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6516 ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:6559 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:6616 ../src/guestfs-actions.pod:6631 ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6993 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7018 ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7053 ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7079 ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7107 ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7183 ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7215 ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245 ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7301 ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7387 ../src/guestfs-actions.pod:7421 ../src/guestfs-actions.pod:7457 ../src/guestfs-actions.pod:7573 ../src/guestfs-actions.pod:7588 ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7657 ../src/guestfs-actions.pod:7670 ../src/guestfs-actions.pod:7715 ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7811 ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7864 ../src/guestfs-actions.pod:7928 ../src/guestfs-actions.pod:7951 ../src/guestfs-actions.pod:7980
21723 msgid "This function returns 0 on success or -1 on error."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313 ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790 ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:6354 ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6618 ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7757
21728 msgid "(Added in 0.3)"
21729 msgstr ""
21730
21731 #. type: =head2
21732 #: ../src/guestfs-actions.pod:41
21733 msgid "guestfs_add_domain"
21734 msgstr ""
21735
21736 #. type: verbatim
21737 #: ../src/guestfs-actions.pod:43
21738 #, no-wrap
21739 msgid ""
21740 " int\n"
21741 " guestfs_add_domain (guestfs_h *g,\n"
21742 "                     const char *dom,\n"
21743 "                     ...);\n"
21744 "\n"
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161 ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5315
21749 msgid ""
21750 "You may supply a list of optional arguments to this call.  Use zero or more "
21751 "of the following pairs of parameters, and terminate the list with C<-1> on "
21752 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21753 msgstr ""
21754
21755 #. type: verbatim
21756 #: ../src/guestfs-actions.pod:53
21757 #, no-wrap
21758 msgid ""
21759 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21760 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21761 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21762 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21763 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21764 "\n"
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../src/guestfs-actions.pod:59
21769 msgid ""
21770 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21771 "It works by connecting to libvirt, requesting the domain and domain XML from "
21772 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21773 "one."
21774 msgstr ""
21775
21776 #. type: textblock
21777 #: ../src/guestfs-actions.pod:94
21778 msgid ""
21779 "The other optional parameters are passed directly through to "
21780 "C<guestfs_add_drive_opts>."
21781 msgstr ""
21782
21783 #. type: textblock
21784 #: ../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:1492 ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051 ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213 ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615 ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109 ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5494 ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:5932 ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7768 ../src/guestfs-actions.pod:7781 ../src/guestfs-actions.pod:7794
21785 msgid "On error this function returns -1."
21786 msgstr ""
21787
21788 #. type: textblock
21789 #: ../src/guestfs-actions.pod:99
21790 msgid "(Added in 1.7.4)"
21791 msgstr ""
21792
21793 #. type: =head2
21794 #: ../src/guestfs-actions.pod:101
21795 msgid "guestfs_add_domain_va"
21796 msgstr ""
21797
21798 #. type: verbatim
21799 #: ../src/guestfs-actions.pod:103
21800 #, no-wrap
21801 msgid ""
21802 " int\n"
21803 " guestfs_add_domain_va (guestfs_h *g,\n"
21804 "                        const char *dom,\n"
21805 "                        va_list args);\n"
21806 "\n"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../src/guestfs-actions.pod:108
21811 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21812 msgstr ""
21813
21814 #. type: textblock
21815 #: ../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:1187 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5138 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5375
21816 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21817 msgstr ""
21818
21819 #. type: =head2
21820 #: ../src/guestfs-actions.pod:112
21821 msgid "guestfs_add_domain_argv"
21822 msgstr ""
21823
21824 #. type: verbatim
21825 #: ../src/guestfs-actions.pod:114
21826 #, no-wrap
21827 msgid ""
21828 " int\n"
21829 " guestfs_add_domain_argv (guestfs_h *g,\n"
21830 "                          const char *dom,\n"
21831 "                          const struct guestfs_add_domain_argv *optargs);\n"
21832 "\n"
21833 msgstr ""
21834
21835 #. type: textblock
21836 #: ../src/guestfs-actions.pod:119
21837 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21838 msgstr ""
21839
21840 #. type: =head2
21841 #: ../src/guestfs-actions.pod:123
21842 msgid "guestfs_add_drive"
21843 msgstr ""
21844
21845 #. type: verbatim
21846 #: ../src/guestfs-actions.pod:125
21847 #, no-wrap
21848 msgid ""
21849 " int\n"
21850 " guestfs_add_drive (guestfs_h *g,\n"
21851 "                    const char *filename);\n"
21852 "\n"
21853 msgstr ""
21854
21855 #. type: textblock
21856 #: ../src/guestfs-actions.pod:129
21857 msgid ""
21858 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21859 "optional parameters, so the disk is added writable, with the format being "
21860 "detected automatically."
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../src/guestfs-actions.pod:133
21865 msgid ""
21866 "Automatic detection of the format opens you up to a potential security hole "
21867 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21868 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21869 "you should think about replacing calls to this function with calls to "
21870 "C<guestfs_add_drive_opts>, and specifying the format."
21871 msgstr ""
21872
21873 #. type: =head2
21874 #: ../src/guestfs-actions.pod:144
21875 msgid "guestfs_add_drive_opts"
21876 msgstr ""
21877
21878 #. type: verbatim
21879 #: ../src/guestfs-actions.pod:146
21880 #, no-wrap
21881 msgid ""
21882 " int\n"
21883 " guestfs_add_drive_opts (guestfs_h *g,\n"
21884 "                         const char *filename,\n"
21885 "                         ...);\n"
21886 "\n"
21887 msgstr ""
21888
21889 #. type: verbatim
21890 #: ../src/guestfs-actions.pod:156
21891 #, no-wrap
21892 msgid ""
21893 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21894 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21895 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21896 "\n"
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../src/guestfs-actions.pod:185
21901 msgid ""
21902 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21903 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21904 "Possible formats include C<raw> and C<qcow2>."
21905 msgstr ""
21906
21907 #. type: textblock
21908 #: ../src/guestfs-actions.pod:196
21909 msgid ""
21910 "This rarely-used option lets you emulate the behaviour of the deprecated "
21911 "C<guestfs_add_drive_with_if> call (q.v.)"
21912 msgstr ""
21913
21914 #. type: textblock
21915 #: ../src/guestfs-actions.pod:203
21916 msgid "(Added in 1.5.23)"
21917 msgstr ""
21918
21919 #. type: =head2
21920 #: ../src/guestfs-actions.pod:205
21921 msgid "guestfs_add_drive_opts_va"
21922 msgstr ""
21923
21924 #. type: verbatim
21925 #: ../src/guestfs-actions.pod:207
21926 #, no-wrap
21927 msgid ""
21928 " int\n"
21929 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21930 "                            const char *filename,\n"
21931 "                            va_list args);\n"
21932 "\n"
21933 msgstr ""
21934
21935 #. type: textblock
21936 #: ../src/guestfs-actions.pod:212
21937 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21938 msgstr ""
21939
21940 #. type: =head2
21941 #: ../src/guestfs-actions.pod:216
21942 msgid "guestfs_add_drive_opts_argv"
21943 msgstr ""
21944
21945 #. type: verbatim
21946 #: ../src/guestfs-actions.pod:218
21947 #, no-wrap
21948 msgid ""
21949 " int\n"
21950 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21951 "                              const char *filename,\n"
21952 "                              const struct guestfs_add_drive_opts_argv "
21953 "*optargs);\n"
21954 "\n"
21955 msgstr ""
21956
21957 #. type: textblock
21958 #: ../src/guestfs-actions.pod:223
21959 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21960 msgstr ""
21961
21962 #. type: =head2
21963 #: ../src/guestfs-actions.pod:227
21964 msgid "guestfs_add_drive_ro"
21965 msgstr ""
21966
21967 #. type: verbatim
21968 #: ../src/guestfs-actions.pod:229
21969 #, no-wrap
21970 msgid ""
21971 " int\n"
21972 " guestfs_add_drive_ro (guestfs_h *g,\n"
21973 "                       const char *filename);\n"
21974 "\n"
21975 msgstr ""
21976
21977 #. type: textblock
21978 #: ../src/guestfs-actions.pod:233
21979 msgid ""
21980 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21981 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21982 "disk is added read-only, with the format being detected automatically."
21983 msgstr ""
21984
21985 #. type: textblock
21986 #: ../src/guestfs-actions.pod:240
21987 msgid "(Added in 1.0.38)"
21988 msgstr ""
21989
21990 #. type: =head2
21991 #: ../src/guestfs-actions.pod:242
21992 msgid "guestfs_add_drive_ro_with_if"
21993 msgstr ""
21994
21995 #. type: verbatim
21996 #: ../src/guestfs-actions.pod:244
21997 #, no-wrap
21998 msgid ""
21999 " int\n"
22000 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
22001 "                               const char *filename,\n"
22002 "                               const char *iface);\n"
22003 "\n"
22004 msgstr ""
22005
22006 #. type: textblock
22007 #: ../src/guestfs-actions.pod:256
22008 msgid ""
22009 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
22010 "QEMU interface emulation to use at run time."
22011 msgstr ""
22012
22013 #. type: textblock
22014 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2574
22015 msgid "(Added in 1.0.84)"
22016 msgstr ""
22017
22018 #. type: =head2
22019 #: ../src/guestfs-actions.pod:263
22020 msgid "guestfs_add_drive_with_if"
22021 msgstr ""
22022
22023 #. type: verbatim
22024 #: ../src/guestfs-actions.pod:265
22025 #, no-wrap
22026 msgid ""
22027 " int\n"
22028 " guestfs_add_drive_with_if (guestfs_h *g,\n"
22029 "                            const char *filename,\n"
22030 "                            const char *iface);\n"
22031 "\n"
22032 msgstr ""
22033
22034 #. type: textblock
22035 #: ../src/guestfs-actions.pod:277
22036 msgid ""
22037 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
22038 "QEMU interface emulation to use at run time."
22039 msgstr ""
22040
22041 #. type: =head2
22042 #: ../src/guestfs-actions.pod:284
22043 msgid "guestfs_aug_clear"
22044 msgstr ""
22045
22046 #. type: verbatim
22047 #: ../src/guestfs-actions.pod:286
22048 #, no-wrap
22049 msgid ""
22050 " int\n"
22051 " guestfs_aug_clear (guestfs_h *g,\n"
22052 "                    const char *augpath);\n"
22053 "\n"
22054 msgstr ""
22055
22056 #. type: textblock
22057 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
22058 msgid "(Added in 1.3.4)"
22059 msgstr ""
22060
22061 #. type: =head2
22062 #: ../src/guestfs-actions.pod:297
22063 msgid "guestfs_aug_close"
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../src/guestfs-actions.pod:299
22068 #, no-wrap
22069 msgid ""
22070 " int\n"
22071 " guestfs_aug_close (guestfs_h *g);\n"
22072 "\n"
22073 msgstr ""
22074
22075 #. type: textblock
22076 #: ../src/guestfs-actions.pod:302
22077 msgid ""
22078 "Close the current Augeas handle and free up any resources used by it.  After "
22079 "calling this, you have to call C<guestfs_aug_init> again before you can use "
22080 "any other Augeas functions."
22081 msgstr ""
22082
22083 #. type: textblock
22084 #: ../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:5983
22085 msgid "(Added in 0.7)"
22086 msgstr ""
22087
22088 #. type: =head2
22089 #: ../src/guestfs-actions.pod:311
22090 msgid "guestfs_aug_defnode"
22091 msgstr ""
22092
22093 #. type: verbatim
22094 #: ../src/guestfs-actions.pod:313
22095 #, no-wrap
22096 msgid ""
22097 " struct guestfs_int_bool *\n"
22098 " guestfs_aug_defnode (guestfs_h *g,\n"
22099 "                      const char *name,\n"
22100 "                      const char *expr,\n"
22101 "                      const char *val);\n"
22102 "\n"
22103 msgstr ""
22104
22105 #. type: textblock
22106 #: ../src/guestfs-actions.pod:322
22107 msgid ""
22108 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
22109 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
22110 "containing that single node."
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../src/guestfs-actions.pod:330
22115 msgid ""
22116 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22117 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22118 msgstr ""
22119
22120 #. type: =head2
22121 #: ../src/guestfs-actions.pod:336
22122 msgid "guestfs_aug_defvar"
22123 msgstr ""
22124
22125 #. type: verbatim
22126 #: ../src/guestfs-actions.pod:338
22127 #, no-wrap
22128 msgid ""
22129 " int\n"
22130 " guestfs_aug_defvar (guestfs_h *g,\n"
22131 "                     const char *name,\n"
22132 "                     const char *expr);\n"
22133 "\n"
22134 msgstr ""
22135
22136 #. type: =head2
22137 #: ../src/guestfs-actions.pod:354
22138 msgid "guestfs_aug_get"
22139 msgstr ""
22140
22141 #. type: verbatim
22142 #: ../src/guestfs-actions.pod:356
22143 #, no-wrap
22144 msgid ""
22145 " char *\n"
22146 " guestfs_aug_get (guestfs_h *g,\n"
22147 "                  const char *augpath);\n"
22148 "\n"
22149 msgstr ""
22150
22151 #. type: textblock
22152 #: ../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:1361 ../src/guestfs-actions.pod:1378 ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531 ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831 ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011 ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121 ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325 ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743 ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316 ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616 ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5711 ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6778 ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6818 ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7516 ../src/guestfs-actions.pod:7535 ../src/guestfs-actions.pod:7553 ../src/guestfs-actions.pod:7727 ../src/guestfs-actions.pod:8044
22153 msgid ""
22154 "This function returns a string, or NULL on error.  I<The caller must free "
22155 "the returned string after use>."
22156 msgstr ""
22157
22158 #. type: =head2
22159 #: ../src/guestfs-actions.pod:368
22160 msgid "guestfs_aug_init"
22161 msgstr ""
22162
22163 #. type: verbatim
22164 #: ../src/guestfs-actions.pod:370
22165 #, no-wrap
22166 msgid ""
22167 " int\n"
22168 " guestfs_aug_init (guestfs_h *g,\n"
22169 "                   const char *root,\n"
22170 "                   int flags);\n"
22171 "\n"
22172 msgstr ""
22173
22174 #. type: textblock
22175 #: ../src/guestfs-actions.pod:379
22176 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../src/guestfs-actions.pod:404
22181 msgid ""
22182 "This option is only useful when debugging Augeas lenses.  Use of this option "
22183 "may require additional memory for the libguestfs appliance.  You may need to "
22184 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22185 "C<guestfs_set_memsize>."
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../src/guestfs-actions.pod:419
22190 msgid "Do not load the tree in C<guestfs_aug_init>."
22191 msgstr ""
22192
22193 #. type: textblock
22194 #: ../src/guestfs-actions.pod:423
22195 msgid "To close the handle, you can call C<guestfs_aug_close>."
22196 msgstr ""
22197
22198 #. type: =head2
22199 #: ../src/guestfs-actions.pod:431
22200 msgid "guestfs_aug_insert"
22201 msgstr ""
22202
22203 #. type: verbatim
22204 #: ../src/guestfs-actions.pod:433
22205 #, no-wrap
22206 msgid ""
22207 " int\n"
22208 " guestfs_aug_insert (guestfs_h *g,\n"
22209 "                     const char *augpath,\n"
22210 "                     const char *label,\n"
22211 "                     int before);\n"
22212 "\n"
22213 msgstr ""
22214
22215 #. type: =head2
22216 #: ../src/guestfs-actions.pod:451
22217 msgid "guestfs_aug_load"
22218 msgstr ""
22219
22220 #. type: verbatim
22221 #: ../src/guestfs-actions.pod:453
22222 #, no-wrap
22223 msgid ""
22224 " int\n"
22225 " guestfs_aug_load (guestfs_h *g);\n"
22226 "\n"
22227 msgstr ""
22228
22229 #. type: =head2
22230 #: ../src/guestfs-actions.pod:465
22231 msgid "guestfs_aug_ls"
22232 msgstr ""
22233
22234 #. type: verbatim
22235 #: ../src/guestfs-actions.pod:467
22236 #, no-wrap
22237 msgid ""
22238 " char **\n"
22239 " guestfs_aug_ls (guestfs_h *g,\n"
22240 "                 const char *augpath);\n"
22241 "\n"
22242 msgstr ""
22243
22244 #. type: textblock
22245 #: ../src/guestfs-actions.pod:471
22246 msgid ""
22247 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22248 "sorting the resulting nodes into alphabetical order."
22249 msgstr ""
22250
22251 #. type: textblock
22252 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565 ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397 ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432 ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521 ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641 ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276 ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903 ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070 ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:5853 ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:6919 ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:7120 ../src/guestfs-actions.pod:7144 ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7640 ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7881 ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7994 ../src/guestfs-actions.pod:8013 ../src/guestfs-actions.pod:8059 ../src/guestfs-actions.pod:8078
22253 msgid ""
22254 "This function returns a NULL-terminated array of strings (like "
22255 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
22256 "strings and the array after use>."
22257 msgstr ""
22258
22259 #. type: textblock
22260 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603 ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369 ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589 ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5239 ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:6191 ../src/guestfs-actions.pod:6205 ../src/guestfs-actions.pod:6217 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:7358 ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7869
22261 msgid "(Added in 0.8)"
22262 msgstr ""
22263
22264 #. type: =head2
22265 #: ../src/guestfs-actions.pod:480
22266 msgid "guestfs_aug_match"
22267 msgstr ""
22268
22269 #. type: verbatim
22270 #: ../src/guestfs-actions.pod:482
22271 #, no-wrap
22272 msgid ""
22273 " char **\n"
22274 " guestfs_aug_match (guestfs_h *g,\n"
22275 "                    const char *augpath);\n"
22276 "\n"
22277 msgstr ""
22278
22279 #. type: =head2
22280 #: ../src/guestfs-actions.pod:496
22281 msgid "guestfs_aug_mv"
22282 msgstr ""
22283
22284 #. type: verbatim
22285 #: ../src/guestfs-actions.pod:498
22286 #, no-wrap
22287 msgid ""
22288 " int\n"
22289 " guestfs_aug_mv (guestfs_h *g,\n"
22290 "                 const char *src,\n"
22291 "                 const char *dest);\n"
22292 "\n"
22293 msgstr ""
22294
22295 #. type: =head2
22296 #: ../src/guestfs-actions.pod:510
22297 msgid "guestfs_aug_rm"
22298 msgstr ""
22299
22300 #. type: verbatim
22301 #: ../src/guestfs-actions.pod:512
22302 #, no-wrap
22303 msgid ""
22304 " int\n"
22305 " guestfs_aug_rm (guestfs_h *g,\n"
22306 "                 const char *augpath);\n"
22307 "\n"
22308 msgstr ""
22309
22310 #. type: =head2
22311 #: ../src/guestfs-actions.pod:524
22312 msgid "guestfs_aug_save"
22313 msgstr ""
22314
22315 #. type: verbatim
22316 #: ../src/guestfs-actions.pod:526
22317 #, no-wrap
22318 msgid ""
22319 " int\n"
22320 " guestfs_aug_save (guestfs_h *g);\n"
22321 "\n"
22322 msgstr ""
22323
22324 #. type: textblock
22325 #: ../src/guestfs-actions.pod:531
22326 msgid ""
22327 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22328 "are saved."
22329 msgstr ""
22330
22331 #. type: =head2
22332 #: ../src/guestfs-actions.pod:538
22333 msgid "guestfs_aug_set"
22334 msgstr ""
22335
22336 #. type: verbatim
22337 #: ../src/guestfs-actions.pod:540
22338 #, no-wrap
22339 msgid ""
22340 " int\n"
22341 " guestfs_aug_set (guestfs_h *g,\n"
22342 "                  const char *augpath,\n"
22343 "                  const char *val);\n"
22344 "\n"
22345 msgstr ""
22346
22347 #. type: textblock
22348 #: ../src/guestfs-actions.pod:547
22349 msgid ""
22350 "In the Augeas API, it is possible to clear a node by setting the value to "
22351 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22352 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22353 msgstr ""
22354
22355 #. type: =head2
22356 #: ../src/guestfs-actions.pod:556
22357 msgid "guestfs_available"
22358 msgstr ""
22359
22360 #. type: verbatim
22361 #: ../src/guestfs-actions.pod:558
22362 #, no-wrap
22363 msgid ""
22364 " int\n"
22365 " guestfs_available (guestfs_h *g,\n"
22366 "                    char *const *groups);\n"
22367 "\n"
22368 msgstr ""
22369
22370 #. type: textblock
22371 #: ../src/guestfs-actions.pod:566
22372 msgid ""
22373 "The libguestfs groups, and the functions that those groups correspond to, "
22374 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22375 "runtime by calling C<guestfs_available_all_groups>."
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../src/guestfs-actions.pod:590
22380 msgid "You must call C<guestfs_launch> before calling this function."
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../src/guestfs-actions.pod:612
22385 msgid ""
22386 "This call was added in version C<1.0.80>.  In previous versions of "
22387 "libguestfs all you could do would be to speculatively execute a command to "
22388 "find out if the daemon implemented it.  See also C<guestfs_version>."
22389 msgstr ""
22390
22391 #. type: textblock
22392 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
22393 msgid "(Added in 1.0.80)"
22394 msgstr ""
22395
22396 #. type: =head2
22397 #: ../src/guestfs-actions.pod:623
22398 msgid "guestfs_available_all_groups"
22399 msgstr ""
22400
22401 #. type: verbatim
22402 #: ../src/guestfs-actions.pod:625
22403 #, no-wrap
22404 msgid ""
22405 " char **\n"
22406 " guestfs_available_all_groups (guestfs_h *g);\n"
22407 "\n"
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../src/guestfs-actions.pod:628
22412 msgid ""
22413 "This command returns a list of all optional groups that this daemon knows "
22414 "about.  Note this returns both supported and unsupported groups.  To find "
22415 "out which ones the daemon can actually support you have to call "
22416 "C<guestfs_available> on each member of the returned list."
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../src/guestfs-actions.pod:634
22421 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../src/guestfs-actions.pod:640
22426 msgid "(Added in 1.3.15)"
22427 msgstr ""
22428
22429 #. type: =head2
22430 #: ../src/guestfs-actions.pod:642
22431 msgid "guestfs_base64_in"
22432 msgstr ""
22433
22434 #. type: verbatim
22435 #: ../src/guestfs-actions.pod:644
22436 #, no-wrap
22437 msgid ""
22438 " int\n"
22439 " guestfs_base64_in (guestfs_h *g,\n"
22440 "                    const char *base64file,\n"
22441 "                    const char *filename);\n"
22442 "\n"
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22447 msgid "(Added in 1.3.5)"
22448 msgstr ""
22449
22450 #. type: =head2
22451 #: ../src/guestfs-actions.pod:656
22452 msgid "guestfs_base64_out"
22453 msgstr ""
22454
22455 #. type: verbatim
22456 #: ../src/guestfs-actions.pod:658
22457 #, no-wrap
22458 msgid ""
22459 " int\n"
22460 " guestfs_base64_out (guestfs_h *g,\n"
22461 "                     const char *filename,\n"
22462 "                     const char *base64file);\n"
22463 "\n"
22464 msgstr ""
22465
22466 #. type: =head2
22467 #: ../src/guestfs-actions.pod:670
22468 msgid "guestfs_blockdev_flushbufs"
22469 msgstr ""
22470
22471 #. type: verbatim
22472 #: ../src/guestfs-actions.pod:672
22473 #, no-wrap
22474 msgid ""
22475 " int\n"
22476 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22477 "                             const char *device);\n"
22478 "\n"
22479 msgstr ""
22480
22481 #. type: textblock
22482 #: ../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
22483 msgid "(Added in 0.9.3)"
22484 msgstr ""
22485
22486 #. type: =head2
22487 #: ../src/guestfs-actions.pod:685
22488 msgid "guestfs_blockdev_getbsz"
22489 msgstr ""
22490
22491 #. type: verbatim
22492 #: ../src/guestfs-actions.pod:687
22493 #, no-wrap
22494 msgid ""
22495 " int\n"
22496 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22497 "                          const char *device);\n"
22498 "\n"
22499 msgstr ""
22500
22501 #. type: =head2
22502 #: ../src/guestfs-actions.pod:702
22503 msgid "guestfs_blockdev_getro"
22504 msgstr ""
22505
22506 #. type: verbatim
22507 #: ../src/guestfs-actions.pod:704
22508 #, no-wrap
22509 msgid ""
22510 " int\n"
22511 " guestfs_blockdev_getro (guestfs_h *g,\n"
22512 "                         const char *device);\n"
22513 "\n"
22514 msgstr ""
22515
22516 #. type: textblock
22517 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586 ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090 ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173 ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239 ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288 ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373 ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407 ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612 ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673 ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700 ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730 ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757 ../src/guestfs-actions.pod:5476
22518 msgid "This function returns a C truth value on success or -1 on error."
22519 msgstr ""
22520
22521 #. type: =head2
22522 #: ../src/guestfs-actions.pod:717
22523 msgid "guestfs_blockdev_getsize64"
22524 msgstr ""
22525
22526 #. type: verbatim
22527 #: ../src/guestfs-actions.pod:719
22528 #, no-wrap
22529 msgid ""
22530 " int64_t\n"
22531 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22532 "                             const char *device);\n"
22533 "\n"
22534 msgstr ""
22535
22536 #. type: textblock
22537 #: ../src/guestfs-actions.pod:725
22538 msgid "See also C<guestfs_blockdev_getsz>."
22539 msgstr ""
22540
22541 #. type: =head2
22542 #: ../src/guestfs-actions.pod:733
22543 msgid "guestfs_blockdev_getss"
22544 msgstr ""
22545
22546 #. type: verbatim
22547 #: ../src/guestfs-actions.pod:735
22548 #, no-wrap
22549 msgid ""
22550 " int\n"
22551 " guestfs_blockdev_getss (guestfs_h *g,\n"
22552 "                         const char *device);\n"
22553 "\n"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../src/guestfs-actions.pod:742
22558 msgid ""
22559 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22560 "that)."
22561 msgstr ""
22562
22563 #. type: =head2
22564 #: ../src/guestfs-actions.pod:751
22565 msgid "guestfs_blockdev_getsz"
22566 msgstr ""
22567
22568 #. type: verbatim
22569 #: ../src/guestfs-actions.pod:753
22570 #, no-wrap
22571 msgid ""
22572 " int64_t\n"
22573 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22574 "                         const char *device);\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: textblock
22579 #: ../src/guestfs-actions.pod:760
22580 msgid ""
22581 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22582 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22583 msgstr ""
22584
22585 #. type: =head2
22586 #: ../src/guestfs-actions.pod:770
22587 msgid "guestfs_blockdev_rereadpt"
22588 msgstr ""
22589
22590 #. type: verbatim
22591 #: ../src/guestfs-actions.pod:772
22592 #, no-wrap
22593 msgid ""
22594 " int\n"
22595 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22596 "                            const char *device);\n"
22597 "\n"
22598 msgstr ""
22599
22600 #. type: =head2
22601 #: ../src/guestfs-actions.pod:784
22602 msgid "guestfs_blockdev_setbsz"
22603 msgstr ""
22604
22605 #. type: verbatim
22606 #: ../src/guestfs-actions.pod:786
22607 #, no-wrap
22608 msgid ""
22609 " int\n"
22610 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22611 "                          const char *device,\n"
22612 "                          int blocksize);\n"
22613 "\n"
22614 msgstr ""
22615
22616 #. type: =head2
22617 #: ../src/guestfs-actions.pod:802
22618 msgid "guestfs_blockdev_setro"
22619 msgstr ""
22620
22621 #. type: verbatim
22622 #: ../src/guestfs-actions.pod:804
22623 #, no-wrap
22624 msgid ""
22625 " int\n"
22626 " guestfs_blockdev_setro (guestfs_h *g,\n"
22627 "                         const char *device);\n"
22628 "\n"
22629 msgstr ""
22630
22631 #. type: =head2
22632 #: ../src/guestfs-actions.pod:816
22633 msgid "guestfs_blockdev_setrw"
22634 msgstr ""
22635
22636 #. type: verbatim
22637 #: ../src/guestfs-actions.pod:818
22638 #, no-wrap
22639 msgid ""
22640 " int\n"
22641 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22642 "                         const char *device);\n"
22643 "\n"
22644 msgstr ""
22645
22646 #. type: =head2
22647 #: ../src/guestfs-actions.pod:830
22648 msgid "guestfs_btrfs_filesystem_resize"
22649 msgstr ""
22650
22651 #. type: verbatim
22652 #: ../src/guestfs-actions.pod:832
22653 #, no-wrap
22654 msgid ""
22655 " int\n"
22656 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22657 "                                  const char *mountpoint,\n"
22658 "                                  ...);\n"
22659 "\n"
22660 msgstr ""
22661
22662 #. type: verbatim
22663 #: ../src/guestfs-actions.pod:842
22664 #, no-wrap
22665 msgid ""
22666 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22667 "\n"
22668 msgstr ""
22669
22670 #. type: textblock
22671 #: ../src/guestfs-actions.pod:865
22672 msgid "(Added in 1.11.17)"
22673 msgstr ""
22674
22675 #. type: =head2
22676 #: ../src/guestfs-actions.pod:867
22677 msgid "guestfs_btrfs_filesystem_resize_va"
22678 msgstr ""
22679
22680 #. type: verbatim
22681 #: ../src/guestfs-actions.pod:869
22682 #, no-wrap
22683 msgid ""
22684 " int\n"
22685 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22686 "                                     const char *mountpoint,\n"
22687 "                                     va_list args);\n"
22688 "\n"
22689 msgstr ""
22690
22691 #. type: textblock
22692 #: ../src/guestfs-actions.pod:874
22693 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22694 msgstr ""
22695
22696 #. type: =head2
22697 #: ../src/guestfs-actions.pod:878
22698 msgid "guestfs_btrfs_filesystem_resize_argv"
22699 msgstr ""
22700
22701 #. type: verbatim
22702 #: ../src/guestfs-actions.pod:880
22703 #, no-wrap
22704 msgid ""
22705 " int\n"
22706 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22707 "                                       const char *mountpoint,\n"
22708 "                                       const struct "
22709 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22710 "\n"
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../src/guestfs-actions.pod:885
22715 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22716 msgstr ""
22717
22718 #. type: =head2
22719 #: ../src/guestfs-actions.pod:889
22720 msgid "guestfs_case_sensitive_path"
22721 msgstr ""
22722
22723 #. type: verbatim
22724 #: ../src/guestfs-actions.pod:891
22725 #, no-wrap
22726 msgid ""
22727 " char *\n"
22728 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22729 "                              const char *path);\n"
22730 "\n"
22731 msgstr ""
22732
22733 #. type: textblock
22734 #: ../src/guestfs-actions.pod:917
22735 msgid ""
22736 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22737 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22738 "how the directories were originally created under Windows)."
22739 msgstr ""
22740
22741 #. type: textblock
22742 #: ../src/guestfs-actions.pod:925
22743 msgid "See also C<guestfs_realpath>."
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7538
22748 msgid "(Added in 1.0.75)"
22749 msgstr ""
22750
22751 #. type: =head2
22752 #: ../src/guestfs-actions.pod:932
22753 msgid "guestfs_cat"
22754 msgstr ""
22755
22756 #. type: verbatim
22757 #: ../src/guestfs-actions.pod:934
22758 #, no-wrap
22759 msgid ""
22760 " char *\n"
22761 " guestfs_cat (guestfs_h *g,\n"
22762 "              const char *path);\n"
22763 "\n"
22764 msgstr ""
22765
22766 #. type: textblock
22767 #: ../src/guestfs-actions.pod:940
22768 msgid ""
22769 "Note that this function cannot correctly handle binary files (specifically, "
22770 "files containing C<\\0> character which is treated as end of string).  For "
22771 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22772 "functions which have a more complex interface."
22773 msgstr ""
22774
22775 #. type: textblock
22776 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482 ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5857 ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7705
22777 msgid "(Added in 0.4)"
22778 msgstr ""
22779
22780 #. type: =head2
22781 #: ../src/guestfs-actions.pod:953
22782 msgid "guestfs_checksum"
22783 msgstr ""
22784
22785 #. type: verbatim
22786 #: ../src/guestfs-actions.pod:955
22787 #, no-wrap
22788 msgid ""
22789 " char *\n"
22790 " guestfs_checksum (guestfs_h *g,\n"
22791 "                   const char *csumtype,\n"
22792 "                   const char *path);\n"
22793 "\n"
22794 msgstr ""
22795
22796 #. type: textblock
22797 #: ../src/guestfs-actions.pod:1001
22798 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22799 msgstr ""
22800
22801 #. type: textblock
22802 #: ../src/guestfs-actions.pod:1003
22803 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22804 msgstr ""
22805
22806 #. type: textblock
22807 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423 ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585 ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675 ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7394
22808 msgid "(Added in 1.0.2)"
22809 msgstr ""
22810
22811 #. type: =head2
22812 #: ../src/guestfs-actions.pod:1010
22813 msgid "guestfs_checksum_device"
22814 msgstr ""
22815
22816 #. type: verbatim
22817 #: ../src/guestfs-actions.pod:1012
22818 #, no-wrap
22819 msgid ""
22820 " char *\n"
22821 " guestfs_checksum_device (guestfs_h *g,\n"
22822 "                          const char *csumtype,\n"
22823 "                          const char *device);\n"
22824 "\n"
22825 msgstr ""
22826
22827 #. type: textblock
22828 #: ../src/guestfs-actions.pod:1017
22829 msgid ""
22830 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22831 "device named C<device>.  For the types of checksums supported see the "
22832 "C<guestfs_checksum> command."
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5306 ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5478 ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678 ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7317 ../src/guestfs-actions.pod:7717
22837 msgid "(Added in 1.3.2)"
22838 msgstr ""
22839
22840 #. type: =head2
22841 #: ../src/guestfs-actions.pod:1026
22842 msgid "guestfs_checksums_out"
22843 msgstr ""
22844
22845 #. type: verbatim
22846 #: ../src/guestfs-actions.pod:1028
22847 #, no-wrap
22848 msgid ""
22849 " int\n"
22850 " guestfs_checksums_out (guestfs_h *g,\n"
22851 "                        const char *csumtype,\n"
22852 "                        const char *directory,\n"
22853 "                        const char *sumsfile);\n"
22854 "\n"
22855 msgstr ""
22856
22857 #. type: textblock
22858 #: ../src/guestfs-actions.pod:1048
22859 msgid "(Added in 1.3.7)"
22860 msgstr ""
22861
22862 #. type: =head2
22863 #: ../src/guestfs-actions.pod:1050
22864 msgid "guestfs_chmod"
22865 msgstr ""
22866
22867 #. type: verbatim
22868 #: ../src/guestfs-actions.pod:1052
22869 #, no-wrap
22870 msgid ""
22871 " int\n"
22872 " guestfs_chmod (guestfs_h *g,\n"
22873 "                int mode,\n"
22874 "                const char *path);\n"
22875 "\n"
22876 msgstr ""
22877
22878 #. type: =head2
22879 #: ../src/guestfs-actions.pod:1070
22880 msgid "guestfs_chown"
22881 msgstr ""
22882
22883 #. type: verbatim
22884 #: ../src/guestfs-actions.pod:1072
22885 #, no-wrap
22886 msgid ""
22887 " int\n"
22888 " guestfs_chown (guestfs_h *g,\n"
22889 "                int owner,\n"
22890 "                int group,\n"
22891 "                const char *path);\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: =head2
22896 #: ../src/guestfs-actions.pod:1088
22897 msgid "guestfs_command"
22898 msgstr ""
22899
22900 #. type: verbatim
22901 #: ../src/guestfs-actions.pod:1090
22902 #, no-wrap
22903 msgid ""
22904 " char *\n"
22905 " guestfs_command (guestfs_h *g,\n"
22906 "                  char *const *arguments);\n"
22907 "\n"
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../src/guestfs-actions.pod:1099
22912 msgid ""
22913 "The single parameter is an argv-style list of arguments.  The first element "
22914 "is the name of the program to run.  Subsequent elements are parameters.  The "
22915 "list must be non-empty (ie. must contain a program name).  Note that the "
22916 "command runs directly, and is I<not> invoked via the shell (see "
22917 "C<guestfs_sh>)."
22918 msgstr ""
22919
22920 #. type: textblock
22921 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1722
22922 msgid "(Added in 0.9.1)"
22923 msgstr ""
22924
22925 #. type: =head2
22926 #: ../src/guestfs-actions.pod:1132
22927 msgid "guestfs_command_lines"
22928 msgstr ""
22929
22930 #. type: verbatim
22931 #: ../src/guestfs-actions.pod:1134
22932 #, no-wrap
22933 msgid ""
22934 " char **\n"
22935 " guestfs_command_lines (guestfs_h *g,\n"
22936 "                        char *const *arguments);\n"
22937 "\n"
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../src/guestfs-actions.pod:1138
22942 msgid ""
22943 "This is the same as C<guestfs_command>, but splits the result into a list of "
22944 "lines."
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../src/guestfs-actions.pod:1141
22949 msgid "See also: C<guestfs_sh_lines>"
22950 msgstr ""
22951
22952 #. type: =head2
22953 #: ../src/guestfs-actions.pod:1152
22954 msgid "guestfs_compress_device_out"
22955 msgstr ""
22956
22957 #. type: verbatim
22958 #: ../src/guestfs-actions.pod:1154
22959 #, no-wrap
22960 msgid ""
22961 " int\n"
22962 " guestfs_compress_device_out (guestfs_h *g,\n"
22963 "                              const char *ctype,\n"
22964 "                              const char *device,\n"
22965 "                              const char *zdevice,\n"
22966 "                              ...);\n"
22967 "\n"
22968 msgstr ""
22969
22970 #. type: verbatim
22971 #: ../src/guestfs-actions.pod:1166
22972 #, no-wrap
22973 msgid ""
22974 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
22975 "\n"
22976 msgstr ""
22977
22978 #. type: textblock
22979 #: ../src/guestfs-actions.pod:1171
22980 msgid ""
22981 "The C<ctype> and optional C<level> parameters have the same meaning as in "
22982 "C<guestfs_compress_out>."
22983 msgstr ""
22984
22985 #. type: =head2
22986 #: ../src/guestfs-actions.pod:1176
22987 msgid "guestfs_compress_device_out_va"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../src/guestfs-actions.pod:1178
22992 #, no-wrap
22993 msgid ""
22994 " int\n"
22995 " guestfs_compress_device_out_va (guestfs_h *g,\n"
22996 "                                 const char *ctype,\n"
22997 "                                 const char *device,\n"
22998 "                                 const char *zdevice,\n"
22999 "                                 va_list args);\n"
23000 "\n"
23001 msgstr ""
23002
23003 #. type: textblock
23004 #: ../src/guestfs-actions.pod:1185
23005 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
23006 msgstr ""
23007
23008 #. type: =head2
23009 #: ../src/guestfs-actions.pod:1189
23010 msgid "guestfs_compress_device_out_argv"
23011 msgstr ""
23012
23013 #. type: verbatim
23014 #: ../src/guestfs-actions.pod:1191
23015 #, no-wrap
23016 msgid ""
23017 " int\n"
23018 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
23019 "                                   const char *ctype,\n"
23020 "                                   const char *device,\n"
23021 "                                   const char *zdevice,\n"
23022 "                                   const struct "
23023 "guestfs_compress_device_out_argv *optargs);\n"
23024 "\n"
23025 msgstr ""
23026
23027 #. type: textblock
23028 #: ../src/guestfs-actions.pod:1198
23029 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
23030 msgstr ""
23031
23032 #. type: =head2
23033 #: ../src/guestfs-actions.pod:1202
23034 msgid "guestfs_compress_out"
23035 msgstr ""
23036
23037 #. type: verbatim
23038 #: ../src/guestfs-actions.pod:1204
23039 #, no-wrap
23040 msgid ""
23041 " int\n"
23042 " guestfs_compress_out (guestfs_h *g,\n"
23043 "                       const char *ctype,\n"
23044 "                       const char *file,\n"
23045 "                       const char *zfile,\n"
23046 "                       ...);\n"
23047 "\n"
23048 msgstr ""
23049
23050 #. type: verbatim
23051 #: ../src/guestfs-actions.pod:1216
23052 #, no-wrap
23053 msgid ""
23054 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
23055 "\n"
23056 msgstr ""
23057
23058 #. type: =head2
23059 #: ../src/guestfs-actions.pod:1233
23060 msgid "guestfs_compress_out_va"
23061 msgstr ""
23062
23063 #. type: verbatim
23064 #: ../src/guestfs-actions.pod:1235
23065 #, no-wrap
23066 msgid ""
23067 " int\n"
23068 " guestfs_compress_out_va (guestfs_h *g,\n"
23069 "                          const char *ctype,\n"
23070 "                          const char *file,\n"
23071 "                          const char *zfile,\n"
23072 "                          va_list args);\n"
23073 "\n"
23074 msgstr ""
23075
23076 #. type: textblock
23077 #: ../src/guestfs-actions.pod:1242
23078 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
23079 msgstr ""
23080
23081 #. type: =head2
23082 #: ../src/guestfs-actions.pod:1246
23083 msgid "guestfs_compress_out_argv"
23084 msgstr ""
23085
23086 #. type: verbatim
23087 #: ../src/guestfs-actions.pod:1248
23088 #, no-wrap
23089 msgid ""
23090 " int\n"
23091 " guestfs_compress_out_argv (guestfs_h *g,\n"
23092 "                            const char *ctype,\n"
23093 "                            const char *file,\n"
23094 "                            const char *zfile,\n"
23095 "                            const struct guestfs_compress_out_argv "
23096 "*optargs);\n"
23097 "\n"
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../src/guestfs-actions.pod:1255
23102 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
23103 msgstr ""
23104
23105 #. type: =head2
23106 #: ../src/guestfs-actions.pod:1259
23107 msgid "guestfs_config"
23108 msgstr ""
23109
23110 #. type: verbatim
23111 #: ../src/guestfs-actions.pod:1261
23112 #, no-wrap
23113 msgid ""
23114 " int\n"
23115 " guestfs_config (guestfs_h *g,\n"
23116 "                 const char *qemuparam,\n"
23117 "                 const char *qemuvalue);\n"
23118 "\n"
23119 msgstr ""
23120
23121 #. type: =head2
23122 #: ../src/guestfs-actions.pod:1279
23123 msgid "guestfs_copy_size"
23124 msgstr ""
23125
23126 #. type: verbatim
23127 #: ../src/guestfs-actions.pod:1281
23128 #, no-wrap
23129 msgid ""
23130 " int\n"
23131 " guestfs_copy_size (guestfs_h *g,\n"
23132 "                    const char *src,\n"
23133 "                    const char *dest,\n"
23134 "                    int64_t size);\n"
23135 "\n"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418 ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7423 ../src/guestfs-actions.pod:7930 ../src/guestfs-actions.pod:7953
23140 msgid ""
23141 "This long-running command can generate progress notification messages so "
23142 "that the caller can display a progress bar or indicator.  To receive these "
23143 "messages, the caller must register a progress event callback.  See "
23144 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
23145 msgstr ""
23146
23147 #. type: textblock
23148 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7730
23149 msgid "(Added in 1.0.87)"
23150 msgstr ""
23151
23152 #. type: =head2
23153 #: ../src/guestfs-actions.pod:1302
23154 msgid "guestfs_cp"
23155 msgstr ""
23156
23157 #. type: verbatim
23158 #: ../src/guestfs-actions.pod:1304
23159 #, no-wrap
23160 msgid ""
23161 " int\n"
23162 " guestfs_cp (guestfs_h *g,\n"
23163 "             const char *src,\n"
23164 "             const char *dest);\n"
23165 "\n"
23166 msgstr ""
23167
23168 #. type: textblock
23169 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328 ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5253 ../src/guestfs-actions.pod:5728
23170 msgid "(Added in 1.0.18)"
23171 msgstr ""
23172
23173 #. type: =head2
23174 #: ../src/guestfs-actions.pod:1316
23175 msgid "guestfs_cp_a"
23176 msgstr ""
23177
23178 #. type: verbatim
23179 #: ../src/guestfs-actions.pod:1318
23180 #, no-wrap
23181 msgid ""
23182 " int\n"
23183 " guestfs_cp_a (guestfs_h *g,\n"
23184 "               const char *src,\n"
23185 "               const char *dest);\n"
23186 "\n"
23187 msgstr ""
23188
23189 #. type: =head2
23190 #: ../src/guestfs-actions.pod:1330
23191 msgid "guestfs_dd"
23192 msgstr ""
23193
23194 #. type: verbatim
23195 #: ../src/guestfs-actions.pod:1332
23196 #, no-wrap
23197 msgid ""
23198 " int\n"
23199 " guestfs_dd (guestfs_h *g,\n"
23200 "             const char *src,\n"
23201 "             const char *dest);\n"
23202 "\n"
23203 msgstr ""
23204
23205 #. type: textblock
23206 #: ../src/guestfs-actions.pod:1342
23207 msgid ""
23208 "If the destination is a device, it must be as large or larger than the "
23209 "source file or device, otherwise the copy will fail.  This command cannot do "
23210 "partial copies (see C<guestfs_copy_size>)."
23211 msgstr ""
23212
23213 #. type: =head2
23214 #: ../src/guestfs-actions.pod:1350
23215 msgid "guestfs_df"
23216 msgstr ""
23217
23218 #. type: verbatim
23219 #: ../src/guestfs-actions.pod:1352
23220 #, no-wrap
23221 msgid ""
23222 " char *\n"
23223 " guestfs_df (guestfs_h *g);\n"
23224 "\n"
23225 msgstr ""
23226
23227 #. type: textblock
23228 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
23229 msgid ""
23230 "This command is mostly useful for interactive sessions.  It is I<not> "
23231 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
23232 "from programs."
23233 msgstr ""
23234
23235 #. type: textblock
23236 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381 ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596 ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7151 ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7783 ../src/guestfs-actions.pod:7796
23237 msgid "(Added in 1.0.54)"
23238 msgstr ""
23239
23240 #. type: =head2
23241 #: ../src/guestfs-actions.pod:1366
23242 msgid "guestfs_df_h"
23243 msgstr ""
23244
23245 #. type: verbatim
23246 #: ../src/guestfs-actions.pod:1368
23247 #, no-wrap
23248 msgid ""
23249 " char *\n"
23250 " guestfs_df_h (guestfs_h *g);\n"
23251 "\n"
23252 msgstr ""
23253
23254 #. type: =head2
23255 #: ../src/guestfs-actions.pod:1383
23256 msgid "guestfs_dmesg"
23257 msgstr ""
23258
23259 #. type: verbatim
23260 #: ../src/guestfs-actions.pod:1385
23261 #, no-wrap
23262 msgid ""
23263 " char *\n"
23264 " guestfs_dmesg (guestfs_h *g);\n"
23265 "\n"
23266 msgstr ""
23267
23268 #. type: textblock
23269 #: ../src/guestfs-actions.pod:1392
23270 msgid ""
23271 "Another way to get the same information is to enable verbose messages with "
23272 "C<guestfs_set_verbose> or by setting the environment variable "
23273 "C<LIBGUESTFS_DEBUG=1> before running the program."
23274 msgstr ""
23275
23276 #. type: =head2
23277 #: ../src/guestfs-actions.pod:1402
23278 msgid "guestfs_download"
23279 msgstr ""
23280
23281 #. type: verbatim
23282 #: ../src/guestfs-actions.pod:1404
23283 #, no-wrap
23284 msgid ""
23285 " int\n"
23286 " guestfs_download (guestfs_h *g,\n"
23287 "                   const char *remotefilename,\n"
23288 "                   const char *filename);\n"
23289 "\n"
23290 msgstr ""
23291
23292 #. type: textblock
23293 #: ../src/guestfs-actions.pod:1414
23294 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23295 msgstr ""
23296
23297 #. type: =head2
23298 #: ../src/guestfs-actions.pod:1425
23299 msgid "guestfs_download_offset"
23300 msgstr ""
23301
23302 #. type: verbatim
23303 #: ../src/guestfs-actions.pod:1427
23304 #, no-wrap
23305 msgid ""
23306 " int\n"
23307 " guestfs_download_offset (guestfs_h *g,\n"
23308 "                          const char *remotefilename,\n"
23309 "                          const char *filename,\n"
23310 "                          int64_t offset,\n"
23311 "                          int64_t size);\n"
23312 "\n"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../src/guestfs-actions.pod:1440
23317 msgid ""
23318 "Note that there is no limit on the amount of data that can be downloaded "
23319 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23320 "full amount unless an error occurs."
23321 msgstr ""
23322
23323 #. type: textblock
23324 #: ../src/guestfs-actions.pod:1445
23325 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7428
23330 msgid "(Added in 1.5.17)"
23331 msgstr ""
23332
23333 #. type: =head2
23334 #: ../src/guestfs-actions.pod:1456
23335 msgid "guestfs_drop_caches"
23336 msgstr ""
23337
23338 #. type: verbatim
23339 #: ../src/guestfs-actions.pod:1458
23340 #, no-wrap
23341 msgid ""
23342 " int\n"
23343 " guestfs_drop_caches (guestfs_h *g,\n"
23344 "                      int whattodrop);\n"
23345 "\n"
23346 msgstr ""
23347
23348 #. type: =head2
23349 #: ../src/guestfs-actions.pod:1476
23350 msgid "guestfs_du"
23351 msgstr ""
23352
23353 #. type: verbatim
23354 #: ../src/guestfs-actions.pod:1478
23355 #, no-wrap
23356 msgid ""
23357 " int64_t\n"
23358 " guestfs_du (guestfs_h *g,\n"
23359 "             const char *path);\n"
23360 "\n"
23361 msgstr ""
23362
23363 #. type: =head2
23364 #: ../src/guestfs-actions.pod:1501
23365 msgid "guestfs_e2fsck_f"
23366 msgstr ""
23367
23368 #. type: verbatim
23369 #: ../src/guestfs-actions.pod:1503
23370 #, no-wrap
23371 msgid ""
23372 " int\n"
23373 " guestfs_e2fsck_f (guestfs_h *g,\n"
23374 "                   const char *device);\n"
23375 "\n"
23376 msgstr ""
23377
23378 #. type: textblock
23379 #: ../src/guestfs-actions.pod:1511
23380 msgid ""
23381 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23382 "Normally you should use C<guestfs_fsck>."
23383 msgstr ""
23384
23385 #. type: textblock
23386 #: ../src/guestfs-actions.pod:1516
23387 msgid "(Added in 1.0.29)"
23388 msgstr ""
23389
23390 #. type: =head2
23391 #: ../src/guestfs-actions.pod:1518
23392 msgid "guestfs_echo_daemon"
23393 msgstr ""
23394
23395 #. type: verbatim
23396 #: ../src/guestfs-actions.pod:1520
23397 #, no-wrap
23398 msgid ""
23399 " char *\n"
23400 " guestfs_echo_daemon (guestfs_h *g,\n"
23401 "                      char *const *words);\n"
23402 "\n"
23403 msgstr ""
23404
23405 #. type: textblock
23406 #: ../src/guestfs-actions.pod:1529
23407 msgid "See also C<guestfs_ping_daemon>."
23408 msgstr ""
23409
23410 #. type: textblock
23411 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290 ../src/guestfs-actions.pod:6599
23412 msgid "(Added in 1.0.69)"
23413 msgstr ""
23414
23415 #. type: =head2
23416 #: ../src/guestfs-actions.pod:1536
23417 msgid "guestfs_egrep"
23418 msgstr ""
23419
23420 #. type: verbatim
23421 #: ../src/guestfs-actions.pod:1538
23422 #, no-wrap
23423 msgid ""
23424 " char **\n"
23425 " guestfs_egrep (guestfs_h *g,\n"
23426 "                const char *regex,\n"
23427 "                const char *path);\n"
23428 "\n"
23429 msgstr ""
23430
23431 #. type: textblock
23432 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572 ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420 ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617 ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645 ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713 ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6995 ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7033 ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7068 ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8020 ../src/guestfs-actions.pod:8066 ../src/guestfs-actions.pod:8085
23433 msgid "(Added in 1.0.66)"
23434 msgstr ""
23435
23436 #. type: =head2
23437 #: ../src/guestfs-actions.pod:1555
23438 msgid "guestfs_egrepi"
23439 msgstr ""
23440
23441 #. type: verbatim
23442 #: ../src/guestfs-actions.pod:1557
23443 #, no-wrap
23444 msgid ""
23445 " char **\n"
23446 " guestfs_egrepi (guestfs_h *g,\n"
23447 "                 const char *regex,\n"
23448 "                 const char *path);\n"
23449 "\n"
23450 msgstr ""
23451
23452 #. type: =head2
23453 #: ../src/guestfs-actions.pod:1574
23454 msgid "guestfs_equal"
23455 msgstr ""
23456
23457 #. type: verbatim
23458 #: ../src/guestfs-actions.pod:1576
23459 #, no-wrap
23460 msgid ""
23461 " int\n"
23462 " guestfs_equal (guestfs_h *g,\n"
23463 "                const char *file1,\n"
23464 "                const char *file2);\n"
23465 "\n"
23466 msgstr ""
23467
23468 #. type: =head2
23469 #: ../src/guestfs-actions.pod:1590
23470 msgid "guestfs_exists"
23471 msgstr ""
23472
23473 #. type: verbatim
23474 #: ../src/guestfs-actions.pod:1592
23475 #, no-wrap
23476 msgid ""
23477 " int\n"
23478 " guestfs_exists (guestfs_h *g,\n"
23479 "                 const char *path);\n"
23480 "\n"
23481 msgstr ""
23482
23483 #. type: textblock
23484 #: ../src/guestfs-actions.pod:1599
23485 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23486 msgstr ""
23487
23488 #. type: =head2
23489 #: ../src/guestfs-actions.pod:1605
23490 msgid "guestfs_fallocate"
23491 msgstr ""
23492
23493 #. type: verbatim
23494 #: ../src/guestfs-actions.pod:1607
23495 #, no-wrap
23496 msgid ""
23497 " int\n"
23498 " guestfs_fallocate (guestfs_h *g,\n"
23499 "                    const char *path,\n"
23500 "                    int len);\n"
23501 "\n"
23502 msgstr ""
23503
23504 #. type: textblock
23505 #: ../src/guestfs-actions.pod:1612
23506 msgid ""
23507 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
23508 "call instead."
23509 msgstr ""
23510
23511 #. type: =head2
23512 #: ../src/guestfs-actions.pod:1631
23513 msgid "guestfs_fallocate64"
23514 msgstr ""
23515
23516 #. type: verbatim
23517 #: ../src/guestfs-actions.pod:1633
23518 #, no-wrap
23519 msgid ""
23520 " int\n"
23521 " guestfs_fallocate64 (guestfs_h *g,\n"
23522 "                      const char *path,\n"
23523 "                      int64_t len);\n"
23524 "\n"
23525 msgstr ""
23526
23527 #. type: textblock
23528 #: ../src/guestfs-actions.pod:1642
23529 msgid ""
23530 "Note that this call allocates disk blocks for the file.  To create a sparse "
23531 "file use C<guestfs_truncate_size> instead."
23532 msgstr ""
23533
23534 #. type: textblock
23535 #: ../src/guestfs-actions.pod:1645
23536 msgid ""
23537 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23538 "oversight it only allowed 30 bit lengths to be specified, effectively "
23539 "limiting the maximum size of files created through that call to 1GB."
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../src/guestfs-actions.pod:1656
23544 msgid "(Added in 1.3.17)"
23545 msgstr ""
23546
23547 #. type: =head2
23548 #: ../src/guestfs-actions.pod:1658
23549 msgid "guestfs_fgrep"
23550 msgstr ""
23551
23552 #. type: verbatim
23553 #: ../src/guestfs-actions.pod:1660
23554 #, no-wrap
23555 msgid ""
23556 " char **\n"
23557 " guestfs_fgrep (guestfs_h *g,\n"
23558 "                const char *pattern,\n"
23559 "                const char *path);\n"
23560 "\n"
23561 msgstr ""
23562
23563 #. type: =head2
23564 #: ../src/guestfs-actions.pod:1677
23565 msgid "guestfs_fgrepi"
23566 msgstr ""
23567
23568 #. type: verbatim
23569 #: ../src/guestfs-actions.pod:1679
23570 #, no-wrap
23571 msgid ""
23572 " char **\n"
23573 " guestfs_fgrepi (guestfs_h *g,\n"
23574 "                 const char *pattern,\n"
23575 "                 const char *path);\n"
23576 "\n"
23577 msgstr ""
23578
23579 #. type: =head2
23580 #: ../src/guestfs-actions.pod:1696
23581 msgid "guestfs_file"
23582 msgstr ""
23583
23584 #. type: verbatim
23585 #: ../src/guestfs-actions.pod:1698
23586 #, no-wrap
23587 msgid ""
23588 " char *\n"
23589 " guestfs_file (guestfs_h *g,\n"
23590 "               const char *path);\n"
23591 "\n"
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../src/guestfs-actions.pod:1716
23596 msgid ""
23597 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23598 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23599 msgstr ""
23600
23601 #. type: =head2
23602 #: ../src/guestfs-actions.pod:1724
23603 msgid "guestfs_file_architecture"
23604 msgstr ""
23605
23606 #. type: verbatim
23607 #: ../src/guestfs-actions.pod:1726
23608 #, no-wrap
23609 msgid ""
23610 " char *\n"
23611 " guestfs_file_architecture (guestfs_h *g,\n"
23612 "                            const char *filename);\n"
23613 "\n"
23614 msgstr ""
23615
23616 #. type: textblock
23617 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997 ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906 ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226 ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3688
23618 msgid "(Added in 1.5.3)"
23619 msgstr ""
23620
23621 #. type: =head2
23622 #: ../src/guestfs-actions.pod:1836
23623 msgid "guestfs_filesize"
23624 msgstr ""
23625
23626 #. type: verbatim
23627 #: ../src/guestfs-actions.pod:1838
23628 #, no-wrap
23629 msgid ""
23630 " int64_t\n"
23631 " guestfs_filesize (guestfs_h *g,\n"
23632 "                   const char *file);\n"
23633 "\n"
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../src/guestfs-actions.pod:1844
23638 msgid ""
23639 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23640 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23641 "devices, use C<guestfs_blockdev_getsize64>."
23642 msgstr ""
23643
23644 #. type: textblock
23645 #: ../src/guestfs-actions.pod:1850
23646 msgid "(Added in 1.0.82)"
23647 msgstr ""
23648
23649 #. type: =head2
23650 #: ../src/guestfs-actions.pod:1852
23651 msgid "guestfs_fill"
23652 msgstr ""
23653
23654 #. type: verbatim
23655 #: ../src/guestfs-actions.pod:1854
23656 #, no-wrap
23657 msgid ""
23658 " int\n"
23659 " guestfs_fill (guestfs_h *g,\n"
23660 "               int c,\n"
23661 "               int len,\n"
23662 "               const char *path);\n"
23663 "\n"
23664 msgstr ""
23665
23666 #. type: textblock
23667 #: ../src/guestfs-actions.pod:1864
23668 msgid ""
23669 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23670 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23671 "bytes use C<guestfs_fill_pattern>."
23672 msgstr ""
23673
23674 #. type: textblock
23675 #: ../src/guestfs-actions.pod:1876
23676 msgid "(Added in 1.0.79)"
23677 msgstr ""
23678
23679 #. type: =head2
23680 #: ../src/guestfs-actions.pod:1878
23681 msgid "guestfs_fill_pattern"
23682 msgstr ""
23683
23684 #. type: verbatim
23685 #: ../src/guestfs-actions.pod:1880
23686 #, no-wrap
23687 msgid ""
23688 " int\n"
23689 " guestfs_fill_pattern (guestfs_h *g,\n"
23690 "                       const char *pattern,\n"
23691 "                       int len,\n"
23692 "                       const char *path);\n"
23693 "\n"
23694 msgstr ""
23695
23696 #. type: textblock
23697 #: ../src/guestfs-actions.pod:1886
23698 msgid ""
23699 "This function is like C<guestfs_fill> except that it creates a new file of "
23700 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23701 "pattern is truncated if necessary to ensure the length of the file is "
23702 "exactly C<len> bytes."
23703 msgstr ""
23704
23705 #. type: textblock
23706 #: ../src/guestfs-actions.pod:1898
23707 msgid "(Added in 1.3.12)"
23708 msgstr ""
23709
23710 #. type: =head2
23711 #: ../src/guestfs-actions.pod:1900
23712 msgid "guestfs_find"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../src/guestfs-actions.pod:1902
23717 #, no-wrap
23718 msgid ""
23719 " char **\n"
23720 " guestfs_find (guestfs_h *g,\n"
23721 "               const char *directory);\n"
23722 "\n"
23723 msgstr ""
23724
23725 #. type: textblock
23726 #: ../src/guestfs-actions.pod:1918
23727 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23728 msgstr ""
23729
23730 #. type: textblock
23731 #: ../src/guestfs-actions.pod:1931
23732 msgid "See also C<guestfs_find0>."
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446 ../src/guestfs-actions.pod:6146
23737 msgid "(Added in 1.0.27)"
23738 msgstr ""
23739
23740 #. type: =head2
23741 #: ../src/guestfs-actions.pod:1942
23742 msgid "guestfs_find0"
23743 msgstr ""
23744
23745 #. type: verbatim
23746 #: ../src/guestfs-actions.pod:1944
23747 #, no-wrap
23748 msgid ""
23749 " int\n"
23750 " guestfs_find0 (guestfs_h *g,\n"
23751 "                const char *directory,\n"
23752 "                const char *files);\n"
23753 "\n"
23754 msgstr ""
23755
23756 #. type: textblock
23757 #: ../src/guestfs-actions.pod:1953
23758 msgid ""
23759 "This command works the same way as C<guestfs_find> with the following "
23760 "exceptions:"
23761 msgstr ""
23762
23763 #. type: textblock
23764 #: ../src/guestfs-actions.pod:1980
23765 msgid "(Added in 1.0.74)"
23766 msgstr ""
23767
23768 #. type: =head2
23769 #: ../src/guestfs-actions.pod:1982
23770 msgid "guestfs_findfs_label"
23771 msgstr ""
23772
23773 #. type: verbatim
23774 #: ../src/guestfs-actions.pod:1984
23775 #, no-wrap
23776 msgid ""
23777 " char *\n"
23778 " guestfs_findfs_label (guestfs_h *g,\n"
23779 "                       const char *label);\n"
23780 "\n"
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../src/guestfs-actions.pod:1992
23785 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23786 msgstr ""
23787
23788 #. type: =head2
23789 #: ../src/guestfs-actions.pod:1999
23790 msgid "guestfs_findfs_uuid"
23791 msgstr ""
23792
23793 #. type: verbatim
23794 #: ../src/guestfs-actions.pod:2001
23795 #, no-wrap
23796 msgid ""
23797 " char *\n"
23798 " guestfs_findfs_uuid (guestfs_h *g,\n"
23799 "                      const char *uuid);\n"
23800 "\n"
23801 msgstr ""
23802
23803 #. type: textblock
23804 #: ../src/guestfs-actions.pod:2009
23805 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23806 msgstr ""
23807
23808 #. type: =head2
23809 #: ../src/guestfs-actions.pod:2016
23810 msgid "guestfs_fsck"
23811 msgstr ""
23812
23813 #. type: verbatim
23814 #: ../src/guestfs-actions.pod:2018
23815 #, no-wrap
23816 msgid ""
23817 " int\n"
23818 " guestfs_fsck (guestfs_h *g,\n"
23819 "               const char *fstype,\n"
23820 "               const char *device);\n"
23821 "\n"
23822 msgstr ""
23823
23824 #. type: textblock
23825 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7935
23826 msgid "(Added in 1.0.16)"
23827 msgstr ""
23828
23829 #. type: =head2
23830 #: ../src/guestfs-actions.pod:2055
23831 msgid "guestfs_get_append"
23832 msgstr ""
23833
23834 #. type: verbatim
23835 #: ../src/guestfs-actions.pod:2057
23836 #, no-wrap
23837 msgid ""
23838 " const char *\n"
23839 " guestfs_get_append (guestfs_h *g);\n"
23840 "\n"
23841 msgstr ""
23842
23843 #. type: textblock
23844 #: ../src/guestfs-actions.pod:2065
23845 msgid ""
23846 "This function returns a string which may be NULL.  There is no way to return "
23847 "an error from this function.  The string is owned by the guest handle and "
23848 "must I<not> be freed."
23849 msgstr ""
23850
23851 #. type: textblock
23852 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:6781 ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:7575 ../src/guestfs-actions.pod:7590 ../src/guestfs-actions.pod:7982
23853 msgid "(Added in 1.0.26)"
23854 msgstr ""
23855
23856 #. type: =head2
23857 #: ../src/guestfs-actions.pod:2071
23858 msgid "guestfs_get_attach_method"
23859 msgstr ""
23860
23861 #. type: verbatim
23862 #: ../src/guestfs-actions.pod:2073
23863 #, no-wrap
23864 msgid ""
23865 " char *\n"
23866 " guestfs_get_attach_method (guestfs_h *g);\n"
23867 "\n"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../src/guestfs-actions.pod:2076
23872 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23873 msgstr ""
23874
23875 #. type: textblock
23876 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6336
23877 msgid "(Added in 1.9.8)"
23878 msgstr ""
23879
23880 #. type: =head2
23881 #: ../src/guestfs-actions.pod:2083
23882 msgid "guestfs_get_autosync"
23883 msgstr ""
23884
23885 #. type: verbatim
23886 #: ../src/guestfs-actions.pod:2085
23887 #, no-wrap
23888 msgid ""
23889 " int\n"
23890 " guestfs_get_autosync (guestfs_h *g);\n"
23891 "\n"
23892 msgstr ""
23893
23894 #. type: =head2
23895 #: ../src/guestfs-actions.pod:2094
23896 msgid "guestfs_get_direct"
23897 msgstr ""
23898
23899 #. type: verbatim
23900 #: ../src/guestfs-actions.pod:2096
23901 #, no-wrap
23902 msgid ""
23903 " int\n"
23904 " guestfs_get_direct (guestfs_h *g);\n"
23905 "\n"
23906 msgstr ""
23907
23908 #. type: textblock
23909 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6377
23910 msgid "(Added in 1.0.72)"
23911 msgstr ""
23912
23913 #. type: =head2
23914 #: ../src/guestfs-actions.pod:2105
23915 msgid "guestfs_get_e2label"
23916 msgstr ""
23917
23918 #. type: verbatim
23919 #: ../src/guestfs-actions.pod:2107
23920 #, no-wrap
23921 msgid ""
23922 " char *\n"
23923 " guestfs_get_e2label (guestfs_h *g,\n"
23924 "                      const char *device);\n"
23925 "\n"
23926 msgstr ""
23927
23928 #. type: textblock
23929 #: ../src/guestfs-actions.pod:2111
23930 msgid ""
23931 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
23932 "call instead."
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:6414
23937 msgid "(Added in 1.0.15)"
23938 msgstr ""
23939
23940 #. type: =head2
23941 #: ../src/guestfs-actions.pod:2126
23942 msgid "guestfs_get_e2uuid"
23943 msgstr ""
23944
23945 #. type: verbatim
23946 #: ../src/guestfs-actions.pod:2128
23947 #, no-wrap
23948 msgid ""
23949 " char *\n"
23950 " guestfs_get_e2uuid (guestfs_h *g,\n"
23951 "                     const char *device);\n"
23952 "\n"
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../src/guestfs-actions.pod:2132
23957 msgid ""
23958 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
23959 "call instead."
23960 msgstr ""
23961
23962 #. type: =head2
23963 #: ../src/guestfs-actions.pod:2147
23964 msgid "guestfs_get_memsize"
23965 msgstr ""
23966
23967 #. type: verbatim
23968 #: ../src/guestfs-actions.pod:2149
23969 #, no-wrap
23970 msgid ""
23971 " int\n"
23972 " guestfs_get_memsize (guestfs_h *g);\n"
23973 "\n"
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../src/guestfs-actions.pod:2155
23978 msgid ""
23979 "If C<guestfs_set_memsize> was not called on this handle, and if "
23980 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23981 "value for memsize."
23982 msgstr ""
23983
23984 #. type: textblock
23985 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737 ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965 ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996 ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026 ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6435 ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:7344
23986 msgid "(Added in 1.0.55)"
23987 msgstr ""
23988
23989 #. type: =head2
23990 #: ../src/guestfs-actions.pod:2166
23991 msgid "guestfs_get_network"
23992 msgstr ""
23993
23994 #. type: verbatim
23995 #: ../src/guestfs-actions.pod:2168
23996 #, no-wrap
23997 msgid ""
23998 " int\n"
23999 " guestfs_get_network (guestfs_h *g);\n"
24000 "\n"
24001 msgstr ""
24002
24003 #. type: textblock
24004 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6454
24005 msgid "(Added in 1.5.4)"
24006 msgstr ""
24007
24008 #. type: =head2
24009 #: ../src/guestfs-actions.pod:2177
24010 msgid "guestfs_get_path"
24011 msgstr ""
24012
24013 #. type: verbatim
24014 #: ../src/guestfs-actions.pod:2179
24015 #, no-wrap
24016 msgid ""
24017 " const char *\n"
24018 " guestfs_get_path (guestfs_h *g);\n"
24019 "\n"
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
24024 msgid ""
24025 "This function returns a string, or NULL on error.  The string is owned by "
24026 "the guest handle and must I<not> be freed."
24027 msgstr ""
24028
24029 #. type: =head2
24030 #: ../src/guestfs-actions.pod:2192
24031 msgid "guestfs_get_pgroup"
24032 msgstr ""
24033
24034 #. type: verbatim
24035 #: ../src/guestfs-actions.pod:2194
24036 #, no-wrap
24037 msgid ""
24038 " int\n"
24039 " guestfs_get_pgroup (guestfs_h *g);\n"
24040 "\n"
24041 msgstr ""
24042
24043 #. type: textblock
24044 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6490 ../src/guestfs-actions.pod:7836
24045 msgid "(Added in 1.11.18)"
24046 msgstr ""
24047
24048 #. type: =head2
24049 #: ../src/guestfs-actions.pod:2203
24050 msgid "guestfs_get_pid"
24051 msgstr ""
24052
24053 #. type: verbatim
24054 #: ../src/guestfs-actions.pod:2205
24055 #, no-wrap
24056 msgid ""
24057 " int\n"
24058 " guestfs_get_pid (guestfs_h *g);\n"
24059 "\n"
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../src/guestfs-actions.pod:2215
24064 msgid "(Added in 1.0.56)"
24065 msgstr ""
24066
24067 #. type: =head2
24068 #: ../src/guestfs-actions.pod:2217
24069 msgid "guestfs_get_qemu"
24070 msgstr ""
24071
24072 #. type: verbatim
24073 #: ../src/guestfs-actions.pod:2219
24074 #, no-wrap
24075 msgid ""
24076 " const char *\n"
24077 " guestfs_get_qemu (guestfs_h *g);\n"
24078 "\n"
24079 msgstr ""
24080
24081 #. type: textblock
24082 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6518
24083 msgid "(Added in 1.0.6)"
24084 msgstr ""
24085
24086 #. type: =head2
24087 #: ../src/guestfs-actions.pod:2232
24088 msgid "guestfs_get_recovery_proc"
24089 msgstr ""
24090
24091 #. type: verbatim
24092 #: ../src/guestfs-actions.pod:2234
24093 #, no-wrap
24094 msgid ""
24095 " int\n"
24096 " guestfs_get_recovery_proc (guestfs_h *g);\n"
24097 "\n"
24098 msgstr ""
24099
24100 #. type: textblock
24101 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5754 ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6542 ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7267 ../src/guestfs-actions.pod:7459
24102 msgid "(Added in 1.0.77)"
24103 msgstr ""
24104
24105 #. type: =head2
24106 #: ../src/guestfs-actions.pod:2243
24107 msgid "guestfs_get_selinux"
24108 msgstr ""
24109
24110 #. type: verbatim
24111 #: ../src/guestfs-actions.pod:2245
24112 #, no-wrap
24113 msgid ""
24114 " int\n"
24115 " guestfs_get_selinux (guestfs_h *g);\n"
24116 "\n"
24117 msgstr ""
24118
24119 #. type: textblock
24120 #: ../src/guestfs-actions.pod:2248
24121 msgid ""
24122 "This returns the current setting of the selinux flag which is passed to the "
24123 "appliance at boot time.  See C<guestfs_set_selinux>."
24124 msgstr ""
24125
24126 #. type: textblock
24127 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328 ../src/guestfs-actions.pod:6561 ../src/guestfs-actions.pod:6633
24128 msgid "(Added in 1.0.67)"
24129 msgstr ""
24130
24131 #. type: =head2
24132 #: ../src/guestfs-actions.pod:2258
24133 msgid "guestfs_get_smp"
24134 msgstr ""
24135
24136 #. type: verbatim
24137 #: ../src/guestfs-actions.pod:2260
24138 #, no-wrap
24139 msgid ""
24140 " int\n"
24141 " guestfs_get_smp (guestfs_h *g);\n"
24142 "\n"
24143 msgstr ""
24144
24145 #. type: =head2
24146 #: ../src/guestfs-actions.pod:2267
24147 msgid "guestfs_get_state"
24148 msgstr ""
24149
24150 #. type: verbatim
24151 #: ../src/guestfs-actions.pod:2269
24152 #, no-wrap
24153 msgid ""
24154 " int\n"
24155 " guestfs_get_state (guestfs_h *g);\n"
24156 "\n"
24157 msgstr ""
24158
24159 #. type: =head2
24160 #: ../src/guestfs-actions.pod:2281
24161 msgid "guestfs_get_trace"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../src/guestfs-actions.pod:2283
24166 #, no-wrap
24167 msgid ""
24168 " int\n"
24169 " guestfs_get_trace (guestfs_h *g);\n"
24170 "\n"
24171 msgstr ""
24172
24173 #. type: =head2
24174 #: ../src/guestfs-actions.pod:2292
24175 msgid "guestfs_get_umask"
24176 msgstr ""
24177
24178 #. type: verbatim
24179 #: ../src/guestfs-actions.pod:2294
24180 #, no-wrap
24181 msgid ""
24182 " int\n"
24183 " guestfs_get_umask (guestfs_h *g);\n"
24184 "\n"
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../src/guestfs-actions.pod:2297
24189 msgid ""
24190 "Return the current umask.  By default the umask is C<022> unless it has been "
24191 "set by calling C<guestfs_umask>."
24192 msgstr ""
24193
24194 #. type: =head2
24195 #: ../src/guestfs-actions.pod:2304
24196 msgid "guestfs_get_verbose"
24197 msgstr ""
24198
24199 #. type: verbatim
24200 #: ../src/guestfs-actions.pod:2306
24201 #, no-wrap
24202 msgid ""
24203 " int\n"
24204 " guestfs_get_verbose (guestfs_h *g);\n"
24205 "\n"
24206 msgstr ""
24207
24208 #. type: =head2
24209 #: ../src/guestfs-actions.pod:2315
24210 msgid "guestfs_getcon"
24211 msgstr ""
24212
24213 #. type: verbatim
24214 #: ../src/guestfs-actions.pod:2317
24215 #, no-wrap
24216 msgid ""
24217 " char *\n"
24218 " guestfs_getcon (guestfs_h *g);\n"
24219 "\n"
24220 msgstr ""
24221
24222 #. type: textblock
24223 #: ../src/guestfs-actions.pod:2322
24224 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
24225 msgstr ""
24226
24227 #. type: =head2
24228 #: ../src/guestfs-actions.pod:2330
24229 msgid "guestfs_getxattr"
24230 msgstr ""
24231
24232 #. type: verbatim
24233 #: ../src/guestfs-actions.pod:2332
24234 #, no-wrap
24235 msgid ""
24236 " char *\n"
24237 " guestfs_getxattr (guestfs_h *g,\n"
24238 "                   const char *path,\n"
24239 "                   const char *name,\n"
24240 "                   size_t *size_r);\n"
24241 "\n"
24242 msgstr ""
24243
24244 #. type: textblock
24245 #: ../src/guestfs-actions.pod:2338
24246 msgid ""
24247 "Get a single extended attribute from file C<path> named C<name>.  This call "
24248 "follows symlinks.  If you want to lookup an extended attribute for the "
24249 "symlink itself, use C<guestfs_lgetxattr>."
24250 msgstr ""
24251
24252 #. type: textblock
24253 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
24254 msgid ""
24255 "Normally it is better to get all extended attributes from a file in one go "
24256 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
24257 "implementations are buggy and do not provide a way to list out attributes.  "
24258 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
24259 "extended attributes you want in advance and call this function."
24260 msgstr ""
24261
24262 #. type: textblock
24263 #: ../src/guestfs-actions.pod:2352
24264 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567 ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5773 ../src/guestfs-actions.pod:5954
24269 msgid ""
24270 "This function returns a buffer, or NULL on error.  The size of the returned "
24271 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
24272 "after use>."
24273 msgstr ""
24274
24275 #. type: textblock
24276 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
24277 msgid "(Added in 1.7.24)"
24278 msgstr ""
24279
24280 #. type: =head2
24281 #: ../src/guestfs-actions.pod:2360
24282 msgid "guestfs_getxattrs"
24283 msgstr ""
24284
24285 #. type: verbatim
24286 #: ../src/guestfs-actions.pod:2362
24287 #, no-wrap
24288 msgid ""
24289 " struct guestfs_xattr_list *\n"
24290 " guestfs_getxattrs (guestfs_h *g,\n"
24291 "                    const char *path);\n"
24292 "\n"
24293 msgstr ""
24294
24295 #. type: textblock
24296 #: ../src/guestfs-actions.pod:2372
24297 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852 ../src/guestfs-actions.pod:4540
24302 msgid ""
24303 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24304 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24305 msgstr ""
24306
24307 #. type: textblock
24308 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856 ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091 ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6652 ../src/guestfs-actions.pod:8047
24309 msgid "(Added in 1.0.59)"
24310 msgstr ""
24311
24312 #. type: =head2
24313 #: ../src/guestfs-actions.pod:2380
24314 msgid "guestfs_glob_expand"
24315 msgstr ""
24316
24317 #. type: verbatim
24318 #: ../src/guestfs-actions.pod:2382
24319 #, no-wrap
24320 msgid ""
24321 " char **\n"
24322 " guestfs_glob_expand (guestfs_h *g,\n"
24323 "                      const char *pattern);\n"
24324 "\n"
24325 msgstr ""
24326
24327 #. type: textblock
24328 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6845 ../src/guestfs-actions.pod:6862
24329 msgid "(Added in 1.0.50)"
24330 msgstr ""
24331
24332 #. type: =head2
24333 #: ../src/guestfs-actions.pod:2403
24334 msgid "guestfs_grep"
24335 msgstr ""
24336
24337 #. type: verbatim
24338 #: ../src/guestfs-actions.pod:2405
24339 #, no-wrap
24340 msgid ""
24341 " char **\n"
24342 " guestfs_grep (guestfs_h *g,\n"
24343 "               const char *regex,\n"
24344 "               const char *path);\n"
24345 "\n"
24346 msgstr ""
24347
24348 #. type: =head2
24349 #: ../src/guestfs-actions.pod:2422
24350 msgid "guestfs_grepi"
24351 msgstr ""
24352
24353 #. type: verbatim
24354 #: ../src/guestfs-actions.pod:2424
24355 #, no-wrap
24356 msgid ""
24357 " char **\n"
24358 " guestfs_grepi (guestfs_h *g,\n"
24359 "                const char *regex,\n"
24360 "                const char *path);\n"
24361 "\n"
24362 msgstr ""
24363
24364 #. type: =head2
24365 #: ../src/guestfs-actions.pod:2441
24366 msgid "guestfs_grub_install"
24367 msgstr ""
24368
24369 #. type: verbatim
24370 #: ../src/guestfs-actions.pod:2443
24371 #, no-wrap
24372 msgid ""
24373 " int\n"
24374 " guestfs_grub_install (guestfs_h *g,\n"
24375 "                       const char *root,\n"
24376 "                       const char *device);\n"
24377 "\n"
24378 msgstr ""
24379
24380 #. type: textblock
24381 #: ../src/guestfs-actions.pod:2486
24382 msgid "(Added in 1.0.17)"
24383 msgstr ""
24384
24385 #. type: =head2
24386 #: ../src/guestfs-actions.pod:2488
24387 msgid "guestfs_head"
24388 msgstr ""
24389
24390 #. type: verbatim
24391 #: ../src/guestfs-actions.pod:2490
24392 #, no-wrap
24393 msgid ""
24394 " char **\n"
24395 " guestfs_head (guestfs_h *g,\n"
24396 "               const char *path);\n"
24397 "\n"
24398 msgstr ""
24399
24400 #. type: =head2
24401 #: ../src/guestfs-actions.pod:2506
24402 msgid "guestfs_head_n"
24403 msgstr ""
24404
24405 #. type: verbatim
24406 #: ../src/guestfs-actions.pod:2508
24407 #, no-wrap
24408 msgid ""
24409 " char **\n"
24410 " guestfs_head_n (guestfs_h *g,\n"
24411 "                 int nrlines,\n"
24412 "                 const char *path);\n"
24413 "\n"
24414 msgstr ""
24415
24416 #. type: =head2
24417 #: ../src/guestfs-actions.pod:2530
24418 msgid "guestfs_hexdump"
24419 msgstr ""
24420
24421 #. type: verbatim
24422 #: ../src/guestfs-actions.pod:2532
24423 #, no-wrap
24424 msgid ""
24425 " char *\n"
24426 " guestfs_hexdump (guestfs_h *g,\n"
24427 "                  const char *path);\n"
24428 "\n"
24429 msgstr ""
24430
24431 #. type: textblock
24432 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6926 ../src/guestfs-actions.pod:6981
24433 msgid "(Added in 1.0.22)"
24434 msgstr ""
24435
24436 #. type: =head2
24437 #: ../src/guestfs-actions.pod:2547
24438 msgid "guestfs_initrd_cat"
24439 msgstr ""
24440
24441 #. type: verbatim
24442 #: ../src/guestfs-actions.pod:2549
24443 #, no-wrap
24444 msgid ""
24445 " char *\n"
24446 " guestfs_initrd_cat (guestfs_h *g,\n"
24447 "                     const char *initrdpath,\n"
24448 "                     const char *filename,\n"
24449 "                     size_t *size_r);\n"
24450 "\n"
24451 msgstr ""
24452
24453 #. type: textblock
24454 #: ../src/guestfs-actions.pod:2565
24455 msgid "See also C<guestfs_initrd_list>."
24456 msgstr ""
24457
24458 #. type: =head2
24459 #: ../src/guestfs-actions.pod:2576
24460 msgid "guestfs_initrd_list"
24461 msgstr ""
24462
24463 #. type: verbatim
24464 #: ../src/guestfs-actions.pod:2578
24465 #, no-wrap
24466 msgid ""
24467 " char **\n"
24468 " guestfs_initrd_list (guestfs_h *g,\n"
24469 "                      const char *path);\n"
24470 "\n"
24471 msgstr ""
24472
24473 #. type: =head2
24474 #: ../src/guestfs-actions.pod:2598
24475 msgid "guestfs_inotify_add_watch"
24476 msgstr ""
24477
24478 #. type: verbatim
24479 #: ../src/guestfs-actions.pod:2600
24480 #, no-wrap
24481 msgid ""
24482 " int64_t\n"
24483 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24484 "                            const char *path,\n"
24485 "                            int mask);\n"
24486 "\n"
24487 msgstr ""
24488
24489 #. type: =head2
24490 #: ../src/guestfs-actions.pod:2619
24491 msgid "guestfs_inotify_close"
24492 msgstr ""
24493
24494 #. type: verbatim
24495 #: ../src/guestfs-actions.pod:2621
24496 #, no-wrap
24497 msgid ""
24498 " int\n"
24499 " guestfs_inotify_close (guestfs_h *g);\n"
24500 "\n"
24501 msgstr ""
24502
24503 #. type: =head2
24504 #: ../src/guestfs-actions.pod:2632
24505 msgid "guestfs_inotify_files"
24506 msgstr ""
24507
24508 #. type: verbatim
24509 #: ../src/guestfs-actions.pod:2634
24510 #, no-wrap
24511 msgid ""
24512 " char **\n"
24513 " guestfs_inotify_files (guestfs_h *g);\n"
24514 "\n"
24515 msgstr ""
24516
24517 #. type: textblock
24518 #: ../src/guestfs-actions.pod:2637
24519 msgid ""
24520 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24521 "returns a list of pathnames of objects that were touched.  The returned "
24522 "pathnames are sorted and deduplicated."
24523 msgstr ""
24524
24525 #. type: =head2
24526 #: ../src/guestfs-actions.pod:2647
24527 msgid "guestfs_inotify_init"
24528 msgstr ""
24529
24530 #. type: verbatim
24531 #: ../src/guestfs-actions.pod:2649
24532 #, no-wrap
24533 msgid ""
24534 " int\n"
24535 " guestfs_inotify_init (guestfs_h *g,\n"
24536 "                       int maxevents);\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../src/guestfs-actions.pod:2657
24542 msgid ""
24543 "C<maxevents> is the maximum number of events which will be queued up between "
24544 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24545 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24546 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24547 "throws away events, but records the fact that it threw them away by setting "
24548 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24549 "C<guestfs_inotify_read>)."
24550 msgstr ""
24551
24552 #. type: textblock
24553 #: ../src/guestfs-actions.pod:2667
24554 msgid ""
24555 "Before any events are generated, you have to add some watches to the "
24556 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24557 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24558 msgstr ""
24559
24560 #. type: textblock
24561 #: ../src/guestfs-actions.pod:2673
24562 msgid ""
24563 "Queued up events should be read periodically by calling "
24564 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24565 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24566 "often enough then you risk the internal queue overflowing."
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../src/guestfs-actions.pod:2680
24571 msgid ""
24572 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24573 "This also removes any watches automatically."
24574 msgstr ""
24575
24576 #. type: =head2
24577 #: ../src/guestfs-actions.pod:2693
24578 msgid "guestfs_inotify_read"
24579 msgstr ""
24580
24581 #. type: verbatim
24582 #: ../src/guestfs-actions.pod:2695
24583 #, no-wrap
24584 msgid ""
24585 " struct guestfs_inotify_event_list *\n"
24586 " guestfs_inotify_read (guestfs_h *g);\n"
24587 "\n"
24588 msgstr ""
24589
24590 #. type: textblock
24591 #: ../src/guestfs-actions.pod:2709
24592 msgid ""
24593 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24594 "there was an error.  I<The caller must call "
24595 "C<guestfs_free_inotify_event_list> after use>."
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:2715
24600 msgid "guestfs_inotify_rm_watch"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:2717
24605 #, no-wrap
24606 msgid ""
24607 " int\n"
24608 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24609 "                           int wd);\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../src/guestfs-actions.pod:2721
24615 msgid ""
24616 "Remove a previously defined inotify watch.  See "
24617 "C<guestfs_inotify_add_watch>."
24618 msgstr ""
24619
24620 #. type: =head2
24621 #: ../src/guestfs-actions.pod:2728
24622 msgid "guestfs_inspect_get_arch"
24623 msgstr ""
24624
24625 #. type: verbatim
24626 #: ../src/guestfs-actions.pod:2730
24627 #, no-wrap
24628 msgid ""
24629 " char *\n"
24630 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24631 "                           const char *root);\n"
24632 "\n"
24633 msgstr ""
24634
24635 #. type: textblock
24636 #: ../src/guestfs-actions.pod:2734
24637 msgid ""
24638 "This returns the architecture of the inspected operating system.  The "
24639 "possible return values are listed under C<guestfs_file_architecture>."
24640 msgstr ""
24641
24642 #. type: =head2
24643 #: ../src/guestfs-actions.pod:2748
24644 msgid "guestfs_inspect_get_distro"
24645 msgstr ""
24646
24647 #. type: verbatim
24648 #: ../src/guestfs-actions.pod:2750
24649 #, no-wrap
24650 msgid ""
24651 " char *\n"
24652 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24653 "                             const char *root);\n"
24654 "\n"
24655 msgstr ""
24656
24657 #. type: =head2
24658 #: ../src/guestfs-actions.pod:2842
24659 msgid "guestfs_inspect_get_drive_mappings"
24660 msgstr ""
24661
24662 #. type: verbatim
24663 #: ../src/guestfs-actions.pod:2844
24664 #, no-wrap
24665 msgid ""
24666 " char **\n"
24667 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24668 "                                     const char *root);\n"
24669 "\n"
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../src/guestfs-actions.pod:2873
24674 msgid ""
24675 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24676 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24677 msgstr ""
24678
24679 #. type: textblock
24680 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145 ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5215 ../src/guestfs-actions.pod:7283
24681 msgid ""
24682 "This function returns a NULL-terminated array of strings, or NULL if there "
24683 "was an error.  The array of strings will always have length C<2n+1>, where "
24684 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24685 "caller must free the strings and the array after use>."
24686 msgstr ""
24687
24688 #. type: textblock
24689 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
24690 msgid "(Added in 1.9.17)"
24691 msgstr ""
24692
24693 #. type: =head2
24694 #: ../src/guestfs-actions.pod:2885
24695 msgid "guestfs_inspect_get_filesystems"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../src/guestfs-actions.pod:2887
24700 #, no-wrap
24701 msgid ""
24702 " char **\n"
24703 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24704 "                                  const char *root);\n"
24705 "\n"
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:2899
24710 msgid ""
24711 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24712 "C<guestfs_inspect_get_mountpoints>."
24713 msgstr ""
24714
24715 #. type: =head2
24716 #: ../src/guestfs-actions.pod:2908
24717 msgid "guestfs_inspect_get_format"
24718 msgstr ""
24719
24720 #. type: verbatim
24721 #: ../src/guestfs-actions.pod:2910
24722 #, no-wrap
24723 msgid ""
24724 " char *\n"
24725 " guestfs_inspect_get_format (guestfs_h *g,\n"
24726 "                             const char *root);\n"
24727 "\n"
24728 msgstr ""
24729
24730 #. type: textblock
24731 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375 ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409 ../src/guestfs-actions.pod:6165
24732 msgid "(Added in 1.9.4)"
24733 msgstr ""
24734
24735 #. type: =head2
24736 #: ../src/guestfs-actions.pod:2946
24737 msgid "guestfs_inspect_get_hostname"
24738 msgstr ""
24739
24740 #. type: verbatim
24741 #: ../src/guestfs-actions.pod:2948
24742 #, no-wrap
24743 msgid ""
24744 " char *\n"
24745 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24746 "                               const char *root);\n"
24747 "\n"
24748 msgstr ""
24749
24750 #. type: textblock
24751 #: ../src/guestfs-actions.pod:2963
24752 msgid "(Added in 1.7.9)"
24753 msgstr ""
24754
24755 #. type: =head2
24756 #: ../src/guestfs-actions.pod:2965
24757 msgid "guestfs_inspect_get_icon"
24758 msgstr ""
24759
24760 #. type: verbatim
24761 #: ../src/guestfs-actions.pod:2967
24762 #, no-wrap
24763 msgid ""
24764 " char *\n"
24765 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24766 "                           const char *root,\n"
24767 "                           size_t *size_r,\n"
24768 "                           ...);\n"
24769 "\n"
24770 msgstr ""
24771
24772 #. type: verbatim
24773 #: ../src/guestfs-actions.pod:2978
24774 #, no-wrap
24775 msgid ""
24776 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24777 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24778 "\n"
24779 msgstr ""
24780
24781 #. type: textblock
24782 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:5114
24783 msgid "(Added in 1.11.12)"
24784 msgstr ""
24785
24786 #. type: =head2
24787 #: ../src/guestfs-actions.pod:3047
24788 msgid "guestfs_inspect_get_icon_va"
24789 msgstr ""
24790
24791 #. type: verbatim
24792 #: ../src/guestfs-actions.pod:3049
24793 #, no-wrap
24794 msgid ""
24795 " char *\n"
24796 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24797 "                              const char *root,\n"
24798 "                              size_t *size_r,\n"
24799 "                              va_list args);\n"
24800 "\n"
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../src/guestfs-actions.pod:3055
24805 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24806 msgstr ""
24807
24808 #. type: =head2
24809 #: ../src/guestfs-actions.pod:3059
24810 msgid "guestfs_inspect_get_icon_argv"
24811 msgstr ""
24812
24813 #. type: verbatim
24814 #: ../src/guestfs-actions.pod:3061
24815 #, no-wrap
24816 msgid ""
24817 " char *\n"
24818 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24819 "                                const char *root,\n"
24820 "                                size_t *size_r,\n"
24821 "                                const struct guestfs_inspect_get_icon_argv "
24822 "*optargs);\n"
24823 "\n"
24824 msgstr ""
24825
24826 #. type: textblock
24827 #: ../src/guestfs-actions.pod:3067
24828 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24829 msgstr ""
24830
24831 #. type: =head2
24832 #: ../src/guestfs-actions.pod:3071
24833 msgid "guestfs_inspect_get_major_version"
24834 msgstr ""
24835
24836 #. type: verbatim
24837 #: ../src/guestfs-actions.pod:3073
24838 #, no-wrap
24839 msgid ""
24840 " int\n"
24841 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24842 "                                    const char *root);\n"
24843 "\n"
24844 msgstr ""
24845
24846 #. type: =head2
24847 #: ../src/guestfs-actions.pod:3095
24848 msgid "guestfs_inspect_get_minor_version"
24849 msgstr ""
24850
24851 #. type: verbatim
24852 #: ../src/guestfs-actions.pod:3097
24853 #, no-wrap
24854 msgid ""
24855 " int\n"
24856 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24857 "                                    const char *root);\n"
24858 "\n"
24859 msgstr ""
24860
24861 #. type: textblock
24862 #: ../src/guestfs-actions.pod:3106
24863 msgid ""
24864 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24865 "C<guestfs_inspect_get_major_version>."
24866 msgstr ""
24867
24868 #. type: =head2
24869 #: ../src/guestfs-actions.pod:3113
24870 msgid "guestfs_inspect_get_mountpoints"
24871 msgstr ""
24872
24873 #. type: verbatim
24874 #: ../src/guestfs-actions.pod:3115
24875 #, no-wrap
24876 msgid ""
24877 " char **\n"
24878 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24879 "                                  const char *root);\n"
24880 "\n"
24881 msgstr ""
24882
24883 #. type: textblock
24884 #: ../src/guestfs-actions.pod:3136
24885 msgid ""
24886 "For operating systems like Windows which still use drive letters, this call "
24887 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24888 "information about the mapping of drive letters to partitions, see "
24889 "C<guestfs_inspect_get_drive_mappings>."
24890 msgstr ""
24891
24892 #. type: textblock
24893 #: ../src/guestfs-actions.pod:3142
24894 msgid ""
24895 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24896 "C<guestfs_inspect_get_filesystems>."
24897 msgstr ""
24898
24899 #. type: =head2
24900 #: ../src/guestfs-actions.pod:3153
24901 msgid "guestfs_inspect_get_package_format"
24902 msgstr ""
24903
24904 #. type: verbatim
24905 #: ../src/guestfs-actions.pod:3155
24906 #, no-wrap
24907 msgid ""
24908 " char *\n"
24909 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24910 "                                     const char *root);\n"
24911 "\n"
24912 msgstr ""
24913
24914 #. type: textblock
24915 #: ../src/guestfs-actions.pod:3159
24916 msgid ""
24917 "This function and C<guestfs_inspect_get_package_management> return the "
24918 "package format and package management tool used by the inspected operating "
24919 "system.  For example for Fedora these functions would return C<rpm> (package "
24920 "format) and C<yum> (package management)."
24921 msgstr ""
24922
24923 #. type: textblock
24924 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
24925 msgid "(Added in 1.7.5)"
24926 msgstr ""
24927
24928 #. type: =head2
24929 #: ../src/guestfs-actions.pod:3179
24930 msgid "guestfs_inspect_get_package_management"
24931 msgstr ""
24932
24933 #. type: verbatim
24934 #: ../src/guestfs-actions.pod:3181
24935 #, no-wrap
24936 msgid ""
24937 " char *\n"
24938 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24939 "                                         const char *root);\n"
24940 "\n"
24941 msgstr ""
24942
24943 #. type: textblock
24944 #: ../src/guestfs-actions.pod:3185
24945 msgid ""
24946 "C<guestfs_inspect_get_package_format> and this function return the package "
24947 "format and package management tool used by the inspected operating system.  "
24948 "For example for Fedora these functions would return C<rpm> (package format) "
24949 "and C<yum> (package management)."
24950 msgstr ""
24951
24952 #. type: =head2
24953 #: ../src/guestfs-actions.pod:3207
24954 msgid "guestfs_inspect_get_product_name"
24955 msgstr ""
24956
24957 #. type: verbatim
24958 #: ../src/guestfs-actions.pod:3209
24959 #, no-wrap
24960 msgid ""
24961 " char *\n"
24962 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24963 "                                   const char *root);\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: =head2
24968 #: ../src/guestfs-actions.pod:3228
24969 msgid "guestfs_inspect_get_product_variant"
24970 msgstr ""
24971
24972 #. type: verbatim
24973 #: ../src/guestfs-actions.pod:3230
24974 #, no-wrap
24975 msgid ""
24976 " char *\n"
24977 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24978 "                                      const char *root);\n"
24979 "\n"
24980 msgstr ""
24981
24982 #. type: textblock
24983 #: ../src/guestfs-actions.pod:3253
24984 msgid ""
24985 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24986 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24987 msgstr ""
24988
24989 #. type: textblock
24990 #: ../src/guestfs-actions.pod:3260
24991 msgid "(Added in 1.9.13)"
24992 msgstr ""
24993
24994 #. type: =head2
24995 #: ../src/guestfs-actions.pod:3262
24996 msgid "guestfs_inspect_get_roots"
24997 msgstr ""
24998
24999 #. type: verbatim
25000 #: ../src/guestfs-actions.pod:3264
25001 #, no-wrap
25002 msgid ""
25003 " char **\n"
25004 " guestfs_inspect_get_roots (guestfs_h *g);\n"
25005 "\n"
25006 msgstr ""
25007
25008 #. type: textblock
25009 #: ../src/guestfs-actions.pod:3267
25010 msgid ""
25011 "This function is a convenient way to get the list of root devices, as "
25012 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
25013 "the whole inspection process."
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../src/guestfs-actions.pod:3271
25018 msgid ""
25019 "This returns an empty list if either no root devices were found or the "
25020 "caller has not called C<guestfs_inspect_os>."
25021 msgstr ""
25022
25023 #. type: textblock
25024 #: ../src/guestfs-actions.pod:3280
25025 msgid "(Added in 1.7.3)"
25026 msgstr ""
25027
25028 #. type: =head2
25029 #: ../src/guestfs-actions.pod:3282
25030 msgid "guestfs_inspect_get_type"
25031 msgstr ""
25032
25033 #. type: verbatim
25034 #: ../src/guestfs-actions.pod:3284
25035 #, no-wrap
25036 msgid ""
25037 " char *\n"
25038 " guestfs_inspect_get_type (guestfs_h *g,\n"
25039 "                           const char *root);\n"
25040 "\n"
25041 msgstr ""
25042
25043 #. type: =head2
25044 #: ../src/guestfs-actions.pod:3321
25045 msgid "guestfs_inspect_get_windows_current_control_set"
25046 msgstr ""
25047
25048 #. type: verbatim
25049 #: ../src/guestfs-actions.pod:3323
25050 #, no-wrap
25051 msgid ""
25052 " char *\n"
25053 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
25054 "                                                  const char *root);\n"
25055 "\n"
25056 msgstr ""
25057
25058 #. type: =head2
25059 #: ../src/guestfs-actions.pod:3341
25060 msgid "guestfs_inspect_get_windows_systemroot"
25061 msgstr ""
25062
25063 #. type: verbatim
25064 #: ../src/guestfs-actions.pod:3343
25065 #, no-wrap
25066 msgid ""
25067 " char *\n"
25068 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
25069 "                                         const char *root);\n"
25070 "\n"
25071 msgstr ""
25072
25073 #. type: textblock
25074 #: ../src/guestfs-actions.pod:3359
25075 msgid "(Added in 1.5.25)"
25076 msgstr ""
25077
25078 #. type: =head2
25079 #: ../src/guestfs-actions.pod:3361
25080 msgid "guestfs_inspect_is_live"
25081 msgstr ""
25082
25083 #. type: verbatim
25084 #: ../src/guestfs-actions.pod:3363
25085 #, no-wrap
25086 msgid ""
25087 " int\n"
25088 " guestfs_inspect_is_live (guestfs_h *g,\n"
25089 "                          const char *root);\n"
25090 "\n"
25091 msgstr ""
25092
25093 #. type: textblock
25094 #: ../src/guestfs-actions.pod:3367
25095 msgid ""
25096 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25097 "disk), then this returns true if a live image was detected on the disk."
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../src/guestfs-actions.pod:3377
25102 msgid "guestfs_inspect_is_multipart"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../src/guestfs-actions.pod:3379
25107 #, no-wrap
25108 msgid ""
25109 " int\n"
25110 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
25111 "                               const char *root);\n"
25112 "\n"
25113 msgstr ""
25114
25115 #. type: textblock
25116 #: ../src/guestfs-actions.pod:3383
25117 msgid ""
25118 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25119 "disk), then this returns true if the disk is part of a set."
25120 msgstr ""
25121
25122 #. type: =head2
25123 #: ../src/guestfs-actions.pod:3393
25124 msgid "guestfs_inspect_is_netinst"
25125 msgstr ""
25126
25127 #. type: verbatim
25128 #: ../src/guestfs-actions.pod:3395
25129 #, no-wrap
25130 msgid ""
25131 " int\n"
25132 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
25133 "                             const char *root);\n"
25134 "\n"
25135 msgstr ""
25136
25137 #. type: textblock
25138 #: ../src/guestfs-actions.pod:3399
25139 msgid ""
25140 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
25141 "disk), then this returns true if the disk is a network installer, ie. not a "
25142 "self-contained install CD but one which is likely to require network access "
25143 "to complete the install."
25144 msgstr ""
25145
25146 #. type: =head2
25147 #: ../src/guestfs-actions.pod:3411
25148 msgid "guestfs_inspect_list_applications"
25149 msgstr ""
25150
25151 #. type: verbatim
25152 #: ../src/guestfs-actions.pod:3413
25153 #, no-wrap
25154 msgid ""
25155 " struct guestfs_application_list *\n"
25156 " guestfs_inspect_list_applications (guestfs_h *g,\n"
25157 "                                    const char *root);\n"
25158 "\n"
25159 msgstr ""
25160
25161 #. type: textblock
25162 #: ../src/guestfs-actions.pod:3419
25163 msgid ""
25164 "I<Note:> This call works differently from other parts of the inspection "
25165 "API.  You have to call C<guestfs_inspect_os>, then "
25166 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
25167 "this.  Listing applications is a significantly more difficult operation "
25168 "which requires access to the full filesystem.  Also note that unlike the "
25169 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
25170 "the libguestfs handle, this call actually reads parts of the mounted "
25171 "filesystems during the call."
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../src/guestfs-actions.pod:3509
25176 msgid ""
25177 "This function returns a C<struct guestfs_application_list *>, or NULL if "
25178 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
25179 "after use>."
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../src/guestfs-actions.pod:3513
25184 msgid "(Added in 1.7.8)"
25185 msgstr ""
25186
25187 #. type: =head2
25188 #: ../src/guestfs-actions.pod:3515
25189 msgid "guestfs_inspect_os"
25190 msgstr ""
25191
25192 #. type: verbatim
25193 #: ../src/guestfs-actions.pod:3517
25194 #, no-wrap
25195 msgid ""
25196 " char **\n"
25197 " guestfs_inspect_os (guestfs_h *g);\n"
25198 "\n"
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:3533
25203 msgid ""
25204 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
25205 "functions in order to query further information about each operating system, "
25206 "such as the name and version."
25207 msgstr ""
25208
25209 #. type: textblock
25210 #: ../src/guestfs-actions.pod:3538
25211 msgid ""
25212 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
25213 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
25214 "the contents.  This should be called with no disks currently mounted.  The "
25215 "function may also use Augeas, so any existing Augeas handle will be closed."
25216 msgstr ""
25217
25218 #. type: textblock
25219 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3963
25220 msgid "See also C<guestfs_list_filesystems>."
25221 msgstr ""
25222
25223 #. type: =head2
25224 #: ../src/guestfs-actions.pod:3558
25225 msgid "guestfs_is_blockdev"
25226 msgstr ""
25227
25228 #. type: verbatim
25229 #: ../src/guestfs-actions.pod:3560
25230 #, no-wrap
25231 msgid ""
25232 " int\n"
25233 " guestfs_is_blockdev (guestfs_h *g,\n"
25234 "                      const char *path);\n"
25235 "\n"
25236 msgstr ""
25237
25238 #. type: textblock
25239 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3728
25240 msgid "See also C<guestfs_stat>."
25241 msgstr ""
25242
25243 #. type: textblock
25244 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600 ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717 ../src/guestfs-actions.pod:3732
25245 msgid "(Added in 1.5.10)"
25246 msgstr ""
25247
25248 #. type: =head2
25249 #: ../src/guestfs-actions.pod:3573
25250 msgid "guestfs_is_busy"
25251 msgstr ""
25252
25253 #. type: verbatim
25254 #: ../src/guestfs-actions.pod:3575
25255 #, no-wrap
25256 msgid ""
25257 " int\n"
25258 " guestfs_is_busy (guestfs_h *g);\n"
25259 "\n"
25260 msgstr ""
25261
25262 #. type: =head2
25263 #: ../src/guestfs-actions.pod:3587
25264 msgid "guestfs_is_chardev"
25265 msgstr ""
25266
25267 #. type: verbatim
25268 #: ../src/guestfs-actions.pod:3589
25269 #, no-wrap
25270 msgid ""
25271 " int\n"
25272 " guestfs_is_chardev (guestfs_h *g,\n"
25273 "                     const char *path);\n"
25274 "\n"
25275 msgstr ""
25276
25277 #. type: =head2
25278 #: ../src/guestfs-actions.pod:3602
25279 msgid "guestfs_is_config"
25280 msgstr ""
25281
25282 #. type: verbatim
25283 #: ../src/guestfs-actions.pod:3604
25284 #, no-wrap
25285 msgid ""
25286 " int\n"
25287 " guestfs_is_config (guestfs_h *g);\n"
25288 "\n"
25289 msgstr ""
25290
25291 #. type: =head2
25292 #: ../src/guestfs-actions.pod:3616
25293 msgid "guestfs_is_dir"
25294 msgstr ""
25295
25296 #. type: verbatim
25297 #: ../src/guestfs-actions.pod:3618
25298 #, no-wrap
25299 msgid ""
25300 " int\n"
25301 " guestfs_is_dir (guestfs_h *g,\n"
25302 "                 const char *path);\n"
25303 "\n"
25304 msgstr ""
25305
25306 #. type: =head2
25307 #: ../src/guestfs-actions.pod:3632
25308 msgid "guestfs_is_fifo"
25309 msgstr ""
25310
25311 #. type: verbatim
25312 #: ../src/guestfs-actions.pod:3634
25313 #, no-wrap
25314 msgid ""
25315 " int\n"
25316 " guestfs_is_fifo (guestfs_h *g,\n"
25317 "                  const char *path);\n"
25318 "\n"
25319 msgstr ""
25320
25321 #. type: =head2
25322 #: ../src/guestfs-actions.pod:3647
25323 msgid "guestfs_is_file"
25324 msgstr ""
25325
25326 #. type: verbatim
25327 #: ../src/guestfs-actions.pod:3649
25328 #, no-wrap
25329 msgid ""
25330 " int\n"
25331 " guestfs_is_file (guestfs_h *g,\n"
25332 "                  const char *path);\n"
25333 "\n"
25334 msgstr ""
25335
25336 #. type: =head2
25337 #: ../src/guestfs-actions.pod:3663
25338 msgid "guestfs_is_launching"
25339 msgstr ""
25340
25341 #. type: verbatim
25342 #: ../src/guestfs-actions.pod:3665
25343 #, no-wrap
25344 msgid ""
25345 " int\n"
25346 " guestfs_is_launching (guestfs_h *g);\n"
25347 "\n"
25348 msgstr ""
25349
25350 #. type: =head2
25351 #: ../src/guestfs-actions.pod:3677
25352 msgid "guestfs_is_lv"
25353 msgstr ""
25354
25355 #. type: verbatim
25356 #: ../src/guestfs-actions.pod:3679
25357 #, no-wrap
25358 msgid ""
25359 " int\n"
25360 " guestfs_is_lv (guestfs_h *g,\n"
25361 "                const char *device);\n"
25362 "\n"
25363 msgstr ""
25364
25365 #. type: =head2
25366 #: ../src/guestfs-actions.pod:3690
25367 msgid "guestfs_is_ready"
25368 msgstr ""
25369
25370 #. type: verbatim
25371 #: ../src/guestfs-actions.pod:3692
25372 #, no-wrap
25373 msgid ""
25374 " int\n"
25375 " guestfs_is_ready (guestfs_h *g);\n"
25376 "\n"
25377 msgstr ""
25378
25379 #. type: =head2
25380 #: ../src/guestfs-actions.pod:3704
25381 msgid "guestfs_is_socket"
25382 msgstr ""
25383
25384 #. type: verbatim
25385 #: ../src/guestfs-actions.pod:3706
25386 #, no-wrap
25387 msgid ""
25388 " int\n"
25389 " guestfs_is_socket (guestfs_h *g,\n"
25390 "                    const char *path);\n"
25391 "\n"
25392 msgstr ""
25393
25394 #. type: =head2
25395 #: ../src/guestfs-actions.pod:3719
25396 msgid "guestfs_is_symlink"
25397 msgstr ""
25398
25399 #. type: verbatim
25400 #: ../src/guestfs-actions.pod:3721
25401 #, no-wrap
25402 msgid ""
25403 " int\n"
25404 " guestfs_is_symlink (guestfs_h *g,\n"
25405 "                     const char *path);\n"
25406 "\n"
25407 msgstr ""
25408
25409 #. type: =head2
25410 #: ../src/guestfs-actions.pod:3734
25411 msgid "guestfs_is_zero"
25412 msgstr ""
25413
25414 #. type: verbatim
25415 #: ../src/guestfs-actions.pod:3736
25416 #, no-wrap
25417 msgid ""
25418 " int\n"
25419 " guestfs_is_zero (guestfs_h *g,\n"
25420 "                  const char *path);\n"
25421 "\n"
25422 msgstr ""
25423
25424 #. type: textblock
25425 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
25426 msgid "(Added in 1.11.8)"
25427 msgstr ""
25428
25429 #. type: =head2
25430 #: ../src/guestfs-actions.pod:3747
25431 msgid "guestfs_is_zero_device"
25432 msgstr ""
25433
25434 #. type: verbatim
25435 #: ../src/guestfs-actions.pod:3749
25436 #, no-wrap
25437 msgid ""
25438 " int\n"
25439 " guestfs_is_zero_device (guestfs_h *g,\n"
25440 "                         const char *device);\n"
25441 "\n"
25442 msgstr ""
25443
25444 #. type: =head2
25445 #: ../src/guestfs-actions.pod:3761
25446 msgid "guestfs_kill_subprocess"
25447 msgstr ""
25448
25449 #. type: verbatim
25450 #: ../src/guestfs-actions.pod:3763
25451 #, no-wrap
25452 msgid ""
25453 " int\n"
25454 " guestfs_kill_subprocess (guestfs_h *g);\n"
25455 "\n"
25456 msgstr ""
25457
25458 #. type: =head2
25459 #: ../src/guestfs-actions.pod:3772
25460 msgid "guestfs_launch"
25461 msgstr ""
25462
25463 #. type: verbatim
25464 #: ../src/guestfs-actions.pod:3774
25465 #, no-wrap
25466 msgid ""
25467 " int\n"
25468 " guestfs_launch (guestfs_h *g);\n"
25469 "\n"
25470 msgstr ""
25471
25472 #. type: =head2
25473 #: ../src/guestfs-actions.pod:3792
25474 msgid "guestfs_lchown"
25475 msgstr ""
25476
25477 #. type: verbatim
25478 #: ../src/guestfs-actions.pod:3794
25479 #, no-wrap
25480 msgid ""
25481 " int\n"
25482 " guestfs_lchown (guestfs_h *g,\n"
25483 "                 int owner,\n"
25484 "                 int group,\n"
25485 "                 const char *path);\n"
25486 "\n"
25487 msgstr ""
25488
25489 #. type: textblock
25490 #: ../src/guestfs-actions.pod:3800
25491 msgid ""
25492 "Change the file owner to C<owner> and group to C<group>.  This is like "
25493 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25494 "changed, not the target."
25495 msgstr ""
25496
25497 #. type: =head2
25498 #: ../src/guestfs-actions.pod:3812
25499 msgid "guestfs_lgetxattr"
25500 msgstr ""
25501
25502 #. type: verbatim
25503 #: ../src/guestfs-actions.pod:3814
25504 #, no-wrap
25505 msgid ""
25506 " char *\n"
25507 " guestfs_lgetxattr (guestfs_h *g,\n"
25508 "                    const char *path,\n"
25509 "                    const char *name,\n"
25510 "                    size_t *size_r);\n"
25511 "\n"
25512 msgstr ""
25513
25514 #. type: textblock
25515 #: ../src/guestfs-actions.pod:3834
25516 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../src/guestfs-actions.pod:3842
25521 msgid "guestfs_lgetxattrs"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../src/guestfs-actions.pod:3844
25526 #, no-wrap
25527 msgid ""
25528 " struct guestfs_xattr_list *\n"
25529 " guestfs_lgetxattrs (guestfs_h *g,\n"
25530 "                     const char *path);\n"
25531 "\n"
25532 msgstr ""
25533
25534 #. type: textblock
25535 #: ../src/guestfs-actions.pod:3848
25536 msgid ""
25537 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25538 "then it returns the extended attributes of the link itself."
25539 msgstr ""
25540
25541 #. type: =head2
25542 #: ../src/guestfs-actions.pod:3858
25543 msgid "guestfs_list_9p"
25544 msgstr ""
25545
25546 #. type: verbatim
25547 #: ../src/guestfs-actions.pod:3860
25548 #, no-wrap
25549 msgid ""
25550 " char **\n"
25551 " guestfs_list_9p (guestfs_h *g);\n"
25552 "\n"
25553 msgstr ""
25554
25555 #. type: =head2
25556 #: ../src/guestfs-actions.pod:3872
25557 msgid "guestfs_list_devices"
25558 msgstr ""
25559
25560 #. type: verbatim
25561 #: ../src/guestfs-actions.pod:3874
25562 #, no-wrap
25563 msgid ""
25564 " char **\n"
25565 " guestfs_list_devices (guestfs_h *g);\n"
25566 "\n"
25567 msgstr ""
25568
25569 #. type: =head2
25570 #: ../src/guestfs-actions.pod:3889
25571 msgid "guestfs_list_dm_devices"
25572 msgstr ""
25573
25574 #. type: verbatim
25575 #: ../src/guestfs-actions.pod:3891
25576 #, no-wrap
25577 msgid ""
25578 " char **\n"
25579 " guestfs_list_dm_devices (guestfs_h *g);\n"
25580 "\n"
25581 msgstr ""
25582
25583 #. type: textblock
25584 #: ../src/guestfs-actions.pod:3896
25585 msgid ""
25586 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25587 "previous call to C<guestfs_luks_open>."
25588 msgstr ""
25589
25590 #. type: textblock
25591 #: ../src/guestfs-actions.pod:3899
25592 msgid ""
25593 "Device mapper devices which correspond to logical volumes are I<not> "
25594 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25595 "volumes."
25596 msgstr ""
25597
25598 #. type: textblock
25599 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5353
25600 msgid "(Added in 1.11.15)"
25601 msgstr ""
25602
25603 #. type: =head2
25604 #: ../src/guestfs-actions.pod:3909
25605 msgid "guestfs_list_filesystems"
25606 msgstr ""
25607
25608 #. type: verbatim
25609 #: ../src/guestfs-actions.pod:3911
25610 #, no-wrap
25611 msgid ""
25612 " char **\n"
25613 " guestfs_list_filesystems (guestfs_h *g);\n"
25614 "\n"
25615 msgstr ""
25616
25617 #. type: textblock
25618 #: ../src/guestfs-actions.pod:3931
25619 msgid ""
25620 "This command runs other libguestfs commands, which might include "
25621 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25622 "soon after launch and only when nothing is mounted."
25623 msgstr ""
25624
25625 #. type: textblock
25626 #: ../src/guestfs-actions.pod:3935
25627 msgid ""
25628 "Not all of the filesystems returned will be mountable.  In particular, swap "
25629 "partitions are returned in the list.  Also this command does not check that "
25630 "each filesystem found is valid and mountable, and some filesystems might be "
25631 "mountable but require special options.  Filesystems may not all belong to a "
25632 "single logical operating system (use C<guestfs_inspect_os> to look for "
25633 "OSes)."
25634 msgstr ""
25635
25636 #. type: textblock
25637 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5714
25638 msgid "(Added in 1.5.15)"
25639 msgstr ""
25640
25641 #. type: =head2
25642 #: ../src/guestfs-actions.pod:3951
25643 msgid "guestfs_list_partitions"
25644 msgstr ""
25645
25646 #. type: verbatim
25647 #: ../src/guestfs-actions.pod:3953
25648 #, no-wrap
25649 msgid ""
25650 " char **\n"
25651 " guestfs_list_partitions (guestfs_h *g);\n"
25652 "\n"
25653 msgstr ""
25654
25655 #. type: textblock
25656 #: ../src/guestfs-actions.pod:3960
25657 msgid ""
25658 "This does not return logical volumes.  For that you will need to call "
25659 "C<guestfs_lvs>."
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../src/guestfs-actions.pod:3971
25664 msgid "guestfs_ll"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:3973
25669 #, no-wrap
25670 msgid ""
25671 " char *\n"
25672 " guestfs_ll (guestfs_h *g,\n"
25673 "             const char *directory);\n"
25674 "\n"
25675 msgstr ""
25676
25677 #. type: =head2
25678 #: ../src/guestfs-actions.pod:3988
25679 msgid "guestfs_ln"
25680 msgstr ""
25681
25682 #. type: verbatim
25683 #: ../src/guestfs-actions.pod:3990
25684 #, no-wrap
25685 msgid ""
25686 " int\n"
25687 " guestfs_ln (guestfs_h *g,\n"
25688 "             const char *target,\n"
25689 "             const char *linkname);\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../src/guestfs-actions.pod:4001
25695 msgid "guestfs_ln_f"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../src/guestfs-actions.pod:4003
25700 #, no-wrap
25701 msgid ""
25702 " int\n"
25703 " guestfs_ln_f (guestfs_h *g,\n"
25704 "               const char *target,\n"
25705 "               const char *linkname);\n"
25706 "\n"
25707 msgstr ""
25708
25709 #. type: =head2
25710 #: ../src/guestfs-actions.pod:4015
25711 msgid "guestfs_ln_s"
25712 msgstr ""
25713
25714 #. type: verbatim
25715 #: ../src/guestfs-actions.pod:4017
25716 #, no-wrap
25717 msgid ""
25718 " int\n"
25719 " guestfs_ln_s (guestfs_h *g,\n"
25720 "               const char *target,\n"
25721 "               const char *linkname);\n"
25722 "\n"
25723 msgstr ""
25724
25725 #. type: =head2
25726 #: ../src/guestfs-actions.pod:4028
25727 msgid "guestfs_ln_sf"
25728 msgstr ""
25729
25730 #. type: verbatim
25731 #: ../src/guestfs-actions.pod:4030
25732 #, no-wrap
25733 msgid ""
25734 " int\n"
25735 " guestfs_ln_sf (guestfs_h *g,\n"
25736 "                const char *target,\n"
25737 "                const char *linkname);\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: =head2
25742 #: ../src/guestfs-actions.pod:4042
25743 msgid "guestfs_lremovexattr"
25744 msgstr ""
25745
25746 #. type: verbatim
25747 #: ../src/guestfs-actions.pod:4044
25748 #, no-wrap
25749 msgid ""
25750 " int\n"
25751 " guestfs_lremovexattr (guestfs_h *g,\n"
25752 "                       const char *xattr,\n"
25753 "                       const char *path);\n"
25754 "\n"
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../src/guestfs-actions.pod:4049
25759 msgid ""
25760 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25761 "link, then it removes an extended attribute of the link itself."
25762 msgstr ""
25763
25764 #. type: =head2
25765 #: ../src/guestfs-actions.pod:4057
25766 msgid "guestfs_ls"
25767 msgstr ""
25768
25769 #. type: verbatim
25770 #: ../src/guestfs-actions.pod:4059
25771 #, no-wrap
25772 msgid ""
25773 " char **\n"
25774 " guestfs_ls (guestfs_h *g,\n"
25775 "             const char *directory);\n"
25776 "\n"
25777 msgstr ""
25778
25779 #. type: textblock
25780 #: ../src/guestfs-actions.pod:4067
25781 msgid ""
25782 "This command is mostly useful for interactive sessions.  Programs should "
25783 "probably use C<guestfs_readdir> instead."
25784 msgstr ""
25785
25786 #. type: =head2
25787 #: ../src/guestfs-actions.pod:4076
25788 msgid "guestfs_lsetxattr"
25789 msgstr ""
25790
25791 #. type: verbatim
25792 #: ../src/guestfs-actions.pod:4078
25793 #, no-wrap
25794 msgid ""
25795 " int\n"
25796 " guestfs_lsetxattr (guestfs_h *g,\n"
25797 "                    const char *xattr,\n"
25798 "                    const char *val,\n"
25799 "                    int vallen,\n"
25800 "                    const char *path);\n"
25801 "\n"
25802 msgstr ""
25803
25804 #. type: textblock
25805 #: ../src/guestfs-actions.pod:4085
25806 msgid ""
25807 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25808 "then it sets an extended attribute of the link itself."
25809 msgstr ""
25810
25811 #. type: =head2
25812 #: ../src/guestfs-actions.pod:4093
25813 msgid "guestfs_lstat"
25814 msgstr ""
25815
25816 #. type: verbatim
25817 #: ../src/guestfs-actions.pod:4095
25818 #, no-wrap
25819 msgid ""
25820 " struct guestfs_stat *\n"
25821 " guestfs_lstat (guestfs_h *g,\n"
25822 "                const char *path);\n"
25823 "\n"
25824 msgstr ""
25825
25826 #. type: textblock
25827 #: ../src/guestfs-actions.pod:4101
25828 msgid ""
25829 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25830 "link, then the link is stat-ed, not the file it refers to."
25831 msgstr ""
25832
25833 #. type: textblock
25834 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6886
25835 msgid ""
25836 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25837 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25838 msgstr ""
25839
25840 #. type: textblock
25841 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6890 ../src/guestfs-actions.pod:6908 ../src/guestfs-actions.pod:7289
25842 msgid "(Added in 0.9.2)"
25843 msgstr ""
25844
25845 #. type: =head2
25846 #: ../src/guestfs-actions.pod:4113
25847 msgid "guestfs_lstatlist"
25848 msgstr ""
25849
25850 #. type: verbatim
25851 #: ../src/guestfs-actions.pod:4115
25852 #, no-wrap
25853 msgid ""
25854 " struct guestfs_stat_list *\n"
25855 " guestfs_lstatlist (guestfs_h *g,\n"
25856 "                    const char *path,\n"
25857 "                    char *const *names);\n"
25858 "\n"
25859 msgstr ""
25860
25861 #. type: textblock
25862 #: ../src/guestfs-actions.pod:4120
25863 msgid ""
25864 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25865 "files, where all files are in the directory C<path>.  C<names> is the list "
25866 "of files from this directory."
25867 msgstr ""
25868
25869 #. type: textblock
25870 #: ../src/guestfs-actions.pod:4129
25871 msgid ""
25872 "This call is intended for programs that want to efficiently list a directory "
25873 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25874 "for a similarly efficient call for getting extended attributes.  Very long "
25875 "directory listings might cause the protocol message size to be exceeded, "
25876 "causing this call to fail.  The caller must split up such requests into "
25877 "smaller groups of names."
25878 msgstr ""
25879
25880 #. type: textblock
25881 #: ../src/guestfs-actions.pod:4137
25882 msgid ""
25883 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25884 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25885 msgstr ""
25886
25887 #. type: =head2
25888 #: ../src/guestfs-actions.pod:4143
25889 msgid "guestfs_luks_add_key"
25890 msgstr ""
25891
25892 #. type: verbatim
25893 #: ../src/guestfs-actions.pod:4145
25894 #, no-wrap
25895 msgid ""
25896 " int\n"
25897 " guestfs_luks_add_key (guestfs_h *g,\n"
25898 "                       const char *device,\n"
25899 "                       const char *key,\n"
25900 "                       const char *newkey,\n"
25901 "                       int keyslot);\n"
25902 "\n"
25903 msgstr ""
25904
25905 #. type: textblock
25906 #: ../src/guestfs-actions.pod:4157
25907 msgid ""
25908 "Note that if C<keyslot> already contains a key, then this command will "
25909 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25910 msgstr ""
25911
25912 #. type: textblock
25913 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
25914 msgid ""
25915 "This function takes a key or passphrase parameter which could contain "
25916 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25917 "information."
25918 msgstr ""
25919
25920 #. type: textblock
25921 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
25922 msgid "(Added in 1.5.2)"
25923 msgstr ""
25924
25925 #. type: =head2
25926 #: ../src/guestfs-actions.pod:4169
25927 msgid "guestfs_luks_close"
25928 msgstr ""
25929
25930 #. type: verbatim
25931 #: ../src/guestfs-actions.pod:4171
25932 #, no-wrap
25933 msgid ""
25934 " int\n"
25935 " guestfs_luks_close (guestfs_h *g,\n"
25936 "                     const char *device);\n"
25937 "\n"
25938 msgstr ""
25939
25940 #. type: textblock
25941 #: ../src/guestfs-actions.pod:4175
25942 msgid ""
25943 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25944 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25945 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25946 "underlying block device."
25947 msgstr ""
25948
25949 #. type: textblock
25950 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:4402
25951 msgid "(Added in 1.5.1)"
25952 msgstr ""
25953
25954 #. type: =head2
25955 #: ../src/guestfs-actions.pod:4185
25956 msgid "guestfs_luks_format"
25957 msgstr ""
25958
25959 #. type: verbatim
25960 #: ../src/guestfs-actions.pod:4187
25961 #, no-wrap
25962 msgid ""
25963 " int\n"
25964 " guestfs_luks_format (guestfs_h *g,\n"
25965 "                      const char *device,\n"
25966 "                      const char *key,\n"
25967 "                      int keyslot);\n"
25968 "\n"
25969 msgstr ""
25970
25971 #. type: =head2
25972 #: ../src/guestfs-actions.pod:4209
25973 msgid "guestfs_luks_format_cipher"
25974 msgstr ""
25975
25976 #. type: verbatim
25977 #: ../src/guestfs-actions.pod:4211
25978 #, no-wrap
25979 msgid ""
25980 " int\n"
25981 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25982 "                             const char *device,\n"
25983 "                             const char *key,\n"
25984 "                             int keyslot,\n"
25985 "                             const char *cipher);\n"
25986 "\n"
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../src/guestfs-actions.pod:4218
25991 msgid ""
25992 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25993 "set the C<cipher> used."
25994 msgstr ""
25995
25996 #. type: =head2
25997 #: ../src/guestfs-actions.pod:4232
25998 msgid "guestfs_luks_kill_slot"
25999 msgstr ""
26000
26001 #. type: verbatim
26002 #: ../src/guestfs-actions.pod:4234
26003 #, no-wrap
26004 msgid ""
26005 " int\n"
26006 " guestfs_luks_kill_slot (guestfs_h *g,\n"
26007 "                         const char *device,\n"
26008 "                         const char *key,\n"
26009 "                         int keyslot);\n"
26010 "\n"
26011 msgstr ""
26012
26013 #. type: =head2
26014 #: ../src/guestfs-actions.pod:4252
26015 msgid "guestfs_luks_open"
26016 msgstr ""
26017
26018 #. type: verbatim
26019 #: ../src/guestfs-actions.pod:4254
26020 #, no-wrap
26021 msgid ""
26022 " int\n"
26023 " guestfs_luks_open (guestfs_h *g,\n"
26024 "                    const char *device,\n"
26025 "                    const char *key,\n"
26026 "                    const char *mapname);\n"
26027 "\n"
26028 msgstr ""
26029
26030 #. type: textblock
26031 #: ../src/guestfs-actions.pod:4272
26032 msgid ""
26033 "If this block device contains LVM volume groups, then calling "
26034 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
26035 "visible."
26036 msgstr ""
26037
26038 #. type: textblock
26039 #: ../src/guestfs-actions.pod:4276
26040 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
26041 msgstr ""
26042
26043 #. type: =head2
26044 #: ../src/guestfs-actions.pod:4287
26045 msgid "guestfs_luks_open_ro"
26046 msgstr ""
26047
26048 #. type: verbatim
26049 #: ../src/guestfs-actions.pod:4289
26050 #, no-wrap
26051 msgid ""
26052 " int\n"
26053 " guestfs_luks_open_ro (guestfs_h *g,\n"
26054 "                       const char *device,\n"
26055 "                       const char *key,\n"
26056 "                       const char *mapname);\n"
26057 "\n"
26058 msgstr ""
26059
26060 #. type: textblock
26061 #: ../src/guestfs-actions.pod:4295
26062 msgid ""
26063 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
26064 "created."
26065 msgstr ""
26066
26067 #. type: =head2
26068 #: ../src/guestfs-actions.pod:4306
26069 msgid "guestfs_lvcreate"
26070 msgstr ""
26071
26072 #. type: verbatim
26073 #: ../src/guestfs-actions.pod:4308
26074 #, no-wrap
26075 msgid ""
26076 " int\n"
26077 " guestfs_lvcreate (guestfs_h *g,\n"
26078 "                   const char *logvol,\n"
26079 "                   const char *volgroup,\n"
26080 "                   int mbytes);\n"
26081 "\n"
26082 msgstr ""
26083
26084 #. type: =head2
26085 #: ../src/guestfs-actions.pod:4321
26086 msgid "guestfs_lvm_canonical_lv_name"
26087 msgstr ""
26088
26089 #. type: verbatim
26090 #: ../src/guestfs-actions.pod:4323
26091 #, no-wrap
26092 msgid ""
26093 " char *\n"
26094 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
26095 "                                const char *lvname);\n"
26096 "\n"
26097 msgstr ""
26098
26099 #. type: textblock
26100 #: ../src/guestfs-actions.pod:4334
26101 msgid "See also C<guestfs_is_lv>."
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:4339
26106 msgid "(Added in 1.5.24)"
26107 msgstr ""
26108
26109 #. type: =head2
26110 #: ../src/guestfs-actions.pod:4341
26111 msgid "guestfs_lvm_clear_filter"
26112 msgstr ""
26113
26114 #. type: verbatim
26115 #: ../src/guestfs-actions.pod:4343
26116 #, no-wrap
26117 msgid ""
26118 " int\n"
26119 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
26120 "\n"
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../src/guestfs-actions.pod:4346
26125 msgid ""
26126 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
26127 "see every block device."
26128 msgstr ""
26129
26130 #. type: =head2
26131 #: ../src/guestfs-actions.pod:4356
26132 msgid "guestfs_lvm_remove_all"
26133 msgstr ""
26134
26135 #. type: verbatim
26136 #: ../src/guestfs-actions.pod:4358
26137 #, no-wrap
26138 msgid ""
26139 " int\n"
26140 " guestfs_lvm_remove_all (guestfs_h *g);\n"
26141 "\n"
26142 msgstr ""
26143
26144 #. type: =head2
26145 #: ../src/guestfs-actions.pod:4371
26146 msgid "guestfs_lvm_set_filter"
26147 msgstr ""
26148
26149 #. type: verbatim
26150 #: ../src/guestfs-actions.pod:4373
26151 #, no-wrap
26152 msgid ""
26153 " int\n"
26154 " guestfs_lvm_set_filter (guestfs_h *g,\n"
26155 "                         char *const *devices);\n"
26156 "\n"
26157 msgstr ""
26158
26159 #. type: =head2
26160 #: ../src/guestfs-actions.pod:4404
26161 msgid "guestfs_lvremove"
26162 msgstr ""
26163
26164 #. type: verbatim
26165 #: ../src/guestfs-actions.pod:4406
26166 #, no-wrap
26167 msgid ""
26168 " int\n"
26169 " guestfs_lvremove (guestfs_h *g,\n"
26170 "                   const char *device);\n"
26171 "\n"
26172 msgstr ""
26173
26174 #. type: textblock
26175 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5811 ../src/guestfs-actions.pod:7659
26176 msgid "(Added in 1.0.13)"
26177 msgstr ""
26178
26179 #. type: =head2
26180 #: ../src/guestfs-actions.pod:4420
26181 msgid "guestfs_lvrename"
26182 msgstr ""
26183
26184 #. type: verbatim
26185 #: ../src/guestfs-actions.pod:4422
26186 #, no-wrap
26187 msgid ""
26188 " int\n"
26189 " guestfs_lvrename (guestfs_h *g,\n"
26190 "                   const char *logvol,\n"
26191 "                   const char *newlogvol);\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7672
26197 msgid "(Added in 1.0.83)"
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:4433
26202 msgid "guestfs_lvresize"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:4435
26207 #, no-wrap
26208 msgid ""
26209 " int\n"
26210 " guestfs_lvresize (guestfs_h *g,\n"
26211 "                   const char *device,\n"
26212 "                   int mbytes);\n"
26213 "\n"
26214 msgstr ""
26215
26216 #. type: =head2
26217 #: ../src/guestfs-actions.pod:4448
26218 msgid "guestfs_lvresize_free"
26219 msgstr ""
26220
26221 #. type: verbatim
26222 #: ../src/guestfs-actions.pod:4450
26223 #, no-wrap
26224 msgid ""
26225 " int\n"
26226 " guestfs_lvresize_free (guestfs_h *g,\n"
26227 "                        const char *lv,\n"
26228 "                        int percent);\n"
26229 "\n"
26230 msgstr ""
26231
26232 #. type: textblock
26233 #: ../src/guestfs-actions.pod:4463
26234 msgid "(Added in 1.3.3)"
26235 msgstr ""
26236
26237 #. type: =head2
26238 #: ../src/guestfs-actions.pod:4465
26239 msgid "guestfs_lvs"
26240 msgstr ""
26241
26242 #. type: verbatim
26243 #: ../src/guestfs-actions.pod:4467
26244 #, no-wrap
26245 msgid ""
26246 " char **\n"
26247 " guestfs_lvs (guestfs_h *g);\n"
26248 "\n"
26249 msgstr ""
26250
26251 #. type: textblock
26252 #: ../src/guestfs-actions.pod:4476
26253 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
26254 msgstr ""
26255
26256 #. type: =head2
26257 #: ../src/guestfs-actions.pod:4484
26258 msgid "guestfs_lvs_full"
26259 msgstr ""
26260
26261 #. type: verbatim
26262 #: ../src/guestfs-actions.pod:4486
26263 #, no-wrap
26264 msgid ""
26265 " struct guestfs_lvm_lv_list *\n"
26266 " guestfs_lvs_full (guestfs_h *g);\n"
26267 "\n"
26268 msgstr ""
26269
26270 #. type: textblock
26271 #: ../src/guestfs-actions.pod:4492
26272 msgid ""
26273 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
26274 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
26275 "use>."
26276 msgstr ""
26277
26278 #. type: =head2
26279 #: ../src/guestfs-actions.pod:4498
26280 msgid "guestfs_lvuuid"
26281 msgstr ""
26282
26283 #. type: verbatim
26284 #: ../src/guestfs-actions.pod:4500
26285 #, no-wrap
26286 msgid ""
26287 " char *\n"
26288 " guestfs_lvuuid (guestfs_h *g,\n"
26289 "                 const char *device);\n"
26290 "\n"
26291 msgstr ""
26292
26293 #. type: =head2
26294 #: ../src/guestfs-actions.pod:4511
26295 msgid "guestfs_lxattrlist"
26296 msgstr ""
26297
26298 #. type: verbatim
26299 #: ../src/guestfs-actions.pod:4513
26300 #, no-wrap
26301 msgid ""
26302 " struct guestfs_xattr_list *\n"
26303 " guestfs_lxattrlist (guestfs_h *g,\n"
26304 "                     const char *path,\n"
26305 "                     char *const *names);\n"
26306 "\n"
26307 msgstr ""
26308
26309 #. type: textblock
26310 #: ../src/guestfs-actions.pod:4532
26311 msgid ""
26312 "This call is intended for programs that want to efficiently list a directory "
26313 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26314 "a similarly efficient call for getting standard stats.  Very long directory "
26315 "listings might cause the protocol message size to be exceeded, causing this "
26316 "call to fail.  The caller must split up such requests into smaller groups of "
26317 "names."
26318 msgstr ""
26319
26320 #. type: =head2
26321 #: ../src/guestfs-actions.pod:4546
26322 msgid "guestfs_mkdir"
26323 msgstr ""
26324
26325 #. type: verbatim
26326 #: ../src/guestfs-actions.pod:4548
26327 #, no-wrap
26328 msgid ""
26329 " int\n"
26330 " guestfs_mkdir (guestfs_h *g,\n"
26331 "                const char *path);\n"
26332 "\n"
26333 msgstr ""
26334
26335 #. type: =head2
26336 #: ../src/guestfs-actions.pod:4558
26337 msgid "guestfs_mkdir_mode"
26338 msgstr ""
26339
26340 #. type: verbatim
26341 #: ../src/guestfs-actions.pod:4560
26342 #, no-wrap
26343 msgid ""
26344 " int\n"
26345 " guestfs_mkdir_mode (guestfs_h *g,\n"
26346 "                     const char *path,\n"
26347 "                     int mode);\n"
26348 "\n"
26349 msgstr ""
26350
26351 #. type: textblock
26352 #: ../src/guestfs-actions.pod:4572
26353 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26354 msgstr ""
26355
26356 #. type: =head2
26357 #: ../src/guestfs-actions.pod:4578
26358 msgid "guestfs_mkdir_p"
26359 msgstr ""
26360
26361 #. type: verbatim
26362 #: ../src/guestfs-actions.pod:4580
26363 #, no-wrap
26364 msgid ""
26365 " int\n"
26366 " guestfs_mkdir_p (guestfs_h *g,\n"
26367 "                  const char *path);\n"
26368 "\n"
26369 msgstr ""
26370
26371 #. type: =head2
26372 #: ../src/guestfs-actions.pod:4591
26373 msgid "guestfs_mkdtemp"
26374 msgstr ""
26375
26376 #. type: verbatim
26377 #: ../src/guestfs-actions.pod:4593
26378 #, no-wrap
26379 msgid ""
26380 " char *\n"
26381 " guestfs_mkdtemp (guestfs_h *g,\n"
26382 "                  const char *template);\n"
26383 "\n"
26384 msgstr ""
26385
26386 #. type: =head2
26387 #: ../src/guestfs-actions.pod:4621
26388 msgid "guestfs_mke2fs_J"
26389 msgstr ""
26390
26391 #. type: verbatim
26392 #: ../src/guestfs-actions.pod:4623
26393 #, no-wrap
26394 msgid ""
26395 " int\n"
26396 " guestfs_mke2fs_J (guestfs_h *g,\n"
26397 "                   const char *fstype,\n"
26398 "                   int blocksize,\n"
26399 "                   const char *device,\n"
26400 "                   const char *journal);\n"
26401 "\n"
26402 msgstr ""
26403
26404 #. type: textblock
26405 #: ../src/guestfs-actions.pod:4636
26406 msgid "See also C<guestfs_mke2journal>."
26407 msgstr ""
26408
26409 #. type: textblock
26410 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692 ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
26411 msgid "(Added in 1.0.68)"
26412 msgstr ""
26413
26414 #. type: =head2
26415 #: ../src/guestfs-actions.pod:4642
26416 msgid "guestfs_mke2fs_JL"
26417 msgstr ""
26418
26419 #. type: verbatim
26420 #: ../src/guestfs-actions.pod:4644
26421 #, no-wrap
26422 msgid ""
26423 " int\n"
26424 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26425 "                    const char *fstype,\n"
26426 "                    int blocksize,\n"
26427 "                    const char *device,\n"
26428 "                    const char *label);\n"
26429 "\n"
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:4654
26434 msgid "See also C<guestfs_mke2journal_L>."
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:4660
26439 msgid "guestfs_mke2fs_JU"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:4662
26444 #, no-wrap
26445 msgid ""
26446 " int\n"
26447 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26448 "                    const char *fstype,\n"
26449 "                    int blocksize,\n"
26450 "                    const char *device,\n"
26451 "                    const char *uuid);\n"
26452 "\n"
26453 msgstr ""
26454
26455 #. type: textblock
26456 #: ../src/guestfs-actions.pod:4672
26457 msgid "See also C<guestfs_mke2journal_U>."
26458 msgstr ""
26459
26460 #. type: =head2
26461 #: ../src/guestfs-actions.pod:4678
26462 msgid "guestfs_mke2journal"
26463 msgstr ""
26464
26465 #. type: verbatim
26466 #: ../src/guestfs-actions.pod:4680
26467 #, no-wrap
26468 msgid ""
26469 " int\n"
26470 " guestfs_mke2journal (guestfs_h *g,\n"
26471 "                      int blocksize,\n"
26472 "                      const char *device);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../src/guestfs-actions.pod:4694
26478 msgid "guestfs_mke2journal_L"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../src/guestfs-actions.pod:4696
26483 #, no-wrap
26484 msgid ""
26485 " int\n"
26486 " guestfs_mke2journal_L (guestfs_h *g,\n"
26487 "                        int blocksize,\n"
26488 "                        const char *label,\n"
26489 "                        const char *device);\n"
26490 "\n"
26491 msgstr ""
26492
26493 #. type: =head2
26494 #: ../src/guestfs-actions.pod:4708
26495 msgid "guestfs_mke2journal_U"
26496 msgstr ""
26497
26498 #. type: verbatim
26499 #: ../src/guestfs-actions.pod:4710
26500 #, no-wrap
26501 msgid ""
26502 " int\n"
26503 " guestfs_mke2journal_U (guestfs_h *g,\n"
26504 "                        int blocksize,\n"
26505 "                        const char *uuid,\n"
26506 "                        const char *device);\n"
26507 "\n"
26508 msgstr ""
26509
26510 #. type: =head2
26511 #: ../src/guestfs-actions.pod:4722
26512 msgid "guestfs_mkfifo"
26513 msgstr ""
26514
26515 #. type: verbatim
26516 #: ../src/guestfs-actions.pod:4724
26517 #, no-wrap
26518 msgid ""
26519 " int\n"
26520 " guestfs_mkfifo (guestfs_h *g,\n"
26521 "                 int mode,\n"
26522 "                 const char *path);\n"
26523 "\n"
26524 msgstr ""
26525
26526 #. type: textblock
26527 #: ../src/guestfs-actions.pod:4729
26528 msgid ""
26529 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26530 "is just a convenient wrapper around C<guestfs_mknod>."
26531 msgstr ""
26532
26533 #. type: =head2
26534 #: ../src/guestfs-actions.pod:4739
26535 msgid "guestfs_mkfs"
26536 msgstr ""
26537
26538 #. type: verbatim
26539 #: ../src/guestfs-actions.pod:4741
26540 #, no-wrap
26541 msgid ""
26542 " int\n"
26543 " guestfs_mkfs (guestfs_h *g,\n"
26544 "               const char *fstype,\n"
26545 "               const char *device);\n"
26546 "\n"
26547 msgstr ""
26548
26549 #. type: =head2
26550 #: ../src/guestfs-actions.pod:4754
26551 msgid "guestfs_mkfs_b"
26552 msgstr ""
26553
26554 #. type: verbatim
26555 #: ../src/guestfs-actions.pod:4756
26556 #, no-wrap
26557 msgid ""
26558 " int\n"
26559 " guestfs_mkfs_b (guestfs_h *g,\n"
26560 "                 const char *fstype,\n"
26561 "                 int blocksize,\n"
26562 "                 const char *device);\n"
26563 "\n"
26564 msgstr ""
26565
26566 #. type: textblock
26567 #: ../src/guestfs-actions.pod:4762
26568 msgid ""
26569 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
26570 "call instead."
26571 msgstr ""
26572
26573 #. type: textblock
26574 #: ../src/guestfs-actions.pod:4769
26575 msgid ""
26576 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26577 "block size of the resulting filesystem.  Supported block sizes depend on the "
26578 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:4781
26583 msgid "guestfs_mkfs_opts"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:4783
26588 #, no-wrap
26589 msgid ""
26590 " int\n"
26591 " guestfs_mkfs_opts (guestfs_h *g,\n"
26592 "                    const char *fstype,\n"
26593 "                    const char *device,\n"
26594 "                    ...);\n"
26595 "\n"
26596 msgstr ""
26597
26598 #. type: verbatim
26599 #: ../src/guestfs-actions.pod:4794
26600 #, no-wrap
26601 msgid ""
26602 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26603 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26604 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26605 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26606 "\n"
26607 msgstr ""
26608
26609 #. type: textblock
26610 #: ../src/guestfs-actions.pod:4842
26611 msgid "(Added in 1.7.19)"
26612 msgstr ""
26613
26614 #. type: =head2
26615 #: ../src/guestfs-actions.pod:4844
26616 msgid "guestfs_mkfs_opts_va"
26617 msgstr ""
26618
26619 #. type: verbatim
26620 #: ../src/guestfs-actions.pod:4846
26621 #, no-wrap
26622 msgid ""
26623 " int\n"
26624 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26625 "                       const char *fstype,\n"
26626 "                       const char *device,\n"
26627 "                       va_list args);\n"
26628 "\n"
26629 msgstr ""
26630
26631 #. type: textblock
26632 #: ../src/guestfs-actions.pod:4852
26633 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26634 msgstr ""
26635
26636 #. type: =head2
26637 #: ../src/guestfs-actions.pod:4856
26638 msgid "guestfs_mkfs_opts_argv"
26639 msgstr ""
26640
26641 #. type: verbatim
26642 #: ../src/guestfs-actions.pod:4858
26643 #, no-wrap
26644 msgid ""
26645 " int\n"
26646 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26647 "                         const char *fstype,\n"
26648 "                         const char *device,\n"
26649 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26650 "\n"
26651 msgstr ""
26652
26653 #. type: textblock
26654 #: ../src/guestfs-actions.pod:4864
26655 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26656 msgstr ""
26657
26658 #. type: =head2
26659 #: ../src/guestfs-actions.pod:4868
26660 msgid "guestfs_mkmountpoint"
26661 msgstr ""
26662
26663 #. type: verbatim
26664 #: ../src/guestfs-actions.pod:4870
26665 #, no-wrap
26666 msgid ""
26667 " int\n"
26668 " guestfs_mkmountpoint (guestfs_h *g,\n"
26669 "                       const char *exemptpath);\n"
26670 "\n"
26671 msgstr ""
26672
26673 #. type: textblock
26674 #: ../src/guestfs-actions.pod:4874
26675 msgid ""
26676 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26677 "that can be used to create extra mountpoints before mounting the first "
26678 "filesystem."
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:4898
26683 msgid ""
26684 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26685 "may get unexpected errors if you try to mix these calls.  It is safest to "
26686 "manually unmount filesystems and remove mountpoints after use."
26687 msgstr ""
26688
26689 #. type: textblock
26690 #: ../src/guestfs-actions.pod:4902
26691 msgid ""
26692 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26693 "first, so for this to work for manual mountpoints, you must ensure that the "
26694 "innermost mountpoints have the longest pathnames, as in the example code "
26695 "above."
26696 msgstr ""
26697
26698 #. type: textblock
26699 #: ../src/guestfs-actions.pod:4909
26700 msgid ""
26701 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26702 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26703 "can also trigger these issues."
26704 msgstr ""
26705
26706 #. type: textblock
26707 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5221 ../src/guestfs-actions.pod:6231
26708 msgid "(Added in 1.0.62)"
26709 msgstr ""
26710
26711 #. type: =head2
26712 #: ../src/guestfs-actions.pod:4917
26713 msgid "guestfs_mknod"
26714 msgstr ""
26715
26716 #. type: verbatim
26717 #: ../src/guestfs-actions.pod:4919
26718 #, no-wrap
26719 msgid ""
26720 " int\n"
26721 " guestfs_mknod (guestfs_h *g,\n"
26722 "                int mode,\n"
26723 "                int devmajor,\n"
26724 "                int devminor,\n"
26725 "                const char *path);\n"
26726 "\n"
26727 msgstr ""
26728
26729 #. type: textblock
26730 #: ../src/guestfs-actions.pod:4934
26731 msgid ""
26732 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26733 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26734 "regular file).  These constants are available in the standard Linux header "
26735 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26736 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26737 "the appropriate constant for you."
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../src/guestfs-actions.pod:4948
26742 msgid "guestfs_mknod_b"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../src/guestfs-actions.pod:4950
26747 #, no-wrap
26748 msgid ""
26749 " int\n"
26750 " guestfs_mknod_b (guestfs_h *g,\n"
26751 "                  int mode,\n"
26752 "                  int devmajor,\n"
26753 "                  int devminor,\n"
26754 "                  const char *path);\n"
26755 "\n"
26756 msgstr ""
26757
26758 #. type: textblock
26759 #: ../src/guestfs-actions.pod:4957
26760 msgid ""
26761 "This call creates a block device node called C<path> with mode C<mode> and "
26762 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26763 "wrapper around C<guestfs_mknod>."
26764 msgstr ""
26765
26766 #. type: =head2
26767 #: ../src/guestfs-actions.pod:4967
26768 msgid "guestfs_mknod_c"
26769 msgstr ""
26770
26771 #. type: verbatim
26772 #: ../src/guestfs-actions.pod:4969
26773 #, no-wrap
26774 msgid ""
26775 " int\n"
26776 " guestfs_mknod_c (guestfs_h *g,\n"
26777 "                  int mode,\n"
26778 "                  int devmajor,\n"
26779 "                  int devminor,\n"
26780 "                  const char *path);\n"
26781 "\n"
26782 msgstr ""
26783
26784 #. type: textblock
26785 #: ../src/guestfs-actions.pod:4976
26786 msgid ""
26787 "This call creates a char device node called C<path> with mode C<mode> and "
26788 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26789 "wrapper around C<guestfs_mknod>."
26790 msgstr ""
26791
26792 #. type: =head2
26793 #: ../src/guestfs-actions.pod:4986
26794 msgid "guestfs_mkswap"
26795 msgstr ""
26796
26797 #. type: verbatim
26798 #: ../src/guestfs-actions.pod:4988
26799 #, no-wrap
26800 msgid ""
26801 " int\n"
26802 " guestfs_mkswap (guestfs_h *g,\n"
26803 "                 const char *device);\n"
26804 "\n"
26805 msgstr ""
26806
26807 #. type: =head2
26808 #: ../src/guestfs-actions.pod:4998
26809 msgid "guestfs_mkswap_L"
26810 msgstr ""
26811
26812 #. type: verbatim
26813 #: ../src/guestfs-actions.pod:5000
26814 #, no-wrap
26815 msgid ""
26816 " int\n"
26817 " guestfs_mkswap_L (guestfs_h *g,\n"
26818 "                   const char *label,\n"
26819 "                   const char *device);\n"
26820 "\n"
26821 msgstr ""
26822
26823 #. type: =head2
26824 #: ../src/guestfs-actions.pod:5015
26825 msgid "guestfs_mkswap_U"
26826 msgstr ""
26827
26828 #. type: verbatim
26829 #: ../src/guestfs-actions.pod:5017
26830 #, no-wrap
26831 msgid ""
26832 " int\n"
26833 " guestfs_mkswap_U (guestfs_h *g,\n"
26834 "                   const char *uuid,\n"
26835 "                   const char *device);\n"
26836 "\n"
26837 msgstr ""
26838
26839 #. type: =head2
26840 #: ../src/guestfs-actions.pod:5028
26841 msgid "guestfs_mkswap_file"
26842 msgstr ""
26843
26844 #. type: verbatim
26845 #: ../src/guestfs-actions.pod:5030
26846 #, no-wrap
26847 msgid ""
26848 " int\n"
26849 " guestfs_mkswap_file (guestfs_h *g,\n"
26850 "                      const char *path);\n"
26851 "\n"
26852 msgstr ""
26853
26854 #. type: textblock
26855 #: ../src/guestfs-actions.pod:5036
26856 msgid ""
26857 "This command just writes a swap file signature to an existing file.  To "
26858 "create the file itself, use something like C<guestfs_fallocate>."
26859 msgstr ""
26860
26861 #. type: =head2
26862 #: ../src/guestfs-actions.pod:5043
26863 msgid "guestfs_modprobe"
26864 msgstr ""
26865
26866 #. type: verbatim
26867 #: ../src/guestfs-actions.pod:5045
26868 #, no-wrap
26869 msgid ""
26870 " int\n"
26871 " guestfs_modprobe (guestfs_h *g,\n"
26872 "                   const char *modulename);\n"
26873 "\n"
26874 msgstr ""
26875
26876 #. type: =head2
26877 #: ../src/guestfs-actions.pod:5058
26878 msgid "guestfs_mount"
26879 msgstr ""
26880
26881 #. type: verbatim
26882 #: ../src/guestfs-actions.pod:5060
26883 #, no-wrap
26884 msgid ""
26885 " int\n"
26886 " guestfs_mount (guestfs_h *g,\n"
26887 "                const char *device,\n"
26888 "                const char *mountpoint);\n"
26889 "\n"
26890 msgstr ""
26891
26892 #. type: textblock
26893 #: ../src/guestfs-actions.pod:5079
26894 msgid ""
26895 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
26896 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
26897 "problems for users.  If your program might need to work with older versions "
26898 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
26899 "for the first parameter if you don't want any options)."
26900 msgstr ""
26901
26902 #. type: =head2
26903 #: ../src/guestfs-actions.pod:5090
26904 msgid "guestfs_mount_9p"
26905 msgstr ""
26906
26907 #. type: verbatim
26908 #: ../src/guestfs-actions.pod:5092
26909 #, no-wrap
26910 msgid ""
26911 " int\n"
26912 " guestfs_mount_9p (guestfs_h *g,\n"
26913 "                   const char *mounttag,\n"
26914 "                   const char *mountpoint,\n"
26915 "                   ...);\n"
26916 "\n"
26917 msgstr ""
26918
26919 #. type: verbatim
26920 #: ../src/guestfs-actions.pod:5103
26921 #, no-wrap
26922 msgid ""
26923 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: =head2
26928 #: ../src/guestfs-actions.pod:5116
26929 msgid "guestfs_mount_9p_va"
26930 msgstr ""
26931
26932 #. type: verbatim
26933 #: ../src/guestfs-actions.pod:5118
26934 #, no-wrap
26935 msgid ""
26936 " int\n"
26937 " guestfs_mount_9p_va (guestfs_h *g,\n"
26938 "                      const char *mounttag,\n"
26939 "                      const char *mountpoint,\n"
26940 "                      va_list args);\n"
26941 "\n"
26942 msgstr ""
26943
26944 #. type: textblock
26945 #: ../src/guestfs-actions.pod:5124
26946 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26947 msgstr ""
26948
26949 #. type: =head2
26950 #: ../src/guestfs-actions.pod:5128
26951 msgid "guestfs_mount_9p_argv"
26952 msgstr ""
26953
26954 #. type: verbatim
26955 #: ../src/guestfs-actions.pod:5130
26956 #, no-wrap
26957 msgid ""
26958 " int\n"
26959 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26960 "                        const char *mounttag,\n"
26961 "                        const char *mountpoint,\n"
26962 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26963 "\n"
26964 msgstr ""
26965
26966 #. type: textblock
26967 #: ../src/guestfs-actions.pod:5136
26968 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26969 msgstr ""
26970
26971 #. type: =head2
26972 #: ../src/guestfs-actions.pod:5140
26973 msgid "guestfs_mount_loop"
26974 msgstr ""
26975
26976 #. type: verbatim
26977 #: ../src/guestfs-actions.pod:5142
26978 #, no-wrap
26979 msgid ""
26980 " int\n"
26981 " guestfs_mount_loop (guestfs_h *g,\n"
26982 "                     const char *file,\n"
26983 "                     const char *mountpoint);\n"
26984 "\n"
26985 msgstr ""
26986
26987 #. type: =head2
26988 #: ../src/guestfs-actions.pod:5155
26989 msgid "guestfs_mount_options"
26990 msgstr ""
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:5157
26994 #, no-wrap
26995 msgid ""
26996 " int\n"
26997 " guestfs_mount_options (guestfs_h *g,\n"
26998 "                        const char *options,\n"
26999 "                        const char *device,\n"
27000 "                        const char *mountpoint);\n"
27001 "\n"
27002 msgstr ""
27003
27004 #. type: textblock
27005 #: ../src/guestfs-actions.pod:5163
27006 msgid ""
27007 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27008 "the mount options as for the L<mount(8)> I<-o> flag."
27009 msgstr ""
27010
27011 #. type: textblock
27012 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187 ../src/guestfs-actions.pod:5204
27013 msgid "(Added in 1.0.10)"
27014 msgstr ""
27015
27016 #. type: =head2
27017 #: ../src/guestfs-actions.pod:5175
27018 msgid "guestfs_mount_ro"
27019 msgstr ""
27020
27021 #. type: verbatim
27022 #: ../src/guestfs-actions.pod:5177
27023 #, no-wrap
27024 msgid ""
27025 " int\n"
27026 " guestfs_mount_ro (guestfs_h *g,\n"
27027 "                   const char *device,\n"
27028 "                   const char *mountpoint);\n"
27029 "\n"
27030 msgstr ""
27031
27032 #. type: textblock
27033 #: ../src/guestfs-actions.pod:5182
27034 msgid ""
27035 "This is the same as the C<guestfs_mount> command, but it mounts the "
27036 "filesystem with the read-only (I<-o ro>) flag."
27037 msgstr ""
27038
27039 #. type: =head2
27040 #: ../src/guestfs-actions.pod:5189
27041 msgid "guestfs_mount_vfs"
27042 msgstr ""
27043
27044 #. type: verbatim
27045 #: ../src/guestfs-actions.pod:5191
27046 #, no-wrap
27047 msgid ""
27048 " int\n"
27049 " guestfs_mount_vfs (guestfs_h *g,\n"
27050 "                    const char *options,\n"
27051 "                    const char *vfstype,\n"
27052 "                    const char *device,\n"
27053 "                    const char *mountpoint);\n"
27054 "\n"
27055 msgstr ""
27056
27057 #. type: textblock
27058 #: ../src/guestfs-actions.pod:5198
27059 msgid ""
27060 "This is the same as the C<guestfs_mount> command, but it allows you to set "
27061 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
27062 "I<-t> flags."
27063 msgstr ""
27064
27065 #. type: =head2
27066 #: ../src/guestfs-actions.pod:5206
27067 msgid "guestfs_mountpoints"
27068 msgstr ""
27069
27070 #. type: verbatim
27071 #: ../src/guestfs-actions.pod:5208
27072 #, no-wrap
27073 msgid ""
27074 " char **\n"
27075 " guestfs_mountpoints (guestfs_h *g);\n"
27076 "\n"
27077 msgstr ""
27078
27079 #. type: textblock
27080 #: ../src/guestfs-actions.pod:5211
27081 msgid ""
27082 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
27083 "devices.  This one returns a hash table (map) of device name to directory "
27084 "where the device is mounted."
27085 msgstr ""
27086
27087 #. type: =head2
27088 #: ../src/guestfs-actions.pod:5223
27089 msgid "guestfs_mounts"
27090 msgstr ""
27091
27092 #. type: verbatim
27093 #: ../src/guestfs-actions.pod:5225
27094 #, no-wrap
27095 msgid ""
27096 " char **\n"
27097 " guestfs_mounts (guestfs_h *g);\n"
27098 "\n"
27099 msgstr ""
27100
27101 #. type: textblock
27102 #: ../src/guestfs-actions.pod:5233
27103 msgid "See also: C<guestfs_mountpoints>"
27104 msgstr ""
27105
27106 #. type: =head2
27107 #: ../src/guestfs-actions.pod:5241
27108 msgid "guestfs_mv"
27109 msgstr ""
27110
27111 #. type: verbatim
27112 #: ../src/guestfs-actions.pod:5243
27113 #, no-wrap
27114 msgid ""
27115 " int\n"
27116 " guestfs_mv (guestfs_h *g,\n"
27117 "             const char *src,\n"
27118 "             const char *dest);\n"
27119 "\n"
27120 msgstr ""
27121
27122 #. type: =head2
27123 #: ../src/guestfs-actions.pod:5255
27124 msgid "guestfs_ntfs_3g_probe"
27125 msgstr ""
27126
27127 #. type: verbatim
27128 #: ../src/guestfs-actions.pod:5257
27129 #, no-wrap
27130 msgid ""
27131 " int\n"
27132 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
27133 "                        int rw,\n"
27134 "                        const char *device);\n"
27135 "\n"
27136 msgstr ""
27137
27138 #. type: textblock
27139 #: ../src/guestfs-actions.pod:5276
27140 msgid "(Added in 1.0.43)"
27141 msgstr ""
27142
27143 #. type: =head2
27144 #: ../src/guestfs-actions.pod:5278
27145 msgid "guestfs_ntfsresize"
27146 msgstr ""
27147
27148 #. type: verbatim
27149 #: ../src/guestfs-actions.pod:5280
27150 #, no-wrap
27151 msgid ""
27152 " int\n"
27153 " guestfs_ntfsresize (guestfs_h *g,\n"
27154 "                     const char *device);\n"
27155 "\n"
27156 msgstr ""
27157
27158 #. type: textblock
27159 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5384
27160 msgid ""
27161 "I<This function is deprecated.> In new code, use the "
27162 "L</guestfs_ntfsresize_opts> call instead."
27163 msgstr ""
27164
27165 #. type: =head2
27166 #: ../src/guestfs-actions.pod:5308
27167 msgid "guestfs_ntfsresize_opts"
27168 msgstr ""
27169
27170 #. type: verbatim
27171 #: ../src/guestfs-actions.pod:5310
27172 #, no-wrap
27173 msgid ""
27174 " int\n"
27175 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
27176 "                          const char *device,\n"
27177 "                          ...);\n"
27178 "\n"
27179 msgstr ""
27180
27181 #. type: verbatim
27182 #: ../src/guestfs-actions.pod:5320
27183 #, no-wrap
27184 msgid ""
27185 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
27186 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
27187 "\n"
27188 msgstr ""
27189
27190 #. type: textblock
27191 #: ../src/guestfs-actions.pod:5340
27192 msgid ""
27193 "After the resize operation, the filesystem is always marked as requiring a "
27194 "consistency check (for safety).  You have to boot into Windows to perform "
27195 "this check and clear this condition.  If you I<don't> set the C<force> "
27196 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
27197 "times on a single filesystem without booting into Windows between each "
27198 "resize."
27199 msgstr ""
27200
27201 #. type: =head2
27202 #: ../src/guestfs-actions.pod:5355
27203 msgid "guestfs_ntfsresize_opts_va"
27204 msgstr ""
27205
27206 #. type: verbatim
27207 #: ../src/guestfs-actions.pod:5357
27208 #, no-wrap
27209 msgid ""
27210 " int\n"
27211 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
27212 "                             const char *device,\n"
27213 "                             va_list args);\n"
27214 "\n"
27215 msgstr ""
27216
27217 #. type: textblock
27218 #: ../src/guestfs-actions.pod:5362
27219 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
27220 msgstr ""
27221
27222 #. type: =head2
27223 #: ../src/guestfs-actions.pod:5366
27224 msgid "guestfs_ntfsresize_opts_argv"
27225 msgstr ""
27226
27227 #. type: verbatim
27228 #: ../src/guestfs-actions.pod:5368
27229 #, no-wrap
27230 msgid ""
27231 " int\n"
27232 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
27233 "                               const char *device,\n"
27234 "                               const struct guestfs_ntfsresize_opts_argv "
27235 "*optargs);\n"
27236 "\n"
27237 msgstr ""
27238
27239 #. type: textblock
27240 #: ../src/guestfs-actions.pod:5373
27241 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
27242 msgstr ""
27243
27244 #. type: =head2
27245 #: ../src/guestfs-actions.pod:5377
27246 msgid "guestfs_ntfsresize_size"
27247 msgstr ""
27248
27249 #. type: verbatim
27250 #: ../src/guestfs-actions.pod:5379
27251 #, no-wrap
27252 msgid ""
27253 " int\n"
27254 " guestfs_ntfsresize_size (guestfs_h *g,\n"
27255 "                          const char *device,\n"
27256 "                          int64_t size);\n"
27257 "\n"
27258 msgstr ""
27259
27260 #. type: textblock
27261 #: ../src/guestfs-actions.pod:5391
27262 msgid ""
27263 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
27264 "to specify the new size (in bytes) explicitly."
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5838 ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:6179 ../src/guestfs-actions.pod:7816
27269 msgid "(Added in 1.3.14)"
27270 msgstr ""
27271
27272 #. type: =head2
27273 #: ../src/guestfs-actions.pod:5398
27274 msgid "guestfs_part_add"
27275 msgstr ""
27276
27277 #. type: verbatim
27278 #: ../src/guestfs-actions.pod:5400
27279 #, no-wrap
27280 msgid ""
27281 " int\n"
27282 " guestfs_part_add (guestfs_h *g,\n"
27283 "                   const char *device,\n"
27284 "                   const char *prlogex,\n"
27285 "                   int64_t startsect,\n"
27286 "                   int64_t endsect);\n"
27287 "\n"
27288 msgstr ""
27289
27290 #. type: textblock
27291 #: ../src/guestfs-actions.pod:5407
27292 msgid ""
27293 "This command adds a partition to C<device>.  If there is no partition table "
27294 "on the device, call C<guestfs_part_init> first."
27295 msgstr ""
27296
27297 #. type: textblock
27298 #: ../src/guestfs-actions.pod:5419
27299 msgid ""
27300 "Creating a partition which covers the whole disk is not so easy.  Use "
27301 "C<guestfs_part_disk> to do that."
27302 msgstr ""
27303
27304 #. type: textblock
27305 #: ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5599 ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5696
27306 msgid "(Added in 1.0.78)"
27307 msgstr ""
27308
27309 #. type: =head2
27310 #: ../src/guestfs-actions.pod:5426
27311 msgid "guestfs_part_del"
27312 msgstr ""
27313
27314 #. type: verbatim
27315 #: ../src/guestfs-actions.pod:5428
27316 #, no-wrap
27317 msgid ""
27318 " int\n"
27319 " guestfs_part_del (guestfs_h *g,\n"
27320 "                   const char *device,\n"
27321 "                   int partnum);\n"
27322 "\n"
27323 msgstr ""
27324
27325 #. type: =head2
27326 #: ../src/guestfs-actions.pod:5443
27327 msgid "guestfs_part_disk"
27328 msgstr ""
27329
27330 #. type: verbatim
27331 #: ../src/guestfs-actions.pod:5445
27332 #, no-wrap
27333 msgid ""
27334 " int\n"
27335 " guestfs_part_disk (guestfs_h *g,\n"
27336 "                    const char *device,\n"
27337 "                    const char *parttype);\n"
27338 "\n"
27339 msgstr ""
27340
27341 #. type: textblock
27342 #: ../src/guestfs-actions.pod:5450
27343 msgid ""
27344 "This command is simply a combination of C<guestfs_part_init> followed by "
27345 "C<guestfs_part_add> to create a single primary partition covering the whole "
27346 "disk."
27347 msgstr ""
27348
27349 #. type: textblock
27350 #: ../src/guestfs-actions.pod:5454
27351 msgid ""
27352 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27353 "possible values are described in C<guestfs_part_init>."
27354 msgstr ""
27355
27356 #. type: =head2
27357 #: ../src/guestfs-actions.pod:5464
27358 msgid "guestfs_part_get_bootable"
27359 msgstr ""
27360
27361 #. type: verbatim
27362 #: ../src/guestfs-actions.pod:5466
27363 #, no-wrap
27364 msgid ""
27365 " int\n"
27366 " guestfs_part_get_bootable (guestfs_h *g,\n"
27367 "                            const char *device,\n"
27368 "                            int partnum);\n"
27369 "\n"
27370 msgstr ""
27371
27372 #. type: textblock
27373 #: ../src/guestfs-actions.pod:5474
27374 msgid "See also C<guestfs_part_set_bootable>."
27375 msgstr ""
27376
27377 #. type: =head2
27378 #: ../src/guestfs-actions.pod:5480
27379 msgid "guestfs_part_get_mbr_id"
27380 msgstr ""
27381
27382 #. type: verbatim
27383 #: ../src/guestfs-actions.pod:5482
27384 #, no-wrap
27385 msgid ""
27386 " int\n"
27387 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27388 "                          const char *device,\n"
27389 "                          int partnum);\n"
27390 "\n"
27391 msgstr ""
27392
27393 #. type: textblock
27394 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5672
27395 msgid ""
27396 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27397 "undefined results for other partition table types (see "
27398 "C<guestfs_part_get_parttype>)."
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:5498
27403 msgid "guestfs_part_get_parttype"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:5500
27408 #, no-wrap
27409 msgid ""
27410 " char *\n"
27411 " guestfs_part_get_parttype (guestfs_h *g,\n"
27412 "                            const char *device);\n"
27413 "\n"
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:5507
27418 msgid ""
27419 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27420 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27421 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27422 msgstr ""
27423
27424 #. type: =head2
27425 #: ../src/guestfs-actions.pod:5517
27426 msgid "guestfs_part_init"
27427 msgstr ""
27428
27429 #. type: verbatim
27430 #: ../src/guestfs-actions.pod:5519
27431 #, no-wrap
27432 msgid ""
27433 " int\n"
27434 " guestfs_part_init (guestfs_h *g,\n"
27435 "                    const char *device,\n"
27436 "                    const char *parttype);\n"
27437 "\n"
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:5528
27442 msgid ""
27443 "Initially there are no partitions.  Following this, you should call "
27444 "C<guestfs_part_add> for each partition required."
27445 msgstr ""
27446
27447 #. type: =head2
27448 #: ../src/guestfs-actions.pod:5601
27449 msgid "guestfs_part_list"
27450 msgstr ""
27451
27452 #. type: verbatim
27453 #: ../src/guestfs-actions.pod:5603
27454 #, no-wrap
27455 msgid ""
27456 " struct guestfs_partition_list *\n"
27457 " guestfs_part_list (guestfs_h *g,\n"
27458 "                    const char *device);\n"
27459 "\n"
27460 msgstr ""
27461
27462 #. type: textblock
27463 #: ../src/guestfs-actions.pod:5620
27464 msgid ""
27465 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27466 "the device's sector size, see C<guestfs_blockdev_getss>."
27467 msgstr ""
27468
27469 #. type: textblock
27470 #: ../src/guestfs-actions.pod:5633
27471 msgid ""
27472 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27473 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27474 "use>."
27475 msgstr ""
27476
27477 #. type: =head2
27478 #: ../src/guestfs-actions.pod:5639
27479 msgid "guestfs_part_set_bootable"
27480 msgstr ""
27481
27482 #. type: verbatim
27483 #: ../src/guestfs-actions.pod:5641
27484 #, no-wrap
27485 msgid ""
27486 " int\n"
27487 " guestfs_part_set_bootable (guestfs_h *g,\n"
27488 "                            const char *device,\n"
27489 "                            int partnum,\n"
27490 "                            int bootable);\n"
27491 "\n"
27492 msgstr ""
27493
27494 #. type: =head2
27495 #: ../src/guestfs-actions.pod:5658
27496 msgid "guestfs_part_set_mbr_id"
27497 msgstr ""
27498
27499 #. type: verbatim
27500 #: ../src/guestfs-actions.pod:5660
27501 #, no-wrap
27502 msgid ""
27503 " int\n"
27504 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27505 "                          const char *device,\n"
27506 "                          int partnum,\n"
27507 "                          int idbyte);\n"
27508 "\n"
27509 msgstr ""
27510
27511 #. type: =head2
27512 #: ../src/guestfs-actions.pod:5680
27513 msgid "guestfs_part_set_name"
27514 msgstr ""
27515
27516 #. type: verbatim
27517 #: ../src/guestfs-actions.pod:5682
27518 #, no-wrap
27519 msgid ""
27520 " int\n"
27521 " guestfs_part_set_name (guestfs_h *g,\n"
27522 "                        const char *device,\n"
27523 "                        int partnum,\n"
27524 "                        const char *name);\n"
27525 "\n"
27526 msgstr ""
27527
27528 #. type: =head2
27529 #: ../src/guestfs-actions.pod:5698
27530 msgid "guestfs_part_to_dev"
27531 msgstr ""
27532
27533 #. type: verbatim
27534 #: ../src/guestfs-actions.pod:5700
27535 #, no-wrap
27536 msgid ""
27537 " char *\n"
27538 " guestfs_part_to_dev (guestfs_h *g,\n"
27539 "                      const char *partition);\n"
27540 "\n"
27541 msgstr ""
27542
27543 #. type: textblock
27544 #: ../src/guestfs-actions.pod:5708
27545 msgid ""
27546 "The named partition must exist, for example as a string returned from "
27547 "C<guestfs_list_partitions>."
27548 msgstr ""
27549
27550 #. type: =head2
27551 #: ../src/guestfs-actions.pod:5716
27552 msgid "guestfs_ping_daemon"
27553 msgstr ""
27554
27555 #. type: verbatim
27556 #: ../src/guestfs-actions.pod:5718
27557 #, no-wrap
27558 msgid ""
27559 " int\n"
27560 " guestfs_ping_daemon (guestfs_h *g);\n"
27561 "\n"
27562 msgstr ""
27563
27564 #. type: =head2
27565 #: ../src/guestfs-actions.pod:5730
27566 msgid "guestfs_pread"
27567 msgstr ""
27568
27569 #. type: verbatim
27570 #: ../src/guestfs-actions.pod:5732
27571 #, no-wrap
27572 msgid ""
27573 " char *\n"
27574 " guestfs_pread (guestfs_h *g,\n"
27575 "                const char *path,\n"
27576 "                int count,\n"
27577 "                int64_t offset,\n"
27578 "                size_t *size_r);\n"
27579 "\n"
27580 msgstr ""
27581
27582 #. type: textblock
27583 #: ../src/guestfs-actions.pod:5745
27584 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../src/guestfs-actions.pod:5756
27589 msgid "guestfs_pread_device"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../src/guestfs-actions.pod:5758
27594 #, no-wrap
27595 msgid ""
27596 " char *\n"
27597 " guestfs_pread_device (guestfs_h *g,\n"
27598 "                       const char *device,\n"
27599 "                       int count,\n"
27600 "                       int64_t offset,\n"
27601 "                       size_t *size_r);\n"
27602 "\n"
27603 msgstr ""
27604
27605 #. type: textblock
27606 #: ../src/guestfs-actions.pod:5771
27607 msgid "See also C<guestfs_pread>."
27608 msgstr ""
27609
27610 #. type: textblock
27611 #: ../src/guestfs-actions.pod:5780
27612 msgid "(Added in 1.5.21)"
27613 msgstr ""
27614
27615 #. type: =head2
27616 #: ../src/guestfs-actions.pod:5782
27617 msgid "guestfs_pvcreate"
27618 msgstr ""
27619
27620 #. type: verbatim
27621 #: ../src/guestfs-actions.pod:5784
27622 #, no-wrap
27623 msgid ""
27624 " int\n"
27625 " guestfs_pvcreate (guestfs_h *g,\n"
27626 "                   const char *device);\n"
27627 "\n"
27628 msgstr ""
27629
27630 #. type: =head2
27631 #: ../src/guestfs-actions.pod:5796
27632 msgid "guestfs_pvremove"
27633 msgstr ""
27634
27635 #. type: verbatim
27636 #: ../src/guestfs-actions.pod:5798
27637 #, no-wrap
27638 msgid ""
27639 " int\n"
27640 " guestfs_pvremove (guestfs_h *g,\n"
27641 "                   const char *device);\n"
27642 "\n"
27643 msgstr ""
27644
27645 #. type: =head2
27646 #: ../src/guestfs-actions.pod:5813
27647 msgid "guestfs_pvresize"
27648 msgstr ""
27649
27650 #. type: verbatim
27651 #: ../src/guestfs-actions.pod:5815
27652 #, no-wrap
27653 msgid ""
27654 " int\n"
27655 " guestfs_pvresize (guestfs_h *g,\n"
27656 "                   const char *device);\n"
27657 "\n"
27658 msgstr ""
27659
27660 #. type: =head2
27661 #: ../src/guestfs-actions.pod:5826
27662 msgid "guestfs_pvresize_size"
27663 msgstr ""
27664
27665 #. type: verbatim
27666 #: ../src/guestfs-actions.pod:5828
27667 #, no-wrap
27668 msgid ""
27669 " int\n"
27670 " guestfs_pvresize_size (guestfs_h *g,\n"
27671 "                        const char *device,\n"
27672 "                        int64_t size);\n"
27673 "\n"
27674 msgstr ""
27675
27676 #. type: textblock
27677 #: ../src/guestfs-actions.pod:5833
27678 msgid ""
27679 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27680 "specify the new size (in bytes) explicitly."
27681 msgstr ""
27682
27683 #. type: =head2
27684 #: ../src/guestfs-actions.pod:5840
27685 msgid "guestfs_pvs"
27686 msgstr ""
27687
27688 #. type: verbatim
27689 #: ../src/guestfs-actions.pod:5842
27690 #, no-wrap
27691 msgid ""
27692 " char **\n"
27693 " guestfs_pvs (guestfs_h *g);\n"
27694 "\n"
27695 msgstr ""
27696
27697 #. type: textblock
27698 #: ../src/guestfs-actions.pod:5851
27699 msgid "See also C<guestfs_pvs_full>."
27700 msgstr ""
27701
27702 #. type: =head2
27703 #: ../src/guestfs-actions.pod:5859
27704 msgid "guestfs_pvs_full"
27705 msgstr ""
27706
27707 #. type: verbatim
27708 #: ../src/guestfs-actions.pod:5861
27709 #, no-wrap
27710 msgid ""
27711 " struct guestfs_lvm_pv_list *\n"
27712 " guestfs_pvs_full (guestfs_h *g);\n"
27713 "\n"
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:5867
27718 msgid ""
27719 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27720 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27721 "use>."
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:5873
27726 msgid "guestfs_pvuuid"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:5875
27731 #, no-wrap
27732 msgid ""
27733 " char *\n"
27734 " guestfs_pvuuid (guestfs_h *g,\n"
27735 "                 const char *device);\n"
27736 "\n"
27737 msgstr ""
27738
27739 #. type: =head2
27740 #: ../src/guestfs-actions.pod:5886
27741 msgid "guestfs_pwrite"
27742 msgstr ""
27743
27744 #. type: verbatim
27745 #: ../src/guestfs-actions.pod:5888
27746 #, no-wrap
27747 msgid ""
27748 " int\n"
27749 " guestfs_pwrite (guestfs_h *g,\n"
27750 "                 const char *path,\n"
27751 "                 const char *content,\n"
27752 "                 size_t content_size,\n"
27753 "                 int64_t offset);\n"
27754 "\n"
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:5904
27759 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27760 msgstr ""
27761
27762 #. type: =head2
27763 #: ../src/guestfs-actions.pod:5913
27764 msgid "guestfs_pwrite_device"
27765 msgstr ""
27766
27767 #. type: verbatim
27768 #: ../src/guestfs-actions.pod:5915
27769 #, no-wrap
27770 msgid ""
27771 " int\n"
27772 " guestfs_pwrite_device (guestfs_h *g,\n"
27773 "                        const char *device,\n"
27774 "                        const char *content,\n"
27775 "                        size_t content_size,\n"
27776 "                        int64_t offset);\n"
27777 "\n"
27778 msgstr ""
27779
27780 #. type: textblock
27781 #: ../src/guestfs-actions.pod:5930
27782 msgid "See also C<guestfs_pwrite>."
27783 msgstr ""
27784
27785 #. type: textblock
27786 #: ../src/guestfs-actions.pod:5937
27787 msgid "(Added in 1.5.20)"
27788 msgstr ""
27789
27790 #. type: =head2
27791 #: ../src/guestfs-actions.pod:5939
27792 msgid "guestfs_read_file"
27793 msgstr ""
27794
27795 #. type: verbatim
27796 #: ../src/guestfs-actions.pod:5941
27797 #, no-wrap
27798 msgid ""
27799 " char *\n"
27800 " guestfs_read_file (guestfs_h *g,\n"
27801 "                    const char *path,\n"
27802 "                    size_t *size_r);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: textblock
27807 #: ../src/guestfs-actions.pod:5949
27808 msgid ""
27809 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27810 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27811 "function is limited in the total size of file that can be handled."
27812 msgstr ""
27813
27814 #. type: textblock
27815 #: ../src/guestfs-actions.pod:5961
27816 msgid "(Added in 1.0.63)"
27817 msgstr ""
27818
27819 #. type: =head2
27820 #: ../src/guestfs-actions.pod:5963
27821 msgid "guestfs_read_lines"
27822 msgstr ""
27823
27824 #. type: verbatim
27825 #: ../src/guestfs-actions.pod:5965
27826 #, no-wrap
27827 msgid ""
27828 " char **\n"
27829 " guestfs_read_lines (guestfs_h *g,\n"
27830 "                     const char *path);\n"
27831 "\n"
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:5974
27836 msgid ""
27837 "Note that this function cannot correctly handle binary files (specifically, "
27838 "files containing C<\\0> character which is treated as end of line).  For "
27839 "those you need to use the C<guestfs_read_file> function which has a more "
27840 "complex interface."
27841 msgstr ""
27842
27843 #. type: =head2
27844 #: ../src/guestfs-actions.pod:5985
27845 msgid "guestfs_readdir"
27846 msgstr ""
27847
27848 #. type: verbatim
27849 #: ../src/guestfs-actions.pod:5987
27850 #, no-wrap
27851 msgid ""
27852 " struct guestfs_dirent_list *\n"
27853 " guestfs_readdir (guestfs_h *g,\n"
27854 "                  const char *dir);\n"
27855 "\n"
27856 msgstr ""
27857
27858 #. type: textblock
27859 #: ../src/guestfs-actions.pod:6041
27860 msgid ""
27861 "This function is primarily intended for use by programs.  To get a simple "
27862 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27863 "consumption, use C<guestfs_ll>."
27864 msgstr ""
27865
27866 #. type: textblock
27867 #: ../src/guestfs-actions.pod:6045
27868 msgid ""
27869 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27870 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27871 "use>."
27872 msgstr ""
27873
27874 #. type: =head2
27875 #: ../src/guestfs-actions.pod:6051
27876 msgid "guestfs_readlink"
27877 msgstr ""
27878
27879 #. type: verbatim
27880 #: ../src/guestfs-actions.pod:6053
27881 #, no-wrap
27882 msgid ""
27883 " char *\n"
27884 " guestfs_readlink (guestfs_h *g,\n"
27885 "                   const char *path);\n"
27886 "\n"
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../src/guestfs-actions.pod:6064
27891 msgid "guestfs_readlinklist"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../src/guestfs-actions.pod:6066
27896 #, no-wrap
27897 msgid ""
27898 " char **\n"
27899 " guestfs_readlinklist (guestfs_h *g,\n"
27900 "                       const char *path,\n"
27901 "                       char *const *names);\n"
27902 "\n"
27903 msgstr ""
27904
27905 #. type: =head2
27906 #: ../src/guestfs-actions.pod:6099
27907 msgid "guestfs_realpath"
27908 msgstr ""
27909
27910 #. type: verbatim
27911 #: ../src/guestfs-actions.pod:6101
27912 #, no-wrap
27913 msgid ""
27914 " char *\n"
27915 " guestfs_realpath (guestfs_h *g,\n"
27916 "                   const char *path);\n"
27917 "\n"
27918 msgstr ""
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:6113
27922 msgid "guestfs_removexattr"
27923 msgstr ""
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:6115
27927 #, no-wrap
27928 msgid ""
27929 " int\n"
27930 " guestfs_removexattr (guestfs_h *g,\n"
27931 "                      const char *xattr,\n"
27932 "                      const char *path);\n"
27933 "\n"
27934 msgstr ""
27935
27936 #. type: textblock
27937 #: ../src/guestfs-actions.pod:6123
27938 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27939 msgstr ""
27940
27941 #. type: =head2
27942 #: ../src/guestfs-actions.pod:6129
27943 msgid "guestfs_resize2fs"
27944 msgstr ""
27945
27946 #. type: verbatim
27947 #: ../src/guestfs-actions.pod:6131
27948 #, no-wrap
27949 msgid ""
27950 " int\n"
27951 " guestfs_resize2fs (guestfs_h *g,\n"
27952 "                    const char *device);\n"
27953 "\n"
27954 msgstr ""
27955
27956 #. type: textblock
27957 #: ../src/guestfs-actions.pod:6138
27958 msgid ""
27959 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27960 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27961 "sometimes gives an error about this and sometimes not.  In any case, it is "
27962 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27963 msgstr ""
27964
27965 #. type: =head2
27966 #: ../src/guestfs-actions.pod:6148
27967 msgid "guestfs_resize2fs_M"
27968 msgstr ""
27969
27970 #. type: verbatim
27971 #: ../src/guestfs-actions.pod:6150
27972 #, no-wrap
27973 msgid ""
27974 " int\n"
27975 " guestfs_resize2fs_M (guestfs_h *g,\n"
27976 "                      const char *device);\n"
27977 "\n"
27978 msgstr ""
27979
27980 #. type: textblock
27981 #: ../src/guestfs-actions.pod:6154
27982 msgid ""
27983 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27984 "resized to its minimum size.  This works like the I<-M> option to the "
27985 "C<resize2fs> command."
27986 msgstr ""
27987
27988 #. type: textblock
27989 #: ../src/guestfs-actions.pod:6158
27990 msgid ""
27991 "To get the resulting size of the filesystem you should call "
27992 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27993 "These two numbers, multiplied together, give the resulting size of the "
27994 "minimal filesystem in bytes."
27995 msgstr ""
27996
27997 #. type: =head2
27998 #: ../src/guestfs-actions.pod:6167
27999 msgid "guestfs_resize2fs_size"
28000 msgstr ""
28001
28002 #. type: verbatim
28003 #: ../src/guestfs-actions.pod:6169
28004 #, no-wrap
28005 msgid ""
28006 " int\n"
28007 " guestfs_resize2fs_size (guestfs_h *g,\n"
28008 "                         const char *device,\n"
28009 "                         int64_t size);\n"
28010 "\n"
28011 msgstr ""
28012
28013 #. type: textblock
28014 #: ../src/guestfs-actions.pod:6174
28015 msgid ""
28016 "This command is the same as C<guestfs_resize2fs> except that it allows you "
28017 "to specify the new size (in bytes) explicitly."
28018 msgstr ""
28019
28020 #. type: =head2
28021 #: ../src/guestfs-actions.pod:6181
28022 msgid "guestfs_rm"
28023 msgstr ""
28024
28025 #. type: verbatim
28026 #: ../src/guestfs-actions.pod:6183
28027 #, no-wrap
28028 msgid ""
28029 " int\n"
28030 " guestfs_rm (guestfs_h *g,\n"
28031 "             const char *path);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: =head2
28036 #: ../src/guestfs-actions.pod:6193
28037 msgid "guestfs_rm_rf"
28038 msgstr ""
28039
28040 #. type: verbatim
28041 #: ../src/guestfs-actions.pod:6195
28042 #, no-wrap
28043 msgid ""
28044 " int\n"
28045 " guestfs_rm_rf (guestfs_h *g,\n"
28046 "                const char *path);\n"
28047 "\n"
28048 msgstr ""
28049
28050 #. type: =head2
28051 #: ../src/guestfs-actions.pod:6207
28052 msgid "guestfs_rmdir"
28053 msgstr ""
28054
28055 #. type: verbatim
28056 #: ../src/guestfs-actions.pod:6209
28057 #, no-wrap
28058 msgid ""
28059 " int\n"
28060 " guestfs_rmdir (guestfs_h *g,\n"
28061 "                const char *path);\n"
28062 "\n"
28063 msgstr ""
28064
28065 #. type: =head2
28066 #: ../src/guestfs-actions.pod:6219
28067 msgid "guestfs_rmmountpoint"
28068 msgstr ""
28069
28070 #. type: verbatim
28071 #: ../src/guestfs-actions.pod:6221
28072 #, no-wrap
28073 msgid ""
28074 " int\n"
28075 " guestfs_rmmountpoint (guestfs_h *g,\n"
28076 "                       const char *exemptpath);\n"
28077 "\n"
28078 msgstr ""
28079
28080 #. type: textblock
28081 #: ../src/guestfs-actions.pod:6225
28082 msgid ""
28083 "This calls removes a mountpoint that was previously created with "
28084 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
28085 msgstr ""
28086
28087 #. type: =head2
28088 #: ../src/guestfs-actions.pod:6233
28089 msgid "guestfs_scrub_device"
28090 msgstr ""
28091
28092 #. type: verbatim
28093 #: ../src/guestfs-actions.pod:6235
28094 #, no-wrap
28095 msgid ""
28096 " int\n"
28097 " guestfs_scrub_device (guestfs_h *g,\n"
28098 "                       const char *device);\n"
28099 "\n"
28100 msgstr ""
28101
28102 #. type: textblock
28103 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6268 ../src/guestfs-actions.pod:6287
28104 msgid "(Added in 1.0.52)"
28105 msgstr ""
28106
28107 #. type: =head2
28108 #: ../src/guestfs-actions.pod:6252
28109 msgid "guestfs_scrub_file"
28110 msgstr ""
28111
28112 #. type: verbatim
28113 #: ../src/guestfs-actions.pod:6254
28114 #, no-wrap
28115 msgid ""
28116 " int\n"
28117 " guestfs_scrub_file (guestfs_h *g,\n"
28118 "                     const char *file);\n"
28119 "\n"
28120 msgstr ""
28121
28122 #. type: =head2
28123 #: ../src/guestfs-actions.pod:6270
28124 msgid "guestfs_scrub_freespace"
28125 msgstr ""
28126
28127 #. type: verbatim
28128 #: ../src/guestfs-actions.pod:6272
28129 #, no-wrap
28130 msgid ""
28131 " int\n"
28132 " guestfs_scrub_freespace (guestfs_h *g,\n"
28133 "                          const char *dir);\n"
28134 "\n"
28135 msgstr ""
28136
28137 #. type: textblock
28138 #: ../src/guestfs-actions.pod:6276
28139 msgid ""
28140 "This command creates the directory C<dir> and then fills it with files until "
28141 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
28142 "and deletes them.  The intention is to scrub any free space on the partition "
28143 "containing C<dir>."
28144 msgstr ""
28145
28146 #. type: =head2
28147 #: ../src/guestfs-actions.pod:6289
28148 msgid "guestfs_set_append"
28149 msgstr ""
28150
28151 #. type: verbatim
28152 #: ../src/guestfs-actions.pod:6291
28153 #, no-wrap
28154 msgid ""
28155 " int\n"
28156 " guestfs_set_append (guestfs_h *g,\n"
28157 "                     const char *append);\n"
28158 "\n"
28159 msgstr ""
28160
28161 #. type: =head2
28162 #: ../src/guestfs-actions.pod:6308
28163 msgid "guestfs_set_attach_method"
28164 msgstr ""
28165
28166 #. type: verbatim
28167 #: ../src/guestfs-actions.pod:6310
28168 #, no-wrap
28169 msgid ""
28170 " int\n"
28171 " guestfs_set_attach_method (guestfs_h *g,\n"
28172 "                            const char *attachmethod);\n"
28173 "\n"
28174 msgstr ""
28175
28176 #. type: =head2
28177 #: ../src/guestfs-actions.pod:6338
28178 msgid "guestfs_set_autosync"
28179 msgstr ""
28180
28181 #. type: verbatim
28182 #: ../src/guestfs-actions.pod:6340
28183 #, no-wrap
28184 msgid ""
28185 " int\n"
28186 " guestfs_set_autosync (guestfs_h *g,\n"
28187 "                       int autosync);\n"
28188 "\n"
28189 msgstr ""
28190
28191 #. type: =head2
28192 #: ../src/guestfs-actions.pod:6356
28193 msgid "guestfs_set_direct"
28194 msgstr ""
28195
28196 #. type: verbatim
28197 #: ../src/guestfs-actions.pod:6358
28198 #, no-wrap
28199 msgid ""
28200 " int\n"
28201 " guestfs_set_direct (guestfs_h *g,\n"
28202 "                     int direct);\n"
28203 "\n"
28204 msgstr ""
28205
28206 #. type: textblock
28207 #: ../src/guestfs-actions.pod:6366
28208 msgid ""
28209 "One consequence of this is that log messages aren't caught by the library "
28210 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
28211 "stdout."
28212 msgstr ""
28213
28214 #. type: =head2
28215 #: ../src/guestfs-actions.pod:6379
28216 msgid "guestfs_set_e2label"
28217 msgstr ""
28218
28219 #. type: verbatim
28220 #: ../src/guestfs-actions.pod:6381
28221 #, no-wrap
28222 msgid ""
28223 " int\n"
28224 " guestfs_set_e2label (guestfs_h *g,\n"
28225 "                      const char *device,\n"
28226 "                      const char *label);\n"
28227 "\n"
28228 msgstr ""
28229
28230 #. type: textblock
28231 #: ../src/guestfs-actions.pod:6390
28232 msgid ""
28233 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
28234 "the existing label on a filesystem."
28235 msgstr ""
28236
28237 #. type: =head2
28238 #: ../src/guestfs-actions.pod:6397
28239 msgid "guestfs_set_e2uuid"
28240 msgstr ""
28241
28242 #. type: verbatim
28243 #: ../src/guestfs-actions.pod:6399
28244 #, no-wrap
28245 msgid ""
28246 " int\n"
28247 " guestfs_set_e2uuid (guestfs_h *g,\n"
28248 "                     const char *device,\n"
28249 "                     const char *uuid);\n"
28250 "\n"
28251 msgstr ""
28252
28253 #. type: textblock
28254 #: ../src/guestfs-actions.pod:6409
28255 msgid ""
28256 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
28257 "the existing UUID of a filesystem."
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:6416
28262 msgid "guestfs_set_memsize"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:6418
28267 #, no-wrap
28268 msgid ""
28269 " int\n"
28270 " guestfs_set_memsize (guestfs_h *g,\n"
28271 "                      int memsize);\n"
28272 "\n"
28273 msgstr ""
28274
28275 #. type: textblock
28276 #: ../src/guestfs-actions.pod:6422
28277 msgid ""
28278 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28279 "This only has any effect if called before C<guestfs_launch>."
28280 msgstr ""
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:6437
28284 msgid "guestfs_set_network"
28285 msgstr ""
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:6439
28289 #, no-wrap
28290 msgid ""
28291 " int\n"
28292 " guestfs_set_network (guestfs_h *g,\n"
28293 "                      int network);\n"
28294 "\n"
28295 msgstr ""
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:6449
28299 msgid ""
28300 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28301 "effect."
28302 msgstr ""
28303
28304 #. type: =head2
28305 #: ../src/guestfs-actions.pod:6456
28306 msgid "guestfs_set_path"
28307 msgstr ""
28308
28309 #. type: verbatim
28310 #: ../src/guestfs-actions.pod:6458
28311 #, no-wrap
28312 msgid ""
28313 " int\n"
28314 " guestfs_set_path (guestfs_h *g,\n"
28315 "                   const char *searchpath);\n"
28316 "\n"
28317 msgstr ""
28318
28319 #. type: =head2
28320 #: ../src/guestfs-actions.pod:6473
28321 msgid "guestfs_set_pgroup"
28322 msgstr ""
28323
28324 #. type: verbatim
28325 #: ../src/guestfs-actions.pod:6475
28326 #, no-wrap
28327 msgid ""
28328 " int\n"
28329 " guestfs_set_pgroup (guestfs_h *g,\n"
28330 "                     int pgroup);\n"
28331 "\n"
28332 msgstr ""
28333
28334 #. type: =head2
28335 #: ../src/guestfs-actions.pod:6492
28336 msgid "guestfs_set_qemu"
28337 msgstr ""
28338
28339 #. type: verbatim
28340 #: ../src/guestfs-actions.pod:6494
28341 #, no-wrap
28342 msgid ""
28343 " int\n"
28344 " guestfs_set_qemu (guestfs_h *g,\n"
28345 "                   const char *qemu);\n"
28346 "\n"
28347 msgstr ""
28348
28349 #. type: =head2
28350 #: ../src/guestfs-actions.pod:6520
28351 msgid "guestfs_set_recovery_proc"
28352 msgstr ""
28353
28354 #. type: verbatim
28355 #: ../src/guestfs-actions.pod:6522
28356 #, no-wrap
28357 msgid ""
28358 " int\n"
28359 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28360 "                            int recoveryproc);\n"
28361 "\n"
28362 msgstr ""
28363
28364 #. type: textblock
28365 #: ../src/guestfs-actions.pod:6526
28366 msgid ""
28367 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28368 "not create a recovery process.  The purpose of the recovery process is to "
28369 "stop runaway qemu processes in the case where the main program aborts "
28370 "abruptly."
28371 msgstr ""
28372
28373 #. type: textblock
28374 #: ../src/guestfs-actions.pod:6531
28375 msgid ""
28376 "This only has any effect if called before C<guestfs_launch>, and the default "
28377 "is true."
28378 msgstr ""
28379
28380 #. type: =head2
28381 #: ../src/guestfs-actions.pod:6544
28382 msgid "guestfs_set_selinux"
28383 msgstr ""
28384
28385 #. type: verbatim
28386 #: ../src/guestfs-actions.pod:6546
28387 #, no-wrap
28388 msgid ""
28389 " int\n"
28390 " guestfs_set_selinux (guestfs_h *g,\n"
28391 "                      int selinux);\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: =head2
28396 #: ../src/guestfs-actions.pod:6563
28397 msgid "guestfs_set_smp"
28398 msgstr ""
28399
28400 #. type: verbatim
28401 #: ../src/guestfs-actions.pod:6565
28402 #, no-wrap
28403 msgid ""
28404 " int\n"
28405 " guestfs_set_smp (guestfs_h *g,\n"
28406 "                  int smp);\n"
28407 "\n"
28408 msgstr ""
28409
28410 #. type: textblock
28411 #: ../src/guestfs-actions.pod:6573
28412 msgid "This function must be called before C<guestfs_launch>."
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../src/guestfs-actions.pod:6577
28417 msgid "guestfs_set_trace"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../src/guestfs-actions.pod:6579
28422 #, no-wrap
28423 msgid ""
28424 " int\n"
28425 " guestfs_set_trace (guestfs_h *g,\n"
28426 "                    int trace);\n"
28427 "\n"
28428 msgstr ""
28429
28430 #. type: textblock
28431 #: ../src/guestfs-actions.pod:6593
28432 msgid ""
28433 "Trace messages are normally sent to C<stderr>, unless you register a "
28434 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28435 msgstr ""
28436
28437 #. type: =head2
28438 #: ../src/guestfs-actions.pod:6601
28439 msgid "guestfs_set_verbose"
28440 msgstr ""
28441
28442 #. type: verbatim
28443 #: ../src/guestfs-actions.pod:6603
28444 #, no-wrap
28445 msgid ""
28446 " int\n"
28447 " guestfs_set_verbose (guestfs_h *g,\n"
28448 "                      int verbose);\n"
28449 "\n"
28450 msgstr ""
28451
28452 #. type: textblock
28453 #: ../src/guestfs-actions.pod:6612
28454 msgid ""
28455 "Verbose messages are normally sent to C<stderr>, unless you register a "
28456 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28457 msgstr ""
28458
28459 #. type: =head2
28460 #: ../src/guestfs-actions.pod:6620
28461 msgid "guestfs_setcon"
28462 msgstr ""
28463
28464 #. type: verbatim
28465 #: ../src/guestfs-actions.pod:6622
28466 #, no-wrap
28467 msgid ""
28468 " int\n"
28469 " guestfs_setcon (guestfs_h *g,\n"
28470 "                 const char *context);\n"
28471 "\n"
28472 msgstr ""
28473
28474 #. type: =head2
28475 #: ../src/guestfs-actions.pod:6635
28476 msgid "guestfs_setxattr"
28477 msgstr ""
28478
28479 #. type: verbatim
28480 #: ../src/guestfs-actions.pod:6637
28481 #, no-wrap
28482 msgid ""
28483 " int\n"
28484 " guestfs_setxattr (guestfs_h *g,\n"
28485 "                   const char *xattr,\n"
28486 "                   const char *val,\n"
28487 "                   int vallen,\n"
28488 "                   const char *path);\n"
28489 "\n"
28490 msgstr ""
28491
28492 #. type: textblock
28493 #: ../src/guestfs-actions.pod:6648
28494 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28495 msgstr ""
28496
28497 #. type: =head2
28498 #: ../src/guestfs-actions.pod:6654
28499 msgid "guestfs_sfdisk"
28500 msgstr ""
28501
28502 #. type: verbatim
28503 #: ../src/guestfs-actions.pod:6656
28504 #, no-wrap
28505 msgid ""
28506 " int\n"
28507 " guestfs_sfdisk (guestfs_h *g,\n"
28508 "                 const char *device,\n"
28509 "                 int cyls,\n"
28510 "                 int heads,\n"
28511 "                 int sectors,\n"
28512 "                 char *const *lines);\n"
28513 "\n"
28514 msgstr ""
28515
28516 #. type: textblock
28517 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6708 ../src/guestfs-actions.pod:6742
28518 msgid ""
28519 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
28520 "call instead."
28521 msgstr ""
28522
28523 #. type: textblock
28524 #: ../src/guestfs-actions.pod:6691
28525 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28526 msgstr ""
28527
28528 #. type: =head2
28529 #: ../src/guestfs-actions.pod:6701
28530 msgid "guestfs_sfdiskM"
28531 msgstr ""
28532
28533 #. type: verbatim
28534 #: ../src/guestfs-actions.pod:6703
28535 #, no-wrap
28536 msgid ""
28537 " int\n"
28538 " guestfs_sfdiskM (guestfs_h *g,\n"
28539 "                  const char *device,\n"
28540 "                  char *const *lines);\n"
28541 "\n"
28542 msgstr ""
28543
28544 #. type: textblock
28545 #: ../src/guestfs-actions.pod:6715
28546 msgid ""
28547 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28548 "partition sizes are specified in megabytes only (rounded to the nearest "
28549 "cylinder) and you don't need to specify the cyls, heads and sectors "
28550 "parameters which were rarely if ever used anyway."
28551 msgstr ""
28552
28553 #. type: textblock
28554 #: ../src/guestfs-actions.pod:6721
28555 msgid ""
28556 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28557 "C<guestfs_part_disk>"
28558 msgstr ""
28559
28560 #. type: =head2
28561 #: ../src/guestfs-actions.pod:6731
28562 msgid "guestfs_sfdisk_N"
28563 msgstr ""
28564
28565 #. type: verbatim
28566 #: ../src/guestfs-actions.pod:6733
28567 #, no-wrap
28568 msgid ""
28569 " int\n"
28570 " guestfs_sfdisk_N (guestfs_h *g,\n"
28571 "                   const char *device,\n"
28572 "                   int partnum,\n"
28573 "                   int cyls,\n"
28574 "                   int heads,\n"
28575 "                   int sectors,\n"
28576 "                   const char *line);\n"
28577 "\n"
28578 msgstr ""
28579
28580 #. type: textblock
28581 #: ../src/guestfs-actions.pod:6752
28582 msgid ""
28583 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28584 "for the cyls/heads/sectors parameters."
28585 msgstr ""
28586
28587 #. type: textblock
28588 #: ../src/guestfs-actions.pod:6755
28589 msgid "See also: C<guestfs_part_add>"
28590 msgstr ""
28591
28592 #. type: =head2
28593 #: ../src/guestfs-actions.pod:6764
28594 msgid "guestfs_sfdisk_disk_geometry"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../src/guestfs-actions.pod:6766
28599 #, no-wrap
28600 msgid ""
28601 " char *\n"
28602 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28603 "                               const char *device);\n"
28604 "\n"
28605 msgstr ""
28606
28607 #. type: textblock
28608 #: ../src/guestfs-actions.pod:6770
28609 msgid ""
28610 "This displays the disk geometry of C<device> read from the partition table.  "
28611 "Especially in the case where the underlying block device has been resized, "
28612 "this can be different from the kernel's idea of the geometry (see "
28613 "C<guestfs_sfdisk_kernel_geometry>)."
28614 msgstr ""
28615
28616 #. type: =head2
28617 #: ../src/guestfs-actions.pod:6783
28618 msgid "guestfs_sfdisk_kernel_geometry"
28619 msgstr ""
28620
28621 #. type: verbatim
28622 #: ../src/guestfs-actions.pod:6785
28623 #, no-wrap
28624 msgid ""
28625 " char *\n"
28626 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28627 "                                 const char *device);\n"
28628 "\n"
28629 msgstr ""
28630
28631 #. type: =head2
28632 #: ../src/guestfs-actions.pod:6799
28633 msgid "guestfs_sfdisk_l"
28634 msgstr ""
28635
28636 #. type: verbatim
28637 #: ../src/guestfs-actions.pod:6801
28638 #, no-wrap
28639 msgid ""
28640 " char *\n"
28641 " guestfs_sfdisk_l (guestfs_h *g,\n"
28642 "                   const char *device);\n"
28643 "\n"
28644 msgstr ""
28645
28646 #. type: textblock
28647 #: ../src/guestfs-actions.pod:6805
28648 msgid ""
28649 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
28650 "call instead."
28651 msgstr ""
28652
28653 #. type: textblock
28654 #: ../src/guestfs-actions.pod:6816
28655 msgid "See also: C<guestfs_part_list>"
28656 msgstr ""
28657
28658 #. type: =head2
28659 #: ../src/guestfs-actions.pod:6823
28660 msgid "guestfs_sh"
28661 msgstr ""
28662
28663 #. type: verbatim
28664 #: ../src/guestfs-actions.pod:6825
28665 #, no-wrap
28666 msgid ""
28667 " char *\n"
28668 " guestfs_sh (guestfs_h *g,\n"
28669 "             const char *command);\n"
28670 "\n"
28671 msgstr ""
28672
28673 #. type: textblock
28674 #: ../src/guestfs-actions.pod:6832
28675 msgid "This is like C<guestfs_command>, but passes the command to:"
28676 msgstr ""
28677
28678 #. type: textblock
28679 #: ../src/guestfs-actions.pod:6840
28680 msgid "All the provisos about C<guestfs_command> apply to this call."
28681 msgstr ""
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:6847
28685 msgid "guestfs_sh_lines"
28686 msgstr ""
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:6849
28690 #, no-wrap
28691 msgid ""
28692 " char **\n"
28693 " guestfs_sh_lines (guestfs_h *g,\n"
28694 "                   const char *command);\n"
28695 "\n"
28696 msgstr ""
28697
28698 #. type: textblock
28699 #: ../src/guestfs-actions.pod:6853
28700 msgid ""
28701 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28702 "lines."
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:6856
28707 msgid "See also: C<guestfs_command_lines>"
28708 msgstr ""
28709
28710 #. type: =head2
28711 #: ../src/guestfs-actions.pod:6864
28712 msgid "guestfs_sleep"
28713 msgstr ""
28714
28715 #. type: verbatim
28716 #: ../src/guestfs-actions.pod:6866
28717 #, no-wrap
28718 msgid ""
28719 " int\n"
28720 " guestfs_sleep (guestfs_h *g,\n"
28721 "                int secs);\n"
28722 "\n"
28723 msgstr ""
28724
28725 #. type: textblock
28726 #: ../src/guestfs-actions.pod:6874
28727 msgid "(Added in 1.0.41)"
28728 msgstr ""
28729
28730 #. type: =head2
28731 #: ../src/guestfs-actions.pod:6876 ../src/guestfs-structs.pod:109
28732 msgid "guestfs_stat"
28733 msgstr ""
28734
28735 #. type: verbatim
28736 #: ../src/guestfs-actions.pod:6878
28737 #, no-wrap
28738 msgid ""
28739 " struct guestfs_stat *\n"
28740 " guestfs_stat (guestfs_h *g,\n"
28741 "               const char *path);\n"
28742 "\n"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-structs.pod:135
28747 msgid "guestfs_statvfs"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:6894
28752 #, no-wrap
28753 msgid ""
28754 " struct guestfs_statvfs *\n"
28755 " guestfs_statvfs (guestfs_h *g,\n"
28756 "                  const char *path);\n"
28757 "\n"
28758 msgstr ""
28759
28760 #. type: textblock
28761 #: ../src/guestfs-actions.pod:6904
28762 msgid ""
28763 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28764 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28765 msgstr ""
28766
28767 #. type: =head2
28768 #: ../src/guestfs-actions.pod:6910
28769 msgid "guestfs_strings"
28770 msgstr ""
28771
28772 #. type: verbatim
28773 #: ../src/guestfs-actions.pod:6912
28774 #, no-wrap
28775 msgid ""
28776 " char **\n"
28777 " guestfs_strings (guestfs_h *g,\n"
28778 "                  const char *path);\n"
28779 "\n"
28780 msgstr ""
28781
28782 #. type: =head2
28783 #: ../src/guestfs-actions.pod:6928
28784 msgid "guestfs_strings_e"
28785 msgstr ""
28786
28787 #. type: verbatim
28788 #: ../src/guestfs-actions.pod:6930
28789 #, no-wrap
28790 msgid ""
28791 " char **\n"
28792 " guestfs_strings_e (guestfs_h *g,\n"
28793 "                    const char *encoding,\n"
28794 "                    const char *path);\n"
28795 "\n"
28796 msgstr ""
28797
28798 #. type: textblock
28799 #: ../src/guestfs-actions.pod:6935
28800 msgid ""
28801 "This is like the C<guestfs_strings> command, but allows you to specify the "
28802 "encoding of strings that are looked for in the source file C<path>."
28803 msgstr ""
28804
28805 #. type: textblock
28806 #: ../src/guestfs-actions.pod:6945
28807 msgid ""
28808 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28809 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28810 msgstr ""
28811
28812 #. type: =head2
28813 #: ../src/guestfs-actions.pod:6983
28814 msgid "guestfs_swapoff_device"
28815 msgstr ""
28816
28817 #. type: verbatim
28818 #: ../src/guestfs-actions.pod:6985
28819 #, no-wrap
28820 msgid ""
28821 " int\n"
28822 " guestfs_swapoff_device (guestfs_h *g,\n"
28823 "                         const char *device);\n"
28824 "\n"
28825 msgstr ""
28826
28827 #. type: textblock
28828 #: ../src/guestfs-actions.pod:6989
28829 msgid ""
28830 "This command disables the libguestfs appliance swap device or partition "
28831 "named C<device>.  See C<guestfs_swapon_device>."
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:6997
28836 msgid "guestfs_swapoff_file"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:6999
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_swapoff_file (guestfs_h *g,\n"
28845 "                       const char *file);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: =head2
28850 #: ../src/guestfs-actions.pod:7009
28851 msgid "guestfs_swapoff_label"
28852 msgstr ""
28853
28854 #. type: verbatim
28855 #: ../src/guestfs-actions.pod:7011
28856 #, no-wrap
28857 msgid ""
28858 " int\n"
28859 " guestfs_swapoff_label (guestfs_h *g,\n"
28860 "                        const char *label);\n"
28861 "\n"
28862 msgstr ""
28863
28864 #. type: =head2
28865 #: ../src/guestfs-actions.pod:7022
28866 msgid "guestfs_swapoff_uuid"
28867 msgstr ""
28868
28869 #. type: verbatim
28870 #: ../src/guestfs-actions.pod:7024
28871 #, no-wrap
28872 msgid ""
28873 " int\n"
28874 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28875 "                       const char *uuid);\n"
28876 "\n"
28877 msgstr ""
28878
28879 #. type: =head2
28880 #: ../src/guestfs-actions.pod:7035
28881 msgid "guestfs_swapon_device"
28882 msgstr ""
28883
28884 #. type: verbatim
28885 #: ../src/guestfs-actions.pod:7037
28886 #, no-wrap
28887 msgid ""
28888 " int\n"
28889 " guestfs_swapon_device (guestfs_h *g,\n"
28890 "                        const char *device);\n"
28891 "\n"
28892 msgstr ""
28893
28894 #. type: textblock
28895 #: ../src/guestfs-actions.pod:7041
28896 msgid ""
28897 "This command enables the libguestfs appliance to use the swap device or "
28898 "partition named C<device>.  The increased memory is made available for all "
28899 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28900 msgstr ""
28901
28902 #. type: =head2
28903 #: ../src/guestfs-actions.pod:7057
28904 msgid "guestfs_swapon_file"
28905 msgstr ""
28906
28907 #. type: verbatim
28908 #: ../src/guestfs-actions.pod:7059
28909 #, no-wrap
28910 msgid ""
28911 " int\n"
28912 " guestfs_swapon_file (guestfs_h *g,\n"
28913 "                      const char *file);\n"
28914 "\n"
28915 msgstr ""
28916
28917 #. type: textblock
28918 #: ../src/guestfs-actions.pod:7063
28919 msgid ""
28920 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28921 "notes."
28922 msgstr ""
28923
28924 #. type: =head2
28925 #: ../src/guestfs-actions.pod:7070
28926 msgid "guestfs_swapon_label"
28927 msgstr ""
28928
28929 #. type: verbatim
28930 #: ../src/guestfs-actions.pod:7072
28931 #, no-wrap
28932 msgid ""
28933 " int\n"
28934 " guestfs_swapon_label (guestfs_h *g,\n"
28935 "                       const char *label);\n"
28936 "\n"
28937 msgstr ""
28938
28939 #. type: textblock
28940 #: ../src/guestfs-actions.pod:7076
28941 msgid ""
28942 "This command enables swap to a labeled swap partition.  See "
28943 "C<guestfs_swapon_device> for other notes."
28944 msgstr ""
28945
28946 #. type: =head2
28947 #: ../src/guestfs-actions.pod:7083
28948 msgid "guestfs_swapon_uuid"
28949 msgstr ""
28950
28951 #. type: verbatim
28952 #: ../src/guestfs-actions.pod:7085
28953 #, no-wrap
28954 msgid ""
28955 " int\n"
28956 " guestfs_swapon_uuid (guestfs_h *g,\n"
28957 "                      const char *uuid);\n"
28958 "\n"
28959 msgstr ""
28960
28961 #. type: textblock
28962 #: ../src/guestfs-actions.pod:7089
28963 msgid ""
28964 "This command enables swap to a swap partition with the given UUID.  See "
28965 "C<guestfs_swapon_device> for other notes."
28966 msgstr ""
28967
28968 #. type: =head2
28969 #: ../src/guestfs-actions.pod:7096
28970 msgid "guestfs_sync"
28971 msgstr ""
28972
28973 #. type: verbatim
28974 #: ../src/guestfs-actions.pod:7098
28975 #, no-wrap
28976 msgid ""
28977 " int\n"
28978 " guestfs_sync (guestfs_h *g);\n"
28979 "\n"
28980 msgstr ""
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:7111
28984 msgid "guestfs_tail"
28985 msgstr ""
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:7113
28989 #, no-wrap
28990 msgid ""
28991 " char **\n"
28992 " guestfs_tail (guestfs_h *g,\n"
28993 "               const char *path);\n"
28994 "\n"
28995 msgstr ""
28996
28997 #. type: =head2
28998 #: ../src/guestfs-actions.pod:7129
28999 msgid "guestfs_tail_n"
29000 msgstr ""
29001
29002 #. type: verbatim
29003 #: ../src/guestfs-actions.pod:7131
29004 #, no-wrap
29005 msgid ""
29006 " char **\n"
29007 " guestfs_tail_n (guestfs_h *g,\n"
29008 "                 int nrlines,\n"
29009 "                 const char *path);\n"
29010 "\n"
29011 msgstr ""
29012
29013 #. type: =head2
29014 #: ../src/guestfs-actions.pod:7153
29015 msgid "guestfs_tar_in"
29016 msgstr ""
29017
29018 #. type: verbatim
29019 #: ../src/guestfs-actions.pod:7155
29020 #, no-wrap
29021 msgid ""
29022 " int\n"
29023 " guestfs_tar_in (guestfs_h *g,\n"
29024 "                 const char *tarfile,\n"
29025 "                 const char *directory);\n"
29026 "\n"
29027 msgstr ""
29028
29029 #. type: textblock
29030 #: ../src/guestfs-actions.pod:7163
29031 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
29032 msgstr ""
29033
29034 #. type: textblock
29035 #: ../src/guestfs-actions.pod:7168 ../src/guestfs-actions.pod:7185 ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7217
29036 msgid "(Added in 1.0.3)"
29037 msgstr ""
29038
29039 #. type: =head2
29040 #: ../src/guestfs-actions.pod:7170
29041 msgid "guestfs_tar_out"
29042 msgstr ""
29043
29044 #. type: verbatim
29045 #: ../src/guestfs-actions.pod:7172
29046 #, no-wrap
29047 msgid ""
29048 " int\n"
29049 " guestfs_tar_out (guestfs_h *g,\n"
29050 "                  const char *directory,\n"
29051 "                  const char *tarfile);\n"
29052 "\n"
29053 msgstr ""
29054
29055 #. type: textblock
29056 #: ../src/guestfs-actions.pod:7180
29057 msgid ""
29058 "To download a compressed tarball, use C<guestfs_tgz_out> or "
29059 "C<guestfs_txz_out>."
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:7187
29064 msgid "guestfs_tgz_in"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:7189
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_tgz_in (guestfs_h *g,\n"
29073 "                 const char *tarball,\n"
29074 "                 const char *directory);\n"
29075 "\n"
29076 msgstr ""
29077
29078 #. type: textblock
29079 #: ../src/guestfs-actions.pod:7197
29080 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
29081 msgstr ""
29082
29083 #. type: =head2
29084 #: ../src/guestfs-actions.pod:7203
29085 msgid "guestfs_tgz_out"
29086 msgstr ""
29087
29088 #. type: verbatim
29089 #: ../src/guestfs-actions.pod:7205
29090 #, no-wrap
29091 msgid ""
29092 " int\n"
29093 " guestfs_tgz_out (guestfs_h *g,\n"
29094 "                  const char *directory,\n"
29095 "                  const char *tarball);\n"
29096 "\n"
29097 msgstr ""
29098
29099 #. type: textblock
29100 #: ../src/guestfs-actions.pod:7213
29101 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
29102 msgstr ""
29103
29104 #. type: =head2
29105 #: ../src/guestfs-actions.pod:7219
29106 msgid "guestfs_touch"
29107 msgstr ""
29108
29109 #. type: verbatim
29110 #: ../src/guestfs-actions.pod:7221
29111 #, no-wrap
29112 msgid ""
29113 " int\n"
29114 " guestfs_touch (guestfs_h *g,\n"
29115 "                const char *path);\n"
29116 "\n"
29117 msgstr ""
29118
29119 #. type: =head2
29120 #: ../src/guestfs-actions.pod:7236
29121 msgid "guestfs_truncate"
29122 msgstr ""
29123
29124 #. type: verbatim
29125 #: ../src/guestfs-actions.pod:7238
29126 #, no-wrap
29127 msgid ""
29128 " int\n"
29129 " guestfs_truncate (guestfs_h *g,\n"
29130 "                   const char *path);\n"
29131 "\n"
29132 msgstr ""
29133
29134 #. type: =head2
29135 #: ../src/guestfs-actions.pod:7249
29136 msgid "guestfs_truncate_size"
29137 msgstr ""
29138
29139 #. type: verbatim
29140 #: ../src/guestfs-actions.pod:7251
29141 #, no-wrap
29142 msgid ""
29143 " int\n"
29144 " guestfs_truncate_size (guestfs_h *g,\n"
29145 "                        const char *path,\n"
29146 "                        int64_t size);\n"
29147 "\n"
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../src/guestfs-actions.pod:7259
29152 msgid ""
29153 "If the current file size is less than C<size> then the file is extended to "
29154 "the required size with zero bytes.  This creates a sparse file (ie. disk "
29155 "blocks are not allocated for the file until you write to it).  To create a "
29156 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:7269
29161 msgid "guestfs_tune2fs_l"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:7271
29166 #, no-wrap
29167 msgid ""
29168 " char **\n"
29169 " guestfs_tune2fs_l (guestfs_h *g,\n"
29170 "                    const char *device);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: =head2
29175 #: ../src/guestfs-actions.pod:7291
29176 msgid "guestfs_txz_in"
29177 msgstr ""
29178
29179 #. type: verbatim
29180 #: ../src/guestfs-actions.pod:7293
29181 #, no-wrap
29182 msgid ""
29183 " int\n"
29184 " guestfs_txz_in (guestfs_h *g,\n"
29185 "                 const char *tarball,\n"
29186 "                 const char *directory);\n"
29187 "\n"
29188 msgstr ""
29189
29190 #. type: =head2
29191 #: ../src/guestfs-actions.pod:7305
29192 msgid "guestfs_txz_out"
29193 msgstr ""
29194
29195 #. type: verbatim
29196 #: ../src/guestfs-actions.pod:7307
29197 #, no-wrap
29198 msgid ""
29199 " int\n"
29200 " guestfs_txz_out (guestfs_h *g,\n"
29201 "                  const char *directory,\n"
29202 "                  const char *tarball);\n"
29203 "\n"
29204 msgstr ""
29205
29206 #. type: =head2
29207 #: ../src/guestfs-actions.pod:7319
29208 msgid "guestfs_umask"
29209 msgstr ""
29210
29211 #. type: verbatim
29212 #: ../src/guestfs-actions.pod:7321
29213 #, no-wrap
29214 msgid ""
29215 " int\n"
29216 " guestfs_umask (guestfs_h *g,\n"
29217 "                int mask);\n"
29218 "\n"
29219 msgstr ""
29220
29221 #. type: textblock
29222 #: ../src/guestfs-actions.pod:7337
29223 msgid ""
29224 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
29225 "C<guestfs_mkdir>."
29226 msgstr ""
29227
29228 #. type: =head2
29229 #: ../src/guestfs-actions.pod:7346
29230 msgid "guestfs_umount"
29231 msgstr ""
29232
29233 #. type: verbatim
29234 #: ../src/guestfs-actions.pod:7348
29235 #, no-wrap
29236 msgid ""
29237 " int\n"
29238 " guestfs_umount (guestfs_h *g,\n"
29239 "                 const char *pathordevice);\n"
29240 "\n"
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:7360
29245 msgid "guestfs_umount_all"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:7362
29250 #, no-wrap
29251 msgid ""
29252 " int\n"
29253 " guestfs_umount_all (guestfs_h *g);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:7373
29259 msgid "guestfs_upload"
29260 msgstr ""
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:7375
29264 #, no-wrap
29265 msgid ""
29266 " int\n"
29267 " guestfs_upload (guestfs_h *g,\n"
29268 "                 const char *filename,\n"
29269 "                 const char *remotefilename);\n"
29270 "\n"
29271 msgstr ""
29272
29273 #. type: textblock
29274 #: ../src/guestfs-actions.pod:7385
29275 msgid "See also C<guestfs_download>."
29276 msgstr ""
29277
29278 #. type: =head2
29279 #: ../src/guestfs-actions.pod:7396
29280 msgid "guestfs_upload_offset"
29281 msgstr ""
29282
29283 #. type: verbatim
29284 #: ../src/guestfs-actions.pod:7398
29285 #, no-wrap
29286 msgid ""
29287 " int\n"
29288 " guestfs_upload_offset (guestfs_h *g,\n"
29289 "                        const char *filename,\n"
29290 "                        const char *remotefilename,\n"
29291 "                        int64_t offset);\n"
29292 "\n"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:7414
29297 msgid ""
29298 "Note that there is no limit on the amount of data that can be uploaded with "
29299 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29300 "full amount unless an error occurs."
29301 msgstr ""
29302
29303 #. type: textblock
29304 #: ../src/guestfs-actions.pod:7419
29305 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29306 msgstr ""
29307
29308 #. type: =head2
29309 #: ../src/guestfs-actions.pod:7430
29310 msgid "guestfs_utimens"
29311 msgstr ""
29312
29313 #. type: verbatim
29314 #: ../src/guestfs-actions.pod:7432
29315 #, no-wrap
29316 msgid ""
29317 " int\n"
29318 " guestfs_utimens (guestfs_h *g,\n"
29319 "                  const char *path,\n"
29320 "                  int64_t atsecs,\n"
29321 "                  int64_t atnsecs,\n"
29322 "                  int64_t mtsecs,\n"
29323 "                  int64_t mtnsecs);\n"
29324 "\n"
29325 msgstr ""
29326
29327 #. type: =head2
29328 #: ../src/guestfs-actions.pod:7461 ../src/guestfs-structs.pod:175
29329 msgid "guestfs_version"
29330 msgstr ""
29331
29332 #. type: verbatim
29333 #: ../src/guestfs-actions.pod:7463
29334 #, no-wrap
29335 msgid ""
29336 " struct guestfs_version *\n"
29337 " guestfs_version (guestfs_h *g);\n"
29338 "\n"
29339 msgstr ""
29340
29341 #. type: textblock
29342 #: ../src/guestfs-actions.pod:7491
29343 msgid ""
29344 "I<Note:> Don't use this call to test for availability of features.  In "
29345 "enterprise distributions we backport features from later versions into "
29346 "earlier versions, making this an unreliable way to test for features.  Use "
29347 "C<guestfs_available> instead."
29348 msgstr ""
29349
29350 #. type: textblock
29351 #: ../src/guestfs-actions.pod:7497
29352 msgid ""
29353 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29354 "error.  I<The caller must call C<guestfs_free_version> after use>."
29355 msgstr ""
29356
29357 #. type: textblock
29358 #: ../src/guestfs-actions.pod:7501
29359 msgid "(Added in 1.0.58)"
29360 msgstr ""
29361
29362 #. type: =head2
29363 #: ../src/guestfs-actions.pod:7503
29364 msgid "guestfs_vfs_label"
29365 msgstr ""
29366
29367 #. type: verbatim
29368 #: ../src/guestfs-actions.pod:7505
29369 #, no-wrap
29370 msgid ""
29371 " char *\n"
29372 " guestfs_vfs_label (guestfs_h *g,\n"
29373 "                    const char *device);\n"
29374 "\n"
29375 msgstr ""
29376
29377 #. type: textblock
29378 #: ../src/guestfs-actions.pod:7514
29379 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29380 msgstr ""
29381
29382 #. type: textblock
29383 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7556
29384 msgid "(Added in 1.3.18)"
29385 msgstr ""
29386
29387 #. type: =head2
29388 #: ../src/guestfs-actions.pod:7521
29389 msgid "guestfs_vfs_type"
29390 msgstr ""
29391
29392 #. type: verbatim
29393 #: ../src/guestfs-actions.pod:7523
29394 #, no-wrap
29395 msgid ""
29396 " char *\n"
29397 " guestfs_vfs_type (guestfs_h *g,\n"
29398 "                   const char *device);\n"
29399 "\n"
29400 msgstr ""
29401
29402 #. type: =head2
29403 #: ../src/guestfs-actions.pod:7540
29404 msgid "guestfs_vfs_uuid"
29405 msgstr ""
29406
29407 #. type: verbatim
29408 #: ../src/guestfs-actions.pod:7542
29409 #, no-wrap
29410 msgid ""
29411 " char *\n"
29412 " guestfs_vfs_uuid (guestfs_h *g,\n"
29413 "                   const char *device);\n"
29414 "\n"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:7551
29419 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29420 msgstr ""
29421
29422 #. type: =head2
29423 #: ../src/guestfs-actions.pod:7558
29424 msgid "guestfs_vg_activate"
29425 msgstr ""
29426
29427 #. type: verbatim
29428 #: ../src/guestfs-actions.pod:7560
29429 #, no-wrap
29430 msgid ""
29431 " int\n"
29432 " guestfs_vg_activate (guestfs_h *g,\n"
29433 "                      int activate,\n"
29434 "                      char *const *volgroups);\n"
29435 "\n"
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:7577
29440 msgid "guestfs_vg_activate_all"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:7579
29445 #, no-wrap
29446 msgid ""
29447 " int\n"
29448 " guestfs_vg_activate_all (guestfs_h *g,\n"
29449 "                          int activate);\n"
29450 "\n"
29451 msgstr ""
29452
29453 #. type: =head2
29454 #: ../src/guestfs-actions.pod:7592
29455 msgid "guestfs_vgcreate"
29456 msgstr ""
29457
29458 #. type: verbatim
29459 #: ../src/guestfs-actions.pod:7594
29460 #, no-wrap
29461 msgid ""
29462 " int\n"
29463 " guestfs_vgcreate (guestfs_h *g,\n"
29464 "                   const char *volgroup,\n"
29465 "                   char *const *physvols);\n"
29466 "\n"
29467 msgstr ""
29468
29469 #. type: =head2
29470 #: ../src/guestfs-actions.pod:7606
29471 msgid "guestfs_vglvuuids"
29472 msgstr ""
29473
29474 #. type: verbatim
29475 #: ../src/guestfs-actions.pod:7608
29476 #, no-wrap
29477 msgid ""
29478 " char **\n"
29479 " guestfs_vglvuuids (guestfs_h *g,\n"
29480 "                    const char *vgname);\n"
29481 "\n"
29482 msgstr ""
29483
29484 #. type: textblock
29485 #: ../src/guestfs-actions.pod:7615
29486 msgid ""
29487 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29488 "associate logical volumes and volume groups."
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../src/guestfs-actions.pod:7618
29493 msgid "See also C<guestfs_vgpvuuids>."
29494 msgstr ""
29495
29496 #. type: =head2
29497 #: ../src/guestfs-actions.pod:7626
29498 msgid "guestfs_vgpvuuids"
29499 msgstr ""
29500
29501 #. type: verbatim
29502 #: ../src/guestfs-actions.pod:7628
29503 #, no-wrap
29504 msgid ""
29505 " char **\n"
29506 " guestfs_vgpvuuids (guestfs_h *g,\n"
29507 "                    const char *vgname);\n"
29508 "\n"
29509 msgstr ""
29510
29511 #. type: textblock
29512 #: ../src/guestfs-actions.pod:7635
29513 msgid ""
29514 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29515 "associate physical volumes and volume groups."
29516 msgstr ""
29517
29518 #. type: textblock
29519 #: ../src/guestfs-actions.pod:7638
29520 msgid "See also C<guestfs_vglvuuids>."
29521 msgstr ""
29522
29523 #. type: =head2
29524 #: ../src/guestfs-actions.pod:7646
29525 msgid "guestfs_vgremove"
29526 msgstr ""
29527
29528 #. type: verbatim
29529 #: ../src/guestfs-actions.pod:7648
29530 #, no-wrap
29531 msgid ""
29532 " int\n"
29533 " guestfs_vgremove (guestfs_h *g,\n"
29534 "                   const char *vgname);\n"
29535 "\n"
29536 msgstr ""
29537
29538 #. type: =head2
29539 #: ../src/guestfs-actions.pod:7661
29540 msgid "guestfs_vgrename"
29541 msgstr ""
29542
29543 #. type: verbatim
29544 #: ../src/guestfs-actions.pod:7663
29545 #, no-wrap
29546 msgid ""
29547 " int\n"
29548 " guestfs_vgrename (guestfs_h *g,\n"
29549 "                   const char *volgroup,\n"
29550 "                   const char *newvolgroup);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: =head2
29555 #: ../src/guestfs-actions.pod:7674
29556 msgid "guestfs_vgs"
29557 msgstr ""
29558
29559 #. type: verbatim
29560 #: ../src/guestfs-actions.pod:7676
29561 #, no-wrap
29562 msgid ""
29563 " char **\n"
29564 " guestfs_vgs (guestfs_h *g);\n"
29565 "\n"
29566 msgstr ""
29567
29568 #. type: textblock
29569 #: ../src/guestfs-actions.pod:7685
29570 msgid "See also C<guestfs_vgs_full>."
29571 msgstr ""
29572
29573 #. type: =head2
29574 #: ../src/guestfs-actions.pod:7693
29575 msgid "guestfs_vgs_full"
29576 msgstr ""
29577
29578 #. type: verbatim
29579 #: ../src/guestfs-actions.pod:7695
29580 #, no-wrap
29581 msgid ""
29582 " struct guestfs_lvm_vg_list *\n"
29583 " guestfs_vgs_full (guestfs_h *g);\n"
29584 "\n"
29585 msgstr ""
29586
29587 #. type: textblock
29588 #: ../src/guestfs-actions.pod:7701
29589 msgid ""
29590 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29591 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
29592 "use>."
29593 msgstr ""
29594
29595 #. type: =head2
29596 #: ../src/guestfs-actions.pod:7707
29597 msgid "guestfs_vgscan"
29598 msgstr ""
29599
29600 #. type: verbatim
29601 #: ../src/guestfs-actions.pod:7709
29602 #, no-wrap
29603 msgid ""
29604 " int\n"
29605 " guestfs_vgscan (guestfs_h *g);\n"
29606 "\n"
29607 msgstr ""
29608
29609 #. type: =head2
29610 #: ../src/guestfs-actions.pod:7719
29611 msgid "guestfs_vguuid"
29612 msgstr ""
29613
29614 #. type: verbatim
29615 #: ../src/guestfs-actions.pod:7721
29616 #, no-wrap
29617 msgid ""
29618 " char *\n"
29619 " guestfs_vguuid (guestfs_h *g,\n"
29620 "                 const char *vgname);\n"
29621 "\n"
29622 msgstr ""
29623
29624 #. type: =head2
29625 #: ../src/guestfs-actions.pod:7732
29626 msgid "guestfs_wait_ready"
29627 msgstr ""
29628
29629 #. type: verbatim
29630 #: ../src/guestfs-actions.pod:7734
29631 #, no-wrap
29632 msgid ""
29633 " int\n"
29634 " guestfs_wait_ready (guestfs_h *g);\n"
29635 "\n"
29636 msgstr ""
29637
29638 #. type: textblock
29639 #: ../src/guestfs-actions.pod:7737
29640 msgid ""
29641 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
29642 "instead."
29643 msgstr ""
29644
29645 #. type: textblock
29646 #: ../src/guestfs-actions.pod:7744
29647 msgid "This function is a no op."
29648 msgstr ""
29649
29650 #. type: textblock
29651 #: ../src/guestfs-actions.pod:7746
29652 msgid ""
29653 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29654 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29655 "is no longer necessary because C<guestfs_launch> now does the waiting."
29656 msgstr ""
29657
29658 #. type: textblock
29659 #: ../src/guestfs-actions.pod:7751
29660 msgid ""
29661 "If you see any calls to this function in code then you can just remove them, "
29662 "unless you want to retain compatibility with older versions of the API."
29663 msgstr ""
29664
29665 #. type: =head2
29666 #: ../src/guestfs-actions.pod:7759
29667 msgid "guestfs_wc_c"
29668 msgstr ""
29669
29670 #. type: verbatim
29671 #: ../src/guestfs-actions.pod:7761
29672 #, no-wrap
29673 msgid ""
29674 " int\n"
29675 " guestfs_wc_c (guestfs_h *g,\n"
29676 "               const char *path);\n"
29677 "\n"
29678 msgstr ""
29679
29680 #. type: =head2
29681 #: ../src/guestfs-actions.pod:7772
29682 msgid "guestfs_wc_l"
29683 msgstr ""
29684
29685 #. type: verbatim
29686 #: ../src/guestfs-actions.pod:7774
29687 #, no-wrap
29688 msgid ""
29689 " int\n"
29690 " guestfs_wc_l (guestfs_h *g,\n"
29691 "               const char *path);\n"
29692 "\n"
29693 msgstr ""
29694
29695 #. type: =head2
29696 #: ../src/guestfs-actions.pod:7785
29697 msgid "guestfs_wc_w"
29698 msgstr ""
29699
29700 #. type: verbatim
29701 #: ../src/guestfs-actions.pod:7787
29702 #, no-wrap
29703 msgid ""
29704 " int\n"
29705 " guestfs_wc_w (guestfs_h *g,\n"
29706 "               const char *path);\n"
29707 "\n"
29708 msgstr ""
29709
29710 #. type: =head2
29711 #: ../src/guestfs-actions.pod:7798
29712 msgid "guestfs_write"
29713 msgstr ""
29714
29715 #. type: verbatim
29716 #: ../src/guestfs-actions.pod:7800
29717 #, no-wrap
29718 msgid ""
29719 " int\n"
29720 " guestfs_write (guestfs_h *g,\n"
29721 "                const char *path,\n"
29722 "                const char *content,\n"
29723 "                size_t content_size);\n"
29724 "\n"
29725 msgstr ""
29726
29727 #. type: textblock
29728 #: ../src/guestfs-actions.pod:7809
29729 msgid "See also C<guestfs_write_append>."
29730 msgstr ""
29731
29732 #. type: =head2
29733 #: ../src/guestfs-actions.pod:7818
29734 msgid "guestfs_write_append"
29735 msgstr ""
29736
29737 #. type: verbatim
29738 #: ../src/guestfs-actions.pod:7820
29739 #, no-wrap
29740 msgid ""
29741 " int\n"
29742 " guestfs_write_append (guestfs_h *g,\n"
29743 "                       const char *path,\n"
29744 "                       const char *content,\n"
29745 "                       size_t content_size);\n"
29746 "\n"
29747 msgstr ""
29748
29749 #. type: textblock
29750 #: ../src/guestfs-actions.pod:7829
29751 msgid "See also C<guestfs_write>."
29752 msgstr ""
29753
29754 #. type: =head2
29755 #: ../src/guestfs-actions.pod:7838
29756 msgid "guestfs_write_file"
29757 msgstr ""
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-actions.pod:7840
29761 #, no-wrap
29762 msgid ""
29763 " int\n"
29764 " guestfs_write_file (guestfs_h *g,\n"
29765 "                     const char *path,\n"
29766 "                     const char *content,\n"
29767 "                     int size);\n"
29768 "\n"
29769 msgstr ""
29770
29771 #. type: textblock
29772 #: ../src/guestfs-actions.pod:7846
29773 msgid ""
29774 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
29775 "instead."
29776 msgstr ""
29777
29778 #. type: =head2
29779 #: ../src/guestfs-actions.pod:7871
29780 msgid "guestfs_zegrep"
29781 msgstr ""
29782
29783 #. type: verbatim
29784 #: ../src/guestfs-actions.pod:7873
29785 #, no-wrap
29786 msgid ""
29787 " char **\n"
29788 " guestfs_zegrep (guestfs_h *g,\n"
29789 "                 const char *regex,\n"
29790 "                 const char *path);\n"
29791 "\n"
29792 msgstr ""
29793
29794 #. type: =head2
29795 #: ../src/guestfs-actions.pod:7890
29796 msgid "guestfs_zegrepi"
29797 msgstr ""
29798
29799 #. type: verbatim
29800 #: ../src/guestfs-actions.pod:7892
29801 #, no-wrap
29802 msgid ""
29803 " char **\n"
29804 " guestfs_zegrepi (guestfs_h *g,\n"
29805 "                  const char *regex,\n"
29806 "                  const char *path);\n"
29807 "\n"
29808 msgstr ""
29809
29810 #. type: =head2
29811 #: ../src/guestfs-actions.pod:7909
29812 msgid "guestfs_zero"
29813 msgstr ""
29814
29815 #. type: verbatim
29816 #: ../src/guestfs-actions.pod:7911
29817 #, no-wrap
29818 msgid ""
29819 " int\n"
29820 " guestfs_zero (guestfs_h *g,\n"
29821 "               const char *device);\n"
29822 "\n"
29823 msgstr ""
29824
29825 #. type: textblock
29826 #: ../src/guestfs-actions.pod:7925
29827 msgid ""
29828 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29829 "C<guestfs_is_zero_device>"
29830 msgstr ""
29831
29832 #. type: =head2
29833 #: ../src/guestfs-actions.pod:7937
29834 msgid "guestfs_zero_device"
29835 msgstr ""
29836
29837 #. type: verbatim
29838 #: ../src/guestfs-actions.pod:7939
29839 #, no-wrap
29840 msgid ""
29841 " int\n"
29842 " guestfs_zero_device (guestfs_h *g,\n"
29843 "                      const char *device);\n"
29844 "\n"
29845 msgstr ""
29846
29847 #. type: textblock
29848 #: ../src/guestfs-actions.pod:7943
29849 msgid ""
29850 "This command writes zeroes over the entire C<device>.  Compare with "
29851 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29852 msgstr ""
29853
29854 #. type: textblock
29855 #: ../src/guestfs-actions.pod:7961
29856 msgid "(Added in 1.3.1)"
29857 msgstr ""
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:7963
29861 msgid "guestfs_zerofree"
29862 msgstr ""
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:7965
29866 #, no-wrap
29867 msgid ""
29868 " int\n"
29869 " guestfs_zerofree (guestfs_h *g,\n"
29870 "                   const char *device);\n"
29871 "\n"
29872 msgstr ""
29873
29874 #. type: =head2
29875 #: ../src/guestfs-actions.pod:7984
29876 msgid "guestfs_zfgrep"
29877 msgstr ""
29878
29879 #. type: verbatim
29880 #: ../src/guestfs-actions.pod:7986
29881 #, no-wrap
29882 msgid ""
29883 " char **\n"
29884 " guestfs_zfgrep (guestfs_h *g,\n"
29885 "                 const char *pattern,\n"
29886 "                 const char *path);\n"
29887 "\n"
29888 msgstr ""
29889
29890 #. type: =head2
29891 #: ../src/guestfs-actions.pod:8003
29892 msgid "guestfs_zfgrepi"
29893 msgstr ""
29894
29895 #. type: verbatim
29896 #: ../src/guestfs-actions.pod:8005
29897 #, no-wrap
29898 msgid ""
29899 " char **\n"
29900 " guestfs_zfgrepi (guestfs_h *g,\n"
29901 "                  const char *pattern,\n"
29902 "                  const char *path);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../src/guestfs-actions.pod:8022
29908 msgid "guestfs_zfile"
29909 msgstr ""
29910
29911 #. type: verbatim
29912 #: ../src/guestfs-actions.pod:8024
29913 #, no-wrap
29914 msgid ""
29915 " char *\n"
29916 " guestfs_zfile (guestfs_h *g,\n"
29917 "                const char *meth,\n"
29918 "                const char *path);\n"
29919 "\n"
29920 msgstr ""
29921
29922 #. type: textblock
29923 #: ../src/guestfs-actions.pod:8029
29924 msgid ""
29925 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
29926 "instead."
29927 msgstr ""
29928
29929 #. type: textblock
29930 #: ../src/guestfs-actions.pod:8041
29931 msgid ""
29932 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29933 "files."
29934 msgstr ""
29935
29936 #. type: =head2
29937 #: ../src/guestfs-actions.pod:8049
29938 msgid "guestfs_zgrep"
29939 msgstr ""
29940
29941 #. type: verbatim
29942 #: ../src/guestfs-actions.pod:8051
29943 #, no-wrap
29944 msgid ""
29945 " char **\n"
29946 " guestfs_zgrep (guestfs_h *g,\n"
29947 "                const char *regex,\n"
29948 "                const char *path);\n"
29949 "\n"
29950 msgstr ""
29951
29952 #. type: =head2
29953 #: ../src/guestfs-actions.pod:8068
29954 msgid "guestfs_zgrepi"
29955 msgstr ""
29956
29957 #. type: verbatim
29958 #: ../src/guestfs-actions.pod:8070
29959 #, no-wrap
29960 msgid ""
29961 " char **\n"
29962 " guestfs_zgrepi (guestfs_h *g,\n"
29963 "                 const char *regex,\n"
29964 "                 const char *path);\n"
29965 "\n"
29966 msgstr ""
29967
29968 #. type: =item
29969 #: ../src/guestfs-availability.pod:3
29970 msgid "B<augeas>"
29971 msgstr ""
29972
29973 #. type: textblock
29974 #: ../src/guestfs-availability.pod:5
29975 msgid ""
29976 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29977 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29978 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29979 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29980 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29981 msgstr ""
29982
29983 #. type: =item
29984 #: ../src/guestfs-availability.pod:21
29985 msgid "B<btrfs>"
29986 msgstr ""
29987
29988 #. type: textblock
29989 #: ../src/guestfs-availability.pod:23
29990 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29991 msgstr ""
29992
29993 #. type: =item
29994 #: ../src/guestfs-availability.pod:26
29995 msgid "B<grub>"
29996 msgstr ""
29997
29998 #. type: textblock
29999 #: ../src/guestfs-availability.pod:28
30000 msgid "The following functions: L</guestfs_grub_install>"
30001 msgstr ""
30002
30003 #. type: =item
30004 #: ../src/guestfs-availability.pod:31
30005 msgid "B<inotify>"
30006 msgstr ""
30007
30008 #. type: textblock
30009 #: ../src/guestfs-availability.pod:33
30010 msgid ""
30011 "The following functions: L</guestfs_inotify_add_watch> "
30012 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
30013 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
30014 msgstr ""
30015
30016 #. type: =item
30017 #: ../src/guestfs-availability.pod:41
30018 msgid "B<linuxfsuuid>"
30019 msgstr ""
30020
30021 #. type: textblock
30022 #: ../src/guestfs-availability.pod:43
30023 msgid ""
30024 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
30025 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
30026 msgstr ""
30027
30028 #. type: =item
30029 #: ../src/guestfs-availability.pod:50
30030 msgid "B<linuxmodules>"
30031 msgstr ""
30032
30033 #. type: textblock
30034 #: ../src/guestfs-availability.pod:52
30035 msgid "The following functions: L</guestfs_modprobe>"
30036 msgstr ""
30037
30038 #. type: =item
30039 #: ../src/guestfs-availability.pod:55
30040 msgid "B<linuxxattrs>"
30041 msgstr ""
30042
30043 #. type: textblock
30044 #: ../src/guestfs-availability.pod:57
30045 msgid ""
30046 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
30047 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
30048 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
30049 "L</guestfs_setxattr>"
30050 msgstr ""
30051
30052 #. type: =item
30053 #: ../src/guestfs-availability.pod:68
30054 msgid "B<luks>"
30055 msgstr ""
30056
30057 #. type: textblock
30058 #: ../src/guestfs-availability.pod:70
30059 msgid ""
30060 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
30061 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
30062 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
30063 msgstr ""
30064
30065 #. type: =item
30066 #: ../src/guestfs-availability.pod:79
30067 msgid "B<lvm2>"
30068 msgstr ""
30069
30070 #. type: textblock
30071 #: ../src/guestfs-availability.pod:81
30072 msgid ""
30073 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
30074 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
30075 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
30076 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
30077 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
30078 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
30079 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
30080 "L</guestfs_vgs_full>"
30081 msgstr ""
30082
30083 #. type: =item
30084 #: ../src/guestfs-availability.pod:104
30085 msgid "B<mknod>"
30086 msgstr ""
30087
30088 #. type: textblock
30089 #: ../src/guestfs-availability.pod:106
30090 msgid ""
30091 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
30092 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
30093 msgstr ""
30094
30095 #. type: =item
30096 #: ../src/guestfs-availability.pod:112
30097 msgid "B<ntfs3g>"
30098 msgstr ""
30099
30100 #. type: textblock
30101 #: ../src/guestfs-availability.pod:114
30102 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
30103 msgstr ""
30104
30105 #. type: =item
30106 #: ../src/guestfs-availability.pod:117
30107 msgid "B<ntfsprogs>"
30108 msgstr ""
30109
30110 #. type: textblock
30111 #: ../src/guestfs-availability.pod:119
30112 msgid ""
30113 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
30114 "L</guestfs_ntfsresize_size>"
30115 msgstr ""
30116
30117 #. type: =item
30118 #: ../src/guestfs-availability.pod:124
30119 msgid "B<realpath>"
30120 msgstr ""
30121
30122 #. type: textblock
30123 #: ../src/guestfs-availability.pod:126
30124 msgid "The following functions: L</guestfs_realpath>"
30125 msgstr ""
30126
30127 #. type: =item
30128 #: ../src/guestfs-availability.pod:129
30129 msgid "B<scrub>"
30130 msgstr ""
30131
30132 #. type: textblock
30133 #: ../src/guestfs-availability.pod:131
30134 msgid ""
30135 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
30136 "L</guestfs_scrub_freespace>"
30137 msgstr ""
30138
30139 #. type: =item
30140 #: ../src/guestfs-availability.pod:136
30141 msgid "B<selinux>"
30142 msgstr ""
30143
30144 #. type: textblock
30145 #: ../src/guestfs-availability.pod:138
30146 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
30147 msgstr ""
30148
30149 #. type: =item
30150 #: ../src/guestfs-availability.pod:142
30151 msgid "B<xz>"
30152 msgstr ""
30153
30154 #. type: textblock
30155 #: ../src/guestfs-availability.pod:144
30156 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
30157 msgstr ""
30158
30159 #. type: =item
30160 #: ../src/guestfs-availability.pod:148
30161 msgid "B<zerofree>"
30162 msgstr ""
30163
30164 #. type: textblock
30165 #: ../src/guestfs-availability.pod:150
30166 msgid "The following functions: L</guestfs_zerofree>"
30167 msgstr ""
30168
30169 #. type: =head2
30170 #: ../src/guestfs-structs.pod:1
30171 msgid "guestfs_int_bool"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs-structs.pod:3
30176 #, no-wrap
30177 msgid ""
30178 " struct guestfs_int_bool {\n"
30179 "   int32_t i;\n"
30180 "   int32_t b;\n"
30181 " };\n"
30182 " \n"
30183 msgstr ""
30184
30185 #. type: verbatim
30186 #: ../src/guestfs-structs.pod:8
30187 #, no-wrap
30188 msgid ""
30189 " struct guestfs_int_bool_list {\n"
30190 "   uint32_t len; /* Number of elements in list. */\n"
30191 "   struct guestfs_int_bool *val; /* Elements. */\n"
30192 " };\n"
30193 " \n"
30194 msgstr ""
30195
30196 #. type: verbatim
30197 #: ../src/guestfs-structs.pod:13
30198 #, no-wrap
30199 msgid ""
30200 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
30201 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
30202 "\n"
30203 msgstr ""
30204
30205 #. type: =head2
30206 #: ../src/guestfs-structs.pod:16
30207 msgid "guestfs_lvm_pv"
30208 msgstr ""
30209
30210 #. type: verbatim
30211 #: ../src/guestfs-structs.pod:18
30212 #, no-wrap
30213 msgid ""
30214 " struct guestfs_lvm_pv {\n"
30215 "   char *pv_name;\n"
30216 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30217 "*/\n"
30218 "   char pv_uuid[32];\n"
30219 "   char *pv_fmt;\n"
30220 "   uint64_t pv_size;\n"
30221 "   uint64_t dev_size;\n"
30222 "   uint64_t pv_free;\n"
30223 "   uint64_t pv_used;\n"
30224 "   char *pv_attr;\n"
30225 "   int64_t pv_pe_count;\n"
30226 "   int64_t pv_pe_alloc_count;\n"
30227 "   char *pv_tags;\n"
30228 "   uint64_t pe_start;\n"
30229 "   int64_t pv_mda_count;\n"
30230 "   uint64_t pv_mda_free;\n"
30231 " };\n"
30232 " \n"
30233 msgstr ""
30234
30235 #. type: verbatim
30236 #: ../src/guestfs-structs.pod:36
30237 #, no-wrap
30238 msgid ""
30239 " struct guestfs_lvm_pv_list {\n"
30240 "   uint32_t len; /* Number of elements in list. */\n"
30241 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
30242 " };\n"
30243 " \n"
30244 msgstr ""
30245
30246 #. type: verbatim
30247 #: ../src/guestfs-structs.pod:41
30248 #, no-wrap
30249 msgid ""
30250 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
30251 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
30252 "\n"
30253 msgstr ""
30254
30255 #. type: =head2
30256 #: ../src/guestfs-structs.pod:44
30257 msgid "guestfs_lvm_vg"
30258 msgstr ""
30259
30260 #. type: verbatim
30261 #: ../src/guestfs-structs.pod:46
30262 #, no-wrap
30263 msgid ""
30264 " struct guestfs_lvm_vg {\n"
30265 "   char *vg_name;\n"
30266 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30267 "*/\n"
30268 "   char vg_uuid[32];\n"
30269 "   char *vg_fmt;\n"
30270 "   char *vg_attr;\n"
30271 "   uint64_t vg_size;\n"
30272 "   uint64_t vg_free;\n"
30273 "   char *vg_sysid;\n"
30274 "   uint64_t vg_extent_size;\n"
30275 "   int64_t vg_extent_count;\n"
30276 "   int64_t vg_free_count;\n"
30277 "   int64_t max_lv;\n"
30278 "   int64_t max_pv;\n"
30279 "   int64_t pv_count;\n"
30280 "   int64_t lv_count;\n"
30281 "   int64_t snap_count;\n"
30282 "   int64_t vg_seqno;\n"
30283 "   char *vg_tags;\n"
30284 "   int64_t vg_mda_count;\n"
30285 "   uint64_t vg_mda_free;\n"
30286 " };\n"
30287 " \n"
30288 msgstr ""
30289
30290 #. type: verbatim
30291 #: ../src/guestfs-structs.pod:69
30292 #, no-wrap
30293 msgid ""
30294 " struct guestfs_lvm_vg_list {\n"
30295 "   uint32_t len; /* Number of elements in list. */\n"
30296 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30297 " };\n"
30298 " \n"
30299 msgstr ""
30300
30301 #. type: verbatim
30302 #: ../src/guestfs-structs.pod:74
30303 #, no-wrap
30304 msgid ""
30305 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30306 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30307 "\n"
30308 msgstr ""
30309
30310 #. type: =head2
30311 #: ../src/guestfs-structs.pod:77
30312 msgid "guestfs_lvm_lv"
30313 msgstr ""
30314
30315 #. type: verbatim
30316 #: ../src/guestfs-structs.pod:79
30317 #, no-wrap
30318 msgid ""
30319 " struct guestfs_lvm_lv {\n"
30320 "   char *lv_name;\n"
30321 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30322 "*/\n"
30323 "   char lv_uuid[32];\n"
30324 "   char *lv_attr;\n"
30325 "   int64_t lv_major;\n"
30326 "   int64_t lv_minor;\n"
30327 "   int64_t lv_kernel_major;\n"
30328 "   int64_t lv_kernel_minor;\n"
30329 "   uint64_t lv_size;\n"
30330 "   int64_t seg_count;\n"
30331 "   char *origin;\n"
30332 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30333 "   float snap_percent;\n"
30334 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30335 "   float copy_percent;\n"
30336 "   char *move_pv;\n"
30337 "   char *lv_tags;\n"
30338 "   char *mirror_log;\n"
30339 "   char *modules;\n"
30340 " };\n"
30341 " \n"
30342 msgstr ""
30343
30344 #. type: verbatim
30345 #: ../src/guestfs-structs.pod:101
30346 #, no-wrap
30347 msgid ""
30348 " struct guestfs_lvm_lv_list {\n"
30349 "   uint32_t len; /* Number of elements in list. */\n"
30350 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30351 " };\n"
30352 " \n"
30353 msgstr ""
30354
30355 #. type: verbatim
30356 #: ../src/guestfs-structs.pod:106
30357 #, no-wrap
30358 msgid ""
30359 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30360 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30361 "\n"
30362 msgstr ""
30363
30364 #. type: verbatim
30365 #: ../src/guestfs-structs.pod:111
30366 #, no-wrap
30367 msgid ""
30368 " struct guestfs_stat {\n"
30369 "   int64_t dev;\n"
30370 "   int64_t ino;\n"
30371 "   int64_t mode;\n"
30372 "   int64_t nlink;\n"
30373 "   int64_t uid;\n"
30374 "   int64_t gid;\n"
30375 "   int64_t rdev;\n"
30376 "   int64_t size;\n"
30377 "   int64_t blksize;\n"
30378 "   int64_t blocks;\n"
30379 "   int64_t atime;\n"
30380 "   int64_t mtime;\n"
30381 "   int64_t ctime;\n"
30382 " };\n"
30383 " \n"
30384 msgstr ""
30385
30386 #. type: verbatim
30387 #: ../src/guestfs-structs.pod:127
30388 #, no-wrap
30389 msgid ""
30390 " struct guestfs_stat_list {\n"
30391 "   uint32_t len; /* Number of elements in list. */\n"
30392 "   struct guestfs_stat *val; /* Elements. */\n"
30393 " };\n"
30394 " \n"
30395 msgstr ""
30396
30397 #. type: verbatim
30398 #: ../src/guestfs-structs.pod:132
30399 #, no-wrap
30400 msgid ""
30401 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30402 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30403 "\n"
30404 msgstr ""
30405
30406 #. type: verbatim
30407 #: ../src/guestfs-structs.pod:137
30408 #, no-wrap
30409 msgid ""
30410 " struct guestfs_statvfs {\n"
30411 "   int64_t bsize;\n"
30412 "   int64_t frsize;\n"
30413 "   int64_t blocks;\n"
30414 "   int64_t bfree;\n"
30415 "   int64_t bavail;\n"
30416 "   int64_t files;\n"
30417 "   int64_t ffree;\n"
30418 "   int64_t favail;\n"
30419 "   int64_t fsid;\n"
30420 "   int64_t flag;\n"
30421 "   int64_t namemax;\n"
30422 " };\n"
30423 " \n"
30424 msgstr ""
30425
30426 #. type: verbatim
30427 #: ../src/guestfs-structs.pod:151
30428 #, no-wrap
30429 msgid ""
30430 " struct guestfs_statvfs_list {\n"
30431 "   uint32_t len; /* Number of elements in list. */\n"
30432 "   struct guestfs_statvfs *val; /* Elements. */\n"
30433 " };\n"
30434 " \n"
30435 msgstr ""
30436
30437 #. type: verbatim
30438 #: ../src/guestfs-structs.pod:156
30439 #, no-wrap
30440 msgid ""
30441 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30442 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30443 "\n"
30444 msgstr ""
30445
30446 #. type: =head2
30447 #: ../src/guestfs-structs.pod:159
30448 msgid "guestfs_dirent"
30449 msgstr ""
30450
30451 #. type: verbatim
30452 #: ../src/guestfs-structs.pod:161
30453 #, no-wrap
30454 msgid ""
30455 " struct guestfs_dirent {\n"
30456 "   int64_t ino;\n"
30457 "   char ftyp;\n"
30458 "   char *name;\n"
30459 " };\n"
30460 " \n"
30461 msgstr ""
30462
30463 #. type: verbatim
30464 #: ../src/guestfs-structs.pod:167
30465 #, no-wrap
30466 msgid ""
30467 " struct guestfs_dirent_list {\n"
30468 "   uint32_t len; /* Number of elements in list. */\n"
30469 "   struct guestfs_dirent *val; /* Elements. */\n"
30470 " };\n"
30471 " \n"
30472 msgstr ""
30473
30474 #. type: verbatim
30475 #: ../src/guestfs-structs.pod:172
30476 #, no-wrap
30477 msgid ""
30478 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30479 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30480 "\n"
30481 msgstr ""
30482
30483 #. type: verbatim
30484 #: ../src/guestfs-structs.pod:177
30485 #, no-wrap
30486 msgid ""
30487 " struct guestfs_version {\n"
30488 "   int64_t major;\n"
30489 "   int64_t minor;\n"
30490 "   int64_t release;\n"
30491 "   char *extra;\n"
30492 " };\n"
30493 " \n"
30494 msgstr ""
30495
30496 #. type: verbatim
30497 #: ../src/guestfs-structs.pod:184
30498 #, no-wrap
30499 msgid ""
30500 " struct guestfs_version_list {\n"
30501 "   uint32_t len; /* Number of elements in list. */\n"
30502 "   struct guestfs_version *val; /* Elements. */\n"
30503 " };\n"
30504 " \n"
30505 msgstr ""
30506
30507 #. type: verbatim
30508 #: ../src/guestfs-structs.pod:189
30509 #, no-wrap
30510 msgid ""
30511 " void guestfs_free_version (struct guestfs_free_version *);\n"
30512 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30513 "\n"
30514 msgstr ""
30515
30516 #. type: =head2
30517 #: ../src/guestfs-structs.pod:192
30518 msgid "guestfs_xattr"
30519 msgstr ""
30520
30521 #. type: verbatim
30522 #: ../src/guestfs-structs.pod:194
30523 #, no-wrap
30524 msgid ""
30525 " struct guestfs_xattr {\n"
30526 "   char *attrname;\n"
30527 "   /* The next two fields describe a byte array. */\n"
30528 "   uint32_t attrval_len;\n"
30529 "   char *attrval;\n"
30530 " };\n"
30531 " \n"
30532 msgstr ""
30533
30534 #. type: verbatim
30535 #: ../src/guestfs-structs.pod:201
30536 #, no-wrap
30537 msgid ""
30538 " struct guestfs_xattr_list {\n"
30539 "   uint32_t len; /* Number of elements in list. */\n"
30540 "   struct guestfs_xattr *val; /* Elements. */\n"
30541 " };\n"
30542 " \n"
30543 msgstr ""
30544
30545 #. type: verbatim
30546 #: ../src/guestfs-structs.pod:206
30547 #, no-wrap
30548 msgid ""
30549 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30550 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30551 "\n"
30552 msgstr ""
30553
30554 #. type: =head2
30555 #: ../src/guestfs-structs.pod:209
30556 msgid "guestfs_inotify_event"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs-structs.pod:211
30561 #, no-wrap
30562 msgid ""
30563 " struct guestfs_inotify_event {\n"
30564 "   int64_t in_wd;\n"
30565 "   uint32_t in_mask;\n"
30566 "   uint32_t in_cookie;\n"
30567 "   char *in_name;\n"
30568 " };\n"
30569 " \n"
30570 msgstr ""
30571
30572 #. type: verbatim
30573 #: ../src/guestfs-structs.pod:218
30574 #, no-wrap
30575 msgid ""
30576 " struct guestfs_inotify_event_list {\n"
30577 "   uint32_t len; /* Number of elements in list. */\n"
30578 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30579 " };\n"
30580 " \n"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-structs.pod:223
30585 #, no-wrap
30586 msgid ""
30587 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30588 " void guestfs_free_inotify_event_list (struct "
30589 "guestfs_free_inotify_event_list *);\n"
30590 "\n"
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-structs.pod:226
30595 msgid "guestfs_partition"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-structs.pod:228
30600 #, no-wrap
30601 msgid ""
30602 " struct guestfs_partition {\n"
30603 "   int32_t part_num;\n"
30604 "   uint64_t part_start;\n"
30605 "   uint64_t part_end;\n"
30606 "   uint64_t part_size;\n"
30607 " };\n"
30608 " \n"
30609 msgstr ""
30610
30611 #. type: verbatim
30612 #: ../src/guestfs-structs.pod:235
30613 #, no-wrap
30614 msgid ""
30615 " struct guestfs_partition_list {\n"
30616 "   uint32_t len; /* Number of elements in list. */\n"
30617 "   struct guestfs_partition *val; /* Elements. */\n"
30618 " };\n"
30619 " \n"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-structs.pod:240
30624 #, no-wrap
30625 msgid ""
30626 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30627 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30628 "\n"
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs-structs.pod:243
30633 msgid "guestfs_application"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-structs.pod:245
30638 #, no-wrap
30639 msgid ""
30640 " struct guestfs_application {\n"
30641 "   char *app_name;\n"
30642 "   char *app_display_name;\n"
30643 "   int32_t app_epoch;\n"
30644 "   char *app_version;\n"
30645 "   char *app_release;\n"
30646 "   char *app_install_path;\n"
30647 "   char *app_trans_path;\n"
30648 "   char *app_publisher;\n"
30649 "   char *app_url;\n"
30650 "   char *app_source_package;\n"
30651 "   char *app_summary;\n"
30652 "   char *app_description;\n"
30653 " };\n"
30654 " \n"
30655 msgstr ""
30656
30657 #. type: verbatim
30658 #: ../src/guestfs-structs.pod:260
30659 #, no-wrap
30660 msgid ""
30661 " struct guestfs_application_list {\n"
30662 "   uint32_t len; /* Number of elements in list. */\n"
30663 "   struct guestfs_application *val; /* Elements. */\n"
30664 " };\n"
30665 " \n"
30666 msgstr ""
30667
30668 #. type: verbatim
30669 #: ../src/guestfs-structs.pod:265
30670 #, no-wrap
30671 msgid ""
30672 " void guestfs_free_application (struct guestfs_free_application *);\n"
30673 " void guestfs_free_application_list (struct guestfs_free_application_list "
30674 "*);\n"
30675 "\n"
30676 msgstr ""
30677
30678 #. type: textblock
30679 #: ../src/guestfs.pod:5
30680 msgid "guestfs - Library for accessing and modifying virtual machine images"
30681 msgstr ""
30682
30683 #. type: verbatim
30684 #: ../src/guestfs.pod:11
30685 #, no-wrap
30686 msgid ""
30687 " guestfs_h *g = guestfs_create ();\n"
30688 " guestfs_add_drive (g, \"guest.img\");\n"
30689 " guestfs_launch (g);\n"
30690 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30691 " guestfs_touch (g, \"/hello\");\n"
30692 " guestfs_umount (g, \"/\");\n"
30693 " guestfs_close (g);\n"
30694 "\n"
30695 msgstr ""
30696
30697 #. type: textblock
30698 #: ../src/guestfs.pod:25
30699 msgid ""
30700 "Libguestfs is a library for accessing and modifying guest disk images.  "
30701 "Amongst the things this is good for: making batch configuration changes to "
30702 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30703 "between virtualization systems (see also: virt-p2v), performing partial "
30704 "backups, performing partial guest clones, cloning guests and changing "
30705 "registry/UUID/hostname info, and much else besides."
30706 msgstr ""
30707
30708 #. type: textblock
30709 #: ../src/guestfs.pod:33
30710 msgid ""
30711 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30712 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30713 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30714 "qcow2, vmdk."
30715 msgstr ""
30716
30717 #. type: textblock
30718 #: ../src/guestfs.pod:38
30719 msgid ""
30720 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30721 "what filesystem is in each LV, etc.).  It can also run commands in the "
30722 "context of the guest.  Also you can access filesystems over FUSE."
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs.pod:43
30727 msgid ""
30728 "Libguestfs is a library that can be linked with C and C++ management "
30729 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30730 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
30731 "command line."
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../src/guestfs.pod:48
30736 msgid ""
30737 "You don't need to be root to use libguestfs, although obviously you do need "
30738 "enough permissions to access the disk images."
30739 msgstr ""
30740
30741 #. type: textblock
30742 #: ../src/guestfs.pod:51
30743 msgid ""
30744 "Libguestfs is a large API because it can do many things.  For a gentle "
30745 "introduction, please read the L</API OVERVIEW> section next."
30746 msgstr ""
30747
30748 #. type: textblock
30749 #: ../src/guestfs.pod:54
30750 msgid ""
30751 "There are also some example programs in the L<guestfs-examples(3)> manual "
30752 "page."
30753 msgstr ""
30754
30755 #. type: =head1
30756 #: ../src/guestfs.pod:57
30757 msgid "API OVERVIEW"
30758 msgstr ""
30759
30760 #. type: textblock
30761 #: ../src/guestfs.pod:59
30762 msgid ""
30763 "This section provides a gentler overview of the libguestfs API.  We also try "
30764 "to group API calls together, where that may not be obvious from reading "
30765 "about the individual calls in the main section of this manual."
30766 msgstr ""
30767
30768 #. type: =head2
30769 #: ../src/guestfs.pod:64
30770 msgid "HANDLES"
30771 msgstr ""
30772
30773 #. type: textblock
30774 #: ../src/guestfs.pod:66
30775 msgid ""
30776 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30777 "must add at least one disk image to the handle, followed by launching the "
30778 "handle, then performing whatever operations you want, and finally closing "
30779 "the handle.  By convention we use the single letter C<g> for the name of the "
30780 "handle variable, although of course you can use any name you want."
30781 msgstr ""
30782
30783 #. type: textblock
30784 #: ../src/guestfs.pod:73
30785 msgid "The general structure of all libguestfs-using programs looks like this:"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs.pod:76
30790 #, no-wrap
30791 msgid ""
30792 " guestfs_h *g = guestfs_create ();\n"
30793 " \n"
30794 msgstr ""
30795
30796 #. type: verbatim
30797 #: ../src/guestfs.pod:78
30798 #, no-wrap
30799 msgid ""
30800 " /* Call guestfs_add_drive additional times if there are\n"
30801 "  * multiple disk images.\n"
30802 "  */\n"
30803 " guestfs_add_drive (g, \"guest.img\");\n"
30804 " \n"
30805 msgstr ""
30806
30807 #. type: verbatim
30808 #: ../src/guestfs.pod:83
30809 #, no-wrap
30810 msgid ""
30811 " /* Most manipulation calls won't work until you've launched\n"
30812 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30813 "  * and _before_ other commands.\n"
30814 "  */\n"
30815 " guestfs_launch (g);\n"
30816 " \n"
30817 msgstr ""
30818
30819 #. type: verbatim
30820 #: ../src/guestfs.pod:89
30821 #, no-wrap
30822 msgid ""
30823 " /* Now you can examine what partitions, LVs etc are available.\n"
30824 "  */\n"
30825 " char **partitions = guestfs_list_partitions (g);\n"
30826 " char **logvols = guestfs_lvs (g);\n"
30827 " \n"
30828 msgstr ""
30829
30830 #. type: verbatim
30831 #: ../src/guestfs.pod:94
30832 #, no-wrap
30833 msgid ""
30834 " /* To access a filesystem in the image, you must mount it.\n"
30835 "  */\n"
30836 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30837 " \n"
30838 msgstr ""
30839
30840 #. type: verbatim
30841 #: ../src/guestfs.pod:98
30842 #, no-wrap
30843 msgid ""
30844 " /* Now you can perform filesystem actions on the guest\n"
30845 "  * disk image.\n"
30846 "  */\n"
30847 " guestfs_touch (g, \"/hello\");\n"
30848 " \n"
30849 msgstr ""
30850
30851 #. type: verbatim
30852 #: ../src/guestfs.pod:103
30853 #, no-wrap
30854 msgid ""
30855 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30856 "  * it is done automatically when you close the handle.  See\n"
30857 "  * discussion of autosync in this page.\n"
30858 "  */\n"
30859 " guestfs_sync (g);\n"
30860 " \n"
30861 msgstr ""
30862
30863 #. type: verbatim
30864 #: ../src/guestfs.pod:109
30865 #, no-wrap
30866 msgid ""
30867 " /* Close the handle 'g'. */\n"
30868 " guestfs_close (g);\n"
30869 "\n"
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs.pod:112
30874 msgid ""
30875 "The code above doesn't include any error checking.  In real code you should "
30876 "check return values carefully for errors.  In general all functions that "
30877 "return integers return C<-1> on error, and all functions that return "
30878 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30879 "how to handle errors, and consult the documentation for each function call "
30880 "below to see precisely how they return error indications.  See "
30881 "L<guestfs-examples(3)> for fully worked examples."
30882 msgstr ""
30883
30884 #. type: =head2
30885 #: ../src/guestfs.pod:121
30886 msgid "DISK IMAGES"
30887 msgstr ""
30888
30889 #. type: textblock
30890 #: ../src/guestfs.pod:123
30891 msgid ""
30892 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30893 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30894 "actual block device, or simply an empty file of zeroes that you have created "
30895 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30896 "of these."
30897 msgstr ""
30898
30899 #. type: textblock
30900 #: ../src/guestfs.pod:129
30901 msgid ""
30902 "The call you should use in modern code for adding drives is "
30903 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30904 "specifying that the format is raw, do:"
30905 msgstr ""
30906
30907 #. type: verbatim
30908 #: ../src/guestfs.pod:133
30909 #, no-wrap
30910 msgid ""
30911 " guestfs_add_drive_opts (g, filename,\n"
30912 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30913 "                         -1);\n"
30914 "\n"
30915 msgstr ""
30916
30917 #. type: textblock
30918 #: ../src/guestfs.pod:137
30919 msgid "You can add a disk read-only using:"
30920 msgstr ""
30921
30922 #. type: verbatim
30923 #: ../src/guestfs.pod:139
30924 #, no-wrap
30925 msgid ""
30926 " guestfs_add_drive_opts (g, filename,\n"
30927 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30928 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30929 "                         -1);\n"
30930 "\n"
30931 msgstr ""
30932
30933 #. type: textblock
30934 #: ../src/guestfs.pod:144
30935 msgid ""
30936 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30937 "libguestfs won't modify the file."
30938 msgstr ""
30939
30940 #. type: textblock
30941 #: ../src/guestfs.pod:147
30942 msgid ""
30943 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30944 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30945 "corruption, but adding it read-only is safe."
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs.pod:151
30950 msgid ""
30951 "You must add at least one disk image, and you may add multiple disk images.  "
30952 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30953 "first one you added), C</dev/sdb> (for the second one you added), etc."
30954 msgstr ""
30955
30956 #. type: textblock
30957 #: ../src/guestfs.pod:156
30958 msgid ""
30959 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30960 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30961 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30962 msgstr ""
30963
30964 #. type: =head2
30965 #: ../src/guestfs.pod:161
30966 msgid "MOUNTING"
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../src/guestfs.pod:163
30971 msgid ""
30972 "Before you can read or write files, create directories and so on in a disk "
30973 "image that contains filesystems, you have to mount those filesystems using "
30974 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30975 "a disk image contains (for example) one partition with a filesystem on that "
30976 "partition, then you can mount it directly:"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs.pod:170
30981 #, no-wrap
30982 msgid ""
30983 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30984 "\n"
30985 msgstr ""
30986
30987 #. type: textblock
30988 #: ../src/guestfs.pod:172
30989 msgid ""
30990 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30991 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30992 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30993 "that these are libguestfs virtual devices, and are nothing to do with host "
30994 "devices."
30995 msgstr ""
30996
30997 #. type: textblock
30998 #: ../src/guestfs.pod:178
30999 msgid ""
31000 "If you are given a disk image and you don't know what it contains then you "
31001 "have to find out.  Libguestfs can do that too: use "
31002 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
31003 "and LVs, and either try mounting each to see what is mountable, or else "
31004 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
31005 "filesystems, use L</guestfs_list_filesystems>."
31006 msgstr ""
31007
31008 #. type: textblock
31009 #: ../src/guestfs.pod:186
31010 msgid ""
31011 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
31012 "L</INSPECTION> below).  But you might find it easier to look at higher level "
31013 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
31014 msgstr ""
31015
31016 #. type: textblock
31017 #: ../src/guestfs.pod:191
31018 msgid ""
31019 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
31020 "several other variations of the C<guestfs_mount_*> call."
31021 msgstr ""
31022
31023 #. type: =head2
31024 #: ../src/guestfs.pod:194
31025 msgid "FILESYSTEM ACCESS AND MODIFICATION"
31026 msgstr ""
31027
31028 #. type: textblock
31029 #: ../src/guestfs.pod:196
31030 msgid ""
31031 "The majority of the libguestfs API consists of fairly low-level calls for "
31032 "accessing and modifying the files, directories, symlinks etc on mounted "
31033 "filesystems.  There are over a hundred such calls which you can find listed "
31034 "in detail below in this man page, and we don't even pretend to cover them "
31035 "all in this overview."
31036 msgstr ""
31037
31038 #. type: textblock
31039 #: ../src/guestfs.pod:202
31040 msgid ""
31041 "Specify filenames as full paths, starting with C<\"/\"> and including the "
31042 "mount point."
31043 msgstr ""
31044
31045 #. type: textblock
31046 #: ../src/guestfs.pod:205
31047 msgid ""
31048 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
31049 "the file called C<\"etc/passwd\"> then you could do:"
31050 msgstr ""
31051
31052 #. type: verbatim
31053 #: ../src/guestfs.pod:208
31054 #, no-wrap
31055 msgid ""
31056 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
31057 "\n"
31058 msgstr ""
31059
31060 #. type: textblock
31061 #: ../src/guestfs.pod:210
31062 msgid ""
31063 "This would return C<data> as a newly allocated buffer containing the full "
31064 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
31065 "or C<NULL> if there was an error."
31066 msgstr ""
31067
31068 #. type: textblock
31069 #: ../src/guestfs.pod:214
31070 msgid ""
31071 "As another example, to create a top-level directory on that filesystem "
31072 "called C<\"var\"> you would do:"
31073 msgstr ""
31074
31075 #. type: verbatim
31076 #: ../src/guestfs.pod:217
31077 #, no-wrap
31078 msgid ""
31079 " guestfs_mkdir (g, \"/var\");\n"
31080 "\n"
31081 msgstr ""
31082
31083 #. type: textblock
31084 #: ../src/guestfs.pod:219
31085 msgid "To create a symlink you could do:"
31086 msgstr ""
31087
31088 #. type: verbatim
31089 #: ../src/guestfs.pod:221
31090 #, no-wrap
31091 msgid ""
31092 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
31093 "               \"/etc/rc3.d/S30portmap\");\n"
31094 "\n"
31095 msgstr ""
31096
31097 #. type: textblock
31098 #: ../src/guestfs.pod:224
31099 msgid ""
31100 "Libguestfs will reject attempts to use relative paths and there is no "
31101 "concept of a current working directory."
31102 msgstr ""
31103
31104 #. type: textblock
31105 #: ../src/guestfs.pod:227
31106 msgid ""
31107 "Libguestfs can return errors in many situations: for example if the "
31108 "filesystem isn't writable, or if a file or directory that you requested "
31109 "doesn't exist.  If you are using the C API (documented here)  you have to "
31110 "check for those error conditions after each call.  (Other language bindings "
31111 "turn these errors into exceptions)."
31112 msgstr ""
31113
31114 #. type: textblock
31115 #: ../src/guestfs.pod:233
31116 msgid ""
31117 "File writes are affected by the per-handle umask, set by calling "
31118 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
31119 msgstr ""
31120
31121 #. type: =head2
31122 #: ../src/guestfs.pod:236
31123 msgid "PARTITIONING"
31124 msgstr ""
31125
31126 #. type: textblock
31127 #: ../src/guestfs.pod:238
31128 msgid ""
31129 "Libguestfs contains API calls to read, create and modify partition tables on "
31130 "disk images."
31131 msgstr ""
31132
31133 #. type: textblock
31134 #: ../src/guestfs.pod:241
31135 msgid ""
31136 "In the common case where you want to create a single partition covering the "
31137 "whole disk, you should use the L</guestfs_part_disk> call:"
31138 msgstr ""
31139
31140 #. type: verbatim
31141 #: ../src/guestfs.pod:245
31142 #, no-wrap
31143 msgid ""
31144 " const char *parttype = \"mbr\";\n"
31145 " if (disk_is_larger_than_2TB)\n"
31146 "   parttype = \"gpt\";\n"
31147 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
31148 "\n"
31149 msgstr ""
31150
31151 #. type: textblock
31152 #: ../src/guestfs.pod:250
31153 msgid ""
31154 "Obviously this effectively wipes anything that was on that disk image "
31155 "before."
31156 msgstr ""
31157
31158 #. type: =head2
31159 #: ../src/guestfs.pod:253
31160 msgid "LVM2"
31161 msgstr ""
31162
31163 #. type: textblock
31164 #: ../src/guestfs.pod:255
31165 msgid ""
31166 "Libguestfs provides access to a large part of the LVM2 API, such as "
31167 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
31168 "unless you familiarize yourself with the concepts of physical volumes, "
31169 "volume groups and logical volumes."
31170 msgstr ""
31171
31172 #. type: textblock
31173 #: ../src/guestfs.pod:260
31174 msgid ""
31175 "This author strongly recommends reading the LVM HOWTO, online at "
31176 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
31177 msgstr ""
31178
31179 #. type: =head2
31180 #: ../src/guestfs.pod:263
31181 msgid "DOWNLOADING"
31182 msgstr ""
31183
31184 #. type: textblock
31185 #: ../src/guestfs.pod:265
31186 msgid ""
31187 "Use L</guestfs_cat> to download small, text only files.  This call is "
31188 "limited to files which are less than 2 MB and which cannot contain any ASCII "
31189 "NUL (C<\\0>) characters.  However the API is very simple to use."
31190 msgstr ""
31191
31192 #. type: textblock
31193 #: ../src/guestfs.pod:269
31194 msgid ""
31195 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
31196 "bit data, since it returns a (pointer, size) pair.  However it is still "
31197 "limited to \"small\" files, less than 2 MB."
31198 msgstr ""
31199
31200 #. type: textblock
31201 #: ../src/guestfs.pod:273
31202 msgid ""
31203 "L</guestfs_download> can be used to download any file, with no limits on "
31204 "content or size (even files larger than 4 GB)."
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs.pod:276
31209 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
31210 msgstr ""
31211
31212 #. type: =head2
31213 #: ../src/guestfs.pod:279
31214 msgid "UPLOADING"
31215 msgstr ""
31216
31217 #. type: textblock
31218 #: ../src/guestfs.pod:281
31219 msgid ""
31220 "It's often the case that you want to write a file or files to the disk "
31221 "image."
31222 msgstr ""
31223
31224 #. type: textblock
31225 #: ../src/guestfs.pod:284
31226 msgid ""
31227 "To write a small file with fixed content, use L</guestfs_write>.  To create "
31228 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
31229 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
31230 "variety of other functions for creating test files, for example "
31231 "L</guestfs_fill> and L</guestfs_fill_pattern>."
31232 msgstr ""
31233
31234 #. type: textblock
31235 #: ../src/guestfs.pod:290
31236 msgid ""
31237 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
31238 "file content or size (even files larger than 4 GB)."
31239 msgstr ""
31240
31241 #. type: textblock
31242 #: ../src/guestfs.pod:293
31243 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
31244 msgstr ""
31245
31246 #. type: textblock
31247 #: ../src/guestfs.pod:295
31248 msgid ""
31249 "However the fastest way to upload I<large numbers of arbitrary files> is to "
31250 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
31251 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
31252 "the drive in a predictable way (eg. adding it last after all other drives) "
31253 "then you can get the device name from L</guestfs_list_devices> and mount it "
31254 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
31255 "sometimes non-portable between kernel versions, and they don't support "
31256 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
31257 "using a label or UUID, use an ISO image instead."
31258 msgstr ""
31259
31260 #. type: =head2
31261 #: ../src/guestfs.pod:306
31262 msgid "COPYING"
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs.pod:308
31267 msgid ""
31268 "There are various different commands for copying between files and devices "
31269 "and in and out of the guest filesystem.  These are summarised in the table "
31270 "below."
31271 msgstr ""
31272
31273 #. type: =item
31274 #: ../src/guestfs.pod:314
31275 msgid "B<file> to B<file>"
31276 msgstr ""
31277
31278 #. type: textblock
31279 #: ../src/guestfs.pod:316
31280 msgid ""
31281 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
31282 "directories recursively."
31283 msgstr ""
31284
31285 #. type: =item
31286 #: ../src/guestfs.pod:319
31287 msgid "B<file or device> to B<file or device>"
31288 msgstr ""
31289
31290 #. type: textblock
31291 #: ../src/guestfs.pod:321
31292 msgid ""
31293 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31294 "devices in the guest."
31295 msgstr ""
31296
31297 #. type: textblock
31298 #: ../src/guestfs.pod:324
31299 msgid "Example: duplicate the contents of an LV:"
31300 msgstr ""
31301
31302 #. type: verbatim
31303 #: ../src/guestfs.pod:326
31304 #, no-wrap
31305 msgid ""
31306 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31307 "\n"
31308 msgstr ""
31309
31310 #. type: textblock
31311 #: ../src/guestfs.pod:328
31312 msgid ""
31313 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31314 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
31315 "L</guestfs_copy_size>."
31316 msgstr ""
31317
31318 #. type: =item
31319 #: ../src/guestfs.pod:332
31320 msgid "B<file on the host> to B<file or device>"
31321 msgstr ""
31322
31323 #. type: textblock
31324 #: ../src/guestfs.pod:334
31325 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31326 msgstr ""
31327
31328 #. type: =item
31329 #: ../src/guestfs.pod:336
31330 msgid "B<file or device> to B<file on the host>"
31331 msgstr ""
31332
31333 #. type: textblock
31334 #: ../src/guestfs.pod:338
31335 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31336 msgstr ""
31337
31338 #. type: =head2
31339 #: ../src/guestfs.pod:342
31340 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31341 msgstr ""
31342
31343 #. type: textblock
31344 #: ../src/guestfs.pod:344
31345 msgid ""
31346 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
31347 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31348 "appears you can only upload and download to files.  However many Un*x-like "
31349 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
31350 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
31351 "stderr, and arbitrary file descriptor N."
31352 msgstr ""
31353
31354 #. type: textblock
31355 #: ../src/guestfs.pod:352
31356 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31357 msgstr ""
31358
31359 #. type: verbatim
31360 #: ../src/guestfs.pod:355
31361 #, no-wrap
31362 msgid ""
31363 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31364 "\n"
31365 msgstr ""
31366
31367 #. type: textblock
31368 #: ../src/guestfs.pod:357
31369 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31370 msgstr ""
31371
31372 #. type: verbatim
31373 #: ../src/guestfs.pod:359
31374 #, no-wrap
31375 msgid ""
31376 " char devfd[64];\n"
31377 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31378 " guestfs_tar_out (g, \"/\", devfd);\n"
31379 "\n"
31380 msgstr ""
31381
31382 #. type: =head2
31383 #: ../src/guestfs.pod:363
31384 msgid "LISTING FILES"
31385 msgstr ""
31386
31387 #. type: textblock
31388 #: ../src/guestfs.pod:365
31389 msgid ""
31390 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31391 "L<guestfish(1)>-equivalent command C<ll>)."
31392 msgstr ""
31393
31394 #. type: textblock
31395 #: ../src/guestfs.pod:368
31396 msgid ""
31397 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31398 "programs, as a flat list of strings."
31399 msgstr ""
31400
31401 #. type: textblock
31402 #: ../src/guestfs.pod:371
31403 msgid ""
31404 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31405 "directory, plus additional information about each one.  It is more "
31406 "equivalent to using the L<readdir(3)> call on a local filesystem."
31407 msgstr ""
31408
31409 #. type: textblock
31410 #: ../src/guestfs.pod:375
31411 msgid ""
31412 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
31413 "files."
31414 msgstr ""
31415
31416 #. type: =head2
31417 #: ../src/guestfs.pod:378
31418 msgid "RUNNING COMMANDS"
31419 msgstr ""
31420
31421 #. type: textblock
31422 #: ../src/guestfs.pod:380
31423 msgid ""
31424 "Although libguestfs is primarily an API for manipulating files inside guest "
31425 "images, we also provide some limited facilities for running commands inside "
31426 "guests."
31427 msgstr ""
31428
31429 #. type: textblock
31430 #: ../src/guestfs.pod:384
31431 msgid "There are many limitations to this:"
31432 msgstr ""
31433
31434 #. type: textblock
31435 #: ../src/guestfs.pod:390
31436 msgid ""
31437 "The kernel version that the command runs under will be different from what "
31438 "it expects."
31439 msgstr ""
31440
31441 #. type: textblock
31442 #: ../src/guestfs.pod:395
31443 msgid ""
31444 "If the command needs to communicate with daemons, then most likely they "
31445 "won't be running."
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs.pod:400
31450 msgid "The command will be running in limited memory."
31451 msgstr ""
31452
31453 #. type: textblock
31454 #: ../src/guestfs.pod:404
31455 msgid ""
31456 "The network may not be available unless you enable it (see "
31457 "L</guestfs_set_network>)."
31458 msgstr ""
31459
31460 #. type: textblock
31461 #: ../src/guestfs.pod:409
31462 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31463 msgstr ""
31464
31465 #. type: textblock
31466 #: ../src/guestfs.pod:413
31467 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31468 msgstr ""
31469
31470 #. type: textblock
31471 #: ../src/guestfs.pod:418
31472 msgid ""
31473 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31474 "See L</SELINUX> in this manpage."
31475 msgstr ""
31476
31477 #. type: textblock
31478 #: ../src/guestfs.pod:423
31479 msgid ""
31480 "I<Security:> It is not safe to run commands from untrusted, possibly "
31481 "malicious guests.  These commands may attempt to exploit your program by "
31482 "sending unexpected output.  They could also try to exploit the Linux kernel "
31483 "or qemu provided by the libguestfs appliance.  They could use the network "
31484 "provided by the libguestfs appliance to bypass ordinary network partitions "
31485 "and firewalls.  They could use the elevated privileges or different SELinux "
31486 "context of your program to their advantage."
31487 msgstr ""
31488
31489 #. type: textblock
31490 #: ../src/guestfs.pod:432
31491 msgid ""
31492 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31493 "(a script which runs when the guest next boots normally), and to have this "
31494 "script run the commands you want in the normal context of the running guest, "
31495 "network security and so on.  For information about other security issues, "
31496 "see L</SECURITY>."
31497 msgstr ""
31498
31499 #. type: textblock
31500 #: ../src/guestfs.pod:440
31501 msgid ""
31502 "The two main API calls to run commands are L</guestfs_command> and "
31503 "L</guestfs_sh> (there are also variations)."
31504 msgstr ""
31505
31506 #. type: textblock
31507 #: ../src/guestfs.pod:443
31508 msgid ""
31509 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31510 "shell globs, redirections, etc will work."
31511 msgstr ""
31512
31513 #. type: =head2
31514 #: ../src/guestfs.pod:446
31515 msgid "CONFIGURATION FILES"
31516 msgstr ""
31517
31518 #. type: textblock
31519 #: ../src/guestfs.pod:448
31520 msgid ""
31521 "To read and write configuration files in Linux guest filesystems, we "
31522 "strongly recommend using Augeas.  For example, Augeas understands how to "
31523 "read and write, say, a Linux shadow password file or X.org configuration "
31524 "file, and so avoids you having to write that code."
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs.pod:453
31529 msgid ""
31530 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31531 "document Augeas itself here because there is excellent documentation on the "
31532 "L<http://augeas.net/> website."
31533 msgstr ""
31534
31535 #. type: textblock
31536 #: ../src/guestfs.pod:457
31537 msgid ""
31538 "If you don't want to use Augeas (you fool!) then try calling "
31539 "L</guestfs_read_lines> to get the file as a list of lines which you can "
31540 "iterate over."
31541 msgstr ""
31542
31543 #. type: =head2
31544 #: ../src/guestfs.pod:461
31545 msgid "SELINUX"
31546 msgstr ""
31547
31548 #. type: textblock
31549 #: ../src/guestfs.pod:463
31550 msgid ""
31551 "We support SELinux guests.  To ensure that labeling happens correctly in "
31552 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31553 msgstr ""
31554
31555 #. type: textblock
31556 #: ../src/guestfs.pod:471
31557 msgid "Before launching, do:"
31558 msgstr ""
31559
31560 #. type: verbatim
31561 #: ../src/guestfs.pod:473
31562 #, no-wrap
31563 msgid ""
31564 " guestfs_set_selinux (g, 1);\n"
31565 "\n"
31566 msgstr ""
31567
31568 #. type: textblock
31569 #: ../src/guestfs.pod:477
31570 msgid ""
31571 "After mounting the guest's filesystem(s), load the policy.  This is best "
31572 "done by running the L<load_policy(8)> command in the guest itself:"
31573 msgstr ""
31574
31575 #. type: verbatim
31576 #: ../src/guestfs.pod:481
31577 #, no-wrap
31578 msgid ""
31579 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31580 "\n"
31581 msgstr ""
31582
31583 #. type: textblock
31584 #: ../src/guestfs.pod:483
31585 msgid ""
31586 "(Older versions of C<load_policy> require you to specify the name of the "
31587 "policy file)."
31588 msgstr ""
31589
31590 #. type: textblock
31591 #: ../src/guestfs.pod:488
31592 msgid ""
31593 "Optionally, set the security context for the API.  The correct security "
31594 "context to use can only be known by inspecting the guest.  As an example:"
31595 msgstr ""
31596
31597 #. type: verbatim
31598 #: ../src/guestfs.pod:492
31599 #, no-wrap
31600 msgid ""
31601 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31602 "\n"
31603 msgstr ""
31604
31605 #. type: textblock
31606 #: ../src/guestfs.pod:496
31607 msgid "This will work for running commands and editing existing files."
31608 msgstr ""
31609
31610 #. type: textblock
31611 #: ../src/guestfs.pod:498
31612 msgid ""
31613 "When new files are created, you may need to label them explicitly, for "
31614 "example by running the external command C<restorecon pathname>."
31615 msgstr ""
31616
31617 #. type: =head2
31618 #: ../src/guestfs.pod:502
31619 msgid "UMASK"
31620 msgstr ""
31621
31622 #. type: textblock
31623 #: ../src/guestfs.pod:504
31624 msgid ""
31625 "Certain calls are affected by the current file mode creation mask (the "
31626 "\"umask\").  In particular ones which create files or directories, such as "
31627 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31628 "either the default mode that the file is created with or modifies the mode "
31629 "that you supply."
31630 msgstr ""
31631
31632 #. type: textblock
31633 #: ../src/guestfs.pod:510
31634 msgid ""
31635 "The default umask is C<022>, so files are created with modes such as C<0644> "
31636 "and directories with C<0755>."
31637 msgstr ""
31638
31639 #. type: textblock
31640 #: ../src/guestfs.pod:513
31641 msgid ""
31642 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31643 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
31644 "L</guestfs_chmod> after creating each file or directory."
31645 msgstr ""
31646
31647 #. type: textblock
31648 #: ../src/guestfs.pod:517
31649 msgid "For more information about umask, see L<umask(2)>."
31650 msgstr ""
31651
31652 #. type: textblock
31653 #: ../src/guestfs.pod:521
31654 msgid ""
31655 "Libguestfs allows you to access Linux guests which have been encrypted using "
31656 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31657 "standard.  This includes nearly all whole disk encryption systems used by "
31658 "modern Linux guests."
31659 msgstr ""
31660
31661 #. type: textblock
31662 #: ../src/guestfs.pod:527
31663 msgid ""
31664 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31665 "returns the string C<crypto_LUKS>)."
31666 msgstr ""
31667
31668 #. type: textblock
31669 #: ../src/guestfs.pod:530
31670 msgid ""
31671 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31672 "will require the passphrase!"
31673 msgstr ""
31674
31675 #. type: textblock
31676 #: ../src/guestfs.pod:533
31677 msgid ""
31678 "Opening a LUKS device creates a new device mapper device called "
31679 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
31680 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
31681 "decrypted from and encrypted to the underlying block device respectively."
31682 msgstr ""
31683
31684 #. type: textblock
31685 #: ../src/guestfs.pod:539
31686 msgid ""
31687 "LVM volume groups on the device can be made visible by calling "
31688 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
31689 "volume(s) can now be mounted in the usual way."
31690 msgstr ""
31691
31692 #. type: textblock
31693 #: ../src/guestfs.pod:543
31694 msgid ""
31695 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31696 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31697 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
31698 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31699 "underlying encrypted block device)."
31700 msgstr ""
31701
31702 #. type: =head2
31703 #: ../src/guestfs.pod:550
31704 msgid "INSPECTION"
31705 msgstr ""
31706
31707 #. type: textblock
31708 #: ../src/guestfs.pod:552
31709 msgid ""
31710 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31711 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31712 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31713 "version 1.5.3 the most frequently used part of this library has been "
31714 "rewritten in C and moved into the core code)."
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs.pod:559
31719 msgid ""
31720 "Add all disks belonging to the unknown virtual machine and call "
31721 "L</guestfs_launch> in the usual way."
31722 msgstr ""
31723
31724 #. type: textblock
31725 #: ../src/guestfs.pod:562
31726 msgid ""
31727 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31728 "and certain heuristics, and returns a list of operating systems that were "
31729 "found.  An empty list means none were found.  A single element is the root "
31730 "filesystem of the operating system.  For dual- or multi-boot guests, "
31731 "multiple roots can be returned, each one corresponding to a separate "
31732 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31733 "world of virtualization, but since this scenario can happen, we have built "
31734 "libguestfs to deal with it.)"
31735 msgstr ""
31736
31737 #. type: textblock
31738 #: ../src/guestfs.pod:571
31739 msgid ""
31740 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31741 "to get additional details about that operating system.  For example, call "
31742 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31743 "Windows and Linux-based operating systems respectively."
31744 msgstr ""
31745
31746 #. type: textblock
31747 #: ../src/guestfs.pod:577
31748 msgid ""
31749 "Un*x-like and Linux-based operating systems usually consist of several "
31750 "filesystems which are mounted at boot time (for example, a separate boot "
31751 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31752 "filesystems correspond to mount points.  Call "
31753 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31754 "hash table like this example:"
31755 msgstr ""
31756
31757 #. type: verbatim
31758 #: ../src/guestfs.pod:584
31759 #, no-wrap
31760 msgid ""
31761 " /boot => /dev/sda1\n"
31762 " /     => /dev/vg_guest/lv_root\n"
31763 " /usr  => /dev/vg_guest/lv_usr\n"
31764 "\n"
31765 msgstr ""
31766
31767 #. type: textblock
31768 #: ../src/guestfs.pod:588
31769 msgid ""
31770 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31771 "filesystems as suggested."
31772 msgstr ""
31773
31774 #. type: textblock
31775 #: ../src/guestfs.pod:591
31776 msgid ""
31777 "Be careful to mount filesystems in the right order (eg. C</> before "
31778 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31779 "work."
31780 msgstr ""
31781
31782 #. type: textblock
31783 #: ../src/guestfs.pod:595
31784 msgid ""
31785 "Inspection currently only works for some common operating systems.  "
31786 "Contributors are welcome to send patches for other operating systems that we "
31787 "currently cannot detect."
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs.pod:599
31792 msgid ""
31793 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31794 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31795 "encrypted devices."
31796 msgstr ""
31797
31798 #. type: textblock
31799 #: ../src/guestfs.pod:603
31800 msgid ""
31801 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31802 "inspection and caches the results in the guest handle.  Subsequent calls to "
31803 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31804 "re-read the disks.  If you change the content of the guest disks, you can "
31805 "redo inspection by calling L</guestfs_inspect_os> again.  "
31806 "(L</guestfs_inspect_list_applications> works a little differently from the "
31807 "other calls and does read the disks.  See documentation for that function "
31808 "for details)."
31809 msgstr ""
31810
31811 #. type: =head3
31812 #: ../src/guestfs.pod:612
31813 msgid "INSPECTING INSTALL DISKS"
31814 msgstr ""
31815
31816 #. type: textblock
31817 #: ../src/guestfs.pod:614
31818 msgid ""
31819 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31820 "CDs and more."
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:617
31825 msgid ""
31826 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31827 "system, which currently can be C<installed> (a regular operating system) or "
31828 "C<installer> (some sort of install disk)."
31829 msgstr ""
31830
31831 #. type: textblock
31832 #: ../src/guestfs.pod:621
31833 msgid ""
31834 "Further information is available about the operating system that can be "
31835 "installed using the regular inspection APIs like "
31836 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31837 "etc."
31838 msgstr ""
31839
31840 #. type: textblock
31841 #: ../src/guestfs.pod:626
31842 msgid ""
31843 "Some additional information specific to installer disks is also available "
31844 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31845 "L</guestfs_inspect_is_multipart> calls."
31846 msgstr ""
31847
31848 #. type: =head2
31849 #: ../src/guestfs.pod:631
31850 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31851 msgstr ""
31852
31853 #. type: textblock
31854 #: ../src/guestfs.pod:633
31855 msgid ""
31856 "Libguestfs can mount NTFS partitions.  It does this using the "
31857 "L<http://www.ntfs-3g.org/> driver."
31858 msgstr ""
31859
31860 #. type: =head3
31861 #: ../src/guestfs.pod:636
31862 msgid "DRIVE LETTERS AND PATHS"
31863 msgstr ""
31864
31865 #. type: textblock
31866 #: ../src/guestfs.pod:638
31867 msgid ""
31868 "DOS and Windows still use drive letters, and the filesystems are always "
31869 "treated as case insensitive by Windows itself, and therefore you might find "
31870 "a Windows configuration file referring to a path like "
31871 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31872 "that directory might be referred to as C</WINDOWS/System32>."
31873 msgstr ""
31874
31875 #. type: textblock
31876 #: ../src/guestfs.pod:644
31877 msgid ""
31878 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31879 "L</guestfs_inspect_get_drive_mappings>)"
31880 msgstr ""
31881
31882 #. type: textblock
31883 #: ../src/guestfs.pod:647
31884 msgid ""
31885 "Dealing with separator characters (backslash vs forward slash) is outside "
31886 "the scope of libguestfs, but usually a simple character replacement will "
31887 "work."
31888 msgstr ""
31889
31890 #. type: textblock
31891 #: ../src/guestfs.pod:651
31892 msgid ""
31893 "To resolve the case insensitivity of paths, call "
31894 "L</guestfs_case_sensitive_path>."
31895 msgstr ""
31896
31897 #. type: =head3
31898 #: ../src/guestfs.pod:654
31899 msgid "ACCESSING THE WINDOWS REGISTRY"
31900 msgstr ""
31901
31902 #. type: textblock
31903 #: ../src/guestfs.pod:656
31904 msgid ""
31905 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31906 "files, through the library C<hivex> which is part of the libguestfs project "
31907 "although ships as a separate tarball.  You have to locate and download the "
31908 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31909 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31910 "L<virt-win-reg(1)> for more help on this issue."
31911 msgstr ""
31912
31913 #. type: =head3
31914 #: ../src/guestfs.pod:664
31915 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31916 msgstr ""
31917
31918 #. type: textblock
31919 #: ../src/guestfs.pod:666
31920 msgid ""
31921 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31922 "provide something which looks like a Linux symlink.  The way it tries to do "
31923 "the rewriting is described here:"
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs.pod:670
31928 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31929 msgstr ""
31930
31931 #. type: textblock
31932 #: ../src/guestfs.pod:672
31933 msgid ""
31934 "The essential problem is that ntfs-3g simply does not have enough "
31935 "information to do a correct job.  NTFS links can contain drive letters and "
31936 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31937 "It is almost certainly the case that libguestfs callers should ignore what "
31938 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31939 msgstr ""
31940
31941 #. type: textblock
31942 #: ../src/guestfs.pod:679
31943 msgid ""
31944 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31945 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31946 "attribute, and read the raw reparse data from that (you can find the format "
31947 "documented in various places around the web)."
31948 msgstr ""
31949
31950 #. type: =head3
31951 #: ../src/guestfs.pod:684
31952 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31953 msgstr ""
31954
31955 #. type: textblock
31956 #: ../src/guestfs.pod:686
31957 msgid ""
31958 "There are other useful extended attributes that can be read from ntfs-3g "
31959 "filesystems (using L</guestfs_getxattr>).  See:"
31960 msgstr ""
31961
31962 #. type: textblock
31963 #: ../src/guestfs.pod:689
31964 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31965 msgstr ""
31966
31967 #. type: =head2
31968 #: ../src/guestfs.pod:691
31969 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31970 msgstr ""
31971
31972 #. type: textblock
31973 #: ../src/guestfs.pod:693
31974 msgid ""
31975 "Although we don't want to discourage you from using the C API, we will "
31976 "mention here that the same API is also available in other languages."
31977 msgstr ""
31978
31979 #. type: textblock
31980 #: ../src/guestfs.pod:696
31981 msgid ""
31982 "The API is broadly identical in all supported languages.  This means that "
31983 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31984 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31985 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31986 "each language."
31987 msgstr ""
31988
31989 #. type: textblock
31990 #: ../src/guestfs.pod:702
31991 msgid ""
31992 "Error messages are automatically transformed into exceptions if the language "
31993 "supports it."
31994 msgstr ""
31995
31996 #. type: textblock
31997 #: ../src/guestfs.pod:705
31998 msgid ""
31999 "We don't try to \"object orientify\" parts of the API in OO languages, "
32000 "although contributors are welcome to write higher level APIs above what we "
32001 "provide in their favourite languages if they wish."
32002 msgstr ""
32003
32004 #. type: =item
32005 #: ../src/guestfs.pod:711
32006 msgid "B<C++>"
32007 msgstr ""
32008
32009 #. type: textblock
32010 #: ../src/guestfs.pod:713
32011 msgid ""
32012 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
32013 "identical to the C API.  C++ classes and exceptions are not used."
32014 msgstr ""
32015
32016 #. type: =item
32017 #: ../src/guestfs.pod:717
32018 msgid "B<C#>"
32019 msgstr ""
32020
32021 #. type: textblock
32022 #: ../src/guestfs.pod:719
32023 msgid ""
32024 "The C# bindings are highly experimental.  Please read the warnings at the "
32025 "top of C<csharp/Libguestfs.cs>."
32026 msgstr ""
32027
32028 #. type: =item
32029 #: ../src/guestfs.pod:722
32030 msgid "B<Erlang>"
32031 msgstr ""
32032
32033 #. type: textblock
32034 #: ../src/guestfs.pod:724
32035 msgid "See L<guestfs-erlang(3)>."
32036 msgstr ""
32037
32038 #. type: =item
32039 #: ../src/guestfs.pod:726
32040 msgid "B<Haskell>"
32041 msgstr ""
32042
32043 #. type: textblock
32044 #: ../src/guestfs.pod:728
32045 msgid ""
32046 "This is the only language binding that is working but incomplete.  Only "
32047 "calls which return simple integers have been bound in Haskell, and we are "
32048 "looking for help to complete this binding."
32049 msgstr ""
32050
32051 #. type: =item
32052 #: ../src/guestfs.pod:732
32053 msgid "B<Java>"
32054 msgstr ""
32055
32056 #. type: textblock
32057 #: ../src/guestfs.pod:734
32058 msgid ""
32059 "Full documentation is contained in the Javadoc which is distributed with "
32060 "libguestfs.  For examples, see L<guestfs-java(3)>."
32061 msgstr ""
32062
32063 #. type: =item
32064 #: ../src/guestfs.pod:737
32065 msgid "B<OCaml>"
32066 msgstr ""
32067
32068 #. type: textblock
32069 #: ../src/guestfs.pod:739
32070 msgid "See L<guestfs-ocaml(3)>."
32071 msgstr ""
32072
32073 #. type: =item
32074 #: ../src/guestfs.pod:741
32075 msgid "B<Perl>"
32076 msgstr ""
32077
32078 #. type: textblock
32079 #: ../src/guestfs.pod:743
32080 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
32081 msgstr ""
32082
32083 #. type: =item
32084 #: ../src/guestfs.pod:745
32085 msgid "B<PHP>"
32086 msgstr ""
32087
32088 #. type: textblock
32089 #: ../src/guestfs.pod:747
32090 msgid ""
32091 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
32092 "the php-libguestfs package for your distribution."
32093 msgstr ""
32094
32095 #. type: textblock
32096 #: ../src/guestfs.pod:750
32097 msgid "The PHP binding only works correctly on 64 bit machines."
32098 msgstr ""
32099
32100 #. type: =item
32101 #: ../src/guestfs.pod:752
32102 msgid "B<Python>"
32103 msgstr ""
32104
32105 #. type: textblock
32106 #: ../src/guestfs.pod:754
32107 msgid "See L<guestfs-python(3)>."
32108 msgstr ""
32109
32110 #. type: =item
32111 #: ../src/guestfs.pod:756
32112 msgid "B<Ruby>"
32113 msgstr ""
32114
32115 #. type: textblock
32116 #: ../src/guestfs.pod:758
32117 msgid "See L<guestfs-ruby(3)>."
32118 msgstr ""
32119
32120 #. type: =item
32121 #: ../src/guestfs.pod:760
32122 msgid "B<shell scripts>"
32123 msgstr ""
32124
32125 #. type: textblock
32126 #: ../src/guestfs.pod:762
32127 msgid "See L<guestfish(1)>."
32128 msgstr ""
32129
32130 #. type: =head2
32131 #: ../src/guestfs.pod:766
32132 msgid "LIBGUESTFS GOTCHAS"
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:768
32137 msgid ""
32138 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
32139 "system [...] that works in the way it is documented but is counterintuitive "
32140 "and almost invites mistakes.\""
32141 msgstr ""
32142
32143 #. type: textblock
32144 #: ../src/guestfs.pod:772
32145 msgid ""
32146 "Since we developed libguestfs and the associated tools, there are several "
32147 "things we would have designed differently, but are now stuck with for "
32148 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
32149 "release, you can expect these to change.  Beware of them."
32150 msgstr ""
32151
32152 #. type: =item
32153 #: ../src/guestfs.pod:780
32154 msgid "Autosync / forgetting to sync."
32155 msgstr ""
32156
32157 #. type: textblock
32158 #: ../src/guestfs.pod:782
32159 msgid ""
32160 "I<Update:> Autosync is enabled by default for all API users starting from "
32161 "libguestfs 1.5.24.  This section only applies to older versions."
32162 msgstr ""
32163
32164 #. type: textblock
32165 #: ../src/guestfs.pod:785
32166 msgid ""
32167 "When modifying a filesystem from C or another language, you B<must> unmount "
32168 "all filesystems and call L</guestfs_sync> explicitly before you close the "
32169 "libguestfs handle.  You can also call:"
32170 msgstr ""
32171
32172 #. type: verbatim
32173 #: ../src/guestfs.pod:789
32174 #, no-wrap
32175 msgid ""
32176 " guestfs_set_autosync (g, 1);\n"
32177 "\n"
32178 msgstr ""
32179
32180 #. type: textblock
32181 #: ../src/guestfs.pod:791
32182 msgid ""
32183 "to have the unmount/sync done automatically for you when the handle 'g' is "
32184 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
32185 "q.v.)"
32186 msgstr ""
32187
32188 #. type: textblock
32189 #: ../src/guestfs.pod:795
32190 msgid ""
32191 "If you forget to do this, then it is entirely possible that your changes "
32192 "won't be written out, or will be partially written, or (very rarely) that "
32193 "you'll get disk corruption."
32194 msgstr ""
32195
32196 #. type: textblock
32197 #: ../src/guestfs.pod:799
32198 msgid ""
32199 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
32200 "guestfish scripts that forget to sync will work just fine, which can make "
32201 "this very puzzling if you are trying to debug a problem."
32202 msgstr ""
32203
32204 #. type: =item
32205 #: ../src/guestfs.pod:803
32206 msgid "Mount option C<-o sync> should not be the default."
32207 msgstr ""
32208
32209 #. type: textblock
32210 #: ../src/guestfs.pod:805
32211 msgid ""
32212 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
32213 "libguestfs 1.13.16.  This section only applies to older versions."
32214 msgstr ""
32215
32216 #. type: textblock
32217 #: ../src/guestfs.pod:808
32218 msgid ""
32219 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
32220 "However C<-o sync> does not add any reliability benefit, but does have a "
32221 "very large performance impact."
32222 msgstr ""
32223
32224 #. type: textblock
32225 #: ../src/guestfs.pod:812
32226 msgid ""
32227 "The work around is to use L</guestfs_mount_options> and set the mount "
32228 "options that you actually want to use."
32229 msgstr ""
32230
32231 #. type: =item
32232 #: ../src/guestfs.pod:815
32233 msgid "Read-only should be the default."
32234 msgstr ""
32235
32236 #. type: textblock
32237 #: ../src/guestfs.pod:817
32238 msgid ""
32239 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
32240 "specify I<--rw> if you want to make changes to the image."
32241 msgstr ""
32242
32243 #. type: textblock
32244 #: ../src/guestfs.pod:820
32245 msgid "This would reduce the potential to corrupt live VM images."
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs.pod:822
32250 msgid ""
32251 "Note that many filesystems change the disk when you just mount and unmount, "
32252 "even if you didn't perform any writes.  You need to use "
32253 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
32254 msgstr ""
32255
32256 #. type: =item
32257 #: ../src/guestfs.pod:826
32258 msgid "guestfish command line is hard to use."
32259 msgstr ""
32260
32261 #. type: textblock
32262 #: ../src/guestfs.pod:828
32263 msgid ""
32264 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
32265 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
32266 "exist, so it fails.  In earlier versions of guestfish the error message was "
32267 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
32268 "we should have used C<guestfish -c command> to run commands."
32269 msgstr ""
32270
32271 #. type: =item
32272 #: ../src/guestfs.pod:835
32273 msgid "guestfish megabyte modifiers don't work right on all commands"
32274 msgstr ""
32275
32276 #. type: textblock
32277 #: ../src/guestfs.pod:837
32278 msgid ""
32279 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
32280 "other modifiers).  What guestfish actually does is to multiply the number "
32281 "part by the modifier part and pass the result to the C API.  However this "
32282 "doesn't work for a few APIs which aren't expecting bytes, but are already "
32283 "expecting some other unit (eg. megabytes)."
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs.pod:844
32288 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
32289 msgstr ""
32290
32291 #. type: verbatim
32292 #: ../src/guestfs.pod:846
32293 #, no-wrap
32294 msgid ""
32295 " lvcreate LV VG 100M\n"
32296 "\n"
32297 msgstr ""
32298
32299 #. type: textblock
32300 #: ../src/guestfs.pod:848
32301 msgid ""
32302 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32303 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32304 "megabytes * megabytes) logical volume.  The error message you get from this "
32305 "is also a little obscure."
32306 msgstr ""
32307
32308 #. type: textblock
32309 #: ../src/guestfs.pod:853
32310 msgid ""
32311 "This could be fixed in the generator by specially marking parameters and "
32312 "return values which take bytes or other units."
32313 msgstr ""
32314
32315 #. type: =item
32316 #: ../src/guestfs.pod:856
32317 msgid "Ambiguity between devices and paths"
32318 msgstr ""
32319
32320 #. type: textblock
32321 #: ../src/guestfs.pod:858
32322 msgid ""
32323 "There is a subtle ambiguity in the API between a device name "
32324 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
32325 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32326 msgstr ""
32327
32328 #. type: textblock
32329 #: ../src/guestfs.pod:863
32330 msgid ""
32331 "In the current API we usually resolve this ambiguity by having two separate "
32332 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32333 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32334 "detecting if the path supplied begins with C</dev/>."
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:869
32339 msgid ""
32340 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32341 "make paths/devices into structured names.  One way to do this would be to "
32342 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32343 "aspect of grub.  Another way would be to use a structured type, equivalent "
32344 "to this OCaml type:"
32345 msgstr ""
32346
32347 #. type: verbatim
32348 #: ../src/guestfs.pod:875
32349 #, no-wrap
32350 msgid ""
32351 " type path = Path of string | Device of int | Partition of int * int\n"
32352 "\n"
32353 msgstr ""
32354
32355 #. type: textblock
32356 #: ../src/guestfs.pod:877
32357 msgid "which would allow you to pass arguments like:"
32358 msgstr ""
32359
32360 #. type: verbatim
32361 #: ../src/guestfs.pod:879
32362 #, no-wrap
32363 msgid ""
32364 " Path \"/foo/bar\"\n"
32365 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32366 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32367 " Path \"/dev/sdb2\"    (* not a device *)\n"
32368 "\n"
32369 msgstr ""
32370
32371 #. type: textblock
32372 #: ../src/guestfs.pod:884
32373 msgid ""
32374 "As you can see there are still problems to resolve even with this "
32375 "representation.  Also consider how it might work in guestfish."
32376 msgstr ""
32377
32378 #. type: =head2
32379 #: ../src/guestfs.pod:889
32380 msgid "KEYS AND PASSPHRASES"
32381 msgstr ""
32382
32383 #. type: textblock
32384 #: ../src/guestfs.pod:891
32385 msgid ""
32386 "Certain libguestfs calls take a parameter that contains sensitive key "
32387 "material, passed in as a C string."
32388 msgstr ""
32389
32390 #. type: textblock
32391 #: ../src/guestfs.pod:894
32392 msgid ""
32393 "In the future we would hope to change the libguestfs implementation so that "
32394 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32395 "swap.  However this is I<not> done at the moment, because of the complexity "
32396 "of such an implementation."
32397 msgstr ""
32398
32399 #. type: textblock
32400 #: ../src/guestfs.pod:899
32401 msgid ""
32402 "Therefore you should be aware that any key parameter you pass to libguestfs "
32403 "might end up being written out to the swap partition.  If this is a concern, "
32404 "scrub the swap partition or don't use libguestfs on encrypted devices."
32405 msgstr ""
32406
32407 #. type: =head2
32408 #: ../src/guestfs.pod:904
32409 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32410 msgstr ""
32411
32412 #. type: textblock
32413 #: ../src/guestfs.pod:906
32414 msgid ""
32415 "All high-level libguestfs actions are synchronous.  If you want to use "
32416 "libguestfs asynchronously then you must create a thread."
32417 msgstr ""
32418
32419 #. type: textblock
32420 #: ../src/guestfs.pod:909
32421 msgid ""
32422 "Only use the handle from a single thread.  Either use the handle exclusively "
32423 "from one thread, or provide your own mutex so that two threads cannot issue "
32424 "calls on the same handle at the same time."
32425 msgstr ""
32426
32427 #. type: textblock
32428 #: ../src/guestfs.pod:913
32429 msgid ""
32430 "See the graphical program guestfs-browser for one possible architecture for "
32431 "multithreaded programs using libvirt and libguestfs."
32432 msgstr ""
32433
32434 #. type: =head2
32435 #: ../src/guestfs.pod:916
32436 msgid "PATH"
32437 msgstr ""
32438
32439 #. type: textblock
32440 #: ../src/guestfs.pod:918
32441 msgid ""
32442 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32443 "internal path."
32444 msgstr ""
32445
32446 #. type: textblock
32447 #: ../src/guestfs.pod:921
32448 msgid ""
32449 "By default it looks for these in the directory C<$libdir/guestfs> "
32450 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32451 msgstr ""
32452
32453 #. type: textblock
32454 #: ../src/guestfs.pod:924
32455 msgid ""
32456 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32457 "to change the directories that libguestfs will search in.  The value is a "
32458 "colon-separated list of paths.  The current directory is I<not> searched "
32459 "unless the path contains an empty element or C<.>.  For example "
32460 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32461 "then C</usr/lib/guestfs>."
32462 msgstr ""
32463
32464 #. type: =head2
32465 #: ../src/guestfs.pod:931
32466 msgid "QEMU WRAPPERS"
32467 msgstr ""
32468
32469 #. type: textblock
32470 #: ../src/guestfs.pod:933
32471 msgid ""
32472 "If you want to compile your own qemu, run qemu from a non-standard location, "
32473 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32474 "around qemu."
32475 msgstr ""
32476
32477 #. type: textblock
32478 #: ../src/guestfs.pod:937
32479 msgid ""
32480 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32481 "last command in the shell script (so that qemu replaces the shell and "
32482 "becomes the direct child of the libguestfs-using program).  If you don't do "
32483 "this, then the qemu process won't be cleaned up correctly."
32484 msgstr ""
32485
32486 #. type: textblock
32487 #: ../src/guestfs.pod:942
32488 msgid ""
32489 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32490 "source:"
32491 msgstr ""
32492
32493 #. type: verbatim
32494 #: ../src/guestfs.pod:945
32495 #, no-wrap
32496 msgid ""
32497 " #!/bin/sh -\n"
32498 " qemudir=/home/rjones/d/qemu\n"
32499 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
32500 "\"$@\"\n"
32501 "\n"
32502 msgstr ""
32503
32504 #. type: textblock
32505 #: ../src/guestfs.pod:949
32506 msgid ""
32507 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32508 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32509 "example:"
32510 msgstr ""
32511
32512 #. type: verbatim
32513 #: ../src/guestfs.pod:953
32514 #, no-wrap
32515 msgid ""
32516 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32517 "\n"
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:955
32522 msgid ""
32523 "Note that libguestfs also calls qemu with the -help and -version options in "
32524 "order to determine features."
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:958
32529 msgid ""
32530 "Wrappers can also be used to edit the options passed to qemu.  In the "
32531 "following example, the C<-machine ...> option (C<-machine> and the following "
32532 "argument) are removed from the command line and replaced with C<-machine "
32533 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
32534 "right one to remove, putting the remaining options into the C<args> array."
32535 msgstr ""
32536
32537 #. type: verbatim
32538 #: ../src/guestfs.pod:965
32539 #, no-wrap
32540 msgid ""
32541 " #!/bin/bash -\n"
32542 " \n"
32543 msgstr ""
32544
32545 #. type: verbatim
32546 #: ../src/guestfs.pod:967
32547 #, no-wrap
32548 msgid ""
32549 " i=0\n"
32550 " while [ $# -gt 0 ]; do\n"
32551 "     case \"$1\" in\n"
32552 "     -machine)\n"
32553 "         shift 2;;\n"
32554 "     *)\n"
32555 "         args[i]=\"$1\"\n"
32556 "         (( i++ ))\n"
32557 "         shift ;;\n"
32558 "     esac\n"
32559 " done\n"
32560 " \n"
32561 msgstr ""
32562
32563 #. type: verbatim
32564 #: ../src/guestfs.pod:979
32565 #, no-wrap
32566 msgid ""
32567 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
32568 "\n"
32569 msgstr ""
32570
32571 #. type: =head2
32572 #: ../src/guestfs.pod:981
32573 msgid "ATTACHING TO RUNNING DAEMONS"
32574 msgstr ""
32575
32576 #. type: textblock
32577 #: ../src/guestfs.pod:983
32578 msgid ""
32579 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32580 "babies.  Use with caution."
32581 msgstr ""
32582
32583 #. type: textblock
32584 #: ../src/guestfs.pod:986
32585 msgid ""
32586 "I<Note (2):> This section explains how to attach to a running daemon from a "
32587 "low level perspective.  For most users, simply using virt tools such as "
32588 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32589 msgstr ""
32590
32591 #. type: =head3
32592 #: ../src/guestfs.pod:990
32593 msgid "Using guestfs_set_attach_method"
32594 msgstr ""
32595
32596 #. type: textblock
32597 #: ../src/guestfs.pod:992
32598 msgid ""
32599 "By calling L</guestfs_set_attach_method> you can change how the library "
32600 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
32601 "L</ARCHITECTURE> for some background)."
32602 msgstr ""
32603
32604 #. type: textblock
32605 #: ../src/guestfs.pod:996
32606 msgid ""
32607 "The normal attach method is C<appliance>, where a small appliance is created "
32608 "containing the daemon, and then the library connects to this."
32609 msgstr ""
32610
32611 #. type: textblock
32612 #: ../src/guestfs.pod:999
32613 msgid ""
32614 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32615 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32616 "daemon over the Unix domain socket."
32617 msgstr ""
32618
32619 #. type: textblock
32620 #: ../src/guestfs.pod:1003
32621 msgid ""
32622 "The normal use for this is to connect to a running virtual machine that "
32623 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32624 "files inside the live virtual machine."
32625 msgstr ""
32626
32627 #. type: =head3
32628 #: ../src/guestfs.pod:1007
32629 msgid "Using guestfs_add_domain with live flag"
32630 msgstr ""
32631
32632 #. type: textblock
32633 #: ../src/guestfs.pod:1009
32634 msgid ""
32635 "L</guestfs_add_domain> provides some help for getting the correct attach "
32636 "method.  If you pass the C<live> option to this function, then (if the "
32637 "virtual machine is running) it will examine the libvirt XML looking for a "
32638 "virtio-serial channel to connect to:"
32639 msgstr ""
32640
32641 #. type: verbatim
32642 #: ../src/guestfs.pod:1015
32643 #, no-wrap
32644 msgid ""
32645 " <domain>\n"
32646 "   ...\n"
32647 "   <devices>\n"
32648 "     ...\n"
32649 "     <channel type='unix'>\n"
32650 "       <source mode='bind' path='/path/to/socket'/>\n"
32651 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32652 "     </channel>\n"
32653 "     ...\n"
32654 "   </devices>\n"
32655 " </domain>\n"
32656 "\n"
32657 msgstr ""
32658
32659 #. type: textblock
32660 #: ../src/guestfs.pod:1027
32661 msgid ""
32662 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32663 "method to C<unix:/path/to/socket>."
32664 msgstr ""
32665
32666 #. type: textblock
32667 #: ../src/guestfs.pod:1030
32668 msgid ""
32669 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32670 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32671 "to attach to and modify live virtual machines."
32672 msgstr ""
32673
32674 #. type: textblock
32675 #: ../src/guestfs.pod:1034
32676 msgid ""
32677 "The virtual machine needs to have been set up beforehand so that it has the "
32678 "virtio-serial channel and so that guestfsd is running inside it."
32679 msgstr ""
32680
32681 #. type: =head2
32682 #: ../src/guestfs.pod:1038
32683 msgid "ABI GUARANTEE"
32684 msgstr ""
32685
32686 #. type: textblock
32687 #: ../src/guestfs.pod:1040
32688 msgid ""
32689 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32690 "actions as outlined in this section.  Although we will deprecate some "
32691 "actions, for example if they get replaced by newer calls, we will keep the "
32692 "old actions forever.  This allows you the developer to program in confidence "
32693 "against the libguestfs API."
32694 msgstr ""
32695
32696 #. type: =head2
32697 #: ../src/guestfs.pod:1046
32698 msgid "BLOCK DEVICE NAMING"
32699 msgstr ""
32700
32701 #. type: textblock
32702 #: ../src/guestfs.pod:1048
32703 msgid ""
32704 "In the kernel there is now quite a profusion of schemata for naming block "
32705 "devices (in this context, by I<block device> I mean a physical or virtual "
32706 "hard drive).  The original Linux IDE driver used names starting with "
32707 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
32708 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
32709 "replacement for the old IDE driver (particularly for SATA devices) those "
32710 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
32711 "machines with paravirtualized drivers.  This has created several different "
32712 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
32713 "Xen PV disks."
32714 msgstr ""
32715
32716 #. type: textblock
32717 #: ../src/guestfs.pod:1060
32718 msgid ""
32719 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32720 "Linux kernel to access block devices.  We can run a variety of appliances "
32721 "based on a variety of Linux kernels."
32722 msgstr ""
32723
32724 #. type: textblock
32725 #: ../src/guestfs.pod:1064
32726 msgid ""
32727 "This causes a problem for libguestfs because many API calls use device or "
32728 "partition names.  Working scripts and the recipe (example) scripts that we "
32729 "make available over the internet could fail if the naming scheme changes."
32730 msgstr ""
32731
32732 #. type: textblock
32733 #: ../src/guestfs.pod:1069
32734 msgid ""
32735 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32736 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32737 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32738 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32739 msgstr ""
32740
32741 #. type: textblock
32742 #: ../src/guestfs.pod:1075
32743 msgid ""
32744 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32745 "L</guestfs_list_partitions> and similar calls return the true names of the "
32746 "devices and partitions as known to the appliance."
32747 msgstr ""
32748
32749 #. type: =head3
32750 #: ../src/guestfs.pod:1080
32751 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32752 msgstr ""
32753
32754 #. type: textblock
32755 #: ../src/guestfs.pod:1082
32756 msgid ""
32757 "Usually this translation is transparent.  However in some (very rare)  cases "
32758 "you may need to know the exact algorithm.  Such cases include where you use "
32759 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
32760 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
32761 "devices."
32762 msgstr ""
32763
32764 #. type: textblock
32765 #: ../src/guestfs.pod:1088
32766 msgid ""
32767 "The algorithm is applied only to I<parameters> which are known to be either "
32768 "device or partition names.  Return values from functions such as "
32769 "L</guestfs_list_devices> are never changed."
32770 msgstr ""
32771
32772 #. type: textblock
32773 #: ../src/guestfs.pod:1096
32774 msgid "Is the string a parameter which is a device or partition name?"
32775 msgstr ""
32776
32777 #. type: textblock
32778 #: ../src/guestfs.pod:1100
32779 msgid "Does the string begin with C</dev/sd>?"
32780 msgstr ""
32781
32782 #. type: textblock
32783 #: ../src/guestfs.pod:1104
32784 msgid ""
32785 "Does the named device exist? If so, we use that device.  However if I<not> "
32786 "then we continue with this algorithm."
32787 msgstr ""
32788
32789 #. type: textblock
32790 #: ../src/guestfs.pod:1109
32791 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32792 msgstr ""
32793
32794 #. type: textblock
32795 #: ../src/guestfs.pod:1111
32796 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32797 msgstr ""
32798
32799 #. type: textblock
32800 #: ../src/guestfs.pod:1113
32801 msgid "If that named device exists, use it.  If not, continue."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:1117
32806 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32807 msgstr ""
32808
32809 #. type: textblock
32810 #: ../src/guestfs.pod:1119
32811 msgid "If that named device exists, use it.  If not, return an error."
32812 msgstr ""
32813
32814 #. type: =head3
32815 #: ../src/guestfs.pod:1123
32816 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32817 msgstr ""
32818
32819 #. type: textblock
32820 #: ../src/guestfs.pod:1125
32821 msgid ""
32822 "Although the standard naming scheme and automatic translation is useful for "
32823 "simple programs and guestfish scripts, for larger programs it is best not to "
32824 "rely on this mechanism."
32825 msgstr ""
32826
32827 #. type: textblock
32828 #: ../src/guestfs.pod:1129
32829 msgid ""
32830 "Where possible for maximum future portability programs using libguestfs "
32831 "should use these future-proof techniques:"
32832 msgstr ""
32833
32834 #. type: textblock
32835 #: ../src/guestfs.pod:1136
32836 msgid ""
32837 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32838 "device names, and then use those names directly."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:1139
32843 msgid "Since those device names exist by definition, they will never be translated."
32844 msgstr ""
32845
32846 #. type: textblock
32847 #: ../src/guestfs.pod:1144
32848 msgid ""
32849 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32850 "filesystem labels."
32851 msgstr ""
32852
32853 #. type: =head1
32854 #: ../src/guestfs.pod:1149
32855 msgid "SECURITY"
32856 msgstr ""
32857
32858 #. type: textblock
32859 #: ../src/guestfs.pod:1151
32860 msgid ""
32861 "This section discusses security implications of using libguestfs, "
32862 "particularly with untrusted or malicious guests or disk images."
32863 msgstr ""
32864
32865 #. type: =head2
32866 #: ../src/guestfs.pod:1154
32867 msgid "GENERAL SECURITY CONSIDERATIONS"
32868 msgstr ""
32869
32870 #. type: textblock
32871 #: ../src/guestfs.pod:1156
32872 msgid ""
32873 "Be careful with any files or data that you download from a guest (by "
32874 "\"download\" we mean not just the L</guestfs_download> command but any "
32875 "command that reads files, filenames, directories or anything else from a "
32876 "disk image).  An attacker could manipulate the data to fool your program "
32877 "into doing the wrong thing.  Consider cases such as:"
32878 msgstr ""
32879
32880 #. type: textblock
32881 #: ../src/guestfs.pod:1166
32882 msgid "the data (file etc) not being present"
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs.pod:1170
32887 msgid "being present but empty"
32888 msgstr ""
32889
32890 #. type: textblock
32891 #: ../src/guestfs.pod:1174
32892 msgid "being much larger than normal"
32893 msgstr ""
32894
32895 #. type: textblock
32896 #: ../src/guestfs.pod:1178
32897 msgid "containing arbitrary 8 bit data"
32898 msgstr ""
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:1182
32902 msgid "being in an unexpected character encoding"
32903 msgstr ""
32904
32905 #. type: textblock
32906 #: ../src/guestfs.pod:1186
32907 msgid "containing homoglyphs."
32908 msgstr ""
32909
32910 #. type: =head2
32911 #: ../src/guestfs.pod:1190
32912 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32913 msgstr ""
32914
32915 #. type: textblock
32916 #: ../src/guestfs.pod:1192
32917 msgid ""
32918 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32919 "(VFS) module can sometimes be escalated into exploits by deliberately "
32920 "creating a malicious, malformed filesystem.  These exploits are very severe "
32921 "for two reasons.  Firstly there are very many filesystem drivers in the "
32922 "kernel, and many of them are infrequently used and not much developer "
32923 "attention has been paid to the code.  Linux userspace helps potential "
32924 "crackers by detecting the filesystem type and automatically choosing the "
32925 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32926 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32927 "exploit (worse in some ways), giving immediate and total access to the "
32928 "system right down to the hardware level."
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs.pod:1205
32933 msgid ""
32934 "That explains why you should never mount a filesystem from an untrusted "
32935 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32936 "inside a qemu virtual machine, usually running as a non-root user.  The "
32937 "attacker would need to write a filesystem which first exploited the kernel, "
32938 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32939 "the libguestfs protocol, and finally to be as serious as the host kernel "
32940 "exploit it would need to escalate its privileges to root.  This multi-step "
32941 "escalation, performed by a static piece of data, is thought to be extremely "
32942 "hard to do, although we never say 'never' about security issues."
32943 msgstr ""
32944
32945 #. type: textblock
32946 #: ../src/guestfs.pod:1216
32947 msgid ""
32948 "In any case callers can reduce the attack surface by forcing the filesystem "
32949 "type when mounting (use L</guestfs_mount_vfs>)."
32950 msgstr ""
32951
32952 #. type: =head2
32953 #: ../src/guestfs.pod:1219
32954 msgid "PROTOCOL SECURITY"
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs.pod:1221
32959 msgid ""
32960 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32961 "defined upper message size.  However a program that uses libguestfs must "
32962 "also take care - for example you can write a program that downloads a binary "
32963 "from a disk image and executes it locally, and no amount of protocol "
32964 "security will save you from the consequences."
32965 msgstr ""
32966
32967 #. type: =head2
32968 #: ../src/guestfs.pod:1227
32969 msgid "INSPECTION SECURITY"
32970 msgstr ""
32971
32972 #. type: textblock
32973 #: ../src/guestfs.pod:1229
32974 msgid ""
32975 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32976 "directly from the guest, and these could contain any 8 bit data.  Callers "
32977 "should be careful to escape these before printing them to a structured file "
32978 "(for example, use HTML escaping if creating a web page)."
32979 msgstr ""
32980
32981 #. type: textblock
32982 #: ../src/guestfs.pod:1235
32983 msgid ""
32984 "Guest configuration may be altered in unusual ways by the administrator of "
32985 "the virtual machine, and may not reflect reality (particularly for untrusted "
32986 "or actively malicious guests).  For example we parse the hostname from "
32987 "configuration files like C</etc/sysconfig/network> that we find in the "
32988 "guest, but the guest administrator can easily manipulate these files to "
32989 "provide the wrong hostname."
32990 msgstr ""
32991
32992 #. type: textblock
32993 #: ../src/guestfs.pod:1243
32994 msgid ""
32995 "The inspection API parses guest configuration using two external libraries: "
32996 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32997 "designed to be robust in the face of malicious data, although denial of "
32998 "service attacks are still possible, for example with oversized configuration "
32999 "files."
33000 msgstr ""
33001
33002 #. type: =head2
33003 #: ../src/guestfs.pod:1249
33004 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
33005 msgstr ""
33006
33007 #. type: textblock
33008 #: ../src/guestfs.pod:1251
33009 msgid ""
33010 "Be very cautious about running commands from the guest.  By running a "
33011 "command in the guest, you are giving CPU time to a binary that you do not "
33012 "control, under the same user account as the library, albeit wrapped in qemu "
33013 "virtualization.  More information and alternatives can be found in the "
33014 "section L</RUNNING COMMANDS>."
33015 msgstr ""
33016
33017 #. type: =head2
33018 #: ../src/guestfs.pod:1257
33019 msgid "CVE-2010-3851"
33020 msgstr ""
33021
33022 #. type: textblock
33023 #: ../src/guestfs.pod:1259
33024 msgid "https://bugzilla.redhat.com/642934"
33025 msgstr ""
33026
33027 #. type: textblock
33028 #: ../src/guestfs.pod:1261
33029 msgid ""
33030 "This security bug concerns the automatic disk format detection that qemu "
33031 "does on disk images."
33032 msgstr ""
33033
33034 #. type: textblock
33035 #: ../src/guestfs.pod:1264
33036 msgid ""
33037 "A raw disk image is just the raw bytes, there is no header.  Other disk "
33038 "images like qcow2 contain a special header.  Qemu deals with this by looking "
33039 "for one of the known headers, and if none is found then assuming the disk "
33040 "image must be raw."
33041 msgstr ""
33042
33043 #. type: textblock
33044 #: ../src/guestfs.pod:1269
33045 msgid ""
33046 "This allows a guest which has been given a raw disk image to write some "
33047 "other header.  At next boot (or when the disk image is accessed by "
33048 "libguestfs) qemu would do autodetection and think the disk image format was, "
33049 "say, qcow2 based on the header written by the guest."
33050 msgstr ""
33051
33052 #. type: textblock
33053 #: ../src/guestfs.pod:1274
33054 msgid ""
33055 "This in itself would not be a problem, but qcow2 offers many features, one "
33056 "of which is to allow a disk image to refer to another image (called the "
33057 "\"backing disk\").  It does this by placing the path to the backing disk "
33058 "into the qcow2 header.  This path is not validated and could point to any "
33059 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
33060 "\"holes\" in the qcow2 disk image, which of course is completely under the "
33061 "control of the attacker."
33062 msgstr ""
33063
33064 #. type: textblock
33065 #: ../src/guestfs.pod:1282
33066 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
33067 msgstr ""
33068
33069 #. type: textblock
33070 #: ../src/guestfs.pod:1289
33071 msgid "You have enabled the network or have opened the disk in write mode."
33072 msgstr ""
33073
33074 #. type: textblock
33075 #: ../src/guestfs.pod:1293
33076 msgid ""
33077 "You are also running untrusted code from the guest (see L</RUNNING "
33078 "COMMANDS>)."
33079 msgstr ""
33080
33081 #. type: textblock
33082 #: ../src/guestfs.pod:1298
33083 msgid ""
33084 "The way to avoid this is to specify the expected disk format when adding "
33085 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
33086 "should always do this if the disk is raw format, and it's a good idea for "
33087 "other cases too."
33088 msgstr ""
33089
33090 #. type: textblock
33091 #: ../src/guestfs.pod:1303
33092 msgid ""
33093 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
33094 "format is fetched from libvirt and passed through."
33095 msgstr ""
33096
33097 #. type: textblock
33098 #: ../src/guestfs.pod:1306
33099 msgid ""
33100 "For libguestfs tools, use the I<--format> command line parameter as "
33101 "appropriate."
33102 msgstr ""
33103
33104 #. type: =head1
33105 #: ../src/guestfs.pod:1309
33106 msgid "CONNECTION MANAGEMENT"
33107 msgstr ""
33108
33109 #. type: =head2
33110 #: ../src/guestfs.pod:1311
33111 msgid "guestfs_h *"
33112 msgstr ""
33113
33114 #. type: textblock
33115 #: ../src/guestfs.pod:1313
33116 msgid ""
33117 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
33118 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
33119 "handle and release all resources used."
33120 msgstr ""
33121
33122 #. type: textblock
33123 #: ../src/guestfs.pod:1317
33124 msgid ""
33125 "For information on using multiple handles and threads, see the section "
33126 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
33127 msgstr ""
33128
33129 #. type: =head2
33130 #: ../src/guestfs.pod:1320
33131 msgid "guestfs_create"
33132 msgstr ""
33133
33134 #. type: verbatim
33135 #: ../src/guestfs.pod:1322
33136 #, no-wrap
33137 msgid ""
33138 " guestfs_h *guestfs_create (void);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: textblock
33143 #: ../src/guestfs.pod:1324
33144 msgid "Create a connection handle."
33145 msgstr ""
33146
33147 #. type: textblock
33148 #: ../src/guestfs.pod:1326
33149 msgid ""
33150 "On success this returns a non-NULL pointer to a handle.  On error it returns "
33151 "NULL."
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs.pod:1329
33156 msgid ""
33157 "You have to \"configure\" the handle after creating it.  This includes "
33158 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
33159 "handle at least once."
33160 msgstr ""
33161
33162 #. type: textblock
33163 #: ../src/guestfs.pod:1333
33164 msgid "After configuring the handle, you have to call L</guestfs_launch>."
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs.pod:1335
33169 msgid ""
33170 "You may also want to configure error handling for the handle.  See the "
33171 "L</ERROR HANDLING> section below."
33172 msgstr ""
33173
33174 #. type: =head2
33175 #: ../src/guestfs.pod:1338
33176 msgid "guestfs_close"
33177 msgstr ""
33178
33179 #. type: verbatim
33180 #: ../src/guestfs.pod:1340
33181 #, no-wrap
33182 msgid ""
33183 " void guestfs_close (guestfs_h *g);\n"
33184 "\n"
33185 msgstr ""
33186
33187 #. type: textblock
33188 #: ../src/guestfs.pod:1342
33189 msgid "This closes the connection handle and frees up all resources used."
33190 msgstr ""
33191
33192 #. type: textblock
33193 #: ../src/guestfs.pod:1344
33194 msgid ""
33195 "If autosync was set on the handle and the handle was launched, then this "
33196 "implicitly calls various functions to unmount filesystems and sync the "
33197 "disk.  See L</guestfs_set_autosync> for more details."
33198 msgstr ""
33199
33200 #. type: textblock
33201 #: ../src/guestfs.pod:1348
33202 msgid "If a close callback was set on the handle, then it is called."
33203 msgstr ""
33204
33205 #. type: =head1
33206 #: ../src/guestfs.pod:1350
33207 msgid "ERROR HANDLING"
33208 msgstr ""
33209
33210 #. type: textblock
33211 #: ../src/guestfs.pod:1352
33212 msgid ""
33213 "API functions can return errors.  For example, almost all functions that "
33214 "return C<int> will return C<-1> to indicate an error."
33215 msgstr ""
33216
33217 #. type: textblock
33218 #: ../src/guestfs.pod:1355
33219 msgid ""
33220 "Additional information is available for errors: an error message string and "
33221 "optionally an error number (errno) if the thing that failed was a system "
33222 "call."
33223 msgstr ""
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:1359
33227 msgid ""
33228 "You can get at the additional information about the last error on the handle "
33229 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
33230 "up an error handler with L</guestfs_set_error_handler>."
33231 msgstr ""
33232
33233 #. type: textblock
33234 #: ../src/guestfs.pod:1364
33235 msgid ""
33236 "When the handle is created, a default error handler is installed which "
33237 "prints the error message string to C<stderr>.  For small short-running "
33238 "command line programs it is sufficient to do:"
33239 msgstr ""
33240
33241 #. type: verbatim
33242 #: ../src/guestfs.pod:1368
33243 #, no-wrap
33244 msgid ""
33245 " if (guestfs_launch (g) == -1)\n"
33246 "   exit (EXIT_FAILURE);\n"
33247 "\n"
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs.pod:1371
33252 msgid ""
33253 "since the default error handler will ensure that an error message has been "
33254 "printed to C<stderr> before the program exits."
33255 msgstr ""
33256
33257 #. type: textblock
33258 #: ../src/guestfs.pod:1374
33259 msgid ""
33260 "For other programs the caller will almost certainly want to install an "
33261 "alternate error handler or do error handling in-line like this:"
33262 msgstr ""
33263
33264 #. type: verbatim
33265 #: ../src/guestfs.pod:1377
33266 #, no-wrap
33267 msgid ""
33268 " /* This disables the default behaviour of printing errors\n"
33269 "    on stderr. */\n"
33270 " guestfs_set_error_handler (g, NULL, NULL);\n"
33271 " \n"
33272 msgstr ""
33273
33274 #. type: verbatim
33275 #: ../src/guestfs.pod:1381
33276 #, no-wrap
33277 msgid ""
33278 " if (guestfs_launch (g) == -1) {\n"
33279 "   /* Examine the error message and print it etc. */\n"
33280 "   char *msg = guestfs_last_error (g);\n"
33281 "   int errnum = guestfs_last_errno (g);\n"
33282 "   fprintf (stderr, \"%s\", msg);\n"
33283 "   if (errnum != 0)\n"
33284 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
33285 "   fprintf (stderr, \"\\n\");\n"
33286 "   /* ... */\n"
33287 " }\n"
33288 "\n"
33289 msgstr ""
33290
33291 #. type: textblock
33292 #: ../src/guestfs.pod:1392
33293 msgid ""
33294 "Out of memory errors are handled differently.  The default action is to call "
33295 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
33296 "L</guestfs_set_out_of_memory_handler>."
33297 msgstr ""
33298
33299 #. type: textblock
33300 #: ../src/guestfs.pod:1396
33301 msgid ""
33302 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
33303 "because there is no handle if this happens there is no way to get additional "
33304 "error information.  However L</guestfs_create> is supposed to be a "
33305 "lightweight operation which can only fail because of insufficient memory (it "
33306 "returns NULL in this case)."
33307 msgstr ""
33308
33309 #. type: =head2
33310 #: ../src/guestfs.pod:1402
33311 msgid "guestfs_last_error"
33312 msgstr ""
33313
33314 #. type: verbatim
33315 #: ../src/guestfs.pod:1404
33316 #, no-wrap
33317 msgid ""
33318 " const char *guestfs_last_error (guestfs_h *g);\n"
33319 "\n"
33320 msgstr ""
33321
33322 #. type: textblock
33323 #: ../src/guestfs.pod:1406
33324 msgid ""
33325 "This returns the last error message that happened on C<g>.  If there has not "
33326 "been an error since the handle was created, then this returns C<NULL>."
33327 msgstr ""
33328
33329 #. type: textblock
33330 #: ../src/guestfs.pod:1410
33331 msgid ""
33332 "The lifetime of the returned string is until the next error occurs, or "
33333 "L</guestfs_close> is called."
33334 msgstr ""
33335
33336 #. type: =head2
33337 #: ../src/guestfs.pod:1413
33338 msgid "guestfs_last_errno"
33339 msgstr ""
33340
33341 #. type: verbatim
33342 #: ../src/guestfs.pod:1415
33343 #, no-wrap
33344 msgid ""
33345 " int guestfs_last_errno (guestfs_h *g);\n"
33346 "\n"
33347 msgstr ""
33348
33349 #. type: textblock
33350 #: ../src/guestfs.pod:1417
33351 msgid "This returns the last error number (errno) that happened on C<g>."
33352 msgstr ""
33353
33354 #. type: textblock
33355 #: ../src/guestfs.pod:1419
33356 msgid "If successful, an errno integer not equal to zero is returned."
33357 msgstr ""
33358
33359 #. type: textblock
33360 #: ../src/guestfs.pod:1421
33361 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs.pod:1428
33366 msgid "There has not been any error on the handle."
33367 msgstr ""
33368
33369 #. type: textblock
33370 #: ../src/guestfs.pod:1432
33371 msgid ""
33372 "There has been an error but the errno was meaningless.  This corresponds to "
33373 "the case where the error did not come from a failed system call, but for "
33374 "some other reason."
33375 msgstr ""
33376
33377 #. type: textblock
33378 #: ../src/guestfs.pod:1438
33379 msgid ""
33380 "There was an error from a failed system call, but for some reason the errno "
33381 "was not captured and returned.  This usually indicates a bug in libguestfs."
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs.pod:1444
33386 msgid ""
33387 "Libguestfs tries to convert the errno from inside the applicance into a "
33388 "corresponding errno for the caller (not entirely trivial: the appliance "
33389 "might be running a completely different operating system from the library "
33390 "and error numbers are not standardized across Un*xen).  If this could not be "
33391 "done, then the error is translated to C<EINVAL>.  In practice this should "
33392 "only happen in very rare circumstances."
33393 msgstr ""
33394
33395 #. type: =head2
33396 #: ../src/guestfs.pod:1452
33397 msgid "guestfs_set_error_handler"
33398 msgstr ""
33399
33400 #. type: verbatim
33401 #: ../src/guestfs.pod:1454
33402 #, no-wrap
33403 msgid ""
33404 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33405 "                                           void *opaque,\n"
33406 "                                           const char *msg);\n"
33407 " void guestfs_set_error_handler (guestfs_h *g,\n"
33408 "                                 guestfs_error_handler_cb cb,\n"
33409 "                                 void *opaque);\n"
33410 "\n"
33411 msgstr ""
33412
33413 #. type: textblock
33414 #: ../src/guestfs.pod:1461
33415 msgid ""
33416 "The callback C<cb> will be called if there is an error.  The parameters "
33417 "passed to the callback are an opaque data pointer and the error message "
33418 "string."
33419 msgstr ""
33420
33421 #. type: textblock
33422 #: ../src/guestfs.pod:1465
33423 msgid ""
33424 "C<errno> is not passed to the callback.  To get that the callback must call "
33425 "L</guestfs_last_errno>."
33426 msgstr ""
33427
33428 #. type: textblock
33429 #: ../src/guestfs.pod:1468
33430 msgid ""
33431 "Note that the message string C<msg> is freed as soon as the callback "
33432 "function returns, so if you want to stash it somewhere you must make your "
33433 "own copy."
33434 msgstr ""
33435
33436 #. type: textblock
33437 #: ../src/guestfs.pod:1472
33438 msgid "The default handler prints messages on C<stderr>."
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs.pod:1474
33443 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33444 msgstr ""
33445
33446 #. type: =head2
33447 #: ../src/guestfs.pod:1476
33448 msgid "guestfs_get_error_handler"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs.pod:1478
33453 #, no-wrap
33454 msgid ""
33455 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33456 "                                                     void **opaque_rtn);\n"
33457 "\n"
33458 msgstr ""
33459
33460 #. type: textblock
33461 #: ../src/guestfs.pod:1481
33462 msgid "Returns the current error handler callback."
33463 msgstr ""
33464
33465 #. type: =head2
33466 #: ../src/guestfs.pod:1483
33467 msgid "guestfs_set_out_of_memory_handler"
33468 msgstr ""
33469
33470 #. type: verbatim
33471 #: ../src/guestfs.pod:1485
33472 #, no-wrap
33473 msgid ""
33474 " typedef void (*guestfs_abort_cb) (void);\n"
33475 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33476 "                                         guestfs_abort_cb);\n"
33477 "\n"
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:1489
33482 msgid ""
33483 "The callback C<cb> will be called if there is an out of memory situation.  "
33484 "I<Note this callback must not return>."
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs.pod:1492
33489 msgid "The default is to call L<abort(3)>."
33490 msgstr ""
33491
33492 #. type: textblock
33493 #: ../src/guestfs.pod:1494
33494 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33495 msgstr ""
33496
33497 #. type: =head2
33498 #: ../src/guestfs.pod:1497
33499 msgid "guestfs_get_out_of_memory_handler"
33500 msgstr ""
33501
33502 #. type: verbatim
33503 #: ../src/guestfs.pod:1499
33504 #, no-wrap
33505 msgid ""
33506 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33507 "\n"
33508 msgstr ""
33509
33510 #. type: textblock
33511 #: ../src/guestfs.pod:1501
33512 msgid "This returns the current out of memory handler."
33513 msgstr ""
33514
33515 #. type: =head1
33516 #: ../src/guestfs.pod:1503
33517 msgid "API CALLS"
33518 msgstr ""
33519
33520 #. type: =head1
33521 #: ../src/guestfs.pod:1507
33522 msgid "STRUCTURES"
33523 msgstr ""
33524
33525 #. type: textblock
33526 #: ../src/guestfs.pod:1509
33527 msgid "@STRUCTS@"
33528 msgstr ""
33529
33530 #. type: =head1
33531 #: ../src/guestfs.pod:1511
33532 msgid "AVAILABILITY"
33533 msgstr ""
33534
33535 #. type: =head2
33536 #: ../src/guestfs.pod:1513
33537 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33538 msgstr ""
33539
33540 #. type: textblock
33541 #: ../src/guestfs.pod:1515
33542 msgid ""
33543 "Using L</guestfs_available> you can test availability of the following "
33544 "groups of functions.  This test queries the appliance to see if the "
33545 "appliance you are currently using supports the functionality."
33546 msgstr ""
33547
33548 #. type: textblock
33549 #: ../src/guestfs.pod:1520
33550 msgid "@AVAILABILITY@"
33551 msgstr ""
33552
33553 #. type: =head2
33554 #: ../src/guestfs.pod:1522
33555 msgid "GUESTFISH supported COMMAND"
33556 msgstr ""
33557
33558 #. type: textblock
33559 #: ../src/guestfs.pod:1524
33560 msgid ""
33561 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33562 "prints out the available groups and whether they are supported by this build "
33563 "of libguestfs.  Note however that you have to do C<run> first."
33564 msgstr ""
33565
33566 #. type: =head2
33567 #: ../src/guestfs.pod:1529
33568 msgid "SINGLE CALLS AT COMPILE TIME"
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs.pod:1531
33573 msgid ""
33574 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33575 "function, such as:"
33576 msgstr ""
33577
33578 #. type: verbatim
33579 #: ../src/guestfs.pod:1534
33580 #, no-wrap
33581 msgid ""
33582 " #define LIBGUESTFS_HAVE_DD 1\n"
33583 "\n"
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs.pod:1536
33588 msgid "if L</guestfs_dd> is available."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:1538
33593 msgid ""
33594 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33595 "function is available at compile time, we recommended using build tools such "
33596 "as autoconf or cmake.  For example in autotools you could use:"
33597 msgstr ""
33598
33599 #. type: verbatim
33600 #: ../src/guestfs.pod:1543
33601 #, no-wrap
33602 msgid ""
33603 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33604 " AC_CHECK_FUNCS([guestfs_dd])\n"
33605 "\n"
33606 msgstr ""
33607
33608 #. type: textblock
33609 #: ../src/guestfs.pod:1546
33610 msgid ""
33611 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33612 "in your program."
33613 msgstr ""
33614
33615 #. type: =head2
33616 #: ../src/guestfs.pod:1549
33617 msgid "SINGLE CALLS AT RUN TIME"
33618 msgstr ""
33619
33620 #. type: textblock
33621 #: ../src/guestfs.pod:1551
33622 msgid ""
33623 "Testing at compile time doesn't guarantee that a function really exists in "
33624 "the library.  The reason is that you might be dynamically linked against a "
33625 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33626 "This situation unfortunately results in a segmentation fault, which is a "
33627 "shortcoming of the C dynamic linking system itself."
33628 msgstr ""
33629
33630 #. type: textblock
33631 #: ../src/guestfs.pod:1558
33632 msgid ""
33633 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33634 "in this example program (note that you still need the compile time check as "
33635 "well):"
33636 msgstr ""
33637
33638 #. type: verbatim
33639 #: ../src/guestfs.pod:1562
33640 #, no-wrap
33641 msgid ""
33642 " #include <stdio.h>\n"
33643 " #include <stdlib.h>\n"
33644 " #include <unistd.h>\n"
33645 " #include <dlfcn.h>\n"
33646 " #include <guestfs.h>\n"
33647 " \n"
33648 msgstr ""
33649
33650 #. type: verbatim
33651 #: ../src/guestfs.pod:1568
33652 #, no-wrap
33653 msgid ""
33654 " main ()\n"
33655 " {\n"
33656 " #ifdef LIBGUESTFS_HAVE_DD\n"
33657 "   void *dl;\n"
33658 "   int has_function;\n"
33659 " \n"
33660 msgstr ""
33661
33662 #. type: verbatim
33663 #: ../src/guestfs.pod:1574
33664 #, no-wrap
33665 msgid ""
33666 "   /* Test if the function guestfs_dd is really available. */\n"
33667 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33668 "   if (!dl) {\n"
33669 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33670 "     exit (EXIT_FAILURE);\n"
33671 "   }\n"
33672 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33673 "   dlclose (dl);\n"
33674 " \n"
33675 msgstr ""
33676
33677 #. type: verbatim
33678 #: ../src/guestfs.pod:1583
33679 #, no-wrap
33680 msgid ""
33681 "   if (!has_function)\n"
33682 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33683 "   else {\n"
33684 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33685 "     /* Now it's safe to call\n"
33686 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33687 "     */\n"
33688 "   }\n"
33689 " #else\n"
33690 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33691 " #endif\n"
33692 "  }\n"
33693 "\n"
33694 msgstr ""
33695
33696 #. type: textblock
33697 #: ../src/guestfs.pod:1596
33698 msgid ""
33699 "You may think the above is an awful lot of hassle, and it is.  There are "
33700 "other ways outside of the C linking system to ensure that this kind of "
33701 "incompatibility never arises, such as using package versioning:"
33702 msgstr ""
33703
33704 #. type: verbatim
33705 #: ../src/guestfs.pod:1601
33706 #, no-wrap
33707 msgid ""
33708 " Requires: libguestfs >= 1.0.80\n"
33709 "\n"
33710 msgstr ""
33711
33712 #. type: =head1
33713 #: ../src/guestfs.pod:1603
33714 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33715 msgstr ""
33716
33717 #. type: textblock
33718 #: ../src/guestfs.pod:1605
33719 msgid ""
33720 "A recent feature of the API is the introduction of calls which take optional "
33721 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33722 "takes variable arguments (ie. C<...>), as in this example:"
33723 msgstr ""
33724
33725 #. type: verbatim
33726 #: ../src/guestfs.pod:1610
33727 #, no-wrap
33728 msgid ""
33729 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33730 "\n"
33731 msgstr ""
33732
33733 #. type: textblock
33734 #: ../src/guestfs.pod:1612
33735 msgid ""
33736 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33737 "call with no optional arguments specified:"
33738 msgstr ""
33739
33740 #. type: verbatim
33741 #: ../src/guestfs.pod:1615
33742 #, no-wrap
33743 msgid ""
33744 " guestfs_add_drive_opts (g, filename, -1);\n"
33745 "\n"
33746 msgstr ""
33747
33748 #. type: textblock
33749 #: ../src/guestfs.pod:1617
33750 msgid "With a single optional argument:"
33751 msgstr ""
33752
33753 #. type: verbatim
33754 #: ../src/guestfs.pod:1619
33755 #, no-wrap
33756 msgid ""
33757 " guestfs_add_drive_opts (g, filename,\n"
33758 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33759 "                         -1);\n"
33760 "\n"
33761 msgstr ""
33762
33763 #. type: textblock
33764 #: ../src/guestfs.pod:1623
33765 msgid "With two:"
33766 msgstr ""
33767
33768 #. type: verbatim
33769 #: ../src/guestfs.pod:1625
33770 #, no-wrap
33771 msgid ""
33772 " guestfs_add_drive_opts (g, filename,\n"
33773 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33774 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33775 "                         -1);\n"
33776 "\n"
33777 msgstr ""
33778
33779 #. type: textblock
33780 #: ../src/guestfs.pod:1630
33781 msgid ""
33782 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33783 "happen!"
33784 msgstr ""
33785
33786 #. type: =head2
33787 #: ../src/guestfs.pod:1633
33788 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33789 msgstr ""
33790
33791 #. type: textblock
33792 #: ../src/guestfs.pod:1635
33793 msgid ""
33794 "The second variant has the same name with the suffix C<_va>, which works the "
33795 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33796 "example function, this is declared:"
33797 msgstr ""
33798
33799 #. type: verbatim
33800 #: ../src/guestfs.pod:1639
33801 #, no-wrap
33802 msgid ""
33803 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33804 "                                va_list args);\n"
33805 "\n"
33806 msgstr ""
33807
33808 #. type: =head2
33809 #: ../src/guestfs.pod:1642
33810 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33811 msgstr ""
33812
33813 #. type: textblock
33814 #: ../src/guestfs.pod:1644
33815 msgid ""
33816 "The third variant is useful where you need to construct these calls.  You "
33817 "pass in a structure where you fill in the optional fields.  The structure "
33818 "has a bitmask as the first element which you must set to indicate which "
33819 "fields you have filled in.  For our example function the structure and call "
33820 "are declared:"
33821 msgstr ""
33822
33823 #. type: verbatim
33824 #: ../src/guestfs.pod:1650
33825 #, no-wrap
33826 msgid ""
33827 " struct guestfs_add_drive_opts_argv {\n"
33828 "   uint64_t bitmask;\n"
33829 "   int readonly;\n"
33830 "   const char *format;\n"
33831 "   /* ... */\n"
33832 " };\n"
33833 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33834 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33835 "\n"
33836 msgstr ""
33837
33838 #. type: textblock
33839 #: ../src/guestfs.pod:1659
33840 msgid "You could call it like this:"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs.pod:1661
33845 #, no-wrap
33846 msgid ""
33847 " struct guestfs_add_drive_opts_argv optargs = {\n"
33848 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33849 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33850 "   .readonly = 1,\n"
33851 "   .format = \"qcow2\"\n"
33852 " };\n"
33853 " \n"
33854 msgstr ""
33855
33856 #. type: verbatim
33857 #: ../src/guestfs.pod:1668
33858 #, no-wrap
33859 msgid ""
33860 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33861 "\n"
33862 msgstr ""
33863
33864 #. type: textblock
33865 #: ../src/guestfs.pod:1676
33866 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33867 msgstr ""
33868
33869 #. type: textblock
33870 #: ../src/guestfs.pod:1681
33871 msgid "You do not need to fill in all fields of the structure."
33872 msgstr ""
33873
33874 #. type: textblock
33875 #: ../src/guestfs.pod:1685
33876 msgid ""
33877 "There must be a one-to-one correspondence between fields of the structure "
33878 "that are filled in, and bits set in the bitmask."
33879 msgstr ""
33880
33881 #. type: =head2
33882 #: ../src/guestfs.pod:1690
33883 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33884 msgstr ""
33885
33886 #. type: textblock
33887 #: ../src/guestfs.pod:1692
33888 msgid ""
33889 "In other languages, optional arguments are expressed in the way that is "
33890 "natural for that language.  We refer you to the language-specific "
33891 "documentation for more details on that."
33892 msgstr ""
33893
33894 #. type: textblock
33895 #: ../src/guestfs.pod:1696
33896 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33897 msgstr ""
33898
33899 #. type: =head2
33900 #: ../src/guestfs.pod:1698
33901 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33902 msgstr ""
33903
33904 #. type: textblock
33905 #: ../src/guestfs.pod:1700
33906 msgid ""
33907 "B<Note:> This section documents the generic event mechanism introduced in "
33908 "libguestfs 1.10, which you should use in new code if possible.  The old "
33909 "functions C<guestfs_set_log_message_callback>, "
33910 "C<guestfs_set_subprocess_quit_callback>, "
33911 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33912 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33913 "page.  Because of the ABI guarantee, the old functions continue to work."
33914 msgstr ""
33915
33916 #. type: textblock
33917 #: ../src/guestfs.pod:1709
33918 msgid ""
33919 "Handles generate events when certain things happen, such as log messages "
33920 "being generated, progress messages during long-running operations, or the "
33921 "handle being closed.  The API calls described below let you register a "
33922 "callback to be called when events happen.  You can register multiple "
33923 "callbacks (for the same, different or overlapping sets of events), and "
33924 "individually remove callbacks.  If callbacks are not removed, then they "
33925 "remain in force until the handle is closed."
33926 msgstr ""
33927
33928 #. type: textblock
33929 #: ../src/guestfs.pod:1717
33930 msgid ""
33931 "In the current implementation, events are only generated synchronously: that "
33932 "means that events (and hence callbacks) can only happen while you are in the "
33933 "middle of making another libguestfs call.  The callback is called in the "
33934 "same thread."
33935 msgstr ""
33936
33937 #. type: textblock
33938 #: ../src/guestfs.pod:1722
33939 msgid ""
33940 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33941 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33942 msgstr ""
33943
33944 #. type: =head3
33945 #: ../src/guestfs.pod:1726
33946 msgid "CLASSES OF EVENTS"
33947 msgstr ""
33948
33949 #. type: =item
33950 #: ../src/guestfs.pod:1730
33951 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33952 msgstr ""
33953
33954 #. type: textblock
33955 #: ../src/guestfs.pod:1733
33956 msgid ""
33957 "The callback function will be called while the handle is being closed "
33958 "(synchronously from L</guestfs_close>)."
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs.pod:1736
33963 msgid ""
33964 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33965 "handles that are open when the program exits.  This means that this callback "
33966 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33967 "problems in higher-level languages (eg. if your HLL interpreter has already "
33968 "been cleaned up by the time this is called, and if your callback then jumps "
33969 "into some HLL function)."
33970 msgstr ""
33971
33972 #. type: textblock
33973 #: ../src/guestfs.pod:1743
33974 msgid ""
33975 "If no callback is registered: the handle is closed without any callback "
33976 "being invoked."
33977 msgstr ""
33978
33979 #. type: =item
33980 #: ../src/guestfs.pod:1746
33981 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33982 msgstr ""
33983
33984 #. type: textblock
33985 #: ../src/guestfs.pod:1749
33986 msgid ""
33987 "The callback function will be called when the child process quits, either "
33988 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33989 "corresponds to a transition from any state to the CONFIG state)."
33990 msgstr ""
33991
33992 #. type: textblock
33993 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
33994 msgid "If no callback is registered: the event is ignored."
33995 msgstr ""
33996
33997 #. type: =item
33998 #: ../src/guestfs.pod:1755
33999 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:1758
34004 msgid ""
34005 "The callback function will be called when the child process becomes ready "
34006 "first time after it has been launched.  (This corresponds to a transition "
34007 "from LAUNCHING to the READY state)."
34008 msgstr ""
34009
34010 #. type: =item
34011 #: ../src/guestfs.pod:1764
34012 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
34013 msgstr ""
34014
34015 #. type: textblock
34016 #: ../src/guestfs.pod:1767
34017 msgid ""
34018 "Some long-running operations can generate progress messages.  If this "
34019 "callback is registered, then it will be called each time a progress message "
34020 "is generated (usually two seconds after the operation started, and three "
34021 "times per second thereafter until it completes, although the frequency may "
34022 "change in future versions)."
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs.pod:1773
34027 msgid ""
34028 "The callback receives in the payload four unsigned 64 bit numbers which are "
34029 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:1776
34034 msgid ""
34035 "The units of C<total> are not defined, although for some operations C<total> "
34036 "may relate in some way to the amount of data to be transferred (eg. in bytes "
34037 "or megabytes), and C<position> may be the portion which has been "
34038 "transferred."
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs.pod:1781
34043 msgid "The only defined and stable parts of the API are:"
34044 msgstr ""
34045
34046 #. type: textblock
34047 #: ../src/guestfs.pod:1787
34048 msgid ""
34049 "The callback can display to the user some type of progress bar or indicator "
34050 "which shows the ratio of C<position>:C<total>."
34051 msgstr ""
34052
34053 #. type: textblock
34054 #: ../src/guestfs.pod:1792
34055 msgid "0 E<lt>= C<position> E<lt>= C<total>"
34056 msgstr ""
34057
34058 #. type: textblock
34059 #: ../src/guestfs.pod:1796
34060 msgid ""
34061 "If any progress notification is sent during a call, then a final progress "
34062 "notification is always sent when C<position> = C<total> (I<unless> the call "
34063 "fails with an error)."
34064 msgstr ""
34065
34066 #. type: textblock
34067 #: ../src/guestfs.pod:1800
34068 msgid ""
34069 "This is to simplify caller code, so callers can easily set the progress "
34070 "indicator to \"100%\" at the end of the operation, without requiring special "
34071 "code to detect this case."
34072 msgstr ""
34073
34074 #. type: textblock
34075 #: ../src/guestfs.pod:1806
34076 msgid ""
34077 "For some calls we are unable to estimate the progress of the call, but we "
34078 "can still generate progress messages to indicate activity.  This is known as "
34079 "\"pulse mode\", and is directly supported by certain progress bar "
34080 "implementations (eg. GtkProgressBar)."
34081 msgstr ""
34082
34083 #. type: textblock
34084 #: ../src/guestfs.pod:1811
34085 msgid ""
34086 "For these calls, zero or more progress messages are generated with "
34087 "C<position = 0> and C<total = 1>, followed by a final message with "
34088 "C<position = total = 1>."
34089 msgstr ""
34090
34091 #. type: textblock
34092 #: ../src/guestfs.pod:1815
34093 msgid ""
34094 "As noted above, if the call fails with an error then the final message may "
34095 "not be generated."
34096 msgstr ""
34097
34098 #. type: textblock
34099 #: ../src/guestfs.pod:1820
34100 msgid ""
34101 "The callback also receives the procedure number (C<proc_nr>) and serial "
34102 "number (C<serial>) of the call.  These are only useful for debugging "
34103 "protocol issues, and the callback can normally ignore them.  The callback "
34104 "may want to print these numbers in error messages or debugging messages."
34105 msgstr ""
34106
34107 #. type: textblock
34108 #: ../src/guestfs.pod:1826
34109 msgid "If no callback is registered: progress messages are discarded."
34110 msgstr ""
34111
34112 #. type: =item
34113 #: ../src/guestfs.pod:1828
34114 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
34115 msgstr ""
34116
34117 #. type: textblock
34118 #: ../src/guestfs.pod:1831
34119 msgid ""
34120 "The callback function is called whenever a log message is generated by qemu, "
34121 "the appliance kernel, guestfsd (daemon), or utility programs."
34122 msgstr ""
34123
34124 #. type: textblock
34125 #: ../src/guestfs.pod:1834
34126 msgid ""
34127 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
34128 "(L</guestfs_launch>) then additional debug messages are generated."
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
34133 msgid ""
34134 "If no callback is registered: the messages are discarded unless the verbose "
34135 "flag is set in which case they are sent to stderr.  You can override the "
34136 "printing of verbose messages to stderr by setting up a callback."
34137 msgstr ""
34138
34139 #. type: =item
34140 #: ../src/guestfs.pod:1842
34141 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
34142 msgstr ""
34143
34144 #. type: textblock
34145 #: ../src/guestfs.pod:1845
34146 msgid ""
34147 "The callback function is called whenever a log message is generated by the "
34148 "library part of libguestfs."
34149 msgstr ""
34150
34151 #. type: textblock
34152 #: ../src/guestfs.pod:1848
34153 msgid ""
34154 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
34155 "messages are generated."
34156 msgstr ""
34157
34158 #. type: =item
34159 #: ../src/guestfs.pod:1856
34160 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:1859
34165 msgid ""
34166 "The callback function is called whenever a trace message is generated.  This "
34167 "only applies if the trace flag (L</guestfs_set_trace>) is set."
34168 msgstr ""
34169
34170 #. type: textblock
34171 #: ../src/guestfs.pod:1862
34172 msgid ""
34173 "If no callback is registered: the messages are sent to stderr.  You can "
34174 "override the printing of trace messages to stderr by setting up a callback."
34175 msgstr ""
34176
34177 #. type: =item
34178 #: ../src/guestfs.pod:1866
34179 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:1869
34184 msgid "The callback function is called whenever a libguestfs function is entered."
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs.pod:1872
34189 msgid ""
34190 "The payload is a string which contains the name of the function that we are "
34191 "entering (not including C<guestfs_> prefix)."
34192 msgstr ""
34193
34194 #. type: textblock
34195 #: ../src/guestfs.pod:1875
34196 msgid ""
34197 "Note that libguestfs functions can call themselves, so you may see many "
34198 "events from a single call.  A few libguestfs functions do not generate this "
34199 "event."
34200 msgstr ""
34201
34202 #. type: =head3
34203 #: ../src/guestfs.pod:1883
34204 msgid "guestfs_set_event_callback"
34205 msgstr ""
34206
34207 #. type: verbatim
34208 #: ../src/guestfs.pod:1885
34209 #, no-wrap
34210 msgid ""
34211 " int guestfs_set_event_callback (guestfs_h *g,\n"
34212 "                                 guestfs_event_callback cb,\n"
34213 "                                 uint64_t event_bitmask,\n"
34214 "                                 int flags,\n"
34215 "                                 void *opaque);\n"
34216 "\n"
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:1891
34221 msgid ""
34222 "This function registers a callback (C<cb>) for all event classes in the "
34223 "C<event_bitmask>."
34224 msgstr ""
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:1894
34228 msgid ""
34229 "For example, to register for all log message events, you could call this "
34230 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
34231 "To register a single callback for all possible classes of events, use "
34232 "C<GUESTFS_EVENT_ALL>."
34233 msgstr ""
34234
34235 #. type: textblock
34236 #: ../src/guestfs.pod:1900
34237 msgid "C<flags> should always be passed as 0."
34238 msgstr ""
34239
34240 #. type: textblock
34241 #: ../src/guestfs.pod:1902
34242 msgid ""
34243 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
34244 "it for any purpose."
34245 msgstr ""
34246
34247 #. type: textblock
34248 #: ../src/guestfs.pod:1905
34249 msgid ""
34250 "The return value is the event handle (an integer) which you can use to "
34251 "delete the callback (see below)."
34252 msgstr ""
34253
34254 #. type: textblock
34255 #: ../src/guestfs.pod:1908
34256 msgid ""
34257 "If there is an error, this function returns C<-1>, and sets the error in the "
34258 "handle in the usual way (see L</guestfs_last_error> etc.)"
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:1911
34263 msgid ""
34264 "Callbacks remain in effect until they are deleted, or until the handle is "
34265 "closed."
34266 msgstr ""
34267
34268 #. type: textblock
34269 #: ../src/guestfs.pod:1914
34270 msgid ""
34271 "In the case where multiple callbacks are registered for a particular event "
34272 "class, all of the callbacks are called.  The order in which multiple "
34273 "callbacks are called is not defined."
34274 msgstr ""
34275
34276 #. type: =head3
34277 #: ../src/guestfs.pod:1918
34278 msgid "guestfs_delete_event_callback"
34279 msgstr ""
34280
34281 #. type: verbatim
34282 #: ../src/guestfs.pod:1920
34283 #, no-wrap
34284 msgid ""
34285 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
34286 "\n"
34287 msgstr ""
34288
34289 #. type: textblock
34290 #: ../src/guestfs.pod:1922
34291 msgid ""
34292 "Delete a callback that was previously registered.  C<event_handle> should be "
34293 "the integer that was returned by a previous call to "
34294 "C<guestfs_set_event_callback> on the same handle."
34295 msgstr ""
34296
34297 #. type: =head3
34298 #: ../src/guestfs.pod:1926
34299 msgid "guestfs_event_callback"
34300 msgstr ""
34301
34302 #. type: verbatim
34303 #: ../src/guestfs.pod:1928
34304 #, no-wrap
34305 msgid ""
34306 " typedef void (*guestfs_event_callback) (\n"
34307 "                  guestfs_h *g,\n"
34308 "                  void *opaque,\n"
34309 "                  uint64_t event,\n"
34310 "                  int event_handle,\n"
34311 "                  int flags,\n"
34312 "                  const char *buf, size_t buf_len,\n"
34313 "                  const uint64_t *array, size_t array_len);\n"
34314 "\n"
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:1937
34319 msgid "This is the type of the event callback function that you have to provide."
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs.pod:1940
34324 msgid ""
34325 "The basic parameters are: the handle (C<g>), the opaque user pointer "
34326 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
34327 "handle, and C<flags> which in the current API you should ignore."
34328 msgstr ""
34329
34330 #. type: textblock
34331 #: ../src/guestfs.pod:1944
34332 msgid ""
34333 "The remaining parameters contain the event payload (if any).  Each event may "
34334 "contain a payload, which usually relates to the event class, but for future "
34335 "proofing your code should be written to handle any payload for any event "
34336 "class."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:1949
34341 msgid ""
34342 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34343 "there is no message buffer).  Note that this message buffer can contain "
34344 "arbitrary 8 bit data, including NUL bytes."
34345 msgstr ""
34346
34347 #. type: textblock
34348 #: ../src/guestfs.pod:1953
34349 msgid ""
34350 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34351 "moment this is only used for progress messages."
34352 msgstr ""
34353
34354 #. type: =head3
34355 #: ../src/guestfs.pod:1956
34356 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34357 msgstr ""
34358
34359 #. type: textblock
34360 #: ../src/guestfs.pod:1958
34361 msgid ""
34362 "One motivation for the generic event API was to allow GUI programs to "
34363 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34364 "unconditionally to C<stderr>."
34365 msgstr ""
34366
34367 #. type: textblock
34368 #: ../src/guestfs.pod:1962
34369 msgid ""
34370 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34371 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34372 "messages are not events; you must capture error messages separately)."
34373 msgstr ""
34374
34375 #. type: textblock
34376 #: ../src/guestfs.pod:1967
34377 msgid ""
34378 "Programs have to set up a callback to capture the classes of events of "
34379 "interest:"
34380 msgstr ""
34381
34382 #. type: verbatim
34383 #: ../src/guestfs.pod:1970
34384 #, no-wrap
34385 msgid ""
34386 " int eh =\n"
34387 "   guestfs_set_event_callback\n"
34388 "     (g, message_callback,\n"
34389 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34390 "      GUESTFS_EVENT_TRACE,\n"
34391 "      0, NULL) == -1)\n"
34392 " if (eh == -1) {\n"
34393 "   // handle error in the usual way\n"
34394 " }\n"
34395 "\n"
34396 msgstr ""
34397
34398 #. type: textblock
34399 #: ../src/guestfs.pod:1980
34400 msgid ""
34401 "The callback can then direct messages to the appropriate place.  In this "
34402 "example, messages are directed to syslog:"
34403 msgstr ""
34404
34405 #. type: verbatim
34406 #: ../src/guestfs.pod:1983
34407 #, no-wrap
34408 msgid ""
34409 " static void\n"
34410 " message_callback (\n"
34411 "         guestfs_h *g,\n"
34412 "         void *opaque,\n"
34413 "         uint64_t event,\n"
34414 "         int event_handle,\n"
34415 "         int flags,\n"
34416 "         const char *buf, size_t buf_len,\n"
34417 "         const uint64_t *array, size_t array_len)\n"
34418 " {\n"
34419 "   const int priority = LOG_USER|LOG_INFO;\n"
34420 "   if (buf_len > 0)\n"
34421 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34422 " }\n"
34423 "\n"
34424 msgstr ""
34425
34426 #. type: =head1
34427 #: ../src/guestfs.pod:1998
34428 msgid "CANCELLING LONG TRANSFERS"
34429 msgstr ""
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:2000
34433 msgid ""
34434 "Some operations can be cancelled by the caller while they are in progress.  "
34435 "Currently only operations that involve uploading or downloading data can be "
34436 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34437 "parameters in the generator)."
34438 msgstr ""
34439
34440 #. type: =head2
34441 #: ../src/guestfs.pod:2005
34442 msgid "guestfs_user_cancel"
34443 msgstr ""
34444
34445 #. type: verbatim
34446 #: ../src/guestfs.pod:2007
34447 #, no-wrap
34448 msgid ""
34449 " void guestfs_user_cancel (guestfs_h *g);\n"
34450 "\n"
34451 msgstr ""
34452
34453 #. type: textblock
34454 #: ../src/guestfs.pod:2009
34455 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
34456 msgstr ""
34457
34458 #. type: textblock
34459 #: ../src/guestfs.pod:2012
34460 msgid ""
34461 "Unlike most other libguestfs calls, this function is signal safe and thread "
34462 "safe.  You can call it from a signal handler or from another thread, without "
34463 "needing to do any locking."
34464 msgstr ""
34465
34466 #. type: textblock
34467 #: ../src/guestfs.pod:2016
34468 msgid ""
34469 "The transfer that was in progress (if there is one) will stop shortly "
34470 "afterwards, and will return an error.  The errno (see "
34471 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34472 "out if the operation was cancelled or failed because of another error."
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:2022
34477 msgid ""
34478 "No cleanup is performed: for example, if a file was being uploaded then "
34479 "after cancellation there may be a partially uploaded file.  It is the "
34480 "caller's responsibility to clean up if necessary."
34481 msgstr ""
34482
34483 #. type: textblock
34484 #: ../src/guestfs.pod:2026
34485 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34486 msgstr ""
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:2028
34490 msgid ""
34491 "In an interactive text-based program, you might call it from a C<SIGINT> "
34492 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34493 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34494 "receive the C<^C> signal)."
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs.pod:2033
34499 msgid ""
34500 "In a graphical program, when the main thread is displaying a progress bar "
34501 "with a cancel button, wire up the cancel button to call this function."
34502 msgstr ""
34503
34504 #. type: =head1
34505 #: ../src/guestfs.pod:2037
34506 msgid "PRIVATE DATA AREA"
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:2039
34511 msgid ""
34512 "You can attach named pieces of private data to the libguestfs handle, fetch "
34513 "them by name, and walk over them, for the lifetime of the handle.  This is "
34514 "called the private data area and is only available from the C API."
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:2044
34519 msgid "To attach a named piece of data, use the following call:"
34520 msgstr ""
34521
34522 #. type: verbatim
34523 #: ../src/guestfs.pod:2046
34524 #, no-wrap
34525 msgid ""
34526 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34527 "\n"
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:2048
34532 msgid ""
34533 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34534 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34535 "overwritten."
34536 msgstr ""
34537
34538 #. type: textblock
34539 #: ../src/guestfs.pod:2052
34540 msgid ""
34541 "You can use any C<key> you want, but your key should I<not> start with an "
34542 "underscore character.  Keys beginning with an underscore character are "
34543 "reserved for internal libguestfs purposes (eg. for implementing language "
34544 "bindings).  It is recommended that you prefix the key with some unique "
34545 "string to avoid collisions with other users."
34546 msgstr ""
34547
34548 #. type: textblock
34549 #: ../src/guestfs.pod:2058
34550 msgid "To retrieve the pointer, use:"
34551 msgstr ""
34552
34553 #. type: verbatim
34554 #: ../src/guestfs.pod:2060
34555 #, no-wrap
34556 msgid ""
34557 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34558 "\n"
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:2062
34563 msgid ""
34564 "This function returns C<NULL> if either no data is found associated with "
34565 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34566 "C<NULL>."
34567 msgstr ""
34568
34569 #. type: textblock
34570 #: ../src/guestfs.pod:2066
34571 msgid ""
34572 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34573 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34574 "all.  In particular, libguestfs does I<not> try to free the data when the "
34575 "handle is closed.  If the data must be freed, then the caller must either "
34576 "free it before calling L</guestfs_close> or must set up a close callback to "
34577 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34578 msgstr ""
34579
34580 #. type: textblock
34581 #: ../src/guestfs.pod:2073
34582 msgid "To walk over all entries, use these two functions:"
34583 msgstr ""
34584
34585 #. type: verbatim
34586 #: ../src/guestfs.pod:2075
34587 #, no-wrap
34588 msgid ""
34589 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34590 "\n"
34591 msgstr ""
34592
34593 #. type: verbatim
34594 #: ../src/guestfs.pod:2077
34595 #, no-wrap
34596 msgid ""
34597 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34598 "\n"
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:2079
34603 msgid ""
34604 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34605 "not have any particular meaning -- keys are not returned in any defined "
34606 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34607 "corresponding data pointer is returned from the function.  C<NULL> is "
34608 "returned if there are no keys stored in the handle."
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:2085
34613 msgid ""
34614 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34615 "value of this function is also C<NULL> is there are no further entries to "
34616 "return."
34617 msgstr ""
34618
34619 #. type: textblock
34620 #: ../src/guestfs.pod:2089
34621 msgid "Notes about walking over entries:"
34622 msgstr ""
34623
34624 #. type: textblock
34625 #: ../src/guestfs.pod:2095
34626 msgid "You must not call C<guestfs_set_private> while walking over the entries."
34627 msgstr ""
34628
34629 #. type: textblock
34630 #: ../src/guestfs.pod:2100
34631 msgid ""
34632 "The handle maintains an internal iterator which is reset when you call "
34633 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34634 "call C<guestfs_set_private>."
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:2106
34639 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34640 msgstr ""
34641
34642 #. type: verbatim
34643 #: ../src/guestfs.pod:2108
34644 #, no-wrap
34645 msgid ""
34646 " guestfs_set_private (g, key, NULL);\n"
34647 "\n"
34648 msgstr ""
34649
34650 #. type: textblock
34651 #: ../src/guestfs.pod:2110
34652 msgid "then that C<key> is not returned when walking."
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:2114
34657 msgid ""
34658 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34659 "C<guestfs_next_private> or C<guestfs_set_private>."
34660 msgstr ""
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:2120
34664 msgid ""
34665 "The following example code shows how to print all keys and data pointers "
34666 "that are associated with the handle C<g>:"
34667 msgstr ""
34668
34669 #. type: verbatim
34670 #: ../src/guestfs.pod:2123
34671 #, no-wrap
34672 msgid ""
34673 " const char *key;\n"
34674 " void *data = guestfs_first_private (g, &key);\n"
34675 " while (data != NULL)\n"
34676 "   {\n"
34677 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34678 "     data = guestfs_next_private (g, &key);\n"
34679 "   }\n"
34680 "\n"
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:2131
34685 msgid ""
34686 "More commonly you are only interested in keys that begin with an "
34687 "application-specific prefix C<foo_>.  Modify the loop like so:"
34688 msgstr ""
34689
34690 #. type: verbatim
34691 #: ../src/guestfs.pod:2134
34692 #, no-wrap
34693 msgid ""
34694 " const char *key;\n"
34695 " void *data = guestfs_first_private (g, &key);\n"
34696 " while (data != NULL)\n"
34697 "   {\n"
34698 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34699 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34700 "     data = guestfs_next_private (g, &key);\n"
34701 "   }\n"
34702 "\n"
34703 msgstr ""
34704
34705 #. type: textblock
34706 #: ../src/guestfs.pod:2143
34707 msgid ""
34708 "If you need to modify keys while walking, then you have to jump back to the "
34709 "beginning of the loop.  For example, to delete all keys prefixed with "
34710 "C<foo_>:"
34711 msgstr ""
34712
34713 #. type: verbatim
34714 #: ../src/guestfs.pod:2147
34715 #, no-wrap
34716 msgid ""
34717 "  const char *key;\n"
34718 "  void *data;\n"
34719 " again:\n"
34720 "  data = guestfs_first_private (g, &key);\n"
34721 "  while (data != NULL)\n"
34722 "    {\n"
34723 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34724 "        {\n"
34725 "          guestfs_set_private (g, key, NULL);\n"
34726 "          /* note that 'key' pointer is now invalid, and so is\n"
34727 "             the internal iterator */\n"
34728 "          goto again;\n"
34729 "        }\n"
34730 "      data = guestfs_next_private (g, &key);\n"
34731 "    }\n"
34732 "\n"
34733 msgstr ""
34734
34735 #. type: textblock
34736 #: ../src/guestfs.pod:2163
34737 msgid ""
34738 "Note that the above loop is guaranteed to terminate because the keys are "
34739 "being deleted, but other manipulations of keys within the loop might not "
34740 "terminate unless you also maintain an indication of which keys have been "
34741 "visited."
34742 msgstr ""
34743
34744 #. type: =end
34745 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
34746 msgid "html"
34747 msgstr ""
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:2170
34751 msgid ""
34752 "<!-- old anchor for the next section --> <a "
34753 "name=\"state_machine_and_low_level_event_api\"/>"
34754 msgstr ""
34755
34756 #. type: =head1
34757 #: ../src/guestfs.pod:2175
34758 msgid "ARCHITECTURE"
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:2177
34763 msgid ""
34764 "Internally, libguestfs is implemented by running an appliance (a special "
34765 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34766 "process of the main program."
34767 msgstr ""
34768
34769 #. type: verbatim
34770 #: ../src/guestfs.pod:2181
34771 #, no-wrap
34772 msgid ""
34773 "  ___________________\n"
34774 " /                   \\\n"
34775 " | main program      |\n"
34776 " |                   |\n"
34777 " |                   |           child process / appliance\n"
34778 " |                   |           __________________________\n"
34779 " |                   |          / qemu                     \\\n"
34780 " +-------------------+   RPC    |      +-----------------+ |\n"
34781 " | libguestfs     <--------------------> guestfsd        | |\n"
34782 " |                   |          |      +-----------------+ |\n"
34783 " \\___________________/          |      | Linux kernel    | |\n"
34784 "                                |      +--^--------------+ |\n"
34785 "                                \\_________|________________/\n"
34786 "                                          |\n"
34787 "                                   _______v______\n"
34788 "                                  /              \\\n"
34789 "                                  | Device or    |\n"
34790 "                                  | disk image   |\n"
34791 "                                  \\______________/\n"
34792 "\n"
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:2201
34797 msgid ""
34798 "The library, linked to the main program, creates the child process and hence "
34799 "the appliance in the L</guestfs_launch> function."
34800 msgstr ""
34801
34802 #. type: textblock
34803 #: ../src/guestfs.pod:2204
34804 msgid ""
34805 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34806 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34807 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34808 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34809 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34810 "attached to the qemu process which translates device access by the "
34811 "appliance's Linux kernel into accesses to the image."
34812 msgstr ""
34813
34814 #. type: textblock
34815 #: ../src/guestfs.pod:2213
34816 msgid ""
34817 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34818 "Although the disk image you are attached to might also be used by some "
34819 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34820 "care if both libguestfs's qemu process and your virtual machine are trying "
34821 "to update the disk image at the same time, since these usually results in "
34822 "massive disk corruption)."
34823 msgstr ""
34824
34825 #. type: =head1
34826 #: ../src/guestfs.pod:2220
34827 msgid "STATE MACHINE"
34828 msgstr ""
34829
34830 #. type: textblock
34831 #: ../src/guestfs.pod:2222
34832 msgid "libguestfs uses a state machine to model the child process:"
34833 msgstr ""
34834
34835 #. type: verbatim
34836 #: ../src/guestfs.pod:2224
34837 #, no-wrap
34838 msgid ""
34839 "                         |\n"
34840 "                    guestfs_create\n"
34841 "                         |\n"
34842 "                         |\n"
34843 "                     ____V_____\n"
34844 "                    /          \\\n"
34845 "                    |  CONFIG  |\n"
34846 "                    \\__________/\n"
34847 "                     ^ ^   ^  \\\n"
34848 "                    /  |    \\  \\ guestfs_launch\n"
34849 "                   /   |    _\\__V______\n"
34850 "                  /    |   /           \\\n"
34851 "                 /     |   | LAUNCHING |\n"
34852 "                /      |   \\___________/\n"
34853 "               /       |       /\n"
34854 "              /        |  guestfs_launch\n"
34855 "             /         |     /\n"
34856 "    ______  /        __|____V\n"
34857 "   /      \\ ------> /        \\\n"
34858 "   | BUSY |         | READY  |\n"
34859 "   \\______/ <------ \\________/\n"
34860 "\n"
34861 msgstr ""
34862
34863 #. type: textblock
34864 #: ../src/guestfs.pod:2246
34865 msgid ""
34866 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34867 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34868 "(3) alternating between READY and BUSY as commands are issued to, and "
34869 "carried out by, the child process."
34870 msgstr ""
34871
34872 #. type: textblock
34873 #: ../src/guestfs.pod:2251
34874 msgid ""
34875 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34876 "asynchronously at any time (eg. due to some internal error), and that causes "
34877 "the state to transition back to CONFIG."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:2255
34882 msgid ""
34883 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34884 "issued when in the CONFIG state."
34885 msgstr ""
34886
34887 #. type: textblock
34888 #: ../src/guestfs.pod:2258
34889 msgid ""
34890 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34891 "L</guestfs_launch> blocks until the child process is READY to accept "
34892 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34893 "moves the state from CONFIG to LAUNCHING while it is running."
34894 msgstr ""
34895
34896 #. type: textblock
34897 #: ../src/guestfs.pod:2264
34898 msgid ""
34899 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34900 "state.  These API calls block waiting for the command to be carried out "
34901 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34902 "non-blocking versions, and no way to issue more than one command per handle "
34903 "at the same time."
34904 msgstr ""
34905
34906 #. type: textblock
34907 #: ../src/guestfs.pod:2270
34908 msgid ""
34909 "Finally, the child process sends asynchronous messages back to the main "
34910 "program, such as kernel log messages.  You can register a callback to "
34911 "receive these messages."
34912 msgstr ""
34913
34914 #. type: =head1
34915 #: ../src/guestfs.pod:2274
34916 msgid "INTERNALS"
34917 msgstr ""
34918
34919 #. type: =head2
34920 #: ../src/guestfs.pod:2276
34921 msgid "APPLIANCE BOOT PROCESS"
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:2278
34926 msgid ""
34927 "This process has evolved and continues to evolve.  The description here "
34928 "corresponds only to the current version of libguestfs and is provided for "
34929 "information only."
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:2282
34934 msgid ""
34935 "In order to follow the stages involved below, enable libguestfs debugging "
34936 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
34937 msgstr ""
34938
34939 #. type: =item
34940 #: ../src/guestfs.pod:2287
34941 msgid "Create the appliance"
34942 msgstr ""
34943
34944 #. type: textblock
34945 #: ../src/guestfs.pod:2289
34946 msgid ""
34947 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
34948 "initrd and the appliance."
34949 msgstr ""
34950
34951 #. type: textblock
34952 #: ../src/guestfs.pod:2292
34953 msgid ""
34954 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
34955 "directory if C<TMPDIR> is set)."
34956 msgstr ""
34957
34958 #. type: textblock
34959 #: ../src/guestfs.pod:2295
34960 msgid ""
34961 "For a complete description of how the appliance is created and cached, read "
34962 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
34963 msgstr ""
34964
34965 #. type: =item
34966 #: ../src/guestfs.pod:2299
34967 msgid "Start qemu and boot the kernel"
34968 msgstr ""
34969
34970 #. type: textblock
34971 #: ../src/guestfs.pod:2301
34972 msgid "qemu is invoked to boot the kernel."
34973 msgstr ""
34974
34975 #. type: =item
34976 #: ../src/guestfs.pod:2303
34977 msgid "Run the initrd"
34978 msgstr ""
34979
34980 #. type: textblock
34981 #: ../src/guestfs.pod:2305
34982 msgid ""
34983 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
34984 "appliance.  The purpose of the initrd is to load enough kernel modules in "
34985 "order that the appliance itself can be mounted and started."
34986 msgstr ""
34987
34988 #. type: textblock
34989 #: ../src/guestfs.pod:2309
34990 msgid ""
34991 "The initrd is a cpio archive called "
34992 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
34993 msgstr ""
34994
34995 #. type: textblock
34996 #: ../src/guestfs.pod:2312
34997 msgid ""
34998 "When the initrd has started you will see messages showing that kernel "
34999 "modules are being loaded, similar to this:"
35000 msgstr ""
35001
35002 #. type: verbatim
35003 #: ../src/guestfs.pod:2315
35004 #, no-wrap
35005 msgid ""
35006 " febootstrap: ext2 mini initrd starting up\n"
35007 " febootstrap: mounting /sys\n"
35008 " febootstrap: internal insmod libcrc32c.ko\n"
35009 " febootstrap: internal insmod crc32c-intel.ko\n"
35010 "\n"
35011 msgstr ""
35012
35013 #. type: =item
35014 #: ../src/guestfs.pod:2320
35015 msgid "Find and mount the appliance device"
35016 msgstr ""
35017
35018 #. type: textblock
35019 #: ../src/guestfs.pod:2322
35020 msgid ""
35021 "The appliance is a sparse file containing an ext2 filesystem which contains "
35022 "a familiar (although reduced in size) Linux operating system.  It would "
35023 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:2326
35028 msgid ""
35029 "The regular disks being inspected by libguestfs are the first devices "
35030 "exposed by qemu (eg. as C</dev/vda>)."
35031 msgstr ""
35032
35033 #. type: textblock
35034 #: ../src/guestfs.pod:2329
35035 msgid ""
35036 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
35037 "there was only one regular disk)."
35038 msgstr ""
35039
35040 #. type: textblock
35041 #: ../src/guestfs.pod:2332
35042 msgid ""
35043 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
35044 "and switch root into the appliance, and run C</init> from the appliance."
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:2336
35049 msgid "If this works successfully you will see messages such as:"
35050 msgstr ""
35051
35052 #. type: verbatim
35053 #: ../src/guestfs.pod:2338
35054 #, no-wrap
35055 msgid ""
35056 " febootstrap: picked /sys/block/vdb/dev as root device\n"
35057 " febootstrap: creating /dev/root as block special 252:16\n"
35058 " febootstrap: mounting new root on /root\n"
35059 " febootstrap: chroot\n"
35060 " Starting /init script ...\n"
35061 "\n"
35062 msgstr ""
35063
35064 #. type: textblock
35065 #: ../src/guestfs.pod:2344
35066 msgid ""
35067 "Note that C<Starting /init script ...> indicates that the appliance's init "
35068 "script is now running."
35069 msgstr ""
35070
35071 #. type: =item
35072 #: ../src/guestfs.pod:2347
35073 msgid "Initialize the appliance"
35074 msgstr ""
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:2349
35078 msgid ""
35079 "The appliance itself now initializes itself.  This involves starting certain "
35080 "processes like C<udev>, possibly printing some debug information, and "
35081 "finally running the daemon (C<guestfsd>)."
35082 msgstr ""
35083
35084 #. type: =item
35085 #: ../src/guestfs.pod:2353
35086 msgid "The daemon"
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs.pod:2355
35091 msgid ""
35092 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
35093 "should see:"
35094 msgstr ""
35095
35096 #. type: verbatim
35097 #: ../src/guestfs.pod:2358
35098 #, no-wrap
35099 msgid ""
35100 " verbose daemon enabled\n"
35101 "\n"
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:2360
35106 msgid ""
35107 "The daemon expects to see a named virtio-serial port exposed by qemu and "
35108 "connected on the other end to the library."
35109 msgstr ""
35110
35111 #. type: textblock
35112 #: ../src/guestfs.pod:2363
35113 msgid ""
35114 "The daemon connects to this port (and hence to the library) and sends a four "
35115 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
35116 "protocol (see below)."
35117 msgstr ""
35118
35119 #. type: =head2
35120 #: ../src/guestfs.pod:2369
35121 msgid "COMMUNICATION PROTOCOL"
35122 msgstr ""
35123
35124 #. type: textblock
35125 #: ../src/guestfs.pod:2371
35126 msgid ""
35127 "Don't rely on using this protocol directly.  This section documents how it "
35128 "currently works, but it may change at any time."
35129 msgstr ""
35130
35131 #. type: textblock
35132 #: ../src/guestfs.pod:2374
35133 msgid ""
35134 "The protocol used to talk between the library and the daemon running inside "
35135 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
35136 "1014, RFC 1832, RFC 4506)."
35137 msgstr ""
35138
35139 #. type: textblock
35140 #: ../src/guestfs.pod:2378
35141 msgid ""
35142 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
35143 "this file is automatically generated)."
35144 msgstr ""
35145
35146 #. type: textblock
35147 #: ../src/guestfs.pod:2381
35148 msgid ""
35149 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
35150 "and C<FileOut> parameters, which are handled with very simple request/reply "
35151 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
35152 "parameters, which use the same request and reply messages, but they may also "
35153 "be followed by files sent using a chunked encoding."
35154 msgstr ""
35155
35156 #. type: =head3
35157 #: ../src/guestfs.pod:2388
35158 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
35159 msgstr ""
35160
35161 #. type: textblock
35162 #: ../src/guestfs.pod:2390
35163 msgid "For ordinary functions, the request message is:"
35164 msgstr ""
35165
35166 #. type: verbatim
35167 #: ../src/guestfs.pod:2392
35168 #, no-wrap
35169 msgid ""
35170 " total length (header + arguments,\n"
35171 "      but not including the length word itself)\n"
35172 " struct guestfs_message_header (encoded as XDR)\n"
35173 " struct guestfs_<foo>_args (encoded as XDR)\n"
35174 "\n"
35175 msgstr ""
35176
35177 #. type: textblock
35178 #: ../src/guestfs.pod:2397
35179 msgid ""
35180 "The total length field allows the daemon to allocate a fixed size buffer "
35181 "into which it slurps the rest of the message.  As a result, the total length "
35182 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
35183 "effective size of any request is limited to somewhere under this size."
35184 msgstr ""
35185
35186 #. type: textblock
35187 #: ../src/guestfs.pod:2403
35188 msgid ""
35189 "Note also that many functions don't take any arguments, in which case the "
35190 "C<guestfs_I<foo>_args> is completely omitted."
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:2406
35195 msgid ""
35196 "The header contains the procedure number (C<guestfs_proc>) which is how the "
35197 "receiver knows what type of args structure to expect, or none at all."
35198 msgstr ""
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:2410
35202 msgid ""
35203 "For functions that take optional arguments, the optional arguments are "
35204 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
35205 "arguments.  A bitmask in the header indicates which optional arguments are "
35206 "meaningful.  The bitmask is also checked to see if it contains bits set "
35207 "which the daemon does not know about (eg. if more optional arguments were "
35208 "added in a later version of the library), and this causes the call to be "
35209 "rejected."
35210 msgstr ""
35211
35212 #. type: textblock
35213 #: ../src/guestfs.pod:2418
35214 msgid "The reply message for ordinary functions is:"
35215 msgstr ""
35216
35217 #. type: verbatim
35218 #: ../src/guestfs.pod:2420
35219 #, no-wrap
35220 msgid ""
35221 " total length (header + ret,\n"
35222 "      but not including the length word itself)\n"
35223 " struct guestfs_message_header (encoded as XDR)\n"
35224 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35225 "\n"
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:2425
35230 msgid ""
35231 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
35232 "functions that return no formal return values."
35233 msgstr ""
35234
35235 #. type: textblock
35236 #: ../src/guestfs.pod:2428
35237 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
35238 msgstr ""
35239
35240 #. type: textblock
35241 #: ../src/guestfs.pod:2431
35242 msgid ""
35243 "In the case of an error, a flag is set in the header, and the reply message "
35244 "is slightly changed:"
35245 msgstr ""
35246
35247 #. type: verbatim
35248 #: ../src/guestfs.pod:2434
35249 #, no-wrap
35250 msgid ""
35251 " total length (header + error,\n"
35252 "      but not including the length word itself)\n"
35253 " struct guestfs_message_header (encoded as XDR)\n"
35254 " struct guestfs_message_error (encoded as XDR)\n"
35255 "\n"
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs.pod:2439
35260 msgid ""
35261 "The C<guestfs_message_error> structure contains the error message as a "
35262 "string."
35263 msgstr ""
35264
35265 #. type: =head3
35266 #: ../src/guestfs.pod:2442
35267 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
35268 msgstr ""
35269
35270 #. type: textblock
35271 #: ../src/guestfs.pod:2444
35272 msgid ""
35273 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
35274 "The normal request message is sent (see above).  However this is followed by "
35275 "a sequence of file chunks."
35276 msgstr ""
35277
35278 #. type: verbatim
35279 #: ../src/guestfs.pod:2448
35280 #, no-wrap
35281 msgid ""
35282 " total length (header + arguments,\n"
35283 "      but not including the length word itself,\n"
35284 "      and not including the chunks)\n"
35285 " struct guestfs_message_header (encoded as XDR)\n"
35286 " struct guestfs_<foo>_args (encoded as XDR)\n"
35287 " sequence of chunks for FileIn param #0\n"
35288 " sequence of chunks for FileIn param #1 etc.\n"
35289 "\n"
35290 msgstr ""
35291
35292 #. type: textblock
35293 #: ../src/guestfs.pod:2456
35294 msgid "The \"sequence of chunks\" is:"
35295 msgstr ""
35296
35297 #. type: verbatim
35298 #: ../src/guestfs.pod:2458
35299 #, no-wrap
35300 msgid ""
35301 " length of chunk (not including length word itself)\n"
35302 " struct guestfs_chunk (encoded as XDR)\n"
35303 " length of chunk\n"
35304 " struct guestfs_chunk (encoded as XDR)\n"
35305 "   ...\n"
35306 " length of chunk\n"
35307 " struct guestfs_chunk (with data.data_len == 0)\n"
35308 "\n"
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:2466
35313 msgid ""
35314 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
35315 "is set in the final chunk to indicate either successful completion or early "
35316 "cancellation."
35317 msgstr ""
35318
35319 #. type: textblock
35320 #: ../src/guestfs.pod:2470
35321 msgid ""
35322 "At time of writing there are no functions that have more than one FileIn "
35323 "parameter.  However this is (theoretically) supported, by sending the "
35324 "sequence of chunks for each FileIn parameter one after another (from left to "
35325 "right)."
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:2475
35330 msgid ""
35331 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
35332 "transfer.  The library does this by sending a chunk with a special flag set "
35333 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
35334 "RPC, does I<not> send any reply, and goes back to reading the next request."
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:2481
35339 msgid ""
35340 "The daemon may also cancel.  It does this by writing a special word "
35341 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
35342 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35343 "cancel chunk).  The special word is chosen so that even if cancellation "
35344 "happens right at the end of the transfer (after the library has finished "
35345 "writing and has started listening for the reply), the \"spurious\" cancel "
35346 "flag will not be confused with the reply message."
35347 msgstr ""
35348
35349 #. type: textblock
35350 #: ../src/guestfs.pod:2490
35351 msgid ""
35352 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35353 "limit), and also files where the size is not known in advance (eg. from "
35354 "pipes or sockets).  However the chunks are rather small "
35355 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35356 "to keep much in memory."
35357 msgstr ""
35358
35359 #. type: =head3
35360 #: ../src/guestfs.pod:2496
35361 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35362 msgstr ""
35363
35364 #. type: textblock
35365 #: ../src/guestfs.pod:2498
35366 msgid ""
35367 "The protocol for FileOut parameters is exactly the same as for FileIn "
35368 "parameters, but with the roles of daemon and library reversed."
35369 msgstr ""
35370
35371 #. type: verbatim
35372 #: ../src/guestfs.pod:2501
35373 #, no-wrap
35374 msgid ""
35375 " total length (header + ret,\n"
35376 "      but not including the length word itself,\n"
35377 "      and not including the chunks)\n"
35378 " struct guestfs_message_header (encoded as XDR)\n"
35379 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35380 " sequence of chunks for FileOut param #0\n"
35381 " sequence of chunks for FileOut param #1 etc.\n"
35382 "\n"
35383 msgstr ""
35384
35385 #. type: =head3
35386 #: ../src/guestfs.pod:2509
35387 msgid "INITIAL MESSAGE"
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:2511
35392 msgid ""
35393 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35394 "which indicates that the guest and daemon is alive.  This is what "
35395 "L</guestfs_launch> waits for."
35396 msgstr ""
35397
35398 #. type: =head3
35399 #: ../src/guestfs.pod:2515
35400 msgid "PROGRESS NOTIFICATION MESSAGES"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:2517
35405 msgid ""
35406 "The daemon may send progress notification messages at any time.  These are "
35407 "distinguished by the normal length word being replaced by "
35408 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:2521
35413 msgid ""
35414 "The library turns them into progress callbacks (see "
35415 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
35416 "them if not."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:2525
35421 msgid ""
35422 "The daemon self-limits the frequency of progress messages it sends (see "
35423 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35424 "messages."
35425 msgstr ""
35426
35427 #. type: =head1
35428 #: ../src/guestfs.pod:2529
35429 msgid "LIBGUESTFS VERSION NUMBERS"
35430 msgstr ""
35431
35432 #. type: textblock
35433 #: ../src/guestfs.pod:2531
35434 msgid ""
35435 "Since April 2010, libguestfs has started to make separate development and "
35436 "stable releases, along with corresponding branches in our git repository.  "
35437 "These separate releases can be identified by version number:"
35438 msgstr ""
35439
35440 #. type: verbatim
35441 #: ../src/guestfs.pod:2536
35442 #, no-wrap
35443 msgid ""
35444 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35445 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35446 "       |\n"
35447 "       v\n"
35448 " 1  .  3  .  5\n"
35449 " ^           ^\n"
35450 " |           |\n"
35451 " |           `-------- sub-version\n"
35452 " |\n"
35453 " `------ always '1' because we don't change the ABI\n"
35454 "\n"
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:2547
35459 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35460 msgstr ""
35461
35462 #. type: textblock
35463 #: ../src/guestfs.pod:2549
35464 msgid ""
35465 "As time passes we cherry pick fixes from the development branch and backport "
35466 "those into the stable branch, the effect being that the stable branch should "
35467 "get more stable and less buggy over time.  So the stable releases are ideal "
35468 "for people who don't need new features but would just like the software to "
35469 "work."
35470 msgstr ""
35471
35472 #. type: textblock
35473 #: ../src/guestfs.pod:2555
35474 msgid "Our criteria for backporting changes are:"
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:2561
35479 msgid ""
35480 "Documentation changes which don't affect any code are backported unless the "
35481 "documentation refers to a future feature which is not in stable."
35482 msgstr ""
35483
35484 #. type: textblock
35485 #: ../src/guestfs.pod:2567
35486 msgid ""
35487 "Bug fixes which are not controversial, fix obvious problems, and have been "
35488 "well tested are backported."
35489 msgstr ""
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:2572
35493 msgid ""
35494 "Simple rearrangements of code which shouldn't affect how it works get "
35495 "backported.  This is so that the code in the two branches doesn't get too "
35496 "far out of step, allowing us to backport future fixes more easily."
35497 msgstr ""
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:2578
35501 msgid ""
35502 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35503 "exceptional case: the new feature is required in order to implement an "
35504 "important bug fix."
35505 msgstr ""
35506
35507 #. type: textblock
35508 #: ../src/guestfs.pod:2584
35509 msgid ""
35510 "A new stable branch starts when we think the new features in development are "
35511 "substantial and compelling enough over the current stable branch to warrant "
35512 "it.  When that happens we create new stable and development versions 1.N.0 "
35513 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35514 "stable at this point, but by backporting fixes from development, that branch "
35515 "will stabilize over time."
35516 msgstr ""
35517
35518 #. type: =head1
35519 #: ../src/guestfs.pod:2592
35520 msgid "EXTENDING LIBGUESTFS"
35521 msgstr ""
35522
35523 #. type: =head2
35524 #: ../src/guestfs.pod:2594
35525 msgid "ADDING A NEW API ACTION"
35526 msgstr ""
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:2596
35530 msgid ""
35531 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35532 "documentation) are generated, and this makes it easy to extend the "
35533 "libguestfs API."
35534 msgstr ""
35535
35536 #. type: textblock
35537 #: ../src/guestfs.pod:2600
35538 msgid "To add a new API action there are two changes:"
35539 msgstr ""
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:2606
35543 msgid ""
35544 "You need to add a description of the call (name, parameters, return type, "
35545 "tests, documentation) to C<generator/generator_actions.ml>."
35546 msgstr ""
35547
35548 #. type: textblock
35549 #: ../src/guestfs.pod:2609
35550 msgid ""
35551 "There are two sorts of API action, depending on whether the call goes "
35552 "through to the daemon in the appliance, or is serviced entirely by the "
35553 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35554 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35555 "an example of the latter, since a trace flag is maintained in the handle and "
35556 "all tracing is done on the library side."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:2617
35561 msgid ""
35562 "Most new actions are of the first type, and get added to the "
35563 "C<daemon_functions> list.  Each function has a unique procedure number used "
35564 "in the RPC protocol which is assigned to that action when we publish "
35565 "libguestfs and cannot be reused.  Take the latest procedure number and "
35566 "increment it."
35567 msgstr ""
35568
35569 #. type: textblock
35570 #: ../src/guestfs.pod:2623
35571 msgid ""
35572 "For library-only actions of the second type, add to the "
35573 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35574 "library and do not travel over the RPC mechanism to the daemon, these "
35575 "functions do not need a procedure number, and so the procedure number is set "
35576 "to C<-1>."
35577 msgstr ""
35578
35579 #. type: textblock
35580 #: ../src/guestfs.pod:2631
35581 msgid "Implement the action (in C):"
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:2633
35586 msgid ""
35587 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35588 "C<daemon/> directory."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:2636
35593 msgid ""
35594 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35595 "(note: double underscore) in the C<src/> directory."
35596 msgstr ""
35597
35598 #. type: textblock
35599 #: ../src/guestfs.pod:2639
35600 msgid "In either case, use another function as an example of what to do."
35601 msgstr ""
35602
35603 #. type: textblock
35604 #: ../src/guestfs.pod:2643
35605 msgid "After making these changes, use C<make> to compile."
35606 msgstr ""
35607
35608 #. type: textblock
35609 #: ../src/guestfs.pod:2645
35610 msgid ""
35611 "Note that you don't need to implement the RPC, language bindings, manual "
35612 "pages or anything else.  It's all automatically generated from the OCaml "
35613 "description."
35614 msgstr ""
35615
35616 #. type: =head2
35617 #: ../src/guestfs.pod:2649
35618 msgid "ADDING TESTS FOR AN API ACTION"
35619 msgstr ""
35620
35621 #. type: textblock
35622 #: ../src/guestfs.pod:2651
35623 msgid ""
35624 "You can supply zero or as many tests as you want per API call.  The tests "
35625 "can either be added as part of the API description "
35626 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
35627 "drop a script into C<regressions/>.  Note that adding a script to "
35628 "C<regressions/> is slower, so if possible use the first method."
35629 msgstr ""
35630
35631 #. type: textblock
35632 #: ../src/guestfs.pod:2657
35633 msgid ""
35634 "The following describes the test environment used when you add an API test "
35635 "in C<generator_actions.ml>."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:2660
35640 msgid "The test environment has 4 block devices:"
35641 msgstr ""
35642
35643 #. type: =item
35644 #: ../src/guestfs.pod:2664
35645 msgid "C</dev/sda> 500MB"
35646 msgstr ""
35647
35648 #. type: textblock
35649 #: ../src/guestfs.pod:2666
35650 msgid "General block device for testing."
35651 msgstr ""
35652
35653 #. type: =item
35654 #: ../src/guestfs.pod:2668
35655 msgid "C</dev/sdb> 50MB"
35656 msgstr ""
35657
35658 #. type: textblock
35659 #: ../src/guestfs.pod:2670
35660 msgid ""
35661 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35662 "operations."
35663 msgstr ""
35664
35665 #. type: =item
35666 #: ../src/guestfs.pod:2673
35667 msgid "C</dev/sdc> 10MB"
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:2675
35672 msgid "Used in a few tests where two block devices are needed."
35673 msgstr ""
35674
35675 #. type: =item
35676 #: ../src/guestfs.pod:2677
35677 msgid "C</dev/sdd>"
35678 msgstr ""
35679
35680 #. type: textblock
35681 #: ../src/guestfs.pod:2679
35682 msgid "ISO with fixed content (see C<images/test.iso>)."
35683 msgstr ""
35684
35685 #. type: textblock
35686 #: ../src/guestfs.pod:2683
35687 msgid ""
35688 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35689 "appliance and block devices are reused between tests.  So don't try testing "
35690 "L</guestfs_kill_subprocess> :-x"
35691 msgstr ""
35692
35693 #. type: textblock
35694 #: ../src/guestfs.pod:2687
35695 msgid ""
35696 "Each test starts with an initial scenario, selected using one of the "
35697 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35698 "initialize the disks mentioned above in a particular way as documented in "
35699 "C<generator_types.ml>.  You should not assume anything about the previous "
35700 "contents of other disks that are not initialized."
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:2693
35705 msgid ""
35706 "You can add a prerequisite clause to any individual test.  This is a "
35707 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
35708 "if testing a command which might not work on all variations of libguestfs "
35709 "builds.  A test that has prerequisite of C<Always> means to run "
35710 "unconditionally."
35711 msgstr ""
35712
35713 #. type: textblock
35714 #: ../src/guestfs.pod:2699
35715 msgid ""
35716 "In addition, packagers can skip individual tests by setting environment "
35717 "variables before running C<make check>."
35718 msgstr ""
35719
35720 #. type: verbatim
35721 #: ../src/guestfs.pod:2702
35722 #, no-wrap
35723 msgid ""
35724 " SKIP_TEST_<CMD>_<NUM>=1\n"
35725 "\n"
35726 msgstr ""
35727
35728 #. type: textblock
35729 #: ../src/guestfs.pod:2704
35730 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35731 msgstr ""
35732
35733 #. type: textblock
35734 #: ../src/guestfs.pod:2706
35735 msgid "or:"
35736 msgstr ""
35737
35738 #. type: verbatim
35739 #: ../src/guestfs.pod:2708
35740 #, no-wrap
35741 msgid ""
35742 " SKIP_TEST_<CMD>=1\n"
35743 "\n"
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:2710
35748 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35749 msgstr ""
35750
35751 #. type: textblock
35752 #: ../src/guestfs.pod:2712
35753 msgid "Packagers can run only certain tests by setting for example:"
35754 msgstr ""
35755
35756 #. type: verbatim
35757 #: ../src/guestfs.pod:2714
35758 #, no-wrap
35759 msgid ""
35760 " TEST_ONLY=\"vfs_type zerofree\"\n"
35761 "\n"
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:2716
35766 msgid ""
35767 "See C<capitests/tests.c> for more details of how these environment variables "
35768 "work."
35769 msgstr ""
35770
35771 #. type: =head2
35772 #: ../src/guestfs.pod:2719
35773 msgid "DEBUGGING NEW API ACTIONS"
35774 msgstr ""
35775
35776 #. type: textblock
35777 #: ../src/guestfs.pod:2721
35778 msgid "Test new actions work before submitting them."
35779 msgstr ""
35780
35781 #. type: textblock
35782 #: ../src/guestfs.pod:2723
35783 msgid "You can use guestfish to try out new commands."
35784 msgstr ""
35785
35786 #. type: textblock
35787 #: ../src/guestfs.pod:2725
35788 msgid ""
35789 "Debugging the daemon is a problem because it runs inside a minimal "
35790 "environment.  However you can fprintf messages in the daemon to stderr, and "
35791 "they will show up if you use C<guestfish -v>."
35792 msgstr ""
35793
35794 #. type: =head2
35795 #: ../src/guestfs.pod:2729
35796 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35797 msgstr ""
35798
35799 #. type: textblock
35800 #: ../src/guestfs.pod:2731
35801 msgid ""
35802 "Our C source code generally adheres to some basic code-formatting "
35803 "conventions.  The existing code base is not totally consistent on this "
35804 "front, but we do prefer that contributed code be formatted similarly.  In "
35805 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35806 "indentation level, and other than that, follow the K&R style."
35807 msgstr ""
35808
35809 #. type: textblock
35810 #: ../src/guestfs.pod:2737
35811 msgid ""
35812 "If you use Emacs, add the following to one of one of your start-up files "
35813 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
35814 msgstr ""
35815
35816 #. type: verbatim
35817 #: ../src/guestfs.pod:2740
35818 #, no-wrap
35819 msgid ""
35820 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35821 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35822 " (add-hook 'find-file-hook\n"
35823 "     '(lambda () (if (and buffer-file-name\n"
35824 "                          (string-match \"/libguestfs\\\\>\"\n"
35825 "                              (buffer-file-name))\n"
35826 "                          (not (string-equal mode-name \"Change Log\"))\n"
35827 "                          (not (string-equal mode-name \"Makefile\")))\n"
35828 "                     (setq indent-tabs-mode nil))))\n"
35829 " \n"
35830 msgstr ""
35831
35832 #. type: verbatim
35833 #: ../src/guestfs.pod:2750
35834 #, no-wrap
35835 msgid ""
35836 " ;;; When editing C sources in libguestfs, use this style.\n"
35837 " (defun libguestfs-c-mode ()\n"
35838 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35839 "   (interactive)\n"
35840 "   (c-set-style \"K&R\")\n"
35841 "   (setq c-indent-level 2)\n"
35842 "   (setq c-basic-offset 2))\n"
35843 " (add-hook 'c-mode-hook\n"
35844 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35845 "                               (buffer-file-name))\n"
35846 "                           (libguestfs-c-mode))))\n"
35847 "\n"
35848 msgstr ""
35849
35850 #. type: textblock
35851 #: ../src/guestfs.pod:2762
35852 msgid "Enable warnings when compiling (and fix any problems this finds):"
35853 msgstr ""
35854
35855 #. type: verbatim
35856 #: ../src/guestfs.pod:2765
35857 #, no-wrap
35858 msgid ""
35859 " ./configure --enable-gcc-warnings\n"
35860 "\n"
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:2767
35865 msgid "Useful targets are:"
35866 msgstr ""
35867
35868 #. type: verbatim
35869 #: ../src/guestfs.pod:2769
35870 #, no-wrap
35871 msgid ""
35872 " make syntax-check  # checks the syntax of the C code\n"
35873 " make check         # runs the test suite\n"
35874 "\n"
35875 msgstr ""
35876
35877 #. type: =head2
35878 #: ../src/guestfs.pod:2772
35879 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:2774
35884 msgid ""
35885 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35886 "which are used to do shell quoting."
35887 msgstr ""
35888
35889 #. type: =item
35890 #: ../src/guestfs.pod:2779
35891 msgid "%Q"
35892 msgstr ""
35893
35894 #. type: textblock
35895 #: ../src/guestfs.pod:2781
35896 msgid ""
35897 "Simple shell quoted string.  Any spaces or other shell characters are "
35898 "escaped for you."
35899 msgstr ""
35900
35901 #. type: =item
35902 #: ../src/guestfs.pod:2784
35903 msgid "%R"
35904 msgstr ""
35905
35906 #. type: textblock
35907 #: ../src/guestfs.pod:2786
35908 msgid ""
35909 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35910 "the sysroot."
35911 msgstr ""
35912
35913 #. type: verbatim
35914 #: ../src/guestfs.pod:2793
35915 #, no-wrap
35916 msgid ""
35917 " asprintf (&cmd, \"cat %R\", path);\n"
35918 "\n"
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:2795
35923 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:2797
35928 msgid ""
35929 "I<Note:> Do I<not> use these when you are passing parameters to the "
35930 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
35931 "because they are not passed via the shell (instead, straight to exec).  You "
35932 "probably want to use the C<sysroot_path()> function however."
35933 msgstr ""
35934
35935 #. type: =head2
35936 #: ../src/guestfs.pod:2803
35937 msgid "SUBMITTING YOUR NEW API ACTIONS"
35938 msgstr ""
35939
35940 #. type: textblock
35941 #: ../src/guestfs.pod:2805
35942 msgid ""
35943 "Submit patches to the mailing list: "
35944 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
35945 "L<rjones@redhat.com>."
35946 msgstr ""
35947
35948 #. type: =head2
35949 #: ../src/guestfs.pod:2809
35950 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35951 msgstr ""
35952
35953 #. type: textblock
35954 #: ../src/guestfs.pod:2811
35955 msgid "We support i18n (gettext anyhow) in the library."
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:2813
35960 msgid ""
35961 "However many messages come from the daemon, and we don't translate those at "
35962 "the moment.  One reason is that the appliance generally has all locale files "
35963 "removed from it, because they take up a lot of space.  So we'd have to readd "
35964 "some of those, as well as copying our PO files into the appliance."
35965 msgstr ""
35966
35967 #. type: textblock
35968 #: ../src/guestfs.pod:2819
35969 msgid ""
35970 "Debugging messages are never translated, since they are intended for the "
35971 "programmers."
35972 msgstr ""
35973
35974 #. type: =head2
35975 #: ../src/guestfs.pod:2822
35976 msgid "SOURCE CODE SUBDIRECTORIES"
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:2828
35981 msgid "The libguestfs appliance, build scripts and so on."
35982 msgstr ""
35983
35984 #. type: =item
35985 #: ../src/guestfs.pod:2830
35986 msgid "C<capitests>"
35987 msgstr ""
35988
35989 #. type: textblock
35990 #: ../src/guestfs.pod:2832
35991 msgid "Automated tests of the C API."
35992 msgstr ""
35993
35994 #. type: =item
35995 #: ../src/guestfs.pod:2834
35996 msgid "C<cat>"
35997 msgstr ""
35998
35999 #. type: textblock
36000 #: ../src/guestfs.pod:2836
36001 msgid ""
36002 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
36003 "documentation."
36004 msgstr ""
36005
36006 #. type: =item
36007 #: ../src/guestfs.pod:2839
36008 msgid "C<caution>"
36009 msgstr ""
36010
36011 #. type: textblock
36012 #: ../src/guestfs.pod:2841
36013 msgid ""
36014 "Safety and liveness tests of components that libguestfs depends upon (not of "
36015 "libguestfs itself).  Mainly this is for qemu and the kernel."
36016 msgstr ""
36017
36018 #. type: =item
36019 #: ../src/guestfs.pod:2844
36020 msgid "C<contrib>"
36021 msgstr ""
36022
36023 #. type: textblock
36024 #: ../src/guestfs.pod:2846
36025 msgid "Outside contributions, experimental parts."
36026 msgstr ""
36027
36028 #. type: =item
36029 #: ../src/guestfs.pod:2848
36030 msgid "C<daemon>"
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:2850
36035 msgid ""
36036 "The daemon that runs inside the libguestfs appliance and carries out "
36037 "actions."
36038 msgstr ""
36039
36040 #. type: =item
36041 #: ../src/guestfs.pod:2853
36042 msgid "C<df>"
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:2855
36047 msgid "L<virt-df(1)> command and documentation."
36048 msgstr ""
36049
36050 #. type: =item
36051 #: ../src/guestfs.pod:2857
36052 msgid "C<edit>"
36053 msgstr ""
36054
36055 #. type: textblock
36056 #: ../src/guestfs.pod:2859
36057 msgid "L<virt-edit(1)> command and documentation."
36058 msgstr ""
36059
36060 #. type: =item
36061 #: ../src/guestfs.pod:2861
36062 msgid "C<examples>"
36063 msgstr ""
36064
36065 #. type: textblock
36066 #: ../src/guestfs.pod:2863
36067 msgid "C API example code."
36068 msgstr ""
36069
36070 #. type: =item
36071 #: ../src/guestfs.pod:2865
36072 msgid "C<fish>"
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs.pod:2867
36077 msgid ""
36078 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
36079 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36080 "L<virt-tar-out(1)>."
36081 msgstr ""
36082
36083 #. type: =item
36084 #: ../src/guestfs.pod:2871
36085 msgid "C<fuse>"
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:2873
36090 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
36091 msgstr ""
36092
36093 #. type: =item
36094 #: ../src/guestfs.pod:2875
36095 msgid "C<generator>"
36096 msgstr ""
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:2877
36100 msgid ""
36101 "The crucially important generator, used to automatically generate large "
36102 "amounts of boilerplate C code for things like RPC and bindings."
36103 msgstr ""
36104
36105 #. type: =item
36106 #: ../src/guestfs.pod:2880
36107 msgid "C<images>"
36108 msgstr ""
36109
36110 #. type: textblock
36111 #: ../src/guestfs.pod:2882
36112 msgid "Files used by the test suite."
36113 msgstr ""
36114
36115 #. type: textblock
36116 #: ../src/guestfs.pod:2884
36117 msgid "Some \"phony\" guest images which we test against."
36118 msgstr ""
36119
36120 #. type: =item
36121 #: ../src/guestfs.pod:2886
36122 msgid "C<inspector>"
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:2888
36127 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
36128 msgstr ""
36129
36130 #. type: =item
36131 #: ../src/guestfs.pod:2890
36132 msgid "C<logo>"
36133 msgstr ""
36134
36135 #. type: textblock
36136 #: ../src/guestfs.pod:2892
36137 msgid "Logo used on the website.  The fish is called Arthur by the way."
36138 msgstr ""
36139
36140 #. type: =item
36141 #: ../src/guestfs.pod:2894
36142 msgid "C<m4>"
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:2896
36147 msgid "M4 macros used by autoconf."
36148 msgstr ""
36149
36150 #. type: =item
36151 #: ../src/guestfs.pod:2898
36152 msgid "C<po>"
36153 msgstr ""
36154
36155 #. type: textblock
36156 #: ../src/guestfs.pod:2900
36157 msgid "Translations of simple gettext strings."
36158 msgstr ""
36159
36160 #. type: =item
36161 #: ../src/guestfs.pod:2902
36162 msgid "C<po-docs>"
36163 msgstr ""
36164
36165 #. type: textblock
36166 #: ../src/guestfs.pod:2904
36167 msgid ""
36168 "The build infrastructure and PO files for translations of manpages and POD "
36169 "files.  Eventually this will be combined with the C<po> directory, but that "
36170 "is rather complicated."
36171 msgstr ""
36172
36173 #. type: =item
36174 #: ../src/guestfs.pod:2908
36175 msgid "C<regressions>"
36176 msgstr ""
36177
36178 #. type: textblock
36179 #: ../src/guestfs.pod:2910
36180 msgid "Regression tests."
36181 msgstr ""
36182
36183 #. type: =item
36184 #: ../src/guestfs.pod:2912
36185 msgid "C<rescue>"
36186 msgstr ""
36187
36188 #. type: textblock
36189 #: ../src/guestfs.pod:2914
36190 msgid "L<virt-rescue(1)> command and documentation."
36191 msgstr ""
36192
36193 #. type: =item
36194 #: ../src/guestfs.pod:2916
36195 msgid "C<src>"
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:2918
36200 msgid "Source code to the C library."
36201 msgstr ""
36202
36203 #. type: =item
36204 #: ../src/guestfs.pod:2920
36205 msgid "C<tools>"
36206 msgstr ""
36207
36208 #. type: textblock
36209 #: ../src/guestfs.pod:2922
36210 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
36211 msgstr ""
36212
36213 #. type: =item
36214 #: ../src/guestfs.pod:2924
36215 msgid "C<test-tool>"
36216 msgstr ""
36217
36218 #. type: textblock
36219 #: ../src/guestfs.pod:2926
36220 msgid ""
36221 "Test tool for end users to test if their qemu/kernel combination will work "
36222 "with libguestfs."
36223 msgstr ""
36224
36225 #. type: =item
36226 #: ../src/guestfs.pod:2929
36227 msgid "C<csharp>"
36228 msgstr ""
36229
36230 #. type: =item
36231 #: ../src/guestfs.pod:2931
36232 msgid "C<erlang>"
36233 msgstr ""
36234
36235 #. type: =item
36236 #: ../src/guestfs.pod:2933
36237 msgid "C<haskell>"
36238 msgstr ""
36239
36240 #. type: =item
36241 #: ../src/guestfs.pod:2935
36242 msgid "C<java>"
36243 msgstr ""
36244
36245 #. type: =item
36246 #: ../src/guestfs.pod:2937
36247 msgid "C<ocaml>"
36248 msgstr ""
36249
36250 #. type: =item
36251 #: ../src/guestfs.pod:2939
36252 msgid "C<php>"
36253 msgstr ""
36254
36255 #. type: =item
36256 #: ../src/guestfs.pod:2941
36257 msgid "C<perl>"
36258 msgstr ""
36259
36260 #. type: =item
36261 #: ../src/guestfs.pod:2943
36262 msgid "C<python>"
36263 msgstr ""
36264
36265 #. type: =item
36266 #: ../src/guestfs.pod:2945
36267 msgid "C<ruby>"
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:2947
36272 msgid "Language bindings."
36273 msgstr ""
36274
36275 #. type: =head2
36276 #: ../src/guestfs.pod:2951
36277 msgid "MAKING A STABLE RELEASE"
36278 msgstr ""
36279
36280 #. type: textblock
36281 #: ../src/guestfs.pod:2953
36282 msgid ""
36283 "When we make a stable release, there are several steps documented here.  See "
36284 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
36285 "branch policy."
36286 msgstr ""
36287
36288 #. type: textblock
36289 #: ../src/guestfs.pod:2961
36290 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:2966
36295 msgid "Finalize RELEASE-NOTES."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../src/guestfs.pod:2970
36300 msgid "Update ROADMAP."
36301 msgstr ""
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:2974
36305 msgid "Run C<src/api-support/update-from-tarballs.sh>."
36306 msgstr ""
36307
36308 #. type: textblock
36309 #: ../src/guestfs.pod:2978
36310 msgid "Push and pull from Transifex."
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:2980
36315 msgid "Run:"
36316 msgstr ""
36317
36318 #. type: verbatim
36319 #: ../src/guestfs.pod:2982
36320 #, no-wrap
36321 msgid ""
36322 " tx push -s\n"
36323 "\n"
36324 msgstr ""
36325
36326 #. type: textblock
36327 #: ../src/guestfs.pod:2984
36328 msgid "to push the latest POT files to Transifex.  Then run:"
36329 msgstr ""
36330
36331 #. type: verbatim
36332 #: ../src/guestfs.pod:2986
36333 #, no-wrap
36334 msgid ""
36335 " ./tx-pull.sh\n"
36336 "\n"
36337 msgstr ""
36338
36339 #. type: textblock
36340 #: ../src/guestfs.pod:2988
36341 msgid "which is a wrapper to pull the latest translated C<*.po> files."
36342 msgstr ""
36343
36344 #. type: textblock
36345 #: ../src/guestfs.pod:2992
36346 msgid ""
36347 "Create new stable and development directories under "
36348 "L<http://libguestfs.org/download>."
36349 msgstr ""
36350
36351 #. type: textblock
36352 #: ../src/guestfs.pod:2997
36353 msgid "Create the branch in git:"
36354 msgstr ""
36355
36356 #. type: verbatim
36357 #: ../src/guestfs.pod:2999
36358 #, no-wrap
36359 msgid ""
36360 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36361 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36362 " git branch stable-1.XX\n"
36363 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36364 "\n"
36365 msgstr ""
36366
36367 #. type: =head1
36368 #: ../src/guestfs.pod:3006
36369 msgid "LIMITS"
36370 msgstr ""
36371
36372 #. type: =head2
36373 #: ../src/guestfs.pod:3008
36374 msgid "PROTOCOL LIMITS"
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../src/guestfs.pod:3010
36379 msgid ""
36380 "Internally libguestfs uses a message-based protocol to pass API calls and "
36381 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36382 "plenty more detail about this).  The maximum message size used by the "
36383 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36384 "aware of this limit.  The API calls which may be affected are individually "
36385 "documented, with a link back to this section of the documentation."
36386 msgstr ""
36387
36388 #. type: textblock
36389 #: ../src/guestfs.pod:3018
36390 msgid ""
36391 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36392 "a simple string.  Because this string is at some point internally encoded as "
36393 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36394 "the requested file is larger than this then you will get an error."
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:3024
36399 msgid ""
36400 "In order to transfer large files into and out of the guest filesystem, you "
36401 "need to use particular calls that support this.  The sections L</UPLOADING> "
36402 "and L</DOWNLOADING> document how to do this."
36403 msgstr ""
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:3028
36407 msgid ""
36408 "You might also consider mounting the disk image using our FUSE filesystem "
36409 "support (L<guestmount(1)>)."
36410 msgstr ""
36411
36412 #. type: =head2
36413 #: ../src/guestfs.pod:3031
36414 msgid "MAXIMUM NUMBER OF DISKS"
36415 msgstr ""
36416
36417 #. type: textblock
36418 #: ../src/guestfs.pod:3033
36419 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:3036
36424 msgid ""
36425 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36426 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36427 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36428 "purposes."
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../src/guestfs.pod:3041
36433 msgid ""
36434 "We are working to substantially raise this limit in future versions but it "
36435 "requires complex changes to qemu."
36436 msgstr ""
36437
36438 #. type: textblock
36439 #: ../src/guestfs.pod:3044
36440 msgid ""
36441 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36442 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36443 "requires changes to qemu."
36444 msgstr ""
36445
36446 #. type: =head2
36447 #: ../src/guestfs.pod:3048
36448 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:3050
36453 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:3052
36458 msgid ""
36459 "This is because it reserves 4 bits for the minor device number (thus "
36460 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
36461 msgstr ""
36462
36463 #. type: textblock
36464 #: ../src/guestfs.pod:3055
36465 msgid ""
36466 "If you attach a disk with more than 15 partitions, the extra partitions are "
36467 "ignored by libguestfs."
36468 msgstr ""
36469
36470 #. type: =head2
36471 #: ../src/guestfs.pod:3058
36472 msgid "MAXIMUM SIZE OF A DISK"
36473 msgstr ""
36474
36475 #. type: textblock
36476 #: ../src/guestfs.pod:3060
36477 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36478 msgstr ""
36479
36480 #. type: textblock
36481 #: ../src/guestfs.pod:3062
36482 msgid ""
36483 "We have tested block devices up to 1 exabyte (2**60 or "
36484 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36485 "filesystem."
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:3066
36490 msgid ""
36491 "Although libguestfs probably does not impose any limit, the underlying host "
36492 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36493 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36494 "TB).  If you store disk images as host logical volumes then you are limited "
36495 "by the maximum size of an LV."
36496 msgstr ""
36497
36498 #. type: textblock
36499 #: ../src/guestfs.pod:3072
36500 msgid ""
36501 "For the hugest disk image files, we recommend using XFS on the host for "
36502 "storage."
36503 msgstr ""
36504
36505 #. type: =head2
36506 #: ../src/guestfs.pod:3075
36507 msgid "MAXIMUM SIZE OF A PARTITION"
36508 msgstr ""
36509
36510 #. type: textblock
36511 #: ../src/guestfs.pod:3077
36512 msgid ""
36513 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36514 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36515 "address a partition located beyond 2 TB on the disk."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:3081
36520 msgid ""
36521 "It is recommended that you use GPT partitions on disks which are larger than "
36522 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36523 "which are theoretically larger than the largest disk we could support."
36524 msgstr ""
36525
36526 #. type: =head2
36527 #: ../src/guestfs.pod:3086
36528 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36529 msgstr ""
36530
36531 #. type: textblock
36532 #: ../src/guestfs.pod:3088
36533 msgid ""
36534 "This depends on the filesystem type.  libguestfs itself does not impose any "
36535 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36536 "what these limits are."
36537 msgstr ""
36538
36539 #. type: =head2
36540 #: ../src/guestfs.pod:3092
36541 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../src/guestfs.pod:3094
36546 msgid ""
36547 "The API functions L</guestfs_upload>, L</guestfs_download>, "
36548 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36549 "uploads and downloads."
36550 msgstr ""
36551
36552 #. type: =head2
36553 #: ../src/guestfs.pod:3098
36554 msgid "INSPECTION LIMITS"
36555 msgstr ""
36556
36557 #. type: textblock
36558 #: ../src/guestfs.pod:3100
36559 msgid ""
36560 "The inspection code has several arbitrary limits on things like the size of "
36561 "Windows Registry hive it will read, and the length of product name.  These "
36562 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36563 "memory and disk space on the host, and should not be reached in practice.  "
36564 "See the source code for more information."
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:3126
36569 msgid ""
36570 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36571 "effect as calling C<guestfs_set_verbose (g, 1)>."
36572 msgstr ""
36573
36574 #. type: textblock
36575 #: ../src/guestfs.pod:3138
36576 msgid ""
36577 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36578 "the discussion of paths in section L</PATH> above."
36579 msgstr ""
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:3147
36583 msgid "See also L</QEMU WRAPPERS> above."
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../src/guestfs.pod:3151
36588 msgid ""
36589 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36590 "effect as calling C<guestfs_set_trace (g, 1)>."
36591 msgstr ""
36592
36593 #. type: textblock
36594 #: ../src/guestfs.pod:3169
36595 msgid ""
36596 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
36597 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
36598 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
36599 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
36600 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
36601 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
36602 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
36603 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36604 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36605 msgstr ""
36606
36607 #. type: textblock
36608 #: ../src/guestfs.pod:3200
36609 msgid ""
36610 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
36611 "L<lvm(8)>, L<disktype(1)>."
36612 msgstr ""
36613
36614 #. type: =head1
36615 #: ../src/guestfs.pod:3207 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
36616 msgid "BUGS"
36617 msgstr ""
36618
36619 #. type: textblock
36620 #: ../src/guestfs.pod:3209
36621 msgid "To get a list of bugs against libguestfs use this link:"
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:3211
36626 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
36627 msgstr ""
36628
36629 #. type: textblock
36630 #: ../src/guestfs.pod:3213
36631 msgid "To report a new bug against libguestfs use this link:"
36632 msgstr ""
36633
36634 #. type: textblock
36635 #: ../src/guestfs.pod:3215
36636 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
36637 msgstr ""
36638
36639 #. type: textblock
36640 #: ../src/guestfs.pod:3217
36641 msgid "When reporting a bug, please check:"
36642 msgstr ""
36643
36644 #. type: textblock
36645 #: ../src/guestfs.pod:3223
36646 msgid "That the bug hasn't been reported already."
36647 msgstr ""
36648
36649 #. type: textblock
36650 #: ../src/guestfs.pod:3227
36651 msgid "That you are testing a recent version."
36652 msgstr ""
36653
36654 #. type: textblock
36655 #: ../src/guestfs.pod:3231
36656 msgid "Describe the bug accurately, and give a way to reproduce it."
36657 msgstr ""
36658
36659 #. type: textblock
36660 #: ../src/guestfs.pod:3235
36661 msgid ""
36662 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36663 "bug report."
36664 msgstr ""
36665
36666 #. type: textblock
36667 #: ../test-tool/libguestfs-test-tool.pod:5
36668 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
36669 msgstr ""
36670
36671 #. type: verbatim
36672 #: ../test-tool/libguestfs-test-tool.pod:9
36673 #, no-wrap
36674 msgid ""
36675 " libguestfs-test-tool [--options]\n"
36676 "\n"
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../test-tool/libguestfs-test-tool.pod:13
36681 msgid ""
36682 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
36683 "to check basic libguestfs functionality is working.  This is needed because "
36684 "libguestfs occasionally breaks for reasons beyond our control: usually "
36685 "because of changes in the underlying qemu or kernel packages, or the host "
36686 "environment."
36687 msgstr ""
36688
36689 #. type: textblock
36690 #: ../test-tool/libguestfs-test-tool.pod:19
36691 msgid "If you suspect a problem in libguestfs, then just run:"
36692 msgstr ""
36693
36694 #. type: verbatim
36695 #: ../test-tool/libguestfs-test-tool.pod:21
36696 #, no-wrap
36697 msgid ""
36698 " libguestfs-test-tool\n"
36699 "\n"
36700 msgstr ""
36701
36702 #. type: textblock
36703 #: ../test-tool/libguestfs-test-tool.pod:23
36704 msgid "It will print lots of diagnostic messages."
36705 msgstr ""
36706
36707 #. type: textblock
36708 #: ../test-tool/libguestfs-test-tool.pod:25
36709 msgid "If it runs to completion successfully, you will see this near the end:"
36710 msgstr ""
36711
36712 #. type: verbatim
36713 #: ../test-tool/libguestfs-test-tool.pod:27
36714 #, no-wrap
36715 msgid ""
36716 " ===== TEST FINISHED OK =====\n"
36717 "\n"
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../test-tool/libguestfs-test-tool.pod:29
36722 msgid "and the test tool will exit with code 0."
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../test-tool/libguestfs-test-tool.pod:31
36727 msgid ""
36728 "If it fails (and/or exits with non-zero error code), please paste the "
36729 "I<complete, unedited> output of the test tool into a bug report.  More "
36730 "information about reporting bugs can be found on the "
36731 "L<http://libguestfs.org/> website."
36732 msgstr ""
36733
36734 #. type: textblock
36735 #: ../test-tool/libguestfs-test-tool.pod:42
36736 msgid "Display short usage information and exit."
36737 msgstr ""
36738
36739 #. type: =item
36740 #: ../test-tool/libguestfs-test-tool.pod:44
36741 msgid "B<--qemu qemu_binary>"
36742 msgstr ""
36743
36744 #. type: textblock
36745 #: ../test-tool/libguestfs-test-tool.pod:46
36746 msgid ""
36747 "If you have downloaded another qemu binary, point this option at the full "
36748 "path of the binary to try it."
36749 msgstr ""
36750
36751 #. type: =item
36752 #: ../test-tool/libguestfs-test-tool.pod:49
36753 msgid "B<--qemudir qemu_source_dir>"
36754 msgstr ""
36755
36756 #. type: textblock
36757 #: ../test-tool/libguestfs-test-tool.pod:51
36758 msgid ""
36759 "If you have compiled qemu from source, point this option at the source "
36760 "directory to try it."
36761 msgstr ""
36762
36763 #. type: =item
36764 #: ../test-tool/libguestfs-test-tool.pod:54
36765 msgid "B<-t N>"
36766 msgstr ""
36767
36768 #. type: =item
36769 #: ../test-tool/libguestfs-test-tool.pod:56
36770 msgid "B<--timeout N>"
36771 msgstr ""
36772
36773 #. type: textblock
36774 #: ../test-tool/libguestfs-test-tool.pod:58
36775 msgid ""
36776 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
36777 "minutes) which does not usually need to be adjusted."
36778 msgstr ""
36779
36780 #. type: =head1
36781 #: ../test-tool/libguestfs-test-tool.pod:63
36782 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36783 msgstr ""
36784
36785 #. type: textblock
36786 #: ../test-tool/libguestfs-test-tool.pod:65
36787 msgid ""
36788 "If you have compiled another version of qemu from source and would like to "
36789 "try that, then you can use the I<--qemudir> option to point to the qemu "
36790 "source directory."
36791 msgstr ""
36792
36793 #. type: textblock
36794 #: ../test-tool/libguestfs-test-tool.pod:69
36795 msgid ""
36796 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36797 "option to point to the binary."
36798 msgstr ""
36799
36800 #. type: textblock
36801 #: ../test-tool/libguestfs-test-tool.pod:72
36802 msgid ""
36803 "Note when using these options, you can ignore the business of qemu wrapper "
36804 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
36805 "wrapper script for you if one is needed."
36806 msgstr ""
36807
36808 #. type: =head1
36809 #: ../test-tool/libguestfs-test-tool.pod:76
36810 msgid "TRYING OUT A DIFFERENT KERNEL"
36811 msgstr ""
36812
36813 #. type: textblock
36814 #: ../test-tool/libguestfs-test-tool.pod:78
36815 msgid ""
36816 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
36817 "libguestfs tries.  You do this by setting the environment variables "
36818 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
36819 msgstr ""
36820
36821 #. type: textblock
36822 #: ../test-tool/libguestfs-test-tool.pod:82
36823 msgid ""
36824 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
36825 "information."
36826 msgstr ""
36827
36828 #. type: =head1
36829 #: ../test-tool/libguestfs-test-tool.pod:85
36830 msgid "SELF-DIAGNOSIS"
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../test-tool/libguestfs-test-tool.pod:87
36835 msgid ""
36836 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
36837 "produced by libguestfs-test-tool and/or possible errors."
36838 msgstr ""
36839
36840 #. type: textblock
36841 #: ../test-tool/libguestfs-test-tool.pod:92
36842 msgid ""
36843 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36844 "I<1> if there was an error."
36845 msgstr ""
36846
36847 #. type: textblock
36848 #: ../test-tool/libguestfs-test-tool.pod:97
36849 msgid ""
36850 "For the full list of environment variables which may affect libguestfs, "
36851 "please see the L<guestfs(3)> manual page."
36852 msgstr ""
36853
36854 #. type: textblock
36855 #: ../test-tool/libguestfs-test-tool.pod:102
36856 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36857 msgstr ""
36858
36859 #. type: textblock
36860 #: ../tools/virt-list-filesystems.pl:32
36861 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36862 msgstr ""
36863
36864 #. type: verbatim
36865 #: ../tools/virt-list-filesystems.pl:36
36866 #, no-wrap
36867 msgid ""
36868 " virt-list-filesystems [--options] domname\n"
36869 "\n"
36870 msgstr ""
36871
36872 #. type: verbatim
36873 #: ../tools/virt-list-filesystems.pl:38
36874 #, no-wrap
36875 msgid ""
36876 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36877 "\n"
36878 msgstr ""
36879
36880 #. type: textblock
36881 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36882 msgid ""
36883 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36884 "replacement."
36885 msgstr ""
36886
36887 #. type: textblock
36888 #: ../tools/virt-list-filesystems.pl:45
36889 msgid ""
36890 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36891 "are contained in a virtual machine or disk image."
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../tools/virt-list-filesystems.pl:49
36896 msgid ""
36897 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36898 "functionality.  For more complex cases you should look at the "
36899 "L<guestfish(1)> tool."
36900 msgstr ""
36901
36902 #. type: textblock
36903 #: ../tools/virt-list-filesystems.pl:112
36904 msgid ""
36905 "With this option, C<virt-list-filesystems> displays the type of each "
36906 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36907 msgstr ""
36908
36909 #. type: =item
36910 #: ../tools/virt-list-filesystems.pl:119
36911 msgid "B<-a>"
36912 msgstr ""
36913
36914 #. type: textblock
36915 #: ../tools/virt-list-filesystems.pl:123
36916 msgid ""
36917 "Normally we only show mountable filesystems.  If this option is given then "
36918 "swap devices are shown too."
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../tools/virt-list-filesystems.pl:197
36923 msgid ""
36924 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
36925 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
36926 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36927 msgstr ""
36928
36929 #. type: textblock
36930 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36931 msgid "Copyright (C) 2009 Red Hat Inc."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../tools/virt-list-partitions.pl:32
36936 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
36937 msgstr ""
36938
36939 #. type: verbatim
36940 #: ../tools/virt-list-partitions.pl:36
36941 #, no-wrap
36942 msgid ""
36943 " virt-list-partitions [--options] domname\n"
36944 "\n"
36945 msgstr ""
36946
36947 #. type: verbatim
36948 #: ../tools/virt-list-partitions.pl:38
36949 #, no-wrap
36950 msgid ""
36951 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36952 "\n"
36953 msgstr ""
36954
36955 #. type: textblock
36956 #: ../tools/virt-list-partitions.pl:45
36957 msgid ""
36958 "C<virt-list-partitions> is a command line tool to list the partitions that "
36959 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36960 "first step to using L<virt-resize(1)>."
36961 msgstr ""
36962
36963 #. type: textblock
36964 #: ../tools/virt-list-partitions.pl:50
36965 msgid ""
36966 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36967 "functionality.  For more complex cases you should look at the "
36968 "L<guestfish(1)> tool."
36969 msgstr ""
36970
36971 #. type: textblock
36972 #: ../tools/virt-list-partitions.pl:113
36973 msgid "Show sizes in human-readable form (eg. \"1G\")."
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../tools/virt-list-partitions.pl:123
36978 msgid ""
36979 "With this option, C<virt-list-partitions> displays the type and size of each "
36980 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36981 msgstr ""
36982
36983 #. type: =item
36984 #: ../tools/virt-list-partitions.pl:130
36985 msgid "B<-t>"
36986 msgstr ""
36987
36988 #. type: =item
36989 #: ../tools/virt-list-partitions.pl:132
36990 msgid "B<--total>"
36991 msgstr ""
36992
36993 #. type: textblock
36994 #: ../tools/virt-list-partitions.pl:134
36995 msgid "Display the total size of each block device (as a separate row or rows)."
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../tools/virt-list-partitions.pl:267
37000 msgid ""
37001 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
37002 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
37003 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../tools/virt-list-partitions.pl:283
37008 msgid "Copyright (C) 2009-2010 Red Hat Inc."
37009 msgstr ""
37010
37011 #. type: textblock
37012 #: ../tools/virt-make-fs.pl:37
37013 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
37014 msgstr ""
37015
37016 #. type: verbatim
37017 #: ../tools/virt-make-fs.pl:41
37018 #, no-wrap
37019 msgid ""
37020 " virt-make-fs [--options] input.tar output.img\n"
37021 "\n"
37022 msgstr ""
37023
37024 #. type: verbatim
37025 #: ../tools/virt-make-fs.pl:43
37026 #, no-wrap
37027 msgid ""
37028 " virt-make-fs [--options] input.tar.gz output.img\n"
37029 "\n"
37030 msgstr ""
37031
37032 #. type: verbatim
37033 #: ../tools/virt-make-fs.pl:45
37034 #, no-wrap
37035 msgid ""
37036 " virt-make-fs [--options] directory output.img\n"
37037 "\n"
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../tools/virt-make-fs.pl:49
37042 msgid ""
37043 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
37044 "archive or some files in a directory.  It is similar to tools like "
37045 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
37046 "it can create common filesystem types like ext2/3 or NTFS, which can be "
37047 "useful if you want to attach these filesystems to existing virtual machines "
37048 "(eg. to import large amounts of read-only data to a VM)."
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../tools/virt-make-fs.pl:57
37053 msgid "Basic usage is:"
37054 msgstr ""
37055
37056 #. type: verbatim
37057 #: ../tools/virt-make-fs.pl:59
37058 #, no-wrap
37059 msgid ""
37060 " virt-make-fs input output\n"
37061 "\n"
37062 msgstr ""
37063
37064 #. type: textblock
37065 #: ../tools/virt-make-fs.pl:61
37066 msgid ""
37067 "where C<input> is either a directory containing files that you want to add, "
37068 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
37069 "C<output> is a disk image.  The input type is detected automatically.  The "
37070 "output disk image defaults to a raw ext2 image unless you specify extra "
37071 "flags (see L</OPTIONS> below)."
37072 msgstr ""
37073
37074 #. type: =head2
37075 #: ../tools/virt-make-fs.pl:67
37076 msgid "EXTRA SPACE"
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../tools/virt-make-fs.pl:69
37081 msgid ""
37082 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
37083 "the files that it contains, but might have extra space.  Depending on how "
37084 "you are going to use the output, you might think this extra space is wasted "
37085 "and want to minimize it, or you might want to leave space so that more files "
37086 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
37087 "but you can use the I<--size> flag to leave space in the filesystem if you "
37088 "want it."
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../tools/virt-make-fs.pl:77
37093 msgid ""
37094 "An alternative way to leave extra space but not make the output image any "
37095 "bigger is to use an alternative disk image format (instead of the default "
37096 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
37097 "image format (check your hypervisor supports this before using it).  This "
37098 "allows you to choose a large I<--size> but the extra space won't actually be "
37099 "allocated in the image until you try to store something in it."
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../tools/virt-make-fs.pl:85
37104 msgid ""
37105 "Don't forget that you can also use local commands including L<resize2fs(8)> "
37106 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
37107 "to build another image from scratch."
37108 msgstr ""
37109
37110 #. type: =head3
37111 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
37112 msgid "EXAMPLE"
37113 msgstr ""
37114
37115 #. type: verbatim
37116 #: ../tools/virt-make-fs.pl:91
37117 #, no-wrap
37118 msgid ""
37119 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
37120 "\n"
37121 msgstr ""
37122
37123 #. type: =head2
37124 #: ../tools/virt-make-fs.pl:93
37125 msgid "FILESYSTEM TYPE"
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../tools/virt-make-fs.pl:95
37130 msgid ""
37131 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
37132 "libguestfs supports can be used (but I<not> read-only formats like "
37133 "ISO9660).  Here are some of the more common choices:"
37134 msgstr ""
37135
37136 #. type: =item
37137 #: ../tools/virt-make-fs.pl:101
37138 msgid "I<ext3>"
37139 msgstr ""
37140
37141 #. type: textblock
37142 #: ../tools/virt-make-fs.pl:103
37143 msgid ""
37144 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
37145 "you are not going to use the filesystem in a way that requires the journal, "
37146 "then this is just wasted overhead."
37147 msgstr ""
37148
37149 #. type: =item
37150 #: ../tools/virt-make-fs.pl:107
37151 msgid "I<ntfs> or I<vfat>"
37152 msgstr ""
37153
37154 #. type: textblock
37155 #: ../tools/virt-make-fs.pl:109
37156 msgid "Useful if exporting data to a Windows guest."
37157 msgstr ""
37158
37159 #. type: textblock
37160 #: ../tools/virt-make-fs.pl:111
37161 msgid ""
37162 "I<Note for vfat>: The tar archive or local directory must only contain files "
37163 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
37164 "program running within libguestfs is unable to change the ownership of "
37165 "non-root files, since vfat itself does not support this."
37166 msgstr ""
37167
37168 #. type: =item
37169 #: ../tools/virt-make-fs.pl:116
37170 msgid "I<minix>"
37171 msgstr ""
37172
37173 #. type: textblock
37174 #: ../tools/virt-make-fs.pl:118
37175 msgid ""
37176 "Lower overhead than C<ext2>, but certain limitations on filename length and "
37177 "total filesystem size."
37178 msgstr ""
37179
37180 #. type: verbatim
37181 #: ../tools/virt-make-fs.pl:125
37182 #, no-wrap
37183 msgid ""
37184 " virt-make-fs --type=minix input minixfs.img\n"
37185 "\n"
37186 msgstr ""
37187
37188 #. type: =head2
37189 #: ../tools/virt-make-fs.pl:127
37190 msgid "TO PARTITION OR NOT TO PARTITION"
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../tools/virt-make-fs.pl:129
37195 msgid "Optionally virt-make-fs can add a partition table to the output disk."
37196 msgstr ""
37197
37198 #. type: textblock
37199 #: ../tools/virt-make-fs.pl:131
37200 msgid ""
37201 "Adding a partition can make the disk image more compatible with certain "
37202 "virtualized operating systems which don't expect to see a filesystem "
37203 "directly located on a block device (Linux doesn't care and will happily "
37204 "handle both types)."
37205 msgstr ""
37206
37207 #. type: textblock
37208 #: ../tools/virt-make-fs.pl:136
37209 msgid ""
37210 "On the other hand, if you have a partition table then the output image is no "
37211 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
37212 "directly on a partitioned disk image.  (However libguestfs tools such as "
37213 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
37214 msgstr ""
37215
37216 #. type: textblock
37217 #: ../tools/virt-make-fs.pl:144
37218 msgid "Add an MBR partition:"
37219 msgstr ""
37220
37221 #. type: verbatim
37222 #: ../tools/virt-make-fs.pl:146
37223 #, no-wrap
37224 msgid ""
37225 " virt-make-fs --partition -- input disk.img\n"
37226 "\n"
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../tools/virt-make-fs.pl:148
37231 msgid ""
37232 "If the output disk image could be terabyte-sized or larger, it's better to "
37233 "use an EFI/GPT-compatible partition table:"
37234 msgstr ""
37235
37236 #. type: verbatim
37237 #: ../tools/virt-make-fs.pl:151
37238 #, no-wrap
37239 msgid ""
37240 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
37241 "\n"
37242 msgstr ""
37243
37244 #. type: textblock
37245 #: ../tools/virt-make-fs.pl:179
37246 msgid "Enable debugging information."
37247 msgstr ""
37248
37249 #. type: =item
37250 #: ../tools/virt-make-fs.pl:185
37251 msgid "B<--size=E<lt>NE<gt>>"
37252 msgstr ""
37253
37254 #. type: =item
37255 #: ../tools/virt-make-fs.pl:187
37256 msgid "B<--size=+E<lt>NE<gt>>"
37257 msgstr ""
37258
37259 #. type: =item
37260 #: ../tools/virt-make-fs.pl:189
37261 msgid "B<-s E<lt>NE<gt>>"
37262 msgstr ""
37263
37264 #. type: =item
37265 #: ../tools/virt-make-fs.pl:191
37266 msgid "B<-s +E<lt>NE<gt>>"
37267 msgstr ""
37268
37269 #. type: textblock
37270 #: ../tools/virt-make-fs.pl:193
37271 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../tools/virt-make-fs.pl:196
37276 msgid ""
37277 "If this option is I<not> given, then the output image will be just large "
37278 "enough to contain all the files, with not much wasted space."
37279 msgstr ""
37280
37281 #. type: textblock
37282 #: ../tools/virt-make-fs.pl:199
37283 msgid ""
37284 "To choose a fixed size output disk, specify an absolute number followed by "
37285 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37286 "Petabytes or Exabytes.  This must be large enough to contain all the input "
37287 "files, else you will get an error."
37288 msgstr ""
37289
37290 #. type: textblock
37291 #: ../tools/virt-make-fs.pl:204
37292 msgid ""
37293 "To leave extra space, specify C<+> (plus sign) and a number followed by "
37294 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
37295 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
37296 "the input files, and (approximately) an extra 200 MB free space."
37297 msgstr ""
37298
37299 #. type: textblock
37300 #: ../tools/virt-make-fs.pl:210
37301 msgid ""
37302 "Note that virt-make-fs estimates free space, and therefore will not produce "
37303 "filesystems containing precisely the free space requested.  (It is much more "
37304 "expensive and time-consuming to produce a filesystem which has precisely the "
37305 "desired free space)."
37306 msgstr ""
37307
37308 #. type: =item
37309 #: ../tools/virt-make-fs.pl:219
37310 msgid "B<--format=E<lt>fmtE<gt>>"
37311 msgstr ""
37312
37313 #. type: =item
37314 #: ../tools/virt-make-fs.pl:221
37315 msgid "B<-F E<lt>fmtE<gt>>"
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../tools/virt-make-fs.pl:223
37320 msgid "Choose the output disk image format."
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../tools/virt-make-fs.pl:225
37325 msgid "The default is C<raw> (raw disk image)."
37326 msgstr ""
37327
37328 #. type: textblock
37329 #: ../tools/virt-make-fs.pl:227
37330 msgid ""
37331 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
37332 "that would really make sense here is C<qcow2>."
37333 msgstr ""
37334
37335 #. type: =item
37336 #: ../tools/virt-make-fs.pl:234
37337 msgid "B<--type=E<lt>fsE<gt>>"
37338 msgstr ""
37339
37340 #. type: =item
37341 #: ../tools/virt-make-fs.pl:236
37342 msgid "B<-t E<lt>fsE<gt>>"
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../tools/virt-make-fs.pl:238
37347 msgid "Choose the output filesystem type."
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../tools/virt-make-fs.pl:240
37352 msgid "The default is C<ext2>."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../tools/virt-make-fs.pl:242
37357 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
37358 msgstr ""
37359
37360 #. type: =item
37361 #: ../tools/virt-make-fs.pl:249
37362 msgid "B<--partition>"
37363 msgstr ""
37364
37365 #. type: =item
37366 #: ../tools/virt-make-fs.pl:251
37367 msgid "B<--partition=E<lt>parttypeE<gt>>"
37368 msgstr ""
37369
37370 #. type: textblock
37371 #: ../tools/virt-make-fs.pl:253
37372 msgid ""
37373 "If specified, this flag adds an MBR partition table to the output disk "
37374 "image."
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../tools/virt-make-fs.pl:256
37379 msgid ""
37380 "You can change the partition table type, eg. I<--partition=gpt> for large "
37381 "disks."
37382 msgstr ""
37383
37384 #. type: textblock
37385 #: ../tools/virt-make-fs.pl:259
37386 msgid ""
37387 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37388 "might consider the next parameter to be the partition type.  For example:"
37389 msgstr ""
37390
37391 #. type: verbatim
37392 #: ../tools/virt-make-fs.pl:263
37393 #, no-wrap
37394 msgid ""
37395 " virt-make-fs --partition input.tar ...\n"
37396 "\n"
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../tools/virt-make-fs.pl:265
37401 msgid ""
37402 "would cause virt-make-fs to think you wanted to use a partition type of "
37403 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37404 "dash) between options and the input file argument:"
37405 msgstr ""
37406
37407 #. type: verbatim
37408 #: ../tools/virt-make-fs.pl:269
37409 #, no-wrap
37410 msgid ""
37411 " virt-make-fs --partition -- input.tar ...\n"
37412 "\n"
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../tools/virt-make-fs.pl:541
37417 msgid ""
37418 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37419 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
37420 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37421 msgstr ""
37422
37423 #. type: textblock
37424 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37425 msgid ""
37426 "When reporting bugs, please enable debugging and capture the I<complete> "
37427 "output:"
37428 msgstr ""
37429
37430 #. type: verbatim
37431 #: ../tools/virt-make-fs.pl:558
37432 #, no-wrap
37433 msgid ""
37434 " export LIBGUESTFS_DEBUG=1\n"
37435 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37436 "\n"
37437 msgstr ""
37438
37439 #. type: textblock
37440 #: ../tools/virt-make-fs.pl:561
37441 msgid ""
37442 "Attach /tmp/virt-make-fs.log to a new bug report at "
37443 "L<https://bugzilla.redhat.com/>"
37444 msgstr ""
37445
37446 #. type: textblock
37447 #: ../tools/virt-tar.pl:33
37448 msgid "virt-tar - Extract or upload files to a virtual machine"
37449 msgstr ""
37450
37451 #. type: verbatim
37452 #: ../tools/virt-tar.pl:37
37453 #, no-wrap
37454 msgid ""
37455 " virt-tar [--options] -x domname directory tarball\n"
37456 "\n"
37457 msgstr ""
37458
37459 #. type: verbatim
37460 #: ../tools/virt-tar.pl:39
37461 #, no-wrap
37462 msgid ""
37463 " virt-tar [--options] -u domname tarball directory\n"
37464 "\n"
37465 msgstr ""
37466
37467 #. type: verbatim
37468 #: ../tools/virt-tar.pl:41
37469 #, no-wrap
37470 msgid ""
37471 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37472 "\n"
37473 msgstr ""
37474
37475 #. type: verbatim
37476 #: ../tools/virt-tar.pl:43
37477 #, no-wrap
37478 msgid ""
37479 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37480 "\n"
37481 msgstr ""
37482
37483 #. type: =head2
37484 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37485 msgid "NOTE"
37486 msgstr ""
37487
37488 #. type: textblock
37489 #: ../tools/virt-tar.pl:47
37490 msgid ""
37491 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
37492 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
37493 msgstr ""
37494
37495 #. type: textblock
37496 #: ../tools/virt-tar.pl:52
37497 msgid "Download C</home> from the VM into a local tarball:"
37498 msgstr ""
37499
37500 #. type: verbatim
37501 #: ../tools/virt-tar.pl:54
37502 #, no-wrap
37503 msgid ""
37504 " virt-tar -x domname /home home.tar\n"
37505 "\n"
37506 msgstr ""
37507
37508 #. type: verbatim
37509 #: ../tools/virt-tar.pl:56
37510 #, no-wrap
37511 msgid ""
37512 " virt-tar -zx domname /home home.tar.gz\n"
37513 "\n"
37514 msgstr ""
37515
37516 #. type: textblock
37517 #: ../tools/virt-tar.pl:58
37518 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37519 msgstr ""
37520
37521 #. type: verbatim
37522 #: ../tools/virt-tar.pl:60
37523 #, no-wrap
37524 msgid ""
37525 " virt-tar -u domname uploadstuff.tar /tmp\n"
37526 "\n"
37527 msgstr ""
37528
37529 #. type: verbatim
37530 #: ../tools/virt-tar.pl:62
37531 #, no-wrap
37532 msgid ""
37533 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37534 "\n"
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../tools/virt-tar.pl:66
37539 msgid ""
37540 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37541 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37542 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37543 msgstr ""
37544
37545 #. type: textblock
37546 #: ../tools/virt-tar.pl:71
37547 msgid ""
37548 "You can use I<-x> (extract) on live virtual machines, but you might get "
37549 "inconsistent results or errors if there is filesystem activity inside the "
37550 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37551 "work, but the only way to guarantee consistent results is if the virtual "
37552 "machine is shut down."
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../tools/virt-tar.pl:79
37557 msgid ""
37558 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37559 "parts of a guest filesystem.  There are many possibilities: making backups, "
37560 "uploading data files, snooping on guest activity, fixing or customizing "
37561 "guests, etc."
37562 msgstr ""
37563
37564 #. type: textblock
37565 #: ../tools/virt-tar.pl:84
37566 msgid ""
37567 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37568 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37569 "should look at the L<guestfish(1)> tool."
37570 msgstr ""
37571
37572 #. type: textblock
37573 #: ../tools/virt-tar.pl:88
37574 msgid ""
37575 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37576 "its contents (recursively) from the virtual machine into a local tarball.  "
37577 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37578 "virtual machine.  You cannot use these two options together."
37579 msgstr ""
37580
37581 #. type: textblock
37582 #: ../tools/virt-tar.pl:94
37583 msgid ""
37584 "In addition, you may need to use the I<-z> (gZip) option to enable "
37585 "compression.  When uploading, you have to specify I<-z> if the upload file "
37586 "is compressed because virt-tar won't detect this on its own."
37587 msgstr ""
37588
37589 #. type: textblock
37590 #: ../tools/virt-tar.pl:98
37591 msgid ""
37592 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37593 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37594 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37595 "the L<libguestfs(3)> API)."
37596 msgstr ""
37597
37598 #. type: =item
37599 #: ../tools/virt-tar.pl:160
37600 msgid "B<--extract>"
37601 msgstr ""
37602
37603 #. type: =item
37604 #: ../tools/virt-tar.pl:162
37605 msgid "B<--download>"
37606 msgstr ""
37607
37608 #. type: =item
37609 #: ../tools/virt-tar.pl:164
37610 msgid "B<-u>"
37611 msgstr ""
37612
37613 #. type: =item
37614 #: ../tools/virt-tar.pl:166
37615 msgid "B<--upload>"
37616 msgstr ""
37617
37618 #. type: textblock
37619 #: ../tools/virt-tar.pl:168
37620 msgid ""
37621 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37622 "local tarball."
37623 msgstr ""
37624
37625 #. type: textblock
37626 #: ../tools/virt-tar.pl:171
37627 msgid ""
37628 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37629 "Please read the L</WARNING> section above before using this option."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../tools/virt-tar.pl:175
37634 msgid "You must specify exactly one of these options."
37635 msgstr ""
37636
37637 #. type: =item
37638 #: ../tools/virt-tar.pl:181
37639 msgid "B<-z>"
37640 msgstr ""
37641
37642 #. type: =item
37643 #: ../tools/virt-tar.pl:183
37644 msgid "B<--gzip>"
37645 msgstr ""
37646
37647 #. type: textblock
37648 #: ../tools/virt-tar.pl:185
37649 msgid "Specify that the input or output tarball is gzip-compressed."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../tools/virt-tar.pl:298
37654 msgid ""
37655 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
37656 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37657 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
37658 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37659 msgstr ""
37660
37661 #. type: textblock
37662 #: ../tools/virt-win-reg.pl:37
37663 msgid ""
37664 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
37665 "guest"
37666 msgstr ""
37667
37668 #. type: verbatim
37669 #: ../tools/virt-win-reg.pl:41
37670 #, no-wrap
37671 msgid ""
37672 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37673 "\n"
37674 msgstr ""
37675
37676 #. type: verbatim
37677 #: ../tools/virt-win-reg.pl:43
37678 #, no-wrap
37679 msgid ""
37680 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37681 "\n"
37682 msgstr ""
37683
37684 #. type: verbatim
37685 #: ../tools/virt-win-reg.pl:45
37686 #, no-wrap
37687 msgid ""
37688 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37689 "\n"
37690 msgstr ""
37691
37692 #. type: verbatim
37693 #: ../tools/virt-win-reg.pl:47
37694 #, no-wrap
37695 msgid ""
37696 " virt-win-reg --merge domname [input.reg ...]\n"
37697 "\n"
37698 msgstr ""
37699
37700 #. type: verbatim
37701 #: ../tools/virt-win-reg.pl:49
37702 #, no-wrap
37703 msgid ""
37704 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37705 "\n"
37706 msgstr ""
37707
37708 #. type: textblock
37709 #: ../tools/virt-win-reg.pl:53
37710 msgid ""
37711 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37712 "virtual machines.  If you do this, you I<will> get irreversible disk "
37713 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37714 "but doesn't catch all cases."
37715 msgstr ""
37716
37717 #. type: textblock
37718 #: ../tools/virt-win-reg.pl:58
37719 msgid ""
37720 "Modifying the Windows Registry is an inherently risky operation.  The format "
37721 "is deliberately obscure and undocumented, and Registry changes can leave the "
37722 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37723 "you have a reliable backup first."
37724 msgstr ""
37725
37726 #. type: textblock
37727 #: ../tools/virt-win-reg.pl:65
37728 msgid ""
37729 "This program can export and merge Windows Registry entries from a Windows "
37730 "guest."
37731 msgstr ""
37732
37733 #. type: textblock
37734 #: ../tools/virt-win-reg.pl:68
37735 msgid ""
37736 "The first parameter is the libvirt guest name or the raw disk image of a "
37737 "Windows guest."
37738 msgstr ""
37739
37740 #. type: textblock
37741 #: ../tools/virt-win-reg.pl:71
37742 msgid ""
37743 "If I<--merge> is I<not> specified, then the chosen registry key is "
37744 "displayed/exported (recursively).  For example:"
37745 msgstr ""
37746
37747 #. type: verbatim
37748 #: ../tools/virt-win-reg.pl:74
37749 #, no-wrap
37750 msgid ""
37751 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37752 "\n"
37753 msgstr ""
37754
37755 #. type: textblock
37756 #: ../tools/virt-win-reg.pl:76
37757 msgid "You can also display single values from within registry keys, for example:"
37758 msgstr ""
37759
37760 #. type: verbatim
37761 #: ../tools/virt-win-reg.pl:79
37762 #, no-wrap
37763 msgid ""
37764 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37765 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37766 " Windows 7 Enterprise\n"
37767 "\n"
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../tools/virt-win-reg.pl:83
37772 msgid ""
37773 "With I<--merge>, you can merge a textual regedit file into the Windows "
37774 "Registry:"
37775 msgstr ""
37776
37777 #. type: verbatim
37778 #: ../tools/virt-win-reg.pl:86
37779 #, no-wrap
37780 msgid ""
37781 " $ virt-win-reg --merge Windows7 changes.reg\n"
37782 "\n"
37783 msgstr ""
37784
37785 #. type: textblock
37786 #: ../tools/virt-win-reg.pl:90
37787 msgid ""
37788 "This program is only meant for simple access to the registry.  If you want "
37789 "to do complicated things with the registry, we suggest you download the "
37790 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37791 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37792 "L<hivexregedit(1)>."
37793 msgstr ""
37794
37795 #. type: =item
37796 #: ../tools/virt-win-reg.pl:159
37797 msgid "B<--merge>"
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../tools/virt-win-reg.pl:161
37802 msgid ""
37803 "In merge mode, this merges a textual regedit file into the Windows Registry "
37804 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37805 "displays or exports Registry entries instead."
37806 msgstr ""
37807
37808 #. type: textblock
37809 #: ../tools/virt-win-reg.pl:165
37810 msgid ""
37811 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37812 "result in disk corruption.  However exporting (without this flag)  is always "
37813 "safe."
37814 msgstr ""
37815
37816 #. type: =item
37817 #: ../tools/virt-win-reg.pl:173
37818 msgid "B<--encoding> UTF-16LE|ASCII"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../tools/virt-win-reg.pl:175
37823 msgid ""
37824 "When merging (only), you may need to specify the encoding for strings to be "
37825 "used in the hive file.  This is explained in detail in "
37826 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
37827 msgstr ""
37828
37829 #. type: textblock
37830 #: ../tools/virt-win-reg.pl:179
37831 msgid ""
37832 "The default is to use UTF-16LE, which should work with recent versions of "
37833 "Windows."
37834 msgstr ""
37835
37836 #. type: =item
37837 #: ../tools/virt-win-reg.pl:186
37838 msgid "B<--unsafe-printable-strings>"
37839 msgstr ""
37840
37841 #. type: textblock
37842 #: ../tools/virt-win-reg.pl:188
37843 msgid ""
37844 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37845 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37846 "present."
37847 msgstr ""
37848
37849 #. type: textblock
37850 #: ../tools/virt-win-reg.pl:192
37851 msgid ""
37852 "This is unsafe and does not preserve the fidelity of strings in the original "
37853 "Registry for various reasons:"
37854 msgstr ""
37855
37856 #. type: textblock
37857 #: ../tools/virt-win-reg.pl:199
37858 msgid ""
37859 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37860 "other encodings will be corrupted by this transformation."
37861 msgstr ""
37862
37863 #. type: textblock
37864 #: ../tools/virt-win-reg.pl:204
37865 msgid ""
37866 "Assumes that everything which has type 1 or 2 is really a string and that "
37867 "everything else is not a string, but the type field in real Registries is "
37868 "not reliable."
37869 msgstr ""
37870
37871 #. type: textblock
37872 #: ../tools/virt-win-reg.pl:210
37873 msgid ""
37874 "Loses information about whether a zero codepoint followed the string in the "
37875 "Registry or not."
37876 msgstr ""
37877
37878 #. type: textblock
37879 #: ../tools/virt-win-reg.pl:215
37880 msgid ""
37881 "This all happens because the Registry itself contains no information about "
37882 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37883 msgstr ""
37884
37885 #. type: textblock
37886 #: ../tools/virt-win-reg.pl:219
37887 msgid ""
37888 "You should only use this option for quick hacking and debugging of the "
37889 "Registry contents, and I<never> use it if the output is going to be passed "
37890 "into another program or stored in another Registry."
37891 msgstr ""
37892
37893 #. type: =head1
37894 #: ../tools/virt-win-reg.pl:556
37895 msgid "SUPPORTED SYSTEMS"
37896 msgstr ""
37897
37898 #. type: textblock
37899 #: ../tools/virt-win-reg.pl:558
37900 msgid ""
37901 "The program currently supports Windows NT-derived guests starting with "
37902 "Windows XP through to at least Windows 7."
37903 msgstr ""
37904
37905 #. type: textblock
37906 #: ../tools/virt-win-reg.pl:561
37907 msgid "The following Registry keys are supported:"
37908 msgstr ""
37909
37910 #. type: =item
37911 #: ../tools/virt-win-reg.pl:565
37912 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37913 msgstr ""
37914
37915 #. type: =item
37916 #: ../tools/virt-win-reg.pl:567
37917 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37918 msgstr ""
37919
37920 #. type: =item
37921 #: ../tools/virt-win-reg.pl:569
37922 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37923 msgstr ""
37924
37925 #. type: =item
37926 #: ../tools/virt-win-reg.pl:571
37927 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37928 msgstr ""
37929
37930 #. type: =item
37931 #: ../tools/virt-win-reg.pl:573
37932 msgid "C<HKEY_USERS\\.DEFAULT>"
37933 msgstr ""
37934
37935 #. type: =item
37936 #: ../tools/virt-win-reg.pl:575
37937 msgid "C<HKEY_USERS\\I<SID>>"
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../tools/virt-win-reg.pl:577
37942 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37943 msgstr ""
37944
37945 #. type: =item
37946 #: ../tools/virt-win-reg.pl:579
37947 msgid "C<HKEY_USERS\\I<username>>"
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../tools/virt-win-reg.pl:581
37952 msgid "where I<username> is a local user name (this is a libguestfs extension)."
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../tools/virt-win-reg.pl:585
37957 msgid ""
37958 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37959 "C<HKEY_USERS>."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../tools/virt-win-reg.pl:588
37964 msgid ""
37965 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37966 "supported (there is no \"current user\")."
37967 msgstr ""
37968
37969 #. type: =head1
37970 #: ../tools/virt-win-reg.pl:591
37971 msgid "ENCODING"
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../tools/virt-win-reg.pl:593
37976 msgid ""
37977 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37978 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
37979 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
37980 "with Windows-style line endings, you may need to reencode the whole file "
37981 "before or after processing."
37982 msgstr ""
37983
37984 #. type: textblock
37985 #: ../tools/virt-win-reg.pl:599
37986 msgid ""
37987 "To reencode a file from Windows format to Linux (before processing it with "
37988 "the I<--merge> option), you would do something like this:"
37989 msgstr ""
37990
37991 #. type: verbatim
37992 #: ../tools/virt-win-reg.pl:602
37993 #, no-wrap
37994 msgid ""
37995 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37996 "\n"
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../tools/virt-win-reg.pl:604
38001 msgid ""
38002 "To go in the opposite direction, after exporting and before sending the file "
38003 "to a Windows user, do something like this:"
38004 msgstr ""
38005
38006 #. type: verbatim
38007 #: ../tools/virt-win-reg.pl:607
38008 #, no-wrap
38009 msgid ""
38010 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
38011 "\n"
38012 msgstr ""
38013
38014 #. type: textblock
38015 #: ../tools/virt-win-reg.pl:609
38016 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
38017 msgstr ""
38018
38019 #. type: textblock
38020 #: ../tools/virt-win-reg.pl:611
38021 msgid ""
38022 "If you are unsure about the current encoding, use the L<file(1)> command.  "
38023 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
38024 "Windows-style (CRLF) line endings, like this:"
38025 msgstr ""
38026
38027 #. type: verbatim
38028 #: ../tools/virt-win-reg.pl:615
38029 #, no-wrap
38030 msgid ""
38031 " $ file software.reg\n"
38032 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
38033 " with CRLF line terminators\n"
38034 "\n"
38035 msgstr ""
38036
38037 #. type: textblock
38038 #: ../tools/virt-win-reg.pl:619
38039 msgid "This file would need conversion before you could I<--merge> it."
38040 msgstr ""
38041
38042 #. type: =head1
38043 #: ../tools/virt-win-reg.pl:621
38044 msgid "CurrentControlSet etc."
38045 msgstr ""
38046
38047 #. type: textblock
38048 #: ../tools/virt-win-reg.pl:623
38049 msgid ""
38050 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
38051 "Registry at the level of the hive file, and therefore you cannot modify "
38052 "these."
38053 msgstr ""
38054
38055 #. type: textblock
38056 #: ../tools/virt-win-reg.pl:627
38057 msgid ""
38058 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
38059 "circumstances it might refer to another control set.  The way to find out is "
38060 "to look at the C<HKLM\\SYSTEM\\Select> key:"
38061 msgstr ""
38062
38063 #. type: verbatim
38064 #: ../tools/virt-win-reg.pl:631
38065 #, no-wrap
38066 msgid ""
38067 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
38068 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
38069 " \"Current\"=dword:00000001\n"
38070 " \"Default\"=dword:00000001\n"
38071 " \"Failed\"=dword:00000000\n"
38072 " \"LastKnownGood\"=dword:00000002\n"
38073 "\n"
38074 msgstr ""
38075
38076 #. type: textblock
38077 #: ../tools/virt-win-reg.pl:638
38078 msgid "\"Current\" is the one which Windows will choose when it boots."
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../tools/virt-win-reg.pl:640
38083 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
38084 msgstr ""
38085
38086 #. type: =head1
38087 #: ../tools/virt-win-reg.pl:643
38088 msgid "WINDOWS TIPS"
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../tools/virt-win-reg.pl:645
38093 msgid ""
38094 "Note that some of these tips modify the guest disk image.  The guest I<must> "
38095 "be shut off, else you will get disk corruption."
38096 msgstr ""
38097
38098 #. type: =head2
38099 #: ../tools/virt-win-reg.pl:648
38100 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../tools/virt-win-reg.pl:650
38105 msgid ""
38106 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
38107 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
38108 "is uploaded into C<C:\\>:"
38109 msgstr ""
38110
38111 #. type: verbatim
38112 #: ../tools/virt-win-reg.pl:654
38113 #, no-wrap
38114 msgid ""
38115 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
38116 "\n"
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../tools/virt-win-reg.pl:656
38121 msgid "Prepare a regedit file containing the registry change:"
38122 msgstr ""
38123
38124 #. type: verbatim
38125 #: ../tools/virt-win-reg.pl:658
38126 #, no-wrap
38127 msgid ""
38128 " cat > test.reg <<'EOF'\n"
38129 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
38130 " \"Test\"=\"c:\\\\test.bat\"\n"
38131 " EOF\n"
38132 "\n"
38133 msgstr ""
38134
38135 #. type: textblock
38136 #: ../tools/virt-win-reg.pl:663
38137 msgid ""
38138 "In this example we use the key C<RunOnce> which means that the script will "
38139 "run precisely once when the first user logs in.  If you want it to run every "
38140 "time a user logs in, replace C<RunOnce> with C<Run>."
38141 msgstr ""
38142
38143 #. type: textblock
38144 #: ../tools/virt-win-reg.pl:667
38145 msgid "Now update the registry:"
38146 msgstr ""
38147
38148 #. type: verbatim
38149 #: ../tools/virt-win-reg.pl:669
38150 #, no-wrap
38151 msgid ""
38152 " virt-win-reg --merge WindowsGuest test.reg\n"
38153 "\n"
38154 msgstr ""
38155
38156 #. type: =head2
38157 #: ../tools/virt-win-reg.pl:671
38158 msgid "INSTALLING A SERVICE"
38159 msgstr ""
38160
38161 #. type: textblock
38162 #: ../tools/virt-win-reg.pl:673
38163 msgid ""
38164 "This section assumes you are familiar with Windows services, and you either "
38165 "have a program which handles the Windows Service Control Protocol directly "
38166 "or you want to run any program using a service wrapper like SrvAny or the "
38167 "free RHSrvAny."
38168 msgstr ""
38169
38170 #. type: textblock
38171 #: ../tools/virt-win-reg.pl:678
38172 msgid ""
38173 "First upload the program and optionally the service wrapper.  In this case "
38174 "the test program is called C<test.exe> and we are using the RHSrvAny "
38175 "wrapper:"
38176 msgstr ""
38177
38178 #. type: verbatim
38179 #: ../tools/virt-win-reg.pl:682
38180 #, no-wrap
38181 msgid ""
38182 " guestfish -i -d WindowsGuest <<EOF\n"
38183 "   upload rhsrvany.exe /rhsrvany.exe\n"
38184 "   upload test.exe /test.exe\n"
38185 " EOF\n"
38186 "\n"
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../tools/virt-win-reg.pl:687
38191 msgid ""
38192 "Prepare a regedit file containing the registry changes.  In this example, "
38193 "the first registry change is needed for the service itself or the service "
38194 "wrapper (if used).  The second registry change is only needed because I am "
38195 "using the RHSrvAny service wrapper."
38196 msgstr ""
38197
38198 #. type: verbatim
38199 #: ../tools/virt-win-reg.pl:692
38200 #, no-wrap
38201 msgid ""
38202 " cat > service.reg <<'EOF'\n"
38203 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
38204 " \"Type\"=dword:00000010\n"
38205 " \"Start\"=dword:00000002\n"
38206 " \"ErrorControl\"=dword:00000001\n"
38207 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
38208 " \"DisplayName\"=\"RHSrvAny\"\n"
38209 " \"ObjectName\"=\"NetworkService\"\n"
38210 " \n"
38211 msgstr ""
38212
38213 #. type: verbatim
38214 #: ../tools/virt-win-reg.pl:701
38215 #, no-wrap
38216 msgid ""
38217 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
38218 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
38219 " \"PWD\"=\"c:\\\\Temp\"\n"
38220 " EOF\n"
38221 "\n"
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../tools/virt-win-reg.pl:712
38226 msgid ""
38227 "For use of C<ControlSet001> see the section above in this manual page.  You "
38228 "may need to adjust this according to the control set that is in use by the "
38229 "guest."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../tools/virt-win-reg.pl:718
38234 msgid ""
38235 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
38236 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
38237 "privileged account."
38238 msgstr ""
38239
38240 #. type: textblock
38241 #: ../tools/virt-win-reg.pl:724
38242 msgid ""
38243 "For the meaning of the magic numbers, see this Microsoft KB article: "
38244 "L<http://support.microsoft.com/kb/103000>."
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../tools/virt-win-reg.pl:729
38249 msgid "Update the registry:"
38250 msgstr ""
38251
38252 #. type: verbatim
38253 #: ../tools/virt-win-reg.pl:731
38254 #, no-wrap
38255 msgid ""
38256 " virt-win-reg --merge WindowsGuest service.reg\n"
38257 "\n"
38258 msgstr ""
38259
38260 #. type: textblock
38261 #: ../tools/virt-win-reg.pl:735
38262 msgid ""
38263 "Be careful when passing parameters containing C<\\> (backslash) in the "
38264 "shell.  Usually you will have to use 'single quotes' or double backslashes "
38265 "(but not both) to protect them from the shell."
38266 msgstr ""
38267
38268 #. type: textblock
38269 #: ../tools/virt-win-reg.pl:739
38270 msgid "Paths and value names are case-insensitive."
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../tools/virt-win-reg.pl:748
38275 msgid ""
38276 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
38277 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
38278 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
38279 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38280 msgstr ""
38281
38282 #. type: verbatim
38283 #: ../tools/virt-win-reg.pl:766
38284 #, no-wrap
38285 msgid ""
38286 " export LIBGUESTFS_DEBUG=1\n"
38287 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
38288 "\n"
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../tools/virt-win-reg.pl:769
38293 msgid ""
38294 "Attach /tmp/virt-win-reg.log to a new bug report at "
38295 "L<https://bugzilla.redhat.com/>"
38296 msgstr ""