New APIs: compress-out, compress-device-out.
[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.14\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-09-24 22:11+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:2765
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:178
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:180
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:182
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:184 ../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:186 ../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:188 ../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:199 ../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:201
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:205
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:211
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:215
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:219
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:262 ../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:264 ../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:284 ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36 ../src/guestfs.pod:3141 ../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:292 ../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:294 ../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:296 ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52 ../src/guestfs.pod:3218 ../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:300 ../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:305 ../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:310 ../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:4214
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:298
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:1104 ../fish/guestfish-actions.pod:1108 ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116 ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128 ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142 ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150 ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254 ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555 ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1970 ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1985 ../fish/guestfish-actions.pod:1992 ../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:1667 ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2890 ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:2904 ../src/guestfs-actions.pod:2911 ../src/guestfs-actions.pod:2918 ../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:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1076 ../src/guestfs.pod:1081 ../src/guestfs.pod:1089 ../src/guestfs.pod:1108 ../src/guestfs.pod:1116 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod:1158 ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657 ../src/guestfs.pod:1759 ../src/guestfs.pod:1764 ../src/guestfs.pod:1768 ../src/guestfs.pod:1778 ../src/guestfs.pod:2067 ../src/guestfs.pod:2072 ../src/guestfs.pod:2078 ../src/guestfs.pod:2086 ../src/guestfs.pod:2533 ../src/guestfs.pod:2539 ../src/guestfs.pod:2544 ../src/guestfs.pod:2550 ../src/guestfs.pod:2933 ../src/guestfs.pod:2938 ../src/guestfs.pod:2942 ../src/guestfs.pod:2946 ../src/guestfs.pod:2950 ../src/guestfs.pod:2964 ../src/guestfs.pod:2969 ../src/guestfs.pod:3195 ../src/guestfs.pod:3199 ../src/guestfs.pod:3203 ../src/guestfs.pod:3207 ../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:257 ../src/guestfs.pod:3080 ../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:3214 ../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:3216 ../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:3223
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:3228
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:3233
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:1292 ../fish/guestfish-actions.pod:1551 ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335 ../src/guestfs-actions.pod:2886 ../src/guestfs.pod:1644 ../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:991 ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365 ../fish/guestfish-actions.pod:3116 ../fish/guestfish-actions.pod:3323 ../fish/guestfish-actions.pod:3437 ../fish/guestfish-actions.pod:3485 ../fish/guestfish-actions.pod:4386 ../fish/guestfish-actions.pod:4409 ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4469 ../fish/guestfish-actions.pod:5118 ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508 ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5281 ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6688 ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7729 ../src/guestfs-actions.pod:7912
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:1999 ../fish/guestfish-actions.pod:3165 ../fish/guestfish-actions.pod:3338 ../fish/guestfish-actions.pod:3473
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:3127 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4686
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:867 ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260 ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4701 ../fish/guestfish-actions.pod:4712 ../fish/guestfish-actions.pod:4723 ../fish/guestfish-actions.pod:4775 ../fish/guestfish-actions.pod:4784 ../fish/guestfish-actions.pod:4838 ../fish/guestfish-actions.pod:4861
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:3448 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5220
5049 msgid "The optional parameters are:"
5050 msgstr ""
5051
5052 #. type: =item
5053 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3452 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5224
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:3868 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5863
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:945 ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022 ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224 ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541 ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606 ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635 ../fish/guestfish-actions.pod:3738 ../fish/guestfish-actions.pod:3753 ../fish/guestfish-actions.pod:3829 ../fish/guestfish-actions.pod:3846 ../fish/guestfish-actions.pod:3861 ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4661 ../fish/guestfish-actions.pod:4676 ../fish/guestfish-actions.pod:5082 ../fish/guestfish-actions.pod:5094 ../fish/guestfish-actions.pod:5112 ../fish/guestfish-actions.pod:5129 ../fish/guestfish-actions.pod:5139 ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206 ../fish/guestfish-actions.pod:5235 ../fish/guestfish-actions.pod:5245 ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127 ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443 ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565 ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830 ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320 ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409 ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5671 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:6803 ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:7004 ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7693 ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7746 ../src/guestfs-actions.pod:7765 ../src/guestfs-actions.pod:7784 ../src/guestfs-actions.pod:7878 ../src/guestfs-actions.pod:7897 ../src/guestfs-actions.pod:7943 ../src/guestfs-actions.pod:7962
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:3091 ../fish/guestfish-actions.pod:3230 ../fish/guestfish-actions.pod:3240 ../fish/guestfish-actions.pod:3250 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4864
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:2526 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3688
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 "config"
5482 msgstr ""
5483
5484 #. type: verbatim
5485 #: ../fish/guestfish-actions.pod:774
5486 #, no-wrap
5487 msgid ""
5488 " config qemuparam qemuvalue\n"
5489 "\n"
5490 msgstr ""
5491
5492 #. type: textblock
5493 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5494 msgid ""
5495 "This can be used to add arbitrary qemu command line parameters of the form "
5496 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5497 "setting some parameters which would interfere with parameters that we use."
5498 msgstr ""
5499
5500 #. type: textblock
5501 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5502 msgid "The first character of C<param> string must be a C<-> (dash)."
5503 msgstr ""
5504
5505 #. type: textblock
5506 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5507 msgid "C<value> can be NULL."
5508 msgstr ""
5509
5510 #. type: =head2
5511 #: ../fish/guestfish-actions.pod:785
5512 msgid "copy-size"
5513 msgstr ""
5514
5515 #. type: verbatim
5516 #: ../fish/guestfish-actions.pod:787
5517 #, no-wrap
5518 msgid ""
5519 " copy-size src dest size\n"
5520 "\n"
5521 msgstr ""
5522
5523 #. type: textblock
5524 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5525 msgid ""
5526 "This command copies exactly C<size> bytes from one source device or file "
5527 "C<src> to another destination device or file C<dest>."
5528 msgstr ""
5529
5530 #. type: textblock
5531 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5532 msgid ""
5533 "Note this will fail if the source is too short or if the destination is not "
5534 "large enough."
5535 msgstr ""
5536
5537 #. type: =head2
5538 #: ../fish/guestfish-actions.pod:795
5539 msgid "cp"
5540 msgstr ""
5541
5542 #. type: verbatim
5543 #: ../fish/guestfish-actions.pod:797
5544 #, no-wrap
5545 msgid ""
5546 " cp src dest\n"
5547 "\n"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5552 msgid ""
5553 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5554 "destination filename or destination directory."
5555 msgstr ""
5556
5557 #. type: =head2
5558 #: ../fish/guestfish-actions.pod:802
5559 msgid "cp-a"
5560 msgstr ""
5561
5562 #. type: verbatim
5563 #: ../fish/guestfish-actions.pod:804
5564 #, no-wrap
5565 msgid ""
5566 " cp-a src dest\n"
5567 "\n"
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5572 msgid ""
5573 "This copies a file or directory from C<src> to C<dest> recursively using the "
5574 "C<cp -a> command."
5575 msgstr ""
5576
5577 #. type: =head2
5578 #: ../fish/guestfish-actions.pod:809
5579 msgid "dd"
5580 msgstr ""
5581
5582 #. type: verbatim
5583 #: ../fish/guestfish-actions.pod:811
5584 #, no-wrap
5585 msgid ""
5586 " dd src dest\n"
5587 "\n"
5588 msgstr ""
5589
5590 #. type: textblock
5591 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5592 msgid ""
5593 "This command copies from one source device or file C<src> to another "
5594 "destination device or file C<dest>.  Normally you would use this to copy to "
5595 "or from a device or partition, for example to duplicate a filesystem."
5596 msgstr ""
5597
5598 #. type: textblock
5599 #: ../fish/guestfish-actions.pod:818
5600 msgid ""
5601 "If the destination is a device, it must be as large or larger than the "
5602 "source file or device, otherwise the copy will fail.  This command cannot do "
5603 "partial copies (see L</copy-size>)."
5604 msgstr ""
5605
5606 #. type: =head2
5607 #: ../fish/guestfish-actions.pod:822
5608 msgid "df"
5609 msgstr ""
5610
5611 #. type: verbatim
5612 #: ../fish/guestfish-actions.pod:824
5613 #, no-wrap
5614 msgid ""
5615 " df\n"
5616 "\n"
5617 msgstr ""
5618
5619 #. type: textblock
5620 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5621 msgid "This command runs the C<df> command to report disk space used."
5622 msgstr ""
5623
5624 #. type: textblock
5625 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5626 msgid ""
5627 "This command is mostly useful for interactive sessions.  It is I<not> "
5628 "intended that you try to parse the output string.  Use L</statvfs> from "
5629 "programs."
5630 msgstr ""
5631
5632 #. type: =head2
5633 #: ../fish/guestfish-actions.pod:832
5634 msgid "df-h"
5635 msgstr ""
5636
5637 #. type: verbatim
5638 #: ../fish/guestfish-actions.pod:834
5639 #, no-wrap
5640 msgid ""
5641 " df-h\n"
5642 "\n"
5643 msgstr ""
5644
5645 #. type: textblock
5646 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5647 msgid ""
5648 "This command runs the C<df -h> command to report disk space used in "
5649 "human-readable format."
5650 msgstr ""
5651
5652 #. type: =head2
5653 #: ../fish/guestfish-actions.pod:843
5654 msgid "dmesg"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../fish/guestfish-actions.pod:845
5659 #, no-wrap
5660 msgid ""
5661 " dmesg\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5667 msgid ""
5668 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5669 "This is sometimes useful for extended debugging of problems."
5670 msgstr ""
5671
5672 #. type: textblock
5673 #: ../fish/guestfish-actions.pod:851
5674 msgid ""
5675 "Another way to get the same information is to enable verbose messages with "
5676 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5677 "before running the program."
5678 msgstr ""
5679
5680 #. type: =head2
5681 #: ../fish/guestfish-actions.pod:856
5682 msgid "download"
5683 msgstr ""
5684
5685 #. type: verbatim
5686 #: ../fish/guestfish-actions.pod:858
5687 #, no-wrap
5688 msgid ""
5689 " download remotefilename (filename|-)\n"
5690 "\n"
5691 msgstr ""
5692
5693 #. type: textblock
5694 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873 ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5695 msgid ""
5696 "Download file C<remotefilename> and save it as C<filename> on the local "
5697 "machine."
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7263
5702 msgid "C<filename> can also be a named pipe."
5703 msgstr ""
5704
5705 #. type: textblock
5706 #: ../fish/guestfish-actions.pod:865
5707 msgid "See also L</upload>, L</cat>."
5708 msgstr ""
5709
5710 #. type: =head2
5711 #: ../fish/guestfish-actions.pod:869
5712 msgid "download-offset"
5713 msgstr ""
5714
5715 #. type: verbatim
5716 #: ../fish/guestfish-actions.pod:871
5717 #, no-wrap
5718 msgid ""
5719 " download-offset remotefilename (filename|-) offset size\n"
5720 "\n"
5721 msgstr ""
5722
5723 #. type: textblock
5724 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
5725 msgid ""
5726 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5727 "region must be within the file or device)."
5728 msgstr ""
5729
5730 #. type: textblock
5731 #: ../fish/guestfish-actions.pod:879
5732 msgid ""
5733 "Note that there is no limit on the amount of data that can be downloaded "
5734 "with this call, unlike with L</pread>, and this call always reads the full "
5735 "amount unless an error occurs."
5736 msgstr ""
5737
5738 #. type: textblock
5739 #: ../fish/guestfish-actions.pod:884
5740 msgid "See also L</download>, L</pread>."
5741 msgstr ""
5742
5743 #. type: =head2
5744 #: ../fish/guestfish-actions.pod:888
5745 msgid "drop-caches"
5746 msgstr ""
5747
5748 #. type: verbatim
5749 #: ../fish/guestfish-actions.pod:890
5750 #, no-wrap
5751 msgid ""
5752 " drop-caches whattodrop\n"
5753 "\n"
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
5758 msgid ""
5759 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5760 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5761 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
5766 msgid "Setting C<whattodrop> to 3 should drop everything."
5767 msgstr ""
5768
5769 #. type: textblock
5770 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
5771 msgid ""
5772 "This automatically calls L<sync(2)> before the operation, so that the "
5773 "maximum guest memory is freed."
5774 msgstr ""
5775
5776 #. type: =head2
5777 #: ../fish/guestfish-actions.pod:902
5778 msgid "du"
5779 msgstr ""
5780
5781 #. type: verbatim
5782 #: ../fish/guestfish-actions.pod:904
5783 #, no-wrap
5784 msgid ""
5785 " du path\n"
5786 "\n"
5787 msgstr ""
5788
5789 #. type: textblock
5790 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
5791 msgid ""
5792 "This command runs the C<du -s> command to estimate file space usage for "
5793 "C<path>."
5794 msgstr ""
5795
5796 #. type: textblock
5797 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
5798 msgid ""
5799 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5800 "estimate includes the contents of the directory and all subdirectories "
5801 "(recursively)."
5802 msgstr ""
5803
5804 #. type: textblock
5805 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
5806 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5807 msgstr ""
5808
5809 #. type: =head2
5810 #: ../fish/guestfish-actions.pod:916
5811 msgid "e2fsck-f"
5812 msgstr ""
5813
5814 #. type: verbatim
5815 #: ../fish/guestfish-actions.pod:918
5816 #, no-wrap
5817 msgid ""
5818 " e2fsck-f device\n"
5819 "\n"
5820 msgstr ""
5821
5822 #. type: textblock
5823 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
5824 msgid ""
5825 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5826 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5827 "clean (I<-f>)."
5828 msgstr ""
5829
5830 #. type: textblock
5831 #: ../fish/guestfish-actions.pod:924
5832 msgid ""
5833 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5834 "should use L</fsck>."
5835 msgstr ""
5836
5837 #. type: =head2
5838 #: ../fish/guestfish-actions.pod:927
5839 msgid "echo-daemon"
5840 msgstr ""
5841
5842 #. type: verbatim
5843 #: ../fish/guestfish-actions.pod:929
5844 #, no-wrap
5845 msgid ""
5846 " echo-daemon 'words ...'\n"
5847 "\n"
5848 msgstr ""
5849
5850 #. type: textblock
5851 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
5852 msgid ""
5853 "This command concatenates the list of C<words> passed with single spaces "
5854 "between them and returns the resulting string."
5855 msgstr ""
5856
5857 #. type: textblock
5858 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
5859 msgid "You can use this command to test the connection through to the daemon."
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../fish/guestfish-actions.pod:936
5864 msgid "See also L</ping-daemon>."
5865 msgstr ""
5866
5867 #. type: =head2
5868 #: ../fish/guestfish-actions.pod:938
5869 msgid "egrep"
5870 msgstr ""
5871
5872 #. type: verbatim
5873 #: ../fish/guestfish-actions.pod:940
5874 #, no-wrap
5875 msgid ""
5876 " egrep regex path\n"
5877 "\n"
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
5882 msgid "This calls the external C<egrep> program and returns the matching lines."
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:948
5887 msgid "egrepi"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:950
5892 #, no-wrap
5893 msgid ""
5894 " egrepi regex path\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
5900 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5901 msgstr ""
5902
5903 #. type: =head2
5904 #: ../fish/guestfish-actions.pod:958
5905 msgid "equal"
5906 msgstr ""
5907
5908 #. type: verbatim
5909 #: ../fish/guestfish-actions.pod:960
5910 #, no-wrap
5911 msgid ""
5912 " equal file1 file2\n"
5913 "\n"
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
5918 msgid ""
5919 "This compares the two files C<file1> and C<file2> and returns true if their "
5920 "content is exactly equal, or false otherwise."
5921 msgstr ""
5922
5923 #. type: textblock
5924 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
5925 msgid "The external L<cmp(1)> program is used for the comparison."
5926 msgstr ""
5927
5928 #. type: =head2
5929 #: ../fish/guestfish-actions.pod:967
5930 msgid "exists"
5931 msgstr ""
5932
5933 #. type: verbatim
5934 #: ../fish/guestfish-actions.pod:969
5935 #, no-wrap
5936 msgid ""
5937 " exists path\n"
5938 "\n"
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
5943 msgid ""
5944 "This returns C<true> if and only if there is a file, directory (or anything) "
5945 "with the given C<path> name."
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:974
5950 msgid "See also L</is-file>, L</is-dir>, L</stat>."
5951 msgstr ""
5952
5953 #. type: =head2
5954 #: ../fish/guestfish-actions.pod:976
5955 msgid "fallocate"
5956 msgstr ""
5957
5958 #. type: verbatim
5959 #: ../fish/guestfish-actions.pod:978
5960 #, no-wrap
5961 msgid ""
5962 " fallocate path len\n"
5963 "\n"
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999 ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
5968 msgid ""
5969 "This command preallocates a file (containing zero bytes) named C<path> of "
5970 "size C<len> bytes.  If the file exists already, it is overwritten."
5971 msgstr ""
5972
5973 #. type: textblock
5974 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
5975 msgid ""
5976 "Do not confuse this with the guestfish-specific C<alloc> command which "
5977 "allocates a file in the host and attaches it as a device."
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:988
5982 msgid ""
5983 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
5984 "instead."
5985 msgstr ""
5986
5987 #. type: =head2
5988 #: ../fish/guestfish-actions.pod:995
5989 msgid "fallocate64"
5990 msgstr ""
5991
5992 #. type: verbatim
5993 #: ../fish/guestfish-actions.pod:997
5994 #, no-wrap
5995 msgid ""
5996 " fallocate64 path len\n"
5997 "\n"
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:1003
6002 msgid ""
6003 "Note that this call allocates disk blocks for the file.  To create a sparse "
6004 "file use L</truncate-size> instead."
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../fish/guestfish-actions.pod:1006
6009 msgid ""
6010 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6011 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6012 "maximum size of files created through that call to 1GB."
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6017 msgid ""
6018 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6019 "commands which create a file in the host and attach it as a device."
6020 msgstr ""
6021
6022 #. type: =head2
6023 #: ../fish/guestfish-actions.pod:1015
6024 msgid "fgrep"
6025 msgstr ""
6026
6027 #. type: verbatim
6028 #: ../fish/guestfish-actions.pod:1017
6029 #, no-wrap
6030 msgid ""
6031 " fgrep pattern path\n"
6032 "\n"
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6037 msgid "This calls the external C<fgrep> program and returns the matching lines."
6038 msgstr ""
6039
6040 #. type: =head2
6041 #: ../fish/guestfish-actions.pod:1025
6042 msgid "fgrepi"
6043 msgstr ""
6044
6045 #. type: verbatim
6046 #: ../fish/guestfish-actions.pod:1027
6047 #, no-wrap
6048 msgid ""
6049 " fgrepi pattern path\n"
6050 "\n"
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6055 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
6056 msgstr ""
6057
6058 #. type: =head2
6059 #: ../fish/guestfish-actions.pod:1035
6060 msgid "file"
6061 msgstr ""
6062
6063 #. type: verbatim
6064 #: ../fish/guestfish-actions.pod:1037
6065 #, no-wrap
6066 msgid ""
6067 " file path\n"
6068 "\n"
6069 msgstr ""
6070
6071 #. type: textblock
6072 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6073 msgid ""
6074 "This call uses the standard L<file(1)> command to determine the type or "
6075 "contents of the file."
6076 msgstr ""
6077
6078 #. type: textblock
6079 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6080 msgid ""
6081 "This call will also transparently look inside various types of compressed "
6082 "file."
6083 msgstr ""
6084
6085 #. type: textblock
6086 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6087 msgid ""
6088 "The exact command which runs is C<file -zb path>.  Note in particular that "
6089 "the filename is not prepended to the output (the I<-b> option)."
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6094 msgid ""
6095 "The output depends on the output of the underlying L<file(1)> command and it "
6096 "can change in future in ways beyond our control.  In other words, the output "
6097 "is not guaranteed by the ABI."
6098 msgstr ""
6099
6100 #. type: textblock
6101 #: ../fish/guestfish-actions.pod:1053
6102 msgid ""
6103 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6104 "(etc), L</is-zero>."
6105 msgstr ""
6106
6107 #. type: =head2
6108 #: ../fish/guestfish-actions.pod:1056
6109 msgid "file-architecture"
6110 msgstr ""
6111
6112 #. type: verbatim
6113 #: ../fish/guestfish-actions.pod:1058
6114 #, no-wrap
6115 msgid ""
6116 " file-architecture filename\n"
6117 "\n"
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6122 msgid ""
6123 "This detects the architecture of the binary C<filename>, and returns it if "
6124 "known."
6125 msgstr ""
6126
6127 #. type: textblock
6128 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6129 msgid "Currently defined architectures are:"
6130 msgstr ""
6131
6132 #. type: =item
6133 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6134 msgid "\"i386\""
6135 msgstr ""
6136
6137 #. type: textblock
6138 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6139 msgid ""
6140 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6141 "irrespective of the precise processor requirements of the binary."
6142 msgstr ""
6143
6144 #. type: =item
6145 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6146 msgid "\"x86_64\""
6147 msgstr ""
6148
6149 #. type: textblock
6150 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6151 msgid "64 bit x86-64."
6152 msgstr ""
6153
6154 #. type: =item
6155 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6156 msgid "\"sparc\""
6157 msgstr ""
6158
6159 #. type: textblock
6160 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6161 msgid "32 bit SPARC."
6162 msgstr ""
6163
6164 #. type: =item
6165 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6166 msgid "\"sparc64\""
6167 msgstr ""
6168
6169 #. type: textblock
6170 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6171 msgid "64 bit SPARC V9 and above."
6172 msgstr ""
6173
6174 #. type: =item
6175 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6176 msgid "\"ia64\""
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6181 msgid "Intel Itanium."
6182 msgstr ""
6183
6184 #. type: =item
6185 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6186 msgid "\"ppc\""
6187 msgstr ""
6188
6189 #. type: textblock
6190 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6191 msgid "32 bit Power PC."
6192 msgstr ""
6193
6194 #. type: =item
6195 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6196 msgid "\"ppc64\""
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6201 msgid "64 bit Power PC."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6206 msgid "Libguestfs may return other architecture strings in future."
6207 msgstr ""
6208
6209 #. type: textblock
6210 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6211 msgid "The function works on at least the following types of files:"
6212 msgstr ""
6213
6214 #. type: textblock
6215 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6216 msgid "many types of Un*x and Linux binary"
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6221 msgid "many types of Un*x and Linux shared library"
6222 msgstr ""
6223
6224 #. type: textblock
6225 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6226 msgid "Windows Win32 and Win64 binaries"
6227 msgstr ""
6228
6229 #. type: textblock
6230 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6231 msgid "Windows Win32 and Win64 DLLs"
6232 msgstr ""
6233
6234 #. type: textblock
6235 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6236 msgid "Win32 binaries and DLLs return C<i386>."
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6241 msgid "Win64 binaries and DLLs return C<x86_64>."
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6246 msgid "Linux kernel modules"
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6251 msgid "Linux new-style initrd images"
6252 msgstr ""
6253
6254 #. type: textblock
6255 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6256 msgid "some non-x86 Linux vmlinuz kernels"
6257 msgstr ""
6258
6259 #. type: textblock
6260 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6261 msgid "What it can't do currently:"
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6266 msgid "static libraries (libfoo.a)"
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6271 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6276 msgid "x86 Linux vmlinuz kernels"
6277 msgstr ""
6278
6279 #. type: textblock
6280 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6281 msgid ""
6282 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6283 "compressed code, and are horribly hard to unpack.  If you want to find the "
6284 "architecture of a kernel, use the architecture of the associated initrd or "
6285 "kernel module(s) instead."
6286 msgstr ""
6287
6288 #. type: =head2
6289 #: ../fish/guestfish-actions.pod:1161
6290 msgid "filesize"
6291 msgstr ""
6292
6293 #. type: verbatim
6294 #: ../fish/guestfish-actions.pod:1163
6295 #, no-wrap
6296 msgid ""
6297 " filesize file\n"
6298 "\n"
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6303 msgid "This command returns the size of C<file> in bytes."
6304 msgstr ""
6305
6306 #. type: textblock
6307 #: ../fish/guestfish-actions.pod:1167
6308 msgid ""
6309 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6310 "L</is-file> etc.  To get the size of block devices, use "
6311 "L</blockdev-getsize64>."
6312 msgstr ""
6313
6314 #. type: =head2
6315 #: ../fish/guestfish-actions.pod:1171
6316 msgid "fill"
6317 msgstr ""
6318
6319 #. type: verbatim
6320 #: ../fish/guestfish-actions.pod:1173
6321 #, no-wrap
6322 msgid ""
6323 " fill c len path\n"
6324 "\n"
6325 msgstr ""
6326
6327 #. type: textblock
6328 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6329 msgid ""
6330 "This command creates a new file called C<path>.  The initial content of the "
6331 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6332 "C<[0..255]>."
6333 msgstr ""
6334
6335 #. type: textblock
6336 #: ../fish/guestfish-actions.pod:1179
6337 msgid ""
6338 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6339 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6340 "L</fill-pattern>."
6341 msgstr ""
6342
6343 #. type: =head2
6344 #: ../fish/guestfish-actions.pod:1184
6345 msgid "fill-pattern"
6346 msgstr ""
6347
6348 #. type: verbatim
6349 #: ../fish/guestfish-actions.pod:1186
6350 #, no-wrap
6351 msgid ""
6352 " fill-pattern pattern len path\n"
6353 "\n"
6354 msgstr ""
6355
6356 #. type: textblock
6357 #: ../fish/guestfish-actions.pod:1188
6358 msgid ""
6359 "This function is like L</fill> except that it creates a new file of length "
6360 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6361 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6362 "bytes."
6363 msgstr ""
6364
6365 #. type: =head2
6366 #: ../fish/guestfish-actions.pod:1193
6367 msgid "find"
6368 msgstr ""
6369
6370 #. type: verbatim
6371 #: ../fish/guestfish-actions.pod:1195
6372 #, no-wrap
6373 msgid ""
6374 " find directory\n"
6375 "\n"
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6380 msgid ""
6381 "This command lists out all files and directories, recursively, starting at "
6382 "C<directory>.  It is essentially equivalent to running the shell command "
6383 "C<find directory -print> but some post-processing happens on the output, "
6384 "described below."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6389 msgid ""
6390 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6391 "structure was:"
6392 msgstr ""
6393
6394 #. type: verbatim
6395 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6396 #, no-wrap
6397 msgid ""
6398 " /tmp/a\n"
6399 " /tmp/b\n"
6400 " /tmp/c/d\n"
6401 "\n"
6402 msgstr ""
6403
6404 #. type: textblock
6405 #: ../fish/guestfish-actions.pod:1209
6406 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6407 msgstr ""
6408
6409 #. type: verbatim
6410 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6411 #, no-wrap
6412 msgid ""
6413 " a\n"
6414 " b\n"
6415 " c\n"
6416 " c/d\n"
6417 "\n"
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6422 msgid "If C<directory> is not a directory, then this command returns an error."
6423 msgstr ""
6424
6425 #. type: textblock
6426 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6427 msgid "The returned list is sorted."
6428 msgstr ""
6429
6430 #. type: textblock
6431 #: ../fish/guestfish-actions.pod:1222
6432 msgid "See also L</find0>."
6433 msgstr ""
6434
6435 #. type: =head2
6436 #: ../fish/guestfish-actions.pod:1227
6437 msgid "find0"
6438 msgstr ""
6439
6440 #. type: verbatim
6441 #: ../fish/guestfish-actions.pod:1229
6442 #, no-wrap
6443 msgid ""
6444 " find0 directory (files|-)\n"
6445 "\n"
6446 msgstr ""
6447
6448 #. type: textblock
6449 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6450 msgid ""
6451 "This command lists out all files and directories, recursively, starting at "
6452 "C<directory>, placing the resulting list in the external file called "
6453 "C<files>."
6454 msgstr ""
6455
6456 #. type: textblock
6457 #: ../fish/guestfish-actions.pod:1235
6458 msgid "This command works the same way as L</find> with the following exceptions:"
6459 msgstr ""
6460
6461 #. type: textblock
6462 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6463 msgid "The resulting list is written to an external file."
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6468 msgid ""
6469 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6470 "L<find(1)> option I<-print0>."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6475 msgid "This command is not limited in the number of names that it can return."
6476 msgstr ""
6477
6478 #. type: textblock
6479 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6480 msgid "The result list is not sorted."
6481 msgstr ""
6482
6483 #. type: =head2
6484 #: ../fish/guestfish-actions.pod:1262
6485 msgid "findfs-label"
6486 msgstr ""
6487
6488 #. type: verbatim
6489 #: ../fish/guestfish-actions.pod:1264
6490 #, no-wrap
6491 msgid ""
6492 " findfs-label label\n"
6493 "\n"
6494 msgstr ""
6495
6496 #. type: textblock
6497 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6498 msgid ""
6499 "This command searches the filesystems and returns the one which has the "
6500 "given label.  An error is returned if no such filesystem can be found."
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:1270
6505 msgid "To find the label of a filesystem, use L</vfs-label>."
6506 msgstr ""
6507
6508 #. type: =head2
6509 #: ../fish/guestfish-actions.pod:1272
6510 msgid "findfs-uuid"
6511 msgstr ""
6512
6513 #. type: verbatim
6514 #: ../fish/guestfish-actions.pod:1274
6515 #, no-wrap
6516 msgid ""
6517 " findfs-uuid uuid\n"
6518 "\n"
6519 msgstr ""
6520
6521 #. type: textblock
6522 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6523 msgid ""
6524 "This command searches the filesystems and returns the one which has the "
6525 "given UUID.  An error is returned if no such filesystem can be found."
6526 msgstr ""
6527
6528 #. type: textblock
6529 #: ../fish/guestfish-actions.pod:1280
6530 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6531 msgstr ""
6532
6533 #. type: =head2
6534 #: ../fish/guestfish-actions.pod:1282
6535 msgid "fsck"
6536 msgstr ""
6537
6538 #. type: verbatim
6539 #: ../fish/guestfish-actions.pod:1284
6540 #, no-wrap
6541 msgid ""
6542 " fsck fstype device\n"
6543 "\n"
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6548 msgid ""
6549 "This runs the filesystem checker (fsck) on C<device> which should have "
6550 "filesystem type C<fstype>."
6551 msgstr ""
6552
6553 #. type: textblock
6554 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6555 msgid ""
6556 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6557 "codes from C<fsck>."
6558 msgstr ""
6559
6560 #. type: textblock
6561 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6562 msgid "Multiple status codes can be summed together."
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6567 msgid ""
6568 "A non-zero return code can mean \"success\", for example if errors have been "
6569 "corrected on the filesystem."
6570 msgstr ""
6571
6572 #. type: textblock
6573 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6574 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6575 msgstr ""
6576
6577 #. type: textblock
6578 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6579 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6580 msgstr ""
6581
6582 #. type: =head2
6583 #: ../fish/guestfish-actions.pod:1314
6584 msgid "get-append"
6585 msgstr ""
6586
6587 #. type: verbatim
6588 #: ../fish/guestfish-actions.pod:1316
6589 #, no-wrap
6590 msgid ""
6591 " get-append\n"
6592 "\n"
6593 msgstr ""
6594
6595 #. type: textblock
6596 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6597 msgid ""
6598 "Return the additional kernel options which are added to the guest kernel "
6599 "command line."
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6604 msgid "If C<NULL> then no options are added."
6605 msgstr ""
6606
6607 #. type: =head2
6608 #: ../fish/guestfish-actions.pod:1323
6609 msgid "get-attach-method"
6610 msgstr ""
6611
6612 #. type: verbatim
6613 #: ../fish/guestfish-actions.pod:1325
6614 #, no-wrap
6615 msgid ""
6616 " get-attach-method\n"
6617 "\n"
6618 msgstr ""
6619
6620 #. type: textblock
6621 #: ../fish/guestfish-actions.pod:1327
6622 msgid "Return the current attach method.  See L</set-attach-method>."
6623 msgstr ""
6624
6625 #. type: =head2
6626 #: ../fish/guestfish-actions.pod:1329
6627 msgid "get-autosync"
6628 msgstr ""
6629
6630 #. type: verbatim
6631 #: ../fish/guestfish-actions.pod:1331
6632 #, no-wrap
6633 msgid ""
6634 " get-autosync\n"
6635 "\n"
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6640 msgid "Get the autosync flag."
6641 msgstr ""
6642
6643 #. type: =head2
6644 #: ../fish/guestfish-actions.pod:1335
6645 msgid "get-direct"
6646 msgstr ""
6647
6648 #. type: verbatim
6649 #: ../fish/guestfish-actions.pod:1337
6650 #, no-wrap
6651 msgid ""
6652 " get-direct\n"
6653 "\n"
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6658 msgid "Return the direct appliance mode flag."
6659 msgstr ""
6660
6661 #. type: =head2
6662 #: ../fish/guestfish-actions.pod:1341
6663 msgid "get-e2label"
6664 msgstr ""
6665
6666 #. type: verbatim
6667 #: ../fish/guestfish-actions.pod:1343
6668 #, no-wrap
6669 msgid ""
6670 " get-e2label device\n"
6671 "\n"
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
6676 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6677 msgstr ""
6678
6679 #. type: textblock
6680 #: ../fish/guestfish-actions.pod:1348
6681 msgid ""
6682 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6683 "instead."
6684 msgstr ""
6685
6686 #. type: =head2
6687 #: ../fish/guestfish-actions.pod:1355
6688 msgid "get-e2uuid"
6689 msgstr ""
6690
6691 #. type: verbatim
6692 #: ../fish/guestfish-actions.pod:1357
6693 #, no-wrap
6694 msgid ""
6695 " get-e2uuid device\n"
6696 "\n"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
6701 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:1362
6706 msgid ""
6707 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6708 "instead."
6709 msgstr ""
6710
6711 #. type: =head2
6712 #: ../fish/guestfish-actions.pod:1369
6713 msgid "get-memsize"
6714 msgstr ""
6715
6716 #. type: verbatim
6717 #: ../fish/guestfish-actions.pod:1371
6718 #, no-wrap
6719 msgid ""
6720 " get-memsize\n"
6721 "\n"
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
6726 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6727 msgstr ""
6728
6729 #. type: textblock
6730 #: ../fish/guestfish-actions.pod:1376
6731 msgid ""
6732 "If L</set-memsize> was not called on this handle, and if "
6733 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6734 "value for memsize."
6735 msgstr ""
6736
6737 #. type: textblock
6738 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437 ../fish/guestfish-actions.pod:4194 ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6450
6739 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6740 msgstr ""
6741
6742 #. type: =head2
6743 #: ../fish/guestfish-actions.pod:1383
6744 msgid "get-network"
6745 msgstr ""
6746
6747 #. type: verbatim
6748 #: ../fish/guestfish-actions.pod:1385
6749 #, no-wrap
6750 msgid ""
6751 " get-network\n"
6752 "\n"
6753 msgstr ""
6754
6755 #. type: textblock
6756 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
6757 msgid "This returns the enable network flag."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1389
6762 msgid "get-path"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1391
6767 #, no-wrap
6768 msgid ""
6769 " get-path\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
6775 msgid "Return the current search path."
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
6780 msgid ""
6781 "This is always non-NULL.  If it wasn't set already, then this will return "
6782 "the default path."
6783 msgstr ""
6784
6785 #. type: =head2
6786 #: ../fish/guestfish-actions.pod:1398
6787 msgid "get-pgroup"
6788 msgstr ""
6789
6790 #. type: verbatim
6791 #: ../fish/guestfish-actions.pod:1400
6792 #, no-wrap
6793 msgid ""
6794 " get-pgroup\n"
6795 "\n"
6796 msgstr ""
6797
6798 #. type: textblock
6799 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
6800 msgid "This returns the process group flag."
6801 msgstr ""
6802
6803 #. type: =head2
6804 #: ../fish/guestfish-actions.pod:1404
6805 msgid "get-pid"
6806 msgstr ""
6807
6808 #. type: =head2
6809 #: ../fish/guestfish-actions.pod:1406
6810 msgid "pid"
6811 msgstr ""
6812
6813 #. type: verbatim
6814 #: ../fish/guestfish-actions.pod:1408
6815 #, no-wrap
6816 msgid ""
6817 " get-pid\n"
6818 "\n"
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
6823 msgid ""
6824 "Return the process ID of the qemu subprocess.  If there is no qemu "
6825 "subprocess, then this will return an error."
6826 msgstr ""
6827
6828 #. type: textblock
6829 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
6830 msgid "This is an internal call used for debugging and testing."
6831 msgstr ""
6832
6833 #. type: =head2
6834 #: ../fish/guestfish-actions.pod:1415
6835 msgid "get-qemu"
6836 msgstr ""
6837
6838 #. type: verbatim
6839 #: ../fish/guestfish-actions.pod:1417
6840 #, no-wrap
6841 msgid ""
6842 " get-qemu\n"
6843 "\n"
6844 msgstr ""
6845
6846 #. type: textblock
6847 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
6848 msgid "Return the current qemu binary."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
6853 msgid ""
6854 "This is always non-NULL.  If it wasn't set already, then this will return "
6855 "the default qemu binary name."
6856 msgstr ""
6857
6858 #. type: =head2
6859 #: ../fish/guestfish-actions.pod:1424
6860 msgid "get-recovery-proc"
6861 msgstr ""
6862
6863 #. type: verbatim
6864 #: ../fish/guestfish-actions.pod:1426
6865 #, no-wrap
6866 msgid ""
6867 " get-recovery-proc\n"
6868 "\n"
6869 msgstr ""
6870
6871 #. type: textblock
6872 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
6873 msgid "Return the recovery process enabled flag."
6874 msgstr ""
6875
6876 #. type: =head2
6877 #: ../fish/guestfish-actions.pod:1430
6878 msgid "get-selinux"
6879 msgstr ""
6880
6881 #. type: verbatim
6882 #: ../fish/guestfish-actions.pod:1432
6883 #, no-wrap
6884 msgid ""
6885 " get-selinux\n"
6886 "\n"
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:1434
6891 msgid ""
6892 "This returns the current setting of the selinux flag which is passed to the "
6893 "appliance at boot time.  See L</set-selinux>."
6894 msgstr ""
6895
6896 #. type: =head2
6897 #: ../fish/guestfish-actions.pod:1440
6898 msgid "get-state"
6899 msgstr ""
6900
6901 #. type: verbatim
6902 #: ../fish/guestfish-actions.pod:1442
6903 #, no-wrap
6904 msgid ""
6905 " get-state\n"
6906 "\n"
6907 msgstr ""
6908
6909 #. type: textblock
6910 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
6911 msgid ""
6912 "This returns the current state as an opaque integer.  This is only useful "
6913 "for printing debug and internal error messages."
6914 msgstr ""
6915
6916 #. type: textblock
6917 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2393 ../fish/guestfish-actions.pod:2411 ../fish/guestfish-actions.pod:2449 ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3582
6918 msgid "For more information on states, see L<guestfs(3)>."
6919 msgstr ""
6920
6921 #. type: =head2
6922 #: ../fish/guestfish-actions.pod:1449
6923 msgid "get-trace"
6924 msgstr ""
6925
6926 #. type: verbatim
6927 #: ../fish/guestfish-actions.pod:1451
6928 #, no-wrap
6929 msgid ""
6930 " get-trace\n"
6931 "\n"
6932 msgstr ""
6933
6934 #. type: textblock
6935 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
6936 msgid "Return the command trace flag."
6937 msgstr ""
6938
6939 #. type: =head2
6940 #: ../fish/guestfish-actions.pod:1455
6941 msgid "get-umask"
6942 msgstr ""
6943
6944 #. type: verbatim
6945 #: ../fish/guestfish-actions.pod:1457
6946 #, no-wrap
6947 msgid ""
6948 " get-umask\n"
6949 "\n"
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:1459
6954 msgid ""
6955 "Return the current umask.  By default the umask is C<022> unless it has been "
6956 "set by calling L</umask>."
6957 msgstr ""
6958
6959 #. type: =head2
6960 #: ../fish/guestfish-actions.pod:1462
6961 msgid "get-verbose"
6962 msgstr ""
6963
6964 #. type: verbatim
6965 #: ../fish/guestfish-actions.pod:1464
6966 #, no-wrap
6967 msgid ""
6968 " get-verbose\n"
6969 "\n"
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
6974 msgid "This returns the verbose messages flag."
6975 msgstr ""
6976
6977 #. type: =head2
6978 #: ../fish/guestfish-actions.pod:1468
6979 msgid "getcon"
6980 msgstr ""
6981
6982 #. type: verbatim
6983 #: ../fish/guestfish-actions.pod:1470
6984 #, no-wrap
6985 msgid ""
6986 " getcon\n"
6987 "\n"
6988 msgstr ""
6989
6990 #. type: textblock
6991 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
6992 msgid "This gets the SELinux security context of the daemon."
6993 msgstr ""
6994
6995 #. type: textblock
6996 #: ../fish/guestfish-actions.pod:1474
6997 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
6998 msgstr ""
6999
7000 #. type: =head2
7001 #: ../fish/guestfish-actions.pod:1477
7002 msgid "getxattr"
7003 msgstr ""
7004
7005 #. type: verbatim
7006 #: ../fish/guestfish-actions.pod:1479
7007 #, no-wrap
7008 msgid ""
7009 " getxattr path name\n"
7010 "\n"
7011 msgstr ""
7012
7013 #. type: textblock
7014 #: ../fish/guestfish-actions.pod:1481
7015 msgid ""
7016 "Get a single extended attribute from file C<path> named C<name>.  This call "
7017 "follows symlinks.  If you want to lookup an extended attribute for the "
7018 "symlink itself, use L</lgetxattr>."
7019 msgstr ""
7020
7021 #. type: textblock
7022 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2538
7023 msgid ""
7024 "Normally it is better to get all extended attributes from a file in one go "
7025 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7026 "buggy and do not provide a way to list out attributes.  For these "
7027 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7028 "attributes you want in advance and call this function."
7029 msgstr ""
7030
7031 #. type: textblock
7032 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3715
7033 msgid ""
7034 "Extended attribute values are blobs of binary data.  If there is no extended "
7035 "attribute named C<name>, this returns an error."
7036 msgstr ""
7037
7038 #. type: textblock
7039 #: ../fish/guestfish-actions.pod:1495
7040 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7041 msgstr ""
7042
7043 #. type: =head2
7044 #: ../fish/guestfish-actions.pod:1497
7045 msgid "getxattrs"
7046 msgstr ""
7047
7048 #. type: verbatim
7049 #: ../fish/guestfish-actions.pod:1499
7050 #, no-wrap
7051 msgid ""
7052 " getxattrs path\n"
7053 "\n"
7054 msgstr ""
7055
7056 #. type: textblock
7057 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7058 msgid "This call lists the extended attributes of the file or directory C<path>."
7059 msgstr ""
7060
7061 #. type: textblock
7062 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7063 msgid ""
7064 "At the system call level, this is a combination of the L<listxattr(2)> and "
7065 "L<getxattr(2)> calls."
7066 msgstr ""
7067
7068 #. type: textblock
7069 #: ../fish/guestfish-actions.pod:1507
7070 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7071 msgstr ""
7072
7073 #. type: =head2
7074 #: ../fish/guestfish-actions.pod:1509
7075 msgid "glob-expand"
7076 msgstr ""
7077
7078 #. type: verbatim
7079 #: ../fish/guestfish-actions.pod:1511
7080 #, no-wrap
7081 msgid ""
7082 " glob-expand pattern\n"
7083 "\n"
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7088 msgid ""
7089 "This command searches for all the pathnames matching C<pattern> according to "
7090 "the wildcard expansion rules used by the shell."
7091 msgstr ""
7092
7093 #. type: textblock
7094 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7095 msgid "If no paths match, then this returns an empty list (note: not an error)."
7096 msgstr ""
7097
7098 #. type: textblock
7099 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7100 msgid ""
7101 "It is just a wrapper around the C L<glob(3)> function with flags "
7102 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
7103 msgstr ""
7104
7105 #. type: =head2
7106 #: ../fish/guestfish-actions.pod:1524
7107 msgid "grep"
7108 msgstr ""
7109
7110 #. type: verbatim
7111 #: ../fish/guestfish-actions.pod:1526
7112 #, no-wrap
7113 msgid ""
7114 " grep regex path\n"
7115 "\n"
7116 msgstr ""
7117
7118 #. type: textblock
7119 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7120 msgid "This calls the external C<grep> program and returns the matching lines."
7121 msgstr ""
7122
7123 #. type: =head2
7124 #: ../fish/guestfish-actions.pod:1534
7125 msgid "grepi"
7126 msgstr ""
7127
7128 #. type: verbatim
7129 #: ../fish/guestfish-actions.pod:1536
7130 #, no-wrap
7131 msgid ""
7132 " grepi regex path\n"
7133 "\n"
7134 msgstr ""
7135
7136 #. type: textblock
7137 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7138 msgid "This calls the external C<grep -i> program and returns the matching lines."
7139 msgstr ""
7140
7141 #. type: =head2
7142 #: ../fish/guestfish-actions.pod:1544
7143 msgid "grub-install"
7144 msgstr ""
7145
7146 #. type: verbatim
7147 #: ../fish/guestfish-actions.pod:1546
7148 #, no-wrap
7149 msgid ""
7150 " grub-install root device\n"
7151 "\n"
7152 msgstr ""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7156 msgid ""
7157 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
7158 "with the root directory being C<root>."
7159 msgstr ""
7160
7161 #. type: textblock
7162 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
7163 msgid ""
7164 "There is currently no way in the API to install grub2, which is used by most "
7165 "modern Linux guests.  It is possible to run the grub2 command from the "
7166 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
7167 msgstr ""
7168
7169 #. type: textblock
7170 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
7171 msgid ""
7172 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
7173 "compatible with itself, so this only works in rather narrow circumstances.  "
7174 "Careful testing with each guest version is advisable."
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
7179 msgid ""
7180 "If grub-install reports the error \"No suitable drive was found in the "
7181 "generated device map.\" it may be that you need to create a "
7182 "C</boot/grub/device.map> file first that contains the mapping between grub "
7183 "device names and Linux device names.  It is usually sufficient to create a "
7184 "file containing:"
7185 msgstr ""
7186
7187 #. type: verbatim
7188 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
7189 #, no-wrap
7190 msgid ""
7191 " (hd0) /dev/vda\n"
7192 "\n"
7193 msgstr ""
7194
7195 #. type: textblock
7196 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
7197 msgid "replacing C</dev/vda> with the name of the installation device."
7198 msgstr ""
7199
7200 #. type: =head2
7201 #: ../fish/guestfish-actions.pod:1584
7202 msgid "head"
7203 msgstr ""
7204
7205 #. type: verbatim
7206 #: ../fish/guestfish-actions.pod:1586
7207 #, no-wrap
7208 msgid ""
7209 " head path\n"
7210 "\n"
7211 msgstr ""
7212
7213 #. type: textblock
7214 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
7215 msgid ""
7216 "This command returns up to the first 10 lines of a file as a list of "
7217 "strings."
7218 msgstr ""
7219
7220 #. type: =head2
7221 #: ../fish/guestfish-actions.pod:1594
7222 msgid "head-n"
7223 msgstr ""
7224
7225 #. type: verbatim
7226 #: ../fish/guestfish-actions.pod:1596
7227 #, no-wrap
7228 msgid ""
7229 " head-n nrlines path\n"
7230 "\n"
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
7235 msgid ""
7236 "If the parameter C<nrlines> is a positive number, this returns the first "
7237 "C<nrlines> lines of the file C<path>."
7238 msgstr ""
7239
7240 #. type: textblock
7241 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
7242 msgid ""
7243 "If the parameter C<nrlines> is a negative number, this returns lines from "
7244 "the file C<path>, excluding the last C<nrlines> lines."
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4674 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7022
7249 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7250 msgstr ""
7251
7252 #. type: =head2
7253 #: ../fish/guestfish-actions.pod:1609
7254 msgid "hexdump"
7255 msgstr ""
7256
7257 #. type: verbatim
7258 #: ../fish/guestfish-actions.pod:1611
7259 #, no-wrap
7260 msgid ""
7261 " hexdump path\n"
7262 "\n"
7263 msgstr ""
7264
7265 #. type: textblock
7266 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
7267 msgid ""
7268 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7269 "human-readable, canonical hex dump of the file."
7270 msgstr ""
7271
7272 #. type: =head2
7273 #: ../fish/guestfish-actions.pod:1619
7274 msgid "initrd-cat"
7275 msgstr ""
7276
7277 #. type: verbatim
7278 #: ../fish/guestfish-actions.pod:1621
7279 #, no-wrap
7280 msgid ""
7281 " initrd-cat initrdpath filename\n"
7282 "\n"
7283 msgstr ""
7284
7285 #. type: textblock
7286 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
7287 msgid ""
7288 "This command unpacks the file C<filename> from the initrd file called "
7289 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7290 "character."
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
7295 msgid ""
7296 "For example, in guestfish you could use the following command to examine the "
7297 "boot script (usually called C</init>)  contained in a Linux initrd or "
7298 "initramfs image:"
7299 msgstr ""
7300
7301 #. type: verbatim
7302 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
7303 #, no-wrap
7304 msgid ""
7305 " initrd-cat /boot/initrd-<version>.img init\n"
7306 "\n"
7307 msgstr ""
7308
7309 #. type: textblock
7310 #: ../fish/guestfish-actions.pod:1633
7311 msgid "See also L</initrd-list>."
7312 msgstr ""
7313
7314 #. type: =head2
7315 #: ../fish/guestfish-actions.pod:1638
7316 msgid "initrd-list"
7317 msgstr ""
7318
7319 #. type: verbatim
7320 #: ../fish/guestfish-actions.pod:1640
7321 #, no-wrap
7322 msgid ""
7323 " initrd-list path\n"
7324 "\n"
7325 msgstr ""
7326
7327 #. type: textblock
7328 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
7329 msgid "This command lists out files contained in an initrd."
7330 msgstr ""
7331
7332 #. type: textblock
7333 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
7334 msgid ""
7335 "The files are listed without any initial C</> character.  The files are "
7336 "listed in the order they appear (not necessarily alphabetical).  Directory "
7337 "names are listed as separate items."
7338 msgstr ""
7339
7340 #. type: textblock
7341 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
7342 msgid ""
7343 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7344 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7345 "files)."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:1652
7350 msgid "inotify-add-watch"
7351 msgstr ""
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:1654
7355 #, no-wrap
7356 msgid ""
7357 " inotify-add-watch path mask\n"
7358 "\n"
7359 msgstr ""
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
7363 msgid "Watch C<path> for the events listed in C<mask>."
7364 msgstr ""
7365
7366 #. type: textblock
7367 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
7368 msgid ""
7369 "Note that if C<path> is a directory then events within that directory are "
7370 "watched, but this does I<not> happen recursively (in subdirectories)."
7371 msgstr ""
7372
7373 #. type: textblock
7374 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
7375 msgid ""
7376 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7377 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7378 msgstr ""
7379
7380 #. type: =head2
7381 #: ../fish/guestfish-actions.pod:1666
7382 msgid "inotify-close"
7383 msgstr ""
7384
7385 #. type: verbatim
7386 #: ../fish/guestfish-actions.pod:1668
7387 #, no-wrap
7388 msgid ""
7389 " inotify-close\n"
7390 "\n"
7391 msgstr ""
7392
7393 #. type: textblock
7394 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
7395 msgid ""
7396 "This closes the inotify handle which was previously opened by inotify_init.  "
7397 "It removes all watches, throws away any pending events, and deallocates all "
7398 "resources."
7399 msgstr ""
7400
7401 #. type: =head2
7402 #: ../fish/guestfish-actions.pod:1674
7403 msgid "inotify-files"
7404 msgstr ""
7405
7406 #. type: verbatim
7407 #: ../fish/guestfish-actions.pod:1676
7408 #, no-wrap
7409 msgid ""
7410 " inotify-files\n"
7411 "\n"
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:1678
7416 msgid ""
7417 "This function is a helpful wrapper around L</inotify-read> which just "
7418 "returns a list of pathnames of objects that were touched.  The returned "
7419 "pathnames are sorted and deduplicated."
7420 msgstr ""
7421
7422 #. type: =head2
7423 #: ../fish/guestfish-actions.pod:1682
7424 msgid "inotify-init"
7425 msgstr ""
7426
7427 #. type: verbatim
7428 #: ../fish/guestfish-actions.pod:1684
7429 #, no-wrap
7430 msgid ""
7431 " inotify-init maxevents\n"
7432 "\n"
7433 msgstr ""
7434
7435 #. type: textblock
7436 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
7437 msgid ""
7438 "This command creates a new inotify handle.  The inotify subsystem can be "
7439 "used to notify events which happen to objects in the guest filesystem."
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:1690
7444 msgid ""
7445 "C<maxevents> is the maximum number of events which will be queued up between "
7446 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7447 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7448 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7449 "but records the fact that it threw them away by setting a flag "
7450 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7451 msgstr ""
7452
7453 #. type: textblock
7454 #: ../fish/guestfish-actions.pod:1700
7455 msgid ""
7456 "Before any events are generated, you have to add some watches to the "
7457 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7458 "L</inotify-watch-all>."
7459 msgstr ""
7460
7461 #. type: textblock
7462 #: ../fish/guestfish-actions.pod:1706
7463 msgid ""
7464 "Queued up events should be read periodically by calling L</inotify-read> (or "
7465 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7466 "If you don't read the events out often enough then you risk the internal "
7467 "queue overflowing."
7468 msgstr ""
7469
7470 #. type: textblock
7471 #: ../fish/guestfish-actions.pod:1713
7472 msgid ""
7473 "The handle should be closed after use by calling L</inotify-close>.  This "
7474 "also removes any watches automatically."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
7479 msgid ""
7480 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7481 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7482 "that there is one global inotify handle per libguestfs instance."
7483 msgstr ""
7484
7485 #. type: =head2
7486 #: ../fish/guestfish-actions.pod:1722
7487 msgid "inotify-read"
7488 msgstr ""
7489
7490 #. type: verbatim
7491 #: ../fish/guestfish-actions.pod:1724
7492 #, no-wrap
7493 msgid ""
7494 " inotify-read\n"
7495 "\n"
7496 msgstr ""
7497
7498 #. type: textblock
7499 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
7500 msgid ""
7501 "Return the complete queue of events that have happened since the previous "
7502 "read call."
7503 msgstr ""
7504
7505 #. type: textblock
7506 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
7507 msgid "If no events have happened, this returns an empty list."
7508 msgstr ""
7509
7510 #. type: textblock
7511 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
7512 msgid ""
7513 "I<Note>: In order to make sure that all events have been read, you must call "
7514 "this function repeatedly until it returns an empty list.  The reason is that "
7515 "the call will read events up to the maximum appliance-to-host message size "
7516 "and leave remaining events in the queue."
7517 msgstr ""
7518
7519 #. type: =head2
7520 #: ../fish/guestfish-actions.pod:1737
7521 msgid "inotify-rm-watch"
7522 msgstr ""
7523
7524 #. type: verbatim
7525 #: ../fish/guestfish-actions.pod:1739
7526 #, no-wrap
7527 msgid ""
7528 " inotify-rm-watch wd\n"
7529 "\n"
7530 msgstr ""
7531
7532 #. type: textblock
7533 #: ../fish/guestfish-actions.pod:1741
7534 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7535 msgstr ""
7536
7537 #. type: =head2
7538 #: ../fish/guestfish-actions.pod:1744
7539 msgid "inspect-get-arch"
7540 msgstr ""
7541
7542 #. type: verbatim
7543 #: ../fish/guestfish-actions.pod:1746
7544 #, no-wrap
7545 msgid ""
7546 " inspect-get-arch root\n"
7547 "\n"
7548 msgstr ""
7549
7550 #. type: textblock
7551 #: ../fish/guestfish-actions.pod:1748
7552 msgid ""
7553 "This returns the architecture of the inspected operating system.  The "
7554 "possible return values are listed under L</file-architecture>."
7555 msgstr ""
7556
7557 #. type: textblock
7558 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
7559 msgid ""
7560 "If the architecture could not be determined, then the string C<unknown> is "
7561 "returned."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1842 ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:2017 ../fish/guestfish-actions.pod:2078 ../fish/guestfish-actions.pod:2099 ../fish/guestfish-actions.pod:2113 ../fish/guestfish-actions.pod:2153 ../fish/guestfish-actions.pod:2185 ../fish/guestfish-actions.pod:2198 ../fish/guestfish-actions.pod:2211 ../fish/guestfish-actions.pod:2221 ../fish/guestfish-actions.pod:2231 ../fish/guestfish-actions.pod:2243 ../fish/guestfish-actions.pod:2339 ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2823 ../src/guestfs-actions.pod:2842 ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:3056 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3158 ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3218 ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3255 ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289 ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3432
7566 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7567 msgstr ""
7568
7569 #. type: =head2
7570 #: ../fish/guestfish-actions.pod:1757
7571 msgid "inspect-get-distro"
7572 msgstr ""
7573
7574 #. type: verbatim
7575 #: ../fish/guestfish-actions.pod:1759
7576 #, no-wrap
7577 msgid ""
7578 " inspect-get-distro root\n"
7579 "\n"
7580 msgstr ""
7581
7582 #. type: textblock
7583 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7584 msgid "This returns the distro (distribution) of the inspected operating system."
7585 msgstr ""
7586
7587 #. type: textblock
7588 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7589 msgid "Currently defined distros are:"
7590 msgstr ""
7591
7592 #. type: =item
7593 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7594 msgid "\"archlinux\""
7595 msgstr ""
7596
7597 #. type: textblock
7598 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7599 msgid "Arch Linux."
7600 msgstr ""
7601
7602 #. type: =item
7603 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7604 msgid "\"centos\""
7605 msgstr ""
7606
7607 #. type: textblock
7608 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7609 msgid "CentOS."
7610 msgstr ""
7611
7612 #. type: =item
7613 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7614 msgid "\"debian\""
7615 msgstr ""
7616
7617 #. type: textblock
7618 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7619 msgid "Debian."
7620 msgstr ""
7621
7622 #. type: =item
7623 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7624 msgid "\"fedora\""
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7629 msgid "Fedora."
7630 msgstr ""
7631
7632 #. type: =item
7633 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7634 msgid "\"gentoo\""
7635 msgstr ""
7636
7637 #. type: textblock
7638 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7639 msgid "Gentoo."
7640 msgstr ""
7641
7642 #. type: =item
7643 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7644 msgid "\"linuxmint\""
7645 msgstr ""
7646
7647 #. type: textblock
7648 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7649 msgid "Linux Mint."
7650 msgstr ""
7651
7652 #. type: =item
7653 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7654 msgid "\"mandriva\""
7655 msgstr ""
7656
7657 #. type: textblock
7658 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7659 msgid "Mandriva."
7660 msgstr ""
7661
7662 #. type: =item
7663 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
7664 msgid "\"meego\""
7665 msgstr ""
7666
7667 #. type: textblock
7668 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
7669 msgid "MeeGo."
7670 msgstr ""
7671
7672 #. type: =item
7673 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
7674 msgid "\"pardus\""
7675 msgstr ""
7676
7677 #. type: textblock
7678 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
7679 msgid "Pardus."
7680 msgstr ""
7681
7682 #. type: =item
7683 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
7684 msgid "\"redhat-based\""
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
7689 msgid "Some Red Hat-derived distro."
7690 msgstr ""
7691
7692 #. type: =item
7693 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
7694 msgid "\"rhel\""
7695 msgstr ""
7696
7697 #. type: textblock
7698 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
7699 msgid "Red Hat Enterprise Linux."
7700 msgstr ""
7701
7702 #. type: =item
7703 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
7704 msgid "\"scientificlinux\""
7705 msgstr ""
7706
7707 #. type: textblock
7708 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
7709 msgid "Scientific Linux."
7710 msgstr ""
7711
7712 #. type: =item
7713 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
7714 msgid "\"slackware\""
7715 msgstr ""
7716
7717 #. type: textblock
7718 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
7719 msgid "Slackware."
7720 msgstr ""
7721
7722 #. type: =item
7723 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
7724 msgid "\"ttylinux\""
7725 msgstr ""
7726
7727 #. type: textblock
7728 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
7729 msgid "ttylinux."
7730 msgstr ""
7731
7732 #. type: =item
7733 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2701
7734 msgid "\"ubuntu\""
7735 msgstr ""
7736
7737 #. type: textblock
7738 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
7739 msgid "Ubuntu."
7740 msgstr ""
7741
7742 #. type: =item
7743 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:1912 ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:3189
7744 msgid "\"unknown\""
7745 msgstr ""
7746
7747 #. type: textblock
7748 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
7749 msgid "The distro could not be determined."
7750 msgstr ""
7751
7752 #. type: =item
7753 #: ../fish/guestfish-actions.pod:1832 ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:2709 ../src/guestfs-actions.pod:3181
7754 msgid "\"windows\""
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2711
7759 msgid ""
7760 "Windows does not have distributions.  This string is returned if the OS type "
7761 "is Windows."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1918 ../fish/guestfish-actions.pod:2182 ../src/guestfs-actions.pod:2716 ../src/guestfs-actions.pod:2820 ../src/guestfs-actions.pod:3195
7766 msgid ""
7767 "Future versions of libguestfs may return other strings here.  The caller "
7768 "should be prepared to handle any string."
7769 msgstr ""
7770
7771 #. type: =head2
7772 #: ../fish/guestfish-actions.pod:1844
7773 msgid "inspect-get-drive-mappings"
7774 msgstr ""
7775
7776 #. type: verbatim
7777 #: ../fish/guestfish-actions.pod:1846
7778 #, no-wrap
7779 msgid ""
7780 " inspect-get-drive-mappings root\n"
7781 "\n"
7782 msgstr ""
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2732
7786 msgid ""
7787 "This call is useful for Windows which uses a primitive system of assigning "
7788 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7789 "Windows Registry to find out how disks/partitions are mapped to drive "
7790 "letters, and returns a hash table as in the example below:"
7791 msgstr ""
7792
7793 #. type: verbatim
7794 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
7795 #, no-wrap
7796 msgid ""
7797 " C      =>     /dev/vda2\n"
7798 " E      =>     /dev/vdb1\n"
7799 " F      =>     /dev/vdc1\n"
7800 "\n"
7801 msgstr ""
7802
7803 #. type: textblock
7804 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
7805 msgid ""
7806 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7807 "and just contains the drive letter, without the customary colon separator "
7808 "character."
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2746
7813 msgid ""
7814 "In future we may support other operating systems that also used drive "
7815 "letters, but the keys for those might not be case insensitive and might be "
7816 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7817 "C<h1> etc."
7818 msgstr ""
7819
7820 #. type: textblock
7821 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2751
7822 msgid ""
7823 "For Windows guests, currently only hard drive mappings are returned.  "
7824 "Removable disks (eg. DVD-ROMs) are ignored."
7825 msgstr ""
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2754
7829 msgid ""
7830 "For guests that do not use drive mappings, or if the drive mappings could "
7831 "not be determined, this returns an empty hash table."
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1873
7836 msgid ""
7837 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7838 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7839 msgstr ""
7840
7841 #. type: =head2
7842 #: ../fish/guestfish-actions.pod:1877
7843 msgid "inspect-get-filesystems"
7844 msgstr ""
7845
7846 #. type: verbatim
7847 #: ../fish/guestfish-actions.pod:1879
7848 #, no-wrap
7849 msgid ""
7850 " inspect-get-filesystems root\n"
7851 "\n"
7852 msgstr ""
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2775
7856 msgid ""
7857 "This returns a list of all the filesystems that we think are associated with "
7858 "this operating system.  This includes the root filesystem, other ordinary "
7859 "filesystems, and non-mounted devices like swap partitions."
7860 msgstr ""
7861
7862 #. type: textblock
7863 #: ../fish/guestfish-actions.pod:1886 ../src/guestfs-actions.pod:2780
7864 msgid ""
7865 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7866 "to be shared between operating systems."
7867 msgstr ""
7868
7869 #. type: textblock
7870 #: ../fish/guestfish-actions.pod:1889
7871 msgid ""
7872 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7873 "L</inspect-get-mountpoints>."
7874 msgstr ""
7875
7876 #. type: =head2
7877 #: ../fish/guestfish-actions.pod:1892
7878 msgid "inspect-get-format"
7879 msgstr ""
7880
7881 #. type: verbatim
7882 #: ../fish/guestfish-actions.pod:1894
7883 #, no-wrap
7884 msgid ""
7885 " inspect-get-format root\n"
7886 "\n"
7887 msgstr ""
7888
7889 #. type: textblock
7890 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2798
7891 msgid ""
7892 "This returns the format of the inspected operating system.  You can use it "
7893 "to detect install images, live CDs and similar."
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
7898 msgid "Currently defined formats are:"
7899 msgstr ""
7900
7901 #. type: =item
7902 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
7903 msgid "\"installed\""
7904 msgstr ""
7905
7906 #. type: textblock
7907 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
7908 msgid "This is an installed operating system."
7909 msgstr ""
7910
7911 #. type: =item
7912 #: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:2809
7913 msgid "\"installer\""
7914 msgstr ""
7915
7916 #. type: textblock
7917 #: ../fish/guestfish-actions.pod:1909 ../src/guestfs-actions.pod:2811
7918 msgid ""
7919 "The disk image being inspected is not an installed operating system, but a "
7920 "I<bootable> install disk, live CD, or similar."
7921 msgstr ""
7922
7923 #. type: textblock
7924 #: ../fish/guestfish-actions.pod:1914 ../src/guestfs-actions.pod:2816
7925 msgid "The format of this disk image is not known."
7926 msgstr ""
7927
7928 #. type: =head2
7929 #: ../fish/guestfish-actions.pod:1923
7930 msgid "inspect-get-hostname"
7931 msgstr ""
7932
7933 #. type: verbatim
7934 #: ../fish/guestfish-actions.pod:1925
7935 #, no-wrap
7936 msgid ""
7937 " inspect-get-hostname root\n"
7938 "\n"
7939 msgstr ""
7940
7941 #. type: textblock
7942 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2836
7943 msgid ""
7944 "This function returns the hostname of the operating system as found by "
7945 "inspection of the guest's configuration files."
7946 msgstr ""
7947
7948 #. type: textblock
7949 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:2839
7950 msgid ""
7951 "If the hostname could not be determined, then the string C<unknown> is "
7952 "returned."
7953 msgstr ""
7954
7955 #. type: =head2
7956 #: ../fish/guestfish-actions.pod:1935
7957 msgid "inspect-get-icon"
7958 msgstr ""
7959
7960 #. type: verbatim
7961 #: ../fish/guestfish-actions.pod:1937
7962 #, no-wrap
7963 msgid ""
7964 " inspect-get-icon root [favicon:..] [highquality:..]\n"
7965 "\n"
7966 msgstr ""
7967
7968 #. type: textblock
7969 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
7970 msgid ""
7971 "This function returns an icon corresponding to the inspected operating "
7972 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
7973 "to PNG if necessary)."
7974 msgstr ""
7975
7976 #. type: textblock
7977 #: ../fish/guestfish-actions.pod:1943 ../src/guestfs-actions.pod:2869
7978 msgid ""
7979 "If it was not possible to get an icon this function returns a zero-length "
7980 "(non-NULL) buffer.  I<Callers must check for this case>."
7981 msgstr ""
7982
7983 #. type: textblock
7984 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
7985 msgid ""
7986 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
7987 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
7988 "this file will be returned.  You can disable favicons by passing the "
7989 "optional C<favicon> boolean as false (default is true)."
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:2878
7994 msgid ""
7995 "If finding the favicon fails, then we look in other places in the guest for "
7996 "a suitable icon."
7997 msgstr ""
7998
7999 #. type: textblock
8000 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2881
8001 msgid ""
8002 "If the optional C<highquality> boolean is true then only high quality icons "
8003 "are returned, which means only icons of high resolution with an alpha "
8004 "channel.  The default (false) is to return any icon we can, even if it is of "
8005 "substandard quality."
8006 msgstr ""
8007
8008 #. type: textblock
8009 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:2892
8010 msgid ""
8011 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8012 "before you call this, since it needs to read information from the guest "
8013 "filesystem during the call."
8014 msgstr ""
8015
8016 #. type: textblock
8017 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:2898
8018 msgid ""
8019 "B<Security:> The icon data comes from the untrusted guest, and should be "
8020 "treated with caution.  PNG files have been known to contain exploits.  "
8021 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8022 "trying to process or display the icon."
8023 msgstr ""
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2906
8027 msgid ""
8028 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8029 "tries to return the largest, highest quality icon available.  The "
8030 "application must scale the icon to the required size."
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2913
8035 msgid ""
8036 "Extracting icons from Windows guests requires the external C<wrestool> "
8037 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8038 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8039 "installed separately."
8040 msgstr ""
8041
8042 #. type: textblock
8043 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:2920
8044 msgid ""
8045 "Operating system icons are usually trademarks.  Seek legal advice before "
8046 "using trademarks in applications."
8047 msgstr ""
8048
8049 #. type: =head2
8050 #: ../fish/guestfish-actions.pod:2001
8051 msgid "inspect-get-major-version"
8052 msgstr ""
8053
8054 #. type: verbatim
8055 #: ../fish/guestfish-actions.pod:2003
8056 #, no-wrap
8057 msgid ""
8058 " inspect-get-major-version root\n"
8059 "\n"
8060 msgstr ""
8061
8062 #. type: textblock
8063 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:2961
8064 msgid "This returns the major version number of the inspected operating system."
8065 msgstr ""
8066
8067 #. type: textblock
8068 #: ../fish/guestfish-actions.pod:2008 ../src/guestfs-actions.pod:2964
8069 msgid ""
8070 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8071 "popular public names used by the operating system.  Notably the operating "
8072 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8073 "1).  You can find out the real versions corresponding to releases of Windows "
8074 "by consulting Wikipedia or MSDN."
8075 msgstr ""
8076
8077 #. type: textblock
8078 #: ../fish/guestfish-actions.pod:2015 ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:2988
8079 msgid "If the version could not be determined, then C<0> is returned."
8080 msgstr ""
8081
8082 #. type: =head2
8083 #: ../fish/guestfish-actions.pod:2019
8084 msgid "inspect-get-minor-version"
8085 msgstr ""
8086
8087 #. type: verbatim
8088 #: ../fish/guestfish-actions.pod:2021
8089 #, no-wrap
8090 msgid ""
8091 " inspect-get-minor-version root\n"
8092 "\n"
8093 msgstr ""
8094
8095 #. type: textblock
8096 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2985
8097 msgid "This returns the minor version number of the inspected operating system."
8098 msgstr ""
8099
8100 #. type: textblock
8101 #: ../fish/guestfish-actions.pod:2028
8102 msgid ""
8103 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8104 "L</inspect-get-major-version>."
8105 msgstr ""
8106
8107 #. type: =head2
8108 #: ../fish/guestfish-actions.pod:2031
8109 msgid "inspect-get-mountpoints"
8110 msgstr ""
8111
8112 #. type: verbatim
8113 #: ../fish/guestfish-actions.pod:2033
8114 #, no-wrap
8115 msgid ""
8116 " inspect-get-mountpoints root\n"
8117 "\n"
8118 msgstr ""
8119
8120 #. type: textblock
8121 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3003
8122 msgid ""
8123 "This returns a hash of where we think the filesystems associated with this "
8124 "operating system should be mounted.  Callers should note that this is at "
8125 "best an educated guess made by reading configuration files such as "
8126 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
8127 "are non-existent or not mountable and callers should be prepared to handle "
8128 "or ignore failures if they try to mount them."
8129 msgstr ""
8130
8131 #. type: textblock
8132 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3012
8133 msgid ""
8134 "Each element in the returned hashtable has a key which is the path of the "
8135 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8136 "mounted there (eg. C</dev/sda1>)."
8137 msgstr ""
8138
8139 #. type: textblock
8140 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3017
8141 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
8142 msgstr ""
8143
8144 #. type: textblock
8145 #: ../fish/guestfish-actions.pod:2052
8146 msgid ""
8147 "For operating systems like Windows which still use drive letters, this call "
8148 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8149 "information about the mapping of drive letters to partitions, see "
8150 "L</inspect-get-drive-mappings>."
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:2058
8155 msgid ""
8156 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8157 "L</inspect-get-filesystems>."
8158 msgstr ""
8159
8160 #. type: =head2
8161 #: ../fish/guestfish-actions.pod:2061
8162 msgid "inspect-get-package-format"
8163 msgstr ""
8164
8165 #. type: verbatim
8166 #: ../fish/guestfish-actions.pod:2063
8167 #, no-wrap
8168 msgid ""
8169 " inspect-get-package-format root\n"
8170 "\n"
8171 msgstr ""
8172
8173 #. type: textblock
8174 #: ../fish/guestfish-actions.pod:2065
8175 msgid ""
8176 "This function and L</inspect-get-package-management> return the package "
8177 "format and package management tool used by the inspected operating system.  "
8178 "For example for Fedora these functions would return C<rpm> (package format) "
8179 "and C<yum> (package management)."
8180 msgstr ""
8181
8182 #. type: textblock
8183 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
8184 msgid ""
8185 "This returns the string C<unknown> if we could not determine the package "
8186 "format I<or> if the operating system does not have a real packaging system "
8187 "(eg. Windows)."
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3053
8192 msgid ""
8193 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
8194 "Future versions of libguestfs may return other strings."
8195 msgstr ""
8196
8197 #. type: =head2
8198 #: ../fish/guestfish-actions.pod:2080
8199 msgid "inspect-get-package-management"
8200 msgstr ""
8201
8202 #. type: verbatim
8203 #: ../fish/guestfish-actions.pod:2082
8204 #, no-wrap
8205 msgid ""
8206 " inspect-get-package-management root\n"
8207 "\n"
8208 msgstr ""
8209
8210 #. type: textblock
8211 #: ../fish/guestfish-actions.pod:2084
8212 msgid ""
8213 "L</inspect-get-package-format> and this function return the package format "
8214 "and package management tool used by the inspected operating system.  For "
8215 "example for Fedora these functions would return C<rpm> (package format) and "
8216 "C<yum> (package management)."
8217 msgstr ""
8218
8219 #. type: textblock
8220 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
8221 msgid ""
8222 "This returns the string C<unknown> if we could not determine the package "
8223 "management tool I<or> if the operating system does not have a real packaging "
8224 "system (eg. Windows)."
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:2094 ../src/guestfs-actions.pod:3079
8229 msgid ""
8230 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8231 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8232 "libguestfs may return other strings."
8233 msgstr ""
8234
8235 #. type: =head2
8236 #: ../fish/guestfish-actions.pod:2101
8237 msgid "inspect-get-product-name"
8238 msgstr ""
8239
8240 #. type: verbatim
8241 #: ../fish/guestfish-actions.pod:2103
8242 #, no-wrap
8243 msgid ""
8244 " inspect-get-product-name root\n"
8245 "\n"
8246 msgstr ""
8247
8248 #. type: textblock
8249 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3097
8250 msgid ""
8251 "This returns the product name of the inspected operating system.  The "
8252 "product name is generally some freeform string which can be displayed to the "
8253 "user, but should not be parsed by programs."
8254 msgstr ""
8255
8256 #. type: textblock
8257 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3102
8258 msgid ""
8259 "If the product name could not be determined, then the string C<unknown> is "
8260 "returned."
8261 msgstr ""
8262
8263 #. type: =head2
8264 #: ../fish/guestfish-actions.pod:2115
8265 msgid "inspect-get-product-variant"
8266 msgstr ""
8267
8268 #. type: verbatim
8269 #: ../fish/guestfish-actions.pod:2117
8270 #, no-wrap
8271 msgid ""
8272 " inspect-get-product-variant root\n"
8273 "\n"
8274 msgstr ""
8275
8276 #. type: textblock
8277 #: ../fish/guestfish-actions.pod:2119 ../src/guestfs-actions.pod:3118
8278 msgid "This returns the product variant of the inspected operating system."
8279 msgstr ""
8280
8281 #. type: textblock
8282 #: ../fish/guestfish-actions.pod:2122 ../src/guestfs-actions.pod:3121
8283 msgid ""
8284 "For Windows guests, this returns the contents of the Registry key "
8285 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8286 "which is usually a string such as C<Client> or C<Server> (other values are "
8287 "possible).  This can be used to distinguish consumer and enterprise versions "
8288 "of Windows that have the same version number (for example, Windows 7 and "
8289 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8290 "the latter is C<Server>)."
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
8295 msgid ""
8296 "For enterprise Linux guests, in future we intend this to return the product "
8297 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8298 "implemented at present."
8299 msgstr ""
8300
8301 #. type: textblock
8302 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3134
8303 msgid ""
8304 "If the product variant could not be determined, then the string C<unknown> "
8305 "is returned."
8306 msgstr ""
8307
8308 #. type: textblock
8309 #: ../fish/guestfish-actions.pod:2138
8310 msgid ""
8311 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8312 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8313 msgstr ""
8314
8315 #. type: =head2
8316 #: ../fish/guestfish-actions.pod:2142
8317 msgid "inspect-get-roots"
8318 msgstr ""
8319
8320 #. type: verbatim
8321 #: ../fish/guestfish-actions.pod:2144
8322 #, no-wrap
8323 msgid ""
8324 " inspect-get-roots\n"
8325 "\n"
8326 msgstr ""
8327
8328 #. type: textblock
8329 #: ../fish/guestfish-actions.pod:2146
8330 msgid ""
8331 "This function is a convenient way to get the list of root devices, as "
8332 "returned from a previous call to L</inspect-os>, but without redoing the "
8333 "whole inspection process."
8334 msgstr ""
8335
8336 #. type: textblock
8337 #: ../fish/guestfish-actions.pod:2150
8338 msgid ""
8339 "This returns an empty list if either no root devices were found or the "
8340 "caller has not called L</inspect-os>."
8341 msgstr ""
8342
8343 #. type: =head2
8344 #: ../fish/guestfish-actions.pod:2155
8345 msgid "inspect-get-type"
8346 msgstr ""
8347
8348 #. type: verbatim
8349 #: ../fish/guestfish-actions.pod:2157
8350 #, no-wrap
8351 msgid ""
8352 " inspect-get-type root\n"
8353 "\n"
8354 msgstr ""
8355
8356 #. type: textblock
8357 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3172
8358 msgid ""
8359 "This returns the type of the inspected operating system.  Currently defined "
8360 "types are:"
8361 msgstr ""
8362
8363 #. type: =item
8364 #: ../fish/guestfish-actions.pod:2164 ../src/guestfs-actions.pod:3177
8365 msgid "\"linux\""
8366 msgstr ""
8367
8368 #. type: textblock
8369 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
8370 msgid "Any Linux-based operating system."
8371 msgstr ""
8372
8373 #. type: textblock
8374 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
8375 msgid "Any Microsoft Windows operating system."
8376 msgstr ""
8377
8378 #. type: =item
8379 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3185
8380 msgid "\"freebsd\""
8381 msgstr ""
8382
8383 #. type: textblock
8384 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
8385 msgid "FreeBSD."
8386 msgstr ""
8387
8388 #. type: textblock
8389 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3191
8390 msgid "The operating system type could not be determined."
8391 msgstr ""
8392
8393 #. type: =head2
8394 #: ../fish/guestfish-actions.pod:2187
8395 msgid "inspect-get-windows-current-control-set"
8396 msgstr ""
8397
8398 #. type: verbatim
8399 #: ../fish/guestfish-actions.pod:2189
8400 #, no-wrap
8401 msgid ""
8402 " inspect-get-windows-current-control-set root\n"
8403 "\n"
8404 msgstr ""
8405
8406 #. type: textblock
8407 #: ../fish/guestfish-actions.pod:2191 ../src/guestfs-actions.pod:3211
8408 msgid ""
8409 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8410 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8411 msgstr ""
8412
8413 #. type: textblock
8414 #: ../fish/guestfish-actions.pod:2194 ../src/guestfs-actions.pod:3214
8415 msgid ""
8416 "This call assumes that the guest is Windows and that the Registry could be "
8417 "examined by inspection.  If this is not the case then an error is returned."
8418 msgstr ""
8419
8420 #. type: =head2
8421 #: ../fish/guestfish-actions.pod:2200
8422 msgid "inspect-get-windows-systemroot"
8423 msgstr ""
8424
8425 #. type: verbatim
8426 #: ../fish/guestfish-actions.pod:2202
8427 #, no-wrap
8428 msgid ""
8429 " inspect-get-windows-systemroot root\n"
8430 "\n"
8431 msgstr ""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:2204 ../src/guestfs-actions.pod:3231
8435 msgid ""
8436 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8437 "is a directory path such as C</WINDOWS>."
8438 msgstr ""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3234
8442 msgid ""
8443 "This call assumes that the guest is Windows and that the systemroot could be "
8444 "determined by inspection.  If this is not the case then an error is "
8445 "returned."
8446 msgstr ""
8447
8448 #. type: =head2
8449 #: ../fish/guestfish-actions.pod:2213
8450 msgid "inspect-is-live"
8451 msgstr ""
8452
8453 #. type: verbatim
8454 #: ../fish/guestfish-actions.pod:2215
8455 #, no-wrap
8456 msgid ""
8457 " inspect-is-live root\n"
8458 "\n"
8459 msgstr ""
8460
8461 #. type: textblock
8462 #: ../fish/guestfish-actions.pod:2217
8463 msgid ""
8464 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8465 "then this returns true if a live image was detected on the disk."
8466 msgstr ""
8467
8468 #. type: =head2
8469 #: ../fish/guestfish-actions.pod:2223
8470 msgid "inspect-is-multipart"
8471 msgstr ""
8472
8473 #. type: verbatim
8474 #: ../fish/guestfish-actions.pod:2225
8475 #, no-wrap
8476 msgid ""
8477 " inspect-is-multipart root\n"
8478 "\n"
8479 msgstr ""
8480
8481 #. type: textblock
8482 #: ../fish/guestfish-actions.pod:2227
8483 msgid ""
8484 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8485 "then this returns true if the disk is part of a set."
8486 msgstr ""
8487
8488 #. type: =head2
8489 #: ../fish/guestfish-actions.pod:2233
8490 msgid "inspect-is-netinst"
8491 msgstr ""
8492
8493 #. type: verbatim
8494 #: ../fish/guestfish-actions.pod:2235
8495 #, no-wrap
8496 msgid ""
8497 " inspect-is-netinst root\n"
8498 "\n"
8499 msgstr ""
8500
8501 #. type: textblock
8502 #: ../fish/guestfish-actions.pod:2237
8503 msgid ""
8504 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8505 "then this returns true if the disk is a network installer, ie. not a "
8506 "self-contained install CD but one which is likely to require network access "
8507 "to complete the install."
8508 msgstr ""
8509
8510 #. type: =head2
8511 #: ../fish/guestfish-actions.pod:2245
8512 msgid "inspect-list-applications"
8513 msgstr ""
8514
8515 #. type: verbatim
8516 #: ../fish/guestfish-actions.pod:2247
8517 #, no-wrap
8518 msgid ""
8519 " inspect-list-applications root\n"
8520 "\n"
8521 msgstr ""
8522
8523 #. type: textblock
8524 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8525 msgid "Return the list of applications installed in the operating system."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:2251
8530 msgid ""
8531 "I<Note:> This call works differently from other parts of the inspection "
8532 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8533 "then mount up the disks, before calling this.  Listing applications is a "
8534 "significantly more difficult operation which requires access to the full "
8535 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8536 "are just returning data cached in the libguestfs handle, this call actually "
8537 "reads parts of the mounted filesystems during the call."
8538 msgstr ""
8539
8540 #. type: textblock
8541 #: ../fish/guestfish-actions.pod:2261 ../src/guestfs-actions.pod:3313
8542 msgid ""
8543 "This returns an empty list if the inspection code was not able to determine "
8544 "the list of applications."
8545 msgstr ""
8546
8547 #. type: textblock
8548 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
8549 msgid "The application structure contains the following fields:"
8550 msgstr ""
8551
8552 #. type: =item
8553 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
8554 msgid "C<app_name>"
8555 msgstr ""
8556
8557 #. type: textblock
8558 #: ../fish/guestfish-actions.pod:2270 ../src/guestfs-actions.pod:3322
8559 msgid ""
8560 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8561 "guests, this is the package name."
8562 msgstr ""
8563
8564 #. type: =item
8565 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8566 msgid "C<app_display_name>"
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
8571 msgid ""
8572 "The display name of the application, sometimes localized to the install "
8573 "language of the guest operating system."
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8578 msgid ""
8579 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8580 "to display something can use C<app_name> instead."
8581 msgstr ""
8582
8583 #. type: =item
8584 #: ../fish/guestfish-actions.pod:2281 ../src/guestfs-actions.pod:3333
8585 msgid "C<app_epoch>"
8586 msgstr ""
8587
8588 #. type: textblock
8589 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3335
8590 msgid ""
8591 "For package managers which use epochs, this contains the epoch of the "
8592 "package (an integer).  If unavailable, this is returned as C<0>."
8593 msgstr ""
8594
8595 #. type: =item
8596 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
8597 msgid "C<app_version>"
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
8602 msgid ""
8603 "The version string of the application or package.  If unavailable this is "
8604 "returned as an empty string C<\"\">."
8605 msgstr ""
8606
8607 #. type: =item
8608 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8609 msgid "C<app_release>"
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8614 msgid ""
8615 "The release string of the application or package, for package managers that "
8616 "use this.  If unavailable this is returned as an empty string C<\"\">."
8617 msgstr ""
8618
8619 #. type: =item
8620 #: ../fish/guestfish-actions.pod:2297 ../src/guestfs-actions.pod:3349
8621 msgid "C<app_install_path>"
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:2299 ../src/guestfs-actions.pod:3351
8626 msgid ""
8627 "The installation path of the application (on operating systems such as "
8628 "Windows which use installation paths).  This path is in the format used by "
8629 "the guest operating system, it is not a libguestfs path."
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
8634 msgid "If unavailable this is returned as an empty string C<\"\">."
8635 msgstr ""
8636
8637 #. type: =item
8638 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
8639 msgid "C<app_trans_path>"
8640 msgstr ""
8641
8642 #. type: textblock
8643 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
8644 msgid ""
8645 "The install path translated into a libguestfs path.  If unavailable this is "
8646 "returned as an empty string C<\"\">."
8647 msgstr ""
8648
8649 #. type: =item
8650 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3363
8651 msgid "C<app_publisher>"
8652 msgstr ""
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
8656 msgid ""
8657 "The name of the publisher of the application, for package managers that use "
8658 "this.  If unavailable this is returned as an empty string C<\"\">."
8659 msgstr ""
8660
8661 #. type: =item
8662 #: ../fish/guestfish-actions.pod:2317 ../src/guestfs-actions.pod:3369
8663 msgid "C<app_url>"
8664 msgstr ""
8665
8666 #. type: textblock
8667 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3371
8668 msgid ""
8669 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8670 "returned as an empty string C<\"\">."
8671 msgstr ""
8672
8673 #. type: =item
8674 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3374
8675 msgid "C<app_source_package>"
8676 msgstr ""
8677
8678 #. type: textblock
8679 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3376
8680 msgid ""
8681 "For packaging systems which support this, the name of the source package.  "
8682 "If unavailable this is returned as an empty string C<\"\">."
8683 msgstr ""
8684
8685 #. type: =item
8686 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3379
8687 msgid "C<app_summary>"
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3381
8692 msgid ""
8693 "A short (usually one line) description of the application or package.  If "
8694 "unavailable this is returned as an empty string C<\"\">."
8695 msgstr ""
8696
8697 #. type: =item
8698 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3384
8699 msgid "C<app_description>"
8700 msgstr ""
8701
8702 #. type: textblock
8703 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3386
8704 msgid ""
8705 "A longer description of the application or package.  If unavailable this is "
8706 "returned as an empty string C<\"\">."
8707 msgstr ""
8708
8709 #. type: =head2
8710 #: ../fish/guestfish-actions.pod:2341
8711 msgid "inspect-os"
8712 msgstr ""
8713
8714 #. type: verbatim
8715 #: ../fish/guestfish-actions.pod:2343
8716 #, no-wrap
8717 msgid ""
8718 " inspect-os\n"
8719 "\n"
8720 msgstr ""
8721
8722 #. type: textblock
8723 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
8724 msgid ""
8725 "This function uses other libguestfs functions and certain heuristics to "
8726 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8727 "for operating systems."
8728 msgstr ""
8729
8730 #. type: textblock
8731 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3408
8732 msgid "The list returned is empty if no operating systems were found."
8733 msgstr ""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3410
8737 msgid ""
8738 "If one operating system was found, then this returns a list with a single "
8739 "element, which is the name of the root filesystem of this operating system.  "
8740 "It is also possible for this function to return a list containing more than "
8741 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8742 "element being the root filesystem of one of the operating systems."
8743 msgstr ""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:2358
8747 msgid ""
8748 "You can pass the root string(s) returned to other L</inspect-get-*> "
8749 "functions in order to query further information about each operating system, "
8750 "such as the name and version."
8751 msgstr ""
8752
8753 #. type: textblock
8754 #: ../fish/guestfish-actions.pod:2363
8755 msgid ""
8756 "This function uses other libguestfs features such as L</mount-ro> and "
8757 "L</umount-all> in order to mount and unmount filesystems and look at the "
8758 "contents.  This should be called with no disks currently mounted.  The "
8759 "function may also use Augeas, so any existing Augeas handle will be closed."
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:3428
8764 msgid ""
8765 "This function cannot decrypt encrypted disks.  The caller must do that first "
8766 "(supplying the necessary keys) if the disk is encrypted."
8767 msgstr ""
8768
8769 #. type: textblock
8770 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2573 ../fish/guestfish-actions.pod:2632
8771 msgid "See also L</list-filesystems>."
8772 msgstr ""
8773
8774 #. type: =head2
8775 #: ../fish/guestfish-actions.pod:2377
8776 msgid "is-blockdev"
8777 msgstr ""
8778
8779 #. type: verbatim
8780 #: ../fish/guestfish-actions.pod:2379
8781 #, no-wrap
8782 msgid ""
8783 " is-blockdev path\n"
8784 "\n"
8785 msgstr ""
8786
8787 #. type: textblock
8788 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3448
8789 msgid ""
8790 "This returns C<true> if and only if there is a block device with the given "
8791 "C<path> name."
8792 msgstr ""
8793
8794 #. type: textblock
8795 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2402 ../fish/guestfish-actions.pod:2421 ../fish/guestfish-actions.pod:2430 ../fish/guestfish-actions.pod:2440 ../fish/guestfish-actions.pod:2474 ../fish/guestfish-actions.pod:2483
8796 msgid "See also L</stat>."
8797 msgstr ""
8798
8799 #. type: =head2
8800 #: ../fish/guestfish-actions.pod:2386
8801 msgid "is-busy"
8802 msgstr ""
8803
8804 #. type: verbatim
8805 #: ../fish/guestfish-actions.pod:2388
8806 #, no-wrap
8807 msgid ""
8808 " is-busy\n"
8809 "\n"
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3462
8814 msgid ""
8815 "This returns true iff this handle is busy processing a command (in the "
8816 "C<BUSY> state)."
8817 msgstr ""
8818
8819 #. type: =head2
8820 #: ../fish/guestfish-actions.pod:2395
8821 msgid "is-chardev"
8822 msgstr ""
8823
8824 #. type: verbatim
8825 #: ../fish/guestfish-actions.pod:2397
8826 #, no-wrap
8827 msgid ""
8828 " is-chardev path\n"
8829 "\n"
8830 msgstr ""
8831
8832 #. type: textblock
8833 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3477
8834 msgid ""
8835 "This returns C<true> if and only if there is a character device with the "
8836 "given C<path> name."
8837 msgstr ""
8838
8839 #. type: =head2
8840 #: ../fish/guestfish-actions.pod:2404
8841 msgid "is-config"
8842 msgstr ""
8843
8844 #. type: verbatim
8845 #: ../fish/guestfish-actions.pod:2406
8846 #, no-wrap
8847 msgid ""
8848 " is-config\n"
8849 "\n"
8850 msgstr ""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3491
8854 msgid ""
8855 "This returns true iff this handle is being configured (in the C<CONFIG> "
8856 "state)."
8857 msgstr ""
8858
8859 #. type: =head2
8860 #: ../fish/guestfish-actions.pod:2413
8861 msgid "is-dir"
8862 msgstr ""
8863
8864 #. type: verbatim
8865 #: ../fish/guestfish-actions.pod:2415
8866 #, no-wrap
8867 msgid ""
8868 " is-dir path\n"
8869 "\n"
8870 msgstr ""
8871
8872 #. type: textblock
8873 #: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3506
8874 msgid ""
8875 "This returns C<true> if and only if there is a directory with the given "
8876 "C<path> name.  Note that it returns false for other objects like files."
8877 msgstr ""
8878
8879 #. type: =head2
8880 #: ../fish/guestfish-actions.pod:2423
8881 msgid "is-fifo"
8882 msgstr ""
8883
8884 #. type: verbatim
8885 #: ../fish/guestfish-actions.pod:2425
8886 #, no-wrap
8887 msgid ""
8888 " is-fifo path\n"
8889 "\n"
8890 msgstr ""
8891
8892 #. type: textblock
8893 #: ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:3522
8894 msgid ""
8895 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8896 "given C<path> name."
8897 msgstr ""
8898
8899 #. type: =head2
8900 #: ../fish/guestfish-actions.pod:2432
8901 msgid "is-file"
8902 msgstr ""
8903
8904 #. type: verbatim
8905 #: ../fish/guestfish-actions.pod:2434
8906 #, no-wrap
8907 msgid ""
8908 " is-file path\n"
8909 "\n"
8910 msgstr ""
8911
8912 #. type: textblock
8913 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3537
8914 msgid ""
8915 "This returns C<true> if and only if there is a regular file with the given "
8916 "C<path> name.  Note that it returns false for other objects like "
8917 "directories."
8918 msgstr ""
8919
8920 #. type: =head2
8921 #: ../fish/guestfish-actions.pod:2442
8922 msgid "is-launching"
8923 msgstr ""
8924
8925 #. type: verbatim
8926 #: ../fish/guestfish-actions.pod:2444
8927 #, no-wrap
8928 msgid ""
8929 " is-launching\n"
8930 "\n"
8931 msgstr ""
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:2446 ../src/guestfs-actions.pod:3552
8935 msgid ""
8936 "This returns true iff this handle is launching the subprocess (in the "
8937 "C<LAUNCHING> state)."
8938 msgstr ""
8939
8940 #. type: =head2
8941 #: ../fish/guestfish-actions.pod:2451
8942 msgid "is-lv"
8943 msgstr ""
8944
8945 #. type: verbatim
8946 #: ../fish/guestfish-actions.pod:2453
8947 #, no-wrap
8948 msgid ""
8949 " is-lv device\n"
8950 "\n"
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3567
8955 msgid ""
8956 "This command tests whether C<device> is a logical volume, and returns true "
8957 "iff this is the case."
8958 msgstr ""
8959
8960 #. type: =head2
8961 #: ../fish/guestfish-actions.pod:2458
8962 msgid "is-ready"
8963 msgstr ""
8964
8965 #. type: verbatim
8966 #: ../fish/guestfish-actions.pod:2460
8967 #, no-wrap
8968 msgid ""
8969 " is-ready\n"
8970 "\n"
8971 msgstr ""
8972
8973 #. type: textblock
8974 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3579
8975 msgid ""
8976 "This returns true iff this handle is ready to accept commands (in the "
8977 "C<READY> state)."
8978 msgstr ""
8979
8980 #. type: =head2
8981 #: ../fish/guestfish-actions.pod:2467
8982 msgid "is-socket"
8983 msgstr ""
8984
8985 #. type: verbatim
8986 #: ../fish/guestfish-actions.pod:2469
8987 #, no-wrap
8988 msgid ""
8989 " is-socket path\n"
8990 "\n"
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:2471 ../src/guestfs-actions.pod:3594
8995 msgid ""
8996 "This returns C<true> if and only if there is a Unix domain socket with the "
8997 "given C<path> name."
8998 msgstr ""
8999
9000 #. type: =head2
9001 #: ../fish/guestfish-actions.pod:2476
9002 msgid "is-symlink"
9003 msgstr ""
9004
9005 #. type: verbatim
9006 #: ../fish/guestfish-actions.pod:2478
9007 #, no-wrap
9008 msgid ""
9009 " is-symlink path\n"
9010 "\n"
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3609
9015 msgid ""
9016 "This returns C<true> if and only if there is a symbolic link with the given "
9017 "C<path> name."
9018 msgstr ""
9019
9020 #. type: =head2
9021 #: ../fish/guestfish-actions.pod:2485
9022 msgid "is-zero"
9023 msgstr ""
9024
9025 #. type: verbatim
9026 #: ../fish/guestfish-actions.pod:2487
9027 #, no-wrap
9028 msgid ""
9029 " is-zero path\n"
9030 "\n"
9031 msgstr ""
9032
9033 #. type: textblock
9034 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3624
9035 msgid ""
9036 "This returns true iff the file exists and the file is empty or it contains "
9037 "all zero bytes."
9038 msgstr ""
9039
9040 #. type: =head2
9041 #: ../fish/guestfish-actions.pod:2492
9042 msgid "is-zero-device"
9043 msgstr ""
9044
9045 #. type: verbatim
9046 #: ../fish/guestfish-actions.pod:2494
9047 #, no-wrap
9048 msgid ""
9049 " is-zero-device device\n"
9050 "\n"
9051 msgstr ""
9052
9053 #. type: textblock
9054 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3637
9055 msgid "This returns true iff the device exists and contains all zero bytes."
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3639
9060 msgid "Note that for large devices this can take a long time to run."
9061 msgstr ""
9062
9063 #. type: =head2
9064 #: ../fish/guestfish-actions.pod:2500
9065 msgid "kill-subprocess"
9066 msgstr ""
9067
9068 #. type: verbatim
9069 #: ../fish/guestfish-actions.pod:2502
9070 #, no-wrap
9071 msgid ""
9072 " kill-subprocess\n"
9073 "\n"
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3650
9078 msgid "This kills the qemu subprocess.  You should never need to call this."
9079 msgstr ""
9080
9081 #. type: =head2
9082 #: ../fish/guestfish-actions.pod:2506
9083 msgid "launch"
9084 msgstr ""
9085
9086 #. type: =head2
9087 #: ../fish/guestfish-actions.pod:2508
9088 msgid "run"
9089 msgstr ""
9090
9091 #. type: verbatim
9092 #: ../fish/guestfish-actions.pod:2510
9093 #, no-wrap
9094 msgid ""
9095 " launch\n"
9096 "\n"
9097 msgstr ""
9098
9099 #. type: textblock
9100 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3661
9101 msgid ""
9102 "Internally libguestfs is implemented by running a virtual machine using "
9103 "L<qemu(1)>."
9104 msgstr ""
9105
9106 #. type: textblock
9107 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3664
9108 msgid ""
9109 "You should call this after configuring the handle (eg. adding drives) but "
9110 "before performing any actions."
9111 msgstr ""
9112
9113 #. type: =head2
9114 #: ../fish/guestfish-actions.pod:2518
9115 msgid "lchown"
9116 msgstr ""
9117
9118 #. type: verbatim
9119 #: ../fish/guestfish-actions.pod:2520
9120 #, no-wrap
9121 msgid ""
9122 " lchown owner group path\n"
9123 "\n"
9124 msgstr ""
9125
9126 #. type: textblock
9127 #: ../fish/guestfish-actions.pod:2522
9128 msgid ""
9129 "Change the file owner to C<owner> and group to C<group>.  This is like "
9130 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
9131 "the target."
9132 msgstr ""
9133
9134 #. type: =head2
9135 #: ../fish/guestfish-actions.pod:2530
9136 msgid "lgetxattr"
9137 msgstr ""
9138
9139 #. type: verbatim
9140 #: ../fish/guestfish-actions.pod:2532
9141 #, no-wrap
9142 msgid ""
9143 " lgetxattr path name\n"
9144 "\n"
9145 msgstr ""
9146
9147 #. type: textblock
9148 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3704
9149 msgid ""
9150 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
9151 "is a symlink, then this call returns an extended attribute from the symlink."
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:2548
9156 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
9157 msgstr ""
9158
9159 #. type: =head2
9160 #: ../fish/guestfish-actions.pod:2550
9161 msgid "lgetxattrs"
9162 msgstr ""
9163
9164 #. type: verbatim
9165 #: ../fish/guestfish-actions.pod:2552
9166 #, no-wrap
9167 msgid ""
9168 " lgetxattrs path\n"
9169 "\n"
9170 msgstr ""
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:2554
9174 msgid ""
9175 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
9176 "it returns the extended attributes of the link itself."
9177 msgstr ""
9178
9179 #. type: =head2
9180 #: ../fish/guestfish-actions.pod:2558
9181 msgid "list-9p"
9182 msgstr ""
9183
9184 #. type: verbatim
9185 #: ../fish/guestfish-actions.pod:2560
9186 #, no-wrap
9187 msgid ""
9188 " list-9p\n"
9189 "\n"
9190 msgstr ""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3747
9194 msgid ""
9195 "List all 9p filesystems attached to the guest.  A list of mount tags is "
9196 "returned."
9197 msgstr ""
9198
9199 #. type: =head2
9200 #: ../fish/guestfish-actions.pod:2565
9201 msgid "list-devices"
9202 msgstr ""
9203
9204 #. type: verbatim
9205 #: ../fish/guestfish-actions.pod:2567
9206 #, no-wrap
9207 msgid ""
9208 " list-devices\n"
9209 "\n"
9210 msgstr ""
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3761
9214 msgid "List all the block devices."
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3763
9219 msgid "The full block device names are returned, eg. C</dev/sda>."
9220 msgstr ""
9221
9222 #. type: =head2
9223 #: ../fish/guestfish-actions.pod:2575
9224 msgid "list-dm-devices"
9225 msgstr ""
9226
9227 #. type: verbatim
9228 #: ../fish/guestfish-actions.pod:2577
9229 #, no-wrap
9230 msgid ""
9231 " list-dm-devices\n"
9232 "\n"
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3778
9237 msgid "List all device mapper devices."
9238 msgstr ""
9239
9240 #. type: textblock
9241 #: ../fish/guestfish-actions.pod:2581
9242 msgid ""
9243 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9244 "previous call to L</luks-open>."
9245 msgstr ""
9246
9247 #. type: textblock
9248 #: ../fish/guestfish-actions.pod:2584
9249 msgid ""
9250 "Device mapper devices which correspond to logical volumes are I<not> "
9251 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9252 msgstr ""
9253
9254 #. type: =head2
9255 #: ../fish/guestfish-actions.pod:2588
9256 msgid "list-filesystems"
9257 msgstr ""
9258
9259 #. type: verbatim
9260 #: ../fish/guestfish-actions.pod:2590
9261 #, no-wrap
9262 msgid ""
9263 " list-filesystems\n"
9264 "\n"
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
9269 msgid ""
9270 "This inspection command looks for filesystems on partitions, block devices "
9271 "and logical volumes, returning a list of devices containing filesystems and "
9272 "their type."
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
9277 msgid ""
9278 "The return value is a hash, where the keys are the devices containing "
9279 "filesystems, and the values are the filesystem types.  For example:"
9280 msgstr ""
9281
9282 #. type: verbatim
9283 #: ../fish/guestfish-actions.pod:2600 ../src/guestfs-actions.pod:3806
9284 #, no-wrap
9285 msgid ""
9286 " \"/dev/sda1\" => \"ntfs\"\n"
9287 " \"/dev/sda2\" => \"ext2\"\n"
9288 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9289 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9290 "\n"
9291 msgstr ""
9292
9293 #. type: textblock
9294 #: ../fish/guestfish-actions.pod:2605 ../src/guestfs-actions.pod:3811
9295 msgid ""
9296 "The value can have the special value \"unknown\", meaning the content of the "
9297 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9298 msgstr ""
9299
9300 #. type: textblock
9301 #: ../fish/guestfish-actions.pod:2609
9302 msgid ""
9303 "This command runs other libguestfs commands, which might include L</mount> "
9304 "and L</umount>, and therefore you should use this soon after launch and only "
9305 "when nothing is mounted."
9306 msgstr ""
9307
9308 #. type: textblock
9309 #: ../fish/guestfish-actions.pod:2613
9310 msgid ""
9311 "Not all of the filesystems returned will be mountable.  In particular, swap "
9312 "partitions are returned in the list.  Also this command does not check that "
9313 "each filesystem found is valid and mountable, and some filesystems might be "
9314 "mountable but require special options.  Filesystems may not all belong to a "
9315 "single logical operating system (use L</inspect-os> to look for OSes)."
9316 msgstr ""
9317
9318 #. type: =head2
9319 #: ../fish/guestfish-actions.pod:2621
9320 msgid "list-partitions"
9321 msgstr ""
9322
9323 #. type: verbatim
9324 #: ../fish/guestfish-actions.pod:2623
9325 #, no-wrap
9326 msgid ""
9327 " list-partitions\n"
9328 "\n"
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:2625 ../src/guestfs-actions.pod:3840
9333 msgid "List all the partitions detected on all block devices."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3842
9338 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9339 msgstr ""
9340
9341 #. type: textblock
9342 #: ../fish/guestfish-actions.pod:2629
9343 msgid ""
9344 "This does not return logical volumes.  For that you will need to call "
9345 "L</lvs>."
9346 msgstr ""
9347
9348 #. type: =head2
9349 #: ../fish/guestfish-actions.pod:2634
9350 msgid "ll"
9351 msgstr ""
9352
9353 #. type: verbatim
9354 #: ../fish/guestfish-actions.pod:2636
9355 #, no-wrap
9356 msgid ""
9357 " ll directory\n"
9358 "\n"
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3861
9363 msgid ""
9364 "List the files in C<directory> (relative to the root directory, there is no "
9365 "cwd) in the format of 'ls -la'."
9366 msgstr ""
9367
9368 #. type: textblock
9369 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3864
9370 msgid ""
9371 "This command is mostly useful for interactive sessions.  It is I<not> "
9372 "intended that you try to parse the output string."
9373 msgstr ""
9374
9375 #. type: =head2
9376 #: ../fish/guestfish-actions.pod:2644
9377 msgid "ln"
9378 msgstr ""
9379
9380 #. type: verbatim
9381 #: ../fish/guestfish-actions.pod:2646
9382 #, no-wrap
9383 msgid ""
9384 " ln target linkname\n"
9385 "\n"
9386 msgstr ""
9387
9388 #. type: textblock
9389 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:3879
9390 msgid "This command creates a hard link using the C<ln> command."
9391 msgstr ""
9392
9393 #. type: =head2
9394 #: ../fish/guestfish-actions.pod:2650
9395 msgid "ln-f"
9396 msgstr ""
9397
9398 #. type: verbatim
9399 #: ../fish/guestfish-actions.pod:2652
9400 #, no-wrap
9401 msgid ""
9402 " ln-f target linkname\n"
9403 "\n"
9404 msgstr ""
9405
9406 #. type: textblock
9407 #: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:3892
9408 msgid ""
9409 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9410 "option removes the link (C<linkname>) if it exists already."
9411 msgstr ""
9412
9413 #. type: =head2
9414 #: ../fish/guestfish-actions.pod:2657
9415 msgid "ln-s"
9416 msgstr ""
9417
9418 #. type: verbatim
9419 #: ../fish/guestfish-actions.pod:2659
9420 #, no-wrap
9421 msgid ""
9422 " ln-s target linkname\n"
9423 "\n"
9424 msgstr ""
9425
9426 #. type: textblock
9427 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:3906
9428 msgid "This command creates a symbolic link using the C<ln -s> command."
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../fish/guestfish-actions.pod:2663
9433 msgid "ln-sf"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:2665
9438 #, no-wrap
9439 msgid ""
9440 " ln-sf target linkname\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:3919
9446 msgid ""
9447 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9448 "option removes the link (C<linkname>) if it exists already."
9449 msgstr ""
9450
9451 #. type: =head2
9452 #: ../fish/guestfish-actions.pod:2670
9453 msgid "lremovexattr"
9454 msgstr ""
9455
9456 #. type: verbatim
9457 #: ../fish/guestfish-actions.pod:2672
9458 #, no-wrap
9459 msgid ""
9460 " lremovexattr xattr path\n"
9461 "\n"
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:2674
9466 msgid ""
9467 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9468 "it removes an extended attribute of the link itself."
9469 msgstr ""
9470
9471 #. type: =head2
9472 #: ../fish/guestfish-actions.pod:2678
9473 msgid "ls"
9474 msgstr ""
9475
9476 #. type: verbatim
9477 #: ../fish/guestfish-actions.pod:2680
9478 #, no-wrap
9479 msgid ""
9480 " ls directory\n"
9481 "\n"
9482 msgstr ""
9483
9484 #. type: textblock
9485 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3947
9486 msgid ""
9487 "List the files in C<directory> (relative to the root directory, there is no "
9488 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9489 "shown."
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:2686
9494 msgid ""
9495 "This command is mostly useful for interactive sessions.  Programs should "
9496 "probably use L</readdir> instead."
9497 msgstr ""
9498
9499 #. type: =head2
9500 #: ../fish/guestfish-actions.pod:2689
9501 msgid "lsetxattr"
9502 msgstr ""
9503
9504 #. type: verbatim
9505 #: ../fish/guestfish-actions.pod:2691
9506 #, no-wrap
9507 msgid ""
9508 " lsetxattr xattr val vallen path\n"
9509 "\n"
9510 msgstr ""
9511
9512 #. type: textblock
9513 #: ../fish/guestfish-actions.pod:2693
9514 msgid ""
9515 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9516 "sets an extended attribute of the link itself."
9517 msgstr ""
9518
9519 #. type: =head2
9520 #: ../fish/guestfish-actions.pod:2697
9521 msgid "lstat"
9522 msgstr ""
9523
9524 #. type: verbatim
9525 #: ../fish/guestfish-actions.pod:2699
9526 #, no-wrap
9527 msgid ""
9528 " lstat path\n"
9529 "\n"
9530 msgstr ""
9531
9532 #. type: textblock
9533 #: ../fish/guestfish-actions.pod:2701 ../fish/guestfish-actions.pod:4509 ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:6762
9534 msgid "Returns file information for the given C<path>."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:2703
9539 msgid ""
9540 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9541 "the link is stat-ed, not the file it refers to."
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:3989
9546 msgid "This is the same as the C<lstat(2)> system call."
9547 msgstr ""
9548
9549 #. type: =head2
9550 #: ../fish/guestfish-actions.pod:2709
9551 msgid "lstatlist"
9552 msgstr ""
9553
9554 #. type: verbatim
9555 #: ../fish/guestfish-actions.pod:2711
9556 #, no-wrap
9557 msgid ""
9558 " lstatlist path 'names ...'\n"
9559 "\n"
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:2713
9564 msgid ""
9565 "This call allows you to perform the L</lstat> operation on multiple files, "
9566 "where all files are in the directory C<path>.  C<names> is the list of files "
9567 "from this directory."
9568 msgstr ""
9569
9570 #. type: textblock
9571 #: ../fish/guestfish-actions.pod:2717 ../src/guestfs-actions.pod:4008
9572 msgid ""
9573 "On return you get a list of stat structs, with a one-to-one correspondence "
9574 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9575 "then the C<ino> field of that structure is set to C<-1>."
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:2722
9580 msgid ""
9581 "This call is intended for programs that want to efficiently list a directory "
9582 "contents without making many round-trips.  See also L</lxattrlist> for a "
9583 "similarly efficient call for getting extended attributes.  Very long "
9584 "directory listings might cause the protocol message size to be exceeded, "
9585 "causing this call to fail.  The caller must split up such requests into "
9586 "smaller groups of names."
9587 msgstr ""
9588
9589 #. type: =head2
9590 #: ../fish/guestfish-actions.pod:2730
9591 msgid "luks-add-key"
9592 msgstr ""
9593
9594 #. type: verbatim
9595 #: ../fish/guestfish-actions.pod:2732
9596 #, no-wrap
9597 msgid ""
9598 " luks-add-key device keyslot\n"
9599 "\n"
9600 msgstr ""
9601
9602 #. type: textblock
9603 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4036
9604 msgid ""
9605 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9606 "existing key, and is used to access the device.  C<newkey> is the new key to "
9607 "add.  C<keyslot> is the key slot that will be replaced."
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:2739
9612 msgid ""
9613 "Note that if C<keyslot> already contains a key, then this command will "
9614 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2743 ../fish/guestfish-actions.pod:2765 ../fish/guestfish-actions.pod:2778 ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2818 ../fish/guestfish-actions.pod:2828
9619 msgid ""
9620 "This command has one or more key or passphrase parameters.  Guestfish will "
9621 "prompt for these separately."
9622 msgstr ""
9623
9624 #. type: =head2
9625 #: ../fish/guestfish-actions.pod:2746
9626 msgid "luks-close"
9627 msgstr ""
9628
9629 #. type: verbatim
9630 #: ../fish/guestfish-actions.pod:2748
9631 #, no-wrap
9632 msgid ""
9633 " luks-close device\n"
9634 "\n"
9635 msgstr ""
9636
9637 #. type: textblock
9638 #: ../fish/guestfish-actions.pod:2750
9639 msgid ""
9640 "This closes a LUKS device that was created earlier by L</luks-open> or "
9641 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9642 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9643 "underlying block device."
9644 msgstr ""
9645
9646 #. type: =head2
9647 #: ../fish/guestfish-actions.pod:2756
9648 msgid "luks-format"
9649 msgstr ""
9650
9651 #. type: verbatim
9652 #: ../fish/guestfish-actions.pod:2758
9653 #, no-wrap
9654 msgid ""
9655 " luks-format device keyslot\n"
9656 "\n"
9657 msgstr ""
9658
9659 #. type: textblock
9660 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4077
9661 msgid ""
9662 "This command erases existing data on C<device> and formats the device as a "
9663 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9664 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9665 msgstr ""
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:2768 ../fish/guestfish-actions.pod:2781 ../fish/guestfish-actions.pod:2868 ../fish/guestfish-actions.pod:3529 ../fish/guestfish-actions.pod:4055 ../fish/guestfish-actions.pod:4380 ../fish/guestfish-actions.pod:4403 ../fish/guestfish-actions.pod:4425 ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4250 ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6141 ../src/guestfs-actions.pod:6576 ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:7838
9669 msgid ""
9670 "B<This command is dangerous.  Without careful use you can easily destroy all "
9671 "your data>."
9672 msgstr ""
9673
9674 #. type: =head2
9675 #: ../fish/guestfish-actions.pod:2771
9676 msgid "luks-format-cipher"
9677 msgstr ""
9678
9679 #. type: verbatim
9680 #: ../fish/guestfish-actions.pod:2773
9681 #, no-wrap
9682 msgid ""
9683 " luks-format-cipher device keyslot cipher\n"
9684 "\n"
9685 msgstr ""
9686
9687 #. type: textblock
9688 #: ../fish/guestfish-actions.pod:2775
9689 msgid ""
9690 "This command is the same as L</luks-format> but it also allows you to set "
9691 "the C<cipher> used."
9692 msgstr ""
9693
9694 #. type: =head2
9695 #: ../fish/guestfish-actions.pod:2784
9696 msgid "luks-kill-slot"
9697 msgstr ""
9698
9699 #. type: verbatim
9700 #: ../fish/guestfish-actions.pod:2786
9701 #, no-wrap
9702 msgid ""
9703 " luks-kill-slot device keyslot\n"
9704 "\n"
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:2788 ../src/guestfs-actions.pod:4124
9709 msgid ""
9710 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9711 "device C<device>.  C<key> must be one of the I<other> keys."
9712 msgstr ""
9713
9714 #. type: =head2
9715 #: ../fish/guestfish-actions.pod:2795
9716 msgid "luks-open"
9717 msgstr ""
9718
9719 #. type: verbatim
9720 #: ../fish/guestfish-actions.pod:2797
9721 #, no-wrap
9722 msgid ""
9723 " luks-open device mapname\n"
9724 "\n"
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:2799 ../src/guestfs-actions.pod:4144
9729 msgid ""
9730 "This command opens a block device which has been encrypted according to the "
9731 "Linux Unified Key Setup (LUKS) standard."
9732 msgstr ""
9733
9734 #. type: textblock
9735 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4147
9736 msgid "C<device> is the encrypted block device or partition."
9737 msgstr ""
9738
9739 #. type: textblock
9740 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4149
9741 msgid ""
9742 "The caller must supply one of the keys associated with the LUKS block "
9743 "device, in the C<key> parameter."
9744 msgstr ""
9745
9746 #. type: textblock
9747 #: ../fish/guestfish-actions.pod:2807 ../src/guestfs-actions.pod:4152
9748 msgid ""
9749 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9750 "writes to this block device are decrypted from and encrypted to the "
9751 "underlying C<device> respectively."
9752 msgstr ""
9753
9754 #. type: textblock
9755 #: ../fish/guestfish-actions.pod:2811
9756 msgid ""
9757 "If this block device contains LVM volume groups, then calling L</vgscan> "
9758 "followed by L</vg-activate-all> will make them visible."
9759 msgstr ""
9760
9761 #. type: textblock
9762 #: ../fish/guestfish-actions.pod:2815
9763 msgid "Use L</list-dm-devices> to list all device mapper devices."
9764 msgstr ""
9765
9766 #. type: =head2
9767 #: ../fish/guestfish-actions.pod:2821
9768 msgid "luks-open-ro"
9769 msgstr ""
9770
9771 #. type: verbatim
9772 #: ../fish/guestfish-actions.pod:2823
9773 #, no-wrap
9774 msgid ""
9775 " luks-open-ro device mapname\n"
9776 "\n"
9777 msgstr ""
9778
9779 #. type: textblock
9780 #: ../fish/guestfish-actions.pod:2825
9781 msgid ""
9782 "This is the same as L</luks-open> except that a read-only mapping is "
9783 "created."
9784 msgstr ""
9785
9786 #. type: =head2
9787 #: ../fish/guestfish-actions.pod:2831
9788 msgid "lvcreate"
9789 msgstr ""
9790
9791 #. type: verbatim
9792 #: ../fish/guestfish-actions.pod:2833
9793 #, no-wrap
9794 msgid ""
9795 " lvcreate logvol volgroup mbytes\n"
9796 "\n"
9797 msgstr ""
9798
9799 #. type: textblock
9800 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4198
9801 msgid ""
9802 "This creates an LVM logical volume called C<logvol> on the volume group "
9803 "C<volgroup>, with C<size> megabytes."
9804 msgstr ""
9805
9806 #. type: =head2
9807 #: ../fish/guestfish-actions.pod:2838
9808 msgid "lvm-canonical-lv-name"
9809 msgstr ""
9810
9811 #. type: verbatim
9812 #: ../fish/guestfish-actions.pod:2840
9813 #, no-wrap
9814 msgid ""
9815 " lvm-canonical-lv-name lvname\n"
9816 "\n"
9817 msgstr ""
9818
9819 #. type: textblock
9820 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
9821 msgid ""
9822 "This converts alternative naming schemes for LVs that you might find to the "
9823 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9824 "C</dev/VG/LV>."
9825 msgstr ""
9826
9827 #. type: textblock
9828 #: ../fish/guestfish-actions.pod:2846 ../src/guestfs-actions.pod:4215
9829 msgid ""
9830 "This command returns an error if the C<lvname> parameter does not refer to a "
9831 "logical volume."
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:2849
9836 msgid "See also L</is-lv>."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:2851
9841 msgid "lvm-clear-filter"
9842 msgstr ""
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:2853
9846 #, no-wrap
9847 msgid ""
9848 " lvm-clear-filter\n"
9849 "\n"
9850 msgstr ""
9851
9852 #. type: textblock
9853 #: ../fish/guestfish-actions.pod:2855
9854 msgid ""
9855 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9856 "block device."
9857 msgstr ""
9858
9859 #. type: textblock
9860 #: ../fish/guestfish-actions.pod:2858 ../fish/guestfish-actions.pod:2889 ../src/guestfs-actions.pod:4233 ../src/guestfs-actions.pod:4275
9861 msgid "This command also clears the LVM cache and performs a volume group scan."
9862 msgstr ""
9863
9864 #. type: =head2
9865 #: ../fish/guestfish-actions.pod:2861
9866 msgid "lvm-remove-all"
9867 msgstr ""
9868
9869 #. type: verbatim
9870 #: ../fish/guestfish-actions.pod:2863
9871 #, no-wrap
9872 msgid ""
9873 " lvm-remove-all\n"
9874 "\n"
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4245
9879 msgid ""
9880 "This command removes all LVM logical volumes, volume groups and physical "
9881 "volumes."
9882 msgstr ""
9883
9884 #. type: =head2
9885 #: ../fish/guestfish-actions.pod:2871
9886 msgid "lvm-set-filter"
9887 msgstr ""
9888
9889 #. type: verbatim
9890 #: ../fish/guestfish-actions.pod:2873
9891 #, no-wrap
9892 msgid ""
9893 " lvm-set-filter 'devices ...'\n"
9894 "\n"
9895 msgstr ""
9896
9897 #. type: textblock
9898 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
9899 msgid ""
9900 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9901 "block devices in the list C<devices>, and will ignore all other attached "
9902 "block devices."
9903 msgstr ""
9904
9905 #. type: textblock
9906 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4265
9907 msgid ""
9908 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9909 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9910 "there are two types of duplication possible: either cloned PVs/VGs which "
9911 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9912 "same name.  In normal operation you cannot create this situation, but you "
9913 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9914 "inside the LVM metadata."
9915 msgstr ""
9916
9917 #. type: textblock
9918 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4278
9919 msgid "You can filter whole block devices or individual partitions."
9920 msgstr ""
9921
9922 #. type: textblock
9923 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4280
9924 msgid ""
9925 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9926 "filesystem), even if you are not filtering out that VG."
9927 msgstr ""
9928
9929 #. type: =head2
9930 #: ../fish/guestfish-actions.pod:2898
9931 msgid "lvremove"
9932 msgstr ""
9933
9934 #. type: verbatim
9935 #: ../fish/guestfish-actions.pod:2900
9936 #, no-wrap
9937 msgid ""
9938 " lvremove device\n"
9939 "\n"
9940 msgstr ""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:2902 ../src/guestfs-actions.pod:4294
9944 msgid ""
9945 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9946 "LV, such as C</dev/VG/LV>."
9947 msgstr ""
9948
9949 #. type: textblock
9950 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4297
9951 msgid ""
9952 "You can also remove all LVs in a volume group by specifying the VG name, "
9953 "C</dev/VG>."
9954 msgstr ""
9955
9956 #. type: =head2
9957 #: ../fish/guestfish-actions.pod:2908
9958 msgid "lvrename"
9959 msgstr ""
9960
9961 #. type: verbatim
9962 #: ../fish/guestfish-actions.pod:2910
9963 #, no-wrap
9964 msgid ""
9965 " lvrename logvol newlogvol\n"
9966 "\n"
9967 msgstr ""
9968
9969 #. type: textblock
9970 #: ../fish/guestfish-actions.pod:2912 ../src/guestfs-actions.pod:4311
9971 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9972 msgstr ""
9973
9974 #. type: =head2
9975 #: ../fish/guestfish-actions.pod:2914
9976 msgid "lvresize"
9977 msgstr ""
9978
9979 #. type: verbatim
9980 #: ../fish/guestfish-actions.pod:2916
9981 #, no-wrap
9982 msgid ""
9983 " lvresize device mbytes\n"
9984 "\n"
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:2918 ../src/guestfs-actions.pod:4324
9989 msgid ""
9990 "This resizes (expands or shrinks) an existing LVM logical volume to "
9991 "C<mbytes>.  When reducing, data in the reduced part is lost."
9992 msgstr ""
9993
9994 #. type: =head2
9995 #: ../fish/guestfish-actions.pod:2922
9996 msgid "lvresize-free"
9997 msgstr ""
9998
9999 #. type: verbatim
10000 #: ../fish/guestfish-actions.pod:2924
10001 #, no-wrap
10002 msgid ""
10003 " lvresize-free lv percent\n"
10004 "\n"
10005 msgstr ""
10006
10007 #. type: textblock
10008 #: ../fish/guestfish-actions.pod:2926 ../src/guestfs-actions.pod:4339
10009 msgid ""
10010 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10011 "remaining free space in the volume group.  Commonly you would call this with "
10012 "pc = 100 which expands the logical volume as much as possible, using all "
10013 "remaining free space in the volume group."
10014 msgstr ""
10015
10016 #. type: =head2
10017 #: ../fish/guestfish-actions.pod:2932
10018 msgid "lvs"
10019 msgstr ""
10020
10021 #. type: verbatim
10022 #: ../fish/guestfish-actions.pod:2934
10023 #, no-wrap
10024 msgid ""
10025 " lvs\n"
10026 "\n"
10027 msgstr ""
10028
10029 #. type: textblock
10030 #: ../fish/guestfish-actions.pod:2936 ../src/guestfs-actions.pod:4354
10031 msgid ""
10032 "List all the logical volumes detected.  This is the equivalent of the "
10033 "L<lvs(8)> command."
10034 msgstr ""
10035
10036 #. type: textblock
10037 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4357
10038 msgid ""
10039 "This returns a list of the logical volume device names "
10040 "(eg. C</dev/VolGroup00/LogVol00>)."
10041 msgstr ""
10042
10043 #. type: textblock
10044 #: ../fish/guestfish-actions.pod:2942
10045 msgid "See also L</lvs-full>, L</list-filesystems>."
10046 msgstr ""
10047
10048 #. type: =head2
10049 #: ../fish/guestfish-actions.pod:2944
10050 msgid "lvs-full"
10051 msgstr ""
10052
10053 #. type: verbatim
10054 #: ../fish/guestfish-actions.pod:2946
10055 #, no-wrap
10056 msgid ""
10057 " lvs-full\n"
10058 "\n"
10059 msgstr ""
10060
10061 #. type: textblock
10062 #: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4373
10063 msgid ""
10064 "List all the logical volumes detected.  This is the equivalent of the "
10065 "L<lvs(8)> command.  The \"full\" version includes all fields."
10066 msgstr ""
10067
10068 #. type: =head2
10069 #: ../fish/guestfish-actions.pod:2951
10070 msgid "lvuuid"
10071 msgstr ""
10072
10073 #. type: verbatim
10074 #: ../fish/guestfish-actions.pod:2953
10075 #, no-wrap
10076 msgid ""
10077 " lvuuid device\n"
10078 "\n"
10079 msgstr ""
10080
10081 #. type: textblock
10082 #: ../fish/guestfish-actions.pod:2955 ../src/guestfs-actions.pod:4388
10083 msgid "This command returns the UUID of the LVM LV C<device>."
10084 msgstr ""
10085
10086 #. type: =head2
10087 #: ../fish/guestfish-actions.pod:2957
10088 msgid "lxattrlist"
10089 msgstr ""
10090
10091 #. type: verbatim
10092 #: ../fish/guestfish-actions.pod:2959
10093 #, no-wrap
10094 msgid ""
10095 " lxattrlist path 'names ...'\n"
10096 "\n"
10097 msgstr ""
10098
10099 #. type: textblock
10100 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
10101 msgid ""
10102 "This call allows you to get the extended attributes of multiple files, where "
10103 "all files are in the directory C<path>.  C<names> is the list of files from "
10104 "this directory."
10105 msgstr ""
10106
10107 #. type: textblock
10108 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4406
10109 msgid ""
10110 "On return you get a flat list of xattr structs which must be interpreted "
10111 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
10112 "C<attrval> in this struct is zero-length to indicate there was an error "
10113 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
10114 "number (the number of following attributes for this file, which could be "
10115 "C<\"0\">).  Then after the first xattr struct are the zero or more "
10116 "attributes for the first named file.  This repeats for the second and "
10117 "subsequent files."
10118 msgstr ""
10119
10120 #. type: textblock
10121 #: ../fish/guestfish-actions.pod:2975
10122 msgid ""
10123 "This call is intended for programs that want to efficiently list a directory "
10124 "contents without making many round-trips.  See also L</lstatlist> for a "
10125 "similarly efficient call for getting standard stats.  Very long directory "
10126 "listings might cause the protocol message size to be exceeded, causing this "
10127 "call to fail.  The caller must split up such requests into smaller groups of "
10128 "names."
10129 msgstr ""
10130
10131 #. type: =head2
10132 #: ../fish/guestfish-actions.pod:2983
10133 msgid "mkdir"
10134 msgstr ""
10135
10136 #. type: verbatim
10137 #: ../fish/guestfish-actions.pod:2985
10138 #, no-wrap
10139 msgid ""
10140 " mkdir path\n"
10141 "\n"
10142 msgstr ""
10143
10144 #. type: textblock
10145 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4436
10146 msgid "Create a directory named C<path>."
10147 msgstr ""
10148
10149 #. type: =head2
10150 #: ../fish/guestfish-actions.pod:2989
10151 msgid "mkdir-mode"
10152 msgstr ""
10153
10154 #. type: verbatim
10155 #: ../fish/guestfish-actions.pod:2991
10156 #, no-wrap
10157 msgid ""
10158 " mkdir-mode path mode\n"
10159 "\n"
10160 msgstr ""
10161
10162 #. type: textblock
10163 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4449
10164 msgid ""
10165 "This command creates a directory, setting the initial permissions of the "
10166 "directory to C<mode>."
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4452
10171 msgid ""
10172 "For common Linux filesystems, the actual mode which is set will be C<mode & "
10173 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
10174 "other ways."
10175 msgstr ""
10176
10177 #. type: textblock
10178 #: ../fish/guestfish-actions.pod:3000
10179 msgid "See also L</mkdir>, L</umask>"
10180 msgstr ""
10181
10182 #. type: =head2
10183 #: ../fish/guestfish-actions.pod:3002
10184 msgid "mkdir-p"
10185 msgstr ""
10186
10187 #. type: verbatim
10188 #: ../fish/guestfish-actions.pod:3004
10189 #, no-wrap
10190 msgid ""
10191 " mkdir-p path\n"
10192 "\n"
10193 msgstr ""
10194
10195 #. type: textblock
10196 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4468
10197 msgid ""
10198 "Create a directory named C<path>, creating any parent directories as "
10199 "necessary.  This is like the C<mkdir -p> shell command."
10200 msgstr ""
10201
10202 #. type: =head2
10203 #: ../fish/guestfish-actions.pod:3009
10204 msgid "mkdtemp"
10205 msgstr ""
10206
10207 #. type: verbatim
10208 #: ../fish/guestfish-actions.pod:3011
10209 #, no-wrap
10210 msgid ""
10211 " mkdtemp template\n"
10212 "\n"
10213 msgstr ""
10214
10215 #. type: textblock
10216 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4481
10217 msgid ""
10218 "This command creates a temporary directory.  The C<template> parameter "
10219 "should be a full pathname for the temporary directory name with the final "
10220 "six characters being \"XXXXXX\"."
10221 msgstr ""
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:3018 ../src/guestfs-actions.pod:4486
10225 msgid ""
10226 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10227 "being suitable for Windows filesystems."
10228 msgstr ""
10229
10230 #. type: textblock
10231 #: ../fish/guestfish-actions.pod:3021 ../src/guestfs-actions.pod:4489
10232 msgid "The name of the temporary directory that was created is returned."
10233 msgstr ""
10234
10235 #. type: textblock
10236 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4492
10237 msgid "The temporary directory is created with mode 0700 and is owned by root."
10238 msgstr ""
10239
10240 #. type: textblock
10241 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4495
10242 msgid ""
10243 "The caller is responsible for deleting the temporary directory and its "
10244 "contents after use."
10245 msgstr ""
10246
10247 #. type: textblock
10248 #: ../fish/guestfish-actions.pod:3030 ../src/guestfs-actions.pod:4498
10249 msgid "See also: L<mkdtemp(3)>"
10250 msgstr ""
10251
10252 #. type: =head2
10253 #: ../fish/guestfish-actions.pod:3032
10254 msgid "mke2fs-J"
10255 msgstr ""
10256
10257 #. type: verbatim
10258 #: ../fish/guestfish-actions.pod:3034
10259 #, no-wrap
10260 msgid ""
10261 " mke2fs-J fstype blocksize device journal\n"
10262 "\n"
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
10267 msgid ""
10268 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10269 "C<journal>.  It is equivalent to the command:"
10270 msgstr ""
10271
10272 #. type: verbatim
10273 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4518
10274 #, no-wrap
10275 msgid ""
10276 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10277 "\n"
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:3042
10282 msgid "See also L</mke2journal>."
10283 msgstr ""
10284
10285 #. type: =head2
10286 #: ../fish/guestfish-actions.pod:3044
10287 msgid "mke2fs-JL"
10288 msgstr ""
10289
10290 #. type: verbatim
10291 #: ../fish/guestfish-actions.pod:3046
10292 #, no-wrap
10293 msgid ""
10294 " mke2fs-JL fstype blocksize device label\n"
10295 "\n"
10296 msgstr ""
10297
10298 #. type: textblock
10299 #: ../fish/guestfish-actions.pod:3048 ../src/guestfs-actions.pod:4535
10300 msgid ""
10301 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10302 "the journal labeled C<label>."
10303 msgstr ""
10304
10305 #. type: textblock
10306 #: ../fish/guestfish-actions.pod:3051
10307 msgid "See also L</mke2journal-L>."
10308 msgstr ""
10309
10310 #. type: =head2
10311 #: ../fish/guestfish-actions.pod:3053
10312 msgid "mke2fs-JU"
10313 msgstr ""
10314
10315 #. type: verbatim
10316 #: ../fish/guestfish-actions.pod:3055
10317 #, no-wrap
10318 msgid ""
10319 " mke2fs-JU fstype blocksize device uuid\n"
10320 "\n"
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4553
10325 msgid ""
10326 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10327 "the journal with UUID C<uuid>."
10328 msgstr ""
10329
10330 #. type: textblock
10331 #: ../fish/guestfish-actions.pod:3060
10332 msgid "See also L</mke2journal-U>."
10333 msgstr ""
10334
10335 #. type: =head2
10336 #: ../fish/guestfish-actions.pod:3062
10337 msgid "mke2journal"
10338 msgstr ""
10339
10340 #. type: verbatim
10341 #: ../fish/guestfish-actions.pod:3064
10342 #, no-wrap
10343 msgid ""
10344 " mke2journal blocksize device\n"
10345 "\n"
10346 msgstr ""
10347
10348 #. type: textblock
10349 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4569
10350 msgid ""
10351 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10352 "command:"
10353 msgstr ""
10354
10355 #. type: verbatim
10356 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4572
10357 #, no-wrap
10358 msgid ""
10359 " mke2fs -O journal_dev -b blocksize device\n"
10360 "\n"
10361 msgstr ""
10362
10363 #. type: =head2
10364 #: ../fish/guestfish-actions.pod:3071
10365 msgid "mke2journal-L"
10366 msgstr ""
10367
10368 #. type: verbatim
10369 #: ../fish/guestfish-actions.pod:3073
10370 #, no-wrap
10371 msgid ""
10372 " mke2journal-L blocksize label device\n"
10373 "\n"
10374 msgstr ""
10375
10376 #. type: textblock
10377 #: ../fish/guestfish-actions.pod:3075 ../src/guestfs-actions.pod:4586
10378 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10379 msgstr ""
10380
10381 #. type: =head2
10382 #: ../fish/guestfish-actions.pod:3077
10383 msgid "mke2journal-U"
10384 msgstr ""
10385
10386 #. type: verbatim
10387 #: ../fish/guestfish-actions.pod:3079
10388 #, no-wrap
10389 msgid ""
10390 " mke2journal-U blocksize uuid device\n"
10391 "\n"
10392 msgstr ""
10393
10394 #. type: textblock
10395 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4600
10396 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10397 msgstr ""
10398
10399 #. type: =head2
10400 #: ../fish/guestfish-actions.pod:3083
10401 msgid "mkfifo"
10402 msgstr ""
10403
10404 #. type: verbatim
10405 #: ../fish/guestfish-actions.pod:3085
10406 #, no-wrap
10407 msgid ""
10408 " mkfifo mode path\n"
10409 "\n"
10410 msgstr ""
10411
10412 #. type: textblock
10413 #: ../fish/guestfish-actions.pod:3087
10414 msgid ""
10415 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10416 "is just a convenient wrapper around L</mknod>."
10417 msgstr ""
10418
10419 #. type: =head2
10420 #: ../fish/guestfish-actions.pod:3093
10421 msgid "mkfs"
10422 msgstr ""
10423
10424 #. type: verbatim
10425 #: ../fish/guestfish-actions.pod:3095
10426 #, no-wrap
10427 msgid ""
10428 " mkfs fstype device\n"
10429 "\n"
10430 msgstr ""
10431
10432 #. type: textblock
10433 #: ../fish/guestfish-actions.pod:3097 ../src/guestfs-actions.pod:4630
10434 msgid ""
10435 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10436 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10437 msgstr ""
10438
10439 #. type: =head2
10440 #: ../fish/guestfish-actions.pod:3101
10441 msgid "mkfs-b"
10442 msgstr ""
10443
10444 #. type: verbatim
10445 #: ../fish/guestfish-actions.pod:3103
10446 #, no-wrap
10447 msgid ""
10448 " mkfs-b fstype blocksize device\n"
10449 "\n"
10450 msgstr ""
10451
10452 #. type: textblock
10453 #: ../fish/guestfish-actions.pod:3105
10454 msgid ""
10455 "This call is similar to L</mkfs>, but it allows you to control the block "
10456 "size of the resulting filesystem.  Supported block sizes depend on the "
10457 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10458 msgstr ""
10459
10460 #. type: textblock
10461 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3137 ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4696
10462 msgid ""
10463 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10464 "cluster size."
10465 msgstr ""
10466
10467 #. type: textblock
10468 #: ../fish/guestfish-actions.pod:3113
10469 msgid ""
10470 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10471 "instead."
10472 msgstr ""
10473
10474 #. type: =head2
10475 #: ../fish/guestfish-actions.pod:3120
10476 msgid "mkfs-opts"
10477 msgstr ""
10478
10479 #. type: verbatim
10480 #: ../fish/guestfish-actions.pod:3122
10481 #, no-wrap
10482 msgid ""
10483 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10484 "[sectorsize:..]\n"
10485 "\n"
10486 msgstr ""
10487
10488 #. type: textblock
10489 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10490 msgid ""
10491 "This function creates a filesystem on C<device>.  The filesystem type is "
10492 "C<fstype>, for example C<ext3>."
10493 msgstr ""
10494
10495 #. type: =item
10496 #: ../fish/guestfish-actions.pod:3131 ../src/guestfs-actions.pod:4690
10497 msgid "C<blocksize>"
10498 msgstr ""
10499
10500 #. type: textblock
10501 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4692
10502 msgid ""
10503 "The filesystem block size.  Supported block sizes depend on the filesystem "
10504 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10505 "filesystems."
10506 msgstr ""
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
10510 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10511 msgstr ""
10512
10513 #. type: =item
10514 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
10515 msgid "C<features>"
10516 msgstr ""
10517
10518 #. type: textblock
10519 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4703
10520 msgid "This passes the I<-O> parameter to the external mkfs program."
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
10525 msgid ""
10526 "For certain filesystem types, this allows extra filesystem features to be "
10527 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10528 msgstr ""
10529
10530 #. type: textblock
10531 #: ../fish/guestfish-actions.pod:3150 ../src/guestfs-actions.pod:4709
10532 msgid ""
10533 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10534 "type."
10535 msgstr ""
10536
10537 #. type: =item
10538 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4712
10539 msgid "C<inode>"
10540 msgstr ""
10541
10542 #. type: textblock
10543 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4714
10544 msgid ""
10545 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10546 "sets the inode size (only for ext2/3/4 filesystems at present)."
10547 msgstr ""
10548
10549 #. type: =item
10550 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4717
10551 msgid "C<sectorsize>"
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:3160 ../src/guestfs-actions.pod:4719
10556 msgid ""
10557 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10558 "sets sector size for ufs filesystem."
10559 msgstr ""
10560
10561 #. type: =head2
10562 #: ../fish/guestfish-actions.pod:3167
10563 msgid "mkmountpoint"
10564 msgstr ""
10565
10566 #. type: verbatim
10567 #: ../fish/guestfish-actions.pod:3169
10568 #, no-wrap
10569 msgid ""
10570 " mkmountpoint exemptpath\n"
10571 "\n"
10572 msgstr ""
10573
10574 #. type: textblock
10575 #: ../fish/guestfish-actions.pod:3171
10576 msgid ""
10577 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10578 "to create extra mountpoints before mounting the first filesystem."
10579 msgstr ""
10580
10581 #. type: textblock
10582 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
10583 msgid ""
10584 "These calls are I<only> necessary in some very limited circumstances, mainly "
10585 "the case where you want to mount a mix of unrelated and/or read-only "
10586 "filesystems together."
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4766
10591 msgid ""
10592 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10593 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10594 "inside that.  You can unpack this as follows in guestfish:"
10595 msgstr ""
10596
10597 #. type: verbatim
10598 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4771
10599 #, no-wrap
10600 msgid ""
10601 " add-ro Fedora-11-i686-Live.iso\n"
10602 " run\n"
10603 " mkmountpoint /cd\n"
10604 " mkmountpoint /sqsh\n"
10605 " mkmountpoint /ext3fs\n"
10606 " mount /dev/sda /cd\n"
10607 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10608 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10609 "\n"
10610 msgstr ""
10611
10612 #. type: textblock
10613 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4780
10614 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:3195
10619 msgid ""
10620 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10621 "unexpected errors if you try to mix these calls.  It is safest to manually "
10622 "unmount filesystems and remove mountpoints after use."
10623 msgstr ""
10624
10625 #. type: textblock
10626 #: ../fish/guestfish-actions.pod:3199
10627 msgid ""
10628 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10629 "for this to work for manual mountpoints, you must ensure that the innermost "
10630 "mountpoints have the longest pathnames, as in the example code above."
10631 msgstr ""
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4791
10635 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:3206
10640 msgid ""
10641 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10642 "L</umount-all> to be called when the handle is closed which can also trigger "
10643 "these issues."
10644 msgstr ""
10645
10646 #. type: =head2
10647 #: ../fish/guestfish-actions.pod:3210
10648 msgid "mknod"
10649 msgstr ""
10650
10651 #. type: verbatim
10652 #: ../fish/guestfish-actions.pod:3212
10653 #, no-wrap
10654 msgid ""
10655 " mknod mode devmajor devminor path\n"
10656 "\n"
10657 msgstr ""
10658
10659 #. type: textblock
10660 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4810
10661 msgid ""
10662 "This call creates block or character special devices, or named pipes "
10663 "(FIFOs)."
10664 msgstr ""
10665
10666 #. type: textblock
10667 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4813
10668 msgid ""
10669 "The C<mode> parameter should be the mode, using the standard constants.  "
10670 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10671 "used when creating block and character special devices."
10672 msgstr ""
10673
10674 #. type: textblock
10675 #: ../fish/guestfish-actions.pod:3222
10676 msgid ""
10677 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10678 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10679 "regular file).  These constants are available in the standard Linux header "
10680 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10681 "wrappers around this command which bitwise OR in the appropriate constant "
10682 "for you."
10683 msgstr ""
10684
10685 #. type: =head2
10686 #: ../fish/guestfish-actions.pod:3232
10687 msgid "mknod-b"
10688 msgstr ""
10689
10690 #. type: verbatim
10691 #: ../fish/guestfish-actions.pod:3234
10692 #, no-wrap
10693 msgid ""
10694 " mknod-b mode devmajor devminor path\n"
10695 "\n"
10696 msgstr ""
10697
10698 #. type: textblock
10699 #: ../fish/guestfish-actions.pod:3236
10700 msgid ""
10701 "This call creates a block device node called C<path> with mode C<mode> and "
10702 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10703 "wrapper around L</mknod>."
10704 msgstr ""
10705
10706 #. type: =head2
10707 #: ../fish/guestfish-actions.pod:3242
10708 msgid "mknod-c"
10709 msgstr ""
10710
10711 #. type: verbatim
10712 #: ../fish/guestfish-actions.pod:3244
10713 #, no-wrap
10714 msgid ""
10715 " mknod-c mode devmajor devminor path\n"
10716 "\n"
10717 msgstr ""
10718
10719 #. type: textblock
10720 #: ../fish/guestfish-actions.pod:3246
10721 msgid ""
10722 "This call creates a char device node called C<path> with mode C<mode> and "
10723 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10724 "wrapper around L</mknod>."
10725 msgstr ""
10726
10727 #. type: =head2
10728 #: ../fish/guestfish-actions.pod:3252
10729 msgid "mkswap"
10730 msgstr ""
10731
10732 #. type: verbatim
10733 #: ../fish/guestfish-actions.pod:3254
10734 #, no-wrap
10735 msgid ""
10736 " mkswap device\n"
10737 "\n"
10738 msgstr ""
10739
10740 #. type: textblock
10741 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4876
10742 msgid "Create a swap partition on C<device>."
10743 msgstr ""
10744
10745 #. type: =head2
10746 #: ../fish/guestfish-actions.pod:3258
10747 msgid "mkswap-L"
10748 msgstr ""
10749
10750 #. type: verbatim
10751 #: ../fish/guestfish-actions.pod:3260
10752 #, no-wrap
10753 msgid ""
10754 " mkswap-L label device\n"
10755 "\n"
10756 msgstr ""
10757
10758 #. type: textblock
10759 #: ../fish/guestfish-actions.pod:3262 ../src/guestfs-actions.pod:4889
10760 msgid "Create a swap partition on C<device> with label C<label>."
10761 msgstr ""
10762
10763 #. type: textblock
10764 #: ../fish/guestfish-actions.pod:3264 ../src/guestfs-actions.pod:4891
10765 msgid ""
10766 "Note that you cannot attach a swap label to a block device "
10767 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10768 "the kernel or swap tools."
10769 msgstr ""
10770
10771 #. type: =head2
10772 #: ../fish/guestfish-actions.pod:3268
10773 msgid "mkswap-U"
10774 msgstr ""
10775
10776 #. type: verbatim
10777 #: ../fish/guestfish-actions.pod:3270
10778 #, no-wrap
10779 msgid ""
10780 " mkswap-U uuid device\n"
10781 "\n"
10782 msgstr ""
10783
10784 #. type: textblock
10785 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:4906
10786 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:3274
10791 msgid "mkswap-file"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:3276
10796 #, no-wrap
10797 msgid ""
10798 " mkswap-file path\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:4918
10804 msgid "Create a swap file."
10805 msgstr ""
10806
10807 #. type: textblock
10808 #: ../fish/guestfish-actions.pod:3280
10809 msgid ""
10810 "This command just writes a swap file signature to an existing file.  To "
10811 "create the file itself, use something like L</fallocate>."
10812 msgstr ""
10813
10814 #. type: =head2
10815 #: ../fish/guestfish-actions.pod:3283
10816 msgid "modprobe"
10817 msgstr ""
10818
10819 #. type: verbatim
10820 #: ../fish/guestfish-actions.pod:3285
10821 #, no-wrap
10822 msgid ""
10823 " modprobe modulename\n"
10824 "\n"
10825 msgstr ""
10826
10827 #. type: textblock
10828 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:4933
10829 msgid "This loads a kernel module in the appliance."
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:4935
10834 msgid ""
10835 "The kernel module must have been whitelisted when libguestfs was built (see "
10836 "C<appliance/kmod.whitelist.in> in the source)."
10837 msgstr ""
10838
10839 #. type: =head2
10840 #: ../fish/guestfish-actions.pod:3292
10841 msgid "mount"
10842 msgstr ""
10843
10844 #. type: verbatim
10845 #: ../fish/guestfish-actions.pod:3294
10846 #, no-wrap
10847 msgid ""
10848 " mount device mountpoint\n"
10849 "\n"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:3296 ../src/guestfs-actions.pod:4956
10854 msgid ""
10855 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10856 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10857 "those block devices contain partitions, they will have the usual names "
10858 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10859 msgstr ""
10860
10861 #. type: textblock
10862 #: ../fish/guestfish-actions.pod:3302 ../src/guestfs-actions.pod:4962
10863 msgid ""
10864 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10865 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10866 "mounted on directories which already exist."
10867 msgstr ""
10868
10869 #. type: textblock
10870 #: ../fish/guestfish-actions.pod:3307 ../src/guestfs-actions.pod:4967
10871 msgid ""
10872 "The mounted filesystem is writable, if we have sufficient permissions on the "
10873 "underlying device."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3310
10878 msgid ""
10879 "B<Important note:> When you use this call, the filesystem options C<sync> "
10880 "and C<noatime> are set implicitly.  This was originally done because we "
10881 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10882 "very large negative performance impact and negligible effect on "
10883 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
10884 "code that needs performance, and instead use L</mount-options> (use an empty "
10885 "string for the first parameter if you don't want any options)."
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:3320
10890 msgid ""
10891 "I<This function is deprecated.> In new code, use the L</mount_options> call "
10892 "instead."
10893 msgstr ""
10894
10895 #. type: =head2
10896 #: ../fish/guestfish-actions.pod:3327
10897 msgid "mount-9p"
10898 msgstr ""
10899
10900 #. type: verbatim
10901 #: ../fish/guestfish-actions.pod:3329
10902 #, no-wrap
10903 msgid ""
10904 " mount-9p mounttag mountpoint [options:..]\n"
10905 "\n"
10906 msgstr ""
10907
10908 #. type: textblock
10909 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:4999
10910 msgid ""
10911 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10912 "C<mountpoint>."
10913 msgstr ""
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5002
10917 msgid ""
10918 "If required, C<trans=virtio> will be automatically added to the options.  "
10919 "Any other options required can be passed in the optional C<options> "
10920 "parameter."
10921 msgstr ""
10922
10923 #. type: =head2
10924 #: ../fish/guestfish-actions.pod:3340
10925 msgid "mount-loop"
10926 msgstr ""
10927
10928 #. type: verbatim
10929 #: ../fish/guestfish-actions.pod:3342
10930 #, no-wrap
10931 msgid ""
10932 " mount-loop file mountpoint\n"
10933 "\n"
10934 msgstr ""
10935
10936 #. type: textblock
10937 #: ../fish/guestfish-actions.pod:3344 ../src/guestfs-actions.pod:5041
10938 msgid ""
10939 "This command lets you mount C<file> (a filesystem image in a file) on a "
10940 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10941 "mountpoint>."
10942 msgstr ""
10943
10944 #. type: =head2
10945 #: ../fish/guestfish-actions.pod:3348
10946 msgid "mount-options"
10947 msgstr ""
10948
10949 #. type: verbatim
10950 #: ../fish/guestfish-actions.pod:3350
10951 #, no-wrap
10952 msgid ""
10953 " mount-options options device mountpoint\n"
10954 "\n"
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:3352
10959 msgid ""
10960 "This is the same as the L</mount> command, but it allows you to set the "
10961 "mount options as for the L<mount(8)> I<-o> flag."
10962 msgstr ""
10963
10964 #. type: textblock
10965 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5061
10966 msgid ""
10967 "If the C<options> parameter is an empty string, then no options are passed "
10968 "(all options default to whatever the filesystem uses)."
10969 msgstr ""
10970
10971 #. type: =head2
10972 #: ../fish/guestfish-actions.pod:3360
10973 msgid "mount-ro"
10974 msgstr ""
10975
10976 #. type: verbatim
10977 #: ../fish/guestfish-actions.pod:3362
10978 #, no-wrap
10979 msgid ""
10980 " mount-ro device mountpoint\n"
10981 "\n"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:3364
10986 msgid ""
10987 "This is the same as the L</mount> command, but it mounts the filesystem with "
10988 "the read-only (I<-o ro>) flag."
10989 msgstr ""
10990
10991 #. type: =head2
10992 #: ../fish/guestfish-actions.pod:3367
10993 msgid "mount-vfs"
10994 msgstr ""
10995
10996 #. type: verbatim
10997 #: ../fish/guestfish-actions.pod:3369
10998 #, no-wrap
10999 msgid ""
11000 " mount-vfs options vfstype device mountpoint\n"
11001 "\n"
11002 msgstr ""
11003
11004 #. type: textblock
11005 #: ../fish/guestfish-actions.pod:3371
11006 msgid ""
11007 "This is the same as the L</mount> command, but it allows you to set both the "
11008 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11009 msgstr ""
11010
11011 #. type: =head2
11012 #: ../fish/guestfish-actions.pod:3375
11013 msgid "mountpoints"
11014 msgstr ""
11015
11016 #. type: verbatim
11017 #: ../fish/guestfish-actions.pod:3377
11018 #, no-wrap
11019 msgid ""
11020 " mountpoints\n"
11021 "\n"
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:3379
11026 msgid ""
11027 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11028 "This one returns a hash table (map) of device name to directory where the "
11029 "device is mounted."
11030 msgstr ""
11031
11032 #. type: =head2
11033 #: ../fish/guestfish-actions.pod:3383
11034 msgid "mounts"
11035 msgstr ""
11036
11037 #. type: verbatim
11038 #: ../fish/guestfish-actions.pod:3385
11039 #, no-wrap
11040 msgid ""
11041 " mounts\n"
11042 "\n"
11043 msgstr ""
11044
11045 #. type: textblock
11046 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5122
11047 msgid ""
11048 "This returns the list of currently mounted filesystems.  It returns the list "
11049 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
11050 msgstr ""
11051
11052 #. type: textblock
11053 #: ../fish/guestfish-actions.pod:3390 ../src/guestfs-actions.pod:5125
11054 msgid "Some internal mounts are not shown."
11055 msgstr ""
11056
11057 #. type: textblock
11058 #: ../fish/guestfish-actions.pod:3392
11059 msgid "See also: L</mountpoints>"
11060 msgstr ""
11061
11062 #. type: =head2
11063 #: ../fish/guestfish-actions.pod:3394
11064 msgid "mv"
11065 msgstr ""
11066
11067 #. type: verbatim
11068 #: ../fish/guestfish-actions.pod:3396
11069 #, no-wrap
11070 msgid ""
11071 " mv src dest\n"
11072 "\n"
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5142
11077 msgid ""
11078 "This moves a file from C<src> to C<dest> where C<dest> is either a "
11079 "destination filename or destination directory."
11080 msgstr ""
11081
11082 #. type: =head2
11083 #: ../fish/guestfish-actions.pod:3401
11084 msgid "ntfs-3g-probe"
11085 msgstr ""
11086
11087 #. type: verbatim
11088 #: ../fish/guestfish-actions.pod:3403
11089 #, no-wrap
11090 msgid ""
11091 " ntfs-3g-probe true|false device\n"
11092 "\n"
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
11097 msgid ""
11098 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
11099 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
11100 "read-write, and some cannot be mounted at all)."
11101 msgstr ""
11102
11103 #. type: textblock
11104 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
11105 msgid ""
11106 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
11107 "can be mounted read-write.  Set it to false if you want to test if the "
11108 "volume can be mounted read-only."
11109 msgstr ""
11110
11111 #. type: textblock
11112 #: ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5164
11113 msgid ""
11114 "The return value is an integer which C<0> if the operation would succeed, or "
11115 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
11116 msgstr ""
11117
11118 #. type: =head2
11119 #: ../fish/guestfish-actions.pod:3417
11120 msgid "ntfsresize"
11121 msgstr ""
11122
11123 #. type: verbatim
11124 #: ../fish/guestfish-actions.pod:3419
11125 #, no-wrap
11126 msgid ""
11127 " ntfsresize device\n"
11128 "\n"
11129 msgstr ""
11130
11131 #. type: textblock
11132 #: ../fish/guestfish-actions.pod:3421 ../fish/guestfish-actions.pod:3445 ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5217
11133 msgid ""
11134 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
11135 "size of the underlying device."
11136 msgstr ""
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5188
11140 msgid ""
11141 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
11142 "consistency check (for safety).  You have to boot into Windows to perform "
11143 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
11144 "resize filesystems which have been marked in this way.  So in effect it is "
11145 "not possible to call ntfsresize multiple times on a single filesystem "
11146 "without booting into Windows between each resize."
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:3432 ../fish/guestfish-actions.pod:3471 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5243
11151 msgid "See also L<ntfsresize(8)>."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:3434 ../fish/guestfish-actions.pod:3482
11156 msgid ""
11157 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
11158 "call instead."
11159 msgstr ""
11160
11161 #. type: =head2
11162 #: ../fish/guestfish-actions.pod:3441
11163 msgid "ntfsresize-opts"
11164 msgstr ""
11165
11166 #. type: verbatim
11167 #: ../fish/guestfish-actions.pod:3443
11168 #, no-wrap
11169 msgid ""
11170 " ntfsresize-opts device [size:..] [force:..]\n"
11171 "\n"
11172 msgstr ""
11173
11174 #. type: textblock
11175 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5226
11176 msgid ""
11177 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
11178 "resized to fit the container (eg. partition)."
11179 msgstr ""
11180
11181 #. type: =item
11182 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5229
11183 msgid "C<force>"
11184 msgstr ""
11185
11186 #. type: textblock
11187 #: ../fish/guestfish-actions.pod:3459 ../src/guestfs-actions.pod:5231
11188 msgid ""
11189 "If this option is true, then force the resize of the filesystem even if the "
11190 "filesystem is marked as requiring a consistency check."
11191 msgstr ""
11192
11193 #. type: textblock
11194 #: ../fish/guestfish-actions.pod:3462
11195 msgid ""
11196 "After the resize operation, the filesystem is always marked as requiring a "
11197 "consistency check (for safety).  You have to boot into Windows to perform "
11198 "this check and clear this condition.  If you I<don't> set the C<force> "
11199 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
11200 "a single filesystem without booting into Windows between each resize."
11201 msgstr ""
11202
11203 #. type: =head2
11204 #: ../fish/guestfish-actions.pod:3475
11205 msgid "ntfsresize-size"
11206 msgstr ""
11207
11208 #. type: verbatim
11209 #: ../fish/guestfish-actions.pod:3477
11210 #, no-wrap
11211 msgid ""
11212 " ntfsresize-size device size\n"
11213 "\n"
11214 msgstr ""
11215
11216 #. type: textblock
11217 #: ../fish/guestfish-actions.pod:3479
11218 msgid ""
11219 "This command is the same as L</ntfsresize> except that it allows you to "
11220 "specify the new size (in bytes) explicitly."
11221 msgstr ""
11222
11223 #. type: =head2
11224 #: ../fish/guestfish-actions.pod:3489
11225 msgid "part-add"
11226 msgstr ""
11227
11228 #. type: verbatim
11229 #: ../fish/guestfish-actions.pod:3491
11230 #, no-wrap
11231 msgid ""
11232 " part-add device prlogex startsect endsect\n"
11233 "\n"
11234 msgstr ""
11235
11236 #. type: textblock
11237 #: ../fish/guestfish-actions.pod:3493
11238 msgid ""
11239 "This command adds a partition to C<device>.  If there is no partition table "
11240 "on the device, call L</part-init> first."
11241 msgstr ""
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:5304
11245 msgid ""
11246 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11247 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11248 "C<logical>) and C<e> (or C<extended>) partition types."
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5309
11253 msgid ""
11254 "C<startsect> and C<endsect> are the start and end of the partition in "
11255 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11256 "from the end of the disk (C<-1> is the last sector)."
11257 msgstr ""
11258
11259 #. type: textblock
11260 #: ../fish/guestfish-actions.pod:3505
11261 msgid ""
11262 "Creating a partition which covers the whole disk is not so easy.  Use "
11263 "L</part-disk> to do that."
11264 msgstr ""
11265
11266 #. type: =head2
11267 #: ../fish/guestfish-actions.pod:3508
11268 msgid "part-del"
11269 msgstr ""
11270
11271 #. type: verbatim
11272 #: ../fish/guestfish-actions.pod:3510
11273 #, no-wrap
11274 msgid ""
11275 " part-del device partnum\n"
11276 "\n"
11277 msgstr ""
11278
11279 #. type: textblock
11280 #: ../fish/guestfish-actions.pod:3512 ../src/guestfs-actions.pod:5327
11281 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11282 msgstr ""
11283
11284 #. type: textblock
11285 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5329
11286 msgid ""
11287 "Note that in the case of MBR partitioning, deleting an extended partition "
11288 "also deletes any logical partitions it contains."
11289 msgstr ""
11290
11291 #. type: =head2
11292 #: ../fish/guestfish-actions.pod:3518
11293 msgid "part-disk"
11294 msgstr ""
11295
11296 #. type: verbatim
11297 #: ../fish/guestfish-actions.pod:3520
11298 #, no-wrap
11299 msgid ""
11300 " part-disk device parttype\n"
11301 "\n"
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:3522
11306 msgid ""
11307 "This command is simply a combination of L</part-init> followed by "
11308 "L</part-add> to create a single primary partition covering the whole disk."
11309 msgstr ""
11310
11311 #. type: textblock
11312 #: ../fish/guestfish-actions.pod:3526
11313 msgid ""
11314 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11315 "possible values are described in L</part-init>."
11316 msgstr ""
11317
11318 #. type: =head2
11319 #: ../fish/guestfish-actions.pod:3532
11320 msgid "part-get-bootable"
11321 msgstr ""
11322
11323 #. type: verbatim
11324 #: ../fish/guestfish-actions.pod:3534
11325 #, no-wrap
11326 msgid ""
11327 " part-get-bootable device partnum\n"
11328 "\n"
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../fish/guestfish-actions.pod:3536 ../src/guestfs-actions.pod:5365
11333 msgid ""
11334 "This command returns true if the partition C<partnum> on C<device> has the "
11335 "bootable flag set."
11336 msgstr ""
11337
11338 #. type: textblock
11339 #: ../fish/guestfish-actions.pod:3539
11340 msgid "See also L</part-set-bootable>."
11341 msgstr ""
11342
11343 #. type: =head2
11344 #: ../fish/guestfish-actions.pod:3541
11345 msgid "part-get-mbr-id"
11346 msgstr ""
11347
11348 #. type: verbatim
11349 #: ../fish/guestfish-actions.pod:3543
11350 #, no-wrap
11351 msgid ""
11352 " part-get-mbr-id device partnum\n"
11353 "\n"
11354 msgstr ""
11355
11356 #. type: textblock
11357 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5381
11358 msgid ""
11359 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11360 "partition C<partnum>."
11361 msgstr ""
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:3548 ../fish/guestfish-actions.pod:3692
11365 msgid ""
11366 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11367 "undefined results for other partition table types (see "
11368 "L</part-get-parttype>)."
11369 msgstr ""
11370
11371 #. type: =head2
11372 #: ../fish/guestfish-actions.pod:3552
11373 msgid "part-get-parttype"
11374 msgstr ""
11375
11376 #. type: verbatim
11377 #: ../fish/guestfish-actions.pod:3554
11378 #, no-wrap
11379 msgid ""
11380 " part-get-parttype device\n"
11381 "\n"
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5398
11386 msgid ""
11387 "This command examines the partition table on C<device> and returns the "
11388 "partition table type (format) being used."
11389 msgstr ""
11390
11391 #. type: textblock
11392 #: ../fish/guestfish-actions.pod:3559
11393 msgid ""
11394 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11395 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11396 "possible, although unusual.  See L</part-init> for a full list."
11397 msgstr ""
11398
11399 #. type: =head2
11400 #: ../fish/guestfish-actions.pod:3564
11401 msgid "part-init"
11402 msgstr ""
11403
11404 #. type: verbatim
11405 #: ../fish/guestfish-actions.pod:3566
11406 #, no-wrap
11407 msgid ""
11408 " part-init device parttype\n"
11409 "\n"
11410 msgstr ""
11411
11412 #. type: textblock
11413 #: ../fish/guestfish-actions.pod:3568 ../src/guestfs-actions.pod:5418
11414 msgid ""
11415 "This creates an empty partition table on C<device> of one of the partition "
11416 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11417 "(for large disks)."
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:3572
11422 msgid ""
11423 "Initially there are no partitions.  Following this, you should call "
11424 "L</part-add> for each partition required."
11425 msgstr ""
11426
11427 #. type: textblock
11428 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
11429 msgid "Possible values for C<parttype> are:"
11430 msgstr ""
11431
11432 #. type: =item
11433 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11434 msgid "B<efi>"
11435 msgstr ""
11436
11437 #. type: =item
11438 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11439 msgid "B<gpt>"
11440 msgstr ""
11441
11442 #. type: textblock
11443 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11444 msgid "Intel EFI / GPT partition table."
11445 msgstr ""
11446
11447 #. type: textblock
11448 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11449 msgid ""
11450 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11451 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11452 "the C<mbr> format."
11453 msgstr ""
11454
11455 #. type: =item
11456 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11457 msgid "B<mbr>"
11458 msgstr ""
11459
11460 #. type: =item
11461 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11462 msgid "B<msdos>"
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11467 msgid ""
11468 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11469 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11470 "TB.  For large disks we recommend using C<gpt>."
11471 msgstr ""
11472
11473 #. type: textblock
11474 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
11475 msgid "Other partition table types that may work but are not supported include:"
11476 msgstr ""
11477
11478 #. type: =item
11479 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11480 msgid "B<aix>"
11481 msgstr ""
11482
11483 #. type: textblock
11484 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11485 msgid "AIX disk labels."
11486 msgstr ""
11487
11488 #. type: =item
11489 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11490 msgid "B<amiga>"
11491 msgstr ""
11492
11493 #. type: =item
11494 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11495 msgid "B<rdb>"
11496 msgstr ""
11497
11498 #. type: textblock
11499 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
11500 msgid "Amiga \"Rigid Disk Block\" format."
11501 msgstr ""
11502
11503 #. type: =item
11504 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
11505 msgid "B<bsd>"
11506 msgstr ""
11507
11508 #. type: textblock
11509 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
11510 msgid "BSD disk labels."
11511 msgstr ""
11512
11513 #. type: =item
11514 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
11515 msgid "B<dasd>"
11516 msgstr ""
11517
11518 #. type: textblock
11519 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
11520 msgid "DASD, used on IBM mainframes."
11521 msgstr ""
11522
11523 #. type: =item
11524 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
11525 msgid "B<dvh>"
11526 msgstr ""
11527
11528 #. type: textblock
11529 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
11530 msgid "MIPS/SGI volumes."
11531 msgstr ""
11532
11533 #. type: =item
11534 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
11535 msgid "B<mac>"
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
11540 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11541 msgstr ""
11542
11543 #. type: =item
11544 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
11545 msgid "B<pc98>"
11546 msgstr ""
11547
11548 #. type: textblock
11549 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
11550 msgid "NEC PC-98 format, common in Japan apparently."
11551 msgstr ""
11552
11553 #. type: =item
11554 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5485
11555 msgid "B<sun>"
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5487
11560 msgid "Sun disk labels."
11561 msgstr ""
11562
11563 #. type: =head2
11564 #: ../fish/guestfish-actions.pod:3641
11565 msgid "part-list"
11566 msgstr ""
11567
11568 #. type: verbatim
11569 #: ../fish/guestfish-actions.pod:3643
11570 #, no-wrap
11571 msgid ""
11572 " part-list device\n"
11573 "\n"
11574 msgstr ""
11575
11576 #. type: textblock
11577 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5501
11578 msgid ""
11579 "This command parses the partition table on C<device> and returns the list of "
11580 "partitions found."
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
11585 msgid "The fields in the returned structure are:"
11586 msgstr ""
11587
11588 #. type: =item
11589 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
11590 msgid "B<part_num>"
11591 msgstr ""
11592
11593 #. type: textblock
11594 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5510
11595 msgid "Partition number, counting from 1."
11596 msgstr ""
11597
11598 #. type: =item
11599 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5512
11600 msgid "B<part_start>"
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:3658
11605 msgid ""
11606 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11607 "the device's sector size, see L</blockdev-getss>."
11608 msgstr ""
11609
11610 #. type: =item
11611 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
11612 msgid "B<part_end>"
11613 msgstr ""
11614
11615 #. type: textblock
11616 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
11617 msgid "End of the partition in bytes."
11618 msgstr ""
11619
11620 #. type: =item
11621 #: ../fish/guestfish-actions.pod:3665 ../src/guestfs-actions.pod:5521
11622 msgid "B<part_size>"
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:3667 ../src/guestfs-actions.pod:5523
11627 msgid "Size of the partition in bytes."
11628 msgstr ""
11629
11630 #. type: =head2
11631 #: ../fish/guestfish-actions.pod:3671
11632 msgid "part-set-bootable"
11633 msgstr ""
11634
11635 #. type: verbatim
11636 #: ../fish/guestfish-actions.pod:3673
11637 #, no-wrap
11638 msgid ""
11639 " part-set-bootable device partnum true|false\n"
11640 "\n"
11641 msgstr ""
11642
11643 #. type: textblock
11644 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5541
11645 msgid ""
11646 "This sets the bootable flag on partition numbered C<partnum> on device "
11647 "C<device>.  Note that partitions are numbered from 1."
11648 msgstr ""
11649
11650 #. type: textblock
11651 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5544
11652 msgid ""
11653 "The bootable flag is used by some operating systems (notably Windows) to "
11654 "determine which partition to boot from.  It is by no means universally "
11655 "recognized."
11656 msgstr ""
11657
11658 #. type: =head2
11659 #: ../fish/guestfish-actions.pod:3682
11660 msgid "part-set-mbr-id"
11661 msgstr ""
11662
11663 #. type: verbatim
11664 #: ../fish/guestfish-actions.pod:3684
11665 #, no-wrap
11666 msgid ""
11667 " part-set-mbr-id device partnum idbyte\n"
11668 "\n"
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5560
11673 msgid ""
11674 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11675 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11676 "documentation are in fact hexadecimal numbers, but usually documented "
11677 "without any leading \"0x\" which might be confusing."
11678 msgstr ""
11679
11680 #. type: =head2
11681 #: ../fish/guestfish-actions.pod:3696
11682 msgid "part-set-name"
11683 msgstr ""
11684
11685 #. type: verbatim
11686 #: ../fish/guestfish-actions.pod:3698
11687 #, no-wrap
11688 msgid ""
11689 " part-set-name device partnum name\n"
11690 "\n"
11691 msgstr ""
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5582
11695 msgid ""
11696 "This sets the partition name on partition numbered C<partnum> on device "
11697 "C<device>.  Note that partitions are numbered from 1."
11698 msgstr ""
11699
11700 #. type: textblock
11701 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5585
11702 msgid ""
11703 "The partition name can only be set on certain types of partition table.  "
11704 "This works on C<gpt> but not on C<mbr> partitions."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:3706
11709 msgid "part-to-dev"
11710 msgstr ""
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:3708
11714 #, no-wrap
11715 msgid ""
11716 " part-to-dev partition\n"
11717 "\n"
11718 msgstr ""
11719
11720 #. type: textblock
11721 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5598
11722 msgid ""
11723 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11724 "partition number, returning the device name (eg. \"/dev/sdb\")."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:3714
11729 msgid ""
11730 "The named partition must exist, for example as a string returned from "
11731 "L</list-partitions>."
11732 msgstr ""
11733
11734 #. type: =head2
11735 #: ../fish/guestfish-actions.pod:3717
11736 msgid "ping-daemon"
11737 msgstr ""
11738
11739 #. type: verbatim
11740 #: ../fish/guestfish-actions.pod:3719
11741 #, no-wrap
11742 msgid ""
11743 " ping-daemon\n"
11744 "\n"
11745 msgstr ""
11746
11747 #. type: textblock
11748 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5615
11749 msgid ""
11750 "This is a test probe into the guestfs daemon running inside the qemu "
11751 "subprocess.  Calling this function checks that the daemon responds to the "
11752 "ping message, without affecting the daemon or attached block device(s) in "
11753 "any other way."
11754 msgstr ""
11755
11756 #. type: =head2
11757 #: ../fish/guestfish-actions.pod:3726
11758 msgid "pread"
11759 msgstr ""
11760
11761 #. type: verbatim
11762 #: ../fish/guestfish-actions.pod:3728
11763 #, no-wrap
11764 msgid ""
11765 " pread path count offset\n"
11766 "\n"
11767 msgstr ""
11768
11769 #. type: textblock
11770 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5633
11771 msgid ""
11772 "This command lets you read part of a file.  It reads C<count> bytes of the "
11773 "file, starting at C<offset>, from file C<path>."
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:3733 ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:5662
11778 msgid ""
11779 "This may read fewer bytes than requested.  For further details see the "
11780 "L<pread(2)> system call."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3736
11785 msgid "See also L</pwrite>, L</pread-device>."
11786 msgstr ""
11787
11788 #. type: =head2
11789 #: ../fish/guestfish-actions.pod:3741
11790 msgid "pread-device"
11791 msgstr ""
11792
11793 #. type: verbatim
11794 #: ../fish/guestfish-actions.pod:3743
11795 #, no-wrap
11796 msgid ""
11797 " pread-device device count offset\n"
11798 "\n"
11799 msgstr ""
11800
11801 #. type: textblock
11802 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5659
11803 msgid ""
11804 "This command lets you read part of a file.  It reads C<count> bytes of "
11805 "C<device>, starting at C<offset>."
11806 msgstr ""
11807
11808 #. type: textblock
11809 #: ../fish/guestfish-actions.pod:3751
11810 msgid "See also L</pread>."
11811 msgstr ""
11812
11813 #. type: =head2
11814 #: ../fish/guestfish-actions.pod:3756
11815 msgid "pvcreate"
11816 msgstr ""
11817
11818 #. type: verbatim
11819 #: ../fish/guestfish-actions.pod:3758
11820 #, no-wrap
11821 msgid ""
11822 " pvcreate device\n"
11823 "\n"
11824 msgstr ""
11825
11826 #. type: textblock
11827 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5682
11828 msgid ""
11829 "This creates an LVM physical volume on the named C<device>, where C<device> "
11830 "should usually be a partition name such as C</dev/sda1>."
11831 msgstr ""
11832
11833 #. type: =head2
11834 #: ../fish/guestfish-actions.pod:3764
11835 msgid "pvremove"
11836 msgstr ""
11837
11838 #. type: verbatim
11839 #: ../fish/guestfish-actions.pod:3766
11840 #, no-wrap
11841 msgid ""
11842 " pvremove device\n"
11843 "\n"
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5696
11848 msgid ""
11849 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11850 "it."
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:3771 ../src/guestfs-actions.pod:5699
11855 msgid ""
11856 "The implementation uses the C<pvremove> command which refuses to wipe "
11857 "physical volumes that contain any volume groups, so you have to remove those "
11858 "first."
11859 msgstr ""
11860
11861 #. type: =head2
11862 #: ../fish/guestfish-actions.pod:3775
11863 msgid "pvresize"
11864 msgstr ""
11865
11866 #. type: verbatim
11867 #: ../fish/guestfish-actions.pod:3777
11868 #, no-wrap
11869 msgid ""
11870 " pvresize device\n"
11871 "\n"
11872 msgstr ""
11873
11874 #. type: textblock
11875 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5713
11876 msgid ""
11877 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11878 "the new size of the underlying device."
11879 msgstr ""
11880
11881 #. type: =head2
11882 #: ../fish/guestfish-actions.pod:3782
11883 msgid "pvresize-size"
11884 msgstr ""
11885
11886 #. type: verbatim
11887 #: ../fish/guestfish-actions.pod:3784
11888 #, no-wrap
11889 msgid ""
11890 " pvresize-size device size\n"
11891 "\n"
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:3786
11896 msgid ""
11897 "This command is the same as L</pvresize> except that it allows you to "
11898 "specify the new size (in bytes) explicitly."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../fish/guestfish-actions.pod:3789
11903 msgid "pvs"
11904 msgstr ""
11905
11906 #. type: verbatim
11907 #: ../fish/guestfish-actions.pod:3791
11908 #, no-wrap
11909 msgid ""
11910 " pvs\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5739
11916 msgid ""
11917 "List all the physical volumes detected.  This is the equivalent of the "
11918 "L<pvs(8)> command."
11919 msgstr ""
11920
11921 #. type: textblock
11922 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5742
11923 msgid ""
11924 "This returns a list of just the device names that contain PVs "
11925 "(eg. C</dev/sda2>)."
11926 msgstr ""
11927
11928 #. type: textblock
11929 #: ../fish/guestfish-actions.pod:3799
11930 msgid "See also L</pvs-full>."
11931 msgstr ""
11932
11933 #. type: =head2
11934 #: ../fish/guestfish-actions.pod:3801
11935 msgid "pvs-full"
11936 msgstr ""
11937
11938 #. type: verbatim
11939 #: ../fish/guestfish-actions.pod:3803
11940 #, no-wrap
11941 msgid ""
11942 " pvs-full\n"
11943 "\n"
11944 msgstr ""
11945
11946 #. type: textblock
11947 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5758
11948 msgid ""
11949 "List all the physical volumes detected.  This is the equivalent of the "
11950 "L<pvs(8)> command.  The \"full\" version includes all fields."
11951 msgstr ""
11952
11953 #. type: =head2
11954 #: ../fish/guestfish-actions.pod:3808
11955 msgid "pvuuid"
11956 msgstr ""
11957
11958 #. type: verbatim
11959 #: ../fish/guestfish-actions.pod:3810
11960 #, no-wrap
11961 msgid ""
11962 " pvuuid device\n"
11963 "\n"
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5773
11968 msgid "This command returns the UUID of the LVM PV C<device>."
11969 msgstr ""
11970
11971 #. type: =head2
11972 #: ../fish/guestfish-actions.pod:3814
11973 msgid "pwrite"
11974 msgstr ""
11975
11976 #. type: verbatim
11977 #: ../fish/guestfish-actions.pod:3816
11978 #, no-wrap
11979 msgid ""
11980 " pwrite path content offset\n"
11981 "\n"
11982 msgstr ""
11983
11984 #. type: textblock
11985 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5789
11986 msgid ""
11987 "This command writes to part of a file.  It writes the data buffer C<content> "
11988 "to the file C<path> starting at offset C<offset>."
11989 msgstr ""
11990
11991 #. type: textblock
11992 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5792
11993 msgid ""
11994 "This command implements the L<pwrite(2)> system call, and like that system "
11995 "call it may not write the full data requested.  The return value is the "
11996 "number of bytes that were actually written to the file.  This could even be "
11997 "0, although short writes are unlikely for regular files in ordinary "
11998 "circumstances."
11999 msgstr ""
12000
12001 #. type: textblock
12002 #: ../fish/guestfish-actions.pod:3827
12003 msgid "See also L</pread>, L</pwrite-device>."
12004 msgstr ""
12005
12006 #. type: =head2
12007 #: ../fish/guestfish-actions.pod:3832
12008 msgid "pwrite-device"
12009 msgstr ""
12010
12011 #. type: verbatim
12012 #: ../fish/guestfish-actions.pod:3834
12013 #, no-wrap
12014 msgid ""
12015 " pwrite-device device content offset\n"
12016 "\n"
12017 msgstr ""
12018
12019 #. type: textblock
12020 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5816
12021 msgid ""
12022 "This command writes to part of a device.  It writes the data buffer "
12023 "C<content> to C<device> starting at offset C<offset>."
12024 msgstr ""
12025
12026 #. type: textblock
12027 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5819
12028 msgid ""
12029 "This command implements the L<pwrite(2)> system call, and like that system "
12030 "call it may not write the full data requested (although short writes to disk "
12031 "devices and partitions are probably impossible with standard Linux kernels)."
12032 msgstr ""
12033
12034 #. type: textblock
12035 #: ../fish/guestfish-actions.pod:3844
12036 msgid "See also L</pwrite>."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../fish/guestfish-actions.pod:3849
12041 msgid "read-file"
12042 msgstr ""
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:3851
12046 #, no-wrap
12047 msgid ""
12048 " read-file path\n"
12049 "\n"
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5840
12054 msgid "This calls returns the contents of the file C<path> as a buffer."
12055 msgstr ""
12056
12057 #. type: textblock
12058 #: ../fish/guestfish-actions.pod:3856
12059 msgid ""
12060 "Unlike L</cat>, this function can correctly handle files that contain "
12061 "embedded ASCII NUL characters.  However unlike L</download>, this function "
12062 "is limited in the total size of file that can be handled."
12063 msgstr ""
12064
12065 #. type: =head2
12066 #: ../fish/guestfish-actions.pod:3864
12067 msgid "read-lines"
12068 msgstr ""
12069
12070 #. type: verbatim
12071 #: ../fish/guestfish-actions.pod:3866
12072 #, no-wrap
12073 msgid ""
12074 " read-lines path\n"
12075 "\n"
12076 msgstr ""
12077
12078 #. type: textblock
12079 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5865
12080 msgid ""
12081 "The file contents are returned as a list of lines.  Trailing C<LF> and "
12082 "C<CRLF> character sequences are I<not> returned."
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3873
12087 msgid ""
12088 "Note that this function cannot correctly handle binary files (specifically, "
12089 "files containing C<\\0> character which is treated as end of line).  For "
12090 "those you need to use the L</read-file> function which has a more complex "
12091 "interface."
12092 msgstr ""
12093
12094 #. type: =head2
12095 #: ../fish/guestfish-actions.pod:3878
12096 msgid "readdir"
12097 msgstr ""
12098
12099 #. type: verbatim
12100 #: ../fish/guestfish-actions.pod:3880
12101 #, no-wrap
12102 msgid ""
12103 " readdir dir\n"
12104 "\n"
12105 msgstr ""
12106
12107 #. type: textblock
12108 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
12109 msgid "This returns the list of directory entries in directory C<dir>."
12110 msgstr ""
12111
12112 #. type: textblock
12113 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
12114 msgid ""
12115 "All entries in the directory are returned, including C<.> and C<..>.  The "
12116 "entries are I<not> sorted, but returned in the same order as the underlying "
12117 "filesystem."
12118 msgstr ""
12119
12120 #. type: textblock
12121 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
12122 msgid ""
12123 "Also this call returns basic file type information about each file.  The "
12124 "C<ftyp> field will contain one of the following characters:"
12125 msgstr ""
12126
12127 #. type: =item
12128 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
12129 msgid "'b'"
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
12134 msgid "Block special"
12135 msgstr ""
12136
12137 #. type: =item
12138 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
12139 msgid "'c'"
12140 msgstr ""
12141
12142 #. type: textblock
12143 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
12144 msgid "Char special"
12145 msgstr ""
12146
12147 #. type: =item
12148 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
12149 msgid "'d'"
12150 msgstr ""
12151
12152 #. type: textblock
12153 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
12154 msgid "Directory"
12155 msgstr ""
12156
12157 #. type: =item
12158 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
12159 msgid "'f'"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
12164 msgid "FIFO (named pipe)"
12165 msgstr ""
12166
12167 #. type: =item
12168 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
12169 msgid "'l'"
12170 msgstr ""
12171
12172 #. type: textblock
12173 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
12174 msgid "Symbolic link"
12175 msgstr ""
12176
12177 #. type: =item
12178 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
12179 msgid "'r'"
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
12184 msgid "Regular file"
12185 msgstr ""
12186
12187 #. type: =item
12188 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
12189 msgid "'s'"
12190 msgstr ""
12191
12192 #. type: textblock
12193 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
12194 msgid "Socket"
12195 msgstr ""
12196
12197 #. type: =item
12198 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
12199 msgid "'u'"
12200 msgstr ""
12201
12202 #. type: textblock
12203 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
12204 msgid "Unknown file type"
12205 msgstr ""
12206
12207 #. type: =item
12208 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:5928
12209 msgid "'?'"
12210 msgstr ""
12211
12212 #. type: textblock
12213 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:5930
12214 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12215 msgstr ""
12216
12217 #. type: textblock
12218 #: ../fish/guestfish-actions.pod:3932
12219 msgid ""
12220 "This function is primarily intended for use by programs.  To get a simple "
12221 "list of names, use L</ls>.  To get a printable directory for human "
12222 "consumption, use L</ll>."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:3936
12227 msgid "readlink"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:3938
12232 #, no-wrap
12233 msgid ""
12234 " readlink path\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:5951
12240 msgid "This command reads the target of a symbolic link."
12241 msgstr ""
12242
12243 #. type: =head2
12244 #: ../fish/guestfish-actions.pod:3942
12245 msgid "readlinklist"
12246 msgstr ""
12247
12248 #. type: verbatim
12249 #: ../fish/guestfish-actions.pod:3944
12250 #, no-wrap
12251 msgid ""
12252 " readlinklist path 'names ...'\n"
12253 "\n"
12254 msgstr ""
12255
12256 #. type: textblock
12257 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
12258 msgid ""
12259 "This call allows you to do a C<readlink> operation on multiple files, where "
12260 "all files are in the directory C<path>.  C<names> is the list of files from "
12261 "this directory."
12262 msgstr ""
12263
12264 #. type: textblock
12265 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
12266 msgid ""
12267 "On return you get a list of strings, with a one-to-one correspondence to the "
12268 "C<names> list.  Each string is the value of the symbolic link."
12269 msgstr ""
12270
12271 #. type: textblock
12272 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:5973
12273 msgid ""
12274 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12275 "result string is the empty string C<\"\">.  However the whole operation is "
12276 "completed even if there were C<readlink(2)> errors, and so you can call this "
12277 "function with names where you don't know if they are symbolic links already "
12278 "(albeit slightly less efficient)."
12279 msgstr ""
12280
12281 #. type: textblock
12282 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:5980
12283 msgid ""
12284 "This call is intended for programs that want to efficiently list a directory "
12285 "contents without making many round-trips.  Very long directory listings "
12286 "might cause the protocol message size to be exceeded, causing this call to "
12287 "fail.  The caller must split up such requests into smaller groups of names."
12288 msgstr ""
12289
12290 #. type: =head2
12291 #: ../fish/guestfish-actions.pod:3968
12292 msgid "realpath"
12293 msgstr ""
12294
12295 #. type: verbatim
12296 #: ../fish/guestfish-actions.pod:3970
12297 #, no-wrap
12298 msgid ""
12299 " realpath path\n"
12300 "\n"
12301 msgstr ""
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:5999
12305 msgid ""
12306 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12307 "has no C<.>, C<..> or symbolic link path elements."
12308 msgstr ""
12309
12310 #. type: =head2
12311 #: ../fish/guestfish-actions.pod:3975
12312 msgid "removexattr"
12313 msgstr ""
12314
12315 #. type: verbatim
12316 #: ../fish/guestfish-actions.pod:3977
12317 #, no-wrap
12318 msgid ""
12319 " removexattr xattr path\n"
12320 "\n"
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:3979 ../src/guestfs-actions.pod:6014
12325 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12326 msgstr ""
12327
12328 #. type: textblock
12329 #: ../fish/guestfish-actions.pod:3982
12330 msgid "See also: L</lremovexattr>, L<attr(5)>."
12331 msgstr ""
12332
12333 #. type: =head2
12334 #: ../fish/guestfish-actions.pod:3984
12335 msgid "resize2fs"
12336 msgstr ""
12337
12338 #. type: verbatim
12339 #: ../fish/guestfish-actions.pod:3986
12340 #, no-wrap
12341 msgid ""
12342 " resize2fs device\n"
12343 "\n"
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:3988 ../src/guestfs-actions.pod:6029
12348 msgid ""
12349 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12350 "underlying device."
12351 msgstr ""
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3991
12355 msgid ""
12356 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12357 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12358 "gives an error about this and sometimes not.  In any case, it is always safe "
12359 "to call L</e2fsck-f> before calling this function."
12360 msgstr ""
12361
12362 #. type: =head2
12363 #: ../fish/guestfish-actions.pod:3997
12364 msgid "resize2fs-M"
12365 msgstr ""
12366
12367 #. type: verbatim
12368 #: ../fish/guestfish-actions.pod:3999
12369 #, no-wrap
12370 msgid ""
12371 " resize2fs-M device\n"
12372 "\n"
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:4001
12377 msgid ""
12378 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12379 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12380 "command."
12381 msgstr ""
12382
12383 #. type: textblock
12384 #: ../fish/guestfish-actions.pod:4005
12385 msgid ""
12386 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12387 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12388 "multiplied together, give the resulting size of the minimal filesystem in "
12389 "bytes."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:4010
12394 msgid "resize2fs-size"
12395 msgstr ""
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:4012
12399 #, no-wrap
12400 msgid ""
12401 " resize2fs-size device size\n"
12402 "\n"
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:4014
12407 msgid ""
12408 "This command is the same as L</resize2fs> except that it allows you to "
12409 "specify the new size (in bytes) explicitly."
12410 msgstr ""
12411
12412 #. type: =head2
12413 #: ../fish/guestfish-actions.pod:4017
12414 msgid "rm"
12415 msgstr ""
12416
12417 #. type: verbatim
12418 #: ../fish/guestfish-actions.pod:4019
12419 #, no-wrap
12420 msgid ""
12421 " rm path\n"
12422 "\n"
12423 msgstr ""
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6081
12427 msgid "Remove the single file C<path>."
12428 msgstr ""
12429
12430 #. type: =head2
12431 #: ../fish/guestfish-actions.pod:4023
12432 msgid "rm-rf"
12433 msgstr ""
12434
12435 #. type: verbatim
12436 #: ../fish/guestfish-actions.pod:4025
12437 #, no-wrap
12438 msgid ""
12439 " rm-rf path\n"
12440 "\n"
12441 msgstr ""
12442
12443 #. type: textblock
12444 #: ../fish/guestfish-actions.pod:4027 ../src/guestfs-actions.pod:6093
12445 msgid ""
12446 "Remove the file or directory C<path>, recursively removing the contents if "
12447 "its a directory.  This is like the C<rm -rf> shell command."
12448 msgstr ""
12449
12450 #. type: =head2
12451 #: ../fish/guestfish-actions.pod:4031
12452 msgid "rmdir"
12453 msgstr ""
12454
12455 #. type: verbatim
12456 #: ../fish/guestfish-actions.pod:4033
12457 #, no-wrap
12458 msgid ""
12459 " rmdir path\n"
12460 "\n"
12461 msgstr ""
12462
12463 #. type: textblock
12464 #: ../fish/guestfish-actions.pod:4035 ../src/guestfs-actions.pod:6107
12465 msgid "Remove the single directory C<path>."
12466 msgstr ""
12467
12468 #. type: =head2
12469 #: ../fish/guestfish-actions.pod:4037
12470 msgid "rmmountpoint"
12471 msgstr ""
12472
12473 #. type: verbatim
12474 #: ../fish/guestfish-actions.pod:4039
12475 #, no-wrap
12476 msgid ""
12477 " rmmountpoint exemptpath\n"
12478 "\n"
12479 msgstr ""
12480
12481 #. type: textblock
12482 #: ../fish/guestfish-actions.pod:4041
12483 msgid ""
12484 "This calls removes a mountpoint that was previously created with "
12485 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12486 msgstr ""
12487
12488 #. type: =head2
12489 #: ../fish/guestfish-actions.pod:4045
12490 msgid "scrub-device"
12491 msgstr ""
12492
12493 #. type: verbatim
12494 #: ../fish/guestfish-actions.pod:4047
12495 #, no-wrap
12496 msgid ""
12497 " scrub-device device\n"
12498 "\n"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6133
12503 msgid ""
12504 "This command writes patterns over C<device> to make data retrieval more "
12505 "difficult."
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:4052 ../fish/guestfish-actions.pod:4067 ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6176
12510 msgid ""
12511 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12512 "more details."
12513 msgstr ""
12514
12515 #. type: =head2
12516 #: ../fish/guestfish-actions.pod:4058
12517 msgid "scrub-file"
12518 msgstr ""
12519
12520 #. type: verbatim
12521 #: ../fish/guestfish-actions.pod:4060
12522 #, no-wrap
12523 msgid ""
12524 " scrub-file file\n"
12525 "\n"
12526 msgstr ""
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6152
12530 msgid ""
12531 "This command writes patterns over a file to make data retrieval more "
12532 "difficult."
12533 msgstr ""
12534
12535 #. type: textblock
12536 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6155
12537 msgid "The file is I<removed> after scrubbing."
12538 msgstr ""
12539
12540 #. type: =head2
12541 #: ../fish/guestfish-actions.pod:4070
12542 msgid "scrub-freespace"
12543 msgstr ""
12544
12545 #. type: verbatim
12546 #: ../fish/guestfish-actions.pod:4072
12547 #, no-wrap
12548 msgid ""
12549 " scrub-freespace dir\n"
12550 "\n"
12551 msgstr ""
12552
12553 #. type: textblock
12554 #: ../fish/guestfish-actions.pod:4074
12555 msgid ""
12556 "This command creates the directory C<dir> and then fills it with files until "
12557 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12558 "deletes them.  The intention is to scrub any free space on the partition "
12559 "containing C<dir>."
12560 msgstr ""
12561
12562 #. type: =head2
12563 #: ../fish/guestfish-actions.pod:4083
12564 msgid "set-append"
12565 msgstr ""
12566
12567 #. type: =head2
12568 #: ../fish/guestfish-actions.pod:4085
12569 msgid "append"
12570 msgstr ""
12571
12572 #. type: verbatim
12573 #: ../fish/guestfish-actions.pod:4087
12574 #, no-wrap
12575 msgid ""
12576 " set-append append\n"
12577 "\n"
12578 msgstr ""
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6189
12582 msgid ""
12583 "This function is used to add additional options to the guest kernel command "
12584 "line."
12585 msgstr ""
12586
12587 #. type: textblock
12588 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6192
12589 msgid ""
12590 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12591 "environment variable."
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6195
12596 msgid ""
12597 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12598 "(libguestfs always adds a few of its own)."
12599 msgstr ""
12600
12601 #. type: =head2
12602 #: ../fish/guestfish-actions.pod:4098
12603 msgid "set-attach-method"
12604 msgstr ""
12605
12606 #. type: =head2
12607 #: ../fish/guestfish-actions.pod:4100
12608 msgid "attach-method"
12609 msgstr ""
12610
12611 #. type: verbatim
12612 #: ../fish/guestfish-actions.pod:4102
12613 #, no-wrap
12614 msgid ""
12615 " set-attach-method attachmethod\n"
12616 "\n"
12617 msgstr ""
12618
12619 #. type: textblock
12620 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6208
12621 msgid ""
12622 "Set the method that libguestfs uses to connect to the back end guestfsd "
12623 "daemon.  Possible methods are:"
12624 msgstr ""
12625
12626 #. type: =item
12627 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6213 ../src/guestfs.pod:2800
12628 msgid "C<appliance>"
12629 msgstr ""
12630
12631 #. type: textblock
12632 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6215
12633 msgid ""
12634 "Launch an appliance and connect to it.  This is the ordinary method and the "
12635 "default."
12636 msgstr ""
12637
12638 #. type: =item
12639 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
12640 msgid "C<unix:I<path>>"
12641 msgstr ""
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6220
12645 msgid "Connect to the Unix domain socket I<path>."
12646 msgstr ""
12647
12648 #. type: textblock
12649 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6222
12650 msgid ""
12651 "This method lets you connect to an existing daemon or (using virtio-serial) "
12652 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12653 "RUNNING DAEMONS>."
12654 msgstr ""
12655
12656 #. type: =head2
12657 #: ../fish/guestfish-actions.pod:4124
12658 msgid "set-autosync"
12659 msgstr ""
12660
12661 #. type: =head2
12662 #: ../fish/guestfish-actions.pod:4126
12663 msgid "autosync"
12664 msgstr ""
12665
12666 #. type: verbatim
12667 #: ../fish/guestfish-actions.pod:4128
12668 #, no-wrap
12669 msgid ""
12670 " set-autosync true|false\n"
12671 "\n"
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6238
12676 msgid ""
12677 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12678 "effort attempt to make filesystems consistent and synchronized when the "
12679 "handle is closed (also if the program exits without closing handles)."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6243
12684 msgid ""
12685 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12686 "disabled by default)."
12687 msgstr ""
12688
12689 #. type: =head2
12690 #: ../fish/guestfish-actions.pod:4138
12691 msgid "set-direct"
12692 msgstr ""
12693
12694 #. type: =head2
12695 #: ../fish/guestfish-actions.pod:4140
12696 msgid "direct"
12697 msgstr ""
12698
12699 #. type: verbatim
12700 #: ../fish/guestfish-actions.pod:4142
12701 #, no-wrap
12702 msgid ""
12703 " set-direct true|false\n"
12704 "\n"
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6256
12709 msgid ""
12710 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12711 "passed directly through to the appliance once it is launched."
12712 msgstr ""
12713
12714 #. type: textblock
12715 #: ../fish/guestfish-actions.pod:4148
12716 msgid ""
12717 "One consequence of this is that log messages aren't caught by the library "
12718 "and handled by L</set-log-message-callback>, but go straight to stdout."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:4152 ../src/guestfs-actions.pod:6264
12723 msgid "You probably don't want to use this unless you know what you are doing."
12724 msgstr ""
12725
12726 #. type: textblock
12727 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6267
12728 msgid "The default is disabled."
12729 msgstr ""
12730
12731 #. type: =head2
12732 #: ../fish/guestfish-actions.pod:4157
12733 msgid "set-e2label"
12734 msgstr ""
12735
12736 #. type: verbatim
12737 #: ../fish/guestfish-actions.pod:4159
12738 #, no-wrap
12739 msgid ""
12740 " set-e2label device label\n"
12741 "\n"
12742 msgstr ""
12743
12744 #. type: textblock
12745 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6280
12746 msgid ""
12747 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12748 "C<label>.  Filesystem labels are limited to 16 characters."
12749 msgstr ""
12750
12751 #. type: textblock
12752 #: ../fish/guestfish-actions.pod:4165
12753 msgid ""
12754 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12755 "label on a filesystem."
12756 msgstr ""
12757
12758 #. type: =head2
12759 #: ../fish/guestfish-actions.pod:4168
12760 msgid "set-e2uuid"
12761 msgstr ""
12762
12763 #. type: verbatim
12764 #: ../fish/guestfish-actions.pod:4170
12765 #, no-wrap
12766 msgid ""
12767 " set-e2uuid device uuid\n"
12768 "\n"
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6298
12773 msgid ""
12774 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12775 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12776 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:4177
12781 msgid ""
12782 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12783 "UUID of a filesystem."
12784 msgstr ""
12785
12786 #. type: =head2
12787 #: ../fish/guestfish-actions.pod:4180
12788 msgid "set-memsize"
12789 msgstr ""
12790
12791 #. type: =head2
12792 #: ../fish/guestfish-actions.pod:4182
12793 msgid "memsize"
12794 msgstr ""
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:4184
12798 #, no-wrap
12799 msgid ""
12800 " set-memsize memsize\n"
12801 "\n"
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:4186
12806 msgid ""
12807 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12808 "This only has any effect if called before L</launch>."
12809 msgstr ""
12810
12811 #. type: textblock
12812 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6320
12813 msgid ""
12814 "You can also change this by setting the environment variable "
12815 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12816 msgstr ""
12817
12818 #. type: =head2
12819 #: ../fish/guestfish-actions.pod:4197
12820 msgid "set-network"
12821 msgstr ""
12822
12823 #. type: =head2
12824 #: ../fish/guestfish-actions.pod:4199
12825 msgid "network"
12826 msgstr ""
12827
12828 #. type: verbatim
12829 #: ../fish/guestfish-actions.pod:4201
12830 #, no-wrap
12831 msgid ""
12832 " set-network true|false\n"
12833 "\n"
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6337
12838 msgid ""
12839 "If C<network> is true, then the network is enabled in the libguestfs "
12840 "appliance.  The default is false."
12841 msgstr ""
12842
12843 #. type: textblock
12844 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6340
12845 msgid ""
12846 "This affects whether commands are able to access the network (see "
12847 "L<guestfs(3)/RUNNING COMMANDS>)."
12848 msgstr ""
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:4209
12852 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12853 msgstr ""
12854
12855 #. type: =head2
12856 #: ../fish/guestfish-actions.pod:4212
12857 msgid "set-path"
12858 msgstr ""
12859
12860 #. type: verbatim
12861 #: ../fish/guestfish-actions.pod:4216
12862 #, no-wrap
12863 msgid ""
12864 " set-path searchpath\n"
12865 "\n"
12866 msgstr ""
12867
12868 #. type: textblock
12869 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6356
12870 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12871 msgstr ""
12872
12873 #. type: textblock
12874 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6358
12875 msgid ""
12876 "The default is C<$libdir/guestfs> unless overridden by setting "
12877 "C<LIBGUESTFS_PATH> environment variable."
12878 msgstr ""
12879
12880 #. type: textblock
12881 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6361
12882 msgid "Setting C<path> to C<NULL> restores the default path."
12883 msgstr ""
12884
12885 #. type: =head2
12886 #: ../fish/guestfish-actions.pod:4225
12887 msgid "set-pgroup"
12888 msgstr ""
12889
12890 #. type: =head2
12891 #: ../fish/guestfish-actions.pod:4227
12892 msgid "pgroup"
12893 msgstr ""
12894
12895 #. type: verbatim
12896 #: ../fish/guestfish-actions.pod:4229
12897 #, no-wrap
12898 msgid ""
12899 " set-pgroup true|false\n"
12900 "\n"
12901 msgstr ""
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6373
12905 msgid ""
12906 "If C<pgroup> is true, child processes are placed into their own process "
12907 "group."
12908 msgstr ""
12909
12910 #. type: textblock
12911 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6376
12912 msgid ""
12913 "The practical upshot of this is that signals like C<SIGINT> (from users "
12914 "pressing C<^C>) won't be received by the child process."
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6379
12919 msgid ""
12920 "The default for this flag is false, because usually you want C<^C> to kill "
12921 "the subprocess."
12922 msgstr ""
12923
12924 #. type: =head2
12925 #: ../fish/guestfish-actions.pod:4240
12926 msgid "set-qemu"
12927 msgstr ""
12928
12929 #. type: =head2
12930 #: ../fish/guestfish-actions.pod:4242
12931 msgid "qemu"
12932 msgstr ""
12933
12934 #. type: verbatim
12935 #: ../fish/guestfish-actions.pod:4244
12936 #, no-wrap
12937 msgid ""
12938 " set-qemu qemu\n"
12939 "\n"
12940 msgstr ""
12941
12942 #. type: textblock
12943 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6392
12944 msgid "Set the qemu binary that we will use."
12945 msgstr ""
12946
12947 #. type: textblock
12948 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6394
12949 msgid "The default is chosen when the library was compiled by the configure script."
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6397
12954 msgid ""
12955 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12956 "variable."
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6400
12961 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6402
12966 msgid ""
12967 "Note that you should call this function as early as possible after creating "
12968 "the handle.  This is because some pre-launch operations depend on testing "
12969 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12970 "don't retest features, and so you might see inconsistent results.  Using the "
12971 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12972 "the qemu binary at the same time as the handle is created."
12973 msgstr ""
12974
12975 #. type: =head2
12976 #: ../fish/guestfish-actions.pod:4264
12977 msgid "set-recovery-proc"
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:4266
12982 msgid "recovery-proc"
12983 msgstr ""
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:4268
12987 #, no-wrap
12988 msgid ""
12989 " set-recovery-proc true|false\n"
12990 "\n"
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:4270
12995 msgid ""
12996 "If this is called with the parameter C<false> then L</launch> does not "
12997 "create a recovery process.  The purpose of the recovery process is to stop "
12998 "runaway qemu processes in the case where the main program aborts abruptly."
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:4275
13003 msgid ""
13004 "This only has any effect if called before L</launch>, and the default is "
13005 "true."
13006 msgstr ""
13007
13008 #. type: textblock
13009 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6428
13010 msgid ""
13011 "About the only time when you would want to disable this is if the main "
13012 "process will fork itself into the background (\"daemonize\" itself).  In "
13013 "this case the recovery process thinks that the main program has disappeared "
13014 "and so kills qemu, which is not very helpful."
13015 msgstr ""
13016
13017 #. type: =head2
13018 #: ../fish/guestfish-actions.pod:4284
13019 msgid "set-selinux"
13020 msgstr ""
13021
13022 #. type: =head2
13023 #: ../fish/guestfish-actions.pod:4286
13024 msgid "selinux"
13025 msgstr ""
13026
13027 #. type: verbatim
13028 #: ../fish/guestfish-actions.pod:4288
13029 #, no-wrap
13030 msgid ""
13031 " set-selinux true|false\n"
13032 "\n"
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6444
13037 msgid ""
13038 "This sets the selinux flag that is passed to the appliance at boot time.  "
13039 "The default is C<selinux=0> (disabled)."
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6447
13044 msgid ""
13045 "Note that if SELinux is enabled, it is always in Permissive mode "
13046 "(C<enforcing=0>)."
13047 msgstr ""
13048
13049 #. type: =head2
13050 #: ../fish/guestfish-actions.pod:4299
13051 msgid "set-trace"
13052 msgstr ""
13053
13054 #. type: =head2
13055 #: ../fish/guestfish-actions.pod:4301
13056 msgid "trace"
13057 msgstr ""
13058
13059 #. type: verbatim
13060 #: ../fish/guestfish-actions.pod:4303
13061 #, no-wrap
13062 msgid ""
13063 " set-trace true|false\n"
13064 "\n"
13065 msgstr ""
13066
13067 #. type: textblock
13068 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6463
13069 msgid ""
13070 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
13071 "return values are traced."
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
13076 msgid ""
13077 "If you want to trace C API calls into libguestfs (and other libraries) then "
13078 "possibly a better way is to use the external ltrace(1) command."
13079 msgstr ""
13080
13081 #. type: textblock
13082 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6470
13083 msgid ""
13084 "Command traces are disabled unless the environment variable "
13085 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
13086 msgstr ""
13087
13088 #. type: textblock
13089 #: ../fish/guestfish-actions.pod:4315
13090 msgid ""
13091 "Trace messages are normally sent to C<stderr>, unless you register a "
13092 "callback to send them somewhere else (see L</set-event-callback>)."
13093 msgstr ""
13094
13095 #. type: =head2
13096 #: ../fish/guestfish-actions.pod:4319
13097 msgid "set-verbose"
13098 msgstr ""
13099
13100 #. type: =head2
13101 #: ../fish/guestfish-actions.pod:4321
13102 msgid "verbose"
13103 msgstr ""
13104
13105 #. type: verbatim
13106 #: ../fish/guestfish-actions.pod:4323
13107 #, no-wrap
13108 msgid ""
13109 " set-verbose true|false\n"
13110 "\n"
13111 msgstr ""
13112
13113 #. type: textblock
13114 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6487
13115 msgid "If C<verbose> is true, this turns on verbose messages."
13116 msgstr ""
13117
13118 #. type: textblock
13119 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6489
13120 msgid ""
13121 "Verbose messages are disabled unless the environment variable "
13122 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
13123 msgstr ""
13124
13125 #. type: textblock
13126 #: ../fish/guestfish-actions.pod:4330
13127 msgid ""
13128 "Verbose messages are normally sent to C<stderr>, unless you register a "
13129 "callback to send them somewhere else (see L</set-event-callback>)."
13130 msgstr ""
13131
13132 #. type: =head2
13133 #: ../fish/guestfish-actions.pod:4334
13134 msgid "setcon"
13135 msgstr ""
13136
13137 #. type: verbatim
13138 #: ../fish/guestfish-actions.pod:4336
13139 #, no-wrap
13140 msgid ""
13141 " setcon context\n"
13142 "\n"
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6506
13147 msgid ""
13148 "This sets the SELinux security context of the daemon to the string "
13149 "C<context>."
13150 msgstr ""
13151
13152 #. type: textblock
13153 #: ../fish/guestfish-actions.pod:4341 ../src/guestfs-actions.pod:6509
13154 msgid "See the documentation about SELINUX in L<guestfs(3)>."
13155 msgstr ""
13156
13157 #. type: =head2
13158 #: ../fish/guestfish-actions.pod:4343
13159 msgid "setxattr"
13160 msgstr ""
13161
13162 #. type: verbatim
13163 #: ../fish/guestfish-actions.pod:4345
13164 #, no-wrap
13165 msgid ""
13166 " setxattr xattr val vallen path\n"
13167 "\n"
13168 msgstr ""
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6524
13172 msgid ""
13173 "This call sets the extended attribute named C<xattr> of the file C<path> to "
13174 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
13175 msgstr ""
13176
13177 #. type: textblock
13178 #: ../fish/guestfish-actions.pod:4351
13179 msgid "See also: L</lsetxattr>, L<attr(5)>."
13180 msgstr ""
13181
13182 #. type: =head2
13183 #: ../fish/guestfish-actions.pod:4353
13184 msgid "sfdisk"
13185 msgstr ""
13186
13187 #. type: verbatim
13188 #: ../fish/guestfish-actions.pod:4355
13189 #, no-wrap
13190 msgid ""
13191 " sfdisk device cyls heads sectors 'lines ...'\n"
13192 "\n"
13193 msgstr ""
13194
13195 #. type: textblock
13196 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6551
13197 msgid ""
13198 "This is a direct interface to the L<sfdisk(8)> program for creating "
13199 "partitions on block devices."
13200 msgstr ""
13201
13202 #. type: textblock
13203 #: ../fish/guestfish-actions.pod:4360 ../src/guestfs-actions.pod:6554
13204 msgid "C<device> should be a block device, for example C</dev/sda>."
13205 msgstr ""
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:4362 ../src/guestfs-actions.pod:6556
13209 msgid ""
13210 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13211 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13212 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13213 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13214 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13215 "the kernel) cannot work out the right geometry and you will need to tell it."
13216 msgstr ""
13217
13218 #. type: textblock
13219 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6564
13220 msgid ""
13221 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13222 "refer to the L<sfdisk(8)> manpage."
13223 msgstr ""
13224
13225 #. type: textblock
13226 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6567
13227 msgid ""
13228 "To create a single partition occupying the whole disk, you would pass "
13229 "C<lines> as a single element list, when the single element being the string "
13230 "C<,> (comma)."
13231 msgstr ""
13232
13233 #. type: textblock
13234 #: ../fish/guestfish-actions.pod:4377
13235 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13236 msgstr ""
13237
13238 #. type: textblock
13239 #: ../fish/guestfish-actions.pod:4383 ../fish/guestfish-actions.pod:4406 ../fish/guestfish-actions.pod:4428
13240 msgid ""
13241 "I<This function is deprecated.> In new code, use the L</part_add> call "
13242 "instead."
13243 msgstr ""
13244
13245 #. type: =head2
13246 #: ../fish/guestfish-actions.pod:4390
13247 msgid "sfdiskM"
13248 msgstr ""
13249
13250 #. type: verbatim
13251 #: ../fish/guestfish-actions.pod:4392
13252 #, no-wrap
13253 msgid ""
13254 " sfdiskM device 'lines ...'\n"
13255 "\n"
13256 msgstr ""
13257
13258 #. type: textblock
13259 #: ../fish/guestfish-actions.pod:4394
13260 msgid ""
13261 "This is a simplified interface to the L</sfdisk> command, where partition "
13262 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13263 "you don't need to specify the cyls, heads and sectors parameters which were "
13264 "rarely if ever used anyway."
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:4400
13269 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13270 msgstr ""
13271
13272 #. type: =head2
13273 #: ../fish/guestfish-actions.pod:4413
13274 msgid "sfdisk-N"
13275 msgstr ""
13276
13277 #. type: verbatim
13278 #: ../fish/guestfish-actions.pod:4415
13279 #, no-wrap
13280 msgid ""
13281 " sfdisk-N device partnum cyls heads sectors line\n"
13282 "\n"
13283 msgstr ""
13284
13285 #. type: textblock
13286 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6629
13287 msgid ""
13288 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13289 "(note: C<n> counts from 1)."
13290 msgstr ""
13291
13292 #. type: textblock
13293 #: ../fish/guestfish-actions.pod:4420
13294 msgid ""
13295 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13296 "cyls/heads/sectors parameters."
13297 msgstr ""
13298
13299 #. type: textblock
13300 #: ../fish/guestfish-actions.pod:4423
13301 msgid "See also: L</part-add>"
13302 msgstr ""
13303
13304 #. type: =head2
13305 #: ../fish/guestfish-actions.pod:4435
13306 msgid "sfdisk-disk-geometry"
13307 msgstr ""
13308
13309 #. type: verbatim
13310 #: ../fish/guestfish-actions.pod:4437
13311 #, no-wrap
13312 msgid ""
13313 " sfdisk-disk-geometry device\n"
13314 "\n"
13315 msgstr ""
13316
13317 #. type: textblock
13318 #: ../fish/guestfish-actions.pod:4439
13319 msgid ""
13320 "This displays the disk geometry of C<device> read from the partition table.  "
13321 "Especially in the case where the underlying block device has been resized, "
13322 "this can be different from the kernel's idea of the geometry (see "
13323 "L</sfdisk-kernel-geometry>)."
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6671
13328 msgid "The result is in human-readable format, and not designed to be parsed."
13329 msgstr ""
13330
13331 #. type: =head2
13332 #: ../fish/guestfish-actions.pod:4447
13333 msgid "sfdisk-kernel-geometry"
13334 msgstr ""
13335
13336 #. type: verbatim
13337 #: ../fish/guestfish-actions.pod:4449
13338 #, no-wrap
13339 msgid ""
13340 " sfdisk-kernel-geometry device\n"
13341 "\n"
13342 msgstr ""
13343
13344 #. type: textblock
13345 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6669
13346 msgid "This displays the kernel's idea of the geometry of C<device>."
13347 msgstr ""
13348
13349 #. type: =head2
13350 #: ../fish/guestfish-actions.pod:4456
13351 msgid "sfdisk-l"
13352 msgstr ""
13353
13354 #. type: verbatim
13355 #: ../fish/guestfish-actions.pod:4458
13356 #, no-wrap
13357 msgid ""
13358 " sfdisk-l device\n"
13359 "\n"
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6692
13364 msgid ""
13365 "This displays the partition table on C<device>, in the human-readable output "
13366 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13367 msgstr ""
13368
13369 #. type: textblock
13370 #: ../fish/guestfish-actions.pod:4464
13371 msgid "See also: L</part-list>"
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:4466
13376 msgid ""
13377 "I<This function is deprecated.> In new code, use the L</part_list> call "
13378 "instead."
13379 msgstr ""
13380
13381 #. type: =head2
13382 #: ../fish/guestfish-actions.pod:4473
13383 msgid "sh"
13384 msgstr ""
13385
13386 #. type: verbatim
13387 #: ../fish/guestfish-actions.pod:4475
13388 #, no-wrap
13389 msgid ""
13390 " sh command\n"
13391 "\n"
13392 msgstr ""
13393
13394 #. type: textblock
13395 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6709
13396 msgid ""
13397 "This call runs a command from the guest filesystem via the guest's "
13398 "C</bin/sh>."
13399 msgstr ""
13400
13401 #. type: textblock
13402 #: ../fish/guestfish-actions.pod:4480
13403 msgid "This is like L</command>, but passes the command to:"
13404 msgstr ""
13405
13406 #. type: verbatim
13407 #: ../fish/guestfish-actions.pod:4482 ../src/guestfs-actions.pod:6714
13408 #, no-wrap
13409 msgid ""
13410 " /bin/sh -c \"command\"\n"
13411 "\n"
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:4484 ../src/guestfs-actions.pod:6716
13416 msgid ""
13417 "Depending on the guest's shell, this usually results in wildcards being "
13418 "expanded, shell expressions being interpolated and so on."
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:4488
13423 msgid "All the provisos about L</command> apply to this call."
13424 msgstr ""
13425
13426 #. type: =head2
13427 #: ../fish/guestfish-actions.pod:4490
13428 msgid "sh-lines"
13429 msgstr ""
13430
13431 #. type: verbatim
13432 #: ../fish/guestfish-actions.pod:4492
13433 #, no-wrap
13434 msgid ""
13435 " sh-lines command\n"
13436 "\n"
13437 msgstr ""
13438
13439 #. type: textblock
13440 #: ../fish/guestfish-actions.pod:4494
13441 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13442 msgstr ""
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:4497
13446 msgid "See also: L</command-lines>"
13447 msgstr ""
13448
13449 #. type: =head2
13450 #: ../fish/guestfish-actions.pod:4499
13451 msgid "sleep"
13452 msgstr ""
13453
13454 #. type: verbatim
13455 #: ../fish/guestfish-actions.pod:4501
13456 #, no-wrap
13457 msgid ""
13458 " sleep secs\n"
13459 "\n"
13460 msgstr ""
13461
13462 #. type: textblock
13463 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6750
13464 msgid "Sleep for C<secs> seconds."
13465 msgstr ""
13466
13467 #. type: =head2
13468 #: ../fish/guestfish-actions.pod:4505
13469 msgid "stat"
13470 msgstr ""
13471
13472 #. type: verbatim
13473 #: ../fish/guestfish-actions.pod:4507
13474 #, no-wrap
13475 msgid ""
13476 " stat path\n"
13477 "\n"
13478 msgstr ""
13479
13480 #. type: textblock
13481 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6764
13482 msgid "This is the same as the C<stat(2)> system call."
13483 msgstr ""
13484
13485 #. type: =head2
13486 #: ../fish/guestfish-actions.pod:4513
13487 msgid "statvfs"
13488 msgstr ""
13489
13490 #. type: verbatim
13491 #: ../fish/guestfish-actions.pod:4515
13492 #, no-wrap
13493 msgid ""
13494 " statvfs path\n"
13495 "\n"
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
13500 msgid ""
13501 "Returns file system statistics for any mounted file system.  C<path> should "
13502 "be a file or directory in the mounted file system (typically it is the mount "
13503 "point itself, but it doesn't need to be)."
13504 msgstr ""
13505
13506 #. type: textblock
13507 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6782
13508 msgid "This is the same as the C<statvfs(2)> system call."
13509 msgstr ""
13510
13511 #. type: =head2
13512 #: ../fish/guestfish-actions.pod:4523
13513 msgid "strings"
13514 msgstr ""
13515
13516 #. type: verbatim
13517 #: ../fish/guestfish-actions.pod:4525
13518 #, no-wrap
13519 msgid ""
13520 " strings path\n"
13521 "\n"
13522 msgstr ""
13523
13524 #. type: textblock
13525 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6796
13526 msgid ""
13527 "This runs the L<strings(1)> command on a file and returns the list of "
13528 "printable strings found."
13529 msgstr ""
13530
13531 #. type: =head2
13532 #: ../fish/guestfish-actions.pod:4533
13533 msgid "strings-e"
13534 msgstr ""
13535
13536 #. type: verbatim
13537 #: ../fish/guestfish-actions.pod:4535
13538 #, no-wrap
13539 msgid ""
13540 " strings-e encoding path\n"
13541 "\n"
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:4537
13546 msgid ""
13547 "This is like the L</strings> command, but allows you to specify the encoding "
13548 "of strings that are looked for in the source file C<path>."
13549 msgstr ""
13550
13551 #. type: textblock
13552 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
13553 msgid "Allowed encodings are:"
13554 msgstr ""
13555
13556 #. type: =item
13557 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6823
13558 msgid "s"
13559 msgstr ""
13560
13561 #. type: textblock
13562 #: ../fish/guestfish-actions.pod:4547
13563 msgid ""
13564 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13565 "ISO-8859-X (this is what L</strings> uses)."
13566 msgstr ""
13567
13568 #. type: =item
13569 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
13570 msgid "S"
13571 msgstr ""
13572
13573 #. type: textblock
13574 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
13575 msgid "Single 8-bit-byte characters."
13576 msgstr ""
13577
13578 #. type: =item
13579 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6832
13580 msgid "b"
13581 msgstr ""
13582
13583 #. type: textblock
13584 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:6834
13585 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13586 msgstr ""
13587
13588 #. type: =item
13589 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:6837
13590 msgid "l (lower case letter L)"
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:6839
13595 msgid ""
13596 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13597 "examining binaries in Windows guests."
13598 msgstr ""
13599
13600 #. type: =item
13601 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
13602 msgid "B"
13603 msgstr ""
13604
13605 #. type: textblock
13606 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
13607 msgid "32-bit big endian such as UCS-4BE."
13608 msgstr ""
13609
13610 #. type: =item
13611 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:6846
13612 msgid "L"
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
13617 msgid "32-bit little endian such as UCS-4LE."
13618 msgstr ""
13619
13620 #. type: textblock
13621 #: ../fish/guestfish-actions.pod:4574 ../src/guestfs-actions.pod:6852
13622 msgid "The returned strings are transcoded to UTF-8."
13623 msgstr ""
13624
13625 #. type: =head2
13626 #: ../fish/guestfish-actions.pod:4579
13627 msgid "swapoff-device"
13628 msgstr ""
13629
13630 #. type: verbatim
13631 #: ../fish/guestfish-actions.pod:4581
13632 #, no-wrap
13633 msgid ""
13634 " swapoff-device device\n"
13635 "\n"
13636 msgstr ""
13637
13638 #. type: textblock
13639 #: ../fish/guestfish-actions.pod:4583
13640 msgid ""
13641 "This command disables the libguestfs appliance swap device or partition "
13642 "named C<device>.  See L</swapon-device>."
13643 msgstr ""
13644
13645 #. type: =head2
13646 #: ../fish/guestfish-actions.pod:4587
13647 msgid "swapoff-file"
13648 msgstr ""
13649
13650 #. type: verbatim
13651 #: ../fish/guestfish-actions.pod:4589
13652 #, no-wrap
13653 msgid ""
13654 " swapoff-file file\n"
13655 "\n"
13656 msgstr ""
13657
13658 #. type: textblock
13659 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:6883
13660 msgid "This command disables the libguestfs appliance swap on file."
13661 msgstr ""
13662
13663 #. type: =head2
13664 #: ../fish/guestfish-actions.pod:4593
13665 msgid "swapoff-label"
13666 msgstr ""
13667
13668 #. type: verbatim
13669 #: ../fish/guestfish-actions.pod:4595
13670 #, no-wrap
13671 msgid ""
13672 " swapoff-label label\n"
13673 "\n"
13674 msgstr ""
13675
13676 #. type: textblock
13677 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6895
13678 msgid ""
13679 "This command disables the libguestfs appliance swap on labeled swap "
13680 "partition."
13681 msgstr ""
13682
13683 #. type: =head2
13684 #: ../fish/guestfish-actions.pod:4600
13685 msgid "swapoff-uuid"
13686 msgstr ""
13687
13688 #. type: verbatim
13689 #: ../fish/guestfish-actions.pod:4602
13690 #, no-wrap
13691 msgid ""
13692 " swapoff-uuid uuid\n"
13693 "\n"
13694 msgstr ""
13695
13696 #. type: textblock
13697 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6908
13698 msgid ""
13699 "This command disables the libguestfs appliance swap partition with the given "
13700 "UUID."
13701 msgstr ""
13702
13703 #. type: =head2
13704 #: ../fish/guestfish-actions.pod:4607
13705 msgid "swapon-device"
13706 msgstr ""
13707
13708 #. type: verbatim
13709 #: ../fish/guestfish-actions.pod:4609
13710 #, no-wrap
13711 msgid ""
13712 " swapon-device device\n"
13713 "\n"
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4611
13718 msgid ""
13719 "This command enables the libguestfs appliance to use the swap device or "
13720 "partition named C<device>.  The increased memory is made available for all "
13721 "commands, for example those run using L</command> or L</sh>."
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:6926
13726 msgid ""
13727 "Note that you should not swap to existing guest swap partitions unless you "
13728 "know what you are doing.  They may contain hibernation information, or other "
13729 "information that the guest doesn't want you to trash.  You also risk leaking "
13730 "information about the host to the guest this way.  Instead, attach a new "
13731 "host device to the guest and swap on that."
13732 msgstr ""
13733
13734 #. type: =head2
13735 #: ../fish/guestfish-actions.pod:4623
13736 msgid "swapon-file"
13737 msgstr ""
13738
13739 #. type: verbatim
13740 #: ../fish/guestfish-actions.pod:4625
13741 #, no-wrap
13742 msgid ""
13743 " swapon-file file\n"
13744 "\n"
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4627
13749 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13750 msgstr ""
13751
13752 #. type: =head2
13753 #: ../fish/guestfish-actions.pod:4630
13754 msgid "swapon-label"
13755 msgstr ""
13756
13757 #. type: verbatim
13758 #: ../fish/guestfish-actions.pod:4632
13759 #, no-wrap
13760 msgid ""
13761 " swapon-label label\n"
13762 "\n"
13763 msgstr ""
13764
13765 #. type: textblock
13766 #: ../fish/guestfish-actions.pod:4634
13767 msgid ""
13768 "This command enables swap to a labeled swap partition.  See "
13769 "L</swapon-device> for other notes."
13770 msgstr ""
13771
13772 #. type: =head2
13773 #: ../fish/guestfish-actions.pod:4637
13774 msgid "swapon-uuid"
13775 msgstr ""
13776
13777 #. type: verbatim
13778 #: ../fish/guestfish-actions.pod:4639
13779 #, no-wrap
13780 msgid ""
13781 " swapon-uuid uuid\n"
13782 "\n"
13783 msgstr ""
13784
13785 #. type: textblock
13786 #: ../fish/guestfish-actions.pod:4641
13787 msgid ""
13788 "This command enables swap to a swap partition with the given UUID.  See "
13789 "L</swapon-device> for other notes."
13790 msgstr ""
13791
13792 #. type: =head2
13793 #: ../fish/guestfish-actions.pod:4644
13794 msgid "sync"
13795 msgstr ""
13796
13797 #. type: verbatim
13798 #: ../fish/guestfish-actions.pod:4646
13799 #, no-wrap
13800 msgid ""
13801 " sync\n"
13802 "\n"
13803 msgstr ""
13804
13805 #. type: textblock
13806 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:6981
13807 msgid ""
13808 "This syncs the disk, so that any writes are flushed through to the "
13809 "underlying disk image."
13810 msgstr ""
13811
13812 #. type: textblock
13813 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:6984
13814 msgid ""
13815 "You should always call this if you have modified a disk image, before "
13816 "closing the handle."
13817 msgstr ""
13818
13819 #. type: =head2
13820 #: ../fish/guestfish-actions.pod:4654
13821 msgid "tail"
13822 msgstr ""
13823
13824 #. type: verbatim
13825 #: ../fish/guestfish-actions.pod:4656
13826 #, no-wrap
13827 msgid ""
13828 " tail path\n"
13829 "\n"
13830 msgstr ""
13831
13832 #. type: textblock
13833 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:6997
13834 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13835 msgstr ""
13836
13837 #. type: =head2
13838 #: ../fish/guestfish-actions.pod:4664
13839 msgid "tail-n"
13840 msgstr ""
13841
13842 #. type: verbatim
13843 #: ../fish/guestfish-actions.pod:4666
13844 #, no-wrap
13845 msgid ""
13846 " tail-n nrlines path\n"
13847 "\n"
13848 msgstr ""
13849
13850 #. type: textblock
13851 #: ../fish/guestfish-actions.pod:4668 ../src/guestfs-actions.pod:7016
13852 msgid ""
13853 "If the parameter C<nrlines> is a positive number, this returns the last "
13854 "C<nrlines> lines of the file C<path>."
13855 msgstr ""
13856
13857 #. type: textblock
13858 #: ../fish/guestfish-actions.pod:4671 ../src/guestfs-actions.pod:7019
13859 msgid ""
13860 "If the parameter C<nrlines> is a negative number, this returns lines from "
13861 "the file C<path>, starting with the C<-nrlines>th line."
13862 msgstr ""
13863
13864 #. type: =head2
13865 #: ../fish/guestfish-actions.pod:4679
13866 msgid "tar-in"
13867 msgstr ""
13868
13869 #. type: verbatim
13870 #: ../fish/guestfish-actions.pod:4681
13871 #, no-wrap
13872 msgid ""
13873 " tar-in (tarfile|-) directory\n"
13874 "\n"
13875 msgstr ""
13876
13877 #. type: textblock
13878 #: ../fish/guestfish-actions.pod:4683 ../src/guestfs-actions.pod:7040
13879 msgid ""
13880 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13881 "tar file) into C<directory>."
13882 msgstr ""
13883
13884 #. type: textblock
13885 #: ../fish/guestfish-actions.pod:4686
13886 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13887 msgstr ""
13888
13889 #. type: =head2
13890 #: ../fish/guestfish-actions.pod:4691
13891 msgid "tar-out"
13892 msgstr ""
13893
13894 #. type: verbatim
13895 #: ../fish/guestfish-actions.pod:4693
13896 #, no-wrap
13897 msgid ""
13898 " tar-out directory (tarfile|-)\n"
13899 "\n"
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:4695 ../src/guestfs-actions.pod:7057
13904 msgid ""
13905 "This command packs the contents of C<directory> and downloads it to local "
13906 "file C<tarfile>."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4698
13911 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
13912 msgstr ""
13913
13914 #. type: =head2
13915 #: ../fish/guestfish-actions.pod:4703
13916 msgid "tgz-in"
13917 msgstr ""
13918
13919 #. type: verbatim
13920 #: ../fish/guestfish-actions.pod:4705
13921 #, no-wrap
13922 msgid ""
13923 " tgz-in (tarball|-) directory\n"
13924 "\n"
13925 msgstr ""
13926
13927 #. type: textblock
13928 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7074
13929 msgid ""
13930 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13931 "tar file) into C<directory>."
13932 msgstr ""
13933
13934 #. type: textblock
13935 #: ../fish/guestfish-actions.pod:4710
13936 msgid "To upload an uncompressed tarball, use L</tar-in>."
13937 msgstr ""
13938
13939 #. type: =head2
13940 #: ../fish/guestfish-actions.pod:4714
13941 msgid "tgz-out"
13942 msgstr ""
13943
13944 #. type: verbatim
13945 #: ../fish/guestfish-actions.pod:4716
13946 #, no-wrap
13947 msgid ""
13948 " tgz-out directory (tarball|-)\n"
13949 "\n"
13950 msgstr ""
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:4718 ../src/guestfs-actions.pod:7090
13954 msgid ""
13955 "This command packs the contents of C<directory> and downloads it to local "
13956 "file C<tarball>."
13957 msgstr ""
13958
13959 #. type: textblock
13960 #: ../fish/guestfish-actions.pod:4721
13961 msgid "To download an uncompressed tarball, use L</tar-out>."
13962 msgstr ""
13963
13964 #. type: =head2
13965 #: ../fish/guestfish-actions.pod:4725
13966 msgid "touch"
13967 msgstr ""
13968
13969 #. type: verbatim
13970 #: ../fish/guestfish-actions.pod:4727
13971 #, no-wrap
13972 msgid ""
13973 " touch path\n"
13974 "\n"
13975 msgstr ""
13976
13977 #. type: textblock
13978 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
13979 msgid ""
13980 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13981 "timestamps on a file, or, if the file does not exist, to create a new "
13982 "zero-length file."
13983 msgstr ""
13984
13985 #. type: textblock
13986 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7109
13987 msgid ""
13988 "This command only works on regular files, and will fail on other file types "
13989 "such as directories, symbolic links, block special etc."
13990 msgstr ""
13991
13992 #. type: =head2
13993 #: ../fish/guestfish-actions.pod:4736
13994 msgid "truncate"
13995 msgstr ""
13996
13997 #. type: verbatim
13998 #: ../fish/guestfish-actions.pod:4738
13999 #, no-wrap
14000 msgid ""
14001 " truncate path\n"
14002 "\n"
14003 msgstr ""
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:4740 ../src/guestfs-actions.pod:7122
14007 msgid ""
14008 "This command truncates C<path> to a zero-length file.  The file must exist "
14009 "already."
14010 msgstr ""
14011
14012 #. type: =head2
14013 #: ../fish/guestfish-actions.pod:4743
14014 msgid "truncate-size"
14015 msgstr ""
14016
14017 #. type: verbatim
14018 #: ../fish/guestfish-actions.pod:4745
14019 #, no-wrap
14020 msgid ""
14021 " truncate-size path size\n"
14022 "\n"
14023 msgstr ""
14024
14025 #. type: textblock
14026 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7136
14027 msgid ""
14028 "This command truncates C<path> to size C<size> bytes.  The file must exist "
14029 "already."
14030 msgstr ""
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:4750
14034 msgid ""
14035 "If the current file size is less than C<size> then the file is extended to "
14036 "the required size with zero bytes.  This creates a sparse file (ie. disk "
14037 "blocks are not allocated for the file until you write to it).  To create a "
14038 "non-sparse file of zeroes, use L</fallocate64> instead."
14039 msgstr ""
14040
14041 #. type: =head2
14042 #: ../fish/guestfish-actions.pod:4756
14043 msgid "tune2fs-l"
14044 msgstr ""
14045
14046 #. type: verbatim
14047 #: ../fish/guestfish-actions.pod:4758
14048 #, no-wrap
14049 msgid ""
14050 " tune2fs-l device\n"
14051 "\n"
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7155
14056 msgid ""
14057 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
14058 "C<device>."
14059 msgstr ""
14060
14061 #. type: textblock
14062 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7158
14063 msgid ""
14064 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
14065 "for more details.  The list of fields returned isn't clearly defined, and "
14066 "depends on both the version of C<tune2fs> that libguestfs was built against, "
14067 "and the filesystem itself."
14068 msgstr ""
14069
14070 #. type: =head2
14071 #: ../fish/guestfish-actions.pod:4768
14072 msgid "txz-in"
14073 msgstr ""
14074
14075 #. type: verbatim
14076 #: ../fish/guestfish-actions.pod:4770
14077 #, no-wrap
14078 msgid ""
14079 " txz-in (tarball|-) directory\n"
14080 "\n"
14081 msgstr ""
14082
14083 #. type: textblock
14084 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7178
14085 msgid ""
14086 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
14087 "tar file) into C<directory>."
14088 msgstr ""
14089
14090 #. type: =head2
14091 #: ../fish/guestfish-actions.pod:4777
14092 msgid "txz-out"
14093 msgstr ""
14094
14095 #. type: verbatim
14096 #: ../fish/guestfish-actions.pod:4779
14097 #, no-wrap
14098 msgid ""
14099 " txz-out directory (tarball|-)\n"
14100 "\n"
14101 msgstr ""
14102
14103 #. type: textblock
14104 #: ../fish/guestfish-actions.pod:4781 ../src/guestfs-actions.pod:7192
14105 msgid ""
14106 "This command packs the contents of C<directory> and downloads it to local "
14107 "file C<tarball> (as an xz compressed tar archive)."
14108 msgstr ""
14109
14110 #. type: =head2
14111 #: ../fish/guestfish-actions.pod:4786
14112 msgid "umask"
14113 msgstr ""
14114
14115 #. type: verbatim
14116 #: ../fish/guestfish-actions.pod:4788
14117 #, no-wrap
14118 msgid ""
14119 " umask mask\n"
14120 "\n"
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7205
14125 msgid ""
14126 "This function sets the mask used for creating new files and device nodes to "
14127 "C<mask & 0777>."
14128 msgstr ""
14129
14130 #. type: textblock
14131 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7208
14132 msgid ""
14133 "Typical umask values would be C<022> which creates new files with "
14134 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
14135 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
14136 msgstr ""
14137
14138 #. type: textblock
14139 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7213
14140 msgid ""
14141 "The default umask is C<022>.  This is important because it means that "
14142 "directories and device nodes will be created with C<0644> or C<0755> mode "
14143 "even if you specify C<0777>."
14144 msgstr ""
14145
14146 #. type: textblock
14147 #: ../fish/guestfish-actions.pod:4802
14148 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
14149 msgstr ""
14150
14151 #. type: textblock
14152 #: ../fish/guestfish-actions.pod:4805 ../src/guestfs-actions.pod:7220
14153 msgid "This call returns the previous umask."
14154 msgstr ""
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:4807
14158 msgid "umount"
14159 msgstr ""
14160
14161 #. type: =head2
14162 #: ../fish/guestfish-actions.pod:4809
14163 msgid "unmount"
14164 msgstr ""
14165
14166 #. type: verbatim
14167 #: ../fish/guestfish-actions.pod:4811
14168 #, no-wrap
14169 msgid ""
14170 " umount pathordevice\n"
14171 "\n"
14172 msgstr ""
14173
14174 #. type: textblock
14175 #: ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7232
14176 msgid ""
14177 "This unmounts the given filesystem.  The filesystem may be specified either "
14178 "by its mountpoint (path) or the device which contains the filesystem."
14179 msgstr ""
14180
14181 #. type: =head2
14182 #: ../fish/guestfish-actions.pod:4817
14183 msgid "umount-all"
14184 msgstr ""
14185
14186 #. type: =head2
14187 #: ../fish/guestfish-actions.pod:4819
14188 msgid "unmount-all"
14189 msgstr ""
14190
14191 #. type: verbatim
14192 #: ../fish/guestfish-actions.pod:4821
14193 #, no-wrap
14194 msgid ""
14195 " umount-all\n"
14196 "\n"
14197 msgstr ""
14198
14199 #. type: textblock
14200 #: ../fish/guestfish-actions.pod:4823 ../src/guestfs-actions.pod:7245
14201 msgid "This unmounts all mounted filesystems."
14202 msgstr ""
14203
14204 #. type: textblock
14205 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7247
14206 msgid "Some internal mounts are not unmounted by this call."
14207 msgstr ""
14208
14209 #. type: =head2
14210 #: ../fish/guestfish-actions.pod:4827
14211 msgid "upload"
14212 msgstr ""
14213
14214 #. type: verbatim
14215 #: ../fish/guestfish-actions.pod:4829
14216 #, no-wrap
14217 msgid ""
14218 " upload (filename|-) remotefilename\n"
14219 "\n"
14220 msgstr ""
14221
14222 #. type: textblock
14223 #: ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7260 ../src/guestfs-actions.pod:7284
14224 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14225 msgstr ""
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:4836
14229 msgid "See also L</download>."
14230 msgstr ""
14231
14232 #. type: =head2
14233 #: ../fish/guestfish-actions.pod:4840
14234 msgid "upload-offset"
14235 msgstr ""
14236
14237 #. type: verbatim
14238 #: ../fish/guestfish-actions.pod:4842
14239 #, no-wrap
14240 msgid ""
14241 " upload-offset (filename|-) remotefilename offset\n"
14242 "\n"
14243 msgstr ""
14244
14245 #. type: textblock
14246 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7287
14247 msgid ""
14248 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14249 "The intention is to overwrite parts of existing files or devices, although "
14250 "if a non-existant file is specified then it is created with a \"hole\" "
14251 "before C<offset>.  The size of the data written is implicit in the size of "
14252 "the source C<filename>."
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:4854
14257 msgid ""
14258 "Note that there is no limit on the amount of data that can be uploaded with "
14259 "this call, unlike with L</pwrite>, and this call always writes the full "
14260 "amount unless an error occurs."
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:4859
14265 msgid "See also L</upload>, L</pwrite>."
14266 msgstr ""
14267
14268 #. type: =head2
14269 #: ../fish/guestfish-actions.pod:4863
14270 msgid "utimens"
14271 msgstr ""
14272
14273 #. type: verbatim
14274 #: ../fish/guestfish-actions.pod:4865
14275 #, no-wrap
14276 msgid ""
14277 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14278 "\n"
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7320
14283 msgid "This command sets the timestamps of a file with nanosecond precision."
14284 msgstr ""
14285
14286 #. type: textblock
14287 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7323
14288 msgid ""
14289 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14290 "from the epoch."
14291 msgstr ""
14292
14293 #. type: textblock
14294 #: ../fish/guestfish-actions.pod:4873 ../src/guestfs-actions.pod:7326
14295 msgid ""
14296 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14297 "nanoseconds from the epoch."
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
14302 msgid ""
14303 "If the C<*nsecs> field contains the special value C<-1> then the "
14304 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14305 "ignored in this case)."
14306 msgstr ""
14307
14308 #. type: textblock
14309 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7333
14310 msgid ""
14311 "If the C<*nsecs> field contains the special value C<-2> then the "
14312 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14313 "in this case)."
14314 msgstr ""
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:4884
14318 msgid "version"
14319 msgstr ""
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:4886
14323 #, no-wrap
14324 msgid ""
14325 " version\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7346
14331 msgid "Return the libguestfs version number that the program is linked against."
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:4891 ../src/guestfs-actions.pod:7349
14336 msgid ""
14337 "Note that because of dynamic linking this is not necessarily the version of "
14338 "libguestfs that you compiled against.  You can compile the program, and then "
14339 "at runtime dynamically link against a completely different C<libguestfs.so> "
14340 "library."
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4896 ../src/guestfs-actions.pod:7354
14345 msgid ""
14346 "This call was added in version C<1.0.58>.  In previous versions of "
14347 "libguestfs there was no way to get the version number.  From C code you can "
14348 "use dynamic linker functions to find out if this symbol exists (if it "
14349 "doesn't, then it's an earlier version)."
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7360
14354 msgid ""
14355 "The call returns a structure with four elements.  The first three (C<major>, "
14356 "C<minor> and C<release>) are numbers and correspond to the usual version "
14357 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14358 "but may be used for distro-specific information."
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7366
14363 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14364 msgstr ""
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7369
14368 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14369 msgstr ""
14370
14371 #. type: textblock
14372 #: ../fish/guestfish-actions.pod:4913
14373 msgid ""
14374 "I<Note:> Don't use this call to test for availability of features.  In "
14375 "enterprise distributions we backport features from later versions into "
14376 "earlier versions, making this an unreliable way to test for features.  Use "
14377 "L</available> instead."
14378 msgstr ""
14379
14380 #. type: =head2
14381 #: ../fish/guestfish-actions.pod:4919
14382 msgid "vfs-label"
14383 msgstr ""
14384
14385 #. type: verbatim
14386 #: ../fish/guestfish-actions.pod:4921
14387 #, no-wrap
14388 msgid ""
14389 " vfs-label device\n"
14390 "\n"
14391 msgstr ""
14392
14393 #. type: textblock
14394 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7389
14395 msgid "This returns the filesystem label of the filesystem on C<device>."
14396 msgstr ""
14397
14398 #. type: textblock
14399 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7392
14400 msgid "If the filesystem is unlabeled, this returns the empty string."
14401 msgstr ""
14402
14403 #. type: textblock
14404 #: ../fish/guestfish-actions.pod:4928
14405 msgid "To find a filesystem from the label, use L</findfs-label>."
14406 msgstr ""
14407
14408 #. type: =head2
14409 #: ../fish/guestfish-actions.pod:4930
14410 msgid "vfs-type"
14411 msgstr ""
14412
14413 #. type: verbatim
14414 #: ../fish/guestfish-actions.pod:4932
14415 #, no-wrap
14416 msgid ""
14417 " vfs-type device\n"
14418 "\n"
14419 msgstr ""
14420
14421 #. type: textblock
14422 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7407
14423 msgid ""
14424 "This command gets the filesystem type corresponding to the filesystem on "
14425 "C<device>."
14426 msgstr ""
14427
14428 #. type: textblock
14429 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7410
14430 msgid ""
14431 "For most filesystems, the result is the name of the Linux VFS module which "
14432 "would be used to mount this filesystem if you mounted it without specifying "
14433 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14434 msgstr ""
14435
14436 #. type: =head2
14437 #: ../fish/guestfish-actions.pod:4942
14438 msgid "vfs-uuid"
14439 msgstr ""
14440
14441 #. type: verbatim
14442 #: ../fish/guestfish-actions.pod:4944
14443 #, no-wrap
14444 msgid ""
14445 " vfs-uuid device\n"
14446 "\n"
14447 msgstr ""
14448
14449 #. type: textblock
14450 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7426
14451 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14452 msgstr ""
14453
14454 #. type: textblock
14455 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7429
14456 msgid "If the filesystem does not have a UUID, this returns the empty string."
14457 msgstr ""
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:4951
14461 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14462 msgstr ""
14463
14464 #. type: =head2
14465 #: ../fish/guestfish-actions.pod:4953
14466 msgid "vg-activate"
14467 msgstr ""
14468
14469 #. type: verbatim
14470 #: ../fish/guestfish-actions.pod:4955
14471 #, no-wrap
14472 msgid ""
14473 " vg-activate true|false 'volgroups ...'\n"
14474 "\n"
14475 msgstr ""
14476
14477 #. type: textblock
14478 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7445
14479 msgid ""
14480 "This command activates or (if C<activate> is false) deactivates all logical "
14481 "volumes in the listed volume groups C<volgroups>."
14482 msgstr ""
14483
14484 #. type: textblock
14485 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7448
14486 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14487 msgstr ""
14488
14489 #. type: textblock
14490 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7450
14491 msgid ""
14492 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14493 "activated or deactivated."
14494 msgstr ""
14495
14496 #. type: =head2
14497 #: ../fish/guestfish-actions.pod:4965
14498 msgid "vg-activate-all"
14499 msgstr ""
14500
14501 #. type: verbatim
14502 #: ../fish/guestfish-actions.pod:4967
14503 #, no-wrap
14504 msgid ""
14505 " vg-activate-all true|false\n"
14506 "\n"
14507 msgstr ""
14508
14509 #. type: textblock
14510 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7463
14511 msgid ""
14512 "This command activates or (if C<activate> is false) deactivates all logical "
14513 "volumes in all volume groups."
14514 msgstr ""
14515
14516 #. type: textblock
14517 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7466
14518 msgid "This command is the same as running C<vgchange -a y|n>"
14519 msgstr ""
14520
14521 #. type: =head2
14522 #: ../fish/guestfish-actions.pod:4974
14523 msgid "vgcreate"
14524 msgstr ""
14525
14526 #. type: verbatim
14527 #: ../fish/guestfish-actions.pod:4976
14528 #, no-wrap
14529 msgid ""
14530 " vgcreate volgroup 'physvols ...'\n"
14531 "\n"
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7479
14536 msgid ""
14537 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14538 "of physical volumes C<physvols>."
14539 msgstr ""
14540
14541 #. type: =head2
14542 #: ../fish/guestfish-actions.pod:4981
14543 msgid "vglvuuids"
14544 msgstr ""
14545
14546 #. type: verbatim
14547 #: ../fish/guestfish-actions.pod:4983
14548 #, no-wrap
14549 msgid ""
14550 " vglvuuids vgname\n"
14551 "\n"
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7492
14556 msgid ""
14557 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14558 "volumes created in this volume group."
14559 msgstr ""
14560
14561 #. type: textblock
14562 #: ../fish/guestfish-actions.pod:4988
14563 msgid ""
14564 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14565 "logical volumes and volume groups."
14566 msgstr ""
14567
14568 #. type: textblock
14569 #: ../fish/guestfish-actions.pod:4991
14570 msgid "See also L</vgpvuuids>."
14571 msgstr ""
14572
14573 #. type: =head2
14574 #: ../fish/guestfish-actions.pod:4993
14575 msgid "vgpvuuids"
14576 msgstr ""
14577
14578 #. type: verbatim
14579 #: ../fish/guestfish-actions.pod:4995
14580 #, no-wrap
14581 msgid ""
14582 " vgpvuuids vgname\n"
14583 "\n"
14584 msgstr ""
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:4997 ../src/guestfs-actions.pod:7512
14588 msgid ""
14589 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14590 "volumes that this volume group resides on."
14591 msgstr ""
14592
14593 #. type: textblock
14594 #: ../fish/guestfish-actions.pod:5000
14595 msgid ""
14596 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14597 "physical volumes and volume groups."
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../fish/guestfish-actions.pod:5003
14602 msgid "See also L</vglvuuids>."
14603 msgstr ""
14604
14605 #. type: =head2
14606 #: ../fish/guestfish-actions.pod:5005
14607 msgid "vgremove"
14608 msgstr ""
14609
14610 #. type: verbatim
14611 #: ../fish/guestfish-actions.pod:5007
14612 #, no-wrap
14613 msgid ""
14614 " vgremove vgname\n"
14615 "\n"
14616 msgstr ""
14617
14618 #. type: textblock
14619 #: ../fish/guestfish-actions.pod:5009 ../src/guestfs-actions.pod:7532
14620 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14621 msgstr ""
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:5011 ../src/guestfs-actions.pod:7534
14625 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14626 msgstr ""
14627
14628 #. type: =head2
14629 #: ../fish/guestfish-actions.pod:5014
14630 msgid "vgrename"
14631 msgstr ""
14632
14633 #. type: verbatim
14634 #: ../fish/guestfish-actions.pod:5016
14635 #, no-wrap
14636 msgid ""
14637 " vgrename volgroup newvolgroup\n"
14638 "\n"
14639 msgstr ""
14640
14641 #. type: textblock
14642 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7548
14643 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14644 msgstr ""
14645
14646 #. type: =head2
14647 #: ../fish/guestfish-actions.pod:5020
14648 msgid "vgs"
14649 msgstr ""
14650
14651 #. type: verbatim
14652 #: ../fish/guestfish-actions.pod:5022
14653 #, no-wrap
14654 msgid ""
14655 " vgs\n"
14656 "\n"
14657 msgstr ""
14658
14659 #. type: textblock
14660 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7559
14661 msgid ""
14662 "List all the volumes groups detected.  This is the equivalent of the "
14663 "L<vgs(8)> command."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:7562
14668 msgid ""
14669 "This returns a list of just the volume group names that were detected "
14670 "(eg. C<VolGroup00>)."
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:5030
14675 msgid "See also L</vgs-full>."
14676 msgstr ""
14677
14678 #. type: =head2
14679 #: ../fish/guestfish-actions.pod:5032
14680 msgid "vgs-full"
14681 msgstr ""
14682
14683 #. type: verbatim
14684 #: ../fish/guestfish-actions.pod:5034
14685 #, no-wrap
14686 msgid ""
14687 " vgs-full\n"
14688 "\n"
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7578
14693 msgid ""
14694 "List all the volumes groups detected.  This is the equivalent of the "
14695 "L<vgs(8)> command.  The \"full\" version includes all fields."
14696 msgstr ""
14697
14698 #. type: =head2
14699 #: ../fish/guestfish-actions.pod:5039
14700 msgid "vgscan"
14701 msgstr ""
14702
14703 #. type: verbatim
14704 #: ../fish/guestfish-actions.pod:5041
14705 #, no-wrap
14706 msgid ""
14707 " vgscan\n"
14708 "\n"
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7592
14713 msgid ""
14714 "This rescans all block devices and rebuilds the list of LVM physical "
14715 "volumes, volume groups and logical volumes."
14716 msgstr ""
14717
14718 #. type: =head2
14719 #: ../fish/guestfish-actions.pod:5046
14720 msgid "vguuid"
14721 msgstr ""
14722
14723 #. type: verbatim
14724 #: ../fish/guestfish-actions.pod:5048
14725 #, no-wrap
14726 msgid ""
14727 " vguuid vgname\n"
14728 "\n"
14729 msgstr ""
14730
14731 #. type: textblock
14732 #: ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:7605
14733 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14734 msgstr ""
14735
14736 #. type: =head2
14737 #: ../fish/guestfish-actions.pod:5052
14738 msgid "wc-c"
14739 msgstr ""
14740
14741 #. type: verbatim
14742 #: ../fish/guestfish-actions.pod:5054
14743 #, no-wrap
14744 msgid ""
14745 " wc-c path\n"
14746 "\n"
14747 msgstr ""
14748
14749 #. type: textblock
14750 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7645
14751 msgid ""
14752 "This command counts the characters in a file, using the C<wc -c> external "
14753 "command."
14754 msgstr ""
14755
14756 #. type: =head2
14757 #: ../fish/guestfish-actions.pod:5059
14758 msgid "wc-l"
14759 msgstr ""
14760
14761 #. type: verbatim
14762 #: ../fish/guestfish-actions.pod:5061
14763 #, no-wrap
14764 msgid ""
14765 " wc-l path\n"
14766 "\n"
14767 msgstr ""
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7658
14771 msgid ""
14772 "This command counts the lines in a file, using the C<wc -l> external "
14773 "command."
14774 msgstr ""
14775
14776 #. type: =head2
14777 #: ../fish/guestfish-actions.pod:5066
14778 msgid "wc-w"
14779 msgstr ""
14780
14781 #. type: verbatim
14782 #: ../fish/guestfish-actions.pod:5068
14783 #, no-wrap
14784 msgid ""
14785 " wc-w path\n"
14786 "\n"
14787 msgstr ""
14788
14789 #. type: textblock
14790 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7671
14791 msgid ""
14792 "This command counts the words in a file, using the C<wc -w> external "
14793 "command."
14794 msgstr ""
14795
14796 #. type: =head2
14797 #: ../fish/guestfish-actions.pod:5073
14798 msgid "write"
14799 msgstr ""
14800
14801 #. type: verbatim
14802 #: ../fish/guestfish-actions.pod:5075
14803 #, no-wrap
14804 msgid ""
14805 " write path content\n"
14806 "\n"
14807 msgstr ""
14808
14809 #. type: textblock
14810 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7686
14811 msgid ""
14812 "This call creates a file called C<path>.  The content of the file is the "
14813 "string C<content> (which can contain any 8 bit data)."
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:5080
14818 msgid "See also L</write-append>."
14819 msgstr ""
14820
14821 #. type: =head2
14822 #: ../fish/guestfish-actions.pod:5085
14823 msgid "write-append"
14824 msgstr ""
14825
14826 #. type: verbatim
14827 #: ../fish/guestfish-actions.pod:5087
14828 #, no-wrap
14829 msgid ""
14830 " write-append path content\n"
14831 "\n"
14832 msgstr ""
14833
14834 #. type: textblock
14835 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7706
14836 msgid ""
14837 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14838 "not exist, then a new file is created."
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../fish/guestfish-actions.pod:5092
14843 msgid "See also L</write>."
14844 msgstr ""
14845
14846 #. type: =head2
14847 #: ../fish/guestfish-actions.pod:5097
14848 msgid "write-file"
14849 msgstr ""
14850
14851 #. type: verbatim
14852 #: ../fish/guestfish-actions.pod:5099
14853 #, no-wrap
14854 msgid ""
14855 " write-file path content size\n"
14856 "\n"
14857 msgstr ""
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7733
14861 msgid ""
14862 "This call creates a file called C<path>.  The contents of the file is the "
14863 "string C<content> (which can contain any 8 bit data), with length C<size>."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7737
14868 msgid ""
14869 "As a special case, if C<size> is C<0> then the length is calculated using "
14870 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7741
14875 msgid ""
14876 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14877 "I<not> work, even if the length is specified."
14878 msgstr ""
14879
14880 #. type: textblock
14881 #: ../fish/guestfish-actions.pod:5115
14882 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
14883 msgstr ""
14884
14885 #. type: =head2
14886 #: ../fish/guestfish-actions.pod:5122
14887 msgid "zegrep"
14888 msgstr ""
14889
14890 #. type: verbatim
14891 #: ../fish/guestfish-actions.pod:5124
14892 #, no-wrap
14893 msgid ""
14894 " zegrep regex path\n"
14895 "\n"
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7758
14900 msgid "This calls the external C<zegrep> program and returns the matching lines."
14901 msgstr ""
14902
14903 #. type: =head2
14904 #: ../fish/guestfish-actions.pod:5132
14905 msgid "zegrepi"
14906 msgstr ""
14907
14908 #. type: verbatim
14909 #: ../fish/guestfish-actions.pod:5134
14910 #, no-wrap
14911 msgid ""
14912 " zegrepi regex path\n"
14913 "\n"
14914 msgstr ""
14915
14916 #. type: textblock
14917 #: ../fish/guestfish-actions.pod:5136 ../src/guestfs-actions.pod:7777
14918 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14919 msgstr ""
14920
14921 #. type: =head2
14922 #: ../fish/guestfish-actions.pod:5142
14923 msgid "zero"
14924 msgstr ""
14925
14926 #. type: verbatim
14927 #: ../fish/guestfish-actions.pod:5144
14928 #, no-wrap
14929 msgid ""
14930 " zero device\n"
14931 "\n"
14932 msgstr ""
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7795
14936 msgid "This command writes zeroes over the first few blocks of C<device>."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7797
14941 msgid ""
14942 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14943 "securely wipe the device).  It should be sufficient to remove any partition "
14944 "tables, filesystem superblocks and so on."
14945 msgstr ""
14946
14947 #. type: textblock
14948 #: ../fish/guestfish-actions.pod:5152 ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7801 ../src/guestfs-actions.pod:7827
14949 msgid ""
14950 "If blocks are already zero, then this command avoids writing zeroes.  This "
14951 "prevents the underlying device from becoming non-sparse or growing "
14952 "unnecessarily."
14953 msgstr ""
14954
14955 #. type: textblock
14956 #: ../fish/guestfish-actions.pod:5156
14957 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
14958 msgstr ""
14959
14960 #. type: =head2
14961 #: ../fish/guestfish-actions.pod:5159
14962 msgid "zero-device"
14963 msgstr ""
14964
14965 #. type: verbatim
14966 #: ../fish/guestfish-actions.pod:5161
14967 #, no-wrap
14968 msgid ""
14969 " zero-device device\n"
14970 "\n"
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:5163
14975 msgid ""
14976 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
14977 "which just zeroes the first few blocks of a device."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-actions.pod:5174
14982 msgid "zerofree"
14983 msgstr ""
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-actions.pod:5176
14987 #, no-wrap
14988 msgid ""
14989 " zerofree device\n"
14990 "\n"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7849
14995 msgid ""
14996 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14997 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14998 "possible to compress the filesystem more effectively."
14999 msgstr ""
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:5183 ../src/guestfs-actions.pod:7854
15003 msgid "You should B<not> run this program if the filesystem is mounted."
15004 msgstr ""
15005
15006 #. type: textblock
15007 #: ../fish/guestfish-actions.pod:5186 ../src/guestfs-actions.pod:7857
15008 msgid ""
15009 "It is possible that using this program can damage the filesystem or data on "
15010 "the filesystem."
15011 msgstr ""
15012
15013 #. type: =head2
15014 #: ../fish/guestfish-actions.pod:5189
15015 msgid "zfgrep"
15016 msgstr ""
15017
15018 #. type: verbatim
15019 #: ../fish/guestfish-actions.pod:5191
15020 #, no-wrap
15021 msgid ""
15022 " zfgrep pattern path\n"
15023 "\n"
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7871
15028 msgid "This calls the external C<zfgrep> program and returns the matching lines."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-actions.pod:5199
15033 msgid "zfgrepi"
15034 msgstr ""
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-actions.pod:5201
15038 #, no-wrap
15039 msgid ""
15040 " zfgrepi pattern path\n"
15041 "\n"
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7890
15046 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
15047 msgstr ""
15048
15049 #. type: =head2
15050 #: ../fish/guestfish-actions.pod:5209
15051 msgid "zfile"
15052 msgstr ""
15053
15054 #. type: verbatim
15055 #: ../fish/guestfish-actions.pod:5211
15056 #, no-wrap
15057 msgid ""
15058 " zfile meth path\n"
15059 "\n"
15060 msgstr ""
15061
15062 #. type: textblock
15063 #: ../fish/guestfish-actions.pod:5213 ../src/guestfs-actions.pod:7916
15064 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
15065 msgstr ""
15066
15067 #. type: textblock
15068 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7919
15069 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:5218
15074 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
15075 msgstr ""
15076
15077 #. type: textblock
15078 #: ../fish/guestfish-actions.pod:5221
15079 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
15080 msgstr ""
15081
15082 #. type: =head2
15083 #: ../fish/guestfish-actions.pod:5228
15084 msgid "zgrep"
15085 msgstr ""
15086
15087 #. type: verbatim
15088 #: ../fish/guestfish-actions.pod:5230
15089 #, no-wrap
15090 msgid ""
15091 " zgrep regex path\n"
15092 "\n"
15093 msgstr ""
15094
15095 #. type: textblock
15096 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:7936
15097 msgid "This calls the external C<zgrep> program and returns the matching lines."
15098 msgstr ""
15099
15100 #. type: =head2
15101 #: ../fish/guestfish-actions.pod:5238
15102 msgid "zgrepi"
15103 msgstr ""
15104
15105 #. type: verbatim
15106 #: ../fish/guestfish-actions.pod:5240
15107 #, no-wrap
15108 msgid ""
15109 " zgrepi regex path\n"
15110 "\n"
15111 msgstr ""
15112
15113 #. type: textblock
15114 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:7955
15115 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
15116 msgstr ""
15117
15118 #. type: =head2
15119 #: ../fish/guestfish-commands.pod:1
15120 msgid "alloc"
15121 msgstr ""
15122
15123 #. type: =head2
15124 #: ../fish/guestfish-commands.pod:3
15125 msgid "allocate"
15126 msgstr ""
15127
15128 #. type: verbatim
15129 #: ../fish/guestfish-commands.pod:5
15130 #, no-wrap
15131 msgid ""
15132 " alloc filename size\n"
15133 "\n"
15134 msgstr ""
15135
15136 #. type: textblock
15137 #: ../fish/guestfish-commands.pod:7
15138 msgid ""
15139 "This creates an empty (zeroed) file of the given size, and then adds so it "
15140 "can be further examined."
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
15145 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
15150 msgid "Size can be specified using standard suffixes, eg. C<1M>."
15151 msgstr ""
15152
15153 #. type: textblock
15154 #: ../fish/guestfish-commands.pod:14
15155 msgid ""
15156 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
15157 "image, see L</PREPARED DISK IMAGES>."
15158 msgstr ""
15159
15160 #. type: =head2
15161 #: ../fish/guestfish-commands.pod:17
15162 msgid "copy-in"
15163 msgstr ""
15164
15165 #. type: verbatim
15166 #: ../fish/guestfish-commands.pod:19
15167 #, no-wrap
15168 msgid ""
15169 " copy-in local [local ...] /remotedir\n"
15170 "\n"
15171 msgstr ""
15172
15173 #. type: textblock
15174 #: ../fish/guestfish-commands.pod:21
15175 msgid ""
15176 "C<copy-in> copies local files or directories recursively into the disk "
15177 "image, placing them in the directory called C</remotedir> (which must "
15178 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
15179 "other commands as necessary."
15180 msgstr ""
15181
15182 #. type: textblock
15183 #: ../fish/guestfish-commands.pod:26
15184 msgid ""
15185 "Multiple local files and directories can be specified, but the last "
15186 "parameter must always be a remote directory.  Wildcards cannot be used."
15187 msgstr ""
15188
15189 #. type: =head2
15190 #: ../fish/guestfish-commands.pod:30
15191 msgid "copy-out"
15192 msgstr ""
15193
15194 #. type: verbatim
15195 #: ../fish/guestfish-commands.pod:32
15196 #, no-wrap
15197 msgid ""
15198 " copy-out remote [remote ...] localdir\n"
15199 "\n"
15200 msgstr ""
15201
15202 #. type: textblock
15203 #: ../fish/guestfish-commands.pod:34
15204 msgid ""
15205 "C<copy-out> copies remote files or directories recursively out of the disk "
15206 "image, placing them on the host disk in a local directory called C<localdir> "
15207 "(which must exist).  This guestfish meta-command turns into a sequence of "
15208 "L</download>, L</tar-out> and other commands as necessary."
15209 msgstr ""
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-commands.pod:40
15213 msgid ""
15214 "Multiple remote files and directories can be specified, but the last "
15215 "parameter must always be a local directory.  To download to the current "
15216 "directory, use C<.> as in:"
15217 msgstr ""
15218
15219 #. type: verbatim
15220 #: ../fish/guestfish-commands.pod:44
15221 #, no-wrap
15222 msgid ""
15223 " copy-out /home .\n"
15224 "\n"
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-commands.pod:46
15229 msgid ""
15230 "Wildcards cannot be used in the ordinary command, but you can use them with "
15231 "the help of L</glob> like this:"
15232 msgstr ""
15233
15234 #. type: verbatim
15235 #: ../fish/guestfish-commands.pod:49
15236 #, no-wrap
15237 msgid ""
15238 " glob copy-out /home/* .\n"
15239 "\n"
15240 msgstr ""
15241
15242 #. type: =head2
15243 #: ../fish/guestfish-commands.pod:51
15244 msgid "display"
15245 msgstr ""
15246
15247 #. type: verbatim
15248 #: ../fish/guestfish-commands.pod:53
15249 #, no-wrap
15250 msgid ""
15251 " display filename\n"
15252 "\n"
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-commands.pod:55
15257 msgid ""
15258 "Use C<display> (a graphical display program) to display an image file.  It "
15259 "downloads the file, and runs C<display> on it."
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-commands.pod:58
15264 msgid ""
15265 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15266 "environment variable.  For example to use the GNOME display program:"
15267 msgstr ""
15268
15269 #. type: verbatim
15270 #: ../fish/guestfish-commands.pod:61
15271 #, no-wrap
15272 msgid ""
15273 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15274 "\n"
15275 msgstr ""
15276
15277 #. type: textblock
15278 #: ../fish/guestfish-commands.pod:63
15279 msgid "See also L<display(1)>."
15280 msgstr ""
15281
15282 #. type: =head2
15283 #: ../fish/guestfish-commands.pod:65
15284 msgid "echo"
15285 msgstr ""
15286
15287 #. type: verbatim
15288 #: ../fish/guestfish-commands.pod:67
15289 #, no-wrap
15290 msgid ""
15291 " echo [params ...]\n"
15292 "\n"
15293 msgstr ""
15294
15295 #. type: textblock
15296 #: ../fish/guestfish-commands.pod:69
15297 msgid "This echos the parameters to the terminal."
15298 msgstr ""
15299
15300 #. type: =head2
15301 #: ../fish/guestfish-commands.pod:71
15302 msgid "edit"
15303 msgstr ""
15304
15305 #. type: =head2
15306 #: ../fish/guestfish-commands.pod:73
15307 msgid "vi"
15308 msgstr ""
15309
15310 #. type: =head2
15311 #: ../fish/guestfish-commands.pod:75
15312 msgid "emacs"
15313 msgstr ""
15314
15315 #. type: verbatim
15316 #: ../fish/guestfish-commands.pod:77
15317 #, no-wrap
15318 msgid ""
15319 " edit filename\n"
15320 "\n"
15321 msgstr ""
15322
15323 #. type: textblock
15324 #: ../fish/guestfish-commands.pod:79
15325 msgid ""
15326 "This is used to edit a file.  It downloads the file, edits it locally using "
15327 "your editor, then uploads the result."
15328 msgstr ""
15329
15330 #. type: textblock
15331 #: ../fish/guestfish-commands.pod:82
15332 msgid ""
15333 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15334 "or C<emacs> you will get those corresponding editors."
15335 msgstr ""
15336
15337 #. type: =head2
15338 #: ../fish/guestfish-commands.pod:86
15339 msgid "glob"
15340 msgstr ""
15341
15342 #. type: verbatim
15343 #: ../fish/guestfish-commands.pod:88
15344 #, no-wrap
15345 msgid ""
15346 " glob command args...\n"
15347 "\n"
15348 msgstr ""
15349
15350 #. type: textblock
15351 #: ../fish/guestfish-commands.pod:90
15352 msgid ""
15353 "Expand wildcards in any paths in the args list, and run C<command> "
15354 "repeatedly on each matching path."
15355 msgstr ""
15356
15357 #. type: textblock
15358 #: ../fish/guestfish-commands.pod:93
15359 msgid "See L</WILDCARDS AND GLOBBING>."
15360 msgstr ""
15361
15362 #. type: =head2
15363 #: ../fish/guestfish-commands.pod:95
15364 msgid "hexedit"
15365 msgstr ""
15366
15367 #. type: verbatim
15368 #: ../fish/guestfish-commands.pod:97
15369 #, no-wrap
15370 msgid ""
15371 " hexedit <filename|device>\n"
15372 " hexedit <filename|device> <max>\n"
15373 " hexedit <filename|device> <start> <max>\n"
15374 "\n"
15375 msgstr ""
15376
15377 #. type: textblock
15378 #: ../fish/guestfish-commands.pod:101
15379 msgid ""
15380 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15381 "device."
15382 msgstr ""
15383
15384 #. type: textblock
15385 #: ../fish/guestfish-commands.pod:104
15386 msgid ""
15387 "This command works by downloading potentially the whole file or device, "
15388 "editing it locally, then uploading it.  If the file or device is large, you "
15389 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15390 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15391 "usual modifiers allowed such as C<1M> (1 megabyte)."
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-commands.pod:111
15396 msgid "For example to edit the first few sectors of a disk you might do:"
15397 msgstr ""
15398
15399 #. type: verbatim
15400 #: ../fish/guestfish-commands.pod:114
15401 #, no-wrap
15402 msgid ""
15403 " hexedit /dev/sda 1M\n"
15404 "\n"
15405 msgstr ""
15406
15407 #. type: textblock
15408 #: ../fish/guestfish-commands.pod:116
15409 msgid ""
15410 "which would allow you to edit anywhere within the first megabyte of the "
15411 "disk."
15412 msgstr ""
15413
15414 #. type: textblock
15415 #: ../fish/guestfish-commands.pod:119
15416 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15417 msgstr ""
15418
15419 #. type: verbatim
15420 #: ../fish/guestfish-commands.pod:121
15421 #, no-wrap
15422 msgid ""
15423 " hexedit /dev/sda1 0x400 0x400\n"
15424 "\n"
15425 msgstr ""
15426
15427 #. type: textblock
15428 #: ../fish/guestfish-commands.pod:123
15429 msgid "(assuming the superblock is in the standard location)."
15430 msgstr ""
15431
15432 #. type: textblock
15433 #: ../fish/guestfish-commands.pod:125
15434 msgid ""
15435 "This command requires the external L<hexedit(1)> program.  You can specify "
15436 "another program to use by setting the C<HEXEDITOR> environment variable."
15437 msgstr ""
15438
15439 #. type: textblock
15440 #: ../fish/guestfish-commands.pod:129
15441 msgid "See also L</hexdump>."
15442 msgstr ""
15443
15444 #. type: =head2
15445 #: ../fish/guestfish-commands.pod:131
15446 msgid "lcd"
15447 msgstr ""
15448
15449 #. type: verbatim
15450 #: ../fish/guestfish-commands.pod:133
15451 #, no-wrap
15452 msgid ""
15453 " lcd directory\n"
15454 "\n"
15455 msgstr ""
15456
15457 #. type: textblock
15458 #: ../fish/guestfish-commands.pod:135
15459 msgid "Change the local directory, ie. the current directory of guestfish itself."
15460 msgstr ""
15461
15462 #. type: textblock
15463 #: ../fish/guestfish-commands.pod:138
15464 msgid "Note that C<!cd> won't do what you might expect."
15465 msgstr ""
15466
15467 #. type: =head2
15468 #: ../fish/guestfish-commands.pod:140
15469 msgid "man"
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../fish/guestfish-commands.pod:142
15474 msgid "manual"
15475 msgstr ""
15476
15477 #. type: verbatim
15478 #: ../fish/guestfish-commands.pod:144
15479 #, no-wrap
15480 msgid ""
15481 "  man\n"
15482 "\n"
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-commands.pod:146
15487 msgid "Opens the manual page for guestfish."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-commands.pod:148
15492 msgid "more"
15493 msgstr ""
15494
15495 #. type: =head2
15496 #: ../fish/guestfish-commands.pod:150
15497 msgid "less"
15498 msgstr ""
15499
15500 #. type: verbatim
15501 #: ../fish/guestfish-commands.pod:152
15502 #, no-wrap
15503 msgid ""
15504 " more filename\n"
15505 "\n"
15506 msgstr ""
15507
15508 #. type: verbatim
15509 #: ../fish/guestfish-commands.pod:154
15510 #, no-wrap
15511 msgid ""
15512 " less filename\n"
15513 "\n"
15514 msgstr ""
15515
15516 #. type: textblock
15517 #: ../fish/guestfish-commands.pod:156
15518 msgid "This is used to view a file."
15519 msgstr ""
15520
15521 #. type: textblock
15522 #: ../fish/guestfish-commands.pod:158
15523 msgid ""
15524 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15525 "C<less> you will get the C<less> command specifically."
15526 msgstr ""
15527
15528 #. type: =head2
15529 #: ../fish/guestfish-commands.pod:161
15530 msgid "reopen"
15531 msgstr ""
15532
15533 #. type: verbatim
15534 #: ../fish/guestfish-commands.pod:163
15535 #, no-wrap
15536 msgid ""
15537 "  reopen\n"
15538 "\n"
15539 msgstr ""
15540
15541 #. type: textblock
15542 #: ../fish/guestfish-commands.pod:165
15543 msgid ""
15544 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15545 "normally, because the handle is closed properly when guestfish exits.  "
15546 "However this is occasionally useful for testing."
15547 msgstr ""
15548
15549 #. type: =head2
15550 #: ../fish/guestfish-commands.pod:169
15551 msgid "setenv"
15552 msgstr ""
15553
15554 #. type: verbatim
15555 #: ../fish/guestfish-commands.pod:171
15556 #, no-wrap
15557 msgid ""
15558 "  setenv VAR value\n"
15559 "\n"
15560 msgstr ""
15561
15562 #. type: textblock
15563 #: ../fish/guestfish-commands.pod:173
15564 msgid "Set the environment variable C<VAR> to the string C<value>."
15565 msgstr ""
15566
15567 #. type: textblock
15568 #: ../fish/guestfish-commands.pod:175
15569 msgid "To print the value of an environment variable use a shell command such as:"
15570 msgstr ""
15571
15572 #. type: verbatim
15573 #: ../fish/guestfish-commands.pod:178
15574 #, no-wrap
15575 msgid ""
15576 " !echo $VAR\n"
15577 "\n"
15578 msgstr ""
15579
15580 #. type: =head2
15581 #: ../fish/guestfish-commands.pod:180
15582 msgid "sparse"
15583 msgstr ""
15584
15585 #. type: verbatim
15586 #: ../fish/guestfish-commands.pod:182
15587 #, no-wrap
15588 msgid ""
15589 " sparse filename size\n"
15590 "\n"
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../fish/guestfish-commands.pod:184
15595 msgid ""
15596 "This creates an empty sparse file of the given size, and then adds so it can "
15597 "be further examined."
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish-commands.pod:187
15602 msgid ""
15603 "In all respects it works the same as the L</alloc> command, except that the "
15604 "image file is allocated sparsely, which means that disk blocks are not "
15605 "assigned to the file until they are needed.  Sparse disk files only use "
15606 "space when written to, but they are slower and there is a danger you could "
15607 "run out of real disk space during a write operation."
15608 msgstr ""
15609
15610 #. type: =head2
15611 #: ../fish/guestfish-commands.pod:197
15612 msgid "supported"
15613 msgstr ""
15614
15615 #. type: verbatim
15616 #: ../fish/guestfish-commands.pod:199
15617 #, no-wrap
15618 msgid ""
15619 " supported\n"
15620 "\n"
15621 msgstr ""
15622
15623 #. type: textblock
15624 #: ../fish/guestfish-commands.pod:201
15625 msgid ""
15626 "This command returns a list of the optional groups known to the daemon, and "
15627 "indicates which ones are supported by this build of the libguestfs "
15628 "appliance."
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-commands.pod:205
15633 msgid "See also L<guestfs(3)/AVAILABILITY>."
15634 msgstr ""
15635
15636 #. type: =head2
15637 #: ../fish/guestfish-commands.pod:207
15638 msgid "time"
15639 msgstr ""
15640
15641 #. type: verbatim
15642 #: ../fish/guestfish-commands.pod:209
15643 #, no-wrap
15644 msgid ""
15645 " time command args...\n"
15646 "\n"
15647 msgstr ""
15648
15649 #. type: textblock
15650 #: ../fish/guestfish-commands.pod:211
15651 msgid ""
15652 "Run the command as usual, but print the elapsed time afterwards.  This can "
15653 "be useful for benchmarking operations."
15654 msgstr ""
15655
15656 #. type: =head2
15657 #: ../fish/guestfish-commands.pod:214
15658 msgid "unsetenv"
15659 msgstr ""
15660
15661 #. type: verbatim
15662 #: ../fish/guestfish-commands.pod:216
15663 #, no-wrap
15664 msgid ""
15665 "  unsetenv VAR\n"
15666 "\n"
15667 msgstr ""
15668
15669 #. type: textblock
15670 #: ../fish/guestfish-commands.pod:218
15671 msgid "Remove C<VAR> from the environment."
15672 msgstr ""
15673
15674 #. type: textblock
15675 #: ../fish/guestfish.pod:5
15676 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15677 msgstr ""
15678
15679 #. type: verbatim
15680 #: ../fish/guestfish.pod:9
15681 #, no-wrap
15682 msgid ""
15683 " guestfish [--options] [commands]\n"
15684 "\n"
15685 msgstr ""
15686
15687 #. type: verbatim
15688 #: ../fish/guestfish.pod:11
15689 #, no-wrap
15690 msgid ""
15691 " guestfish\n"
15692 "\n"
15693 msgstr ""
15694
15695 #. type: verbatim
15696 #: ../fish/guestfish.pod:13
15697 #, no-wrap
15698 msgid ""
15699 " guestfish [--ro|--rw] -a disk.img\n"
15700 "\n"
15701 msgstr ""
15702
15703 #. type: verbatim
15704 #: ../fish/guestfish.pod:15
15705 #, no-wrap
15706 msgid ""
15707 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15708 "\n"
15709 msgstr ""
15710
15711 #. type: verbatim
15712 #: ../fish/guestfish.pod:17
15713 #, no-wrap
15714 msgid ""
15715 " guestfish -d libvirt-domain\n"
15716 "\n"
15717 msgstr ""
15718
15719 #. type: verbatim
15720 #: ../fish/guestfish.pod:19
15721 #, no-wrap
15722 msgid ""
15723 " guestfish [--ro|--rw] -a disk.img -i\n"
15724 "\n"
15725 msgstr ""
15726
15727 #. type: verbatim
15728 #: ../fish/guestfish.pod:21
15729 #, no-wrap
15730 msgid ""
15731 " guestfish -d libvirt-domain -i\n"
15732 "\n"
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish.pod:25
15737 msgid ""
15738 "Using guestfish in read/write mode on live virtual machines can be "
15739 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15740 "option to use guestfish safely if the disk image or virtual machine might be "
15741 "live."
15742 msgstr ""
15743
15744 #. type: textblock
15745 #: ../fish/guestfish.pod:32
15746 msgid ""
15747 "Guestfish is a shell and command-line tool for examining and modifying "
15748 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15749 "functionality of the guestfs API, see L<guestfs(3)>."
15750 msgstr ""
15751
15752 #. type: textblock
15753 #: ../fish/guestfish.pod:36
15754 msgid ""
15755 "Guestfish gives you structured access to the libguestfs API, from shell "
15756 "scripts or the command line or interactively.  If you want to rescue a "
15757 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15758 "command."
15759 msgstr ""
15760
15761 #. type: =head2
15762 #: ../fish/guestfish.pod:43
15763 msgid "As an interactive shell"
15764 msgstr ""
15765
15766 #. type: verbatim
15767 #: ../fish/guestfish.pod:45
15768 #, no-wrap
15769 msgid ""
15770 " $ guestfish\n"
15771 " \n"
15772 msgstr ""
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish.pod:47
15776 #, no-wrap
15777 msgid ""
15778 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15779 " editing virtual machine filesystems.\n"
15780 " \n"
15781 msgstr ""
15782
15783 #. type: verbatim
15784 #: ../fish/guestfish.pod:50
15785 #, no-wrap
15786 msgid ""
15787 " Type: 'help' for a list of commands\n"
15788 "       'man' to read the manual\n"
15789 "       'quit' to quit the shell\n"
15790 " \n"
15791 msgstr ""
15792
15793 #. type: verbatim
15794 #: ../fish/guestfish.pod:54
15795 #, no-wrap
15796 msgid ""
15797 " ><fs> add-ro disk.img\n"
15798 " ><fs> run\n"
15799 " ><fs> list-filesystems\n"
15800 " /dev/sda1: ext4\n"
15801 " /dev/vg_guest/lv_root: ext4\n"
15802 " /dev/vg_guest/lv_swap: swap\n"
15803 " ><fs> mount /dev/vg_guest/lv_root /\n"
15804 " ><fs> cat /etc/fstab\n"
15805 " # /etc/fstab\n"
15806 " # Created by anaconda\n"
15807 " [...]\n"
15808 " ><fs> exit\n"
15809 "\n"
15810 msgstr ""
15811
15812 #. type: =head2
15813 #: ../fish/guestfish.pod:67
15814 msgid "From shell scripts"
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish.pod:69
15819 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15820 msgstr ""
15821
15822 #. type: verbatim
15823 #: ../fish/guestfish.pod:71
15824 #, no-wrap
15825 msgid ""
15826 " guestfish <<_EOF_\n"
15827 " add disk.img\n"
15828 " run\n"
15829 " mount /dev/vg_guest/lv_root /\n"
15830 " write /etc/motd \"Welcome, new users\"\n"
15831 " _EOF_\n"
15832 "\n"
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish.pod:78
15837 msgid "List the LVM logical volumes in a disk image:"
15838 msgstr ""
15839
15840 #. type: verbatim
15841 #: ../fish/guestfish.pod:80
15842 #, no-wrap
15843 msgid ""
15844 " guestfish -a disk.img --ro <<_EOF_\n"
15845 " run\n"
15846 " lvs\n"
15847 " _EOF_\n"
15848 "\n"
15849 msgstr ""
15850
15851 #. type: textblock
15852 #: ../fish/guestfish.pod:85
15853 msgid "List all the filesystems in a disk image:"
15854 msgstr ""
15855
15856 #. type: verbatim
15857 #: ../fish/guestfish.pod:87
15858 #, no-wrap
15859 msgid ""
15860 " guestfish -a disk.img --ro <<_EOF_\n"
15861 " run\n"
15862 " list-filesystems\n"
15863 " _EOF_\n"
15864 "\n"
15865 msgstr ""
15866
15867 #. type: =head2
15868 #: ../fish/guestfish.pod:92
15869 msgid "On one command line"
15870 msgstr ""
15871
15872 #. type: textblock
15873 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15874 msgid "Update C</etc/resolv.conf> in a guest:"
15875 msgstr ""
15876
15877 #. type: verbatim
15878 #: ../fish/guestfish.pod:96
15879 #, no-wrap
15880 msgid ""
15881 " guestfish \\\n"
15882 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15883 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15884 "\n"
15885 msgstr ""
15886
15887 #. type: textblock
15888 #: ../fish/guestfish.pod:100
15889 msgid "Edit C</boot/grub/grub.conf> interactively:"
15890 msgstr ""
15891
15892 #. type: verbatim
15893 #: ../fish/guestfish.pod:102
15894 #, no-wrap
15895 msgid ""
15896 " guestfish --rw --add disk.img \\\n"
15897 "   --mount /dev/vg_guest/lv_root \\\n"
15898 "   --mount /dev/sda1:/boot \\\n"
15899 "   edit /boot/grub/grub.conf\n"
15900 "\n"
15901 msgstr ""
15902
15903 #. type: =head2
15904 #: ../fish/guestfish.pod:107
15905 msgid "Mount disks automatically"
15906 msgstr ""
15907
15908 #. type: textblock
15909 #: ../fish/guestfish.pod:109
15910 msgid ""
15911 "Use the I<-i> option to automatically mount the disks from a virtual "
15912 "machine:"
15913 msgstr ""
15914
15915 #. type: verbatim
15916 #: ../fish/guestfish.pod:112
15917 #, no-wrap
15918 msgid ""
15919 " guestfish --ro -a disk.img -i cat /etc/group\n"
15920 "\n"
15921 msgstr ""
15922
15923 #. type: verbatim
15924 #: ../fish/guestfish.pod:114
15925 #, no-wrap
15926 msgid ""
15927 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15928 "\n"
15929 msgstr ""
15930
15931 #. type: textblock
15932 #: ../fish/guestfish.pod:116
15933 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15934 msgstr ""
15935
15936 #. type: verbatim
15937 #: ../fish/guestfish.pod:118
15938 #, no-wrap
15939 msgid ""
15940 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15941 "\n"
15942 msgstr ""
15943
15944 #. type: =head2
15945 #: ../fish/guestfish.pod:120
15946 msgid "As a script interpreter"
15947 msgstr ""
15948
15949 #. type: textblock
15950 #: ../fish/guestfish.pod:122
15951 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15952 msgstr ""
15953
15954 #. type: verbatim
15955 #: ../fish/guestfish.pod:124
15956 #, no-wrap
15957 msgid ""
15958 " #!/usr/bin/guestfish -f\n"
15959 " sparse test1.img 100M\n"
15960 " run\n"
15961 " part-disk /dev/sda mbr\n"
15962 " mkfs ext2 /dev/sda1\n"
15963 "\n"
15964 msgstr ""
15965
15966 #. type: =head2
15967 #: ../fish/guestfish.pod:130
15968 msgid "Start with a prepared disk"
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish.pod:132
15973 msgid ""
15974 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15975 "single ext2-formatted partition:"
15976 msgstr ""
15977
15978 #. type: verbatim
15979 #: ../fish/guestfish.pod:135
15980 #, no-wrap
15981 msgid ""
15982 " guestfish -N fs\n"
15983 "\n"
15984 msgstr ""
15985
15986 #. type: textblock
15987 #: ../fish/guestfish.pod:137
15988 msgid "To list what is available do:"
15989 msgstr ""
15990
15991 #. type: verbatim
15992 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
15993 #, no-wrap
15994 msgid ""
15995 " guestfish -N help | less\n"
15996 "\n"
15997 msgstr ""
15998
15999 #. type: =head2
16000 #: ../fish/guestfish.pod:141
16001 msgid "Remote control"
16002 msgstr ""
16003
16004 #. type: verbatim
16005 #: ../fish/guestfish.pod:143
16006 #, no-wrap
16007 msgid ""
16008 " eval \"`guestfish --listen`\"\n"
16009 " guestfish --remote add-ro disk.img\n"
16010 " guestfish --remote run\n"
16011 " guestfish --remote lvs\n"
16012 "\n"
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish.pod:154
16017 msgid "Displays general help on options."
16018 msgstr ""
16019
16020 #. type: =item
16021 #: ../fish/guestfish.pod:158
16022 msgid "B<--cmd-help>"
16023 msgstr ""
16024
16025 #. type: textblock
16026 #: ../fish/guestfish.pod:160
16027 msgid "Lists all available guestfish commands."
16028 msgstr ""
16029
16030 #. type: =item
16031 #: ../fish/guestfish.pod:162
16032 msgid "B<-h cmd>"
16033 msgstr ""
16034
16035 #. type: =item
16036 #: ../fish/guestfish.pod:164
16037 msgid "B<--cmd-help cmd>"
16038 msgstr ""
16039
16040 #. type: textblock
16041 #: ../fish/guestfish.pod:166
16042 msgid "Displays detailed help on a single command C<cmd>."
16043 msgstr ""
16044
16045 #. type: =item
16046 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
16047 msgid "B<-a image>"
16048 msgstr ""
16049
16050 #. type: =item
16051 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
16052 msgid "B<--add image>"
16053 msgstr ""
16054
16055 #. type: textblock
16056 #: ../fish/guestfish.pod:172
16057 msgid "Add a block device or virtual machine image to the shell."
16058 msgstr ""
16059
16060 #. type: textblock
16061 #: ../fish/guestfish.pod:177
16062 msgid ""
16063 "Using this flag is mostly equivalent to using the C<add> command, with "
16064 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
16065 "the I<--format=...> flag was given."
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
16070 msgid ""
16071 "When used in conjunction with the I<-d> option, this specifies the libvirt "
16072 "URI to use.  The default is to use the default libvirt connection."
16073 msgstr ""
16074
16075 #. type: =item
16076 #: ../fish/guestfish.pod:189
16077 msgid "B<--csh>"
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../fish/guestfish.pod:191
16082 msgid ""
16083 "If using the I<--listen> option and a csh-like shell, use this option.  See "
16084 "section L</REMOTE CONTROL AND CSH> below."
16085 msgstr ""
16086
16087 #. type: =item
16088 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
16089 msgid "B<-d libvirt-domain>"
16090 msgstr ""
16091
16092 #. type: =item
16093 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
16094 msgid "B<--domain libvirt-domain>"
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
16099 msgid ""
16100 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
16101 "used, then any libvirt domain can be used.  However in write mode, only "
16102 "libvirt domains which are shut down can be named here."
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
16107 msgid "Domain UUIDs can be used instead of names."
16108 msgstr ""
16109
16110 #. type: textblock
16111 #: ../fish/guestfish.pod:204
16112 msgid ""
16113 "Using this flag is mostly equivalent to using the C<add-domain> command, "
16114 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
16115 "if the I<--format:...> flag was given."
16116 msgstr ""
16117
16118 #. type: =item
16119 #: ../fish/guestfish.pod:208
16120 msgid "B<-D>"
16121 msgstr ""
16122
16123 #. type: =item
16124 #: ../fish/guestfish.pod:210
16125 msgid "B<--no-dest-paths>"
16126 msgstr ""
16127
16128 #. type: textblock
16129 #: ../fish/guestfish.pod:212
16130 msgid ""
16131 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
16132 "to hit the tab key to complete paths on the guest filesystem, but this "
16133 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
16134 "allow this feature to be disabled."
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
16139 msgid ""
16140 "When prompting for keys and passphrases, guestfish normally turns echoing "
16141 "off so you cannot see what you are typing.  If you are not worried about "
16142 "Tempest attacks and there is no one else in the room you can specify this "
16143 "flag to see what you are typing."
16144 msgstr ""
16145
16146 #. type: =item
16147 #: ../fish/guestfish.pod:224
16148 msgid "B<-f file>"
16149 msgstr ""
16150
16151 #. type: =item
16152 #: ../fish/guestfish.pod:226
16153 msgid "B<--file file>"
16154 msgstr ""
16155
16156 #. type: textblock
16157 #: ../fish/guestfish.pod:228
16158 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
16159 msgstr ""
16160
16161 #. type: verbatim
16162 #: ../fish/guestfish.pod:231
16163 #, no-wrap
16164 msgid ""
16165 " #!/usr/bin/guestfish -f\n"
16166 "\n"
16167 msgstr ""
16168
16169 #. type: verbatim
16170 #: ../fish/guestfish.pod:244
16171 #, no-wrap
16172 msgid ""
16173 " guestfish --format=raw -a disk.img\n"
16174 "\n"
16175 msgstr ""
16176
16177 #. type: verbatim
16178 #: ../fish/guestfish.pod:248
16179 #, no-wrap
16180 msgid ""
16181 " guestfish --format=raw -a disk.img --format -a another.img\n"
16182 "\n"
16183 msgstr ""
16184
16185 #. type: textblock
16186 #: ../fish/guestfish.pod:253
16187 msgid ""
16188 "If you have untrusted raw-format guest disk images, you should use this "
16189 "option to specify the disk format.  This avoids a possible security problem "
16190 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
16191 msgstr ""
16192
16193 #. type: =item
16194 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
16195 msgid "B<--inspector>"
16196 msgstr ""
16197
16198 #. type: textblock
16199 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
16200 msgid ""
16201 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
16202 "system and mount filesystems as they would be mounted on the real virtual "
16203 "machine."
16204 msgstr ""
16205
16206 #. type: textblock
16207 #: ../fish/guestfish.pod:266
16208 msgid "Typical usage is either:"
16209 msgstr ""
16210
16211 #. type: verbatim
16212 #: ../fish/guestfish.pod:268
16213 #, no-wrap
16214 msgid ""
16215 " guestfish -d myguest -i\n"
16216 "\n"
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish.pod:270
16221 msgid "(for an inactive libvirt domain called I<myguest>), or:"
16222 msgstr ""
16223
16224 #. type: verbatim
16225 #: ../fish/guestfish.pod:272
16226 #, no-wrap
16227 msgid ""
16228 " guestfish --ro -d myguest -i\n"
16229 "\n"
16230 msgstr ""
16231
16232 #. type: textblock
16233 #: ../fish/guestfish.pod:274
16234 msgid "(for active domains, readonly), or specify the block device directly:"
16235 msgstr ""
16236
16237 #. type: verbatim
16238 #: ../fish/guestfish.pod:276
16239 #, no-wrap
16240 msgid ""
16241 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16242 "\n"
16243 msgstr ""
16244
16245 #. type: textblock
16246 #: ../fish/guestfish.pod:278
16247 msgid ""
16248 "Note that the command line syntax changed slightly over older versions of "
16249 "guestfish.  You can still use the old syntax:"
16250 msgstr ""
16251
16252 #. type: verbatim
16253 #: ../fish/guestfish.pod:281
16254 #, no-wrap
16255 msgid ""
16256 " guestfish [--ro] -i disk.img\n"
16257 "\n"
16258 msgstr ""
16259
16260 #. type: verbatim
16261 #: ../fish/guestfish.pod:283
16262 #, no-wrap
16263 msgid ""
16264 " guestfish [--ro] -i libvirt-domain\n"
16265 "\n"
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish.pod:285
16270 msgid ""
16271 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16272 "then using other commands to mount the filesystems that were found."
16273 msgstr ""
16274
16275 #. type: =item
16276 #: ../fish/guestfish.pod:294
16277 msgid "B<--listen>"
16278 msgstr ""
16279
16280 #. type: textblock
16281 #: ../fish/guestfish.pod:296
16282 msgid ""
16283 "Fork into the background and listen for remote commands.  See section "
16284 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16285 msgstr ""
16286
16287 #. type: =item
16288 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16289 msgid "B<--live>"
16290 msgstr ""
16291
16292 #. type: textblock
16293 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16294 msgid ""
16295 "Connect to a live virtual machine.  (Experimental, see "
16296 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16297 msgstr ""
16298
16299 #. type: =item
16300 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16301 msgid "B<-m dev[:mountpoint[:options]]>"
16302 msgstr ""
16303
16304 #. type: =item
16305 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16306 msgid "B<--mount dev[:mountpoint[:options]]>"
16307 msgstr ""
16308
16309 #. type: textblock
16310 #: ../fish/guestfish.pod:308
16311 msgid "Mount the named partition or logical volume on the given mountpoint."
16312 msgstr ""
16313
16314 #. type: textblock
16315 #: ../fish/guestfish.pod:310
16316 msgid "If the mountpoint is omitted, it defaults to C</>."
16317 msgstr ""
16318
16319 #. type: textblock
16320 #: ../fish/guestfish.pod:312
16321 msgid "You have to mount something on C</> before most commands will work."
16322 msgstr ""
16323
16324 #. type: textblock
16325 #: ../fish/guestfish.pod:314
16326 msgid ""
16327 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16328 "launched."
16329 msgstr ""
16330
16331 #. type: textblock
16332 #: ../fish/guestfish.pod:317
16333 msgid ""
16334 "If you don't know what filesystems a disk image contains, you can either run "
16335 "guestfish without this option, then list the partitions, filesystems and LVs "
16336 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16337 "commands), or you can use the L<virt-filesystems(1)> program."
16338 msgstr ""
16339
16340 #. type: textblock
16341 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16342 msgid ""
16343 "The third (and rarely used) part of the mount parameter is the list of mount "
16344 "options used to mount the underlying filesystem.  If this is not given, then "
16345 "the mount options are either the empty string or C<ro> (the latter if the "
16346 "I<--ro> flag is used).  By specifying the mount options, you override this "
16347 "default choice.  Probably the only time you would use this is to enable ACLs "
16348 "and/or extended attributes if the filesystem can support them:"
16349 msgstr ""
16350
16351 #. type: verbatim
16352 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16353 #, no-wrap
16354 msgid ""
16355 " -m /dev/sda1:/:acl,user_xattr\n"
16356 "\n"
16357 msgstr ""
16358
16359 #. type: textblock
16360 #: ../fish/guestfish.pod:333
16361 msgid "Using this flag is equivalent to using the C<mount-options> command."
16362 msgstr ""
16363
16364 #. type: =item
16365 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:358
16366 msgid "B<-n>"
16367 msgstr ""
16368
16369 #. type: =item
16370 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16371 msgid "B<--no-sync>"
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish.pod:339
16376 msgid ""
16377 "Disable autosync.  This is enabled by default.  See the discussion of "
16378 "autosync in the L<guestfs(3)> manpage."
16379 msgstr ""
16380
16381 #. type: =item
16382 #: ../fish/guestfish.pod:342
16383 msgid "B<-N type>"
16384 msgstr ""
16385
16386 #. type: =item
16387 #: ../fish/guestfish.pod:344
16388 msgid "B<--new type>"
16389 msgstr ""
16390
16391 #. type: =item
16392 #: ../fish/guestfish.pod:346
16393 msgid "B<-N help>"
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish.pod:348
16398 msgid ""
16399 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16400 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16401 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16402 "IMAGES> below."
16403 msgstr ""
16404
16405 #. type: =item
16406 #: ../fish/guestfish.pod:353
16407 msgid "B<--progress-bars>"
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish.pod:355
16412 msgid "Enable progress bars, even when guestfish is used non-interactively."
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish.pod:357
16417 msgid ""
16418 "Progress bars are enabled by default when guestfish is used as an "
16419 "interactive shell."
16420 msgstr ""
16421
16422 #. type: =item
16423 #: ../fish/guestfish.pod:360
16424 msgid "B<--no-progress-bars>"
16425 msgstr ""
16426
16427 #. type: textblock
16428 #: ../fish/guestfish.pod:362
16429 msgid "Disable progress bars."
16430 msgstr ""
16431
16432 #. type: =item
16433 #: ../fish/guestfish.pod:364
16434 msgid "B<--remote[=pid]>"
16435 msgstr ""
16436
16437 #. type: textblock
16438 #: ../fish/guestfish.pod:366
16439 msgid ""
16440 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16441 "CONTROL GUESTFISH OVER A SOCKET> below."
16442 msgstr ""
16443
16444 #. type: =item
16445 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16446 msgid "B<-r>"
16447 msgstr ""
16448
16449 #. type: =item
16450 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16451 msgid "B<--ro>"
16452 msgstr ""
16453
16454 #. type: textblock
16455 #: ../fish/guestfish.pod:373
16456 msgid ""
16457 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16458 "mounts are done read-only."
16459 msgstr ""
16460
16461 #. type: textblock
16462 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16463 msgid ""
16464 "The option must always be used if the disk image or virtual machine might be "
16465 "running, and is generally recommended in cases where you don't need write "
16466 "access to the disk."
16467 msgstr ""
16468
16469 #. type: textblock
16470 #: ../fish/guestfish.pod:380
16471 msgid ""
16472 "Note that prepared disk images created with I<-N> are not affected by this "
16473 "option.  Also commands like C<add> are not affected - you have to specify "
16474 "the C<readonly:true> option explicitly if you need it."
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish.pod:384
16479 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16480 msgstr ""
16481
16482 #. type: =item
16483 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16484 msgid "B<--selinux>"
16485 msgstr ""
16486
16487 #. type: textblock
16488 #: ../fish/guestfish.pod:388
16489 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish.pod:394
16494 msgid ""
16495 "Enable very verbose messages.  This is particularly useful if you find a "
16496 "bug."
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../fish/guestfish.pod:401
16501 msgid "Display the guestfish / libguestfs version number and exit."
16502 msgstr ""
16503
16504 #. type: =item
16505 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:190
16506 msgid "B<-w>"
16507 msgstr ""
16508
16509 #. type: =item
16510 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:192
16511 msgid "B<--rw>"
16512 msgstr ""
16513
16514 #. type: textblock
16515 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16516 msgid ""
16517 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16518 "mounts are done read-write."
16519 msgstr ""
16520
16521 #. type: textblock
16522 #: ../fish/guestfish.pod:410
16523 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish.pod:414
16528 msgid "Echo each command before executing it."
16529 msgstr ""
16530
16531 #. type: =head1
16532 #: ../fish/guestfish.pod:418
16533 msgid "COMMANDS ON COMMAND LINE"
16534 msgstr ""
16535
16536 #. type: textblock
16537 #: ../fish/guestfish.pod:420
16538 msgid "Any additional (non-option) arguments are treated as commands to execute."
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish.pod:423
16543 msgid ""
16544 "Commands to execute should be separated by a colon (C<:>), where the colon "
16545 "is a separate parameter.  Thus:"
16546 msgstr ""
16547
16548 #. type: verbatim
16549 #: ../fish/guestfish.pod:426
16550 #, no-wrap
16551 msgid ""
16552 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16553 "\n"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish.pod:428
16558 msgid ""
16559 "If there are no additional arguments, then we enter a shell, either an "
16560 "interactive shell with a prompt (if the input is a terminal) or a "
16561 "non-interactive shell."
16562 msgstr ""
16563
16564 #. type: textblock
16565 #: ../fish/guestfish.pod:432
16566 msgid ""
16567 "In either command line mode or non-interactive shell, the first command that "
16568 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16569 "prompt) if a command fails, you can continue to enter commands."
16570 msgstr ""
16571
16572 #. type: =head1
16573 #: ../fish/guestfish.pod:437
16574 msgid "USING launch (OR run)"
16575 msgstr ""
16576
16577 #. type: textblock
16578 #: ../fish/guestfish.pod:439
16579 msgid ""
16580 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16581 "then launch it, then mount any disks you need, and finally issue "
16582 "actions/commands.  So the general order of the day is:"
16583 msgstr ""
16584
16585 #. type: textblock
16586 #: ../fish/guestfish.pod:447
16587 msgid "add or -a/--add"
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish.pod:451
16592 msgid "launch (aka run)"
16593 msgstr ""
16594
16595 #. type: textblock
16596 #: ../fish/guestfish.pod:455
16597 msgid "mount or -m/--mount"
16598 msgstr ""
16599
16600 #. type: textblock
16601 #: ../fish/guestfish.pod:459
16602 msgid "any other commands"
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish.pod:463
16607 msgid ""
16608 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16609 "guest before mounting or performing any other commands."
16610 msgstr ""
16611
16612 #. type: textblock
16613 #: ../fish/guestfish.pod:466
16614 msgid ""
16615 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16616 "I<--new> options were given then C<run> is done automatically, simply "
16617 "because guestfish can't perform the action you asked for without doing this."
16618 msgstr ""
16619
16620 #. type: =head1
16621 #: ../fish/guestfish.pod:471
16622 msgid "OPENING DISKS FOR READ AND WRITE"
16623 msgstr ""
16624
16625 #. type: textblock
16626 #: ../fish/guestfish.pod:473
16627 msgid ""
16628 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16629 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16630 "I<-i> and I<-m> open disk images read-only or for writing."
16631 msgstr ""
16632
16633 #. type: textblock
16634 #: ../fish/guestfish.pod:478
16635 msgid ""
16636 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16637 "opening disk images supplied on the command line for write.  To open a disk "
16638 "image read-only you have to do I<-a image --ro>."
16639 msgstr ""
16640
16641 #. type: textblock
16642 #: ../fish/guestfish.pod:482
16643 msgid ""
16644 "This matters: If you accidentally open a live VM disk image writable then "
16645 "you will cause irreversible disk corruption."
16646 msgstr ""
16647
16648 #. type: textblock
16649 #: ../fish/guestfish.pod:485
16650 msgid ""
16651 "In a future libguestfs we intend to change the default the other way.  Disk "
16652 "images will be opened read-only.  You will have to either specify "
16653 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16654 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16655 "access for disk images specified by those other command line options."
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish.pod:492
16660 msgid ""
16661 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16662 "which does nothing (it is already the default).  However it is highly "
16663 "recommended that you use this option to indicate that you need write access, "
16664 "and prepare your scripts for the day when this option will be required for "
16665 "write access."
16666 msgstr ""
16667
16668 #. type: textblock
16669 #: ../fish/guestfish.pod:498
16670 msgid ""
16671 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16672 "other libguestfs program apart from guestfish and guestmount."
16673 msgstr ""
16674
16675 #. type: =head1
16676 #: ../fish/guestfish.pod:501
16677 msgid "QUOTING"
16678 msgstr ""
16679
16680 #. type: textblock
16681 #: ../fish/guestfish.pod:503
16682 msgid ""
16683 "You can quote ordinary parameters using either single or double quotes.  For "
16684 "example:"
16685 msgstr ""
16686
16687 #. type: verbatim
16688 #: ../fish/guestfish.pod:506
16689 #, no-wrap
16690 msgid ""
16691 " add \"file with a space.img\"\n"
16692 "\n"
16693 msgstr ""
16694
16695 #. type: verbatim
16696 #: ../fish/guestfish.pod:508
16697 #, no-wrap
16698 msgid ""
16699 " rm '/file name'\n"
16700 "\n"
16701 msgstr ""
16702
16703 #. type: verbatim
16704 #: ../fish/guestfish.pod:510
16705 #, no-wrap
16706 msgid ""
16707 " rm '/\"'\n"
16708 "\n"
16709 msgstr ""
16710
16711 #. type: textblock
16712 #: ../fish/guestfish.pod:512
16713 msgid ""
16714 "A few commands require a list of strings to be passed.  For these, use a "
16715 "whitespace-separated list, enclosed in quotes.  Strings containing "
16716 "whitespace to be passed through must be enclosed in single quotes.  A "
16717 "literal single quote must be escaped with a backslash."
16718 msgstr ""
16719
16720 #. type: verbatim
16721 #: ../fish/guestfish.pod:517
16722 #, no-wrap
16723 msgid ""
16724 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16725 " command \"/bin/echo 'foo      bar'\"\n"
16726 " command \"/bin/echo \\'foo\\'\"\n"
16727 "\n"
16728 msgstr ""
16729
16730 #. type: =head2
16731 #: ../fish/guestfish.pod:521
16732 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16733 msgstr ""
16734
16735 #. type: textblock
16736 #: ../fish/guestfish.pod:523
16737 msgid ""
16738 "In double-quoted arguments (only) use backslash to insert special "
16739 "characters:"
16740 msgstr ""
16741
16742 #. type: =item
16743 #: ../fish/guestfish.pod:528
16744 msgid "C<\\a>"
16745 msgstr ""
16746
16747 #. type: textblock
16748 #: ../fish/guestfish.pod:530
16749 msgid "Alert (bell) character."
16750 msgstr ""
16751
16752 #. type: =item
16753 #: ../fish/guestfish.pod:532
16754 msgid "C<\\b>"
16755 msgstr ""
16756
16757 #. type: textblock
16758 #: ../fish/guestfish.pod:534
16759 msgid "Backspace character."
16760 msgstr ""
16761
16762 #. type: =item
16763 #: ../fish/guestfish.pod:536
16764 msgid "C<\\f>"
16765 msgstr ""
16766
16767 #. type: textblock
16768 #: ../fish/guestfish.pod:538
16769 msgid "Form feed character."
16770 msgstr ""
16771
16772 #. type: =item
16773 #: ../fish/guestfish.pod:540
16774 msgid "C<\\n>"
16775 msgstr ""
16776
16777 #. type: textblock
16778 #: ../fish/guestfish.pod:542
16779 msgid "Newline character."
16780 msgstr ""
16781
16782 #. type: =item
16783 #: ../fish/guestfish.pod:544
16784 msgid "C<\\r>"
16785 msgstr ""
16786
16787 #. type: textblock
16788 #: ../fish/guestfish.pod:546
16789 msgid "Carriage return character."
16790 msgstr ""
16791
16792 #. type: =item
16793 #: ../fish/guestfish.pod:548
16794 msgid "C<\\t>"
16795 msgstr ""
16796
16797 #. type: textblock
16798 #: ../fish/guestfish.pod:550
16799 msgid "Horizontal tab character."
16800 msgstr ""
16801
16802 #. type: =item
16803 #: ../fish/guestfish.pod:552
16804 msgid "C<\\v>"
16805 msgstr ""
16806
16807 #. type: textblock
16808 #: ../fish/guestfish.pod:554
16809 msgid "Vertical tab character."
16810 msgstr ""
16811
16812 #. type: =item
16813 #: ../fish/guestfish.pod:556
16814 msgid "C<\\\">"
16815 msgstr ""
16816
16817 #. type: textblock
16818 #: ../fish/guestfish.pod:558
16819 msgid "A literal double quote character."
16820 msgstr ""
16821
16822 #. type: =item
16823 #: ../fish/guestfish.pod:560
16824 msgid "C<\\ooo>"
16825 msgstr ""
16826
16827 #. type: textblock
16828 #: ../fish/guestfish.pod:562
16829 msgid ""
16830 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16831 "(unlike C)."
16832 msgstr ""
16833
16834 #. type: =item
16835 #: ../fish/guestfish.pod:565
16836 msgid "C<\\xhh>"
16837 msgstr ""
16838
16839 #. type: textblock
16840 #: ../fish/guestfish.pod:567
16841 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16842 msgstr ""
16843
16844 #. type: textblock
16845 #: ../fish/guestfish.pod:570
16846 msgid ""
16847 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16848 "strings."
16849 msgstr ""
16850
16851 #. type: =item
16852 #: ../fish/guestfish.pod:573
16853 msgid "C<\\\\>"
16854 msgstr ""
16855
16856 #. type: textblock
16857 #: ../fish/guestfish.pod:575
16858 msgid "A literal backslash character."
16859 msgstr ""
16860
16861 #. type: =head1
16862 #: ../fish/guestfish.pod:579
16863 msgid "OPTIONAL ARGUMENTS"
16864 msgstr ""
16865
16866 #. type: textblock
16867 #: ../fish/guestfish.pod:581
16868 msgid ""
16869 "Some commands take optional arguments.  These arguments appear in this "
16870 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16871 msgstr ""
16872
16873 #. type: verbatim
16874 #: ../fish/guestfish.pod:585
16875 #, no-wrap
16876 msgid ""
16877 " add-drive-opts filename\n"
16878 "\n"
16879 msgstr ""
16880
16881 #. type: verbatim
16882 #: ../fish/guestfish.pod:587
16883 #, no-wrap
16884 msgid ""
16885 " add-drive-opts filename readonly:true\n"
16886 "\n"
16887 msgstr ""
16888
16889 #. type: verbatim
16890 #: ../fish/guestfish.pod:589
16891 #, no-wrap
16892 msgid ""
16893 " add-drive-opts filename format:qcow2 readonly:false\n"
16894 "\n"
16895 msgstr ""
16896
16897 #. type: textblock
16898 #: ../fish/guestfish.pod:591
16899 msgid ""
16900 "Each optional argument can appear at most once.  All optional arguments must "
16901 "appear after the required ones."
16902 msgstr ""
16903
16904 #. type: =head1
16905 #: ../fish/guestfish.pod:594
16906 msgid "NUMBERS"
16907 msgstr ""
16908
16909 #. type: textblock
16910 #: ../fish/guestfish.pod:596
16911 msgid "This section applies to all commands which can take integers as parameters."
16912 msgstr ""
16913
16914 #. type: =head2
16915 #: ../fish/guestfish.pod:599
16916 msgid "SIZE SUFFIX"
16917 msgstr ""
16918
16919 #. type: textblock
16920 #: ../fish/guestfish.pod:601
16921 msgid ""
16922 "When the command takes a parameter measured in bytes, you can use one of the "
16923 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16924 msgstr ""
16925
16926 #. type: =item
16927 #: ../fish/guestfish.pod:607
16928 msgid "B<k> or B<K> or B<KiB>"
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish.pod:609
16933 msgid "The size in kilobytes (multiplied by 1024)."
16934 msgstr ""
16935
16936 #. type: =item
16937 #: ../fish/guestfish.pod:611
16938 msgid "B<KB>"
16939 msgstr ""
16940
16941 #. type: textblock
16942 #: ../fish/guestfish.pod:613
16943 msgid "The size in SI 1000 byte units."
16944 msgstr ""
16945
16946 #. type: =item
16947 #: ../fish/guestfish.pod:615
16948 msgid "B<M> or B<MiB>"
16949 msgstr ""
16950
16951 #. type: textblock
16952 #: ../fish/guestfish.pod:617
16953 msgid "The size in megabytes (multiplied by 1048576)."
16954 msgstr ""
16955
16956 #. type: =item
16957 #: ../fish/guestfish.pod:619
16958 msgid "B<MB>"
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish.pod:621
16963 msgid "The size in SI 1000000 byte units."
16964 msgstr ""
16965
16966 #. type: =item
16967 #: ../fish/guestfish.pod:623
16968 msgid "B<G> or B<GiB>"
16969 msgstr ""
16970
16971 #. type: textblock
16972 #: ../fish/guestfish.pod:625
16973 msgid "The size in gigabytes (multiplied by 2**30)."
16974 msgstr ""
16975
16976 #. type: =item
16977 #: ../fish/guestfish.pod:627
16978 msgid "B<GB>"
16979 msgstr ""
16980
16981 #. type: textblock
16982 #: ../fish/guestfish.pod:629
16983 msgid "The size in SI 10**9 byte units."
16984 msgstr ""
16985
16986 #. type: =item
16987 #: ../fish/guestfish.pod:631
16988 msgid "B<T> or B<TiB>"
16989 msgstr ""
16990
16991 #. type: textblock
16992 #: ../fish/guestfish.pod:633
16993 msgid "The size in terabytes (multiplied by 2**40)."
16994 msgstr ""
16995
16996 #. type: =item
16997 #: ../fish/guestfish.pod:635
16998 msgid "B<TB>"
16999 msgstr ""
17000
17001 #. type: textblock
17002 #: ../fish/guestfish.pod:637
17003 msgid "The size in SI 10**12 byte units."
17004 msgstr ""
17005
17006 #. type: =item
17007 #: ../fish/guestfish.pod:639
17008 msgid "B<P> or B<PiB>"
17009 msgstr ""
17010
17011 #. type: textblock
17012 #: ../fish/guestfish.pod:641
17013 msgid "The size in petabytes (multiplied by 2**50)."
17014 msgstr ""
17015
17016 #. type: =item
17017 #: ../fish/guestfish.pod:643
17018 msgid "B<PB>"
17019 msgstr ""
17020
17021 #. type: textblock
17022 #: ../fish/guestfish.pod:645
17023 msgid "The size in SI 10**15 byte units."
17024 msgstr ""
17025
17026 #. type: =item
17027 #: ../fish/guestfish.pod:647
17028 msgid "B<E> or B<EiB>"
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish.pod:649
17033 msgid "The size in exabytes (multiplied by 2**60)."
17034 msgstr ""
17035
17036 #. type: =item
17037 #: ../fish/guestfish.pod:651
17038 msgid "B<EB>"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish.pod:653
17043 msgid "The size in SI 10**18 byte units."
17044 msgstr ""
17045
17046 #. type: =item
17047 #: ../fish/guestfish.pod:655
17048 msgid "B<Z> or B<ZiB>"
17049 msgstr ""
17050
17051 #. type: textblock
17052 #: ../fish/guestfish.pod:657
17053 msgid "The size in zettabytes (multiplied by 2**70)."
17054 msgstr ""
17055
17056 #. type: =item
17057 #: ../fish/guestfish.pod:659
17058 msgid "B<ZB>"
17059 msgstr ""
17060
17061 #. type: textblock
17062 #: ../fish/guestfish.pod:661
17063 msgid "The size in SI 10**21 byte units."
17064 msgstr ""
17065
17066 #. type: =item
17067 #: ../fish/guestfish.pod:663
17068 msgid "B<Y> or B<YiB>"
17069 msgstr ""
17070
17071 #. type: textblock
17072 #: ../fish/guestfish.pod:665
17073 msgid "The size in yottabytes (multiplied by 2**80)."
17074 msgstr ""
17075
17076 #. type: =item
17077 #: ../fish/guestfish.pod:667
17078 msgid "B<YB>"
17079 msgstr ""
17080
17081 #. type: textblock
17082 #: ../fish/guestfish.pod:669
17083 msgid "The size in SI 10**24 byte units."
17084 msgstr ""
17085
17086 #. type: verbatim
17087 #: ../fish/guestfish.pod:675
17088 #, no-wrap
17089 msgid ""
17090 " truncate-size /file 1G\n"
17091 "\n"
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish.pod:677
17096 msgid "would truncate the file to 1 gigabyte."
17097 msgstr ""
17098
17099 #. type: textblock
17100 #: ../fish/guestfish.pod:679
17101 msgid ""
17102 "Be careful because a few commands take sizes in kilobytes or megabytes "
17103 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
17104 "Adding a suffix will probably not do what you expect."
17105 msgstr ""
17106
17107 #. type: =head2
17108 #: ../fish/guestfish.pod:683
17109 msgid "OCTAL AND HEXADECIMAL NUMBERS"
17110 msgstr ""
17111
17112 #. type: textblock
17113 #: ../fish/guestfish.pod:685
17114 msgid ""
17115 "For specifying the radix (base) use the C convention: C<0> to prefix an "
17116 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
17117 msgstr ""
17118
17119 #. type: verbatim
17120 #: ../fish/guestfish.pod:688
17121 #, no-wrap
17122 msgid ""
17123 " 1234      decimal number 1234\n"
17124 " 02322     octal number, equivalent to decimal 1234\n"
17125 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
17126 "\n"
17127 msgstr ""
17128
17129 #. type: textblock
17130 #: ../fish/guestfish.pod:692
17131 msgid ""
17132 "When using the C<chmod> command, you almost always want to specify an octal "
17133 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
17134 "L<chmod(1)> program):"
17135 msgstr ""
17136
17137 #. type: verbatim
17138 #: ../fish/guestfish.pod:696
17139 #, no-wrap
17140 msgid ""
17141 " chmod 0777 /public  # OK\n"
17142 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
17143 "\n"
17144 msgstr ""
17145
17146 #. type: textblock
17147 #: ../fish/guestfish.pod:699
17148 msgid ""
17149 "Commands that return numbers usually print them in decimal, but some "
17150 "commands print numbers in other radices (eg. C<umask> prints the mode in "
17151 "octal, preceeded by C<0>)."
17152 msgstr ""
17153
17154 #. type: =head1
17155 #: ../fish/guestfish.pod:703
17156 msgid "WILDCARDS AND GLOBBING"
17157 msgstr ""
17158
17159 #. type: textblock
17160 #: ../fish/guestfish.pod:705
17161 msgid ""
17162 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
17163 "(globbing) by default.  So for example the following will not do what you "
17164 "expect:"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish.pod:709
17169 #, no-wrap
17170 msgid ""
17171 " rm-rf /home/*\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish.pod:711
17177 msgid ""
17178 "Assuming you don't have a directory called literally C</home/*> then the "
17179 "above command will return an error."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish.pod:714
17184 msgid "To perform wildcard expansion, use the C<glob> command."
17185 msgstr ""
17186
17187 #. type: verbatim
17188 #: ../fish/guestfish.pod:716
17189 #, no-wrap
17190 msgid ""
17191 " glob rm-rf /home/*\n"
17192 "\n"
17193 msgstr ""
17194
17195 #. type: textblock
17196 #: ../fish/guestfish.pod:718
17197 msgid ""
17198 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
17199 "many times), equivalent to:"
17200 msgstr ""
17201
17202 #. type: verbatim
17203 #: ../fish/guestfish.pod:721
17204 #, no-wrap
17205 msgid ""
17206 " rm-rf /home/jim\n"
17207 " rm-rf /home/joe\n"
17208 " rm-rf /home/mary\n"
17209 "\n"
17210 msgstr ""
17211
17212 #. type: textblock
17213 #: ../fish/guestfish.pod:725
17214 msgid "C<glob> only works on simple guest paths and not on device names."
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish.pod:727
17219 msgid ""
17220 "If you have several parameters, each containing a wildcard, then glob will "
17221 "perform a Cartesian product."
17222 msgstr ""
17223
17224 #. type: =head1
17225 #: ../fish/guestfish.pod:730
17226 msgid "COMMENTS"
17227 msgstr ""
17228
17229 #. type: textblock
17230 #: ../fish/guestfish.pod:732
17231 msgid ""
17232 "Any line which starts with a I<#> character is treated as a comment and "
17233 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
17234 "a command.  For example:"
17235 msgstr ""
17236
17237 #. type: verbatim
17238 #: ../fish/guestfish.pod:736
17239 #, no-wrap
17240 msgid ""
17241 " # this is a comment\n"
17242 "         # this is a comment\n"
17243 " foo # NOT a comment\n"
17244 "\n"
17245 msgstr ""
17246
17247 #. type: textblock
17248 #: ../fish/guestfish.pod:740
17249 msgid "Blank lines are also ignored."
17250 msgstr ""
17251
17252 #. type: =head1
17253 #: ../fish/guestfish.pod:742
17254 msgid "RUNNING COMMANDS LOCALLY"
17255 msgstr ""
17256
17257 #. type: textblock
17258 #: ../fish/guestfish.pod:744
17259 msgid ""
17260 "Any line which starts with a I<!> character is treated as a command sent to "
17261 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17262 msgstr ""
17263
17264 #. type: verbatim
17265 #: ../fish/guestfish.pod:748
17266 #, no-wrap
17267 msgid ""
17268 " !mkdir local\n"
17269 " tgz-out /remote local/remote-data.tar.gz\n"
17270 "\n"
17271 msgstr ""
17272
17273 #. type: textblock
17274 #: ../fish/guestfish.pod:751
17275 msgid ""
17276 "will create a directory C<local> on the host, and then export the contents "
17277 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17278 "(See C<tgz-out>)."
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish.pod:755
17283 msgid ""
17284 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17285 "effect, due to the way that subprocesses work in Unix."
17286 msgstr ""
17287
17288 #. type: =head2
17289 #: ../fish/guestfish.pod:758
17290 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17291 msgstr ""
17292
17293 #. type: textblock
17294 #: ../fish/guestfish.pod:760
17295 msgid ""
17296 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17297 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17298 "and executed as guestfish commands."
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish.pod:764
17303 msgid ""
17304 "Thus you can use shell script to construct arbitrary guestfish commands "
17305 "which are then parsed by guestfish."
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../fish/guestfish.pod:767
17310 msgid ""
17311 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17312 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17313 "if we use a shell script to create the guestfish commands for us:"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../fish/guestfish.pod:772
17318 #, no-wrap
17319 msgid ""
17320 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish.pod:774
17326 msgid "or with names like C</foo.001>:"
17327 msgstr ""
17328
17329 #. type: verbatim
17330 #: ../fish/guestfish.pod:776
17331 #, no-wrap
17332 msgid ""
17333 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17334 "\n"
17335 msgstr ""
17336
17337 #. type: textblock
17338 #: ../fish/guestfish.pod:778
17339 msgid ""
17340 "When using guestfish interactively it can be helpful to just run the shell "
17341 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17342 "ordinary I<!> local command), see what guestfish commands it would run, and "
17343 "when you are happy with those prepend the C<E<lt>> character to run the "
17344 "guestfish commands for real."
17345 msgstr ""
17346
17347 #. type: =head1
17348 #: ../fish/guestfish.pod:784
17349 msgid "PIPES"
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish.pod:786
17354 msgid ""
17355 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17356 "command (a guestfish command) to the second command (any host command).  For "
17357 "example:"
17358 msgstr ""
17359
17360 #. type: verbatim
17361 #: ../fish/guestfish.pod:790
17362 #, no-wrap
17363 msgid ""
17364 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17365 "\n"
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../fish/guestfish.pod:792
17370 msgid ""
17371 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17372 "program).  The above command would list all accounts in the guest filesystem "
17373 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17374 msgstr ""
17375
17376 #. type: verbatim
17377 #: ../fish/guestfish.pod:797
17378 #, no-wrap
17379 msgid ""
17380 " hexdump /bin/ls | head\n"
17381 " list-devices | tail -1\n"
17382 " tgz-out / - | tar ztf -\n"
17383 "\n"
17384 msgstr ""
17385
17386 #. type: textblock
17387 #: ../fish/guestfish.pod:801
17388 msgid ""
17389 "The space before the pipe symbol is required, any space after the pipe "
17390 "symbol is optional.  Everything after the pipe symbol is just passed "
17391 "straight to the host shell, so it can contain redirections, globs and "
17392 "anything else that makes sense on the host side."
17393 msgstr ""
17394
17395 #. type: textblock
17396 #: ../fish/guestfish.pod:806
17397 msgid ""
17398 "To use a literal argument which begins with a pipe symbol, you have to quote "
17399 "it, eg:"
17400 msgstr ""
17401
17402 #. type: verbatim
17403 #: ../fish/guestfish.pod:809
17404 #, no-wrap
17405 msgid ""
17406 " echo \"|\"\n"
17407 "\n"
17408 msgstr ""
17409
17410 #. type: =head1
17411 #: ../fish/guestfish.pod:811
17412 msgid "HOME DIRECTORIES"
17413 msgstr ""
17414
17415 #. type: textblock
17416 #: ../fish/guestfish.pod:813
17417 msgid ""
17418 "If a parameter starts with the character C<~> then the tilde may be expanded "
17419 "as a home directory path (either C<~> for the current user's home directory, "
17420 "or C<~user> for another user)."
17421 msgstr ""
17422
17423 #. type: textblock
17424 #: ../fish/guestfish.pod:817
17425 msgid ""
17426 "Note that home directory expansion happens for users known I<on the host>, "
17427 "not in the guest filesystem."
17428 msgstr ""
17429
17430 #. type: textblock
17431 #: ../fish/guestfish.pod:820
17432 msgid ""
17433 "To use a literal argument which begins with a tilde, you have to quote it, "
17434 "eg:"
17435 msgstr ""
17436
17437 #. type: verbatim
17438 #: ../fish/guestfish.pod:823
17439 #, no-wrap
17440 msgid ""
17441 " echo \"~\"\n"
17442 "\n"
17443 msgstr ""
17444
17445 #. type: =head2
17446 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17447 msgid "ENCRYPTED DISKS"
17448 msgstr ""
17449
17450 #. type: textblock
17451 #: ../fish/guestfish.pod:827
17452 msgid ""
17453 "Libguestfs has some support for Linux guests encrypted according to the "
17454 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17455 "disk encryption systems used by modern Linux guests.  Currently only "
17456 "LVM-on-LUKS is supported."
17457 msgstr ""
17458
17459 #. type: textblock
17460 #: ../fish/guestfish.pod:832
17461 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17462 msgstr ""
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish.pod:834
17466 #, no-wrap
17467 msgid ""
17468 " ><fs> vfs-type /dev/sda2\n"
17469 " crypto_LUKS\n"
17470 "\n"
17471 msgstr ""
17472
17473 #. type: textblock
17474 #: ../fish/guestfish.pod:837
17475 msgid ""
17476 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17477 "device called C</dev/mapper/luksdev>."
17478 msgstr ""
17479
17480 #. type: verbatim
17481 #: ../fish/guestfish.pod:840
17482 #, no-wrap
17483 msgid ""
17484 " ><fs> luks-open /dev/sda2 luksdev\n"
17485 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17486 "\n"
17487 msgstr ""
17488
17489 #. type: textblock
17490 #: ../fish/guestfish.pod:843
17491 msgid ""
17492 "Finally you have to tell LVM to scan for volume groups on the newly created "
17493 "mapper device:"
17494 msgstr ""
17495
17496 #. type: verbatim
17497 #: ../fish/guestfish.pod:846
17498 #, no-wrap
17499 msgid ""
17500 " vgscan\n"
17501 " vg-activate-all true\n"
17502 "\n"
17503 msgstr ""
17504
17505 #. type: textblock
17506 #: ../fish/guestfish.pod:849
17507 msgid "The logical volume(s) can now be mounted in the usual way."
17508 msgstr ""
17509
17510 #. type: textblock
17511 #: ../fish/guestfish.pod:851
17512 msgid ""
17513 "Before closing a LUKS device you must unmount any logical volumes on it and "
17514 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17515 "one.  Then you can close the mapper device:"
17516 msgstr ""
17517
17518 #. type: verbatim
17519 #: ../fish/guestfish.pod:855
17520 #, no-wrap
17521 msgid ""
17522 " vg-activate false /dev/VG\n"
17523 " luks-close /dev/mapper/luksdev\n"
17524 "\n"
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:860
17529 msgid ""
17530 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17531 "letters and paths (with some limitations).  The following commands are "
17532 "equivalent:"
17533 msgstr ""
17534
17535 #. type: verbatim
17536 #: ../fish/guestfish.pod:864
17537 #, no-wrap
17538 msgid ""
17539 " file /WINDOWS/system32/config/system.LOG\n"
17540 "\n"
17541 msgstr ""
17542
17543 #. type: verbatim
17544 #: ../fish/guestfish.pod:866
17545 #, no-wrap
17546 msgid ""
17547 " file win:\\windows\\system32\\config\\system.log\n"
17548 "\n"
17549 msgstr ""
17550
17551 #. type: verbatim
17552 #: ../fish/guestfish.pod:868
17553 #, no-wrap
17554 msgid ""
17555 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17556 "\n"
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../fish/guestfish.pod:870
17561 msgid ""
17562 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17563 "where the drive is mounted, prepending that to the path, changing all "
17564 "backslash characters to forward slash, then resolving the result using "
17565 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17566 "then the parameter might be rewritten like this:"
17567 msgstr ""
17568
17569 #. type: verbatim
17570 #: ../fish/guestfish.pod:876
17571 #, no-wrap
17572 msgid ""
17573 " win:e:\\foo\\bar => /e/FOO/bar\n"
17574 "\n"
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish.pod:878
17579 msgid "This only works in argument positions that expect a path."
17580 msgstr ""
17581
17582 #. type: =head1
17583 #: ../fish/guestfish.pod:880
17584 msgid "UPLOADING AND DOWNLOADING FILES"
17585 msgstr ""
17586
17587 #. type: textblock
17588 #: ../fish/guestfish.pod:882
17589 msgid ""
17590 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17591 "others which upload from or download to a local file, you can use the "
17592 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17593 msgstr ""
17594
17595 #. type: verbatim
17596 #: ../fish/guestfish.pod:886
17597 #, no-wrap
17598 msgid ""
17599 " upload - /foo\n"
17600 "\n"
17601 msgstr ""
17602
17603 #. type: textblock
17604 #: ../fish/guestfish.pod:888
17605 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17606 msgstr ""
17607
17608 #. type: verbatim
17609 #: ../fish/guestfish.pod:891
17610 #, no-wrap
17611 msgid ""
17612 " tar-out /etc - | tar tf -\n"
17613 "\n"
17614 msgstr ""
17615
17616 #. type: textblock
17617 #: ../fish/guestfish.pod:893
17618 msgid ""
17619 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17620 "command (see L</PIPES>)."
17621 msgstr ""
17622
17623 #. type: textblock
17624 #: ../fish/guestfish.pod:896
17625 msgid ""
17626 "When using C<-> to read from stdin, the input is read up to the end of "
17627 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17628 "some arbitrary end marker:"
17629 msgstr ""
17630
17631 #. type: verbatim
17632 #: ../fish/guestfish.pod:900
17633 #, no-wrap
17634 msgid ""
17635 " upload -<<END /foo\n"
17636 " input line 1\n"
17637 " input line 2\n"
17638 " input line 3\n"
17639 " END\n"
17640 "\n"
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../fish/guestfish.pod:906
17645 msgid ""
17646 "Any string of characters can be used instead of C<END>.  The end marker must "
17647 "appear on a line of its own, without any preceeding or following characters "
17648 "(not even spaces)."
17649 msgstr ""
17650
17651 #. type: textblock
17652 #: ../fish/guestfish.pod:910
17653 msgid ""
17654 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17655 "upload local files (so-called \"FileIn\" parameters in the generator)."
17656 msgstr ""
17657
17658 #. type: =head1
17659 #: ../fish/guestfish.pod:913
17660 msgid "EXIT ON ERROR BEHAVIOUR"
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../fish/guestfish.pod:915
17665 msgid ""
17666 "By default, guestfish will ignore any errors when in interactive mode "
17667 "(ie. taking commands from a human over a tty), and will exit on the first "
17668 "error in non-interactive mode (scripts, commands given on the command line)."
17669 msgstr ""
17670
17671 #. type: textblock
17672 #: ../fish/guestfish.pod:920
17673 msgid ""
17674 "If you prefix a command with a I<-> character, then that command will not "
17675 "cause guestfish to exit, even if that (one) command returns an error."
17676 msgstr ""
17677
17678 #. type: =head1
17679 #: ../fish/guestfish.pod:924
17680 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:926
17685 msgid ""
17686 "Guestfish can be remote-controlled over a socket.  This is useful "
17687 "particularly in shell scripts where you want to make several different "
17688 "changes to a filesystem, but you don't want the overhead of starting up a "
17689 "guestfish process each time."
17690 msgstr ""
17691
17692 #. type: textblock
17693 #: ../fish/guestfish.pod:931
17694 msgid "Start a guestfish server process using:"
17695 msgstr ""
17696
17697 #. type: verbatim
17698 #: ../fish/guestfish.pod:933
17699 #, no-wrap
17700 msgid ""
17701 " eval \"`guestfish --listen`\"\n"
17702 "\n"
17703 msgstr ""
17704
17705 #. type: textblock
17706 #: ../fish/guestfish.pod:935
17707 msgid "and then send it commands by doing:"
17708 msgstr ""
17709
17710 #. type: verbatim
17711 #: ../fish/guestfish.pod:937
17712 #, no-wrap
17713 msgid ""
17714 " guestfish --remote cmd [...]\n"
17715 "\n"
17716 msgstr ""
17717
17718 #. type: textblock
17719 #: ../fish/guestfish.pod:939
17720 msgid "To cause the server to exit, send it the exit command:"
17721 msgstr ""
17722
17723 #. type: textblock
17724 #: ../fish/guestfish.pod:943
17725 msgid ""
17726 "Note that the server will normally exit if there is an error in a command.  "
17727 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17728 "BEHAVIOUR>."
17729 msgstr ""
17730
17731 #. type: =head2
17732 #: ../fish/guestfish.pod:947
17733 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17734 msgstr ""
17735
17736 #. type: textblock
17737 #: ../fish/guestfish.pod:949
17738 msgid ""
17739 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17740 "is how the I<--remote> option knows where to send the commands.  You can "
17741 "have several guestfish listener processes running using:"
17742 msgstr ""
17743
17744 #. type: verbatim
17745 #: ../fish/guestfish.pod:953
17746 #, no-wrap
17747 msgid ""
17748 " eval \"`guestfish --listen`\"\n"
17749 " pid1=$GUESTFISH_PID\n"
17750 " eval \"`guestfish --listen`\"\n"
17751 " pid2=$GUESTFISH_PID\n"
17752 " ...\n"
17753 " guestfish --remote=$pid1 cmd\n"
17754 " guestfish --remote=$pid2 cmd\n"
17755 "\n"
17756 msgstr ""
17757
17758 #. type: =head2
17759 #: ../fish/guestfish.pod:961
17760 msgid "REMOTE CONTROL AND CSH"
17761 msgstr ""
17762
17763 #. type: textblock
17764 #: ../fish/guestfish.pod:963
17765 msgid ""
17766 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17767 "option:"
17768 msgstr ""
17769
17770 #. type: verbatim
17771 #: ../fish/guestfish.pod:966
17772 #, no-wrap
17773 msgid ""
17774 " eval \"`guestfish --listen --csh`\"\n"
17775 "\n"
17776 msgstr ""
17777
17778 #. type: =head2
17779 #: ../fish/guestfish.pod:968
17780 msgid "REMOTE CONTROL DETAILS"
17781 msgstr ""
17782
17783 #. type: textblock
17784 #: ../fish/guestfish.pod:970
17785 msgid ""
17786 "Remote control happens over a Unix domain socket called "
17787 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17788 "of the process, and C<$PID> is the process ID of the server."
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:974
17793 msgid "Guestfish client and server versions must match exactly."
17794 msgstr ""
17795
17796 #. type: =head2
17797 #: ../fish/guestfish.pod:976
17798 msgid "REMOTE CONTROL RUN COMMAND HANGING"
17799 msgstr ""
17800
17801 #. type: textblock
17802 #: ../fish/guestfish.pod:978
17803 msgid ""
17804 "Using the C<run> (or C<launch>) command remotely in a command substitution "
17805 "context hangs, ie. don't do (note the backquotes):"
17806 msgstr ""
17807
17808 #. type: verbatim
17809 #: ../fish/guestfish.pod:981
17810 #, no-wrap
17811 msgid ""
17812 " a=`guestfish --remote run`\n"
17813 "\n"
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish.pod:983
17818 msgid ""
17819 "Since the C<run> command produces no output on stdout, this is not useful "
17820 "anyway.  For further information see "
17821 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
17822 msgstr ""
17823
17824 #. type: =head1
17825 #: ../fish/guestfish.pod:987
17826 msgid "PREPARED DISK IMAGES"
17827 msgstr ""
17828
17829 #. type: textblock
17830 #: ../fish/guestfish.pod:989
17831 msgid ""
17832 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17833 "preformatted disk images that guestfish can make for you to save typing.  "
17834 "This is particularly useful for testing purposes.  This option is used "
17835 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17836 "can be mixed with I<-a>)."
17837 msgstr ""
17838
17839 #. type: textblock
17840 #: ../fish/guestfish.pod:995
17841 msgid ""
17842 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17843 "the second and so on.  Existing files in the current directory are "
17844 "I<overwritten>."
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish.pod:999
17849 msgid ""
17850 "The type briefly describes how the disk should be sized, partitioned, how "
17851 "filesystem(s) should be created, and how content should be added.  "
17852 "Optionally the type can be followed by extra parameters, separated by C<:> "
17853 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17854 "sparsely-allocated disk, containing a single partition, with the partition "
17855 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17856 "on a 1GB disk instead."
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish.pod:1007
17861 msgid "To list the available types and any extra parameters they take, run:"
17862 msgstr ""
17863
17864 #. type: textblock
17865 #: ../fish/guestfish.pod:1011
17866 msgid ""
17867 "Note that the prepared filesystem is not mounted.  You would usually have to "
17868 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17869 msgstr ""
17870
17871 #. type: textblock
17872 #: ../fish/guestfish.pod:1015
17873 msgid ""
17874 "If any I<-N> or I<--new> options are given, the guest is automatically "
17875 "launched."
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../fish/guestfish.pod:1020
17880 msgid "Create a 100MB disk with an ext4-formatted partition:"
17881 msgstr ""
17882
17883 #. type: verbatim
17884 #: ../fish/guestfish.pod:1022
17885 #, no-wrap
17886 msgid ""
17887 " guestfish -N fs:ext4\n"
17888 "\n"
17889 msgstr ""
17890
17891 #. type: textblock
17892 #: ../fish/guestfish.pod:1024
17893 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17894 msgstr ""
17895
17896 #. type: verbatim
17897 #: ../fish/guestfish.pod:1026
17898 #, no-wrap
17899 msgid ""
17900 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17901 "\n"
17902 msgstr ""
17903
17904 #. type: textblock
17905 #: ../fish/guestfish.pod:1028
17906 msgid "Create a blank 200MB disk:"
17907 msgstr ""
17908
17909 #. type: verbatim
17910 #: ../fish/guestfish.pod:1030
17911 #, no-wrap
17912 msgid ""
17913 " guestfish -N disk:200M\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: =head1
17918 #: ../fish/guestfish.pod:1032
17919 msgid "PROGRESS BARS"
17920 msgstr ""
17921
17922 #. type: textblock
17923 #: ../fish/guestfish.pod:1034
17924 msgid ""
17925 "Some (not all) long-running commands send progress notification messages as "
17926 "they are running.  Guestfish turns these messages into progress bars."
17927 msgstr ""
17928
17929 #. type: textblock
17930 #: ../fish/guestfish.pod:1038
17931 msgid ""
17932 "When a command that supports progress bars takes longer than two seconds to "
17933 "run, and if progress bars are enabled, then you will see one appearing below "
17934 "the command:"
17935 msgstr ""
17936
17937 #. type: verbatim
17938 #: ../fish/guestfish.pod:1042
17939 #, no-wrap
17940 msgid ""
17941 " ><fs> copy-size /large-file /another-file 2048M\n"
17942 " / 10% [#####-----------------------------------------] 00:30\n"
17943 "\n"
17944 msgstr ""
17945
17946 #. type: textblock
17947 #: ../fish/guestfish.pod:1045
17948 msgid ""
17949 "The spinner on the left hand side moves round once for every progress "
17950 "notification received from the backend.  This is a (reasonably) golden "
17951 "assurance that the command is \"doing something\" even if the progress bar "
17952 "is not moving, because the command is able to send the progress "
17953 "notifications.  When the bar reaches 100% and the command finishes, the "
17954 "spinner disappears."
17955 msgstr ""
17956
17957 #. type: textblock
17958 #: ../fish/guestfish.pod:1052
17959 msgid ""
17960 "Progress bars are enabled by default when guestfish is used interactively.  "
17961 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17962 "and you can disable them completely using I<--no-progress-bars>."
17963 msgstr ""
17964
17965 #. type: =head1
17966 #: ../fish/guestfish.pod:1057
17967 msgid "GUESTFISH COMMANDS"
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish.pod:1059
17972 msgid ""
17973 "The commands in this section are guestfish convenience commands, in other "
17974 "words, they are not part of the L<guestfs(3)> API."
17975 msgstr ""
17976
17977 #. type: =head2
17978 #: ../fish/guestfish.pod:1062
17979 msgid "help"
17980 msgstr ""
17981
17982 #. type: verbatim
17983 #: ../fish/guestfish.pod:1064
17984 #, no-wrap
17985 msgid ""
17986 " help\n"
17987 " help cmd\n"
17988 "\n"
17989 msgstr ""
17990
17991 #. type: textblock
17992 #: ../fish/guestfish.pod:1067
17993 msgid "Without any parameter, this provides general help."
17994 msgstr ""
17995
17996 #. type: textblock
17997 #: ../fish/guestfish.pod:1069
17998 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17999 msgstr ""
18000
18001 #. type: =head2
18002 #: ../fish/guestfish.pod:1071
18003 msgid "quit | exit"
18004 msgstr ""
18005
18006 #. type: textblock
18007 #: ../fish/guestfish.pod:1073
18008 msgid "This exits guestfish.  You can also use C<^D> key."
18009 msgstr ""
18010
18011 #. type: textblock
18012 #: ../fish/guestfish.pod:1075
18013 msgid "@FISH_COMMANDS@"
18014 msgstr ""
18015
18016 #. type: =head1
18017 #: ../fish/guestfish.pod:1077
18018 msgid "COMMANDS"
18019 msgstr ""
18020
18021 #. type: textblock
18022 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1479
18023 msgid "@ACTIONS@"
18024 msgstr ""
18025
18026 #. type: textblock
18027 #: ../fish/guestfish.pod:1083
18028 msgid ""
18029 "guestfish returns 0 if the commands completed without error, or 1 if there "
18030 "was an error."
18031 msgstr ""
18032
18033 #. type: =item
18034 #: ../fish/guestfish.pod:1090
18035 msgid "EDITOR"
18036 msgstr ""
18037
18038 #. type: textblock
18039 #: ../fish/guestfish.pod:1092
18040 msgid ""
18041 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
18042 "C<vi>."
18043 msgstr ""
18044
18045 #. type: =item
18046 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3084
18047 msgid "FEBOOTSTRAP_KERNEL"
18048 msgstr ""
18049
18050 #. type: =item
18051 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3086
18052 msgid "FEBOOTSTRAP_MODULES"
18053 msgstr ""
18054
18055 #. type: textblock
18056 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3088
18057 msgid ""
18058 "These two environment variables allow the kernel that libguestfs uses in the "
18059 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
18060 "most recent host kernel is chosen.  For more information about kernel "
18061 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
18062 "available in febootstrap E<ge> 3.8."
18063 msgstr ""
18064
18065 #. type: =item
18066 #: ../fish/guestfish.pod:1105
18067 msgid "GUESTFISH_DISPLAY_IMAGE"
18068 msgstr ""
18069
18070 #. type: textblock
18071 #: ../fish/guestfish.pod:1107
18072 msgid ""
18073 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
18074 "If not set, it uses L<display(1)>."
18075 msgstr ""
18076
18077 #. type: =item
18078 #: ../fish/guestfish.pod:1110
18079 msgid "GUESTFISH_PID"
18080 msgstr ""
18081
18082 #. type: textblock
18083 #: ../fish/guestfish.pod:1112
18084 msgid ""
18085 "Used with the I<--remote> option to specify the remote guestfish process to "
18086 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
18087 msgstr ""
18088
18089 #. type: =item
18090 #: ../fish/guestfish.pod:1116
18091 msgid "HEXEDITOR"
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:1118
18096 msgid ""
18097 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
18098 "not specified, the external L<hexedit(1)> program is used."
18099 msgstr ""
18100
18101 #. type: =item
18102 #: ../fish/guestfish.pod:1122
18103 msgid "HOME"
18104 msgstr ""
18105
18106 #. type: textblock
18107 #: ../fish/guestfish.pod:1124
18108 msgid ""
18109 "If compiled with GNU readline support, various files in the home directory "
18110 "can be used.  See L</FILES>."
18111 msgstr ""
18112
18113 #. type: =item
18114 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3094
18115 msgid "LIBGUESTFS_APPEND"
18116 msgstr ""
18117
18118 #. type: textblock
18119 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3096
18120 msgid "Pass additional options to the guest kernel."
18121 msgstr ""
18122
18123 #. type: =item
18124 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3098
18125 msgid "LIBGUESTFS_DEBUG"
18126 msgstr ""
18127
18128 #. type: textblock
18129 #: ../fish/guestfish.pod:1133
18130 msgid ""
18131 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
18132 "effect as using the B<-v> option."
18133 msgstr ""
18134
18135 #. type: =item
18136 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3103
18137 msgid "LIBGUESTFS_MEMSIZE"
18138 msgstr ""
18139
18140 #. type: textblock
18141 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3105
18142 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
18143 msgstr ""
18144
18145 #. type: verbatim
18146 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3108
18147 #, no-wrap
18148 msgid ""
18149 " LIBGUESTFS_MEMSIZE=700\n"
18150 "\n"
18151 msgstr ""
18152
18153 #. type: =item
18154 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3110
18155 msgid "LIBGUESTFS_PATH"
18156 msgstr ""
18157
18158 #. type: textblock
18159 #: ../fish/guestfish.pod:1145
18160 msgid ""
18161 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
18162 "the discussion of paths in L<guestfs(3)>."
18163 msgstr ""
18164
18165 #. type: =item
18166 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3115
18167 msgid "LIBGUESTFS_QEMU"
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3117
18172 msgid ""
18173 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
18174 "which was found at compile time by the configure script is used."
18175 msgstr ""
18176
18177 #. type: =item
18178 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3123
18179 msgid "LIBGUESTFS_TRACE"
18180 msgstr ""
18181
18182 #. type: textblock
18183 #: ../fish/guestfish.pod:1156
18184 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18185 msgstr ""
18186
18187 #. type: =item
18188 #: ../fish/guestfish.pod:1158
18189 msgid "PAGER"
18190 msgstr ""
18191
18192 #. type: textblock
18193 #: ../fish/guestfish.pod:1160
18194 msgid ""
18195 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18196 "C<more>."
18197 msgstr ""
18198
18199 #. type: =item
18200 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3128
18201 msgid "TMPDIR"
18202 msgstr ""
18203
18204 #. type: textblock
18205 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3130
18206 msgid ""
18207 "Location of temporary directory, defaults to C</tmp> except for the cached "
18208 "supermin appliance which defaults to C</var/tmp>."
18209 msgstr ""
18210
18211 #. type: textblock
18212 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3133
18213 msgid ""
18214 "If libguestfs was compiled to use the supermin appliance then the real "
18215 "appliance is cached in this directory, shared between all handles belonging "
18216 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18217 "use in case C</var/tmp> is not large enough."
18218 msgstr ""
18219
18220 #. type: =head1
18221 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:269
18222 msgid "FILES"
18223 msgstr ""
18224
18225 #. type: =item
18226 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:273
18227 msgid "$HOME/.libguestfs-tools.rc"
18228 msgstr ""
18229
18230 #. type: =item
18231 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:275
18232 msgid "/etc/libguestfs-tools.conf"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:277
18237 msgid ""
18238 "This configuration file controls the default read-only or read-write mode "
18239 "(I<--ro> or I<--rw>)."
18240 msgstr ""
18241
18242 #. type: textblock
18243 #: ../fish/guestfish.pod:1187
18244 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18245 msgstr ""
18246
18247 #. type: =item
18248 #: ../fish/guestfish.pod:1189
18249 msgid "$HOME/.guestfish"
18250 msgstr ""
18251
18252 #. type: textblock
18253 #: ../fish/guestfish.pod:1191
18254 msgid ""
18255 "If compiled with GNU readline support, then the command history is saved in "
18256 "this file."
18257 msgstr ""
18258
18259 #. type: =item
18260 #: ../fish/guestfish.pod:1194
18261 msgid "$HOME/.inputrc"
18262 msgstr ""
18263
18264 #. type: =item
18265 #: ../fish/guestfish.pod:1196
18266 msgid "/etc/inputrc"
18267 msgstr ""
18268
18269 #. type: textblock
18270 #: ../fish/guestfish.pod:1198
18271 msgid ""
18272 "If compiled with GNU readline support, then these files can be used to "
18273 "configure readline.  For further information, please see "
18274 "L<readline(3)/INITIALIZATION FILE>."
18275 msgstr ""
18276
18277 #. type: textblock
18278 #: ../fish/guestfish.pod:1202
18279 msgid "To write rules which only apply to guestfish, use:"
18280 msgstr ""
18281
18282 #. type: verbatim
18283 #: ../fish/guestfish.pod:1204
18284 #, no-wrap
18285 msgid ""
18286 " $if guestfish\n"
18287 " ...\n"
18288 " $endif\n"
18289 "\n"
18290 msgstr ""
18291
18292 #. type: textblock
18293 #: ../fish/guestfish.pod:1208
18294 msgid ""
18295 "Variables that you can set in inputrc that change the behaviour of guestfish "
18296 "in useful ways include:"
18297 msgstr ""
18298
18299 #. type: =item
18300 #: ../fish/guestfish.pod:1213
18301 msgid "completion-ignore-case (default: on)"
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../fish/guestfish.pod:1215
18306 msgid ""
18307 "By default, guestfish will ignore case when tab-completing paths on the "
18308 "disk.  Use:"
18309 msgstr ""
18310
18311 #. type: verbatim
18312 #: ../fish/guestfish.pod:1218
18313 #, no-wrap
18314 msgid ""
18315 " set completion-ignore-case off\n"
18316 "\n"
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish.pod:1220
18321 msgid "to make guestfish case sensitive."
18322 msgstr ""
18323
18324 #. type: =item
18325 #: ../fish/guestfish.pod:1224
18326 msgid "test1.img"
18327 msgstr ""
18328
18329 #. type: =item
18330 #: ../fish/guestfish.pod:1226
18331 msgid "test2.img (etc)"
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:1228
18336 msgid ""
18337 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18338 "will be created in the file C<test1.img> in the current directory.  The "
18339 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18340 "the same name will be overwritten."
18341 msgstr ""
18342
18343 #. type: textblock
18344 #: ../fish/guestfish.pod:1237
18345 msgid ""
18346 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
18347 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
18348 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
18349 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
18350 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
18351 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18352 "L<febootstrap-supermin-helper(8)>."
18353 msgstr ""
18354
18355 #. type: textblock
18356 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3220 ../test-tool/libguestfs-test-tool.pod:112
18357 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18358 msgstr ""
18359
18360 #. type: textblock
18361 #: ../fish/virt-copy-in.pod:5
18362 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18363 msgstr ""
18364
18365 #. type: verbatim
18366 #: ../fish/virt-copy-in.pod:9
18367 #, no-wrap
18368 msgid ""
18369 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18370 "\n"
18371 msgstr ""
18372
18373 #. type: verbatim
18374 #: ../fish/virt-copy-in.pod:11
18375 #, no-wrap
18376 msgid ""
18377 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18378 "\n"
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/virt-copy-in.pod:15
18383 msgid ""
18384 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18385 "causing disk corruption.  The virtual machine must be shut down before you "
18386 "use this command."
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/virt-copy-in.pod:21
18391 msgid ""
18392 "C<virt-copy-in> copies files and directories from the local disk into a "
18393 "virtual machine disk image or named libvirt domain."
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fish/virt-copy-in.pod:24
18398 msgid ""
18399 "You can give one of more filenames and directories on the command line.  "
18400 "Directories are copied in recursively.  The final parameter must be the "
18401 "destination directory in the disk image which must be an absolute path "
18402 "starting with a C</> character."
18403 msgstr ""
18404
18405 #. type: verbatim
18406 #: ../fish/virt-copy-in.pod:33
18407 #, no-wrap
18408 msgid ""
18409 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18410 "\n"
18411 msgstr ""
18412
18413 #. type: textblock
18414 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18415 msgid "Upload a home directory to a guest:"
18416 msgstr ""
18417
18418 #. type: verbatim
18419 #: ../fish/virt-copy-in.pod:37
18420 #, no-wrap
18421 msgid ""
18422 " virt-copy-in -d MyGuest skel /home\n"
18423 "\n"
18424 msgstr ""
18425
18426 #. type: =head1
18427 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18428 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/virt-copy-in.pod:41
18433 msgid ""
18434 "This command is just a simple shell script wrapper around the "
18435 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18436 "trivial copy, you are probably better off using guestfish directly."
18437 msgstr ""
18438
18439 #. type: textblock
18440 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18441 msgid ""
18442 "Since the shell script just passes options straight to guestfish, read "
18443 "L<guestfish(1)> to see the full list of options."
18444 msgstr ""
18445
18446 #. type: textblock
18447 #: ../fish/virt-copy-in.pod:52
18448 msgid ""
18449 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18450 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18455 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/virt-copy-out.pod:5
18460 msgid ""
18461 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18462 "image."
18463 msgstr ""
18464
18465 #. type: verbatim
18466 #: ../fish/virt-copy-out.pod:9
18467 #, no-wrap
18468 msgid ""
18469 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18470 "\n"
18471 msgstr ""
18472
18473 #. type: verbatim
18474 #: ../fish/virt-copy-out.pod:11
18475 #, no-wrap
18476 msgid ""
18477 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18478 "\n"
18479 msgstr ""
18480
18481 #. type: textblock
18482 #: ../fish/virt-copy-out.pod:15
18483 msgid ""
18484 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18485 "image or named libvirt domain."
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/virt-copy-out.pod:18
18490 msgid ""
18491 "You can give one of more filenames and directories on the command line.  "
18492 "Directories are copied out recursively."
18493 msgstr ""
18494
18495 #. type: textblock
18496 #: ../fish/virt-copy-out.pod:23
18497 msgid "Download the home directories from a virtual machine:"
18498 msgstr ""
18499
18500 #. type: verbatim
18501 #: ../fish/virt-copy-out.pod:25
18502 #, no-wrap
18503 msgid ""
18504 " mkdir homes\n"
18505 " virt-copy-out -d MyGuest /home homes\n"
18506 "\n"
18507 msgstr ""
18508
18509 #. type: textblock
18510 #: ../fish/virt-copy-out.pod:30
18511 msgid ""
18512 "This command is just a simple shell script wrapper around the "
18513 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18514 "trivial copy, you are probably better off using guestfish directly."
18515 msgstr ""
18516
18517 #. type: textblock
18518 #: ../fish/virt-copy-out.pod:41
18519 msgid ""
18520 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18521 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18522 msgstr ""
18523
18524 #. type: textblock
18525 #: ../fish/virt-tar-in.pod:5
18526 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18527 msgstr ""
18528
18529 #. type: verbatim
18530 #: ../fish/virt-tar-in.pod:9
18531 #, no-wrap
18532 msgid ""
18533 " virt-tar-in -a disk.img data.tar /destination\n"
18534 "\n"
18535 msgstr ""
18536
18537 #. type: verbatim
18538 #: ../fish/virt-tar-in.pod:11
18539 #, no-wrap
18540 msgid ""
18541 " virt-tar-in -d domain data.tar /destination\n"
18542 "\n"
18543 msgstr ""
18544
18545 #. type: verbatim
18546 #: ../fish/virt-tar-in.pod:13
18547 #, no-wrap
18548 msgid ""
18549 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18550 "\n"
18551 msgstr ""
18552
18553 #. type: textblock
18554 #: ../fish/virt-tar-in.pod:17
18555 msgid ""
18556 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18557 "causing disk corruption.  The virtual machine must be shut down before you "
18558 "use this command."
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/virt-tar-in.pod:23
18563 msgid ""
18564 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18565 "image or named libvirt domain."
18566 msgstr ""
18567
18568 #. type: textblock
18569 #: ../fish/virt-tar-in.pod:26
18570 msgid ""
18571 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18572 "standard input.  The second parameter is the absolute target directory to "
18573 "unpack into."
18574 msgstr ""
18575
18576 #. type: verbatim
18577 #: ../fish/virt-tar-in.pod:34
18578 #, no-wrap
18579 msgid ""
18580 " virt-tar-in -d MyGuest homes.tar /home\n"
18581 "\n"
18582 msgstr ""
18583
18584 #. type: textblock
18585 #: ../fish/virt-tar-in.pod:38
18586 msgid ""
18587 "This command is just a simple shell script wrapper around the "
18588 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18589 "copy, you are probably better off using guestfish directly."
18590 msgstr ""
18591
18592 #. type: textblock
18593 #: ../fish/virt-tar-in.pod:49
18594 msgid ""
18595 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18596 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18597 "L<http://libguestfs.org/>."
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/virt-tar-out.pod:5
18602 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18603 msgstr ""
18604
18605 #. type: verbatim
18606 #: ../fish/virt-tar-out.pod:9
18607 #, no-wrap
18608 msgid ""
18609 " virt-tar-out -a disk.img /dir files.tar\n"
18610 "\n"
18611 msgstr ""
18612
18613 #. type: verbatim
18614 #: ../fish/virt-tar-out.pod:11
18615 #, no-wrap
18616 msgid ""
18617 " virt-tar-out -d domain /dir files.tar\n"
18618 "\n"
18619 msgstr ""
18620
18621 #. type: verbatim
18622 #: ../fish/virt-tar-out.pod:13
18623 #, no-wrap
18624 msgid ""
18625 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18626 "\n"
18627 msgstr ""
18628
18629 #. type: textblock
18630 #: ../fish/virt-tar-out.pod:17
18631 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/virt-tar-out.pod:20
18636 msgid ""
18637 "The first parameter is the absolute path of the virtual machine directory.  "
18638 "The second parameter is the tar file to write.  Use C<-> to write to "
18639 "standard output."
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../fish/virt-tar-out.pod:26
18644 msgid "Download the home directories from a guest:"
18645 msgstr ""
18646
18647 #. type: verbatim
18648 #: ../fish/virt-tar-out.pod:28
18649 #, no-wrap
18650 msgid ""
18651 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18652 "\n"
18653 msgstr ""
18654
18655 #. type: textblock
18656 #: ../fish/virt-tar-out.pod:32
18657 msgid ""
18658 "This command is just a simple shell script wrapper around the "
18659 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
18660 "trivial copy, you are probably better off using guestfish directly."
18661 msgstr ""
18662
18663 #. type: textblock
18664 #: ../fish/virt-tar-out.pod:43
18665 msgid ""
18666 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18667 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18668 msgstr ""
18669
18670 #. type: textblock
18671 #: ../fuse/guestmount.pod:5
18672 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18673 msgstr ""
18674
18675 #. type: verbatim
18676 #: ../fuse/guestmount.pod:9
18677 #, no-wrap
18678 msgid ""
18679 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18680 "\n"
18681 msgstr ""
18682
18683 #. type: verbatim
18684 #: ../fuse/guestmount.pod:11
18685 #, no-wrap
18686 msgid ""
18687 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18688 "\n"
18689 msgstr ""
18690
18691 #. type: verbatim
18692 #: ../fuse/guestmount.pod:13
18693 #, no-wrap
18694 msgid ""
18695 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18696 "\n"
18697 msgstr ""
18698
18699 #. type: textblock
18700 #: ../fuse/guestmount.pod:17
18701 msgid ""
18702 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18703 "machines.  If you do this, you risk disk corruption in the VM."
18704 msgstr ""
18705
18706 #. type: textblock
18707 #: ../fuse/guestmount.pod:22
18708 msgid ""
18709 "The guestmount program can be used to mount virtual machine filesystems and "
18710 "other disk images on the host.  It uses libguestfs for access to the guest "
18711 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18712 "a mountable device."
18713 msgstr ""
18714
18715 #. type: textblock
18716 #: ../fuse/guestmount.pod:27
18717 msgid ""
18718 "Along with other options, you have to give at least one device (I<-a> "
18719 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18720 "option) or use the I<-i> inspection option.  How this works is better "
18721 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18722 "below."
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fuse/guestmount.pod:33
18727 msgid ""
18728 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18729 "by you, and the filesystem will not be visible to any other users unless you "
18730 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18731 "the filesystem, use the C<fusermount -u> command."
18732 msgstr ""
18733
18734 #. type: textblock
18735 #: ../fuse/guestmount.pod:41
18736 msgid ""
18737 "For a typical Windows guest which has its main filesystem on the first "
18738 "partition:"
18739 msgstr ""
18740
18741 #. type: verbatim
18742 #: ../fuse/guestmount.pod:44
18743 #, no-wrap
18744 msgid ""
18745 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18746 "\n"
18747 msgstr ""
18748
18749 #. type: textblock
18750 #: ../fuse/guestmount.pod:46
18751 msgid ""
18752 "For a typical Linux guest which has a /boot filesystem on the first "
18753 "partition, and the root filesystem on a logical volume:"
18754 msgstr ""
18755
18756 #. type: verbatim
18757 #: ../fuse/guestmount.pod:49
18758 #, no-wrap
18759 msgid ""
18760 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
18761 "\n"
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fuse/guestmount.pod:51
18766 msgid "To get libguestfs to detect guest mountpoints for you:"
18767 msgstr ""
18768
18769 #. type: verbatim
18770 #: ../fuse/guestmount.pod:53
18771 #, no-wrap
18772 msgid ""
18773 " guestmount -a guest.img -i --ro /mnt\n"
18774 "\n"
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fuse/guestmount.pod:55
18779 msgid "For a libvirt guest called \"Guest\" you could do:"
18780 msgstr ""
18781
18782 #. type: verbatim
18783 #: ../fuse/guestmount.pod:57
18784 #, no-wrap
18785 msgid ""
18786 " guestmount -d Guest -i --ro /mnt\n"
18787 "\n"
18788 msgstr ""
18789
18790 #. type: textblock
18791 #: ../fuse/guestmount.pod:59
18792 msgid ""
18793 "If you don't know what filesystems are contained in a guest or disk image, "
18794 "use L<virt-filesystems(1)> first:"
18795 msgstr ""
18796
18797 #. type: verbatim
18798 #: ../fuse/guestmount.pod:62
18799 #, no-wrap
18800 msgid ""
18801 " virt-filesystems MyGuest\n"
18802 "\n"
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fuse/guestmount.pod:64
18807 msgid ""
18808 "If you want to trace the libguestfs calls but without excessive debugging "
18809 "information, we recommend:"
18810 msgstr ""
18811
18812 #. type: verbatim
18813 #: ../fuse/guestmount.pod:67
18814 #, no-wrap
18815 msgid ""
18816 " guestmount [...] --trace /mnt\n"
18817 "\n"
18818 msgstr ""
18819
18820 #. type: textblock
18821 #: ../fuse/guestmount.pod:69
18822 msgid "If you want to debug the program, we recommend:"
18823 msgstr ""
18824
18825 #. type: verbatim
18826 #: ../fuse/guestmount.pod:71
18827 #, no-wrap
18828 msgid ""
18829 " guestmount [...] --trace --verbose /mnt\n"
18830 "\n"
18831 msgstr ""
18832
18833 #. type: =head1
18834 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:544
18835 msgid "NOTES"
18836 msgstr ""
18837
18838 #. type: =head2
18839 #: ../fuse/guestmount.pod:75
18840 msgid "Other users cannot see the filesystem by default"
18841 msgstr ""
18842
18843 #. type: textblock
18844 #: ../fuse/guestmount.pod:77
18845 msgid ""
18846 "If you mount a filesystem as one user (eg. root), then other users will not "
18847 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
18848 "option when mounting:"
18849 msgstr ""
18850
18851 #. type: verbatim
18852 #: ../fuse/guestmount.pod:81
18853 #, no-wrap
18854 msgid ""
18855 " sudo guestmount [...] -o allow_other /mnt\n"
18856 "\n"
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fuse/guestmount.pod:91
18861 msgid "Add a block device or virtual machine image."
18862 msgstr ""
18863
18864 #. type: =item
18865 #: ../fuse/guestmount.pod:114
18866 msgid "B<--dir-cache-timeout N>"
18867 msgstr ""
18868
18869 #. type: textblock
18870 #: ../fuse/guestmount.pod:116
18871 msgid ""
18872 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
18873 "seconds.  The readdir cache [actually, there are several semi-independent "
18874 "caches] is populated after a readdir(2) call with the stat and extended "
18875 "attributes of the files in the directory, in anticipation that they will be "
18876 "requested soon after."
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fuse/guestmount.pod:122
18881 msgid ""
18882 "There is also a different attribute cache implemented by FUSE (see the FUSE "
18883 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
18884 "requests, only cache existing ones."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fuse/guestmount.pod:142
18889 msgid ""
18890 "If you have untrusted raw-format guest disk images, you should use this "
18891 "option to specify the disk format.  This avoids a possible security problem "
18892 "with malicious guests (CVE-2010-3851).  See also "
18893 "L<guestfs(3)/guestfs_add_drive_opts>."
18894 msgstr ""
18895
18896 #. type: =item
18897 #: ../fuse/guestmount.pod:147
18898 msgid "B<--fuse-help>"
18899 msgstr ""
18900
18901 #. type: textblock
18902 #: ../fuse/guestmount.pod:149
18903 msgid "Display help on special FUSE options (see I<-o> below)."
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fuse/guestmount.pod:153
18908 msgid "Display brief help and exit."
18909 msgstr ""
18910
18911 #. type: textblock
18912 #: ../fuse/guestmount.pod:177
18913 msgid ""
18914 "Mount the named partition or logical volume on the given mountpoint B<in the "
18915 "guest> (this has nothing to do with mountpoints in the host)."
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../fuse/guestmount.pod:180
18920 msgid ""
18921 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
18922 "something on C</>."
18923 msgstr ""
18924
18925 #. type: textblock
18926 #: ../fuse/guestmount.pod:197
18927 msgid ""
18928 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
18929 "unmounted.  If you specify this option, then we don't attempt to sync the "
18930 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
18931 msgstr ""
18932
18933 #. type: =item
18934 #: ../fuse/guestmount.pod:202
18935 msgid "B<-o option>"
18936 msgstr ""
18937
18938 #. type: =item
18939 #: ../fuse/guestmount.pod:204
18940 msgid "B<--option option>"
18941 msgstr ""
18942
18943 #. type: textblock
18944 #: ../fuse/guestmount.pod:206
18945 msgid "Pass extra options to FUSE."
18946 msgstr ""
18947
18948 #. type: textblock
18949 #: ../fuse/guestmount.pod:208
18950 msgid ""
18951 "To get a list of all the extra options supported by FUSE, use the command "
18952 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
18953 "of them are a good idea."
18954 msgstr ""
18955
18956 #. type: verbatim
18957 #: ../fuse/guestmount.pod:212
18958 #, no-wrap
18959 msgid ""
18960 " guestmount --fuse-help\n"
18961 "\n"
18962 msgstr ""
18963
18964 #. type: textblock
18965 #: ../fuse/guestmount.pod:214
18966 msgid "Some potentially useful FUSE options:"
18967 msgstr ""
18968
18969 #. type: =item
18970 #: ../fuse/guestmount.pod:218
18971 msgid "B<-o allow_other>"
18972 msgstr ""
18973
18974 #. type: textblock
18975 #: ../fuse/guestmount.pod:220
18976 msgid "Allow other users to see the filesystem."
18977 msgstr ""
18978
18979 #. type: =item
18980 #: ../fuse/guestmount.pod:222
18981 msgid "B<-o attr_timeout=N>"
18982 msgstr ""
18983
18984 #. type: textblock
18985 #: ../fuse/guestmount.pod:224
18986 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
18987 msgstr ""
18988
18989 #. type: =item
18990 #: ../fuse/guestmount.pod:226
18991 msgid "B<-o kernel_cache>"
18992 msgstr ""
18993
18994 #. type: textblock
18995 #: ../fuse/guestmount.pod:228
18996 msgid ""
18997 "Allow the kernel to cache files (reduces the number of reads that have to go "
18998 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
18999 "afford the extra memory usage."
19000 msgstr ""
19001
19002 #. type: =item
19003 #: ../fuse/guestmount.pod:232
19004 msgid "B<-o uid=N> B<-o gid=N>"
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fuse/guestmount.pod:234
19009 msgid ""
19010 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
19011 "the chosen values."
19012 msgstr ""
19013
19014 #. type: textblock
19015 #: ../fuse/guestmount.pod:243
19016 msgid ""
19017 "Add devices and mount everything read-only.  Also disallow writes and make "
19018 "the disk appear read-only to FUSE."
19019 msgstr ""
19020
19021 #. type: textblock
19022 #: ../fuse/guestmount.pod:246
19023 msgid ""
19024 "This is highly recommended if you are not going to edit the guest disk.  If "
19025 "the guest is running and this option is I<not> supplied, then there is a "
19026 "strong risk of disk corruption in the guest.  We try to prevent this from "
19027 "happening, but it is not always possible."
19028 msgstr ""
19029
19030 #. type: textblock
19031 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
19032 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19033 msgstr ""
19034
19035 #. type: textblock
19036 #: ../fuse/guestmount.pod:255
19037 msgid "Enable SELinux support for the guest."
19038 msgstr ""
19039
19040 #. type: textblock
19041 #: ../fuse/guestmount.pod:261
19042 msgid "Enable verbose messages from underlying libguestfs."
19043 msgstr ""
19044
19045 #. type: textblock
19046 #: ../fuse/guestmount.pod:267
19047 msgid "Display the program version and exit."
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
19052 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
19053 msgstr ""
19054
19055 #. type: =item
19056 #: ../fuse/guestmount.pod:280
19057 msgid "B<--trace>"
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fuse/guestmount.pod:282
19062 msgid "Trace libguestfs calls and entry into each FUSE function."
19063 msgstr ""
19064
19065 #. type: textblock
19066 #: ../fuse/guestmount.pod:284
19067 msgid "This also stops the daemon from forking into the background."
19068 msgstr ""
19069
19070 #. type: textblock
19071 #: ../fuse/guestmount.pod:310
19072 msgid ""
19073 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
19074 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
19075 "L<http://fuse.sf.net/>."
19076 msgstr ""
19077
19078 #. type: textblock
19079 #: ../fuse/guestmount.pod:325
19080 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
19081 msgstr ""
19082
19083 #. type: textblock
19084 #: ../inspector/virt-inspector.pod:5
19085 msgid ""
19086 "virt-inspector - Display operating system version and other information "
19087 "about a virtual machine"
19088 msgstr ""
19089
19090 #. type: verbatim
19091 #: ../inspector/virt-inspector.pod:9
19092 #, no-wrap
19093 msgid ""
19094 " virt-inspector [--options] -d domname\n"
19095 "\n"
19096 msgstr ""
19097
19098 #. type: verbatim
19099 #: ../inspector/virt-inspector.pod:11
19100 #, no-wrap
19101 msgid ""
19102 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
19103 "\n"
19104 msgstr ""
19105
19106 #. type: verbatim
19107 #: ../inspector/virt-inspector.pod:15
19108 #, no-wrap
19109 msgid ""
19110 " virt-inspector domname\n"
19111 "\n"
19112 msgstr ""
19113
19114 #. type: verbatim
19115 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
19116 #, no-wrap
19117 msgid ""
19118 " virt-inspector disk.img [disk.img ...]\n"
19119 "\n"
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../inspector/virt-inspector.pod:21
19124 msgid ""
19125 "B<virt-inspector> examines a virtual machine or disk image and tries to "
19126 "determine the version of the operating system and other information about "
19127 "the virtual machine."
19128 msgstr ""
19129
19130 #. type: textblock
19131 #: ../inspector/virt-inspector.pod:25
19132 msgid "Virt-inspector produces XML output for feeding into other programs."
19133 msgstr ""
19134
19135 #. type: textblock
19136 #: ../inspector/virt-inspector.pod:27
19137 msgid ""
19138 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
19139 "the libvirt domain (see: C<virsh list --all>)."
19140 msgstr ""
19141
19142 #. type: textblock
19143 #: ../inspector/virt-inspector.pod:30
19144 msgid ""
19145 "You can also run virt-inspector directly on disk images from a single "
19146 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
19147 "has several block devices, in which case you should list several I<-a> "
19148 "options one after another, with the first corresponding to the guest's "
19149 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
19150 msgstr ""
19151
19152 #. type: textblock
19153 #: ../inspector/virt-inspector.pod:37
19154 msgid ""
19155 "You can also run virt-inspector on install disks, live CDs, bootable USB "
19156 "keys and similar."
19157 msgstr ""
19158
19159 #. type: textblock
19160 #: ../inspector/virt-inspector.pod:40
19161 msgid ""
19162 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
19163 "inspect several virtual machines, you have to run virt-inspector several "
19164 "times (for example, from a shell script for-loop)."
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../inspector/virt-inspector.pod:45
19169 msgid ""
19170 "Because virt-inspector needs direct access to guest images, it won't "
19171 "normally work over remote libvirt connections."
19172 msgstr ""
19173
19174 #. type: textblock
19175 #: ../inspector/virt-inspector.pod:48
19176 msgid ""
19177 "All of the information available from virt-inspector is also available "
19178 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19179 "The same information can also be fetched using guestfish or via libguestfs "
19180 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19181 "WITH OTHER PROGRAMMING LANGUAGES>)."
19182 msgstr ""
19183
19184 #. type: textblock
19185 #: ../inspector/virt-inspector.pod:81
19186 msgid ""
19187 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19188 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19189 "at all."
19190 msgstr ""
19191
19192 #. type: textblock
19193 #: ../inspector/virt-inspector.pod:94
19194 msgid ""
19195 "When prompting for keys and passphrases, virt-inspector normally turns "
19196 "echoing off so you cannot see what you are typing.  If you are not worried "
19197 "about Tempest attacks and there is no one else in the room you can specify "
19198 "this flag to see what you are typing."
19199 msgstr ""
19200
19201 #. type: textblock
19202 #: ../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
19203 msgid ""
19204 "Specify the format of disk images given on the command line.  If this is "
19205 "omitted then the format is autodetected from the content of the disk image."
19206 msgstr ""
19207
19208 #. type: textblock
19209 #: ../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
19210 msgid ""
19211 "If disk images are requested from libvirt, then this program asks libvirt "
19212 "for this information.  In this case, the value of the format parameter is "
19213 "ignored."
19214 msgstr ""
19215
19216 #. type: textblock
19217 #: ../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
19218 msgid ""
19219 "If working with untrusted raw-format guest disk images, you should ensure "
19220 "the format is always specified."
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../inspector/virt-inspector.pod:139
19225 msgid "Previous versions of virt-inspector allowed you to write either:"
19226 msgstr ""
19227
19228 #. type: verbatim
19229 #: ../inspector/virt-inspector.pod:145
19230 #, no-wrap
19231 msgid ""
19232 " virt-inspector guestname\n"
19233 "\n"
19234 msgstr ""
19235
19236 #. type: =head1
19237 #: ../inspector/virt-inspector.pod:153
19238 msgid "XML FORMAT"
19239 msgstr ""
19240
19241 #. type: textblock
19242 #: ../inspector/virt-inspector.pod:155
19243 msgid ""
19244 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19245 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19246 "just an overview."
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../inspector/virt-inspector.pod:159
19251 msgid ""
19252 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19253 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19254 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19255 "which is vanishingly rare in real world VMs."
19256 msgstr ""
19257
19258 #. type: =head2
19259 #: ../inspector/virt-inspector.pod:164
19260 msgid "E<lt>operatingsystemE<gt>"
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../inspector/virt-inspector.pod:166
19265 msgid ""
19266 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19267 "describe the operating system, its architecture, the descriptive \"product "
19268 "name\" string, the type of OS and so on, as in this example:"
19269 msgstr ""
19270
19271 #. type: verbatim
19272 #: ../inspector/virt-inspector.pod:170
19273 #, no-wrap
19274 msgid ""
19275 " <operatingsystems>\n"
19276 "   <operatingsystem>\n"
19277 "     <root>/dev/sda2</root>\n"
19278 "     <name>windows</name>\n"
19279 "     <arch>i386</arch>\n"
19280 "     <distro>windows</distro>\n"
19281 "     <product_name>Windows 7 Enterprise</product_name>\n"
19282 "     <product_variant>Client</product_variant>\n"
19283 "     <major_version>6</major_version>\n"
19284 "     <minor_version>1</minor_version>\n"
19285 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19286 "     <format>installed</format>\n"
19287 "\n"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../inspector/virt-inspector.pod:183
19292 msgid ""
19293 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19294 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19295 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19296 "architecture.  The other fields are fairly self-explanatory, but because "
19297 "these fields are taken directly from the libguestfs inspection API you can "
19298 "find precise information from L<guestfs(3)/INSPECTION>."
19299 msgstr ""
19300
19301 #. type: textblock
19302 #: ../inspector/virt-inspector.pod:191
19303 msgid ""
19304 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19305 "of view of libguestfs (block devices may have completely different names "
19306 "inside the VM itself)."
19307 msgstr ""
19308
19309 #. type: =head2
19310 #: ../inspector/virt-inspector.pod:195
19311 msgid "E<lt>mountpointsE<gt>"
19312 msgstr ""
19313
19314 #. type: textblock
19315 #: ../inspector/virt-inspector.pod:197
19316 msgid ""
19317 "Un*x-like guests typically have multiple filesystems which are mounted at "
19318 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19319 "element which looks like this:"
19320 msgstr ""
19321
19322 #. type: verbatim
19323 #: ../inspector/virt-inspector.pod:201
19324 #, no-wrap
19325 msgid ""
19326 " <operatingsystems>\n"
19327 "   <operatingsystem>\n"
19328 "     ...\n"
19329 "     <mountpoints>\n"
19330 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19331 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19332 "     </mountpoints>\n"
19333 "\n"
19334 msgstr ""
19335
19336 #. type: textblock
19337 #: ../inspector/virt-inspector.pod:209
19338 msgid ""
19339 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19340 "and may have completely different names inside the guest.  Only mountable "
19341 "filesystems appear in this list, not things like swap devices."
19342 msgstr ""
19343
19344 #. type: =head2
19345 #: ../inspector/virt-inspector.pod:214
19346 msgid "E<lt>filesystemsE<gt>"
19347 msgstr ""
19348
19349 #. type: textblock
19350 #: ../inspector/virt-inspector.pod:216
19351 msgid ""
19352 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19353 "filesystems belonging to the guest, including swap and empty partitions.  "
19354 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19355 "this OS or shared with this OS and other OSes)."
19356 msgstr ""
19357
19358 #. type: textblock
19359 #: ../inspector/virt-inspector.pod:222
19360 msgid "You might see something like this:"
19361 msgstr ""
19362
19363 #. type: verbatim
19364 #: ../inspector/virt-inspector.pod:224
19365 #, no-wrap
19366 msgid ""
19367 " <operatingsystems>\n"
19368 "   <operatingsystem>\n"
19369 "     ...\n"
19370 "     <filesystems>\n"
19371 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19372 "         <type>ext4</type>\n"
19373 "         <label>Fedora-13-x86_64</label>\n"
19374 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19375 "       </filesystem>\n"
19376 "\n"
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../inspector/virt-inspector.pod:234
19381 msgid ""
19382 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19383 "the label, and the UUID."
19384 msgstr ""
19385
19386 #. type: =head2
19387 #: ../inspector/virt-inspector.pod:237
19388 msgid "E<lt>applicationsE<gt>"
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../inspector/virt-inspector.pod:239
19393 msgid ""
19394 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19395 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19396 "machine."
19397 msgstr ""
19398
19399 #. type: textblock
19400 #: ../inspector/virt-inspector.pod:243
19401 msgid ""
19402 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19403 "Typical values would be C<rpm> and C<deb>."
19404 msgstr ""
19405
19406 #. type: textblock
19407 #: ../inspector/virt-inspector.pod:246
19408 msgid ""
19409 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19410 "Typical values include C<yum>, C<up2date> and C<apt>"
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../inspector/virt-inspector.pod:249
19415 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19416 msgstr ""
19417
19418 #. type: verbatim
19419 #: ../inspector/virt-inspector.pod:252
19420 #, no-wrap
19421 msgid ""
19422 " <operatingsystems>\n"
19423 "   <operatingsystem>\n"
19424 "     ...\n"
19425 "     <applications>\n"
19426 "       <application>\n"
19427 "         <name>coreutils</name>\n"
19428 "         <version>8.5</version>\n"
19429 "         <release>1</release>\n"
19430 "       </application>\n"
19431 "\n"
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../inspector/virt-inspector.pod:262
19436 msgid ""
19437 "The version and release fields may not be available for some types guests.  "
19438 "Other fields are possible, see "
19439 "L<guestfs(3)/guestfs_inspect_list_applications>."
19440 msgstr ""
19441
19442 #. type: =head2
19443 #: ../inspector/virt-inspector.pod:266
19444 msgid "E<lt>drive_mappingsE<gt>"
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../inspector/virt-inspector.pod:268
19449 msgid ""
19450 "For operating systems like Windows which use drive letters, virt-inspector "
19451 "is able to find out how drive letters map to filesystems."
19452 msgstr ""
19453
19454 #. type: verbatim
19455 #: ../inspector/virt-inspector.pod:272
19456 #, no-wrap
19457 msgid ""
19458 " <operatingsystems>\n"
19459 "   <operatingsystem>\n"
19460 "     ...\n"
19461 "     <drive_mappings>\n"
19462 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19463 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19464 "     </drive_mappings>\n"
19465 "\n"
19466 msgstr ""
19467
19468 #. type: textblock
19469 #: ../inspector/virt-inspector.pod:280
19470 msgid ""
19471 "In the example above, drive C maps to the filesystem on the second partition "
19472 "on the first disk, and drive E maps to the filesystem on the first partition "
19473 "on the second disk."
19474 msgstr ""
19475
19476 #. type: textblock
19477 #: ../inspector/virt-inspector.pod:284
19478 msgid ""
19479 "Note that this only covers permanent local filesystem mappings, not things "
19480 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19481 "here."
19482 msgstr ""
19483
19484 #. type: =head2
19485 #: ../inspector/virt-inspector.pod:288
19486 msgid "E<lt>iconE<gt>"
19487 msgstr ""
19488
19489 #. type: textblock
19490 #: ../inspector/virt-inspector.pod:290
19491 msgid ""
19492 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19493 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19494 "very large and high quality."
19495 msgstr ""
19496
19497 #. type: verbatim
19498 #: ../inspector/virt-inspector.pod:294
19499 #, no-wrap
19500 msgid ""
19501 " <operatingsystems>\n"
19502 "   <operatingsystem>\n"
19503 "     ...\n"
19504 "     <icon>\n"
19505 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19506 "       [... many lines of base64 data ...]\n"
19507 "     </icon>\n"
19508 "\n"
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../inspector/virt-inspector.pod:302
19513 msgid ""
19514 "To display the icon, you have to extract it and convert the base64 data back "
19515 "to a binary file.  Use an XPath query or simply an editor to extract the "
19516 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19517 "to a PNG file:"
19518 msgstr ""
19519
19520 #. type: verbatim
19521 #: ../inspector/virt-inspector.pod:307
19522 #, no-wrap
19523 msgid ""
19524 " base64 -i -d < icon.data > icon.png\n"
19525 "\n"
19526 msgstr ""
19527
19528 #. type: =head2
19529 #: ../inspector/virt-inspector.pod:309
19530 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../inspector/virt-inspector.pod:311
19535 msgid ""
19536 "Virt-inspector can detect some operating system installers on install disks, "
19537 "live CDs, bootable USB keys and more."
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../inspector/virt-inspector.pod:314
19542 msgid ""
19543 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19544 "fields may be present to indicate a live CD, network installer, or one part "
19545 "of a multipart CD.  For example:"
19546 msgstr ""
19547
19548 #. type: verbatim
19549 #: ../inspector/virt-inspector.pod:318
19550 #, no-wrap
19551 msgid ""
19552 " <operatingsystems>\n"
19553 "   <operatingsystem>\n"
19554 "     <root>/dev/sda</root>\n"
19555 "     <name>linux</name>\n"
19556 "     <arch>i386</arch>\n"
19557 "     <distro>ubuntu</distro>\n"
19558 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19559 "Meerkat&quot;</product_name>\n"
19560 "     <major_version>10</major_version>\n"
19561 "     <minor_version>10</minor_version>\n"
19562 "     <format>installer</format>\n"
19563 "     <live/>\n"
19564 "\n"
19565 msgstr ""
19566
19567 #. type: =head1
19568 #: ../inspector/virt-inspector.pod:330
19569 msgid "USING XPATH"
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../inspector/virt-inspector.pod:332
19574 msgid ""
19575 "You can use the XPath query language to select parts of the XML.  We "
19576 "recommend using C<xmlstarlet> to perform XPath queries from the command "
19577 "line."
19578 msgstr ""
19579
19580 #. type: verbatim
19581 #: ../inspector/virt-inspector.pod:338
19582 #, no-wrap
19583 msgid ""
19584 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19585 " <filesystems>\n"
19586 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19587 "        <type>ext4</type>\n"
19588 " [...]\n"
19589 "\n"
19590 msgstr ""
19591
19592 #. type: verbatim
19593 #: ../inspector/virt-inspector.pod:344
19594 #, no-wrap
19595 msgid ""
19596 " $ virt-inspector -d Guest | \\\n"
19597 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19598 " ext4\n"
19599 "\n"
19600 msgstr ""
19601
19602 #. type: verbatim
19603 #: ../inspector/virt-inspector.pod:348
19604 #, no-wrap
19605 msgid ""
19606 " $ virt-inspector -d Guest | \\\n"
19607 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19608 " [displays the guest icon, if there is one]\n"
19609 "\n"
19610 msgstr ""
19611
19612 #. type: =head1
19613 #: ../inspector/virt-inspector.pod:359
19614 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../inspector/virt-inspector.pod:361
19619 msgid ""
19620 "Early versions of libguestfs shipped with a different virt-inspector program "
19621 "written in Perl (the current version is written in C).  The XML output of "
19622 "the Perl virt-inspector was different and it could also output in other "
19623 "formats like text."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../inspector/virt-inspector.pod:366
19628 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19629 msgstr ""
19630
19631 #. type: textblock
19632 #: ../inspector/virt-inspector.pod:369
19633 msgid ""
19634 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19635 "versions of virt-inspector with different names:"
19636 msgstr ""
19637
19638 #. type: verbatim
19639 #: ../inspector/virt-inspector.pod:372
19640 #, no-wrap
19641 msgid ""
19642 " virt-inspector     Old Perl version.\n"
19643 " virt-inspector2    New C version.\n"
19644 "\n"
19645 msgstr ""
19646
19647 #. type: textblock
19648 #: ../inspector/virt-inspector.pod:382
19649 msgid ""
19650 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19651 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../inspector/virt-inspector.pod:399
19656 msgid "Matthew Booth L<mbooth@redhat.com>"
19657 msgstr ""
19658
19659 #. type: textblock
19660 #: ../java/examples/guestfs-java.pod:5
19661 msgid "guestfs-java - How to use libguestfs from Java"
19662 msgstr ""
19663
19664 #. type: verbatim
19665 #: ../java/examples/guestfs-java.pod:9
19666 #, no-wrap
19667 msgid ""
19668 " import com.redhat.et.libguestfs.*;\n"
19669 " \n"
19670 msgstr ""
19671
19672 #. type: verbatim
19673 #: ../java/examples/guestfs-java.pod:11
19674 #, no-wrap
19675 msgid ""
19676 " GuestFS g = new GuestFS ();\n"
19677 " g.add_drive_opts (\"disk.img\", null);\n"
19678 " g.launch ();\n"
19679 "\n"
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../java/examples/guestfs-java.pod:17
19684 msgid ""
19685 "This manual page documents how to call libguestfs from the Java programming "
19686 "language.  This page just documents the differences from the C API and gives "
19687 "some examples.  If you are not familiar with using libguestfs, you also need "
19688 "to read L<guestfs(3)>."
19689 msgstr ""
19690
19691 #. type: =head2
19692 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19693 msgid "CLOSING THE HANDLE"
19694 msgstr ""
19695
19696 #. type: textblock
19697 #: ../java/examples/guestfs-java.pod:24
19698 msgid ""
19699 "The handle is closed when it is reaped by the garbage collector.  Because "
19700 "libguestfs handles include a lot of state, it is also possible to close (and "
19701 "hence free) them explicitly by calling the C<close> method."
19702 msgstr ""
19703
19704 #. type: =head2
19705 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19706 msgid "EXCEPTIONS"
19707 msgstr ""
19708
19709 #. type: textblock
19710 #: ../java/examples/guestfs-java.pod:31
19711 msgid ""
19712 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19713 "exception.  This has a single parameter which is the error message (a "
19714 "C<String>)."
19715 msgstr ""
19716
19717 #. type: textblock
19718 #: ../java/examples/guestfs-java.pod:35
19719 msgid "Calling any method on a closed handle raises the same exception."
19720 msgstr ""
19721
19722 #. type: textblock
19723 #: ../java/examples/guestfs-java.pod:47
19724 msgid ""
19725 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
19726 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
19727 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
19728 "L<http://caml.inria.fr/>."
19729 msgstr ""
19730
19731 #. type: textblock
19732 #: ../ocaml/examples/guestfs-ocaml.pod:5
19733 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19734 msgstr ""
19735
19736 #. type: textblock
19737 #: ../ocaml/examples/guestfs-ocaml.pod:9
19738 msgid "Module style:"
19739 msgstr ""
19740
19741 #. type: verbatim
19742 #: ../ocaml/examples/guestfs-ocaml.pod:11
19743 #, no-wrap
19744 msgid ""
19745 " let g = Guestfs.create () in\n"
19746 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19747 " Guestfs.launch g;\n"
19748 "\n"
19749 msgstr ""
19750
19751 #. type: textblock
19752 #: ../ocaml/examples/guestfs-ocaml.pod:15
19753 msgid "Object-oriented style:"
19754 msgstr ""
19755
19756 #. type: verbatim
19757 #: ../ocaml/examples/guestfs-ocaml.pod:17
19758 #, no-wrap
19759 msgid ""
19760 " let g = new Guestfs.guestfs () in\n"
19761 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19762 " g#launch ();\n"
19763 "\n"
19764 msgstr ""
19765
19766 #. type: verbatim
19767 #: ../ocaml/examples/guestfs-ocaml.pod:21
19768 #, no-wrap
19769 msgid ""
19770 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19771 "or:\n"
19772 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19773 "\n"
19774 msgstr ""
19775
19776 #. type: textblock
19777 #: ../ocaml/examples/guestfs-ocaml.pod:27
19778 msgid ""
19779 "This manual page documents how to call libguestfs from the OCaml programming "
19780 "language.  This page just documents the differences from the C API and gives "
19781 "some examples.  If you are not familiar with using libguestfs, you also need "
19782 "to read L<guestfs(3)>."
19783 msgstr ""
19784
19785 #. type: =head2
19786 #: ../ocaml/examples/guestfs-ocaml.pod:32
19787 msgid "PROGRAMMING STYLES"
19788 msgstr ""
19789
19790 #. type: textblock
19791 #: ../ocaml/examples/guestfs-ocaml.pod:34
19792 msgid ""
19793 "There are two different programming styles supported by the OCaml bindings.  "
19794 "You can use a module style, with each C function mapped to an OCaml "
19795 "function:"
19796 msgstr ""
19797
19798 #. type: verbatim
19799 #: ../ocaml/examples/guestfs-ocaml.pod:38
19800 #, no-wrap
19801 msgid ""
19802 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19803 "\n"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../ocaml/examples/guestfs-ocaml.pod:40
19808 msgid "becomes:"
19809 msgstr ""
19810
19811 #. type: verbatim
19812 #: ../ocaml/examples/guestfs-ocaml.pod:42
19813 #, no-wrap
19814 msgid ""
19815 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19816 "\n"
19817 msgstr ""
19818
19819 #. type: textblock
19820 #: ../ocaml/examples/guestfs-ocaml.pod:44
19821 msgid ""
19822 "Alternately you can use an object-oriented style, calling methods on the "
19823 "class C<Guestfs.guestfs>:"
19824 msgstr ""
19825
19826 #. type: verbatim
19827 #: ../ocaml/examples/guestfs-ocaml.pod:47
19828 #, no-wrap
19829 msgid ""
19830 " method set_verbose : bool -> unit\n"
19831 "\n"
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../ocaml/examples/guestfs-ocaml.pod:49
19836 msgid ""
19837 "The object-oriented style is usually briefer, and the minor performance "
19838 "penalty isn't noticable in the general overhead of performing libguestfs "
19839 "functions."
19840 msgstr ""
19841
19842 #. type: textblock
19843 #: ../ocaml/examples/guestfs-ocaml.pod:55
19844 msgid ""
19845 "The handle is closed when it is reaped by the garbage collector.  Because "
19846 "libguestfs handles include a lot of state, it is also possible to close (and "
19847 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19848 "method."
19849 msgstr ""
19850
19851 #. type: textblock
19852 #: ../ocaml/examples/guestfs-ocaml.pod:62
19853 msgid ""
19854 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19855 "exception.  This has a single parameter which is the error message (a "
19856 "string)."
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../ocaml/examples/guestfs-ocaml.pod:66
19861 msgid ""
19862 "Calling any function/method on a closed handle raises "
19863 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19864 "that you called."
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../ocaml/examples/guestfs-ocaml.pod:80
19869 msgid ""
19870 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
19871 "L<guestfs-java(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
19872 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>, "
19873 "L<http://caml.inria.fr/>."
19874 msgstr ""
19875
19876 #. type: textblock
19877 #: ../perl/examples/guestfs-perl.pod:5
19878 msgid "guestfs-perl - How to use libguestfs from Perl"
19879 msgstr ""
19880
19881 #. type: verbatim
19882 #: ../perl/examples/guestfs-perl.pod:9
19883 #, no-wrap
19884 msgid ""
19885 " use Sys::Guestfs;\n"
19886 " \n"
19887 msgstr ""
19888
19889 #. type: verbatim
19890 #: ../perl/examples/guestfs-perl.pod:11
19891 #, no-wrap
19892 msgid ""
19893 " my $h = Sys::Guestfs->new ();\n"
19894 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19895 " $h->launch ();\n"
19896 " $h->mount_options ('', '/dev/sda1', '/');\n"
19897 " $h->touch ('/hello');\n"
19898 " $h->sync ();\n"
19899 "\n"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../perl/examples/guestfs-perl.pod:20
19904 msgid ""
19905 "This manual page documents how to call libguestfs from the Perl programming "
19906 "language.  This page just documents the differences from the C API and gives "
19907 "some examples.  If you are not familiar with using libguestfs, you also need "
19908 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
19909 msgstr ""
19910
19911 #. type: =head2
19912 #: ../perl/examples/guestfs-perl.pod:26
19913 msgid "ERRORS"
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../perl/examples/guestfs-perl.pod:28
19918 msgid ""
19919 "Errors from libguestfs functions turn into calls to C<croak> (see "
19920 "L<Carp(3)>)."
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../perl/examples/guestfs-perl.pod:41
19925 msgid ""
19926 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
19927 "L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
19928 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
19929 "L<http://libguestfs.org/>."
19930 msgstr ""
19931
19932 #. type: textblock
19933 #: ../python/examples/guestfs-python.pod:5
19934 msgid "guestfs-python - How to use libguestfs from Python"
19935 msgstr ""
19936
19937 #. type: verbatim
19938 #: ../python/examples/guestfs-python.pod:9
19939 #, no-wrap
19940 msgid ""
19941 " import guestfs\n"
19942 " g = guestfs.GuestFS ()\n"
19943 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
19944 " g.launch\n"
19945 "\n"
19946 msgstr ""
19947
19948 #. type: textblock
19949 #: ../python/examples/guestfs-python.pod:16
19950 msgid ""
19951 "This manual page documents how to call libguestfs from the Python "
19952 "programming language.  This page just documents the differences from the C "
19953 "API and gives some examples.  If you are not familiar with using libguestfs, "
19954 "you also need to read L<guestfs(3)>."
19955 msgstr ""
19956
19957 #. type: textblock
19958 #: ../python/examples/guestfs-python.pod:23
19959 msgid ""
19960 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
19961 "single string argument which is the error message."
19962 msgstr ""
19963
19964 #. type: =head2
19965 #: ../python/examples/guestfs-python.pod:26
19966 msgid "MORE DOCUMENTATION"
19967 msgstr ""
19968
19969 #. type: textblock
19970 #: ../python/examples/guestfs-python.pod:28
19971 msgid "Type:"
19972 msgstr ""
19973
19974 #. type: verbatim
19975 #: ../python/examples/guestfs-python.pod:30
19976 #, no-wrap
19977 msgid ""
19978 " $ python\n"
19979 " >>> import guestfs\n"
19980 " >>> help (guestfs)\n"
19981 "\n"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../python/examples/guestfs-python.pod:44
19986 msgid ""
19987 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
19988 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
19989 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19990 msgstr ""
19991
19992 #. type: textblock
19993 #: ../rescue/virt-rescue.pod:5
19994 msgid "virt-rescue - Run a rescue shell on a virtual machine"
19995 msgstr ""
19996
19997 #. type: verbatim
19998 #: ../rescue/virt-rescue.pod:9
19999 #, no-wrap
20000 msgid ""
20001 " virt-rescue [--options] -d domname\n"
20002 "\n"
20003 msgstr ""
20004
20005 #. type: verbatim
20006 #: ../rescue/virt-rescue.pod:11
20007 #, no-wrap
20008 msgid ""
20009 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
20010 "\n"
20011 msgstr ""
20012
20013 #. type: verbatim
20014 #: ../rescue/virt-rescue.pod:15
20015 #, no-wrap
20016 msgid ""
20017 " virt-rescue [--options] domname\n"
20018 "\n"
20019 msgstr ""
20020
20021 #. type: verbatim
20022 #: ../rescue/virt-rescue.pod:17
20023 #, no-wrap
20024 msgid ""
20025 " virt-rescue [--options] disk.img [disk.img ...]\n"
20026 "\n"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../rescue/virt-rescue.pod:21
20031 msgid ""
20032 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
20033 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
20034 "you from doing this, but doesn't catch all cases."
20035 msgstr ""
20036
20037 #. type: textblock
20038 #: ../rescue/virt-rescue.pod:25
20039 msgid ""
20040 "However if you use the I<--ro> (read only) option, then you can attach a "
20041 "shell to a live virtual machine.  The results might be strange or "
20042 "inconsistent at times but you won't get disk corruption."
20043 msgstr ""
20044
20045 #. type: textblock
20046 #: ../rescue/virt-rescue.pod:31
20047 msgid ""
20048 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
20049 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
20050 "recovery tools which you can use to examine or rescue a virtual machine or "
20051 "disk image."
20052 msgstr ""
20053
20054 #. type: textblock
20055 #: ../rescue/virt-rescue.pod:36
20056 msgid ""
20057 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
20058 "on disk image(s):"
20059 msgstr ""
20060
20061 #. type: verbatim
20062 #: ../rescue/virt-rescue.pod:39
20063 #, no-wrap
20064 msgid ""
20065 " virt-rescue -d GuestName\n"
20066 "\n"
20067 msgstr ""
20068
20069 #. type: verbatim
20070 #: ../rescue/virt-rescue.pod:41
20071 #, no-wrap
20072 msgid ""
20073 " virt-rescue --ro -a /path/to/disk.img\n"
20074 "\n"
20075 msgstr ""
20076
20077 #. type: verbatim
20078 #: ../rescue/virt-rescue.pod:43
20079 #, no-wrap
20080 msgid ""
20081 " virt-rescue -a /dev/sdc\n"
20082 "\n"
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../rescue/virt-rescue.pod:45
20087 msgid "For live VMs you I<must> use the --ro option."
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../rescue/virt-rescue.pod:47
20092 msgid ""
20093 "When you run virt-rescue on a virtual machine or disk image, you are placed "
20094 "in an interactive bash shell where you can use many ordinary Linux "
20095 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
20096 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
20097 "is an empty directory called C</sysroot> where you can mount filesystems."
20098 msgstr ""
20099
20100 #. type: textblock
20101 #: ../rescue/virt-rescue.pod:54
20102 msgid ""
20103 "In the example below, we list logical volumes, then choose one to mount "
20104 "under C</sysroot>:"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../rescue/virt-rescue.pod:57
20109 #, no-wrap
20110 msgid ""
20111 " ><rescue> lvs\n"
20112 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
20113 " lv_root vg_f11x64 -wi-a-   8.83G\n"
20114 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
20115 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
20116 " ><rescue> ls /sysroot\n"
20117 "\n"
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../rescue/virt-rescue.pod:64
20122 msgid ""
20123 "If you don't know what filesystems are available on the virtual machine then "
20124 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
20125 msgstr ""
20126
20127 #. type: textblock
20128 #: ../rescue/virt-rescue.pod:70
20129 msgid ""
20130 "Virt-rescue can be used on I<any> disk image file or device, not just a "
20131 "virtual machine.  For example you can use it on a blank file if you want to "
20132 "partition that file (although we would recommend using L<guestfish(1)> "
20133 "instead as it is more suitable for this purpose).  You can even use "
20134 "virt-rescue on things like SD cards."
20135 msgstr ""
20136
20137 #. type: textblock
20138 #: ../rescue/virt-rescue.pod:76
20139 msgid ""
20140 "Virt-rescue does not require root.  You only need to run it as root if you "
20141 "need root to open the disk image."
20142 msgstr ""
20143
20144 #. type: textblock
20145 #: ../rescue/virt-rescue.pod:79
20146 msgid ""
20147 "This tool is just designed for quick interactive hacking on a virtual "
20148 "machine.  For more structured access to a virtual machine disk image, you "
20149 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
20150 "make scripted changes to guests, use L<guestfish(1)>."
20151 msgstr ""
20152
20153 #. type: =item
20154 #: ../rescue/virt-rescue.pod:103
20155 msgid "B<--append kernelopts>"
20156 msgstr ""
20157
20158 #. type: textblock
20159 #: ../rescue/virt-rescue.pod:105
20160 msgid "Pass additional options to the rescue kernel."
20161 msgstr ""
20162
20163 #. type: verbatim
20164 #: ../rescue/virt-rescue.pod:135
20165 #, no-wrap
20166 msgid ""
20167 " virt-rescue --format=raw -a disk.img\n"
20168 "\n"
20169 msgstr ""
20170
20171 #. type: verbatim
20172 #: ../rescue/virt-rescue.pod:139
20173 #, no-wrap
20174 msgid ""
20175 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20176 "\n"
20177 msgstr ""
20178
20179 #. type: =item
20180 #: ../rescue/virt-rescue.pod:148
20181 msgid "B<-m MB>"
20182 msgstr ""
20183
20184 #. type: =item
20185 #: ../rescue/virt-rescue.pod:150
20186 msgid "B<--memsize MB>"
20187 msgstr ""
20188
20189 #. type: textblock
20190 #: ../rescue/virt-rescue.pod:152
20191 msgid ""
20192 "Change the amount of memory allocated to the rescue system.  The default is "
20193 "set by libguestfs and is small but adequate for running system tools.  The "
20194 "occasional program might need more memory.  The parameter is specified in "
20195 "megabytes."
20196 msgstr ""
20197
20198 #. type: =item
20199 #: ../rescue/virt-rescue.pod:157
20200 msgid "B<--network>"
20201 msgstr ""
20202
20203 #. type: textblock
20204 #: ../rescue/virt-rescue.pod:159
20205 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20206 msgstr ""
20207
20208 #. type: textblock
20209 #: ../rescue/virt-rescue.pod:165
20210 msgid "Open the image read-only."
20211 msgstr ""
20212
20213 #. type: textblock
20214 #: ../rescue/virt-rescue.pod:175
20215 msgid ""
20216 "Enable SELinux in the rescue appliance.  You should read "
20217 "L<guestfs(3)/SELINUX> before using this option."
20218 msgstr ""
20219
20220 #. type: textblock
20221 #: ../rescue/virt-rescue.pod:194
20222 msgid ""
20223 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20224 "are done read-write."
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../rescue/virt-rescue.pod:207
20229 msgid "Previous versions of virt-rescue allowed you to write either:"
20230 msgstr ""
20231
20232 #. type: verbatim
20233 #: ../rescue/virt-rescue.pod:209
20234 #, no-wrap
20235 msgid ""
20236 " virt-rescue disk.img [disk.img ...]\n"
20237 "\n"
20238 msgstr ""
20239
20240 #. type: verbatim
20241 #: ../rescue/virt-rescue.pod:213
20242 #, no-wrap
20243 msgid ""
20244 " virt-rescue guestname\n"
20245 "\n"
20246 msgstr ""
20247
20248 #. type: =head1
20249 #: ../rescue/virt-rescue.pod:221
20250 msgid "NETWORK"
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../rescue/virt-rescue.pod:223
20255 msgid ""
20256 "Adding the I<--network> option enables QEMU user networking in the rescue "
20257 "appliance.  There are some differences between user networking and ordinary "
20258 "networking:"
20259 msgstr ""
20260
20261 #. type: =item
20262 #: ../rescue/virt-rescue.pod:229
20263 msgid "ping does not work"
20264 msgstr ""
20265
20266 #. type: textblock
20267 #: ../rescue/virt-rescue.pod:231
20268 msgid ""
20269 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20270 "send the ping packets, and because virt-rescue must be able to run as "
20271 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
20272 "command.  The ping command will appear to resolve addresses but will not be "
20273 "able to send or receive any packets.  This does not mean that the network is "
20274 "not working."
20275 msgstr ""
20276
20277 #. type: =item
20278 #: ../rescue/virt-rescue.pod:238
20279 msgid "cannot receive connections"
20280 msgstr ""
20281
20282 #. type: textblock
20283 #: ../rescue/virt-rescue.pod:240
20284 msgid "QEMU user networking cannot receive incoming connections."
20285 msgstr ""
20286
20287 #. type: =item
20288 #: ../rescue/virt-rescue.pod:242
20289 msgid "making TCP connections"
20290 msgstr ""
20291
20292 #. type: textblock
20293 #: ../rescue/virt-rescue.pod:244
20294 msgid ""
20295 "The virt-rescue appliance needs to be small and so does not include many "
20296 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20297 "make TCP connections from the shell using the magical "
20298 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20299 msgstr ""
20300
20301 #. type: verbatim
20302 #: ../rescue/virt-rescue.pod:249
20303 #, no-wrap
20304 msgid ""
20305 " exec 3<>/dev/tcp/redhat.com/80\n"
20306 " echo \"GET /\" >&3\n"
20307 " cat <&3\n"
20308 "\n"
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../rescue/virt-rescue.pod:253
20313 msgid "See L<bash(1)> for more details."
20314 msgstr ""
20315
20316 #. type: textblock
20317 #: ../rescue/virt-rescue.pod:259
20318 msgid ""
20319 "Several environment variables affect virt-rescue.  See "
20320 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20321 msgstr ""
20322
20323 #. type: textblock
20324 #: ../rescue/virt-rescue.pod:286
20325 msgid ""
20326 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20327 "L<http://libguestfs.org/>."
20328 msgstr ""
20329
20330 #. type: textblock
20331 #: ../resize/virt-resize.pod:5
20332 msgid "virt-resize - Resize a virtual machine disk"
20333 msgstr ""
20334
20335 #. type: verbatim
20336 #: ../resize/virt-resize.pod:9
20337 #, no-wrap
20338 msgid ""
20339 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20340 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20341 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20342 "\n"
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../resize/virt-resize.pod:15
20347 msgid ""
20348 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20349 "larger or smaller overall, and resizing or deleting any partitions contained "
20350 "within."
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../resize/virt-resize.pod:19
20355 msgid ""
20356 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20357 "not> be used on live virtual machines - for consistent results, shut the "
20358 "virtual machine down before resizing it."
20359 msgstr ""
20360
20361 #. type: textblock
20362 #: ../resize/virt-resize.pod:23
20363 msgid ""
20364 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20365 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20366 msgstr ""
20367
20368 #. type: =item
20369 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520 ../src/guestfs.pod:469 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400 ../src/guestfs.pod:2578
20370 msgid "1."
20371 msgstr ""
20372
20373 #. type: textblock
20374 #: ../resize/virt-resize.pod:33
20375 msgid ""
20376 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20377 "fill the extra 5GB of space."
20378 msgstr ""
20379
20380 #. type: verbatim
20381 #: ../resize/virt-resize.pod:36
20382 #, no-wrap
20383 msgid ""
20384 " virt-filesystems --long -h --all -a olddisk\n"
20385 " \n"
20386 msgstr ""
20387
20388 #. type: verbatim
20389 #: ../resize/virt-resize.pod:38
20390 #, no-wrap
20391 msgid ""
20392 " truncate -r olddisk newdisk\n"
20393 " truncate -s +5G newdisk\n"
20394 " \n"
20395 msgstr ""
20396
20397 #. type: verbatim
20398 #: ../resize/virt-resize.pod:41
20399 #, no-wrap
20400 msgid ""
20401 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20402 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20403 "\n"
20404 msgstr ""
20405
20406 #. type: =item
20407 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527 ../src/guestfs.pod:475 ../src/guestfs.pod:1265 ../src/guestfs.pod:1404 ../src/guestfs.pod:2603
20408 msgid "2."
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../resize/virt-resize.pod:46
20413 msgid ""
20414 "As above, but make the /boot partition 200MB bigger, while giving the "
20415 "remaining space to /dev/sda2:"
20416 msgstr ""
20417
20418 #. type: verbatim
20419 #: ../resize/virt-resize.pod:49
20420 #, no-wrap
20421 msgid ""
20422 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20423 "   olddisk newdisk\n"
20424 "\n"
20425 msgstr ""
20426
20427 #. type: =item
20428 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533 ../src/guestfs.pod:486 ../src/guestfs.pod:1410
20429 msgid "3."
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../resize/virt-resize.pod:54
20434 msgid ""
20435 "As in the first example, but expand a logical volume as the final step.  "
20436 "This is what you would typically use for Linux guests that use LVM:"
20437 msgstr ""
20438
20439 #. type: verbatim
20440 #: ../resize/virt-resize.pod:58
20441 #, no-wrap
20442 msgid ""
20443 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20444 "   olddisk newdisk\n"
20445 "\n"
20446 msgstr ""
20447
20448 #. type: =item
20449 #: ../resize/virt-resize.pod:61
20450 msgid "4."
20451 msgstr ""
20452
20453 #. type: textblock
20454 #: ../resize/virt-resize.pod:63
20455 msgid ""
20456 "As in the first example, but the output format will be qcow2 instead of a "
20457 "raw disk:"
20458 msgstr ""
20459
20460 #. type: verbatim
20461 #: ../resize/virt-resize.pod:66
20462 #, no-wrap
20463 msgid ""
20464 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20465 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20466 "\n"
20467 msgstr ""
20468
20469 #. type: =head1
20470 #: ../resize/virt-resize.pod:71
20471 msgid "DETAILED USAGE"
20472 msgstr ""
20473
20474 #. type: =head2
20475 #: ../resize/virt-resize.pod:73
20476 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20477 msgstr ""
20478
20479 #. type: =item
20480 #: ../resize/virt-resize.pod:77
20481 msgid "1. Shut down the virtual machine"
20482 msgstr ""
20483
20484 #. type: =item
20485 #: ../resize/virt-resize.pod:79
20486 msgid "2. Locate input disk image"
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../resize/virt-resize.pod:81
20491 msgid ""
20492 "Locate the input disk image (ie. the file or device on the host containing "
20493 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20494 "dumpxml> like this to find the disk image name:"
20495 msgstr ""
20496
20497 #. type: verbatim
20498 #: ../resize/virt-resize.pod:85
20499 #, no-wrap
20500 msgid ""
20501 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20502 " Found 1 nodes:\n"
20503 " -- NODE --\n"
20504 " <source dev=\"/dev/vg/lv_guest\" />\n"
20505 "\n"
20506 msgstr ""
20507
20508 #. type: =item
20509 #: ../resize/virt-resize.pod:90
20510 msgid "3. Look at current sizing"
20511 msgstr ""
20512
20513 #. type: textblock
20514 #: ../resize/virt-resize.pod:92
20515 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20516 msgstr ""
20517
20518 #. type: verbatim
20519 #: ../resize/virt-resize.pod:95
20520 #, no-wrap
20521 msgid ""
20522 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20523 " Name       Type       Size  Parent\n"
20524 " /dev/sda1  partition  101M  /dev/sda\n"
20525 " /dev/sda2  partition  7.9G  /dev/sda\n"
20526 " /dev/sda   device     8.0G  -\n"
20527 "\n"
20528 msgstr ""
20529
20530 #. type: textblock
20531 #: ../resize/virt-resize.pod:101
20532 msgid ""
20533 "(This example is a virtual machine with an 8 GB disk which we would like to "
20534 "expand up to 10 GB)."
20535 msgstr ""
20536
20537 #. type: =item
20538 #: ../resize/virt-resize.pod:104
20539 msgid "4. Create output disk"
20540 msgstr ""
20541
20542 #. type: textblock
20543 #: ../resize/virt-resize.pod:106
20544 msgid ""
20545 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20546 "to store the resized output disk."
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../resize/virt-resize.pod:109
20551 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20552 msgstr ""
20553
20554 #. type: verbatim
20555 #: ../resize/virt-resize.pod:112
20556 #, no-wrap
20557 msgid ""
20558 " # rm -f outdisk\n"
20559 " # truncate -s 10G outdisk\n"
20560 "\n"
20561 msgstr ""
20562
20563 #. type: textblock
20564 #: ../resize/virt-resize.pod:115
20565 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20566 msgstr ""
20567
20568 #. type: verbatim
20569 #: ../resize/virt-resize.pod:117
20570 #, no-wrap
20571 msgid ""
20572 " # lvcreate -L 10G -n lv_name vg_name\n"
20573 "\n"
20574 msgstr ""
20575
20576 #. type: textblock
20577 #: ../resize/virt-resize.pod:119
20578 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20579 msgstr ""
20580
20581 #. type: verbatim
20582 #: ../resize/virt-resize.pod:121
20583 #, no-wrap
20584 msgid ""
20585 " # virsh pool-list\n"
20586 " # virsh vol-create-as poolname newvol 10G\n"
20587 "\n"
20588 msgstr ""
20589
20590 #. type: =item
20591 #: ../resize/virt-resize.pod:124
20592 msgid "5. Resize"
20593 msgstr ""
20594
20595 #. type: textblock
20596 #: ../resize/virt-resize.pod:126
20597 msgid ""
20598 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20599 "file) and the output disk.  The output disk is the one created in the "
20600 "previous step."
20601 msgstr ""
20602
20603 #. type: verbatim
20604 #: ../resize/virt-resize.pod:130
20605 #, no-wrap
20606 msgid ""
20607 " # virt-resize indisk outdisk\n"
20608 "\n"
20609 msgstr ""
20610
20611 #. type: textblock
20612 #: ../resize/virt-resize.pod:132
20613 msgid ""
20614 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20615 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20616 "larger, then an extra, empty partition is created at the end of the disk "
20617 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20618 "error."
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../resize/virt-resize.pod:138
20623 msgid ""
20624 "More realistically you'd want to expand existing partitions in the disk "
20625 "image by passing extra options (for the full list see the L</OPTIONS> "
20626 "section below)."
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../resize/virt-resize.pod:142
20631 msgid ""
20632 "L</--expand> is the most useful option.  It expands the named partition "
20633 "within the disk to fill any extra space:"
20634 msgstr ""
20635
20636 #. type: verbatim
20637 #: ../resize/virt-resize.pod:145
20638 #, no-wrap
20639 msgid ""
20640 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20641 "\n"
20642 msgstr ""
20643
20644 #. type: textblock
20645 #: ../resize/virt-resize.pod:147
20646 msgid ""
20647 "(In this case, an extra partition is I<not> created at the end of the disk, "
20648 "because there will be no unused space)."
20649 msgstr ""
20650
20651 #. type: textblock
20652 #: ../resize/virt-resize.pod:150
20653 msgid ""
20654 "L</--resize> is the other commonly used option.  The following would "
20655 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20656 "rest of the available space:"
20657 msgstr ""
20658
20659 #. type: verbatim
20660 #: ../resize/virt-resize.pod:154
20661 #, no-wrap
20662 msgid ""
20663 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20664 "     indisk outdisk\n"
20665 "\n"
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../resize/virt-resize.pod:157
20670 msgid ""
20671 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20672 "if virt-resize knows how, it will resize the contents, the equivalent of "
20673 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20674 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20675 "filesystems, so you would have to online resize them after booting the "
20676 "guest."
20677 msgstr ""
20678
20679 #. type: textblock
20680 #: ../resize/virt-resize.pod:164
20681 msgid "Other options are covered below."
20682 msgstr ""
20683
20684 #. type: =item
20685 #: ../resize/virt-resize.pod:166
20686 msgid "6. Test"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../resize/virt-resize.pod:168
20691 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../resize/virt-resize.pod:170
20696 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20697 msgstr ""
20698
20699 #. type: verbatim
20700 #: ../resize/virt-resize.pod:172
20701 #, no-wrap
20702 msgid ""
20703 " # virsh edit guestname\n"
20704 "\n"
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../resize/virt-resize.pod:174
20709 msgid ""
20710 "Change E<lt>source ...E<gt>, see "
20711 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../resize/virt-resize.pod:177
20716 msgid "Then start up the domain with the new, resized disk:"
20717 msgstr ""
20718
20719 #. type: verbatim
20720 #: ../resize/virt-resize.pod:179
20721 #, no-wrap
20722 msgid ""
20723 " # virsh start guestname\n"
20724 "\n"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../resize/virt-resize.pod:181
20729 msgid ""
20730 "and check that it still works.  See also the L</NOTES> section below for "
20731 "additional information."
20732 msgstr ""
20733
20734 #. type: =item
20735 #: ../resize/virt-resize.pod:184
20736 msgid "7. Resize LVs etc inside the guest"
20737 msgstr ""
20738
20739 #. type: textblock
20740 #: ../resize/virt-resize.pod:186
20741 msgid "(This can also be done offline using L<guestfish(1)>)"
20742 msgstr ""
20743
20744 #. type: textblock
20745 #: ../resize/virt-resize.pod:188
20746 msgid ""
20747 "Once the guest has booted you should see the new space available, at least "
20748 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20749 "may need to resize LVs inside PVs, and also resize filesystem types that "
20750 "virt-resize does not know how to expand."
20751 msgstr ""
20752
20753 #. type: =head2
20754 #: ../resize/virt-resize.pod:195
20755 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../resize/virt-resize.pod:197
20760 msgid ""
20761 "Shrinking is somewhat more complex than expanding, and only an overview is "
20762 "given here."
20763 msgstr ""
20764
20765 #. type: textblock
20766 #: ../resize/virt-resize.pod:200
20767 msgid ""
20768 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20769 "filesystems).  The user has to shrink content before passing the disk image "
20770 "to virt-resize, and virt-resize will check that the content has been shrunk "
20771 "properly."
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../resize/virt-resize.pod:205
20776 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../resize/virt-resize.pod:207
20781 msgid ""
20782 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20783 "steps 3 and 4 above to allocate a new disk image."
20784 msgstr ""
20785
20786 #. type: textblock
20787 #: ../resize/virt-resize.pod:210
20788 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20789 msgstr ""
20790
20791 #. type: =head2
20792 #: ../resize/virt-resize.pod:213
20793 msgid "IGNORING OR DELETING PARTITIONS"
20794 msgstr ""
20795
20796 #. type: textblock
20797 #: ../resize/virt-resize.pod:215
20798 msgid ""
20799 "virt-resize also gives a convenient way to ignore or delete partitions when "
20800 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20801 "up the copy where you don't care about the existing contents of a "
20802 "partition.  Deleting a partition removes it completely, but note that it "
20803 "also renumbers any partitions after the one which is deleted, which can "
20804 "leave some guests unbootable."
20805 msgstr ""
20806
20807 #. type: =head2
20808 #: ../resize/virt-resize.pod:222
20809 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../resize/virt-resize.pod:224
20814 msgid ""
20815 "If the input disk is in qcow2 format, then you may prefer that the output is "
20816 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20817 "the fly.  The output format is simply determined by the format of the empty "
20818 "output container that you provide.  Thus to create qcow2 output, use:"
20819 msgstr ""
20820
20821 #. type: verbatim
20822 #: ../resize/virt-resize.pod:230
20823 #, no-wrap
20824 msgid ""
20825 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20826 "\n"
20827 msgstr ""
20828
20829 #. type: textblock
20830 #: ../resize/virt-resize.pod:232
20831 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../resize/virt-resize.pod:234
20836 msgid "Similarly, to get non-sparse raw output use:"
20837 msgstr ""
20838
20839 #. type: verbatim
20840 #: ../resize/virt-resize.pod:236
20841 #, no-wrap
20842 msgid ""
20843 " fallocate -l size outdisk\n"
20844 "\n"
20845 msgstr ""
20846
20847 #. type: textblock
20848 #: ../resize/virt-resize.pod:238
20849 msgid ""
20850 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20851 "if=/dev/zero of=outdisk bs=1M count=..>)"
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../resize/virt-resize.pod:247
20856 msgid "Display help."
20857 msgstr ""
20858
20859 #. type: =item
20860 #: ../resize/virt-resize.pod:249
20861 msgid "B<-d>"
20862 msgstr ""
20863
20864 #. type: =item
20865 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20866 msgid "B<--debug>"
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20871 msgid "Enable debugging messages."
20872 msgstr ""
20873
20874 #. type: =item
20875 #: ../resize/virt-resize.pod:255
20876 msgid "B<--delete part>"
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../resize/virt-resize.pod:257
20881 msgid ""
20882 "Delete the named partition.  It would be more accurate to describe this as "
20883 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20884 "the original disk image is left intact."
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../resize/virt-resize.pod:261
20889 msgid ""
20890 "Note that when you delete a partition, then anything contained in the "
20891 "partition is also deleted.  Furthermore, this causes any partitions that "
20892 "come after to be I<renumbered>, which can easily make your guest unbootable."
20893 msgstr ""
20894
20895 #. type: textblock
20896 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454
20897 msgid "You can give this option multiple times."
20898 msgstr ""
20899
20900 #. type: =item
20901 #: ../resize/virt-resize.pod:268
20902 msgid "B<--expand part>"
20903 msgstr ""
20904
20905 #. type: textblock
20906 #: ../resize/virt-resize.pod:270
20907 msgid ""
20908 "Expand the named partition so it uses up all extra space (space left over "
20909 "after any other resize changes that you request have been done)."
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../resize/virt-resize.pod:273
20914 msgid ""
20915 "If virt-resize knows how, it will expand the direct content of the "
20916 "partition.  For example, if the partition is an LVM PV, it will expand the "
20917 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
20918 "content it doesn't know about alone."
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../resize/virt-resize.pod:278
20923 msgid "Currently virt-resize can resize:"
20924 msgstr ""
20925
20926 #. type: textblock
20927 #: ../resize/virt-resize.pod:284
20928 msgid "ext2, ext3 and ext4 filesystems."
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../resize/virt-resize.pod:288
20933 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
20934 msgstr ""
20935
20936 #. type: textblock
20937 #: ../resize/virt-resize.pod:290
20938 msgid ""
20939 "The filesystem must have been shut down consistently last time it was used.  "
20940 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
20941 "consistency check, so at the first boot after resizing Windows will check "
20942 "the disk."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../resize/virt-resize.pod:297
20947 msgid ""
20948 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
20949 "inside the PV, but see the I<--LV-expand> option.  The user could also "
20950 "resize LVs as desired after boot."
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../resize/virt-resize.pod:303
20955 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
20956 msgstr ""
20957
20958 #. type: textblock
20959 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
20960 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
20961 msgstr ""
20962
20963 #. type: =item
20964 #: ../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
20965 msgid "B<--format> raw"
20966 msgstr ""
20967
20968 #. type: textblock
20969 #: ../resize/virt-resize.pod:311
20970 msgid ""
20971 "Specify the format of the input disk image.  If this flag is not given then "
20972 "it is auto-detected from the image itself."
20973 msgstr ""
20974
20975 #. type: textblock
20976 #: ../resize/virt-resize.pod:317
20977 msgid ""
20978 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
20979 "AND NON-SPARSE RAW FORMATS>."
20980 msgstr ""
20981
20982 #. type: =item
20983 #: ../resize/virt-resize.pod:320
20984 msgid "B<--ignore part>"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../resize/virt-resize.pod:322
20989 msgid ""
20990 "Ignore the named partition.  Effectively this means the partition is "
20991 "allocated on the destination disk, but the content is not copied across from "
20992 "the source disk.  The content of the partition will be blank (all zero "
20993 "bytes)."
20994 msgstr ""
20995
20996 #. type: =item
20997 #: ../resize/virt-resize.pod:329
20998 msgid "B<--LV-expand logvol>"
20999 msgstr ""
21000
21001 #. type: textblock
21002 #: ../resize/virt-resize.pod:331
21003 msgid ""
21004 "This takes the logical volume and, as a final step, expands it to fill all "
21005 "the space available in its volume group.  A typical usage, assuming a Linux "
21006 "guest with a single PV C</dev/sda2> and a root device called "
21007 "C</dev/vg_guest/lv_root> would be:"
21008 msgstr ""
21009
21010 #. type: verbatim
21011 #: ../resize/virt-resize.pod:336
21012 #, no-wrap
21013 msgid ""
21014 " virt-resize indisk outdisk \\\n"
21015 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
21016 "\n"
21017 msgstr ""
21018
21019 #. type: textblock
21020 #: ../resize/virt-resize.pod:339
21021 msgid ""
21022 "This would first expand the partition (and PV), and then expand the root "
21023 "device to fill the extra space in the PV."
21024 msgstr ""
21025
21026 #. type: textblock
21027 #: ../resize/virt-resize.pod:342
21028 msgid ""
21029 "The contents of the LV are also resized if virt-resize knows how to do "
21030 "that.  You can stop virt-resize from trying to expand the content by using "
21031 "the option I<--no-expand-content>."
21032 msgstr ""
21033
21034 #. type: textblock
21035 #: ../resize/virt-resize.pod:346
21036 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
21037 msgstr ""
21038
21039 #. type: textblock
21040 #: ../resize/virt-resize.pod:348
21041 msgid ""
21042 "You can give this option multiple times, I<but> it doesn't make sense to do "
21043 "this unless the logical volumes you specify are all in different volume "
21044 "groups."
21045 msgstr ""
21046
21047 #. type: =item
21048 #: ../resize/virt-resize.pod:352
21049 msgid "B<--machine-readable>"
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../resize/virt-resize.pod:354
21054 msgid ""
21055 "This option is used to make the output more machine friendly when being "
21056 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
21057 msgstr ""
21058
21059 #. type: =item
21060 #: ../resize/virt-resize.pod:360
21061 msgid "B<--dryrun>"
21062 msgstr ""
21063
21064 #. type: textblock
21065 #: ../resize/virt-resize.pod:362
21066 msgid "Print a summary of what would be done, but don't do anything."
21067 msgstr ""
21068
21069 #. type: =item
21070 #: ../resize/virt-resize.pod:364
21071 msgid "B<--no-copy-boot-loader>"
21072 msgstr ""
21073
21074 #. type: textblock
21075 #: ../resize/virt-resize.pod:366
21076 msgid ""
21077 "By default, virt-resize copies over some sectors at the start of the disk "
21078 "(up to the beginning of the first partition).  Commonly these sectors "
21079 "contain the Master Boot Record (MBR) and the boot loader, and are required "
21080 "in order for the guest to boot correctly."
21081 msgstr ""
21082
21083 #. type: textblock
21084 #: ../resize/virt-resize.pod:371
21085 msgid ""
21086 "If you specify this flag, then this initial copy is not done.  You may need "
21087 "to reinstall the boot loader in this case."
21088 msgstr ""
21089
21090 #. type: =item
21091 #: ../resize/virt-resize.pod:374
21092 msgid "B<--no-extra-partition>"
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../resize/virt-resize.pod:376
21097 msgid ""
21098 "By default, virt-resize creates an extra partition if there is any extra, "
21099 "unused space after all resizing has happened.  Use this option to prevent "
21100 "the extra partition from being created.  If you do this then the extra space "
21101 "will be inaccessible until you run fdisk, parted, or some other partitioning "
21102 "tool in the guest."
21103 msgstr ""
21104
21105 #. type: textblock
21106 #: ../resize/virt-resize.pod:382
21107 msgid ""
21108 "Note that if the surplus space is smaller than 10 MB, no extra partition "
21109 "will be created."
21110 msgstr ""
21111
21112 #. type: =item
21113 #: ../resize/virt-resize.pod:385
21114 msgid "B<--no-expand-content>"
21115 msgstr ""
21116
21117 #. type: textblock
21118 #: ../resize/virt-resize.pod:387
21119 msgid ""
21120 "By default, virt-resize will try to expand the direct contents of "
21121 "partitions, if it knows how (see I<--expand> option above)."
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../resize/virt-resize.pod:390
21126 msgid ""
21127 "If you give the I<--no-expand-content> option then virt-resize will not "
21128 "attempt this."
21129 msgstr ""
21130
21131 #. type: =item
21132 #: ../resize/virt-resize.pod:393
21133 msgid "B<--ntfsresize-force>"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../resize/virt-resize.pod:395
21138 msgid ""
21139 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
21140 "the NTFS disk is marked as needing a consistency check.  You have to use "
21141 "this option if you want to resize a Windows guest multiple times without "
21142 "booting into Windows between each resize."
21143 msgstr ""
21144
21145 #. type: =item
21146 #: ../resize/virt-resize.pod:401
21147 msgid "B<--output-format> raw"
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../resize/virt-resize.pod:403
21152 msgid ""
21153 "Specify the format of the output disk image.  If this flag is not given then "
21154 "it is auto-detected from the image itself."
21155 msgstr ""
21156
21157 #. type: textblock
21158 #: ../resize/virt-resize.pod:409
21159 msgid ""
21160 "Note that this option I<does not create> the output format.  This option "
21161 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21162 "need to create the output disk with the right format.  See L</QCOW2 AND "
21163 "NON-SPARSE RAW FORMATS>."
21164 msgstr ""
21165
21166 #. type: =item
21167 #: ../resize/virt-resize.pod:414
21168 msgid "B<-q>"
21169 msgstr ""
21170
21171 #. type: =item
21172 #: ../resize/virt-resize.pod:416
21173 msgid "B<--quiet>"
21174 msgstr ""
21175
21176 #. type: textblock
21177 #: ../resize/virt-resize.pod:418
21178 msgid "Don't print the summary."
21179 msgstr ""
21180
21181 #. type: =item
21182 #: ../resize/virt-resize.pod:420
21183 msgid "B<--resize part=size>"
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../resize/virt-resize.pod:422
21188 msgid ""
21189 "Resize the named partition (expanding or shrinking it) so that it has the "
21190 "given size."
21191 msgstr ""
21192
21193 #. type: textblock
21194 #: ../resize/virt-resize.pod:425
21195 msgid ""
21196 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21197 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21198 "size; or as a relative number or percentage.  For example:"
21199 msgstr ""
21200
21201 #. type: verbatim
21202 #: ../resize/virt-resize.pod:431
21203 #, no-wrap
21204 msgid ""
21205 " --resize /dev/sda2=10G\n"
21206 "\n"
21207 msgstr ""
21208
21209 #. type: verbatim
21210 #: ../resize/virt-resize.pod:433
21211 #, no-wrap
21212 msgid ""
21213 " --resize /dev/sda4=90%\n"
21214 "\n"
21215 msgstr ""
21216
21217 #. type: verbatim
21218 #: ../resize/virt-resize.pod:435
21219 #, no-wrap
21220 msgid ""
21221 " --resize /dev/sda2=+1G\n"
21222 "\n"
21223 msgstr ""
21224
21225 #. type: verbatim
21226 #: ../resize/virt-resize.pod:437
21227 #, no-wrap
21228 msgid ""
21229 " --resize /dev/sda2=-200M\n"
21230 "\n"
21231 msgstr ""
21232
21233 #. type: verbatim
21234 #: ../resize/virt-resize.pod:439
21235 #, no-wrap
21236 msgid ""
21237 " --resize /dev/sda1=+128K\n"
21238 "\n"
21239 msgstr ""
21240
21241 #. type: verbatim
21242 #: ../resize/virt-resize.pod:441
21243 #, no-wrap
21244 msgid ""
21245 " --resize /dev/sda1=+10%\n"
21246 "\n"
21247 msgstr ""
21248
21249 #. type: verbatim
21250 #: ../resize/virt-resize.pod:443
21251 #, no-wrap
21252 msgid ""
21253 " --resize /dev/sda1=-10%\n"
21254 "\n"
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../resize/virt-resize.pod:445
21259 msgid ""
21260 "You can increase the size of any partition.  Virt-resize will expand the "
21261 "direct content of the partition if it knows how (see I<--expand> below)."
21262 msgstr ""
21263
21264 #. type: textblock
21265 #: ../resize/virt-resize.pod:449
21266 msgid ""
21267 "You can only I<decrease> the size of partitions that contain filesystems or "
21268 "PVs which have already been shrunk.  Virt-resize will check this has been "
21269 "done before proceeding, or else will print an error (see also "
21270 "I<--resize-force>)."
21271 msgstr ""
21272
21273 #. type: =item
21274 #: ../resize/virt-resize.pod:456
21275 msgid "B<--resize-force part=size>"
21276 msgstr ""
21277
21278 #. type: textblock
21279 #: ../resize/virt-resize.pod:458
21280 msgid ""
21281 "This is the same as I<--resize> except that it will let you decrease the "
21282 "size of any partition.  Generally this means you will lose any data which "
21283 "was at the end of the partition you shrink, but you may not care about that "
21284 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21285 "as a swap partition)."
21286 msgstr ""
21287
21288 #. type: textblock
21289 #: ../resize/virt-resize.pod:464
21290 msgid "See also the I<--ignore> option."
21291 msgstr ""
21292
21293 #. type: =item
21294 #: ../resize/virt-resize.pod:466
21295 msgid "B<--shrink part>"
21296 msgstr ""
21297
21298 #. type: textblock
21299 #: ../resize/virt-resize.pod:468
21300 msgid ""
21301 "Shrink the named partition until the overall disk image fits in the "
21302 "destination.  The named partition B<must> contain a filesystem or PV which "
21303 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21304 "online tools).  Virt-resize will check this and give an error if it has not "
21305 "been done."
21306 msgstr ""
21307
21308 #. type: textblock
21309 #: ../resize/virt-resize.pod:474
21310 msgid ""
21311 "The amount by which the overall disk must be shrunk (after carrying out all "
21312 "other operations requested by the user) is called the \"deficit\".  For "
21313 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21314 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21315 "would give an error unless the user specified a partition to shrink and that "
21316 "partition had more than a gigabyte of free space."
21317 msgstr ""
21318
21319 #. type: =head1
21320 #: ../resize/virt-resize.pod:492
21321 msgid "MACHINE READABLE OUTPUT"
21322 msgstr ""
21323
21324 #. type: textblock
21325 #: ../resize/virt-resize.pod:494
21326 msgid ""
21327 "The I<--machine-readable> option can be used to make the output more machine "
21328 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21329 "etc."
21330 msgstr ""
21331
21332 #. type: textblock
21333 #: ../resize/virt-resize.pod:498
21334 msgid "There are two ways to use this option."
21335 msgstr ""
21336
21337 #. type: textblock
21338 #: ../resize/virt-resize.pod:500
21339 msgid ""
21340 "Firstly use the option on its own to query the capabilities of the "
21341 "virt-resize binary.  Typical output looks like this:"
21342 msgstr ""
21343
21344 #. type: verbatim
21345 #: ../resize/virt-resize.pod:503
21346 #, no-wrap
21347 msgid ""
21348 " $ virt-resize --machine-readable\n"
21349 " virt-resize\n"
21350 " ntfsresize-force\n"
21351 " 32bitok\n"
21352 " ntfs\n"
21353 " btrfs\n"
21354 "\n"
21355 msgstr ""
21356
21357 #. type: textblock
21358 #: ../resize/virt-resize.pod:510
21359 msgid ""
21360 "A list of features is printed, one per line, and the program exits with "
21361 "status 0."
21362 msgstr ""
21363
21364 #. type: textblock
21365 #: ../resize/virt-resize.pod:513
21366 msgid ""
21367 "Secondly use the option in conjunction with other options to make the "
21368 "regular program output more machine friendly."
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../resize/virt-resize.pod:516
21373 msgid "At the moment this means:"
21374 msgstr ""
21375
21376 #. type: textblock
21377 #: ../resize/virt-resize.pod:522
21378 msgid ""
21379 "Progress bar messages can be parsed from stdout by looking for this regular "
21380 "expression:"
21381 msgstr ""
21382
21383 #. type: verbatim
21384 #: ../resize/virt-resize.pod:525
21385 #, no-wrap
21386 msgid ""
21387 " ^[0-9]+/[0-9]+$\n"
21388 "\n"
21389 msgstr ""
21390
21391 #. type: textblock
21392 #: ../resize/virt-resize.pod:529
21393 msgid ""
21394 "The calling program should treat messages sent to stdout (except for "
21395 "progress bar messages) as status messages.  They can be logged and/or "
21396 "displayed to the user."
21397 msgstr ""
21398
21399 #. type: textblock
21400 #: ../resize/virt-resize.pod:535
21401 msgid ""
21402 "The calling program should treat messages sent to stderr as error messages.  "
21403 "In addition, virt-resize exits with a non-zero status code if there was a "
21404 "fatal error."
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../resize/virt-resize.pod:541
21409 msgid ""
21410 "Versions of the program prior to 1.13.9 did not support the "
21411 "I<--machine-readable> option and will return an error."
21412 msgstr ""
21413
21414 #. type: =head2
21415 #: ../resize/virt-resize.pod:546
21416 msgid "\"Partition 1 does not end on cylinder boundary.\""
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../resize/virt-resize.pod:548
21421 msgid ""
21422 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21423 "means the partitions will not be aligned to the ancient CHS geometry.  "
21424 "However CHS geometry is meaningless for disks manufactured since the early "
21425 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21426 "cylinders is not required by any modern operating system."
21427 msgstr ""
21428
21429 #. type: =head2
21430 #: ../resize/virt-resize.pod:555
21431 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21432 msgstr ""
21433
21434 #. type: textblock
21435 #: ../resize/virt-resize.pod:557
21436 msgid ""
21437 "In Windows Vista and later versions, Microsoft switched to using a separate "
21438 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21439 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21440 "the boot partition.  Doing so seems to break the guest completely.  However "
21441 "expanding the second partition (ie. C: drive) should work."
21442 msgstr ""
21443
21444 #. type: textblock
21445 #: ../resize/virt-resize.pod:564
21446 msgid ""
21447 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21448 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21449 "it find errors) is nothing to worry about."
21450 msgstr ""
21451
21452 #. type: =head2
21453 #: ../resize/virt-resize.pod:568
21454 msgid "GUEST BOOT STUCK AT \"GRUB\""
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../resize/virt-resize.pod:570
21459 msgid ""
21460 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21461 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21462 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21463 "although we think is to do with partition alignment."
21464 msgstr ""
21465
21466 #. type: verbatim
21467 #: ../resize/virt-resize.pod:575
21468 #, no-wrap
21469 msgid ""
21470 " guestfish -i -a newdisk\n"
21471 " ><fs> cat /boot/grub/device.map\n"
21472 " # check the contents of this file are sensible or\n"
21473 " # edit the file if necessary\n"
21474 " ><fs> grub-install / /dev/vda\n"
21475 " ><fs> exit\n"
21476 "\n"
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../resize/virt-resize.pod:582
21481 msgid ""
21482 "For more flexible guest reconfiguration, including if you need to specify "
21483 "other parameters to grub-install, use L<virt-rescue(1)>."
21484 msgstr ""
21485
21486 #. type: =head1
21487 #: ../resize/virt-resize.pod:585
21488 msgid "ALTERNATIVE TOOLS"
21489 msgstr ""
21490
21491 #. type: textblock
21492 #: ../resize/virt-resize.pod:587
21493 msgid ""
21494 "There are several proprietary tools for resizing partitions.  We won't "
21495 "mention any here."
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../resize/virt-resize.pod:590
21500 msgid ""
21501 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21502 "operations on disk images.  They can resize and move partitions, but I don't "
21503 "think they can do anything with the contents, and they certainly don't "
21504 "understand LVM."
21505 msgstr ""
21506
21507 #. type: textblock
21508 #: ../resize/virt-resize.pod:595
21509 msgid ""
21510 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21511 "but at a much lower level.  You will probably end up hand-calculating sector "
21512 "offsets, which is something that virt-resize was designed to avoid.  If you "
21513 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21514 "I<--debug> flag."
21515 msgstr ""
21516
21517 #. type: textblock
21518 #: ../resize/virt-resize.pod:615
21519 msgid ""
21520 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21521 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21522 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21523 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21524 "L<http://libguestfs.org/>."
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../ruby/examples/guestfs-ruby.pod:5
21529 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21530 msgstr ""
21531
21532 #. type: verbatim
21533 #: ../ruby/examples/guestfs-ruby.pod:9
21534 #, no-wrap
21535 msgid ""
21536 " require 'guestfs'\n"
21537 " g = Guestfs::Guestfs.new()\n"
21538 " g.add_drive_opts(\"disk.img\",\n"
21539 "                  :readonly => 1, :format => \"raw\")\n"
21540 " g.launch()\n"
21541 "\n"
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../ruby/examples/guestfs-ruby.pod:17
21546 msgid ""
21547 "This manual page documents how to call libguestfs from the Ruby programming "
21548 "language.  This page just documents the differences from the C API and gives "
21549 "some examples.  If you are not familiar with using libguestfs, you also need "
21550 "to read L<guestfs(3)>."
21551 msgstr ""
21552
21553 #. type: textblock
21554 #: ../ruby/examples/guestfs-ruby.pod:24
21555 msgid ""
21556 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21557 "This has a single parameter which is the error message (a string)."
21558 msgstr ""
21559
21560 #. type: textblock
21561 #: ../ruby/examples/guestfs-ruby.pod:38
21562 msgid ""
21563 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, "
21564 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
21565 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21566 msgstr ""
21567
21568 #. type: =head2
21569 #: ../src/guestfs-actions.pod:1
21570 msgid "guestfs_add_cdrom"
21571 msgstr ""
21572
21573 #. type: verbatim
21574 #: ../src/guestfs-actions.pod:3
21575 #, no-wrap
21576 msgid ""
21577 " int\n"
21578 " guestfs_add_cdrom (guestfs_h *g,\n"
21579 "                    const char *filename);\n"
21580 "\n"
21581 msgstr ""
21582
21583 #. type: textblock
21584 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
21585 msgid ""
21586 "I<This function is deprecated.> In new code, use the "
21587 "L</guestfs_add_drive_opts> call instead."
21588 msgstr ""
21589
21590 #. type: textblock
21591 #: ../src/guestfs-actions.pod:24
21592 msgid ""
21593 "This call checks for the existence of C<filename>.  This stops you from "
21594 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21595 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21596 "instead."
21597 msgstr ""
21598
21599 #. type: textblock
21600 #: ../src/guestfs-actions.pod:31
21601 msgid ""
21602 "If you just want to add an ISO file (often you use this as an efficient way "
21603 "to transfer large files into the guest), then you should probably use "
21604 "C<guestfs_add_drive_ro> instead."
21605 msgstr ""
21606
21607 #. type: textblock
21608 #: ../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:1168 ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512 ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3667 ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3881 ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3937 ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4045 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4082 ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4182 ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4313 ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4345 ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4458 ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4522 ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4558 ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:4602 ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:4634 ../src/guestfs-actions.pod:4661 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4908 ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4938 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5065 ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5288 ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5333 ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5491 ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:5570 ../src/guestfs-actions.pod:5588 ../src/guestfs-actions.pod:5620 ../src/guestfs-actions.pod:5686 ../src/guestfs-actions.pod:5703 ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5730 ../src/guestfs-actions.pod:6019 ../src/guestfs-actions.pod:6038 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071 ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6123 ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6160 ../src/guestfs-actions.pod:6179 ../src/guestfs-actions.pod:6198 ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6246 ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6287 ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6327 ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6363 ../src/guestfs-actions.pod:6382 ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:6434 ../src/guestfs-actions.pod:6453 ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6530 ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:6604 ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6752 ../src/guestfs-actions.pod:6873 ../src/guestfs-actions.pod:6885 ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6911 ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6972 ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7046 ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7079 ../src/guestfs-actions.pod:7095 ../src/guestfs-actions.pod:7112 ../src/guestfs-actions.pod:7125 ../src/guestfs-actions.pod:7145 ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7249 ../src/guestfs-actions.pod:7267 ../src/guestfs-actions.pod:7301 ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7453 ../src/guestfs-actions.pod:7468 ../src/guestfs-actions.pod:7482 ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7595 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7711 ../src/guestfs-actions.pod:7744 ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7860
21609 msgid "This function returns 0 on success or -1 on error."
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985 ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:6248 ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6989 ../src/guestfs-actions.pod:7114 ../src/guestfs-actions.pod:7637
21614 msgid "(Added in 0.3)"
21615 msgstr ""
21616
21617 #. type: =head2
21618 #: ../src/guestfs-actions.pod:41
21619 msgid "guestfs_add_domain"
21620 msgstr ""
21621
21622 #. type: verbatim
21623 #: ../src/guestfs-actions.pod:43
21624 #, no-wrap
21625 msgid ""
21626 " int\n"
21627 " guestfs_add_domain (guestfs_h *g,\n"
21628 "                     const char *dom,\n"
21629 "                     ...);\n"
21630 "\n"
21631 msgstr ""
21632
21633 #. type: textblock
21634 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:4673 ../src/guestfs-actions.pod:4992 ../src/guestfs-actions.pod:5209
21635 msgid ""
21636 "You may supply a list of optional arguments to this call.  Use zero or more "
21637 "of the following pairs of parameters, and terminate the list with C<-1> on "
21638 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21639 msgstr ""
21640
21641 #. type: verbatim
21642 #: ../src/guestfs-actions.pod:53
21643 #, no-wrap
21644 msgid ""
21645 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21646 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21647 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21648 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21649 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21650 "\n"
21651 msgstr ""
21652
21653 #. type: textblock
21654 #: ../src/guestfs-actions.pod:59
21655 msgid ""
21656 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21657 "It works by connecting to libvirt, requesting the domain and domain XML from "
21658 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21659 "one."
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../src/guestfs-actions.pod:94
21664 msgid ""
21665 "The other optional parameters are passed directly through to "
21666 "C<guestfs_add_drive_opts>."
21667 msgstr ""
21668
21669 #. type: textblock
21670 #: ../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:1385 ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106 ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184 ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2975 ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:5168 ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7648 ../src/guestfs-actions.pod:7661 ../src/guestfs-actions.pod:7674
21671 msgid "On error this function returns -1."
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../src/guestfs-actions.pod:99
21676 msgid "(Added in 1.7.4)"
21677 msgstr ""
21678
21679 #. type: =head2
21680 #: ../src/guestfs-actions.pod:101
21681 msgid "guestfs_add_domain_va"
21682 msgstr ""
21683
21684 #. type: verbatim
21685 #: ../src/guestfs-actions.pod:103
21686 #, no-wrap
21687 msgid ""
21688 " int\n"
21689 " guestfs_add_domain_va (guestfs_h *g,\n"
21690 "                        const char *dom,\n"
21691 "                        va_list args);\n"
21692 "\n"
21693 msgstr ""
21694
21695 #. type: textblock
21696 #: ../src/guestfs-actions.pod:108
21697 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21698 msgstr ""
21699
21700 #. type: textblock
21701 #: ../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:2941 ../src/guestfs-actions.pod:2953 ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5032 ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5269
21702 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21703 msgstr ""
21704
21705 #. type: =head2
21706 #: ../src/guestfs-actions.pod:112
21707 msgid "guestfs_add_domain_argv"
21708 msgstr ""
21709
21710 #. type: verbatim
21711 #: ../src/guestfs-actions.pod:114
21712 #, no-wrap
21713 msgid ""
21714 " int\n"
21715 " guestfs_add_domain_argv (guestfs_h *g,\n"
21716 "                          const char *dom,\n"
21717 "                          const struct guestfs_add_domain_argv *optargs);\n"
21718 "\n"
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../src/guestfs-actions.pod:119
21723 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21724 msgstr ""
21725
21726 #. type: =head2
21727 #: ../src/guestfs-actions.pod:123
21728 msgid "guestfs_add_drive"
21729 msgstr ""
21730
21731 #. type: verbatim
21732 #: ../src/guestfs-actions.pod:125
21733 #, no-wrap
21734 msgid ""
21735 " int\n"
21736 " guestfs_add_drive (guestfs_h *g,\n"
21737 "                    const char *filename);\n"
21738 "\n"
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../src/guestfs-actions.pod:129
21743 msgid ""
21744 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21745 "optional parameters, so the disk is added writable, with the format being "
21746 "detected automatically."
21747 msgstr ""
21748
21749 #. type: textblock
21750 #: ../src/guestfs-actions.pod:133
21751 msgid ""
21752 "Automatic detection of the format opens you up to a potential security hole "
21753 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21754 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21755 "you should think about replacing calls to this function with calls to "
21756 "C<guestfs_add_drive_opts>, and specifying the format."
21757 msgstr ""
21758
21759 #. type: =head2
21760 #: ../src/guestfs-actions.pod:144
21761 msgid "guestfs_add_drive_opts"
21762 msgstr ""
21763
21764 #. type: verbatim
21765 #: ../src/guestfs-actions.pod:146
21766 #, no-wrap
21767 msgid ""
21768 " int\n"
21769 " guestfs_add_drive_opts (guestfs_h *g,\n"
21770 "                         const char *filename,\n"
21771 "                         ...);\n"
21772 "\n"
21773 msgstr ""
21774
21775 #. type: verbatim
21776 #: ../src/guestfs-actions.pod:156
21777 #, no-wrap
21778 msgid ""
21779 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21780 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21781 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21782 "\n"
21783 msgstr ""
21784
21785 #. type: textblock
21786 #: ../src/guestfs-actions.pod:185
21787 msgid ""
21788 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21789 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21790 "Possible formats include C<raw> and C<qcow2>."
21791 msgstr ""
21792
21793 #. type: textblock
21794 #: ../src/guestfs-actions.pod:196
21795 msgid ""
21796 "This rarely-used option lets you emulate the behaviour of the deprecated "
21797 "C<guestfs_add_drive_with_if> call (q.v.)"
21798 msgstr ""
21799
21800 #. type: textblock
21801 #: ../src/guestfs-actions.pod:203
21802 msgid "(Added in 1.5.23)"
21803 msgstr ""
21804
21805 #. type: =head2
21806 #: ../src/guestfs-actions.pod:205
21807 msgid "guestfs_add_drive_opts_va"
21808 msgstr ""
21809
21810 #. type: verbatim
21811 #: ../src/guestfs-actions.pod:207
21812 #, no-wrap
21813 msgid ""
21814 " int\n"
21815 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21816 "                            const char *filename,\n"
21817 "                            va_list args);\n"
21818 "\n"
21819 msgstr ""
21820
21821 #. type: textblock
21822 #: ../src/guestfs-actions.pod:212
21823 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21824 msgstr ""
21825
21826 #. type: =head2
21827 #: ../src/guestfs-actions.pod:216
21828 msgid "guestfs_add_drive_opts_argv"
21829 msgstr ""
21830
21831 #. type: verbatim
21832 #: ../src/guestfs-actions.pod:218
21833 #, no-wrap
21834 msgid ""
21835 " int\n"
21836 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21837 "                              const char *filename,\n"
21838 "                              const struct guestfs_add_drive_opts_argv "
21839 "*optargs);\n"
21840 "\n"
21841 msgstr ""
21842
21843 #. type: textblock
21844 #: ../src/guestfs-actions.pod:223
21845 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21846 msgstr ""
21847
21848 #. type: =head2
21849 #: ../src/guestfs-actions.pod:227
21850 msgid "guestfs_add_drive_ro"
21851 msgstr ""
21852
21853 #. type: verbatim
21854 #: ../src/guestfs-actions.pod:229
21855 #, no-wrap
21856 msgid ""
21857 " int\n"
21858 " guestfs_add_drive_ro (guestfs_h *g,\n"
21859 "                       const char *filename);\n"
21860 "\n"
21861 msgstr ""
21862
21863 #. type: textblock
21864 #: ../src/guestfs-actions.pod:233
21865 msgid ""
21866 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21867 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21868 "disk is added read-only, with the format being detected automatically."
21869 msgstr ""
21870
21871 #. type: textblock
21872 #: ../src/guestfs-actions.pod:240
21873 msgid "(Added in 1.0.38)"
21874 msgstr ""
21875
21876 #. type: =head2
21877 #: ../src/guestfs-actions.pod:242
21878 msgid "guestfs_add_drive_ro_with_if"
21879 msgstr ""
21880
21881 #. type: verbatim
21882 #: ../src/guestfs-actions.pod:244
21883 #, no-wrap
21884 msgid ""
21885 " int\n"
21886 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
21887 "                               const char *filename,\n"
21888 "                               const char *iface);\n"
21889 "\n"
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../src/guestfs-actions.pod:256
21894 msgid ""
21895 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
21896 "QEMU interface emulation to use at run time."
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2458
21901 msgid "(Added in 1.0.84)"
21902 msgstr ""
21903
21904 #. type: =head2
21905 #: ../src/guestfs-actions.pod:263
21906 msgid "guestfs_add_drive_with_if"
21907 msgstr ""
21908
21909 #. type: verbatim
21910 #: ../src/guestfs-actions.pod:265
21911 #, no-wrap
21912 msgid ""
21913 " int\n"
21914 " guestfs_add_drive_with_if (guestfs_h *g,\n"
21915 "                            const char *filename,\n"
21916 "                            const char *iface);\n"
21917 "\n"
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../src/guestfs-actions.pod:277
21922 msgid ""
21923 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
21924 "QEMU interface emulation to use at run time."
21925 msgstr ""
21926
21927 #. type: =head2
21928 #: ../src/guestfs-actions.pod:284
21929 msgid "guestfs_aug_clear"
21930 msgstr ""
21931
21932 #. type: verbatim
21933 #: ../src/guestfs-actions.pod:286
21934 #, no-wrap
21935 msgid ""
21936 " int\n"
21937 " guestfs_aug_clear (guestfs_h *g,\n"
21938 "                    const char *augpath);\n"
21939 "\n"
21940 msgstr ""
21941
21942 #. type: textblock
21943 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
21944 msgid "(Added in 1.3.4)"
21945 msgstr ""
21946
21947 #. type: =head2
21948 #: ../src/guestfs-actions.pod:297
21949 msgid "guestfs_aug_close"
21950 msgstr ""
21951
21952 #. type: verbatim
21953 #: ../src/guestfs-actions.pod:299
21954 #, no-wrap
21955 msgid ""
21956 " int\n"
21957 " guestfs_aug_close (guestfs_h *g);\n"
21958 "\n"
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../src/guestfs-actions.pod:302
21963 msgid ""
21964 "Close the current Augeas handle and free up any resources used by it.  After "
21965 "calling this, you have to call C<guestfs_aug_init> again before you can use "
21966 "any other Augeas functions."
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../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:5877
21971 msgid "(Added in 0.7)"
21972 msgstr ""
21973
21974 #. type: =head2
21975 #: ../src/guestfs-actions.pod:311
21976 msgid "guestfs_aug_defnode"
21977 msgstr ""
21978
21979 #. type: verbatim
21980 #: ../src/guestfs-actions.pod:313
21981 #, no-wrap
21982 msgid ""
21983 " struct guestfs_int_bool *\n"
21984 " guestfs_aug_defnode (guestfs_h *g,\n"
21985 "                      const char *name,\n"
21986 "                      const char *expr,\n"
21987 "                      const char *val);\n"
21988 "\n"
21989 msgstr ""
21990
21991 #. type: textblock
21992 #: ../src/guestfs-actions.pod:322
21993 msgid ""
21994 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21995 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
21996 "containing that single node."
21997 msgstr ""
21998
21999 #. type: textblock
22000 #: ../src/guestfs-actions.pod:330
22001 msgid ""
22002 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
22003 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
22004 msgstr ""
22005
22006 #. type: =head2
22007 #: ../src/guestfs-actions.pod:336
22008 msgid "guestfs_aug_defvar"
22009 msgstr ""
22010
22011 #. type: verbatim
22012 #: ../src/guestfs-actions.pod:338
22013 #, no-wrap
22014 msgid ""
22015 " int\n"
22016 " guestfs_aug_defvar (guestfs_h *g,\n"
22017 "                     const char *name,\n"
22018 "                     const char *expr);\n"
22019 "\n"
22020 msgstr ""
22021
22022 #. type: =head2
22023 #: ../src/guestfs-actions.pod:354
22024 msgid "guestfs_aug_get"
22025 msgstr ""
22026
22027 #. type: verbatim
22028 #: ../src/guestfs-actions.pod:356
22029 #, no-wrap
22030 msgid ""
22031 " char *\n"
22032 " guestfs_aug_get (guestfs_h *g,\n"
22033 "                  const char *augpath);\n"
22034 "\n"
22035 msgstr ""
22036
22037 #. type: textblock
22038 #: ../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:1254 ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:3058 ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3141 ../src/guestfs-actions.pod:3200 ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:4220 ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5953 ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6698 ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7415 ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7924
22039 msgid ""
22040 "This function returns a string, or NULL on error.  I<The caller must free "
22041 "the returned string after use>."
22042 msgstr ""
22043
22044 #. type: =head2
22045 #: ../src/guestfs-actions.pod:368
22046 msgid "guestfs_aug_init"
22047 msgstr ""
22048
22049 #. type: verbatim
22050 #: ../src/guestfs-actions.pod:370
22051 #, no-wrap
22052 msgid ""
22053 " int\n"
22054 " guestfs_aug_init (guestfs_h *g,\n"
22055 "                   const char *root,\n"
22056 "                   int flags);\n"
22057 "\n"
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../src/guestfs-actions.pod:379
22062 msgid "You must call this before using any other C<guestfs_aug_*> commands."
22063 msgstr ""
22064
22065 #. type: textblock
22066 #: ../src/guestfs-actions.pod:404
22067 msgid ""
22068 "This option is only useful when debugging Augeas lenses.  Use of this option "
22069 "may require additional memory for the libguestfs appliance.  You may need to "
22070 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
22071 "C<guestfs_set_memsize>."
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../src/guestfs-actions.pod:419
22076 msgid "Do not load the tree in C<guestfs_aug_init>."
22077 msgstr ""
22078
22079 #. type: textblock
22080 #: ../src/guestfs-actions.pod:423
22081 msgid "To close the handle, you can call C<guestfs_aug_close>."
22082 msgstr ""
22083
22084 #. type: =head2
22085 #: ../src/guestfs-actions.pod:431
22086 msgid "guestfs_aug_insert"
22087 msgstr ""
22088
22089 #. type: verbatim
22090 #: ../src/guestfs-actions.pod:433
22091 #, no-wrap
22092 msgid ""
22093 " int\n"
22094 " guestfs_aug_insert (guestfs_h *g,\n"
22095 "                     const char *augpath,\n"
22096 "                     const char *label,\n"
22097 "                     int before);\n"
22098 "\n"
22099 msgstr ""
22100
22101 #. type: =head2
22102 #: ../src/guestfs-actions.pod:451
22103 msgid "guestfs_aug_load"
22104 msgstr ""
22105
22106 #. type: verbatim
22107 #: ../src/guestfs-actions.pod:453
22108 #, no-wrap
22109 msgid ""
22110 " int\n"
22111 " guestfs_aug_load (guestfs_h *g);\n"
22112 "\n"
22113 msgstr ""
22114
22115 #. type: =head2
22116 #: ../src/guestfs-actions.pod:465
22117 msgid "guestfs_aug_ls"
22118 msgstr ""
22119
22120 #. type: verbatim
22121 #: ../src/guestfs-actions.pod:467
22122 #, no-wrap
22123 msgid ""
22124 " char **\n"
22125 " guestfs_aug_ls (guestfs_h *g,\n"
22126 "                 const char *augpath);\n"
22127 "\n"
22128 msgstr ""
22129
22130 #. type: textblock
22131 #: ../src/guestfs-actions.pod:471
22132 msgid ""
22133 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
22134 "sorting the resulting nodes into alphabetical order."
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490 ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143 ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281 ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316 ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405 ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:3160 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:3767 ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:5129 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6738 ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7567 ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7939 ../src/guestfs-actions.pod:7958
22139 msgid ""
22140 "This function returns a NULL-terminated array of strings (like "
22141 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
22142 "strings and the array after use>."
22143 msgstr ""
22144
22145 #. type: textblock
22146 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:3545 ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4253 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4473 ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5688 ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6579 ../src/guestfs-actions.pod:7238 ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7484 ../src/guestfs-actions.pod:7749
22147 msgid "(Added in 0.8)"
22148 msgstr ""
22149
22150 #. type: =head2
22151 #: ../src/guestfs-actions.pod:480
22152 msgid "guestfs_aug_match"
22153 msgstr ""
22154
22155 #. type: verbatim
22156 #: ../src/guestfs-actions.pod:482
22157 #, no-wrap
22158 msgid ""
22159 " char **\n"
22160 " guestfs_aug_match (guestfs_h *g,\n"
22161 "                    const char *augpath);\n"
22162 "\n"
22163 msgstr ""
22164
22165 #. type: =head2
22166 #: ../src/guestfs-actions.pod:496
22167 msgid "guestfs_aug_mv"
22168 msgstr ""
22169
22170 #. type: verbatim
22171 #: ../src/guestfs-actions.pod:498
22172 #, no-wrap
22173 msgid ""
22174 " int\n"
22175 " guestfs_aug_mv (guestfs_h *g,\n"
22176 "                 const char *src,\n"
22177 "                 const char *dest);\n"
22178 "\n"
22179 msgstr ""
22180
22181 #. type: =head2
22182 #: ../src/guestfs-actions.pod:510
22183 msgid "guestfs_aug_rm"
22184 msgstr ""
22185
22186 #. type: verbatim
22187 #: ../src/guestfs-actions.pod:512
22188 #, no-wrap
22189 msgid ""
22190 " int\n"
22191 " guestfs_aug_rm (guestfs_h *g,\n"
22192 "                 const char *augpath);\n"
22193 "\n"
22194 msgstr ""
22195
22196 #. type: =head2
22197 #: ../src/guestfs-actions.pod:524
22198 msgid "guestfs_aug_save"
22199 msgstr ""
22200
22201 #. type: verbatim
22202 #: ../src/guestfs-actions.pod:526
22203 #, no-wrap
22204 msgid ""
22205 " int\n"
22206 " guestfs_aug_save (guestfs_h *g);\n"
22207 "\n"
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../src/guestfs-actions.pod:531
22212 msgid ""
22213 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
22214 "are saved."
22215 msgstr ""
22216
22217 #. type: =head2
22218 #: ../src/guestfs-actions.pod:538
22219 msgid "guestfs_aug_set"
22220 msgstr ""
22221
22222 #. type: verbatim
22223 #: ../src/guestfs-actions.pod:540
22224 #, no-wrap
22225 msgid ""
22226 " int\n"
22227 " guestfs_aug_set (guestfs_h *g,\n"
22228 "                  const char *augpath,\n"
22229 "                  const char *val);\n"
22230 "\n"
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../src/guestfs-actions.pod:547
22235 msgid ""
22236 "In the Augeas API, it is possible to clear a node by setting the value to "
22237 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22238 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22239 msgstr ""
22240
22241 #. type: =head2
22242 #: ../src/guestfs-actions.pod:556
22243 msgid "guestfs_available"
22244 msgstr ""
22245
22246 #. type: verbatim
22247 #: ../src/guestfs-actions.pod:558
22248 #, no-wrap
22249 msgid ""
22250 " int\n"
22251 " guestfs_available (guestfs_h *g,\n"
22252 "                    char *const *groups);\n"
22253 "\n"
22254 msgstr ""
22255
22256 #. type: textblock
22257 #: ../src/guestfs-actions.pod:566
22258 msgid ""
22259 "The libguestfs groups, and the functions that those groups correspond to, "
22260 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22261 "runtime by calling C<guestfs_available_all_groups>."
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../src/guestfs-actions.pod:590
22266 msgid "You must call C<guestfs_launch> before calling this function."
22267 msgstr ""
22268
22269 #. type: textblock
22270 #: ../src/guestfs-actions.pod:612
22271 msgid ""
22272 "This call was added in version C<1.0.80>.  In previous versions of "
22273 "libguestfs all you could do would be to speculatively execute a command to "
22274 "find out if the daemon implemented it.  See also C<guestfs_version>."
22275 msgstr ""
22276
22277 #. type: textblock
22278 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22279 msgid "(Added in 1.0.80)"
22280 msgstr ""
22281
22282 #. type: =head2
22283 #: ../src/guestfs-actions.pod:623
22284 msgid "guestfs_available_all_groups"
22285 msgstr ""
22286
22287 #. type: verbatim
22288 #: ../src/guestfs-actions.pod:625
22289 #, no-wrap
22290 msgid ""
22291 " char **\n"
22292 " guestfs_available_all_groups (guestfs_h *g);\n"
22293 "\n"
22294 msgstr ""
22295
22296 #. type: textblock
22297 #: ../src/guestfs-actions.pod:628
22298 msgid ""
22299 "This command returns a list of all optional groups that this daemon knows "
22300 "about.  Note this returns both supported and unsupported groups.  To find "
22301 "out which ones the daemon can actually support you have to call "
22302 "C<guestfs_available> on each member of the returned list."
22303 msgstr ""
22304
22305 #. type: textblock
22306 #: ../src/guestfs-actions.pod:634
22307 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22308 msgstr ""
22309
22310 #. type: textblock
22311 #: ../src/guestfs-actions.pod:640
22312 msgid "(Added in 1.3.15)"
22313 msgstr ""
22314
22315 #. type: =head2
22316 #: ../src/guestfs-actions.pod:642
22317 msgid "guestfs_base64_in"
22318 msgstr ""
22319
22320 #. type: verbatim
22321 #: ../src/guestfs-actions.pod:644
22322 #, no-wrap
22323 msgid ""
22324 " int\n"
22325 " guestfs_base64_in (guestfs_h *g,\n"
22326 "                    const char *base64file,\n"
22327 "                    const char *filename);\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22333 msgid "(Added in 1.3.5)"
22334 msgstr ""
22335
22336 #. type: =head2
22337 #: ../src/guestfs-actions.pod:656
22338 msgid "guestfs_base64_out"
22339 msgstr ""
22340
22341 #. type: verbatim
22342 #: ../src/guestfs-actions.pod:658
22343 #, no-wrap
22344 msgid ""
22345 " int\n"
22346 " guestfs_base64_out (guestfs_h *g,\n"
22347 "                     const char *filename,\n"
22348 "                     const char *base64file);\n"
22349 "\n"
22350 msgstr ""
22351
22352 #. type: =head2
22353 #: ../src/guestfs-actions.pod:670
22354 msgid "guestfs_blockdev_flushbufs"
22355 msgstr ""
22356
22357 #. type: verbatim
22358 #: ../src/guestfs-actions.pod:672
22359 #, no-wrap
22360 msgid ""
22361 " int\n"
22362 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22363 "                             const char *device);\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: textblock
22368 #: ../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
22369 msgid "(Added in 0.9.3)"
22370 msgstr ""
22371
22372 #. type: =head2
22373 #: ../src/guestfs-actions.pod:685
22374 msgid "guestfs_blockdev_getbsz"
22375 msgstr ""
22376
22377 #. type: verbatim
22378 #: ../src/guestfs-actions.pod:687
22379 #, no-wrap
22380 msgid ""
22381 " int\n"
22382 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22383 "                          const char *device);\n"
22384 "\n"
22385 msgstr ""
22386
22387 #. type: =head2
22388 #: ../src/guestfs-actions.pod:702
22389 msgid "guestfs_blockdev_getro"
22390 msgstr ""
22391
22392 #. type: verbatim
22393 #: ../src/guestfs-actions.pod:704
22394 #, no-wrap
22395 msgid ""
22396 " int\n"
22397 " guestfs_blockdev_getro (guestfs_h *g,\n"
22398 "                         const char *device);\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479 ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983 ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066 ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132 ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3291 ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3496 ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3527 ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3557 ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:3584 ../src/guestfs-actions.pod:3599 ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:5370
22404 msgid "This function returns a C truth value on success or -1 on error."
22405 msgstr ""
22406
22407 #. type: =head2
22408 #: ../src/guestfs-actions.pod:717
22409 msgid "guestfs_blockdev_getsize64"
22410 msgstr ""
22411
22412 #. type: verbatim
22413 #: ../src/guestfs-actions.pod:719
22414 #, no-wrap
22415 msgid ""
22416 " int64_t\n"
22417 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22418 "                             const char *device);\n"
22419 "\n"
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../src/guestfs-actions.pod:725
22424 msgid "See also C<guestfs_blockdev_getsz>."
22425 msgstr ""
22426
22427 #. type: =head2
22428 #: ../src/guestfs-actions.pod:733
22429 msgid "guestfs_blockdev_getss"
22430 msgstr ""
22431
22432 #. type: verbatim
22433 #: ../src/guestfs-actions.pod:735
22434 #, no-wrap
22435 msgid ""
22436 " int\n"
22437 " guestfs_blockdev_getss (guestfs_h *g,\n"
22438 "                         const char *device);\n"
22439 "\n"
22440 msgstr ""
22441
22442 #. type: textblock
22443 #: ../src/guestfs-actions.pod:742
22444 msgid ""
22445 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22446 "that)."
22447 msgstr ""
22448
22449 #. type: =head2
22450 #: ../src/guestfs-actions.pod:751
22451 msgid "guestfs_blockdev_getsz"
22452 msgstr ""
22453
22454 #. type: verbatim
22455 #: ../src/guestfs-actions.pod:753
22456 #, no-wrap
22457 msgid ""
22458 " int64_t\n"
22459 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22460 "                         const char *device);\n"
22461 "\n"
22462 msgstr ""
22463
22464 #. type: textblock
22465 #: ../src/guestfs-actions.pod:760
22466 msgid ""
22467 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22468 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22469 msgstr ""
22470
22471 #. type: =head2
22472 #: ../src/guestfs-actions.pod:770
22473 msgid "guestfs_blockdev_rereadpt"
22474 msgstr ""
22475
22476 #. type: verbatim
22477 #: ../src/guestfs-actions.pod:772
22478 #, no-wrap
22479 msgid ""
22480 " int\n"
22481 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22482 "                            const char *device);\n"
22483 "\n"
22484 msgstr ""
22485
22486 #. type: =head2
22487 #: ../src/guestfs-actions.pod:784
22488 msgid "guestfs_blockdev_setbsz"
22489 msgstr ""
22490
22491 #. type: verbatim
22492 #: ../src/guestfs-actions.pod:786
22493 #, no-wrap
22494 msgid ""
22495 " int\n"
22496 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22497 "                          const char *device,\n"
22498 "                          int blocksize);\n"
22499 "\n"
22500 msgstr ""
22501
22502 #. type: =head2
22503 #: ../src/guestfs-actions.pod:802
22504 msgid "guestfs_blockdev_setro"
22505 msgstr ""
22506
22507 #. type: verbatim
22508 #: ../src/guestfs-actions.pod:804
22509 #, no-wrap
22510 msgid ""
22511 " int\n"
22512 " guestfs_blockdev_setro (guestfs_h *g,\n"
22513 "                         const char *device);\n"
22514 "\n"
22515 msgstr ""
22516
22517 #. type: =head2
22518 #: ../src/guestfs-actions.pod:816
22519 msgid "guestfs_blockdev_setrw"
22520 msgstr ""
22521
22522 #. type: verbatim
22523 #: ../src/guestfs-actions.pod:818
22524 #, no-wrap
22525 msgid ""
22526 " int\n"
22527 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22528 "                         const char *device);\n"
22529 "\n"
22530 msgstr ""
22531
22532 #. type: =head2
22533 #: ../src/guestfs-actions.pod:830
22534 msgid "guestfs_btrfs_filesystem_resize"
22535 msgstr ""
22536
22537 #. type: verbatim
22538 #: ../src/guestfs-actions.pod:832
22539 #, no-wrap
22540 msgid ""
22541 " int\n"
22542 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22543 "                                  const char *mountpoint,\n"
22544 "                                  ...);\n"
22545 "\n"
22546 msgstr ""
22547
22548 #. type: verbatim
22549 #: ../src/guestfs-actions.pod:842
22550 #, no-wrap
22551 msgid ""
22552 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22553 "\n"
22554 msgstr ""
22555
22556 #. type: textblock
22557 #: ../src/guestfs-actions.pod:865
22558 msgid "(Added in 1.11.17)"
22559 msgstr ""
22560
22561 #. type: =head2
22562 #: ../src/guestfs-actions.pod:867
22563 msgid "guestfs_btrfs_filesystem_resize_va"
22564 msgstr ""
22565
22566 #. type: verbatim
22567 #: ../src/guestfs-actions.pod:869
22568 #, no-wrap
22569 msgid ""
22570 " int\n"
22571 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22572 "                                     const char *mountpoint,\n"
22573 "                                     va_list args);\n"
22574 "\n"
22575 msgstr ""
22576
22577 #. type: textblock
22578 #: ../src/guestfs-actions.pod:874
22579 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22580 msgstr ""
22581
22582 #. type: =head2
22583 #: ../src/guestfs-actions.pod:878
22584 msgid "guestfs_btrfs_filesystem_resize_argv"
22585 msgstr ""
22586
22587 #. type: verbatim
22588 #: ../src/guestfs-actions.pod:880
22589 #, no-wrap
22590 msgid ""
22591 " int\n"
22592 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22593 "                                       const char *mountpoint,\n"
22594 "                                       const struct "
22595 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22596 "\n"
22597 msgstr ""
22598
22599 #. type: textblock
22600 #: ../src/guestfs-actions.pod:885
22601 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22602 msgstr ""
22603
22604 #. type: =head2
22605 #: ../src/guestfs-actions.pod:889
22606 msgid "guestfs_case_sensitive_path"
22607 msgstr ""
22608
22609 #. type: verbatim
22610 #: ../src/guestfs-actions.pod:891
22611 #, no-wrap
22612 msgid ""
22613 " char *\n"
22614 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22615 "                              const char *path);\n"
22616 "\n"
22617 msgstr ""
22618
22619 #. type: textblock
22620 #: ../src/guestfs-actions.pod:917
22621 msgid ""
22622 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22623 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22624 "how the directories were originally created under Windows)."
22625 msgstr ""
22626
22627 #. type: textblock
22628 #: ../src/guestfs-actions.pod:925
22629 msgid "See also C<guestfs_realpath>."
22630 msgstr ""
22631
22632 #. type: textblock
22633 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7418
22634 msgid "(Added in 1.0.75)"
22635 msgstr ""
22636
22637 #. type: =head2
22638 #: ../src/guestfs-actions.pod:932
22639 msgid "guestfs_cat"
22640 msgstr ""
22641
22642 #. type: verbatim
22643 #: ../src/guestfs-actions.pod:934
22644 #, no-wrap
22645 msgid ""
22646 " char *\n"
22647 " guestfs_cat (guestfs_h *g,\n"
22648 "              const char *path);\n"
22649 "\n"
22650 msgstr ""
22651
22652 #. type: textblock
22653 #: ../src/guestfs-actions.pod:940
22654 msgid ""
22655 "Note that this function cannot correctly handle binary files (specifically, "
22656 "files containing C<\\0> character which is treated as end of string).  For "
22657 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22658 "functions which have a more complex interface."
22659 msgstr ""
22660
22661 #. type: textblock
22662 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3771 ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:4366 ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5765 ../src/guestfs-actions.pod:7571 ../src/guestfs-actions.pod:7585
22663 msgid "(Added in 0.4)"
22664 msgstr ""
22665
22666 #. type: =head2
22667 #: ../src/guestfs-actions.pod:953
22668 msgid "guestfs_checksum"
22669 msgstr ""
22670
22671 #. type: verbatim
22672 #: ../src/guestfs-actions.pod:955
22673 #, no-wrap
22674 msgid ""
22675 " char *\n"
22676 " guestfs_checksum (guestfs_h *g,\n"
22677 "                   const char *csumtype,\n"
22678 "                   const char *path);\n"
22679 "\n"
22680 msgstr ""
22681
22682 #. type: textblock
22683 #: ../src/guestfs-actions.pod:1001
22684 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22685 msgstr ""
22686
22687 #. type: textblock
22688 #: ../src/guestfs-actions.pod:1003
22689 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3469 ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3559 ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:7274
22694 msgid "(Added in 1.0.2)"
22695 msgstr ""
22696
22697 #. type: =head2
22698 #: ../src/guestfs-actions.pod:1010
22699 msgid "guestfs_checksum_device"
22700 msgstr ""
22701
22702 #. type: verbatim
22703 #: ../src/guestfs-actions.pod:1012
22704 #, no-wrap
22705 msgid ""
22706 " char *\n"
22707 " guestfs_checksum_device (guestfs_h *g,\n"
22708 "                          const char *csumtype,\n"
22709 "                          const char *device);\n"
22710 "\n"
22711 msgstr ""
22712
22713 #. type: textblock
22714 #: ../src/guestfs-actions.pod:1017
22715 msgid ""
22716 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22717 "device named C<device>.  For the types of checksums supported see the "
22718 "C<guestfs_checksum> command."
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5200 ../src/guestfs-actions.pod:5335 ../src/guestfs-actions.pod:5372 ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5572 ../src/guestfs-actions.pod:7183 ../src/guestfs-actions.pod:7197 ../src/guestfs-actions.pod:7597
22723 msgid "(Added in 1.3.2)"
22724 msgstr ""
22725
22726 #. type: =head2
22727 #: ../src/guestfs-actions.pod:1026
22728 msgid "guestfs_checksums_out"
22729 msgstr ""
22730
22731 #. type: verbatim
22732 #: ../src/guestfs-actions.pod:1028
22733 #, no-wrap
22734 msgid ""
22735 " int\n"
22736 " guestfs_checksums_out (guestfs_h *g,\n"
22737 "                        const char *csumtype,\n"
22738 "                        const char *directory,\n"
22739 "                        const char *sumsfile);\n"
22740 "\n"
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../src/guestfs-actions.pod:1048
22745 msgid "(Added in 1.3.7)"
22746 msgstr ""
22747
22748 #. type: =head2
22749 #: ../src/guestfs-actions.pod:1050
22750 msgid "guestfs_chmod"
22751 msgstr ""
22752
22753 #. type: verbatim
22754 #: ../src/guestfs-actions.pod:1052
22755 #, no-wrap
22756 msgid ""
22757 " int\n"
22758 " guestfs_chmod (guestfs_h *g,\n"
22759 "                int mode,\n"
22760 "                const char *path);\n"
22761 "\n"
22762 msgstr ""
22763
22764 #. type: =head2
22765 #: ../src/guestfs-actions.pod:1070
22766 msgid "guestfs_chown"
22767 msgstr ""
22768
22769 #. type: verbatim
22770 #: ../src/guestfs-actions.pod:1072
22771 #, no-wrap
22772 msgid ""
22773 " int\n"
22774 " guestfs_chown (guestfs_h *g,\n"
22775 "                int owner,\n"
22776 "                int group,\n"
22777 "                const char *path);\n"
22778 "\n"
22779 msgstr ""
22780
22781 #. type: =head2
22782 #: ../src/guestfs-actions.pod:1088
22783 msgid "guestfs_command"
22784 msgstr ""
22785
22786 #. type: verbatim
22787 #: ../src/guestfs-actions.pod:1090
22788 #, no-wrap
22789 msgid ""
22790 " char *\n"
22791 " guestfs_command (guestfs_h *g,\n"
22792 "                  char *const *arguments);\n"
22793 "\n"
22794 msgstr ""
22795
22796 #. type: textblock
22797 #: ../src/guestfs-actions.pod:1099
22798 msgid ""
22799 "The single parameter is an argv-style list of arguments.  The first element "
22800 "is the name of the program to run.  Subsequent elements are parameters.  The "
22801 "list must be non-empty (ie. must contain a program name).  Note that the "
22802 "command runs directly, and is I<not> invoked via the shell (see "
22803 "C<guestfs_sh>)."
22804 msgstr ""
22805
22806 #. type: textblock
22807 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1615
22808 msgid "(Added in 0.9.1)"
22809 msgstr ""
22810
22811 #. type: =head2
22812 #: ../src/guestfs-actions.pod:1132
22813 msgid "guestfs_command_lines"
22814 msgstr ""
22815
22816 #. type: verbatim
22817 #: ../src/guestfs-actions.pod:1134
22818 #, no-wrap
22819 msgid ""
22820 " char **\n"
22821 " guestfs_command_lines (guestfs_h *g,\n"
22822 "                        char *const *arguments);\n"
22823 "\n"
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../src/guestfs-actions.pod:1138
22828 msgid ""
22829 "This is the same as C<guestfs_command>, but splits the result into a list of "
22830 "lines."
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../src/guestfs-actions.pod:1141
22835 msgid "See also: C<guestfs_sh_lines>"
22836 msgstr ""
22837
22838 #. type: =head2
22839 #: ../src/guestfs-actions.pod:1152
22840 msgid "guestfs_config"
22841 msgstr ""
22842
22843 #. type: verbatim
22844 #: ../src/guestfs-actions.pod:1154
22845 #, no-wrap
22846 msgid ""
22847 " int\n"
22848 " guestfs_config (guestfs_h *g,\n"
22849 "                 const char *qemuparam,\n"
22850 "                 const char *qemuvalue);\n"
22851 "\n"
22852 msgstr ""
22853
22854 #. type: =head2
22855 #: ../src/guestfs-actions.pod:1172
22856 msgid "guestfs_copy_size"
22857 msgstr ""
22858
22859 #. type: verbatim
22860 #: ../src/guestfs-actions.pod:1174
22861 #, no-wrap
22862 msgid ""
22863 " int\n"
22864 " guestfs_copy_size (guestfs_h *g,\n"
22865 "                    const char *src,\n"
22866 "                    const char *dest,\n"
22867 "                    int64_t size);\n"
22868 "\n"
22869 msgstr ""
22870
22871 #. type: textblock
22872 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:3669 ../src/guestfs-actions.pod:7269 ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7810 ../src/guestfs-actions.pod:7833
22873 msgid ""
22874 "This long-running command can generate progress notification messages so "
22875 "that the caller can display a progress bar or indicator.  To receive these "
22876 "messages, the caller must register a progress event callback.  See "
22877 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
22878 msgstr ""
22879
22880 #. type: textblock
22881 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4393 ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7610
22882 msgid "(Added in 1.0.87)"
22883 msgstr ""
22884
22885 #. type: =head2
22886 #: ../src/guestfs-actions.pod:1195
22887 msgid "guestfs_cp"
22888 msgstr ""
22889
22890 #. type: verbatim
22891 #: ../src/guestfs-actions.pod:1197
22892 #, no-wrap
22893 msgid ""
22894 " int\n"
22895 " guestfs_cp (guestfs_h *g,\n"
22896 "             const char *src,\n"
22897 "             const char *dest);\n"
22898 "\n"
22899 msgstr ""
22900
22901 #. type: textblock
22902 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221 ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5622
22903 msgid "(Added in 1.0.18)"
22904 msgstr ""
22905
22906 #. type: =head2
22907 #: ../src/guestfs-actions.pod:1209
22908 msgid "guestfs_cp_a"
22909 msgstr ""
22910
22911 #. type: verbatim
22912 #: ../src/guestfs-actions.pod:1211
22913 #, no-wrap
22914 msgid ""
22915 " int\n"
22916 " guestfs_cp_a (guestfs_h *g,\n"
22917 "               const char *src,\n"
22918 "               const char *dest);\n"
22919 "\n"
22920 msgstr ""
22921
22922 #. type: =head2
22923 #: ../src/guestfs-actions.pod:1223
22924 msgid "guestfs_dd"
22925 msgstr ""
22926
22927 #. type: verbatim
22928 #: ../src/guestfs-actions.pod:1225
22929 #, no-wrap
22930 msgid ""
22931 " int\n"
22932 " guestfs_dd (guestfs_h *g,\n"
22933 "             const char *src,\n"
22934 "             const char *dest);\n"
22935 "\n"
22936 msgstr ""
22937
22938 #. type: textblock
22939 #: ../src/guestfs-actions.pod:1235
22940 msgid ""
22941 "If the destination is a device, it must be as large or larger than the "
22942 "source file or device, otherwise the copy will fail.  This command cannot do "
22943 "partial copies (see C<guestfs_copy_size>)."
22944 msgstr ""
22945
22946 #. type: =head2
22947 #: ../src/guestfs-actions.pod:1243
22948 msgid "guestfs_df"
22949 msgstr ""
22950
22951 #. type: verbatim
22952 #: ../src/guestfs-actions.pod:1245
22953 #, no-wrap
22954 msgid ""
22955 " char *\n"
22956 " guestfs_df (guestfs_h *g);\n"
22957 "\n"
22958 msgstr ""
22959
22960 #. type: textblock
22961 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
22962 msgid ""
22963 "This command is mostly useful for interactive sessions.  It is I<not> "
22964 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
22965 "from programs."
22966 msgstr ""
22967
22968 #. type: textblock
22969 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274 ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388 ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5047 ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7663 ../src/guestfs-actions.pod:7676
22970 msgid "(Added in 1.0.54)"
22971 msgstr ""
22972
22973 #. type: =head2
22974 #: ../src/guestfs-actions.pod:1259
22975 msgid "guestfs_df_h"
22976 msgstr ""
22977
22978 #. type: verbatim
22979 #: ../src/guestfs-actions.pod:1261
22980 #, no-wrap
22981 msgid ""
22982 " char *\n"
22983 " guestfs_df_h (guestfs_h *g);\n"
22984 "\n"
22985 msgstr ""
22986
22987 #. type: =head2
22988 #: ../src/guestfs-actions.pod:1276
22989 msgid "guestfs_dmesg"
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../src/guestfs-actions.pod:1278
22994 #, no-wrap
22995 msgid ""
22996 " char *\n"
22997 " guestfs_dmesg (guestfs_h *g);\n"
22998 "\n"
22999 msgstr ""
23000
23001 #. type: textblock
23002 #: ../src/guestfs-actions.pod:1285
23003 msgid ""
23004 "Another way to get the same information is to enable verbose messages with "
23005 "C<guestfs_set_verbose> or by setting the environment variable "
23006 "C<LIBGUESTFS_DEBUG=1> before running the program."
23007 msgstr ""
23008
23009 #. type: =head2
23010 #: ../src/guestfs-actions.pod:1295
23011 msgid "guestfs_download"
23012 msgstr ""
23013
23014 #. type: verbatim
23015 #: ../src/guestfs-actions.pod:1297
23016 #, no-wrap
23017 msgid ""
23018 " int\n"
23019 " guestfs_download (guestfs_h *g,\n"
23020 "                   const char *remotefilename,\n"
23021 "                   const char *filename);\n"
23022 "\n"
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../src/guestfs-actions.pod:1307
23027 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
23028 msgstr ""
23029
23030 #. type: =head2
23031 #: ../src/guestfs-actions.pod:1318
23032 msgid "guestfs_download_offset"
23033 msgstr ""
23034
23035 #. type: verbatim
23036 #: ../src/guestfs-actions.pod:1320
23037 #, no-wrap
23038 msgid ""
23039 " int\n"
23040 " guestfs_download_offset (guestfs_h *g,\n"
23041 "                          const char *remotefilename,\n"
23042 "                          const char *filename,\n"
23043 "                          int64_t offset,\n"
23044 "                          int64_t size);\n"
23045 "\n"
23046 msgstr ""
23047
23048 #. type: textblock
23049 #: ../src/guestfs-actions.pod:1333
23050 msgid ""
23051 "Note that there is no limit on the amount of data that can be downloaded "
23052 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
23053 "full amount unless an error occurs."
23054 msgstr ""
23055
23056 #. type: textblock
23057 #: ../src/guestfs-actions.pod:1338
23058 msgid "See also C<guestfs_download>, C<guestfs_pread>."
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7308
23063 msgid "(Added in 1.5.17)"
23064 msgstr ""
23065
23066 #. type: =head2
23067 #: ../src/guestfs-actions.pod:1349
23068 msgid "guestfs_drop_caches"
23069 msgstr ""
23070
23071 #. type: verbatim
23072 #: ../src/guestfs-actions.pod:1351
23073 #, no-wrap
23074 msgid ""
23075 " int\n"
23076 " guestfs_drop_caches (guestfs_h *g,\n"
23077 "                      int whattodrop);\n"
23078 "\n"
23079 msgstr ""
23080
23081 #. type: =head2
23082 #: ../src/guestfs-actions.pod:1369
23083 msgid "guestfs_du"
23084 msgstr ""
23085
23086 #. type: verbatim
23087 #: ../src/guestfs-actions.pod:1371
23088 #, no-wrap
23089 msgid ""
23090 " int64_t\n"
23091 " guestfs_du (guestfs_h *g,\n"
23092 "             const char *path);\n"
23093 "\n"
23094 msgstr ""
23095
23096 #. type: =head2
23097 #: ../src/guestfs-actions.pod:1394
23098 msgid "guestfs_e2fsck_f"
23099 msgstr ""
23100
23101 #. type: verbatim
23102 #: ../src/guestfs-actions.pod:1396
23103 #, no-wrap
23104 msgid ""
23105 " int\n"
23106 " guestfs_e2fsck_f (guestfs_h *g,\n"
23107 "                   const char *device);\n"
23108 "\n"
23109 msgstr ""
23110
23111 #. type: textblock
23112 #: ../src/guestfs-actions.pod:1404
23113 msgid ""
23114 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
23115 "Normally you should use C<guestfs_fsck>."
23116 msgstr ""
23117
23118 #. type: textblock
23119 #: ../src/guestfs-actions.pod:1409
23120 msgid "(Added in 1.0.29)"
23121 msgstr ""
23122
23123 #. type: =head2
23124 #: ../src/guestfs-actions.pod:1411
23125 msgid "guestfs_echo_daemon"
23126 msgstr ""
23127
23128 #. type: verbatim
23129 #: ../src/guestfs-actions.pod:1413
23130 #, no-wrap
23131 msgid ""
23132 " char *\n"
23133 " guestfs_echo_daemon (guestfs_h *g,\n"
23134 "                      char *const *words);\n"
23135 "\n"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../src/guestfs-actions.pod:1422
23140 msgid "See also C<guestfs_ping_daemon>."
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:6479
23145 msgid "(Added in 1.0.69)"
23146 msgstr ""
23147
23148 #. type: =head2
23149 #: ../src/guestfs-actions.pod:1429
23150 msgid "guestfs_egrep"
23151 msgstr ""
23152
23153 #. type: verbatim
23154 #: ../src/guestfs-actions.pod:1431
23155 #, no-wrap
23156 msgid ""
23157 " char **\n"
23158 " guestfs_egrep (guestfs_h *g,\n"
23159 "                const char *regex,\n"
23160 "                const char *path);\n"
23161 "\n"
23162 msgstr ""
23163
23164 #. type: textblock
23165 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465 ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568 ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304 ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529 ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597 ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3910 ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4925 ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6005 ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6887 ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6913 ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:7768 ../src/guestfs-actions.pod:7787 ../src/guestfs-actions.pod:7881 ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7965
23166 msgid "(Added in 1.0.66)"
23167 msgstr ""
23168
23169 #. type: =head2
23170 #: ../src/guestfs-actions.pod:1448
23171 msgid "guestfs_egrepi"
23172 msgstr ""
23173
23174 #. type: verbatim
23175 #: ../src/guestfs-actions.pod:1450
23176 #, no-wrap
23177 msgid ""
23178 " char **\n"
23179 " guestfs_egrepi (guestfs_h *g,\n"
23180 "                 const char *regex,\n"
23181 "                 const char *path);\n"
23182 "\n"
23183 msgstr ""
23184
23185 #. type: =head2
23186 #: ../src/guestfs-actions.pod:1467
23187 msgid "guestfs_equal"
23188 msgstr ""
23189
23190 #. type: verbatim
23191 #: ../src/guestfs-actions.pod:1469
23192 #, no-wrap
23193 msgid ""
23194 " int\n"
23195 " guestfs_equal (guestfs_h *g,\n"
23196 "                const char *file1,\n"
23197 "                const char *file2);\n"
23198 "\n"
23199 msgstr ""
23200
23201 #. type: =head2
23202 #: ../src/guestfs-actions.pod:1483
23203 msgid "guestfs_exists"
23204 msgstr ""
23205
23206 #. type: verbatim
23207 #: ../src/guestfs-actions.pod:1485
23208 #, no-wrap
23209 msgid ""
23210 " int\n"
23211 " guestfs_exists (guestfs_h *g,\n"
23212 "                 const char *path);\n"
23213 "\n"
23214 msgstr ""
23215
23216 #. type: textblock
23217 #: ../src/guestfs-actions.pod:1492
23218 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23219 msgstr ""
23220
23221 #. type: =head2
23222 #: ../src/guestfs-actions.pod:1498
23223 msgid "guestfs_fallocate"
23224 msgstr ""
23225
23226 #. type: verbatim
23227 #: ../src/guestfs-actions.pod:1500
23228 #, no-wrap
23229 msgid ""
23230 " int\n"
23231 " guestfs_fallocate (guestfs_h *g,\n"
23232 "                    const char *path,\n"
23233 "                    int len);\n"
23234 "\n"
23235 msgstr ""
23236
23237 #. type: textblock
23238 #: ../src/guestfs-actions.pod:1505
23239 msgid ""
23240 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
23241 "call instead."
23242 msgstr ""
23243
23244 #. type: =head2
23245 #: ../src/guestfs-actions.pod:1524
23246 msgid "guestfs_fallocate64"
23247 msgstr ""
23248
23249 #. type: verbatim
23250 #: ../src/guestfs-actions.pod:1526
23251 #, no-wrap
23252 msgid ""
23253 " int\n"
23254 " guestfs_fallocate64 (guestfs_h *g,\n"
23255 "                      const char *path,\n"
23256 "                      int64_t len);\n"
23257 "\n"
23258 msgstr ""
23259
23260 #. type: textblock
23261 #: ../src/guestfs-actions.pod:1535
23262 msgid ""
23263 "Note that this call allocates disk blocks for the file.  To create a sparse "
23264 "file use C<guestfs_truncate_size> instead."
23265 msgstr ""
23266
23267 #. type: textblock
23268 #: ../src/guestfs-actions.pod:1538
23269 msgid ""
23270 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23271 "oversight it only allowed 30 bit lengths to be specified, effectively "
23272 "limiting the maximum size of files created through that call to 1GB."
23273 msgstr ""
23274
23275 #. type: textblock
23276 #: ../src/guestfs-actions.pod:1549
23277 msgid "(Added in 1.3.17)"
23278 msgstr ""
23279
23280 #. type: =head2
23281 #: ../src/guestfs-actions.pod:1551
23282 msgid "guestfs_fgrep"
23283 msgstr ""
23284
23285 #. type: verbatim
23286 #: ../src/guestfs-actions.pod:1553
23287 #, no-wrap
23288 msgid ""
23289 " char **\n"
23290 " guestfs_fgrep (guestfs_h *g,\n"
23291 "                const char *pattern,\n"
23292 "                const char *path);\n"
23293 "\n"
23294 msgstr ""
23295
23296 #. type: =head2
23297 #: ../src/guestfs-actions.pod:1570
23298 msgid "guestfs_fgrepi"
23299 msgstr ""
23300
23301 #. type: verbatim
23302 #: ../src/guestfs-actions.pod:1572
23303 #, no-wrap
23304 msgid ""
23305 " char **\n"
23306 " guestfs_fgrepi (guestfs_h *g,\n"
23307 "                 const char *pattern,\n"
23308 "                 const char *path);\n"
23309 "\n"
23310 msgstr ""
23311
23312 #. type: =head2
23313 #: ../src/guestfs-actions.pod:1589
23314 msgid "guestfs_file"
23315 msgstr ""
23316
23317 #. type: verbatim
23318 #: ../src/guestfs-actions.pod:1591
23319 #, no-wrap
23320 msgid ""
23321 " char *\n"
23322 " guestfs_file (guestfs_h *g,\n"
23323 "               const char *path);\n"
23324 "\n"
23325 msgstr ""
23326
23327 #. type: textblock
23328 #: ../src/guestfs-actions.pod:1609
23329 msgid ""
23330 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23331 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23332 msgstr ""
23333
23334 #. type: =head2
23335 #: ../src/guestfs-actions.pod:1617
23336 msgid "guestfs_file_architecture"
23337 msgstr ""
23338
23339 #. type: verbatim
23340 #: ../src/guestfs-actions.pod:1619
23341 #, no-wrap
23342 msgid ""
23343 " char *\n"
23344 " guestfs_file_architecture (guestfs_h *g,\n"
23345 "                            const char *filename);\n"
23346 "\n"
23347 msgstr ""
23348
23349 #. type: textblock
23350 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2790 ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2995 ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3203 ../src/guestfs-actions.pod:3440 ../src/guestfs-actions.pod:3572
23351 msgid "(Added in 1.5.3)"
23352 msgstr ""
23353
23354 #. type: =head2
23355 #: ../src/guestfs-actions.pod:1729
23356 msgid "guestfs_filesize"
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../src/guestfs-actions.pod:1731
23361 #, no-wrap
23362 msgid ""
23363 " int64_t\n"
23364 " guestfs_filesize (guestfs_h *g,\n"
23365 "                   const char *file);\n"
23366 "\n"
23367 msgstr ""
23368
23369 #. type: textblock
23370 #: ../src/guestfs-actions.pod:1737
23371 msgid ""
23372 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23373 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23374 "devices, use C<guestfs_blockdev_getsize64>."
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../src/guestfs-actions.pod:1743
23379 msgid "(Added in 1.0.82)"
23380 msgstr ""
23381
23382 #. type: =head2
23383 #: ../src/guestfs-actions.pod:1745
23384 msgid "guestfs_fill"
23385 msgstr ""
23386
23387 #. type: verbatim
23388 #: ../src/guestfs-actions.pod:1747
23389 #, no-wrap
23390 msgid ""
23391 " int\n"
23392 " guestfs_fill (guestfs_h *g,\n"
23393 "               int c,\n"
23394 "               int len,\n"
23395 "               const char *path);\n"
23396 "\n"
23397 msgstr ""
23398
23399 #. type: textblock
23400 #: ../src/guestfs-actions.pod:1757
23401 msgid ""
23402 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23403 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23404 "bytes use C<guestfs_fill_pattern>."
23405 msgstr ""
23406
23407 #. type: textblock
23408 #: ../src/guestfs-actions.pod:1769
23409 msgid "(Added in 1.0.79)"
23410 msgstr ""
23411
23412 #. type: =head2
23413 #: ../src/guestfs-actions.pod:1771
23414 msgid "guestfs_fill_pattern"
23415 msgstr ""
23416
23417 #. type: verbatim
23418 #: ../src/guestfs-actions.pod:1773
23419 #, no-wrap
23420 msgid ""
23421 " int\n"
23422 " guestfs_fill_pattern (guestfs_h *g,\n"
23423 "                       const char *pattern,\n"
23424 "                       int len,\n"
23425 "                       const char *path);\n"
23426 "\n"
23427 msgstr ""
23428
23429 #. type: textblock
23430 #: ../src/guestfs-actions.pod:1779
23431 msgid ""
23432 "This function is like C<guestfs_fill> except that it creates a new file of "
23433 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23434 "pattern is truncated if necessary to ensure the length of the file is "
23435 "exactly C<len> bytes."
23436 msgstr ""
23437
23438 #. type: textblock
23439 #: ../src/guestfs-actions.pod:1791
23440 msgid "(Added in 1.3.12)"
23441 msgstr ""
23442
23443 #. type: =head2
23444 #: ../src/guestfs-actions.pod:1793
23445 msgid "guestfs_find"
23446 msgstr ""
23447
23448 #. type: verbatim
23449 #: ../src/guestfs-actions.pod:1795
23450 #, no-wrap
23451 msgid ""
23452 " char **\n"
23453 " guestfs_find (guestfs_h *g,\n"
23454 "               const char *directory);\n"
23455 "\n"
23456 msgstr ""
23457
23458 #. type: textblock
23459 #: ../src/guestfs-actions.pod:1811
23460 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23461 msgstr ""
23462
23463 #. type: textblock
23464 #: ../src/guestfs-actions.pod:1824
23465 msgid "See also C<guestfs_find0>."
23466 msgstr ""
23467
23468 #. type: textblock
23469 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4330 ../src/guestfs-actions.pod:6040
23470 msgid "(Added in 1.0.27)"
23471 msgstr ""
23472
23473 #. type: =head2
23474 #: ../src/guestfs-actions.pod:1835
23475 msgid "guestfs_find0"
23476 msgstr ""
23477
23478 #. type: verbatim
23479 #: ../src/guestfs-actions.pod:1837
23480 #, no-wrap
23481 msgid ""
23482 " int\n"
23483 " guestfs_find0 (guestfs_h *g,\n"
23484 "                const char *directory,\n"
23485 "                const char *files);\n"
23486 "\n"
23487 msgstr ""
23488
23489 #. type: textblock
23490 #: ../src/guestfs-actions.pod:1846
23491 msgid ""
23492 "This command works the same way as C<guestfs_find> with the following "
23493 "exceptions:"
23494 msgstr ""
23495
23496 #. type: textblock
23497 #: ../src/guestfs-actions.pod:1873
23498 msgid "(Added in 1.0.74)"
23499 msgstr ""
23500
23501 #. type: =head2
23502 #: ../src/guestfs-actions.pod:1875
23503 msgid "guestfs_findfs_label"
23504 msgstr ""
23505
23506 #. type: verbatim
23507 #: ../src/guestfs-actions.pod:1877
23508 #, no-wrap
23509 msgid ""
23510 " char *\n"
23511 " guestfs_findfs_label (guestfs_h *g,\n"
23512 "                       const char *label);\n"
23513 "\n"
23514 msgstr ""
23515
23516 #. type: textblock
23517 #: ../src/guestfs-actions.pod:1885
23518 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23519 msgstr ""
23520
23521 #. type: =head2
23522 #: ../src/guestfs-actions.pod:1892
23523 msgid "guestfs_findfs_uuid"
23524 msgstr ""
23525
23526 #. type: verbatim
23527 #: ../src/guestfs-actions.pod:1894
23528 #, no-wrap
23529 msgid ""
23530 " char *\n"
23531 " guestfs_findfs_uuid (guestfs_h *g,\n"
23532 "                      const char *uuid);\n"
23533 "\n"
23534 msgstr ""
23535
23536 #. type: textblock
23537 #: ../src/guestfs-actions.pod:1902
23538 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23539 msgstr ""
23540
23541 #. type: =head2
23542 #: ../src/guestfs-actions.pod:1909
23543 msgid "guestfs_fsck"
23544 msgstr ""
23545
23546 #. type: verbatim
23547 #: ../src/guestfs-actions.pod:1911
23548 #, no-wrap
23549 msgid ""
23550 " int\n"
23551 " guestfs_fsck (guestfs_h *g,\n"
23552 "               const char *fstype,\n"
23553 "               const char *device);\n"
23554 "\n"
23555 msgstr ""
23556
23557 #. type: textblock
23558 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7815
23559 msgid "(Added in 1.0.16)"
23560 msgstr ""
23561
23562 #. type: =head2
23563 #: ../src/guestfs-actions.pod:1948
23564 msgid "guestfs_get_append"
23565 msgstr ""
23566
23567 #. type: verbatim
23568 #: ../src/guestfs-actions.pod:1950
23569 #, no-wrap
23570 msgid ""
23571 " const char *\n"
23572 " guestfs_get_append (guestfs_h *g);\n"
23573 "\n"
23574 msgstr ""
23575
23576 #. type: textblock
23577 #: ../src/guestfs-actions.pod:1958
23578 msgid ""
23579 "This function returns a string which may be NULL.  There is no way to return "
23580 "an error from this function.  The string is owned by the guest handle and "
23581 "must I<not> be freed."
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:6200 ../src/guestfs-actions.pod:6642 ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6701 ../src/guestfs-actions.pod:7455 ../src/guestfs-actions.pod:7470 ../src/guestfs-actions.pod:7862
23586 msgid "(Added in 1.0.26)"
23587 msgstr ""
23588
23589 #. type: =head2
23590 #: ../src/guestfs-actions.pod:1964
23591 msgid "guestfs_get_attach_method"
23592 msgstr ""
23593
23594 #. type: verbatim
23595 #: ../src/guestfs-actions.pod:1966
23596 #, no-wrap
23597 msgid ""
23598 " char *\n"
23599 " guestfs_get_attach_method (guestfs_h *g);\n"
23600 "\n"
23601 msgstr ""
23602
23603 #. type: textblock
23604 #: ../src/guestfs-actions.pod:1969
23605 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23606 msgstr ""
23607
23608 #. type: textblock
23609 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6230
23610 msgid "(Added in 1.9.8)"
23611 msgstr ""
23612
23613 #. type: =head2
23614 #: ../src/guestfs-actions.pod:1976
23615 msgid "guestfs_get_autosync"
23616 msgstr ""
23617
23618 #. type: verbatim
23619 #: ../src/guestfs-actions.pod:1978
23620 #, no-wrap
23621 msgid ""
23622 " int\n"
23623 " guestfs_get_autosync (guestfs_h *g);\n"
23624 "\n"
23625 msgstr ""
23626
23627 #. type: =head2
23628 #: ../src/guestfs-actions.pod:1987
23629 msgid "guestfs_get_direct"
23630 msgstr ""
23631
23632 #. type: verbatim
23633 #: ../src/guestfs-actions.pod:1989
23634 #, no-wrap
23635 msgid ""
23636 " int\n"
23637 " guestfs_get_direct (guestfs_h *g);\n"
23638 "\n"
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6271
23643 msgid "(Added in 1.0.72)"
23644 msgstr ""
23645
23646 #. type: =head2
23647 #: ../src/guestfs-actions.pod:1998
23648 msgid "guestfs_get_e2label"
23649 msgstr ""
23650
23651 #. type: verbatim
23652 #: ../src/guestfs-actions.pod:2000
23653 #, no-wrap
23654 msgid ""
23655 " char *\n"
23656 " guestfs_get_e2label (guestfs_h *g,\n"
23657 "                      const char *device);\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../src/guestfs-actions.pod:2004
23663 msgid ""
23664 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
23665 "call instead."
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6308
23670 msgid "(Added in 1.0.15)"
23671 msgstr ""
23672
23673 #. type: =head2
23674 #: ../src/guestfs-actions.pod:2019
23675 msgid "guestfs_get_e2uuid"
23676 msgstr ""
23677
23678 #. type: verbatim
23679 #: ../src/guestfs-actions.pod:2021
23680 #, no-wrap
23681 msgid ""
23682 " char *\n"
23683 " guestfs_get_e2uuid (guestfs_h *g,\n"
23684 "                     const char *device);\n"
23685 "\n"
23686 msgstr ""
23687
23688 #. type: textblock
23689 #: ../src/guestfs-actions.pod:2025
23690 msgid ""
23691 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
23692 "call instead."
23693 msgstr ""
23694
23695 #. type: =head2
23696 #: ../src/guestfs-actions.pod:2040
23697 msgid "guestfs_get_memsize"
23698 msgstr ""
23699
23700 #. type: verbatim
23701 #: ../src/guestfs-actions.pod:2042
23702 #, no-wrap
23703 msgid ""
23704 " int\n"
23705 " guestfs_get_memsize (guestfs_h *g);\n"
23706 "\n"
23707 msgstr ""
23708
23709 #. type: textblock
23710 #: ../src/guestfs-actions.pod:2048
23711 msgid ""
23712 "If C<guestfs_set_memsize> was not called on this handle, and if "
23713 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23714 "value for memsize."
23715 msgstr ""
23716
23717 #. type: textblock
23718 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4621 ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:4849 ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4880 ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4910 ../src/guestfs-actions.pod:5943 ../src/guestfs-actions.pod:6329 ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:7224
23719 msgid "(Added in 1.0.55)"
23720 msgstr ""
23721
23722 #. type: =head2
23723 #: ../src/guestfs-actions.pod:2059
23724 msgid "guestfs_get_network"
23725 msgstr ""
23726
23727 #. type: verbatim
23728 #: ../src/guestfs-actions.pod:2061
23729 #, no-wrap
23730 msgid ""
23731 " int\n"
23732 " guestfs_get_network (guestfs_h *g);\n"
23733 "\n"
23734 msgstr ""
23735
23736 #. type: textblock
23737 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6348
23738 msgid "(Added in 1.5.4)"
23739 msgstr ""
23740
23741 #. type: =head2
23742 #: ../src/guestfs-actions.pod:2070
23743 msgid "guestfs_get_path"
23744 msgstr ""
23745
23746 #. type: verbatim
23747 #: ../src/guestfs-actions.pod:2072
23748 #, no-wrap
23749 msgid ""
23750 " const char *\n"
23751 " guestfs_get_path (guestfs_h *g);\n"
23752 "\n"
23753 msgstr ""
23754
23755 #. type: textblock
23756 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
23757 msgid ""
23758 "This function returns a string, or NULL on error.  The string is owned by "
23759 "the guest handle and must I<not> be freed."
23760 msgstr ""
23761
23762 #. type: =head2
23763 #: ../src/guestfs-actions.pod:2085
23764 msgid "guestfs_get_pgroup"
23765 msgstr ""
23766
23767 #. type: verbatim
23768 #: ../src/guestfs-actions.pod:2087
23769 #, no-wrap
23770 msgid ""
23771 " int\n"
23772 " guestfs_get_pgroup (guestfs_h *g);\n"
23773 "\n"
23774 msgstr ""
23775
23776 #. type: textblock
23777 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:7716
23778 msgid "(Added in 1.11.18)"
23779 msgstr ""
23780
23781 #. type: =head2
23782 #: ../src/guestfs-actions.pod:2096
23783 msgid "guestfs_get_pid"
23784 msgstr ""
23785
23786 #. type: verbatim
23787 #: ../src/guestfs-actions.pod:2098
23788 #, no-wrap
23789 msgid ""
23790 " int\n"
23791 " guestfs_get_pid (guestfs_h *g);\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../src/guestfs-actions.pod:2108
23797 msgid "(Added in 1.0.56)"
23798 msgstr ""
23799
23800 #. type: =head2
23801 #: ../src/guestfs-actions.pod:2110
23802 msgid "guestfs_get_qemu"
23803 msgstr ""
23804
23805 #. type: verbatim
23806 #: ../src/guestfs-actions.pod:2112
23807 #, no-wrap
23808 msgid ""
23809 " const char *\n"
23810 " guestfs_get_qemu (guestfs_h *g);\n"
23811 "\n"
23812 msgstr ""
23813
23814 #. type: textblock
23815 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6412
23816 msgid "(Added in 1.0.6)"
23817 msgstr ""
23818
23819 #. type: =head2
23820 #: ../src/guestfs-actions.pod:2125
23821 msgid "guestfs_get_recovery_proc"
23822 msgstr ""
23823
23824 #. type: verbatim
23825 #: ../src/guestfs-actions.pod:2127
23826 #, no-wrap
23827 msgid ""
23828 " int\n"
23829 " guestfs_get_recovery_proc (guestfs_h *g);\n"
23830 "\n"
23831 msgstr ""
23832
23833 #. type: textblock
23834 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4428 ../src/guestfs-actions.pod:4460 ../src/guestfs-actions.pod:5648 ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7339
23835 msgid "(Added in 1.0.77)"
23836 msgstr ""
23837
23838 #. type: =head2
23839 #: ../src/guestfs-actions.pod:2136
23840 msgid "guestfs_get_selinux"
23841 msgstr ""
23842
23843 #. type: verbatim
23844 #: ../src/guestfs-actions.pod:2138
23845 #, no-wrap
23846 msgid ""
23847 " int\n"
23848 " guestfs_get_selinux (guestfs_h *g);\n"
23849 "\n"
23850 msgstr ""
23851
23852 #. type: textblock
23853 #: ../src/guestfs-actions.pod:2141
23854 msgid ""
23855 "This returns the current setting of the selinux flag which is passed to the "
23856 "appliance at boot time.  See C<guestfs_set_selinux>."
23857 msgstr ""
23858
23859 #. type: textblock
23860 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6513
23861 msgid "(Added in 1.0.67)"
23862 msgstr ""
23863
23864 #. type: =head2
23865 #: ../src/guestfs-actions.pod:2151
23866 msgid "guestfs_get_state"
23867 msgstr ""
23868
23869 #. type: verbatim
23870 #: ../src/guestfs-actions.pod:2153
23871 #, no-wrap
23872 msgid ""
23873 " int\n"
23874 " guestfs_get_state (guestfs_h *g);\n"
23875 "\n"
23876 msgstr ""
23877
23878 #. type: =head2
23879 #: ../src/guestfs-actions.pod:2165
23880 msgid "guestfs_get_trace"
23881 msgstr ""
23882
23883 #. type: verbatim
23884 #: ../src/guestfs-actions.pod:2167
23885 #, no-wrap
23886 msgid ""
23887 " int\n"
23888 " guestfs_get_trace (guestfs_h *g);\n"
23889 "\n"
23890 msgstr ""
23891
23892 #. type: =head2
23893 #: ../src/guestfs-actions.pod:2176
23894 msgid "guestfs_get_umask"
23895 msgstr ""
23896
23897 #. type: verbatim
23898 #: ../src/guestfs-actions.pod:2178
23899 #, no-wrap
23900 msgid ""
23901 " int\n"
23902 " guestfs_get_umask (guestfs_h *g);\n"
23903 "\n"
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../src/guestfs-actions.pod:2181
23908 msgid ""
23909 "Return the current umask.  By default the umask is C<022> unless it has been "
23910 "set by calling C<guestfs_umask>."
23911 msgstr ""
23912
23913 #. type: =head2
23914 #: ../src/guestfs-actions.pod:2188
23915 msgid "guestfs_get_verbose"
23916 msgstr ""
23917
23918 #. type: verbatim
23919 #: ../src/guestfs-actions.pod:2190
23920 #, no-wrap
23921 msgid ""
23922 " int\n"
23923 " guestfs_get_verbose (guestfs_h *g);\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: =head2
23928 #: ../src/guestfs-actions.pod:2199
23929 msgid "guestfs_getcon"
23930 msgstr ""
23931
23932 #. type: verbatim
23933 #: ../src/guestfs-actions.pod:2201
23934 #, no-wrap
23935 msgid ""
23936 " char *\n"
23937 " guestfs_getcon (guestfs_h *g);\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../src/guestfs-actions.pod:2206
23943 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
23944 msgstr ""
23945
23946 #. type: =head2
23947 #: ../src/guestfs-actions.pod:2214
23948 msgid "guestfs_getxattr"
23949 msgstr ""
23950
23951 #. type: verbatim
23952 #: ../src/guestfs-actions.pod:2216
23953 #, no-wrap
23954 msgid ""
23955 " char *\n"
23956 " guestfs_getxattr (guestfs_h *g,\n"
23957 "                   const char *path,\n"
23958 "                   const char *name,\n"
23959 "                   size_t *size_r);\n"
23960 "\n"
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../src/guestfs-actions.pod:2222
23965 msgid ""
23966 "Get a single extended attribute from file C<path> named C<name>.  This call "
23967 "follows symlinks.  If you want to lookup an extended attribute for the "
23968 "symlink itself, use C<guestfs_lgetxattr>."
23969 msgstr ""
23970
23971 #. type: textblock
23972 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3708
23973 msgid ""
23974 "Normally it is better to get all extended attributes from a file in one go "
23975 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
23976 "implementations are buggy and do not provide a way to list out attributes.  "
23977 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
23978 "extended attributes you want in advance and call this function."
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../src/guestfs-actions.pod:2236
23983 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
23984 msgstr ""
23985
23986 #. type: textblock
23987 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3720 ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5848
23988 msgid ""
23989 "This function returns a buffer, or NULL on error.  The size of the returned "
23990 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
23991 "after use>."
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3724
23996 msgid "(Added in 1.7.24)"
23997 msgstr ""
23998
23999 #. type: =head2
24000 #: ../src/guestfs-actions.pod:2244
24001 msgid "guestfs_getxattrs"
24002 msgstr ""
24003
24004 #. type: verbatim
24005 #: ../src/guestfs-actions.pod:2246
24006 #, no-wrap
24007 msgid ""
24008 " struct guestfs_xattr_list *\n"
24009 " guestfs_getxattrs (guestfs_h *g,\n"
24010 "                    const char *path);\n"
24011 "\n"
24012 msgstr ""
24013
24014 #. type: textblock
24015 #: ../src/guestfs-actions.pod:2256
24016 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:4424
24021 msgid ""
24022 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
24023 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
24024 msgstr ""
24025
24026 #. type: textblock
24027 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6532 ../src/guestfs-actions.pod:7927
24028 msgid "(Added in 1.0.59)"
24029 msgstr ""
24030
24031 #. type: =head2
24032 #: ../src/guestfs-actions.pod:2264
24033 msgid "guestfs_glob_expand"
24034 msgstr ""
24035
24036 #. type: verbatim
24037 #: ../src/guestfs-actions.pod:2266
24038 #, no-wrap
24039 msgid ""
24040 " char **\n"
24041 " guestfs_glob_expand (guestfs_h *g,\n"
24042 "                      const char *pattern);\n"
24043 "\n"
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6725 ../src/guestfs-actions.pod:6742
24048 msgid "(Added in 1.0.50)"
24049 msgstr ""
24050
24051 #. type: =head2
24052 #: ../src/guestfs-actions.pod:2287
24053 msgid "guestfs_grep"
24054 msgstr ""
24055
24056 #. type: verbatim
24057 #: ../src/guestfs-actions.pod:2289
24058 #, no-wrap
24059 msgid ""
24060 " char **\n"
24061 " guestfs_grep (guestfs_h *g,\n"
24062 "               const char *regex,\n"
24063 "               const char *path);\n"
24064 "\n"
24065 msgstr ""
24066
24067 #. type: =head2
24068 #: ../src/guestfs-actions.pod:2306
24069 msgid "guestfs_grepi"
24070 msgstr ""
24071
24072 #. type: verbatim
24073 #: ../src/guestfs-actions.pod:2308
24074 #, no-wrap
24075 msgid ""
24076 " char **\n"
24077 " guestfs_grepi (guestfs_h *g,\n"
24078 "                const char *regex,\n"
24079 "                const char *path);\n"
24080 "\n"
24081 msgstr ""
24082
24083 #. type: =head2
24084 #: ../src/guestfs-actions.pod:2325
24085 msgid "guestfs_grub_install"
24086 msgstr ""
24087
24088 #. type: verbatim
24089 #: ../src/guestfs-actions.pod:2327
24090 #, no-wrap
24091 msgid ""
24092 " int\n"
24093 " guestfs_grub_install (guestfs_h *g,\n"
24094 "                       const char *root,\n"
24095 "                       const char *device);\n"
24096 "\n"
24097 msgstr ""
24098
24099 #. type: textblock
24100 #: ../src/guestfs-actions.pod:2370
24101 msgid "(Added in 1.0.17)"
24102 msgstr ""
24103
24104 #. type: =head2
24105 #: ../src/guestfs-actions.pod:2372
24106 msgid "guestfs_head"
24107 msgstr ""
24108
24109 #. type: verbatim
24110 #: ../src/guestfs-actions.pod:2374
24111 #, no-wrap
24112 msgid ""
24113 " char **\n"
24114 " guestfs_head (guestfs_h *g,\n"
24115 "               const char *path);\n"
24116 "\n"
24117 msgstr ""
24118
24119 #. type: =head2
24120 #: ../src/guestfs-actions.pod:2390
24121 msgid "guestfs_head_n"
24122 msgstr ""
24123
24124 #. type: verbatim
24125 #: ../src/guestfs-actions.pod:2392
24126 #, no-wrap
24127 msgid ""
24128 " char **\n"
24129 " guestfs_head_n (guestfs_h *g,\n"
24130 "                 int nrlines,\n"
24131 "                 const char *path);\n"
24132 "\n"
24133 msgstr ""
24134
24135 #. type: =head2
24136 #: ../src/guestfs-actions.pod:2414
24137 msgid "guestfs_hexdump"
24138 msgstr ""
24139
24140 #. type: verbatim
24141 #: ../src/guestfs-actions.pod:2416
24142 #, no-wrap
24143 msgid ""
24144 " char *\n"
24145 " guestfs_hexdump (guestfs_h *g,\n"
24146 "                  const char *path);\n"
24147 "\n"
24148 msgstr ""
24149
24150 #. type: textblock
24151 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6806 ../src/guestfs-actions.pod:6861
24152 msgid "(Added in 1.0.22)"
24153 msgstr ""
24154
24155 #. type: =head2
24156 #: ../src/guestfs-actions.pod:2431
24157 msgid "guestfs_initrd_cat"
24158 msgstr ""
24159
24160 #. type: verbatim
24161 #: ../src/guestfs-actions.pod:2433
24162 #, no-wrap
24163 msgid ""
24164 " char *\n"
24165 " guestfs_initrd_cat (guestfs_h *g,\n"
24166 "                     const char *initrdpath,\n"
24167 "                     const char *filename,\n"
24168 "                     size_t *size_r);\n"
24169 "\n"
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../src/guestfs-actions.pod:2449
24174 msgid "See also C<guestfs_initrd_list>."
24175 msgstr ""
24176
24177 #. type: =head2
24178 #: ../src/guestfs-actions.pod:2460
24179 msgid "guestfs_initrd_list"
24180 msgstr ""
24181
24182 #. type: verbatim
24183 #: ../src/guestfs-actions.pod:2462
24184 #, no-wrap
24185 msgid ""
24186 " char **\n"
24187 " guestfs_initrd_list (guestfs_h *g,\n"
24188 "                      const char *path);\n"
24189 "\n"
24190 msgstr ""
24191
24192 #. type: =head2
24193 #: ../src/guestfs-actions.pod:2482
24194 msgid "guestfs_inotify_add_watch"
24195 msgstr ""
24196
24197 #. type: verbatim
24198 #: ../src/guestfs-actions.pod:2484
24199 #, no-wrap
24200 msgid ""
24201 " int64_t\n"
24202 " guestfs_inotify_add_watch (guestfs_h *g,\n"
24203 "                            const char *path,\n"
24204 "                            int mask);\n"
24205 "\n"
24206 msgstr ""
24207
24208 #. type: =head2
24209 #: ../src/guestfs-actions.pod:2503
24210 msgid "guestfs_inotify_close"
24211 msgstr ""
24212
24213 #. type: verbatim
24214 #: ../src/guestfs-actions.pod:2505
24215 #, no-wrap
24216 msgid ""
24217 " int\n"
24218 " guestfs_inotify_close (guestfs_h *g);\n"
24219 "\n"
24220 msgstr ""
24221
24222 #. type: =head2
24223 #: ../src/guestfs-actions.pod:2516
24224 msgid "guestfs_inotify_files"
24225 msgstr ""
24226
24227 #. type: verbatim
24228 #: ../src/guestfs-actions.pod:2518
24229 #, no-wrap
24230 msgid ""
24231 " char **\n"
24232 " guestfs_inotify_files (guestfs_h *g);\n"
24233 "\n"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../src/guestfs-actions.pod:2521
24238 msgid ""
24239 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24240 "returns a list of pathnames of objects that were touched.  The returned "
24241 "pathnames are sorted and deduplicated."
24242 msgstr ""
24243
24244 #. type: =head2
24245 #: ../src/guestfs-actions.pod:2531
24246 msgid "guestfs_inotify_init"
24247 msgstr ""
24248
24249 #. type: verbatim
24250 #: ../src/guestfs-actions.pod:2533
24251 #, no-wrap
24252 msgid ""
24253 " int\n"
24254 " guestfs_inotify_init (guestfs_h *g,\n"
24255 "                       int maxevents);\n"
24256 "\n"
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../src/guestfs-actions.pod:2541
24261 msgid ""
24262 "C<maxevents> is the maximum number of events which will be queued up between "
24263 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24264 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24265 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24266 "throws away events, but records the fact that it threw them away by setting "
24267 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24268 "C<guestfs_inotify_read>)."
24269 msgstr ""
24270
24271 #. type: textblock
24272 #: ../src/guestfs-actions.pod:2551
24273 msgid ""
24274 "Before any events are generated, you have to add some watches to the "
24275 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24276 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24277 msgstr ""
24278
24279 #. type: textblock
24280 #: ../src/guestfs-actions.pod:2557
24281 msgid ""
24282 "Queued up events should be read periodically by calling "
24283 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24284 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24285 "often enough then you risk the internal queue overflowing."
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../src/guestfs-actions.pod:2564
24290 msgid ""
24291 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24292 "This also removes any watches automatically."
24293 msgstr ""
24294
24295 #. type: =head2
24296 #: ../src/guestfs-actions.pod:2577
24297 msgid "guestfs_inotify_read"
24298 msgstr ""
24299
24300 #. type: verbatim
24301 #: ../src/guestfs-actions.pod:2579
24302 #, no-wrap
24303 msgid ""
24304 " struct guestfs_inotify_event_list *\n"
24305 " guestfs_inotify_read (guestfs_h *g);\n"
24306 "\n"
24307 msgstr ""
24308
24309 #. type: textblock
24310 #: ../src/guestfs-actions.pod:2593
24311 msgid ""
24312 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24313 "there was an error.  I<The caller must call "
24314 "C<guestfs_free_inotify_event_list> after use>."
24315 msgstr ""
24316
24317 #. type: =head2
24318 #: ../src/guestfs-actions.pod:2599
24319 msgid "guestfs_inotify_rm_watch"
24320 msgstr ""
24321
24322 #. type: verbatim
24323 #: ../src/guestfs-actions.pod:2601
24324 #, no-wrap
24325 msgid ""
24326 " int\n"
24327 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24328 "                           int wd);\n"
24329 "\n"
24330 msgstr ""
24331
24332 #. type: textblock
24333 #: ../src/guestfs-actions.pod:2605
24334 msgid ""
24335 "Remove a previously defined inotify watch.  See "
24336 "C<guestfs_inotify_add_watch>."
24337 msgstr ""
24338
24339 #. type: =head2
24340 #: ../src/guestfs-actions.pod:2612
24341 msgid "guestfs_inspect_get_arch"
24342 msgstr ""
24343
24344 #. type: verbatim
24345 #: ../src/guestfs-actions.pod:2614
24346 #, no-wrap
24347 msgid ""
24348 " char *\n"
24349 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24350 "                           const char *root);\n"
24351 "\n"
24352 msgstr ""
24353
24354 #. type: textblock
24355 #: ../src/guestfs-actions.pod:2618
24356 msgid ""
24357 "This returns the architecture of the inspected operating system.  The "
24358 "possible return values are listed under C<guestfs_file_architecture>."
24359 msgstr ""
24360
24361 #. type: =head2
24362 #: ../src/guestfs-actions.pod:2632
24363 msgid "guestfs_inspect_get_distro"
24364 msgstr ""
24365
24366 #. type: verbatim
24367 #: ../src/guestfs-actions.pod:2634
24368 #, no-wrap
24369 msgid ""
24370 " char *\n"
24371 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24372 "                             const char *root);\n"
24373 "\n"
24374 msgstr ""
24375
24376 #. type: =head2
24377 #: ../src/guestfs-actions.pod:2726
24378 msgid "guestfs_inspect_get_drive_mappings"
24379 msgstr ""
24380
24381 #. type: verbatim
24382 #: ../src/guestfs-actions.pod:2728
24383 #, no-wrap
24384 msgid ""
24385 " char **\n"
24386 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24387 "                                     const char *root);\n"
24388 "\n"
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../src/guestfs-actions.pod:2757
24393 msgid ""
24394 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24395 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24396 msgstr ""
24397
24398 #. type: textblock
24399 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:3029 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:5109 ../src/guestfs-actions.pod:7163
24400 msgid ""
24401 "This function returns a NULL-terminated array of strings, or NULL if there "
24402 "was an error.  The array of strings will always have length C<2n+1>, where "
24403 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24404 "caller must free the strings and the array after use>."
24405 msgstr ""
24406
24407 #. type: textblock
24408 #: ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:3223
24409 msgid "(Added in 1.9.17)"
24410 msgstr ""
24411
24412 #. type: =head2
24413 #: ../src/guestfs-actions.pod:2769
24414 msgid "guestfs_inspect_get_filesystems"
24415 msgstr ""
24416
24417 #. type: verbatim
24418 #: ../src/guestfs-actions.pod:2771
24419 #, no-wrap
24420 msgid ""
24421 " char **\n"
24422 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24423 "                                  const char *root);\n"
24424 "\n"
24425 msgstr ""
24426
24427 #. type: textblock
24428 #: ../src/guestfs-actions.pod:2783
24429 msgid ""
24430 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24431 "C<guestfs_inspect_get_mountpoints>."
24432 msgstr ""
24433
24434 #. type: =head2
24435 #: ../src/guestfs-actions.pod:2792
24436 msgid "guestfs_inspect_get_format"
24437 msgstr ""
24438
24439 #. type: verbatim
24440 #: ../src/guestfs-actions.pod:2794
24441 #, no-wrap
24442 msgid ""
24443 " char *\n"
24444 " guestfs_inspect_get_format (guestfs_h *g,\n"
24445 "                             const char *root);\n"
24446 "\n"
24447 msgstr ""
24448
24449 #. type: textblock
24450 #: ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3293 ../src/guestfs-actions.pod:6059
24451 msgid "(Added in 1.9.4)"
24452 msgstr ""
24453
24454 #. type: =head2
24455 #: ../src/guestfs-actions.pod:2830
24456 msgid "guestfs_inspect_get_hostname"
24457 msgstr ""
24458
24459 #. type: verbatim
24460 #: ../src/guestfs-actions.pod:2832
24461 #, no-wrap
24462 msgid ""
24463 " char *\n"
24464 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24465 "                               const char *root);\n"
24466 "\n"
24467 msgstr ""
24468
24469 #. type: textblock
24470 #: ../src/guestfs-actions.pod:2847
24471 msgid "(Added in 1.7.9)"
24472 msgstr ""
24473
24474 #. type: =head2
24475 #: ../src/guestfs-actions.pod:2849
24476 msgid "guestfs_inspect_get_icon"
24477 msgstr ""
24478
24479 #. type: verbatim
24480 #: ../src/guestfs-actions.pod:2851
24481 #, no-wrap
24482 msgid ""
24483 " char *\n"
24484 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24485 "                           const char *root,\n"
24486 "                           size_t *size_r,\n"
24487 "                           ...);\n"
24488 "\n"
24489 msgstr ""
24490
24491 #. type: verbatim
24492 #: ../src/guestfs-actions.pod:2862
24493 #, no-wrap
24494 msgid ""
24495 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24496 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24497 "\n"
24498 msgstr ""
24499
24500 #. type: textblock
24501 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:3754 ../src/guestfs-actions.pod:5008
24502 msgid "(Added in 1.11.12)"
24503 msgstr ""
24504
24505 #. type: =head2
24506 #: ../src/guestfs-actions.pod:2931
24507 msgid "guestfs_inspect_get_icon_va"
24508 msgstr ""
24509
24510 #. type: verbatim
24511 #: ../src/guestfs-actions.pod:2933
24512 #, no-wrap
24513 msgid ""
24514 " char *\n"
24515 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24516 "                              const char *root,\n"
24517 "                              size_t *size_r,\n"
24518 "                              va_list args);\n"
24519 "\n"
24520 msgstr ""
24521
24522 #. type: textblock
24523 #: ../src/guestfs-actions.pod:2939
24524 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24525 msgstr ""
24526
24527 #. type: =head2
24528 #: ../src/guestfs-actions.pod:2943
24529 msgid "guestfs_inspect_get_icon_argv"
24530 msgstr ""
24531
24532 #. type: verbatim
24533 #: ../src/guestfs-actions.pod:2945
24534 #, no-wrap
24535 msgid ""
24536 " char *\n"
24537 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24538 "                                const char *root,\n"
24539 "                                size_t *size_r,\n"
24540 "                                const struct guestfs_inspect_get_icon_argv "
24541 "*optargs);\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../src/guestfs-actions.pod:2951
24547 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24548 msgstr ""
24549
24550 #. type: =head2
24551 #: ../src/guestfs-actions.pod:2955
24552 msgid "guestfs_inspect_get_major_version"
24553 msgstr ""
24554
24555 #. type: verbatim
24556 #: ../src/guestfs-actions.pod:2957
24557 #, no-wrap
24558 msgid ""
24559 " int\n"
24560 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24561 "                                    const char *root);\n"
24562 "\n"
24563 msgstr ""
24564
24565 #. type: =head2
24566 #: ../src/guestfs-actions.pod:2979
24567 msgid "guestfs_inspect_get_minor_version"
24568 msgstr ""
24569
24570 #. type: verbatim
24571 #: ../src/guestfs-actions.pod:2981
24572 #, no-wrap
24573 msgid ""
24574 " int\n"
24575 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24576 "                                    const char *root);\n"
24577 "\n"
24578 msgstr ""
24579
24580 #. type: textblock
24581 #: ../src/guestfs-actions.pod:2990
24582 msgid ""
24583 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24584 "C<guestfs_inspect_get_major_version>."
24585 msgstr ""
24586
24587 #. type: =head2
24588 #: ../src/guestfs-actions.pod:2997
24589 msgid "guestfs_inspect_get_mountpoints"
24590 msgstr ""
24591
24592 #. type: verbatim
24593 #: ../src/guestfs-actions.pod:2999
24594 #, no-wrap
24595 msgid ""
24596 " char **\n"
24597 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24598 "                                  const char *root);\n"
24599 "\n"
24600 msgstr ""
24601
24602 #. type: textblock
24603 #: ../src/guestfs-actions.pod:3020
24604 msgid ""
24605 "For operating systems like Windows which still use drive letters, this call "
24606 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24607 "information about the mapping of drive letters to partitions, see "
24608 "C<guestfs_inspect_get_drive_mappings>."
24609 msgstr ""
24610
24611 #. type: textblock
24612 #: ../src/guestfs-actions.pod:3026
24613 msgid ""
24614 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24615 "C<guestfs_inspect_get_filesystems>."
24616 msgstr ""
24617
24618 #. type: =head2
24619 #: ../src/guestfs-actions.pod:3037
24620 msgid "guestfs_inspect_get_package_format"
24621 msgstr ""
24622
24623 #. type: verbatim
24624 #: ../src/guestfs-actions.pod:3039
24625 #, no-wrap
24626 msgid ""
24627 " char *\n"
24628 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24629 "                                     const char *root);\n"
24630 "\n"
24631 msgstr ""
24632
24633 #. type: textblock
24634 #: ../src/guestfs-actions.pod:3043
24635 msgid ""
24636 "This function and C<guestfs_inspect_get_package_management> return the "
24637 "package format and package management tool used by the inspected operating "
24638 "system.  For example for Fedora these functions would return C<rpm> (package "
24639 "format) and C<yum> (package management)."
24640 msgstr ""
24641
24642 #. type: textblock
24643 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3089
24644 msgid "(Added in 1.7.5)"
24645 msgstr ""
24646
24647 #. type: =head2
24648 #: ../src/guestfs-actions.pod:3063
24649 msgid "guestfs_inspect_get_package_management"
24650 msgstr ""
24651
24652 #. type: verbatim
24653 #: ../src/guestfs-actions.pod:3065
24654 #, no-wrap
24655 msgid ""
24656 " char *\n"
24657 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24658 "                                         const char *root);\n"
24659 "\n"
24660 msgstr ""
24661
24662 #. type: textblock
24663 #: ../src/guestfs-actions.pod:3069
24664 msgid ""
24665 "C<guestfs_inspect_get_package_format> and this function return the package "
24666 "format and package management tool used by the inspected operating system.  "
24667 "For example for Fedora these functions would return C<rpm> (package format) "
24668 "and C<yum> (package management)."
24669 msgstr ""
24670
24671 #. type: =head2
24672 #: ../src/guestfs-actions.pod:3091
24673 msgid "guestfs_inspect_get_product_name"
24674 msgstr ""
24675
24676 #. type: verbatim
24677 #: ../src/guestfs-actions.pod:3093
24678 #, no-wrap
24679 msgid ""
24680 " char *\n"
24681 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24682 "                                   const char *root);\n"
24683 "\n"
24684 msgstr ""
24685
24686 #. type: =head2
24687 #: ../src/guestfs-actions.pod:3112
24688 msgid "guestfs_inspect_get_product_variant"
24689 msgstr ""
24690
24691 #. type: verbatim
24692 #: ../src/guestfs-actions.pod:3114
24693 #, no-wrap
24694 msgid ""
24695 " char *\n"
24696 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24697 "                                      const char *root);\n"
24698 "\n"
24699 msgstr ""
24700
24701 #. type: textblock
24702 #: ../src/guestfs-actions.pod:3137
24703 msgid ""
24704 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24705 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24706 msgstr ""
24707
24708 #. type: textblock
24709 #: ../src/guestfs-actions.pod:3144
24710 msgid "(Added in 1.9.13)"
24711 msgstr ""
24712
24713 #. type: =head2
24714 #: ../src/guestfs-actions.pod:3146
24715 msgid "guestfs_inspect_get_roots"
24716 msgstr ""
24717
24718 #. type: verbatim
24719 #: ../src/guestfs-actions.pod:3148
24720 #, no-wrap
24721 msgid ""
24722 " char **\n"
24723 " guestfs_inspect_get_roots (guestfs_h *g);\n"
24724 "\n"
24725 msgstr ""
24726
24727 #. type: textblock
24728 #: ../src/guestfs-actions.pod:3151
24729 msgid ""
24730 "This function is a convenient way to get the list of root devices, as "
24731 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
24732 "the whole inspection process."
24733 msgstr ""
24734
24735 #. type: textblock
24736 #: ../src/guestfs-actions.pod:3155
24737 msgid ""
24738 "This returns an empty list if either no root devices were found or the "
24739 "caller has not called C<guestfs_inspect_os>."
24740 msgstr ""
24741
24742 #. type: textblock
24743 #: ../src/guestfs-actions.pod:3164
24744 msgid "(Added in 1.7.3)"
24745 msgstr ""
24746
24747 #. type: =head2
24748 #: ../src/guestfs-actions.pod:3166
24749 msgid "guestfs_inspect_get_type"
24750 msgstr ""
24751
24752 #. type: verbatim
24753 #: ../src/guestfs-actions.pod:3168
24754 #, no-wrap
24755 msgid ""
24756 " char *\n"
24757 " guestfs_inspect_get_type (guestfs_h *g,\n"
24758 "                           const char *root);\n"
24759 "\n"
24760 msgstr ""
24761
24762 #. type: =head2
24763 #: ../src/guestfs-actions.pod:3205
24764 msgid "guestfs_inspect_get_windows_current_control_set"
24765 msgstr ""
24766
24767 #. type: verbatim
24768 #: ../src/guestfs-actions.pod:3207
24769 #, no-wrap
24770 msgid ""
24771 " char *\n"
24772 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
24773 "                                                  const char *root);\n"
24774 "\n"
24775 msgstr ""
24776
24777 #. type: =head2
24778 #: ../src/guestfs-actions.pod:3225
24779 msgid "guestfs_inspect_get_windows_systemroot"
24780 msgstr ""
24781
24782 #. type: verbatim
24783 #: ../src/guestfs-actions.pod:3227
24784 #, no-wrap
24785 msgid ""
24786 " char *\n"
24787 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
24788 "                                         const char *root);\n"
24789 "\n"
24790 msgstr ""
24791
24792 #. type: textblock
24793 #: ../src/guestfs-actions.pod:3243
24794 msgid "(Added in 1.5.25)"
24795 msgstr ""
24796
24797 #. type: =head2
24798 #: ../src/guestfs-actions.pod:3245
24799 msgid "guestfs_inspect_is_live"
24800 msgstr ""
24801
24802 #. type: verbatim
24803 #: ../src/guestfs-actions.pod:3247
24804 #, no-wrap
24805 msgid ""
24806 " int\n"
24807 " guestfs_inspect_is_live (guestfs_h *g,\n"
24808 "                          const char *root);\n"
24809 "\n"
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../src/guestfs-actions.pod:3251
24814 msgid ""
24815 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24816 "disk), then this returns true if a live image was detected on the disk."
24817 msgstr ""
24818
24819 #. type: =head2
24820 #: ../src/guestfs-actions.pod:3261
24821 msgid "guestfs_inspect_is_multipart"
24822 msgstr ""
24823
24824 #. type: verbatim
24825 #: ../src/guestfs-actions.pod:3263
24826 #, no-wrap
24827 msgid ""
24828 " int\n"
24829 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
24830 "                               const char *root);\n"
24831 "\n"
24832 msgstr ""
24833
24834 #. type: textblock
24835 #: ../src/guestfs-actions.pod:3267
24836 msgid ""
24837 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24838 "disk), then this returns true if the disk is part of a set."
24839 msgstr ""
24840
24841 #. type: =head2
24842 #: ../src/guestfs-actions.pod:3277
24843 msgid "guestfs_inspect_is_netinst"
24844 msgstr ""
24845
24846 #. type: verbatim
24847 #: ../src/guestfs-actions.pod:3279
24848 #, no-wrap
24849 msgid ""
24850 " int\n"
24851 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
24852 "                             const char *root);\n"
24853 "\n"
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:3283
24858 msgid ""
24859 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24860 "disk), then this returns true if the disk is a network installer, ie. not a "
24861 "self-contained install CD but one which is likely to require network access "
24862 "to complete the install."
24863 msgstr ""
24864
24865 #. type: =head2
24866 #: ../src/guestfs-actions.pod:3295
24867 msgid "guestfs_inspect_list_applications"
24868 msgstr ""
24869
24870 #. type: verbatim
24871 #: ../src/guestfs-actions.pod:3297
24872 #, no-wrap
24873 msgid ""
24874 " struct guestfs_application_list *\n"
24875 " guestfs_inspect_list_applications (guestfs_h *g,\n"
24876 "                                    const char *root);\n"
24877 "\n"
24878 msgstr ""
24879
24880 #. type: textblock
24881 #: ../src/guestfs-actions.pod:3303
24882 msgid ""
24883 "I<Note:> This call works differently from other parts of the inspection "
24884 "API.  You have to call C<guestfs_inspect_os>, then "
24885 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
24886 "this.  Listing applications is a significantly more difficult operation "
24887 "which requires access to the full filesystem.  Also note that unlike the "
24888 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
24889 "the libguestfs handle, this call actually reads parts of the mounted "
24890 "filesystems during the call."
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../src/guestfs-actions.pod:3393
24895 msgid ""
24896 "This function returns a C<struct guestfs_application_list *>, or NULL if "
24897 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
24898 "after use>."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../src/guestfs-actions.pod:3397
24903 msgid "(Added in 1.7.8)"
24904 msgstr ""
24905
24906 #. type: =head2
24907 #: ../src/guestfs-actions.pod:3399
24908 msgid "guestfs_inspect_os"
24909 msgstr ""
24910
24911 #. type: verbatim
24912 #: ../src/guestfs-actions.pod:3401
24913 #, no-wrap
24914 msgid ""
24915 " char **\n"
24916 " guestfs_inspect_os (guestfs_h *g);\n"
24917 "\n"
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../src/guestfs-actions.pod:3417
24922 msgid ""
24923 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
24924 "functions in order to query further information about each operating system, "
24925 "such as the name and version."
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../src/guestfs-actions.pod:3422
24930 msgid ""
24931 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
24932 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
24933 "the contents.  This should be called with no disks currently mounted.  The "
24934 "function may also use Augeas, so any existing Augeas handle will be closed."
24935 msgstr ""
24936
24937 #. type: textblock
24938 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:3847
24939 msgid "See also C<guestfs_list_filesystems>."
24940 msgstr ""
24941
24942 #. type: =head2
24943 #: ../src/guestfs-actions.pod:3442
24944 msgid "guestfs_is_blockdev"
24945 msgstr ""
24946
24947 #. type: verbatim
24948 #: ../src/guestfs-actions.pod:3444
24949 #, no-wrap
24950 msgid ""
24951 " int\n"
24952 " guestfs_is_blockdev (guestfs_h *g,\n"
24953 "                      const char *path);\n"
24954 "\n"
24955 msgstr ""
24956
24957 #. type: textblock
24958 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3541 ../src/guestfs-actions.pod:3597 ../src/guestfs-actions.pod:3612
24959 msgid "See also C<guestfs_stat>."
24960 msgstr ""
24961
24962 #. type: textblock
24963 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3616
24964 msgid "(Added in 1.5.10)"
24965 msgstr ""
24966
24967 #. type: =head2
24968 #: ../src/guestfs-actions.pod:3457
24969 msgid "guestfs_is_busy"
24970 msgstr ""
24971
24972 #. type: verbatim
24973 #: ../src/guestfs-actions.pod:3459
24974 #, no-wrap
24975 msgid ""
24976 " int\n"
24977 " guestfs_is_busy (guestfs_h *g);\n"
24978 "\n"
24979 msgstr ""
24980
24981 #. type: =head2
24982 #: ../src/guestfs-actions.pod:3471
24983 msgid "guestfs_is_chardev"
24984 msgstr ""
24985
24986 #. type: verbatim
24987 #: ../src/guestfs-actions.pod:3473
24988 #, no-wrap
24989 msgid ""
24990 " int\n"
24991 " guestfs_is_chardev (guestfs_h *g,\n"
24992 "                     const char *path);\n"
24993 "\n"
24994 msgstr ""
24995
24996 #. type: =head2
24997 #: ../src/guestfs-actions.pod:3486
24998 msgid "guestfs_is_config"
24999 msgstr ""
25000
25001 #. type: verbatim
25002 #: ../src/guestfs-actions.pod:3488
25003 #, no-wrap
25004 msgid ""
25005 " int\n"
25006 " guestfs_is_config (guestfs_h *g);\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: =head2
25011 #: ../src/guestfs-actions.pod:3500
25012 msgid "guestfs_is_dir"
25013 msgstr ""
25014
25015 #. type: verbatim
25016 #: ../src/guestfs-actions.pod:3502
25017 #, no-wrap
25018 msgid ""
25019 " int\n"
25020 " guestfs_is_dir (guestfs_h *g,\n"
25021 "                 const char *path);\n"
25022 "\n"
25023 msgstr ""
25024
25025 #. type: =head2
25026 #: ../src/guestfs-actions.pod:3516
25027 msgid "guestfs_is_fifo"
25028 msgstr ""
25029
25030 #. type: verbatim
25031 #: ../src/guestfs-actions.pod:3518
25032 #, no-wrap
25033 msgid ""
25034 " int\n"
25035 " guestfs_is_fifo (guestfs_h *g,\n"
25036 "                  const char *path);\n"
25037 "\n"
25038 msgstr ""
25039
25040 #. type: =head2
25041 #: ../src/guestfs-actions.pod:3531
25042 msgid "guestfs_is_file"
25043 msgstr ""
25044
25045 #. type: verbatim
25046 #: ../src/guestfs-actions.pod:3533
25047 #, no-wrap
25048 msgid ""
25049 " int\n"
25050 " guestfs_is_file (guestfs_h *g,\n"
25051 "                  const char *path);\n"
25052 "\n"
25053 msgstr ""
25054
25055 #. type: =head2
25056 #: ../src/guestfs-actions.pod:3547
25057 msgid "guestfs_is_launching"
25058 msgstr ""
25059
25060 #. type: verbatim
25061 #: ../src/guestfs-actions.pod:3549
25062 #, no-wrap
25063 msgid ""
25064 " int\n"
25065 " guestfs_is_launching (guestfs_h *g);\n"
25066 "\n"
25067 msgstr ""
25068
25069 #. type: =head2
25070 #: ../src/guestfs-actions.pod:3561
25071 msgid "guestfs_is_lv"
25072 msgstr ""
25073
25074 #. type: verbatim
25075 #: ../src/guestfs-actions.pod:3563
25076 #, no-wrap
25077 msgid ""
25078 " int\n"
25079 " guestfs_is_lv (guestfs_h *g,\n"
25080 "                const char *device);\n"
25081 "\n"
25082 msgstr ""
25083
25084 #. type: =head2
25085 #: ../src/guestfs-actions.pod:3574
25086 msgid "guestfs_is_ready"
25087 msgstr ""
25088
25089 #. type: verbatim
25090 #: ../src/guestfs-actions.pod:3576
25091 #, no-wrap
25092 msgid ""
25093 " int\n"
25094 " guestfs_is_ready (guestfs_h *g);\n"
25095 "\n"
25096 msgstr ""
25097
25098 #. type: =head2
25099 #: ../src/guestfs-actions.pod:3588
25100 msgid "guestfs_is_socket"
25101 msgstr ""
25102
25103 #. type: verbatim
25104 #: ../src/guestfs-actions.pod:3590
25105 #, no-wrap
25106 msgid ""
25107 " int\n"
25108 " guestfs_is_socket (guestfs_h *g,\n"
25109 "                    const char *path);\n"
25110 "\n"
25111 msgstr ""
25112
25113 #. type: =head2
25114 #: ../src/guestfs-actions.pod:3603
25115 msgid "guestfs_is_symlink"
25116 msgstr ""
25117
25118 #. type: verbatim
25119 #: ../src/guestfs-actions.pod:3605
25120 #, no-wrap
25121 msgid ""
25122 " int\n"
25123 " guestfs_is_symlink (guestfs_h *g,\n"
25124 "                     const char *path);\n"
25125 "\n"
25126 msgstr ""
25127
25128 #. type: =head2
25129 #: ../src/guestfs-actions.pod:3618
25130 msgid "guestfs_is_zero"
25131 msgstr ""
25132
25133 #. type: verbatim
25134 #: ../src/guestfs-actions.pod:3620
25135 #, no-wrap
25136 msgid ""
25137 " int\n"
25138 " guestfs_is_zero (guestfs_h *g,\n"
25139 "                  const char *path);\n"
25140 "\n"
25141 msgstr ""
25142
25143 #. type: textblock
25144 #: ../src/guestfs-actions.pod:3629 ../src/guestfs-actions.pod:3643
25145 msgid "(Added in 1.11.8)"
25146 msgstr ""
25147
25148 #. type: =head2
25149 #: ../src/guestfs-actions.pod:3631
25150 msgid "guestfs_is_zero_device"
25151 msgstr ""
25152
25153 #. type: verbatim
25154 #: ../src/guestfs-actions.pod:3633
25155 #, no-wrap
25156 msgid ""
25157 " int\n"
25158 " guestfs_is_zero_device (guestfs_h *g,\n"
25159 "                         const char *device);\n"
25160 "\n"
25161 msgstr ""
25162
25163 #. type: =head2
25164 #: ../src/guestfs-actions.pod:3645
25165 msgid "guestfs_kill_subprocess"
25166 msgstr ""
25167
25168 #. type: verbatim
25169 #: ../src/guestfs-actions.pod:3647
25170 #, no-wrap
25171 msgid ""
25172 " int\n"
25173 " guestfs_kill_subprocess (guestfs_h *g);\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: =head2
25178 #: ../src/guestfs-actions.pod:3656
25179 msgid "guestfs_launch"
25180 msgstr ""
25181
25182 #. type: verbatim
25183 #: ../src/guestfs-actions.pod:3658
25184 #, no-wrap
25185 msgid ""
25186 " int\n"
25187 " guestfs_launch (guestfs_h *g);\n"
25188 "\n"
25189 msgstr ""
25190
25191 #. type: =head2
25192 #: ../src/guestfs-actions.pod:3676
25193 msgid "guestfs_lchown"
25194 msgstr ""
25195
25196 #. type: verbatim
25197 #: ../src/guestfs-actions.pod:3678
25198 #, no-wrap
25199 msgid ""
25200 " int\n"
25201 " guestfs_lchown (guestfs_h *g,\n"
25202 "                 int owner,\n"
25203 "                 int group,\n"
25204 "                 const char *path);\n"
25205 "\n"
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../src/guestfs-actions.pod:3684
25210 msgid ""
25211 "Change the file owner to C<owner> and group to C<group>.  This is like "
25212 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
25213 "changed, not the target."
25214 msgstr ""
25215
25216 #. type: =head2
25217 #: ../src/guestfs-actions.pod:3696
25218 msgid "guestfs_lgetxattr"
25219 msgstr ""
25220
25221 #. type: verbatim
25222 #: ../src/guestfs-actions.pod:3698
25223 #, no-wrap
25224 msgid ""
25225 " char *\n"
25226 " guestfs_lgetxattr (guestfs_h *g,\n"
25227 "                    const char *path,\n"
25228 "                    const char *name,\n"
25229 "                    size_t *size_r);\n"
25230 "\n"
25231 msgstr ""
25232
25233 #. type: textblock
25234 #: ../src/guestfs-actions.pod:3718
25235 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25236 msgstr ""
25237
25238 #. type: =head2
25239 #: ../src/guestfs-actions.pod:3726
25240 msgid "guestfs_lgetxattrs"
25241 msgstr ""
25242
25243 #. type: verbatim
25244 #: ../src/guestfs-actions.pod:3728
25245 #, no-wrap
25246 msgid ""
25247 " struct guestfs_xattr_list *\n"
25248 " guestfs_lgetxattrs (guestfs_h *g,\n"
25249 "                     const char *path);\n"
25250 "\n"
25251 msgstr ""
25252
25253 #. type: textblock
25254 #: ../src/guestfs-actions.pod:3732
25255 msgid ""
25256 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25257 "then it returns the extended attributes of the link itself."
25258 msgstr ""
25259
25260 #. type: =head2
25261 #: ../src/guestfs-actions.pod:3742
25262 msgid "guestfs_list_9p"
25263 msgstr ""
25264
25265 #. type: verbatim
25266 #: ../src/guestfs-actions.pod:3744
25267 #, no-wrap
25268 msgid ""
25269 " char **\n"
25270 " guestfs_list_9p (guestfs_h *g);\n"
25271 "\n"
25272 msgstr ""
25273
25274 #. type: =head2
25275 #: ../src/guestfs-actions.pod:3756
25276 msgid "guestfs_list_devices"
25277 msgstr ""
25278
25279 #. type: verbatim
25280 #: ../src/guestfs-actions.pod:3758
25281 #, no-wrap
25282 msgid ""
25283 " char **\n"
25284 " guestfs_list_devices (guestfs_h *g);\n"
25285 "\n"
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:3773
25290 msgid "guestfs_list_dm_devices"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:3775
25295 #, no-wrap
25296 msgid ""
25297 " char **\n"
25298 " guestfs_list_dm_devices (guestfs_h *g);\n"
25299 "\n"
25300 msgstr ""
25301
25302 #. type: textblock
25303 #: ../src/guestfs-actions.pod:3780
25304 msgid ""
25305 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25306 "previous call to C<guestfs_luks_open>."
25307 msgstr ""
25308
25309 #. type: textblock
25310 #: ../src/guestfs-actions.pod:3783
25311 msgid ""
25312 "Device mapper devices which correspond to logical volumes are I<not> "
25313 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25314 "volumes."
25315 msgstr ""
25316
25317 #. type: textblock
25318 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:5247
25319 msgid "(Added in 1.11.15)"
25320 msgstr ""
25321
25322 #. type: =head2
25323 #: ../src/guestfs-actions.pod:3793
25324 msgid "guestfs_list_filesystems"
25325 msgstr ""
25326
25327 #. type: verbatim
25328 #: ../src/guestfs-actions.pod:3795
25329 #, no-wrap
25330 msgid ""
25331 " char **\n"
25332 " guestfs_list_filesystems (guestfs_h *g);\n"
25333 "\n"
25334 msgstr ""
25335
25336 #. type: textblock
25337 #: ../src/guestfs-actions.pod:3815
25338 msgid ""
25339 "This command runs other libguestfs commands, which might include "
25340 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25341 "soon after launch and only when nothing is mounted."
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../src/guestfs-actions.pod:3819
25346 msgid ""
25347 "Not all of the filesystems returned will be mountable.  In particular, swap "
25348 "partitions are returned in the list.  Also this command does not check that "
25349 "each filesystem found is valid and mountable, and some filesystems might be "
25350 "mountable but require special options.  Filesystems may not all belong to a "
25351 "single logical operating system (use C<guestfs_inspect_os> to look for "
25352 "OSes)."
25353 msgstr ""
25354
25355 #. type: textblock
25356 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:5608
25357 msgid "(Added in 1.5.15)"
25358 msgstr ""
25359
25360 #. type: =head2
25361 #: ../src/guestfs-actions.pod:3835
25362 msgid "guestfs_list_partitions"
25363 msgstr ""
25364
25365 #. type: verbatim
25366 #: ../src/guestfs-actions.pod:3837
25367 #, no-wrap
25368 msgid ""
25369 " char **\n"
25370 " guestfs_list_partitions (guestfs_h *g);\n"
25371 "\n"
25372 msgstr ""
25373
25374 #. type: textblock
25375 #: ../src/guestfs-actions.pod:3844
25376 msgid ""
25377 "This does not return logical volumes.  For that you will need to call "
25378 "C<guestfs_lvs>."
25379 msgstr ""
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:3855
25383 msgid "guestfs_ll"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:3857
25388 #, no-wrap
25389 msgid ""
25390 " char *\n"
25391 " guestfs_ll (guestfs_h *g,\n"
25392 "             const char *directory);\n"
25393 "\n"
25394 msgstr ""
25395
25396 #. type: =head2
25397 #: ../src/guestfs-actions.pod:3872
25398 msgid "guestfs_ln"
25399 msgstr ""
25400
25401 #. type: verbatim
25402 #: ../src/guestfs-actions.pod:3874
25403 #, no-wrap
25404 msgid ""
25405 " int\n"
25406 " guestfs_ln (guestfs_h *g,\n"
25407 "             const char *target,\n"
25408 "             const char *linkname);\n"
25409 "\n"
25410 msgstr ""
25411
25412 #. type: =head2
25413 #: ../src/guestfs-actions.pod:3885
25414 msgid "guestfs_ln_f"
25415 msgstr ""
25416
25417 #. type: verbatim
25418 #: ../src/guestfs-actions.pod:3887
25419 #, no-wrap
25420 msgid ""
25421 " int\n"
25422 " guestfs_ln_f (guestfs_h *g,\n"
25423 "               const char *target,\n"
25424 "               const char *linkname);\n"
25425 "\n"
25426 msgstr ""
25427
25428 #. type: =head2
25429 #: ../src/guestfs-actions.pod:3899
25430 msgid "guestfs_ln_s"
25431 msgstr ""
25432
25433 #. type: verbatim
25434 #: ../src/guestfs-actions.pod:3901
25435 #, no-wrap
25436 msgid ""
25437 " int\n"
25438 " guestfs_ln_s (guestfs_h *g,\n"
25439 "               const char *target,\n"
25440 "               const char *linkname);\n"
25441 "\n"
25442 msgstr ""
25443
25444 #. type: =head2
25445 #: ../src/guestfs-actions.pod:3912
25446 msgid "guestfs_ln_sf"
25447 msgstr ""
25448
25449 #. type: verbatim
25450 #: ../src/guestfs-actions.pod:3914
25451 #, no-wrap
25452 msgid ""
25453 " int\n"
25454 " guestfs_ln_sf (guestfs_h *g,\n"
25455 "                const char *target,\n"
25456 "                const char *linkname);\n"
25457 "\n"
25458 msgstr ""
25459
25460 #. type: =head2
25461 #: ../src/guestfs-actions.pod:3926
25462 msgid "guestfs_lremovexattr"
25463 msgstr ""
25464
25465 #. type: verbatim
25466 #: ../src/guestfs-actions.pod:3928
25467 #, no-wrap
25468 msgid ""
25469 " int\n"
25470 " guestfs_lremovexattr (guestfs_h *g,\n"
25471 "                       const char *xattr,\n"
25472 "                       const char *path);\n"
25473 "\n"
25474 msgstr ""
25475
25476 #. type: textblock
25477 #: ../src/guestfs-actions.pod:3933
25478 msgid ""
25479 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25480 "link, then it removes an extended attribute of the link itself."
25481 msgstr ""
25482
25483 #. type: =head2
25484 #: ../src/guestfs-actions.pod:3941
25485 msgid "guestfs_ls"
25486 msgstr ""
25487
25488 #. type: verbatim
25489 #: ../src/guestfs-actions.pod:3943
25490 #, no-wrap
25491 msgid ""
25492 " char **\n"
25493 " guestfs_ls (guestfs_h *g,\n"
25494 "             const char *directory);\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: textblock
25499 #: ../src/guestfs-actions.pod:3951
25500 msgid ""
25501 "This command is mostly useful for interactive sessions.  Programs should "
25502 "probably use C<guestfs_readdir> instead."
25503 msgstr ""
25504
25505 #. type: =head2
25506 #: ../src/guestfs-actions.pod:3960
25507 msgid "guestfs_lsetxattr"
25508 msgstr ""
25509
25510 #. type: verbatim
25511 #: ../src/guestfs-actions.pod:3962
25512 #, no-wrap
25513 msgid ""
25514 " int\n"
25515 " guestfs_lsetxattr (guestfs_h *g,\n"
25516 "                    const char *xattr,\n"
25517 "                    const char *val,\n"
25518 "                    int vallen,\n"
25519 "                    const char *path);\n"
25520 "\n"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:3969
25525 msgid ""
25526 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25527 "then it sets an extended attribute of the link itself."
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:3977
25532 msgid "guestfs_lstat"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:3979
25537 #, no-wrap
25538 msgid ""
25539 " struct guestfs_stat *\n"
25540 " guestfs_lstat (guestfs_h *g,\n"
25541 "                const char *path);\n"
25542 "\n"
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../src/guestfs-actions.pod:3985
25547 msgid ""
25548 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25549 "link, then the link is stat-ed, not the file it refers to."
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
25554 msgid ""
25555 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25556 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25557 msgstr ""
25558
25559 #. type: textblock
25560 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:6770 ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:7169
25561 msgid "(Added in 0.9.2)"
25562 msgstr ""
25563
25564 #. type: =head2
25565 #: ../src/guestfs-actions.pod:3997
25566 msgid "guestfs_lstatlist"
25567 msgstr ""
25568
25569 #. type: verbatim
25570 #: ../src/guestfs-actions.pod:3999
25571 #, no-wrap
25572 msgid ""
25573 " struct guestfs_stat_list *\n"
25574 " guestfs_lstatlist (guestfs_h *g,\n"
25575 "                    const char *path,\n"
25576 "                    char *const *names);\n"
25577 "\n"
25578 msgstr ""
25579
25580 #. type: textblock
25581 #: ../src/guestfs-actions.pod:4004
25582 msgid ""
25583 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25584 "files, where all files are in the directory C<path>.  C<names> is the list "
25585 "of files from this directory."
25586 msgstr ""
25587
25588 #. type: textblock
25589 #: ../src/guestfs-actions.pod:4013
25590 msgid ""
25591 "This call is intended for programs that want to efficiently list a directory "
25592 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25593 "for a similarly efficient call for getting extended attributes.  Very long "
25594 "directory listings might cause the protocol message size to be exceeded, "
25595 "causing this call to fail.  The caller must split up such requests into "
25596 "smaller groups of names."
25597 msgstr ""
25598
25599 #. type: textblock
25600 #: ../src/guestfs-actions.pod:4021
25601 msgid ""
25602 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25603 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25604 msgstr ""
25605
25606 #. type: =head2
25607 #: ../src/guestfs-actions.pod:4027
25608 msgid "guestfs_luks_add_key"
25609 msgstr ""
25610
25611 #. type: verbatim
25612 #: ../src/guestfs-actions.pod:4029
25613 #, no-wrap
25614 msgid ""
25615 " int\n"
25616 " guestfs_luks_add_key (guestfs_h *g,\n"
25617 "                       const char *device,\n"
25618 "                       const char *key,\n"
25619 "                       const char *newkey,\n"
25620 "                       int keyslot);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: textblock
25625 #: ../src/guestfs-actions.pod:4041
25626 msgid ""
25627 "Note that if C<keyslot> already contains a key, then this command will "
25628 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25629 msgstr ""
25630
25631 #. type: textblock
25632 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087 ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130 ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4184
25633 msgid ""
25634 "This function takes a key or passphrase parameter which could contain "
25635 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25636 "information."
25637 msgstr ""
25638
25639 #. type: textblock
25640 #: ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4091 ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4134
25641 msgid "(Added in 1.5.2)"
25642 msgstr ""
25643
25644 #. type: =head2
25645 #: ../src/guestfs-actions.pod:4053
25646 msgid "guestfs_luks_close"
25647 msgstr ""
25648
25649 #. type: verbatim
25650 #: ../src/guestfs-actions.pod:4055
25651 #, no-wrap
25652 msgid ""
25653 " int\n"
25654 " guestfs_luks_close (guestfs_h *g,\n"
25655 "                     const char *device);\n"
25656 "\n"
25657 msgstr ""
25658
25659 #. type: textblock
25660 #: ../src/guestfs-actions.pod:4059
25661 msgid ""
25662 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25663 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25664 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25665 "underlying block device."
25666 msgstr ""
25667
25668 #. type: textblock
25669 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4238 ../src/guestfs-actions.pod:4286
25670 msgid "(Added in 1.5.1)"
25671 msgstr ""
25672
25673 #. type: =head2
25674 #: ../src/guestfs-actions.pod:4069
25675 msgid "guestfs_luks_format"
25676 msgstr ""
25677
25678 #. type: verbatim
25679 #: ../src/guestfs-actions.pod:4071
25680 #, no-wrap
25681 msgid ""
25682 " int\n"
25683 " guestfs_luks_format (guestfs_h *g,\n"
25684 "                      const char *device,\n"
25685 "                      const char *key,\n"
25686 "                      int keyslot);\n"
25687 "\n"
25688 msgstr ""
25689
25690 #. type: =head2
25691 #: ../src/guestfs-actions.pod:4093
25692 msgid "guestfs_luks_format_cipher"
25693 msgstr ""
25694
25695 #. type: verbatim
25696 #: ../src/guestfs-actions.pod:4095
25697 #, no-wrap
25698 msgid ""
25699 " int\n"
25700 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25701 "                             const char *device,\n"
25702 "                             const char *key,\n"
25703 "                             int keyslot,\n"
25704 "                             const char *cipher);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:4102
25710 msgid ""
25711 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25712 "set the C<cipher> used."
25713 msgstr ""
25714
25715 #. type: =head2
25716 #: ../src/guestfs-actions.pod:4116
25717 msgid "guestfs_luks_kill_slot"
25718 msgstr ""
25719
25720 #. type: verbatim
25721 #: ../src/guestfs-actions.pod:4118
25722 #, no-wrap
25723 msgid ""
25724 " int\n"
25725 " guestfs_luks_kill_slot (guestfs_h *g,\n"
25726 "                         const char *device,\n"
25727 "                         const char *key,\n"
25728 "                         int keyslot);\n"
25729 "\n"
25730 msgstr ""
25731
25732 #. type: =head2
25733 #: ../src/guestfs-actions.pod:4136
25734 msgid "guestfs_luks_open"
25735 msgstr ""
25736
25737 #. type: verbatim
25738 #: ../src/guestfs-actions.pod:4138
25739 #, no-wrap
25740 msgid ""
25741 " int\n"
25742 " guestfs_luks_open (guestfs_h *g,\n"
25743 "                    const char *device,\n"
25744 "                    const char *key,\n"
25745 "                    const char *mapname);\n"
25746 "\n"
25747 msgstr ""
25748
25749 #. type: textblock
25750 #: ../src/guestfs-actions.pod:4156
25751 msgid ""
25752 "If this block device contains LVM volume groups, then calling "
25753 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
25754 "visible."
25755 msgstr ""
25756
25757 #. type: textblock
25758 #: ../src/guestfs-actions.pod:4160
25759 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
25760 msgstr ""
25761
25762 #. type: =head2
25763 #: ../src/guestfs-actions.pod:4171
25764 msgid "guestfs_luks_open_ro"
25765 msgstr ""
25766
25767 #. type: verbatim
25768 #: ../src/guestfs-actions.pod:4173
25769 #, no-wrap
25770 msgid ""
25771 " int\n"
25772 " guestfs_luks_open_ro (guestfs_h *g,\n"
25773 "                       const char *device,\n"
25774 "                       const char *key,\n"
25775 "                       const char *mapname);\n"
25776 "\n"
25777 msgstr ""
25778
25779 #. type: textblock
25780 #: ../src/guestfs-actions.pod:4179
25781 msgid ""
25782 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
25783 "created."
25784 msgstr ""
25785
25786 #. type: =head2
25787 #: ../src/guestfs-actions.pod:4190
25788 msgid "guestfs_lvcreate"
25789 msgstr ""
25790
25791 #. type: verbatim
25792 #: ../src/guestfs-actions.pod:4192
25793 #, no-wrap
25794 msgid ""
25795 " int\n"
25796 " guestfs_lvcreate (guestfs_h *g,\n"
25797 "                   const char *logvol,\n"
25798 "                   const char *volgroup,\n"
25799 "                   int mbytes);\n"
25800 "\n"
25801 msgstr ""
25802
25803 #. type: =head2
25804 #: ../src/guestfs-actions.pod:4205
25805 msgid "guestfs_lvm_canonical_lv_name"
25806 msgstr ""
25807
25808 #. type: verbatim
25809 #: ../src/guestfs-actions.pod:4207
25810 #, no-wrap
25811 msgid ""
25812 " char *\n"
25813 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
25814 "                                const char *lvname);\n"
25815 "\n"
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../src/guestfs-actions.pod:4218
25820 msgid "See also C<guestfs_is_lv>."
25821 msgstr ""
25822
25823 #. type: textblock
25824 #: ../src/guestfs-actions.pod:4223
25825 msgid "(Added in 1.5.24)"
25826 msgstr ""
25827
25828 #. type: =head2
25829 #: ../src/guestfs-actions.pod:4225
25830 msgid "guestfs_lvm_clear_filter"
25831 msgstr ""
25832
25833 #. type: verbatim
25834 #: ../src/guestfs-actions.pod:4227
25835 #, no-wrap
25836 msgid ""
25837 " int\n"
25838 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
25839 "\n"
25840 msgstr ""
25841
25842 #. type: textblock
25843 #: ../src/guestfs-actions.pod:4230
25844 msgid ""
25845 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
25846 "see every block device."
25847 msgstr ""
25848
25849 #. type: =head2
25850 #: ../src/guestfs-actions.pod:4240
25851 msgid "guestfs_lvm_remove_all"
25852 msgstr ""
25853
25854 #. type: verbatim
25855 #: ../src/guestfs-actions.pod:4242
25856 #, no-wrap
25857 msgid ""
25858 " int\n"
25859 " guestfs_lvm_remove_all (guestfs_h *g);\n"
25860 "\n"
25861 msgstr ""
25862
25863 #. type: =head2
25864 #: ../src/guestfs-actions.pod:4255
25865 msgid "guestfs_lvm_set_filter"
25866 msgstr ""
25867
25868 #. type: verbatim
25869 #: ../src/guestfs-actions.pod:4257
25870 #, no-wrap
25871 msgid ""
25872 " int\n"
25873 " guestfs_lvm_set_filter (guestfs_h *g,\n"
25874 "                         char *const *devices);\n"
25875 "\n"
25876 msgstr ""
25877
25878 #. type: =head2
25879 #: ../src/guestfs-actions.pod:4288
25880 msgid "guestfs_lvremove"
25881 msgstr ""
25882
25883 #. type: verbatim
25884 #: ../src/guestfs-actions.pod:4290
25885 #, no-wrap
25886 msgid ""
25887 " int\n"
25888 " guestfs_lvremove (guestfs_h *g,\n"
25889 "                   const char *device);\n"
25890 "\n"
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:5705 ../src/guestfs-actions.pod:7539
25895 msgid "(Added in 1.0.13)"
25896 msgstr ""
25897
25898 #. type: =head2
25899 #: ../src/guestfs-actions.pod:4304
25900 msgid "guestfs_lvrename"
25901 msgstr ""
25902
25903 #. type: verbatim
25904 #: ../src/guestfs-actions.pod:4306
25905 #, no-wrap
25906 msgid ""
25907 " int\n"
25908 " guestfs_lvrename (guestfs_h *g,\n"
25909 "                   const char *logvol,\n"
25910 "                   const char *newlogvol);\n"
25911 "\n"
25912 msgstr ""
25913
25914 #. type: textblock
25915 #: ../src/guestfs-actions.pod:4315 ../src/guestfs-actions.pod:7552
25916 msgid "(Added in 1.0.83)"
25917 msgstr ""
25918
25919 #. type: =head2
25920 #: ../src/guestfs-actions.pod:4317
25921 msgid "guestfs_lvresize"
25922 msgstr ""
25923
25924 #. type: verbatim
25925 #: ../src/guestfs-actions.pod:4319
25926 #, no-wrap
25927 msgid ""
25928 " int\n"
25929 " guestfs_lvresize (guestfs_h *g,\n"
25930 "                   const char *device,\n"
25931 "                   int mbytes);\n"
25932 "\n"
25933 msgstr ""
25934
25935 #. type: =head2
25936 #: ../src/guestfs-actions.pod:4332
25937 msgid "guestfs_lvresize_free"
25938 msgstr ""
25939
25940 #. type: verbatim
25941 #: ../src/guestfs-actions.pod:4334
25942 #, no-wrap
25943 msgid ""
25944 " int\n"
25945 " guestfs_lvresize_free (guestfs_h *g,\n"
25946 "                        const char *lv,\n"
25947 "                        int percent);\n"
25948 "\n"
25949 msgstr ""
25950
25951 #. type: textblock
25952 #: ../src/guestfs-actions.pod:4347
25953 msgid "(Added in 1.3.3)"
25954 msgstr ""
25955
25956 #. type: =head2
25957 #: ../src/guestfs-actions.pod:4349
25958 msgid "guestfs_lvs"
25959 msgstr ""
25960
25961 #. type: verbatim
25962 #: ../src/guestfs-actions.pod:4351
25963 #, no-wrap
25964 msgid ""
25965 " char **\n"
25966 " guestfs_lvs (guestfs_h *g);\n"
25967 "\n"
25968 msgstr ""
25969
25970 #. type: textblock
25971 #: ../src/guestfs-actions.pod:4360
25972 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
25973 msgstr ""
25974
25975 #. type: =head2
25976 #: ../src/guestfs-actions.pod:4368
25977 msgid "guestfs_lvs_full"
25978 msgstr ""
25979
25980 #. type: verbatim
25981 #: ../src/guestfs-actions.pod:4370
25982 #, no-wrap
25983 msgid ""
25984 " struct guestfs_lvm_lv_list *\n"
25985 " guestfs_lvs_full (guestfs_h *g);\n"
25986 "\n"
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../src/guestfs-actions.pod:4376
25991 msgid ""
25992 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
25993 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
25994 "use>."
25995 msgstr ""
25996
25997 #. type: =head2
25998 #: ../src/guestfs-actions.pod:4382
25999 msgid "guestfs_lvuuid"
26000 msgstr ""
26001
26002 #. type: verbatim
26003 #: ../src/guestfs-actions.pod:4384
26004 #, no-wrap
26005 msgid ""
26006 " char *\n"
26007 " guestfs_lvuuid (guestfs_h *g,\n"
26008 "                 const char *device);\n"
26009 "\n"
26010 msgstr ""
26011
26012 #. type: =head2
26013 #: ../src/guestfs-actions.pod:4395
26014 msgid "guestfs_lxattrlist"
26015 msgstr ""
26016
26017 #. type: verbatim
26018 #: ../src/guestfs-actions.pod:4397
26019 #, no-wrap
26020 msgid ""
26021 " struct guestfs_xattr_list *\n"
26022 " guestfs_lxattrlist (guestfs_h *g,\n"
26023 "                     const char *path,\n"
26024 "                     char *const *names);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:4416
26030 msgid ""
26031 "This call is intended for programs that want to efficiently list a directory "
26032 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
26033 "a similarly efficient call for getting standard stats.  Very long directory "
26034 "listings might cause the protocol message size to be exceeded, causing this "
26035 "call to fail.  The caller must split up such requests into smaller groups of "
26036 "names."
26037 msgstr ""
26038
26039 #. type: =head2
26040 #: ../src/guestfs-actions.pod:4430
26041 msgid "guestfs_mkdir"
26042 msgstr ""
26043
26044 #. type: verbatim
26045 #: ../src/guestfs-actions.pod:4432
26046 #, no-wrap
26047 msgid ""
26048 " int\n"
26049 " guestfs_mkdir (guestfs_h *g,\n"
26050 "                const char *path);\n"
26051 "\n"
26052 msgstr ""
26053
26054 #. type: =head2
26055 #: ../src/guestfs-actions.pod:4442
26056 msgid "guestfs_mkdir_mode"
26057 msgstr ""
26058
26059 #. type: verbatim
26060 #: ../src/guestfs-actions.pod:4444
26061 #, no-wrap
26062 msgid ""
26063 " int\n"
26064 " guestfs_mkdir_mode (guestfs_h *g,\n"
26065 "                     const char *path,\n"
26066 "                     int mode);\n"
26067 "\n"
26068 msgstr ""
26069
26070 #. type: textblock
26071 #: ../src/guestfs-actions.pod:4456
26072 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
26073 msgstr ""
26074
26075 #. type: =head2
26076 #: ../src/guestfs-actions.pod:4462
26077 msgid "guestfs_mkdir_p"
26078 msgstr ""
26079
26080 #. type: verbatim
26081 #: ../src/guestfs-actions.pod:4464
26082 #, no-wrap
26083 msgid ""
26084 " int\n"
26085 " guestfs_mkdir_p (guestfs_h *g,\n"
26086 "                  const char *path);\n"
26087 "\n"
26088 msgstr ""
26089
26090 #. type: =head2
26091 #: ../src/guestfs-actions.pod:4475
26092 msgid "guestfs_mkdtemp"
26093 msgstr ""
26094
26095 #. type: verbatim
26096 #: ../src/guestfs-actions.pod:4477
26097 #, no-wrap
26098 msgid ""
26099 " char *\n"
26100 " guestfs_mkdtemp (guestfs_h *g,\n"
26101 "                  const char *template);\n"
26102 "\n"
26103 msgstr ""
26104
26105 #. type: =head2
26106 #: ../src/guestfs-actions.pod:4505
26107 msgid "guestfs_mke2fs_J"
26108 msgstr ""
26109
26110 #. type: verbatim
26111 #: ../src/guestfs-actions.pod:4507
26112 #, no-wrap
26113 msgid ""
26114 " int\n"
26115 " guestfs_mke2fs_J (guestfs_h *g,\n"
26116 "                   const char *fstype,\n"
26117 "                   int blocksize,\n"
26118 "                   const char *device,\n"
26119 "                   const char *journal);\n"
26120 "\n"
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../src/guestfs-actions.pod:4520
26125 msgid "See also C<guestfs_mke2journal>."
26126 msgstr ""
26127
26128 #. type: textblock
26129 #: ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4542 ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4604 ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4940
26130 msgid "(Added in 1.0.68)"
26131 msgstr ""
26132
26133 #. type: =head2
26134 #: ../src/guestfs-actions.pod:4526
26135 msgid "guestfs_mke2fs_JL"
26136 msgstr ""
26137
26138 #. type: verbatim
26139 #: ../src/guestfs-actions.pod:4528
26140 #, no-wrap
26141 msgid ""
26142 " int\n"
26143 " guestfs_mke2fs_JL (guestfs_h *g,\n"
26144 "                    const char *fstype,\n"
26145 "                    int blocksize,\n"
26146 "                    const char *device,\n"
26147 "                    const char *label);\n"
26148 "\n"
26149 msgstr ""
26150
26151 #. type: textblock
26152 #: ../src/guestfs-actions.pod:4538
26153 msgid "See also C<guestfs_mke2journal_L>."
26154 msgstr ""
26155
26156 #. type: =head2
26157 #: ../src/guestfs-actions.pod:4544
26158 msgid "guestfs_mke2fs_JU"
26159 msgstr ""
26160
26161 #. type: verbatim
26162 #: ../src/guestfs-actions.pod:4546
26163 #, no-wrap
26164 msgid ""
26165 " int\n"
26166 " guestfs_mke2fs_JU (guestfs_h *g,\n"
26167 "                    const char *fstype,\n"
26168 "                    int blocksize,\n"
26169 "                    const char *device,\n"
26170 "                    const char *uuid);\n"
26171 "\n"
26172 msgstr ""
26173
26174 #. type: textblock
26175 #: ../src/guestfs-actions.pod:4556
26176 msgid "See also C<guestfs_mke2journal_U>."
26177 msgstr ""
26178
26179 #. type: =head2
26180 #: ../src/guestfs-actions.pod:4562
26181 msgid "guestfs_mke2journal"
26182 msgstr ""
26183
26184 #. type: verbatim
26185 #: ../src/guestfs-actions.pod:4564
26186 #, no-wrap
26187 msgid ""
26188 " int\n"
26189 " guestfs_mke2journal (guestfs_h *g,\n"
26190 "                      int blocksize,\n"
26191 "                      const char *device);\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: =head2
26196 #: ../src/guestfs-actions.pod:4578
26197 msgid "guestfs_mke2journal_L"
26198 msgstr ""
26199
26200 #. type: verbatim
26201 #: ../src/guestfs-actions.pod:4580
26202 #, no-wrap
26203 msgid ""
26204 " int\n"
26205 " guestfs_mke2journal_L (guestfs_h *g,\n"
26206 "                        int blocksize,\n"
26207 "                        const char *label,\n"
26208 "                        const char *device);\n"
26209 "\n"
26210 msgstr ""
26211
26212 #. type: =head2
26213 #: ../src/guestfs-actions.pod:4592
26214 msgid "guestfs_mke2journal_U"
26215 msgstr ""
26216
26217 #. type: verbatim
26218 #: ../src/guestfs-actions.pod:4594
26219 #, no-wrap
26220 msgid ""
26221 " int\n"
26222 " guestfs_mke2journal_U (guestfs_h *g,\n"
26223 "                        int blocksize,\n"
26224 "                        const char *uuid,\n"
26225 "                        const char *device);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: =head2
26230 #: ../src/guestfs-actions.pod:4606
26231 msgid "guestfs_mkfifo"
26232 msgstr ""
26233
26234 #. type: verbatim
26235 #: ../src/guestfs-actions.pod:4608
26236 #, no-wrap
26237 msgid ""
26238 " int\n"
26239 " guestfs_mkfifo (guestfs_h *g,\n"
26240 "                 int mode,\n"
26241 "                 const char *path);\n"
26242 "\n"
26243 msgstr ""
26244
26245 #. type: textblock
26246 #: ../src/guestfs-actions.pod:4613
26247 msgid ""
26248 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26249 "is just a convenient wrapper around C<guestfs_mknod>."
26250 msgstr ""
26251
26252 #. type: =head2
26253 #: ../src/guestfs-actions.pod:4623
26254 msgid "guestfs_mkfs"
26255 msgstr ""
26256
26257 #. type: verbatim
26258 #: ../src/guestfs-actions.pod:4625
26259 #, no-wrap
26260 msgid ""
26261 " int\n"
26262 " guestfs_mkfs (guestfs_h *g,\n"
26263 "               const char *fstype,\n"
26264 "               const char *device);\n"
26265 "\n"
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../src/guestfs-actions.pod:4638
26270 msgid "guestfs_mkfs_b"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../src/guestfs-actions.pod:4640
26275 #, no-wrap
26276 msgid ""
26277 " int\n"
26278 " guestfs_mkfs_b (guestfs_h *g,\n"
26279 "                 const char *fstype,\n"
26280 "                 int blocksize,\n"
26281 "                 const char *device);\n"
26282 "\n"
26283 msgstr ""
26284
26285 #. type: textblock
26286 #: ../src/guestfs-actions.pod:4646
26287 msgid ""
26288 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
26289 "call instead."
26290 msgstr ""
26291
26292 #. type: textblock
26293 #: ../src/guestfs-actions.pod:4653
26294 msgid ""
26295 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26296 "block size of the resulting filesystem.  Supported block sizes depend on the "
26297 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26298 msgstr ""
26299
26300 #. type: =head2
26301 #: ../src/guestfs-actions.pod:4665
26302 msgid "guestfs_mkfs_opts"
26303 msgstr ""
26304
26305 #. type: verbatim
26306 #: ../src/guestfs-actions.pod:4667
26307 #, no-wrap
26308 msgid ""
26309 " int\n"
26310 " guestfs_mkfs_opts (guestfs_h *g,\n"
26311 "                    const char *fstype,\n"
26312 "                    const char *device,\n"
26313 "                    ...);\n"
26314 "\n"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:4678
26319 #, no-wrap
26320 msgid ""
26321 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26322 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26323 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26324 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../src/guestfs-actions.pod:4726
26330 msgid "(Added in 1.7.19)"
26331 msgstr ""
26332
26333 #. type: =head2
26334 #: ../src/guestfs-actions.pod:4728
26335 msgid "guestfs_mkfs_opts_va"
26336 msgstr ""
26337
26338 #. type: verbatim
26339 #: ../src/guestfs-actions.pod:4730
26340 #, no-wrap
26341 msgid ""
26342 " int\n"
26343 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26344 "                       const char *fstype,\n"
26345 "                       const char *device,\n"
26346 "                       va_list args);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: textblock
26351 #: ../src/guestfs-actions.pod:4736
26352 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26353 msgstr ""
26354
26355 #. type: =head2
26356 #: ../src/guestfs-actions.pod:4740
26357 msgid "guestfs_mkfs_opts_argv"
26358 msgstr ""
26359
26360 #. type: verbatim
26361 #: ../src/guestfs-actions.pod:4742
26362 #, no-wrap
26363 msgid ""
26364 " int\n"
26365 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26366 "                         const char *fstype,\n"
26367 "                         const char *device,\n"
26368 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26369 "\n"
26370 msgstr ""
26371
26372 #. type: textblock
26373 #: ../src/guestfs-actions.pod:4748
26374 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26375 msgstr ""
26376
26377 #. type: =head2
26378 #: ../src/guestfs-actions.pod:4752
26379 msgid "guestfs_mkmountpoint"
26380 msgstr ""
26381
26382 #. type: verbatim
26383 #: ../src/guestfs-actions.pod:4754
26384 #, no-wrap
26385 msgid ""
26386 " int\n"
26387 " guestfs_mkmountpoint (guestfs_h *g,\n"
26388 "                       const char *exemptpath);\n"
26389 "\n"
26390 msgstr ""
26391
26392 #. type: textblock
26393 #: ../src/guestfs-actions.pod:4758
26394 msgid ""
26395 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26396 "that can be used to create extra mountpoints before mounting the first "
26397 "filesystem."
26398 msgstr ""
26399
26400 #. type: textblock
26401 #: ../src/guestfs-actions.pod:4782
26402 msgid ""
26403 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26404 "may get unexpected errors if you try to mix these calls.  It is safest to "
26405 "manually unmount filesystems and remove mountpoints after use."
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../src/guestfs-actions.pod:4786
26410 msgid ""
26411 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26412 "first, so for this to work for manual mountpoints, you must ensure that the "
26413 "innermost mountpoints have the longest pathnames, as in the example code "
26414 "above."
26415 msgstr ""
26416
26417 #. type: textblock
26418 #: ../src/guestfs-actions.pod:4793
26419 msgid ""
26420 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26421 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26422 "can also trigger these issues."
26423 msgstr ""
26424
26425 #. type: textblock
26426 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:5115 ../src/guestfs-actions.pod:6125
26427 msgid "(Added in 1.0.62)"
26428 msgstr ""
26429
26430 #. type: =head2
26431 #: ../src/guestfs-actions.pod:4801
26432 msgid "guestfs_mknod"
26433 msgstr ""
26434
26435 #. type: verbatim
26436 #: ../src/guestfs-actions.pod:4803
26437 #, no-wrap
26438 msgid ""
26439 " int\n"
26440 " guestfs_mknod (guestfs_h *g,\n"
26441 "                int mode,\n"
26442 "                int devmajor,\n"
26443 "                int devminor,\n"
26444 "                const char *path);\n"
26445 "\n"
26446 msgstr ""
26447
26448 #. type: textblock
26449 #: ../src/guestfs-actions.pod:4818
26450 msgid ""
26451 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26452 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26453 "regular file).  These constants are available in the standard Linux header "
26454 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26455 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26456 "the appropriate constant for you."
26457 msgstr ""
26458
26459 #. type: =head2
26460 #: ../src/guestfs-actions.pod:4832
26461 msgid "guestfs_mknod_b"
26462 msgstr ""
26463
26464 #. type: verbatim
26465 #: ../src/guestfs-actions.pod:4834
26466 #, no-wrap
26467 msgid ""
26468 " int\n"
26469 " guestfs_mknod_b (guestfs_h *g,\n"
26470 "                  int mode,\n"
26471 "                  int devmajor,\n"
26472 "                  int devminor,\n"
26473 "                  const char *path);\n"
26474 "\n"
26475 msgstr ""
26476
26477 #. type: textblock
26478 #: ../src/guestfs-actions.pod:4841
26479 msgid ""
26480 "This call creates a block device node called C<path> with mode C<mode> and "
26481 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26482 "wrapper around C<guestfs_mknod>."
26483 msgstr ""
26484
26485 #. type: =head2
26486 #: ../src/guestfs-actions.pod:4851
26487 msgid "guestfs_mknod_c"
26488 msgstr ""
26489
26490 #. type: verbatim
26491 #: ../src/guestfs-actions.pod:4853
26492 #, no-wrap
26493 msgid ""
26494 " int\n"
26495 " guestfs_mknod_c (guestfs_h *g,\n"
26496 "                  int mode,\n"
26497 "                  int devmajor,\n"
26498 "                  int devminor,\n"
26499 "                  const char *path);\n"
26500 "\n"
26501 msgstr ""
26502
26503 #. type: textblock
26504 #: ../src/guestfs-actions.pod:4860
26505 msgid ""
26506 "This call creates a char device node called C<path> with mode C<mode> and "
26507 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26508 "wrapper around C<guestfs_mknod>."
26509 msgstr ""
26510
26511 #. type: =head2
26512 #: ../src/guestfs-actions.pod:4870
26513 msgid "guestfs_mkswap"
26514 msgstr ""
26515
26516 #. type: verbatim
26517 #: ../src/guestfs-actions.pod:4872
26518 #, no-wrap
26519 msgid ""
26520 " int\n"
26521 " guestfs_mkswap (guestfs_h *g,\n"
26522 "                 const char *device);\n"
26523 "\n"
26524 msgstr ""
26525
26526 #. type: =head2
26527 #: ../src/guestfs-actions.pod:4882
26528 msgid "guestfs_mkswap_L"
26529 msgstr ""
26530
26531 #. type: verbatim
26532 #: ../src/guestfs-actions.pod:4884
26533 #, no-wrap
26534 msgid ""
26535 " int\n"
26536 " guestfs_mkswap_L (guestfs_h *g,\n"
26537 "                   const char *label,\n"
26538 "                   const char *device);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:4899
26544 msgid "guestfs_mkswap_U"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:4901
26549 #, no-wrap
26550 msgid ""
26551 " int\n"
26552 " guestfs_mkswap_U (guestfs_h *g,\n"
26553 "                   const char *uuid,\n"
26554 "                   const char *device);\n"
26555 "\n"
26556 msgstr ""
26557
26558 #. type: =head2
26559 #: ../src/guestfs-actions.pod:4912
26560 msgid "guestfs_mkswap_file"
26561 msgstr ""
26562
26563 #. type: verbatim
26564 #: ../src/guestfs-actions.pod:4914
26565 #, no-wrap
26566 msgid ""
26567 " int\n"
26568 " guestfs_mkswap_file (guestfs_h *g,\n"
26569 "                      const char *path);\n"
26570 "\n"
26571 msgstr ""
26572
26573 #. type: textblock
26574 #: ../src/guestfs-actions.pod:4920
26575 msgid ""
26576 "This command just writes a swap file signature to an existing file.  To "
26577 "create the file itself, use something like C<guestfs_fallocate>."
26578 msgstr ""
26579
26580 #. type: =head2
26581 #: ../src/guestfs-actions.pod:4927
26582 msgid "guestfs_modprobe"
26583 msgstr ""
26584
26585 #. type: verbatim
26586 #: ../src/guestfs-actions.pod:4929
26587 #, no-wrap
26588 msgid ""
26589 " int\n"
26590 " guestfs_modprobe (guestfs_h *g,\n"
26591 "                   const char *modulename);\n"
26592 "\n"
26593 msgstr ""
26594
26595 #. type: =head2
26596 #: ../src/guestfs-actions.pod:4942
26597 msgid "guestfs_mount"
26598 msgstr ""
26599
26600 #. type: verbatim
26601 #: ../src/guestfs-actions.pod:4944
26602 #, no-wrap
26603 msgid ""
26604 " int\n"
26605 " guestfs_mount (guestfs_h *g,\n"
26606 "                const char *device,\n"
26607 "                const char *mountpoint);\n"
26608 "\n"
26609 msgstr ""
26610
26611 #. type: textblock
26612 #: ../src/guestfs-actions.pod:4949
26613 msgid ""
26614 "I<This function is deprecated.> In new code, use the "
26615 "L</guestfs_mount_options> call instead."
26616 msgstr ""
26617
26618 #. type: textblock
26619 #: ../src/guestfs-actions.pod:4970
26620 msgid ""
26621 "B<Important note:> When you use this call, the filesystem options C<sync> "
26622 "and C<noatime> are set implicitly.  This was originally done because we "
26623 "thought it would improve reliability, but it turns out that I<-o sync> has a "
26624 "very large negative performance impact and negligible effect on "
26625 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
26626 "in any code that needs performance, and instead use C<guestfs_mount_options> "
26627 "(use an empty string for the first parameter if you don't want any options)."
26628 msgstr ""
26629
26630 #. type: =head2
26631 #: ../src/guestfs-actions.pod:4984
26632 msgid "guestfs_mount_9p"
26633 msgstr ""
26634
26635 #. type: verbatim
26636 #: ../src/guestfs-actions.pod:4986
26637 #, no-wrap
26638 msgid ""
26639 " int\n"
26640 " guestfs_mount_9p (guestfs_h *g,\n"
26641 "                   const char *mounttag,\n"
26642 "                   const char *mountpoint,\n"
26643 "                   ...);\n"
26644 "\n"
26645 msgstr ""
26646
26647 #. type: verbatim
26648 #: ../src/guestfs-actions.pod:4997
26649 #, no-wrap
26650 msgid ""
26651 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26652 "\n"
26653 msgstr ""
26654
26655 #. type: =head2
26656 #: ../src/guestfs-actions.pod:5010
26657 msgid "guestfs_mount_9p_va"
26658 msgstr ""
26659
26660 #. type: verbatim
26661 #: ../src/guestfs-actions.pod:5012
26662 #, no-wrap
26663 msgid ""
26664 " int\n"
26665 " guestfs_mount_9p_va (guestfs_h *g,\n"
26666 "                      const char *mounttag,\n"
26667 "                      const char *mountpoint,\n"
26668 "                      va_list args);\n"
26669 "\n"
26670 msgstr ""
26671
26672 #. type: textblock
26673 #: ../src/guestfs-actions.pod:5018
26674 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26675 msgstr ""
26676
26677 #. type: =head2
26678 #: ../src/guestfs-actions.pod:5022
26679 msgid "guestfs_mount_9p_argv"
26680 msgstr ""
26681
26682 #. type: verbatim
26683 #: ../src/guestfs-actions.pod:5024
26684 #, no-wrap
26685 msgid ""
26686 " int\n"
26687 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26688 "                        const char *mounttag,\n"
26689 "                        const char *mountpoint,\n"
26690 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26691 "\n"
26692 msgstr ""
26693
26694 #. type: textblock
26695 #: ../src/guestfs-actions.pod:5030
26696 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26697 msgstr ""
26698
26699 #. type: =head2
26700 #: ../src/guestfs-actions.pod:5034
26701 msgid "guestfs_mount_loop"
26702 msgstr ""
26703
26704 #. type: verbatim
26705 #: ../src/guestfs-actions.pod:5036
26706 #, no-wrap
26707 msgid ""
26708 " int\n"
26709 " guestfs_mount_loop (guestfs_h *g,\n"
26710 "                     const char *file,\n"
26711 "                     const char *mountpoint);\n"
26712 "\n"
26713 msgstr ""
26714
26715 #. type: =head2
26716 #: ../src/guestfs-actions.pod:5049
26717 msgid "guestfs_mount_options"
26718 msgstr ""
26719
26720 #. type: verbatim
26721 #: ../src/guestfs-actions.pod:5051
26722 #, no-wrap
26723 msgid ""
26724 " int\n"
26725 " guestfs_mount_options (guestfs_h *g,\n"
26726 "                        const char *options,\n"
26727 "                        const char *device,\n"
26728 "                        const char *mountpoint);\n"
26729 "\n"
26730 msgstr ""
26731
26732 #. type: textblock
26733 #: ../src/guestfs-actions.pod:5057
26734 msgid ""
26735 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26736 "the mount options as for the L<mount(8)> I<-o> flag."
26737 msgstr ""
26738
26739 #. type: textblock
26740 #: ../src/guestfs-actions.pod:5067 ../src/guestfs-actions.pod:5081 ../src/guestfs-actions.pod:5098
26741 msgid "(Added in 1.0.10)"
26742 msgstr ""
26743
26744 #. type: =head2
26745 #: ../src/guestfs-actions.pod:5069
26746 msgid "guestfs_mount_ro"
26747 msgstr ""
26748
26749 #. type: verbatim
26750 #: ../src/guestfs-actions.pod:5071
26751 #, no-wrap
26752 msgid ""
26753 " int\n"
26754 " guestfs_mount_ro (guestfs_h *g,\n"
26755 "                   const char *device,\n"
26756 "                   const char *mountpoint);\n"
26757 "\n"
26758 msgstr ""
26759
26760 #. type: textblock
26761 #: ../src/guestfs-actions.pod:5076
26762 msgid ""
26763 "This is the same as the C<guestfs_mount> command, but it mounts the "
26764 "filesystem with the read-only (I<-o ro>) flag."
26765 msgstr ""
26766
26767 #. type: =head2
26768 #: ../src/guestfs-actions.pod:5083
26769 msgid "guestfs_mount_vfs"
26770 msgstr ""
26771
26772 #. type: verbatim
26773 #: ../src/guestfs-actions.pod:5085
26774 #, no-wrap
26775 msgid ""
26776 " int\n"
26777 " guestfs_mount_vfs (guestfs_h *g,\n"
26778 "                    const char *options,\n"
26779 "                    const char *vfstype,\n"
26780 "                    const char *device,\n"
26781 "                    const char *mountpoint);\n"
26782 "\n"
26783 msgstr ""
26784
26785 #. type: textblock
26786 #: ../src/guestfs-actions.pod:5092
26787 msgid ""
26788 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26789 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
26790 "I<-t> flags."
26791 msgstr ""
26792
26793 #. type: =head2
26794 #: ../src/guestfs-actions.pod:5100
26795 msgid "guestfs_mountpoints"
26796 msgstr ""
26797
26798 #. type: verbatim
26799 #: ../src/guestfs-actions.pod:5102
26800 #, no-wrap
26801 msgid ""
26802 " char **\n"
26803 " guestfs_mountpoints (guestfs_h *g);\n"
26804 "\n"
26805 msgstr ""
26806
26807 #. type: textblock
26808 #: ../src/guestfs-actions.pod:5105
26809 msgid ""
26810 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
26811 "devices.  This one returns a hash table (map) of device name to directory "
26812 "where the device is mounted."
26813 msgstr ""
26814
26815 #. type: =head2
26816 #: ../src/guestfs-actions.pod:5117
26817 msgid "guestfs_mounts"
26818 msgstr ""
26819
26820 #. type: verbatim
26821 #: ../src/guestfs-actions.pod:5119
26822 #, no-wrap
26823 msgid ""
26824 " char **\n"
26825 " guestfs_mounts (guestfs_h *g);\n"
26826 "\n"
26827 msgstr ""
26828
26829 #. type: textblock
26830 #: ../src/guestfs-actions.pod:5127
26831 msgid "See also: C<guestfs_mountpoints>"
26832 msgstr ""
26833
26834 #. type: =head2
26835 #: ../src/guestfs-actions.pod:5135
26836 msgid "guestfs_mv"
26837 msgstr ""
26838
26839 #. type: verbatim
26840 #: ../src/guestfs-actions.pod:5137
26841 #, no-wrap
26842 msgid ""
26843 " int\n"
26844 " guestfs_mv (guestfs_h *g,\n"
26845 "             const char *src,\n"
26846 "             const char *dest);\n"
26847 "\n"
26848 msgstr ""
26849
26850 #. type: =head2
26851 #: ../src/guestfs-actions.pod:5149
26852 msgid "guestfs_ntfs_3g_probe"
26853 msgstr ""
26854
26855 #. type: verbatim
26856 #: ../src/guestfs-actions.pod:5151
26857 #, no-wrap
26858 msgid ""
26859 " int\n"
26860 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
26861 "                        int rw,\n"
26862 "                        const char *device);\n"
26863 "\n"
26864 msgstr ""
26865
26866 #. type: textblock
26867 #: ../src/guestfs-actions.pod:5170
26868 msgid "(Added in 1.0.43)"
26869 msgstr ""
26870
26871 #. type: =head2
26872 #: ../src/guestfs-actions.pod:5172
26873 msgid "guestfs_ntfsresize"
26874 msgstr ""
26875
26876 #. type: verbatim
26877 #: ../src/guestfs-actions.pod:5174
26878 #, no-wrap
26879 msgid ""
26880 " int\n"
26881 " guestfs_ntfsresize (guestfs_h *g,\n"
26882 "                     const char *device);\n"
26883 "\n"
26884 msgstr ""
26885
26886 #. type: textblock
26887 #: ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5278
26888 msgid ""
26889 "I<This function is deprecated.> In new code, use the "
26890 "L</guestfs_ntfsresize_opts> call instead."
26891 msgstr ""
26892
26893 #. type: =head2
26894 #: ../src/guestfs-actions.pod:5202
26895 msgid "guestfs_ntfsresize_opts"
26896 msgstr ""
26897
26898 #. type: verbatim
26899 #: ../src/guestfs-actions.pod:5204
26900 #, no-wrap
26901 msgid ""
26902 " int\n"
26903 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
26904 "                          const char *device,\n"
26905 "                          ...);\n"
26906 "\n"
26907 msgstr ""
26908
26909 #. type: verbatim
26910 #: ../src/guestfs-actions.pod:5214
26911 #, no-wrap
26912 msgid ""
26913 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
26914 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
26915 "\n"
26916 msgstr ""
26917
26918 #. type: textblock
26919 #: ../src/guestfs-actions.pod:5234
26920 msgid ""
26921 "After the resize operation, the filesystem is always marked as requiring a "
26922 "consistency check (for safety).  You have to boot into Windows to perform "
26923 "this check and clear this condition.  If you I<don't> set the C<force> "
26924 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
26925 "times on a single filesystem without booting into Windows between each "
26926 "resize."
26927 msgstr ""
26928
26929 #. type: =head2
26930 #: ../src/guestfs-actions.pod:5249
26931 msgid "guestfs_ntfsresize_opts_va"
26932 msgstr ""
26933
26934 #. type: verbatim
26935 #: ../src/guestfs-actions.pod:5251
26936 #, no-wrap
26937 msgid ""
26938 " int\n"
26939 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
26940 "                             const char *device,\n"
26941 "                             va_list args);\n"
26942 "\n"
26943 msgstr ""
26944
26945 #. type: textblock
26946 #: ../src/guestfs-actions.pod:5256
26947 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
26948 msgstr ""
26949
26950 #. type: =head2
26951 #: ../src/guestfs-actions.pod:5260
26952 msgid "guestfs_ntfsresize_opts_argv"
26953 msgstr ""
26954
26955 #. type: verbatim
26956 #: ../src/guestfs-actions.pod:5262
26957 #, no-wrap
26958 msgid ""
26959 " int\n"
26960 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
26961 "                               const char *device,\n"
26962 "                               const struct guestfs_ntfsresize_opts_argv "
26963 "*optargs);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../src/guestfs-actions.pod:5267
26969 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
26970 msgstr ""
26971
26972 #. type: =head2
26973 #: ../src/guestfs-actions.pod:5271
26974 msgid "guestfs_ntfsresize_size"
26975 msgstr ""
26976
26977 #. type: verbatim
26978 #: ../src/guestfs-actions.pod:5273
26979 #, no-wrap
26980 msgid ""
26981 " int\n"
26982 " guestfs_ntfsresize_size (guestfs_h *g,\n"
26983 "                          const char *device,\n"
26984 "                          int64_t size);\n"
26985 "\n"
26986 msgstr ""
26987
26988 #. type: textblock
26989 #: ../src/guestfs-actions.pod:5285
26990 msgid ""
26991 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
26992 "to specify the new size (in bytes) explicitly."
26993 msgstr ""
26994
26995 #. type: textblock
26996 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5732 ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:7696
26997 msgid "(Added in 1.3.14)"
26998 msgstr ""
26999
27000 #. type: =head2
27001 #: ../src/guestfs-actions.pod:5292
27002 msgid "guestfs_part_add"
27003 msgstr ""
27004
27005 #. type: verbatim
27006 #: ../src/guestfs-actions.pod:5294
27007 #, no-wrap
27008 msgid ""
27009 " int\n"
27010 " guestfs_part_add (guestfs_h *g,\n"
27011 "                   const char *device,\n"
27012 "                   const char *prlogex,\n"
27013 "                   int64_t startsect,\n"
27014 "                   int64_t endsect);\n"
27015 "\n"
27016 msgstr ""
27017
27018 #. type: textblock
27019 #: ../src/guestfs-actions.pod:5301
27020 msgid ""
27021 "This command adds a partition to C<device>.  If there is no partition table "
27022 "on the device, call C<guestfs_part_init> first."
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:5313
27027 msgid ""
27028 "Creating a partition which covers the whole disk is not so easy.  Use "
27029 "C<guestfs_part_disk> to do that."
27030 msgstr ""
27031
27032 #. type: textblock
27033 #: ../src/guestfs-actions.pod:5318 ../src/guestfs-actions.pod:5356 ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5493 ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5550 ../src/guestfs-actions.pod:5590
27034 msgid "(Added in 1.0.78)"
27035 msgstr ""
27036
27037 #. type: =head2
27038 #: ../src/guestfs-actions.pod:5320
27039 msgid "guestfs_part_del"
27040 msgstr ""
27041
27042 #. type: verbatim
27043 #: ../src/guestfs-actions.pod:5322
27044 #, no-wrap
27045 msgid ""
27046 " int\n"
27047 " guestfs_part_del (guestfs_h *g,\n"
27048 "                   const char *device,\n"
27049 "                   int partnum);\n"
27050 "\n"
27051 msgstr ""
27052
27053 #. type: =head2
27054 #: ../src/guestfs-actions.pod:5337
27055 msgid "guestfs_part_disk"
27056 msgstr ""
27057
27058 #. type: verbatim
27059 #: ../src/guestfs-actions.pod:5339
27060 #, no-wrap
27061 msgid ""
27062 " int\n"
27063 " guestfs_part_disk (guestfs_h *g,\n"
27064 "                    const char *device,\n"
27065 "                    const char *parttype);\n"
27066 "\n"
27067 msgstr ""
27068
27069 #. type: textblock
27070 #: ../src/guestfs-actions.pod:5344
27071 msgid ""
27072 "This command is simply a combination of C<guestfs_part_init> followed by "
27073 "C<guestfs_part_add> to create a single primary partition covering the whole "
27074 "disk."
27075 msgstr ""
27076
27077 #. type: textblock
27078 #: ../src/guestfs-actions.pod:5348
27079 msgid ""
27080 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
27081 "possible values are described in C<guestfs_part_init>."
27082 msgstr ""
27083
27084 #. type: =head2
27085 #: ../src/guestfs-actions.pod:5358
27086 msgid "guestfs_part_get_bootable"
27087 msgstr ""
27088
27089 #. type: verbatim
27090 #: ../src/guestfs-actions.pod:5360
27091 #, no-wrap
27092 msgid ""
27093 " int\n"
27094 " guestfs_part_get_bootable (guestfs_h *g,\n"
27095 "                            const char *device,\n"
27096 "                            int partnum);\n"
27097 "\n"
27098 msgstr ""
27099
27100 #. type: textblock
27101 #: ../src/guestfs-actions.pod:5368
27102 msgid "See also C<guestfs_part_set_bootable>."
27103 msgstr ""
27104
27105 #. type: =head2
27106 #: ../src/guestfs-actions.pod:5374
27107 msgid "guestfs_part_get_mbr_id"
27108 msgstr ""
27109
27110 #. type: verbatim
27111 #: ../src/guestfs-actions.pod:5376
27112 #, no-wrap
27113 msgid ""
27114 " int\n"
27115 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
27116 "                          const char *device,\n"
27117 "                          int partnum);\n"
27118 "\n"
27119 msgstr ""
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5566
27123 msgid ""
27124 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
27125 "undefined results for other partition table types (see "
27126 "C<guestfs_part_get_parttype>)."
27127 msgstr ""
27128
27129 #. type: =head2
27130 #: ../src/guestfs-actions.pod:5392
27131 msgid "guestfs_part_get_parttype"
27132 msgstr ""
27133
27134 #. type: verbatim
27135 #: ../src/guestfs-actions.pod:5394
27136 #, no-wrap
27137 msgid ""
27138 " char *\n"
27139 " guestfs_part_get_parttype (guestfs_h *g,\n"
27140 "                            const char *device);\n"
27141 "\n"
27142 msgstr ""
27143
27144 #. type: textblock
27145 #: ../src/guestfs-actions.pod:5401
27146 msgid ""
27147 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
27148 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
27149 "possible, although unusual.  See C<guestfs_part_init> for a full list."
27150 msgstr ""
27151
27152 #. type: =head2
27153 #: ../src/guestfs-actions.pod:5411
27154 msgid "guestfs_part_init"
27155 msgstr ""
27156
27157 #. type: verbatim
27158 #: ../src/guestfs-actions.pod:5413
27159 #, no-wrap
27160 msgid ""
27161 " int\n"
27162 " guestfs_part_init (guestfs_h *g,\n"
27163 "                    const char *device,\n"
27164 "                    const char *parttype);\n"
27165 "\n"
27166 msgstr ""
27167
27168 #. type: textblock
27169 #: ../src/guestfs-actions.pod:5422
27170 msgid ""
27171 "Initially there are no partitions.  Following this, you should call "
27172 "C<guestfs_part_add> for each partition required."
27173 msgstr ""
27174
27175 #. type: =head2
27176 #: ../src/guestfs-actions.pod:5495
27177 msgid "guestfs_part_list"
27178 msgstr ""
27179
27180 #. type: verbatim
27181 #: ../src/guestfs-actions.pod:5497
27182 #, no-wrap
27183 msgid ""
27184 " struct guestfs_partition_list *\n"
27185 " guestfs_part_list (guestfs_h *g,\n"
27186 "                    const char *device);\n"
27187 "\n"
27188 msgstr ""
27189
27190 #. type: textblock
27191 #: ../src/guestfs-actions.pod:5514
27192 msgid ""
27193 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
27194 "the device's sector size, see C<guestfs_blockdev_getss>."
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:5527
27199 msgid ""
27200 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
27201 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
27202 "use>."
27203 msgstr ""
27204
27205 #. type: =head2
27206 #: ../src/guestfs-actions.pod:5533
27207 msgid "guestfs_part_set_bootable"
27208 msgstr ""
27209
27210 #. type: verbatim
27211 #: ../src/guestfs-actions.pod:5535
27212 #, no-wrap
27213 msgid ""
27214 " int\n"
27215 " guestfs_part_set_bootable (guestfs_h *g,\n"
27216 "                            const char *device,\n"
27217 "                            int partnum,\n"
27218 "                            int bootable);\n"
27219 "\n"
27220 msgstr ""
27221
27222 #. type: =head2
27223 #: ../src/guestfs-actions.pod:5552
27224 msgid "guestfs_part_set_mbr_id"
27225 msgstr ""
27226
27227 #. type: verbatim
27228 #: ../src/guestfs-actions.pod:5554
27229 #, no-wrap
27230 msgid ""
27231 " int\n"
27232 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27233 "                          const char *device,\n"
27234 "                          int partnum,\n"
27235 "                          int idbyte);\n"
27236 "\n"
27237 msgstr ""
27238
27239 #. type: =head2
27240 #: ../src/guestfs-actions.pod:5574
27241 msgid "guestfs_part_set_name"
27242 msgstr ""
27243
27244 #. type: verbatim
27245 #: ../src/guestfs-actions.pod:5576
27246 #, no-wrap
27247 msgid ""
27248 " int\n"
27249 " guestfs_part_set_name (guestfs_h *g,\n"
27250 "                        const char *device,\n"
27251 "                        int partnum,\n"
27252 "                        const char *name);\n"
27253 "\n"
27254 msgstr ""
27255
27256 #. type: =head2
27257 #: ../src/guestfs-actions.pod:5592
27258 msgid "guestfs_part_to_dev"
27259 msgstr ""
27260
27261 #. type: verbatim
27262 #: ../src/guestfs-actions.pod:5594
27263 #, no-wrap
27264 msgid ""
27265 " char *\n"
27266 " guestfs_part_to_dev (guestfs_h *g,\n"
27267 "                      const char *partition);\n"
27268 "\n"
27269 msgstr ""
27270
27271 #. type: textblock
27272 #: ../src/guestfs-actions.pod:5602
27273 msgid ""
27274 "The named partition must exist, for example as a string returned from "
27275 "C<guestfs_list_partitions>."
27276 msgstr ""
27277
27278 #. type: =head2
27279 #: ../src/guestfs-actions.pod:5610
27280 msgid "guestfs_ping_daemon"
27281 msgstr ""
27282
27283 #. type: verbatim
27284 #: ../src/guestfs-actions.pod:5612
27285 #, no-wrap
27286 msgid ""
27287 " int\n"
27288 " guestfs_ping_daemon (guestfs_h *g);\n"
27289 "\n"
27290 msgstr ""
27291
27292 #. type: =head2
27293 #: ../src/guestfs-actions.pod:5624
27294 msgid "guestfs_pread"
27295 msgstr ""
27296
27297 #. type: verbatim
27298 #: ../src/guestfs-actions.pod:5626
27299 #, no-wrap
27300 msgid ""
27301 " char *\n"
27302 " guestfs_pread (guestfs_h *g,\n"
27303 "                const char *path,\n"
27304 "                int count,\n"
27305 "                int64_t offset,\n"
27306 "                size_t *size_r);\n"
27307 "\n"
27308 msgstr ""
27309
27310 #. type: textblock
27311 #: ../src/guestfs-actions.pod:5639
27312 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27313 msgstr ""
27314
27315 #. type: =head2
27316 #: ../src/guestfs-actions.pod:5650
27317 msgid "guestfs_pread_device"
27318 msgstr ""
27319
27320 #. type: verbatim
27321 #: ../src/guestfs-actions.pod:5652
27322 #, no-wrap
27323 msgid ""
27324 " char *\n"
27325 " guestfs_pread_device (guestfs_h *g,\n"
27326 "                       const char *device,\n"
27327 "                       int count,\n"
27328 "                       int64_t offset,\n"
27329 "                       size_t *size_r);\n"
27330 "\n"
27331 msgstr ""
27332
27333 #. type: textblock
27334 #: ../src/guestfs-actions.pod:5665
27335 msgid "See also C<guestfs_pread>."
27336 msgstr ""
27337
27338 #. type: textblock
27339 #: ../src/guestfs-actions.pod:5674
27340 msgid "(Added in 1.5.21)"
27341 msgstr ""
27342
27343 #. type: =head2
27344 #: ../src/guestfs-actions.pod:5676
27345 msgid "guestfs_pvcreate"
27346 msgstr ""
27347
27348 #. type: verbatim
27349 #: ../src/guestfs-actions.pod:5678
27350 #, no-wrap
27351 msgid ""
27352 " int\n"
27353 " guestfs_pvcreate (guestfs_h *g,\n"
27354 "                   const char *device);\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: =head2
27359 #: ../src/guestfs-actions.pod:5690
27360 msgid "guestfs_pvremove"
27361 msgstr ""
27362
27363 #. type: verbatim
27364 #: ../src/guestfs-actions.pod:5692
27365 #, no-wrap
27366 msgid ""
27367 " int\n"
27368 " guestfs_pvremove (guestfs_h *g,\n"
27369 "                   const char *device);\n"
27370 "\n"
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../src/guestfs-actions.pod:5707
27375 msgid "guestfs_pvresize"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../src/guestfs-actions.pod:5709
27380 #, no-wrap
27381 msgid ""
27382 " int\n"
27383 " guestfs_pvresize (guestfs_h *g,\n"
27384 "                   const char *device);\n"
27385 "\n"
27386 msgstr ""
27387
27388 #. type: =head2
27389 #: ../src/guestfs-actions.pod:5720
27390 msgid "guestfs_pvresize_size"
27391 msgstr ""
27392
27393 #. type: verbatim
27394 #: ../src/guestfs-actions.pod:5722
27395 #, no-wrap
27396 msgid ""
27397 " int\n"
27398 " guestfs_pvresize_size (guestfs_h *g,\n"
27399 "                        const char *device,\n"
27400 "                        int64_t size);\n"
27401 "\n"
27402 msgstr ""
27403
27404 #. type: textblock
27405 #: ../src/guestfs-actions.pod:5727
27406 msgid ""
27407 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27408 "specify the new size (in bytes) explicitly."
27409 msgstr ""
27410
27411 #. type: =head2
27412 #: ../src/guestfs-actions.pod:5734
27413 msgid "guestfs_pvs"
27414 msgstr ""
27415
27416 #. type: verbatim
27417 #: ../src/guestfs-actions.pod:5736
27418 #, no-wrap
27419 msgid ""
27420 " char **\n"
27421 " guestfs_pvs (guestfs_h *g);\n"
27422 "\n"
27423 msgstr ""
27424
27425 #. type: textblock
27426 #: ../src/guestfs-actions.pod:5745
27427 msgid "See also C<guestfs_pvs_full>."
27428 msgstr ""
27429
27430 #. type: =head2
27431 #: ../src/guestfs-actions.pod:5753
27432 msgid "guestfs_pvs_full"
27433 msgstr ""
27434
27435 #. type: verbatim
27436 #: ../src/guestfs-actions.pod:5755
27437 #, no-wrap
27438 msgid ""
27439 " struct guestfs_lvm_pv_list *\n"
27440 " guestfs_pvs_full (guestfs_h *g);\n"
27441 "\n"
27442 msgstr ""
27443
27444 #. type: textblock
27445 #: ../src/guestfs-actions.pod:5761
27446 msgid ""
27447 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27448 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27449 "use>."
27450 msgstr ""
27451
27452 #. type: =head2
27453 #: ../src/guestfs-actions.pod:5767
27454 msgid "guestfs_pvuuid"
27455 msgstr ""
27456
27457 #. type: verbatim
27458 #: ../src/guestfs-actions.pod:5769
27459 #, no-wrap
27460 msgid ""
27461 " char *\n"
27462 " guestfs_pvuuid (guestfs_h *g,\n"
27463 "                 const char *device);\n"
27464 "\n"
27465 msgstr ""
27466
27467 #. type: =head2
27468 #: ../src/guestfs-actions.pod:5780
27469 msgid "guestfs_pwrite"
27470 msgstr ""
27471
27472 #. type: verbatim
27473 #: ../src/guestfs-actions.pod:5782
27474 #, no-wrap
27475 msgid ""
27476 " int\n"
27477 " guestfs_pwrite (guestfs_h *g,\n"
27478 "                 const char *path,\n"
27479 "                 const char *content,\n"
27480 "                 size_t content_size,\n"
27481 "                 int64_t offset);\n"
27482 "\n"
27483 msgstr ""
27484
27485 #. type: textblock
27486 #: ../src/guestfs-actions.pod:5798
27487 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27488 msgstr ""
27489
27490 #. type: =head2
27491 #: ../src/guestfs-actions.pod:5807
27492 msgid "guestfs_pwrite_device"
27493 msgstr ""
27494
27495 #. type: verbatim
27496 #: ../src/guestfs-actions.pod:5809
27497 #, no-wrap
27498 msgid ""
27499 " int\n"
27500 " guestfs_pwrite_device (guestfs_h *g,\n"
27501 "                        const char *device,\n"
27502 "                        const char *content,\n"
27503 "                        size_t content_size,\n"
27504 "                        int64_t offset);\n"
27505 "\n"
27506 msgstr ""
27507
27508 #. type: textblock
27509 #: ../src/guestfs-actions.pod:5824
27510 msgid "See also C<guestfs_pwrite>."
27511 msgstr ""
27512
27513 #. type: textblock
27514 #: ../src/guestfs-actions.pod:5831
27515 msgid "(Added in 1.5.20)"
27516 msgstr ""
27517
27518 #. type: =head2
27519 #: ../src/guestfs-actions.pod:5833
27520 msgid "guestfs_read_file"
27521 msgstr ""
27522
27523 #. type: verbatim
27524 #: ../src/guestfs-actions.pod:5835
27525 #, no-wrap
27526 msgid ""
27527 " char *\n"
27528 " guestfs_read_file (guestfs_h *g,\n"
27529 "                    const char *path,\n"
27530 "                    size_t *size_r);\n"
27531 "\n"
27532 msgstr ""
27533
27534 #. type: textblock
27535 #: ../src/guestfs-actions.pod:5843
27536 msgid ""
27537 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27538 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27539 "function is limited in the total size of file that can be handled."
27540 msgstr ""
27541
27542 #. type: textblock
27543 #: ../src/guestfs-actions.pod:5855
27544 msgid "(Added in 1.0.63)"
27545 msgstr ""
27546
27547 #. type: =head2
27548 #: ../src/guestfs-actions.pod:5857
27549 msgid "guestfs_read_lines"
27550 msgstr ""
27551
27552 #. type: verbatim
27553 #: ../src/guestfs-actions.pod:5859
27554 #, no-wrap
27555 msgid ""
27556 " char **\n"
27557 " guestfs_read_lines (guestfs_h *g,\n"
27558 "                     const char *path);\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:5868
27564 msgid ""
27565 "Note that this function cannot correctly handle binary files (specifically, "
27566 "files containing C<\\0> character which is treated as end of line).  For "
27567 "those you need to use the C<guestfs_read_file> function which has a more "
27568 "complex interface."
27569 msgstr ""
27570
27571 #. type: =head2
27572 #: ../src/guestfs-actions.pod:5879
27573 msgid "guestfs_readdir"
27574 msgstr ""
27575
27576 #. type: verbatim
27577 #: ../src/guestfs-actions.pod:5881
27578 #, no-wrap
27579 msgid ""
27580 " struct guestfs_dirent_list *\n"
27581 " guestfs_readdir (guestfs_h *g,\n"
27582 "                  const char *dir);\n"
27583 "\n"
27584 msgstr ""
27585
27586 #. type: textblock
27587 #: ../src/guestfs-actions.pod:5935
27588 msgid ""
27589 "This function is primarily intended for use by programs.  To get a simple "
27590 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27591 "consumption, use C<guestfs_ll>."
27592 msgstr ""
27593
27594 #. type: textblock
27595 #: ../src/guestfs-actions.pod:5939
27596 msgid ""
27597 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27598 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27599 "use>."
27600 msgstr ""
27601
27602 #. type: =head2
27603 #: ../src/guestfs-actions.pod:5945
27604 msgid "guestfs_readlink"
27605 msgstr ""
27606
27607 #. type: verbatim
27608 #: ../src/guestfs-actions.pod:5947
27609 #, no-wrap
27610 msgid ""
27611 " char *\n"
27612 " guestfs_readlink (guestfs_h *g,\n"
27613 "                   const char *path);\n"
27614 "\n"
27615 msgstr ""
27616
27617 #. type: =head2
27618 #: ../src/guestfs-actions.pod:5958
27619 msgid "guestfs_readlinklist"
27620 msgstr ""
27621
27622 #. type: verbatim
27623 #: ../src/guestfs-actions.pod:5960
27624 #, no-wrap
27625 msgid ""
27626 " char **\n"
27627 " guestfs_readlinklist (guestfs_h *g,\n"
27628 "                       const char *path,\n"
27629 "                       char *const *names);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: =head2
27634 #: ../src/guestfs-actions.pod:5993
27635 msgid "guestfs_realpath"
27636 msgstr ""
27637
27638 #. type: verbatim
27639 #: ../src/guestfs-actions.pod:5995
27640 #, no-wrap
27641 msgid ""
27642 " char *\n"
27643 " guestfs_realpath (guestfs_h *g,\n"
27644 "                   const char *path);\n"
27645 "\n"
27646 msgstr ""
27647
27648 #. type: =head2
27649 #: ../src/guestfs-actions.pod:6007
27650 msgid "guestfs_removexattr"
27651 msgstr ""
27652
27653 #. type: verbatim
27654 #: ../src/guestfs-actions.pod:6009
27655 #, no-wrap
27656 msgid ""
27657 " int\n"
27658 " guestfs_removexattr (guestfs_h *g,\n"
27659 "                      const char *xattr,\n"
27660 "                      const char *path);\n"
27661 "\n"
27662 msgstr ""
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:6017
27666 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27667 msgstr ""
27668
27669 #. type: =head2
27670 #: ../src/guestfs-actions.pod:6023
27671 msgid "guestfs_resize2fs"
27672 msgstr ""
27673
27674 #. type: verbatim
27675 #: ../src/guestfs-actions.pod:6025
27676 #, no-wrap
27677 msgid ""
27678 " int\n"
27679 " guestfs_resize2fs (guestfs_h *g,\n"
27680 "                    const char *device);\n"
27681 "\n"
27682 msgstr ""
27683
27684 #. type: textblock
27685 #: ../src/guestfs-actions.pod:6032
27686 msgid ""
27687 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27688 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27689 "sometimes gives an error about this and sometimes not.  In any case, it is "
27690 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27691 msgstr ""
27692
27693 #. type: =head2
27694 #: ../src/guestfs-actions.pod:6042
27695 msgid "guestfs_resize2fs_M"
27696 msgstr ""
27697
27698 #. type: verbatim
27699 #: ../src/guestfs-actions.pod:6044
27700 #, no-wrap
27701 msgid ""
27702 " int\n"
27703 " guestfs_resize2fs_M (guestfs_h *g,\n"
27704 "                      const char *device);\n"
27705 "\n"
27706 msgstr ""
27707
27708 #. type: textblock
27709 #: ../src/guestfs-actions.pod:6048
27710 msgid ""
27711 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27712 "resized to its minimum size.  This works like the I<-M> option to the "
27713 "C<resize2fs> command."
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:6052
27718 msgid ""
27719 "To get the resulting size of the filesystem you should call "
27720 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27721 "These two numbers, multiplied together, give the resulting size of the "
27722 "minimal filesystem in bytes."
27723 msgstr ""
27724
27725 #. type: =head2
27726 #: ../src/guestfs-actions.pod:6061
27727 msgid "guestfs_resize2fs_size"
27728 msgstr ""
27729
27730 #. type: verbatim
27731 #: ../src/guestfs-actions.pod:6063
27732 #, no-wrap
27733 msgid ""
27734 " int\n"
27735 " guestfs_resize2fs_size (guestfs_h *g,\n"
27736 "                         const char *device,\n"
27737 "                         int64_t size);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:6068
27743 msgid ""
27744 "This command is the same as C<guestfs_resize2fs> except that it allows you "
27745 "to specify the new size (in bytes) explicitly."
27746 msgstr ""
27747
27748 #. type: =head2
27749 #: ../src/guestfs-actions.pod:6075
27750 msgid "guestfs_rm"
27751 msgstr ""
27752
27753 #. type: verbatim
27754 #: ../src/guestfs-actions.pod:6077
27755 #, no-wrap
27756 msgid ""
27757 " int\n"
27758 " guestfs_rm (guestfs_h *g,\n"
27759 "             const char *path);\n"
27760 "\n"
27761 msgstr ""
27762
27763 #. type: =head2
27764 #: ../src/guestfs-actions.pod:6087
27765 msgid "guestfs_rm_rf"
27766 msgstr ""
27767
27768 #. type: verbatim
27769 #: ../src/guestfs-actions.pod:6089
27770 #, no-wrap
27771 msgid ""
27772 " int\n"
27773 " guestfs_rm_rf (guestfs_h *g,\n"
27774 "                const char *path);\n"
27775 "\n"
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../src/guestfs-actions.pod:6101
27780 msgid "guestfs_rmdir"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../src/guestfs-actions.pod:6103
27785 #, no-wrap
27786 msgid ""
27787 " int\n"
27788 " guestfs_rmdir (guestfs_h *g,\n"
27789 "                const char *path);\n"
27790 "\n"
27791 msgstr ""
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:6113
27795 msgid "guestfs_rmmountpoint"
27796 msgstr ""
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:6115
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_rmmountpoint (guestfs_h *g,\n"
27804 "                       const char *exemptpath);\n"
27805 "\n"
27806 msgstr ""
27807
27808 #. type: textblock
27809 #: ../src/guestfs-actions.pod:6119
27810 msgid ""
27811 "This calls removes a mountpoint that was previously created with "
27812 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
27813 msgstr ""
27814
27815 #. type: =head2
27816 #: ../src/guestfs-actions.pod:6127
27817 msgid "guestfs_scrub_device"
27818 msgstr ""
27819
27820 #. type: verbatim
27821 #: ../src/guestfs-actions.pod:6129
27822 #, no-wrap
27823 msgid ""
27824 " int\n"
27825 " guestfs_scrub_device (guestfs_h *g,\n"
27826 "                       const char *device);\n"
27827 "\n"
27828 msgstr ""
27829
27830 #. type: textblock
27831 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6162 ../src/guestfs-actions.pod:6181
27832 msgid "(Added in 1.0.52)"
27833 msgstr ""
27834
27835 #. type: =head2
27836 #: ../src/guestfs-actions.pod:6146
27837 msgid "guestfs_scrub_file"
27838 msgstr ""
27839
27840 #. type: verbatim
27841 #: ../src/guestfs-actions.pod:6148
27842 #, no-wrap
27843 msgid ""
27844 " int\n"
27845 " guestfs_scrub_file (guestfs_h *g,\n"
27846 "                     const char *file);\n"
27847 "\n"
27848 msgstr ""
27849
27850 #. type: =head2
27851 #: ../src/guestfs-actions.pod:6164
27852 msgid "guestfs_scrub_freespace"
27853 msgstr ""
27854
27855 #. type: verbatim
27856 #: ../src/guestfs-actions.pod:6166
27857 #, no-wrap
27858 msgid ""
27859 " int\n"
27860 " guestfs_scrub_freespace (guestfs_h *g,\n"
27861 "                          const char *dir);\n"
27862 "\n"
27863 msgstr ""
27864
27865 #. type: textblock
27866 #: ../src/guestfs-actions.pod:6170
27867 msgid ""
27868 "This command creates the directory C<dir> and then fills it with files until "
27869 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
27870 "and deletes them.  The intention is to scrub any free space on the partition "
27871 "containing C<dir>."
27872 msgstr ""
27873
27874 #. type: =head2
27875 #: ../src/guestfs-actions.pod:6183
27876 msgid "guestfs_set_append"
27877 msgstr ""
27878
27879 #. type: verbatim
27880 #: ../src/guestfs-actions.pod:6185
27881 #, no-wrap
27882 msgid ""
27883 " int\n"
27884 " guestfs_set_append (guestfs_h *g,\n"
27885 "                     const char *append);\n"
27886 "\n"
27887 msgstr ""
27888
27889 #. type: =head2
27890 #: ../src/guestfs-actions.pod:6202
27891 msgid "guestfs_set_attach_method"
27892 msgstr ""
27893
27894 #. type: verbatim
27895 #: ../src/guestfs-actions.pod:6204
27896 #, no-wrap
27897 msgid ""
27898 " int\n"
27899 " guestfs_set_attach_method (guestfs_h *g,\n"
27900 "                            const char *attachmethod);\n"
27901 "\n"
27902 msgstr ""
27903
27904 #. type: =head2
27905 #: ../src/guestfs-actions.pod:6232
27906 msgid "guestfs_set_autosync"
27907 msgstr ""
27908
27909 #. type: verbatim
27910 #: ../src/guestfs-actions.pod:6234
27911 #, no-wrap
27912 msgid ""
27913 " int\n"
27914 " guestfs_set_autosync (guestfs_h *g,\n"
27915 "                       int autosync);\n"
27916 "\n"
27917 msgstr ""
27918
27919 #. type: =head2
27920 #: ../src/guestfs-actions.pod:6250
27921 msgid "guestfs_set_direct"
27922 msgstr ""
27923
27924 #. type: verbatim
27925 #: ../src/guestfs-actions.pod:6252
27926 #, no-wrap
27927 msgid ""
27928 " int\n"
27929 " guestfs_set_direct (guestfs_h *g,\n"
27930 "                     int direct);\n"
27931 "\n"
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:6260
27936 msgid ""
27937 "One consequence of this is that log messages aren't caught by the library "
27938 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
27939 "stdout."
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../src/guestfs-actions.pod:6273
27944 msgid "guestfs_set_e2label"
27945 msgstr ""
27946
27947 #. type: verbatim
27948 #: ../src/guestfs-actions.pod:6275
27949 #, no-wrap
27950 msgid ""
27951 " int\n"
27952 " guestfs_set_e2label (guestfs_h *g,\n"
27953 "                      const char *device,\n"
27954 "                      const char *label);\n"
27955 "\n"
27956 msgstr ""
27957
27958 #. type: textblock
27959 #: ../src/guestfs-actions.pod:6284
27960 msgid ""
27961 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
27962 "the existing label on a filesystem."
27963 msgstr ""
27964
27965 #. type: =head2
27966 #: ../src/guestfs-actions.pod:6291
27967 msgid "guestfs_set_e2uuid"
27968 msgstr ""
27969
27970 #. type: verbatim
27971 #: ../src/guestfs-actions.pod:6293
27972 #, no-wrap
27973 msgid ""
27974 " int\n"
27975 " guestfs_set_e2uuid (guestfs_h *g,\n"
27976 "                     const char *device,\n"
27977 "                     const char *uuid);\n"
27978 "\n"
27979 msgstr ""
27980
27981 #. type: textblock
27982 #: ../src/guestfs-actions.pod:6303
27983 msgid ""
27984 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
27985 "the existing UUID of a filesystem."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:6310
27990 msgid "guestfs_set_memsize"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:6312
27995 #, no-wrap
27996 msgid ""
27997 " int\n"
27998 " guestfs_set_memsize (guestfs_h *g,\n"
27999 "                      int memsize);\n"
28000 "\n"
28001 msgstr ""
28002
28003 #. type: textblock
28004 #: ../src/guestfs-actions.pod:6316
28005 msgid ""
28006 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
28007 "This only has any effect if called before C<guestfs_launch>."
28008 msgstr ""
28009
28010 #. type: =head2
28011 #: ../src/guestfs-actions.pod:6331
28012 msgid "guestfs_set_network"
28013 msgstr ""
28014
28015 #. type: verbatim
28016 #: ../src/guestfs-actions.pod:6333
28017 #, no-wrap
28018 msgid ""
28019 " int\n"
28020 " guestfs_set_network (guestfs_h *g,\n"
28021 "                      int network);\n"
28022 "\n"
28023 msgstr ""
28024
28025 #. type: textblock
28026 #: ../src/guestfs-actions.pod:6343
28027 msgid ""
28028 "You must call this before calling C<guestfs_launch>, otherwise it has no "
28029 "effect."
28030 msgstr ""
28031
28032 #. type: =head2
28033 #: ../src/guestfs-actions.pod:6350
28034 msgid "guestfs_set_path"
28035 msgstr ""
28036
28037 #. type: verbatim
28038 #: ../src/guestfs-actions.pod:6352
28039 #, no-wrap
28040 msgid ""
28041 " int\n"
28042 " guestfs_set_path (guestfs_h *g,\n"
28043 "                   const char *searchpath);\n"
28044 "\n"
28045 msgstr ""
28046
28047 #. type: =head2
28048 #: ../src/guestfs-actions.pod:6367
28049 msgid "guestfs_set_pgroup"
28050 msgstr ""
28051
28052 #. type: verbatim
28053 #: ../src/guestfs-actions.pod:6369
28054 #, no-wrap
28055 msgid ""
28056 " int\n"
28057 " guestfs_set_pgroup (guestfs_h *g,\n"
28058 "                     int pgroup);\n"
28059 "\n"
28060 msgstr ""
28061
28062 #. type: =head2
28063 #: ../src/guestfs-actions.pod:6386
28064 msgid "guestfs_set_qemu"
28065 msgstr ""
28066
28067 #. type: verbatim
28068 #: ../src/guestfs-actions.pod:6388
28069 #, no-wrap
28070 msgid ""
28071 " int\n"
28072 " guestfs_set_qemu (guestfs_h *g,\n"
28073 "                   const char *qemu);\n"
28074 "\n"
28075 msgstr ""
28076
28077 #. type: =head2
28078 #: ../src/guestfs-actions.pod:6414
28079 msgid "guestfs_set_recovery_proc"
28080 msgstr ""
28081
28082 #. type: verbatim
28083 #: ../src/guestfs-actions.pod:6416
28084 #, no-wrap
28085 msgid ""
28086 " int\n"
28087 " guestfs_set_recovery_proc (guestfs_h *g,\n"
28088 "                            int recoveryproc);\n"
28089 "\n"
28090 msgstr ""
28091
28092 #. type: textblock
28093 #: ../src/guestfs-actions.pod:6420
28094 msgid ""
28095 "If this is called with the parameter C<false> then C<guestfs_launch> does "
28096 "not create a recovery process.  The purpose of the recovery process is to "
28097 "stop runaway qemu processes in the case where the main program aborts "
28098 "abruptly."
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:6425
28103 msgid ""
28104 "This only has any effect if called before C<guestfs_launch>, and the default "
28105 "is true."
28106 msgstr ""
28107
28108 #. type: =head2
28109 #: ../src/guestfs-actions.pod:6438
28110 msgid "guestfs_set_selinux"
28111 msgstr ""
28112
28113 #. type: verbatim
28114 #: ../src/guestfs-actions.pod:6440
28115 #, no-wrap
28116 msgid ""
28117 " int\n"
28118 " guestfs_set_selinux (guestfs_h *g,\n"
28119 "                      int selinux);\n"
28120 "\n"
28121 msgstr ""
28122
28123 #. type: =head2
28124 #: ../src/guestfs-actions.pod:6457
28125 msgid "guestfs_set_trace"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../src/guestfs-actions.pod:6459
28130 #, no-wrap
28131 msgid ""
28132 " int\n"
28133 " guestfs_set_trace (guestfs_h *g,\n"
28134 "                    int trace);\n"
28135 "\n"
28136 msgstr ""
28137
28138 #. type: textblock
28139 #: ../src/guestfs-actions.pod:6473
28140 msgid ""
28141 "Trace messages are normally sent to C<stderr>, unless you register a "
28142 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28143 msgstr ""
28144
28145 #. type: =head2
28146 #: ../src/guestfs-actions.pod:6481
28147 msgid "guestfs_set_verbose"
28148 msgstr ""
28149
28150 #. type: verbatim
28151 #: ../src/guestfs-actions.pod:6483
28152 #, no-wrap
28153 msgid ""
28154 " int\n"
28155 " guestfs_set_verbose (guestfs_h *g,\n"
28156 "                      int verbose);\n"
28157 "\n"
28158 msgstr ""
28159
28160 #. type: textblock
28161 #: ../src/guestfs-actions.pod:6492
28162 msgid ""
28163 "Verbose messages are normally sent to C<stderr>, unless you register a "
28164 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
28165 msgstr ""
28166
28167 #. type: =head2
28168 #: ../src/guestfs-actions.pod:6500
28169 msgid "guestfs_setcon"
28170 msgstr ""
28171
28172 #. type: verbatim
28173 #: ../src/guestfs-actions.pod:6502
28174 #, no-wrap
28175 msgid ""
28176 " int\n"
28177 " guestfs_setcon (guestfs_h *g,\n"
28178 "                 const char *context);\n"
28179 "\n"
28180 msgstr ""
28181
28182 #. type: =head2
28183 #: ../src/guestfs-actions.pod:6515
28184 msgid "guestfs_setxattr"
28185 msgstr ""
28186
28187 #. type: verbatim
28188 #: ../src/guestfs-actions.pod:6517
28189 #, no-wrap
28190 msgid ""
28191 " int\n"
28192 " guestfs_setxattr (guestfs_h *g,\n"
28193 "                   const char *xattr,\n"
28194 "                   const char *val,\n"
28195 "                   int vallen,\n"
28196 "                   const char *path);\n"
28197 "\n"
28198 msgstr ""
28199
28200 #. type: textblock
28201 #: ../src/guestfs-actions.pod:6528
28202 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
28203 msgstr ""
28204
28205 #. type: =head2
28206 #: ../src/guestfs-actions.pod:6534
28207 msgid "guestfs_sfdisk"
28208 msgstr ""
28209
28210 #. type: verbatim
28211 #: ../src/guestfs-actions.pod:6536
28212 #, no-wrap
28213 msgid ""
28214 " int\n"
28215 " guestfs_sfdisk (guestfs_h *g,\n"
28216 "                 const char *device,\n"
28217 "                 int cyls,\n"
28218 "                 int heads,\n"
28219 "                 int sectors,\n"
28220 "                 char *const *lines);\n"
28221 "\n"
28222 msgstr ""
28223
28224 #. type: textblock
28225 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6588 ../src/guestfs-actions.pod:6622
28226 msgid ""
28227 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
28228 "call instead."
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../src/guestfs-actions.pod:6571
28233 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28234 msgstr ""
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:6581
28238 msgid "guestfs_sfdiskM"
28239 msgstr ""
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:6583
28243 #, no-wrap
28244 msgid ""
28245 " int\n"
28246 " guestfs_sfdiskM (guestfs_h *g,\n"
28247 "                  const char *device,\n"
28248 "                  char *const *lines);\n"
28249 "\n"
28250 msgstr ""
28251
28252 #. type: textblock
28253 #: ../src/guestfs-actions.pod:6595
28254 msgid ""
28255 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28256 "partition sizes are specified in megabytes only (rounded to the nearest "
28257 "cylinder) and you don't need to specify the cyls, heads and sectors "
28258 "parameters which were rarely if ever used anyway."
28259 msgstr ""
28260
28261 #. type: textblock
28262 #: ../src/guestfs-actions.pod:6601
28263 msgid ""
28264 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28265 "C<guestfs_part_disk>"
28266 msgstr ""
28267
28268 #. type: =head2
28269 #: ../src/guestfs-actions.pod:6611
28270 msgid "guestfs_sfdisk_N"
28271 msgstr ""
28272
28273 #. type: verbatim
28274 #: ../src/guestfs-actions.pod:6613
28275 #, no-wrap
28276 msgid ""
28277 " int\n"
28278 " guestfs_sfdisk_N (guestfs_h *g,\n"
28279 "                   const char *device,\n"
28280 "                   int partnum,\n"
28281 "                   int cyls,\n"
28282 "                   int heads,\n"
28283 "                   int sectors,\n"
28284 "                   const char *line);\n"
28285 "\n"
28286 msgstr ""
28287
28288 #. type: textblock
28289 #: ../src/guestfs-actions.pod:6632
28290 msgid ""
28291 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28292 "for the cyls/heads/sectors parameters."
28293 msgstr ""
28294
28295 #. type: textblock
28296 #: ../src/guestfs-actions.pod:6635
28297 msgid "See also: C<guestfs_part_add>"
28298 msgstr ""
28299
28300 #. type: =head2
28301 #: ../src/guestfs-actions.pod:6644
28302 msgid "guestfs_sfdisk_disk_geometry"
28303 msgstr ""
28304
28305 #. type: verbatim
28306 #: ../src/guestfs-actions.pod:6646
28307 #, no-wrap
28308 msgid ""
28309 " char *\n"
28310 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28311 "                               const char *device);\n"
28312 "\n"
28313 msgstr ""
28314
28315 #. type: textblock
28316 #: ../src/guestfs-actions.pod:6650
28317 msgid ""
28318 "This displays the disk geometry of C<device> read from the partition table.  "
28319 "Especially in the case where the underlying block device has been resized, "
28320 "this can be different from the kernel's idea of the geometry (see "
28321 "C<guestfs_sfdisk_kernel_geometry>)."
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:6663
28326 msgid "guestfs_sfdisk_kernel_geometry"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:6665
28331 #, no-wrap
28332 msgid ""
28333 " char *\n"
28334 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28335 "                                 const char *device);\n"
28336 "\n"
28337 msgstr ""
28338
28339 #. type: =head2
28340 #: ../src/guestfs-actions.pod:6679
28341 msgid "guestfs_sfdisk_l"
28342 msgstr ""
28343
28344 #. type: verbatim
28345 #: ../src/guestfs-actions.pod:6681
28346 #, no-wrap
28347 msgid ""
28348 " char *\n"
28349 " guestfs_sfdisk_l (guestfs_h *g,\n"
28350 "                   const char *device);\n"
28351 "\n"
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../src/guestfs-actions.pod:6685
28356 msgid ""
28357 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
28358 "call instead."
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:6696
28363 msgid "See also: C<guestfs_part_list>"
28364 msgstr ""
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:6703
28368 msgid "guestfs_sh"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:6705
28373 #, no-wrap
28374 msgid ""
28375 " char *\n"
28376 " guestfs_sh (guestfs_h *g,\n"
28377 "             const char *command);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: textblock
28382 #: ../src/guestfs-actions.pod:6712
28383 msgid "This is like C<guestfs_command>, but passes the command to:"
28384 msgstr ""
28385
28386 #. type: textblock
28387 #: ../src/guestfs-actions.pod:6720
28388 msgid "All the provisos about C<guestfs_command> apply to this call."
28389 msgstr ""
28390
28391 #. type: =head2
28392 #: ../src/guestfs-actions.pod:6727
28393 msgid "guestfs_sh_lines"
28394 msgstr ""
28395
28396 #. type: verbatim
28397 #: ../src/guestfs-actions.pod:6729
28398 #, no-wrap
28399 msgid ""
28400 " char **\n"
28401 " guestfs_sh_lines (guestfs_h *g,\n"
28402 "                   const char *command);\n"
28403 "\n"
28404 msgstr ""
28405
28406 #. type: textblock
28407 #: ../src/guestfs-actions.pod:6733
28408 msgid ""
28409 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28410 "lines."
28411 msgstr ""
28412
28413 #. type: textblock
28414 #: ../src/guestfs-actions.pod:6736
28415 msgid "See also: C<guestfs_command_lines>"
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:6744
28420 msgid "guestfs_sleep"
28421 msgstr ""
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:6746
28425 #, no-wrap
28426 msgid ""
28427 " int\n"
28428 " guestfs_sleep (guestfs_h *g,\n"
28429 "                int secs);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: textblock
28434 #: ../src/guestfs-actions.pod:6754
28435 msgid "(Added in 1.0.41)"
28436 msgstr ""
28437
28438 #. type: =head2
28439 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-structs.pod:109
28440 msgid "guestfs_stat"
28441 msgstr ""
28442
28443 #. type: verbatim
28444 #: ../src/guestfs-actions.pod:6758
28445 #, no-wrap
28446 msgid ""
28447 " struct guestfs_stat *\n"
28448 " guestfs_stat (guestfs_h *g,\n"
28449 "               const char *path);\n"
28450 "\n"
28451 msgstr ""
28452
28453 #. type: =head2
28454 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-structs.pod:135
28455 msgid "guestfs_statvfs"
28456 msgstr ""
28457
28458 #. type: verbatim
28459 #: ../src/guestfs-actions.pod:6774
28460 #, no-wrap
28461 msgid ""
28462 " struct guestfs_statvfs *\n"
28463 " guestfs_statvfs (guestfs_h *g,\n"
28464 "                  const char *path);\n"
28465 "\n"
28466 msgstr ""
28467
28468 #. type: textblock
28469 #: ../src/guestfs-actions.pod:6784
28470 msgid ""
28471 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28472 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28473 msgstr ""
28474
28475 #. type: =head2
28476 #: ../src/guestfs-actions.pod:6790
28477 msgid "guestfs_strings"
28478 msgstr ""
28479
28480 #. type: verbatim
28481 #: ../src/guestfs-actions.pod:6792
28482 #, no-wrap
28483 msgid ""
28484 " char **\n"
28485 " guestfs_strings (guestfs_h *g,\n"
28486 "                  const char *path);\n"
28487 "\n"
28488 msgstr ""
28489
28490 #. type: =head2
28491 #: ../src/guestfs-actions.pod:6808
28492 msgid "guestfs_strings_e"
28493 msgstr ""
28494
28495 #. type: verbatim
28496 #: ../src/guestfs-actions.pod:6810
28497 #, no-wrap
28498 msgid ""
28499 " char **\n"
28500 " guestfs_strings_e (guestfs_h *g,\n"
28501 "                    const char *encoding,\n"
28502 "                    const char *path);\n"
28503 "\n"
28504 msgstr ""
28505
28506 #. type: textblock
28507 #: ../src/guestfs-actions.pod:6815
28508 msgid ""
28509 "This is like the C<guestfs_strings> command, but allows you to specify the "
28510 "encoding of strings that are looked for in the source file C<path>."
28511 msgstr ""
28512
28513 #. type: textblock
28514 #: ../src/guestfs-actions.pod:6825
28515 msgid ""
28516 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28517 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28518 msgstr ""
28519
28520 #. type: =head2
28521 #: ../src/guestfs-actions.pod:6863
28522 msgid "guestfs_swapoff_device"
28523 msgstr ""
28524
28525 #. type: verbatim
28526 #: ../src/guestfs-actions.pod:6865
28527 #, no-wrap
28528 msgid ""
28529 " int\n"
28530 " guestfs_swapoff_device (guestfs_h *g,\n"
28531 "                         const char *device);\n"
28532 "\n"
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:6869
28537 msgid ""
28538 "This command disables the libguestfs appliance swap device or partition "
28539 "named C<device>.  See C<guestfs_swapon_device>."
28540 msgstr ""
28541
28542 #. type: =head2
28543 #: ../src/guestfs-actions.pod:6877
28544 msgid "guestfs_swapoff_file"
28545 msgstr ""
28546
28547 #. type: verbatim
28548 #: ../src/guestfs-actions.pod:6879
28549 #, no-wrap
28550 msgid ""
28551 " int\n"
28552 " guestfs_swapoff_file (guestfs_h *g,\n"
28553 "                       const char *file);\n"
28554 "\n"
28555 msgstr ""
28556
28557 #. type: =head2
28558 #: ../src/guestfs-actions.pod:6889
28559 msgid "guestfs_swapoff_label"
28560 msgstr ""
28561
28562 #. type: verbatim
28563 #: ../src/guestfs-actions.pod:6891
28564 #, no-wrap
28565 msgid ""
28566 " int\n"
28567 " guestfs_swapoff_label (guestfs_h *g,\n"
28568 "                        const char *label);\n"
28569 "\n"
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:6902
28574 msgid "guestfs_swapoff_uuid"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:6904
28579 #, no-wrap
28580 msgid ""
28581 " int\n"
28582 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28583 "                       const char *uuid);\n"
28584 "\n"
28585 msgstr ""
28586
28587 #. type: =head2
28588 #: ../src/guestfs-actions.pod:6915
28589 msgid "guestfs_swapon_device"
28590 msgstr ""
28591
28592 #. type: verbatim
28593 #: ../src/guestfs-actions.pod:6917
28594 #, no-wrap
28595 msgid ""
28596 " int\n"
28597 " guestfs_swapon_device (guestfs_h *g,\n"
28598 "                        const char *device);\n"
28599 "\n"
28600 msgstr ""
28601
28602 #. type: textblock
28603 #: ../src/guestfs-actions.pod:6921
28604 msgid ""
28605 "This command enables the libguestfs appliance to use the swap device or "
28606 "partition named C<device>.  The increased memory is made available for all "
28607 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28608 msgstr ""
28609
28610 #. type: =head2
28611 #: ../src/guestfs-actions.pod:6937
28612 msgid "guestfs_swapon_file"
28613 msgstr ""
28614
28615 #. type: verbatim
28616 #: ../src/guestfs-actions.pod:6939
28617 #, no-wrap
28618 msgid ""
28619 " int\n"
28620 " guestfs_swapon_file (guestfs_h *g,\n"
28621 "                      const char *file);\n"
28622 "\n"
28623 msgstr ""
28624
28625 #. type: textblock
28626 #: ../src/guestfs-actions.pod:6943
28627 msgid ""
28628 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28629 "notes."
28630 msgstr ""
28631
28632 #. type: =head2
28633 #: ../src/guestfs-actions.pod:6950
28634 msgid "guestfs_swapon_label"
28635 msgstr ""
28636
28637 #. type: verbatim
28638 #: ../src/guestfs-actions.pod:6952
28639 #, no-wrap
28640 msgid ""
28641 " int\n"
28642 " guestfs_swapon_label (guestfs_h *g,\n"
28643 "                       const char *label);\n"
28644 "\n"
28645 msgstr ""
28646
28647 #. type: textblock
28648 #: ../src/guestfs-actions.pod:6956
28649 msgid ""
28650 "This command enables swap to a labeled swap partition.  See "
28651 "C<guestfs_swapon_device> for other notes."
28652 msgstr ""
28653
28654 #. type: =head2
28655 #: ../src/guestfs-actions.pod:6963
28656 msgid "guestfs_swapon_uuid"
28657 msgstr ""
28658
28659 #. type: verbatim
28660 #: ../src/guestfs-actions.pod:6965
28661 #, no-wrap
28662 msgid ""
28663 " int\n"
28664 " guestfs_swapon_uuid (guestfs_h *g,\n"
28665 "                      const char *uuid);\n"
28666 "\n"
28667 msgstr ""
28668
28669 #. type: textblock
28670 #: ../src/guestfs-actions.pod:6969
28671 msgid ""
28672 "This command enables swap to a swap partition with the given UUID.  See "
28673 "C<guestfs_swapon_device> for other notes."
28674 msgstr ""
28675
28676 #. type: =head2
28677 #: ../src/guestfs-actions.pod:6976
28678 msgid "guestfs_sync"
28679 msgstr ""
28680
28681 #. type: verbatim
28682 #: ../src/guestfs-actions.pod:6978
28683 #, no-wrap
28684 msgid ""
28685 " int\n"
28686 " guestfs_sync (guestfs_h *g);\n"
28687 "\n"
28688 msgstr ""
28689
28690 #. type: =head2
28691 #: ../src/guestfs-actions.pod:6991
28692 msgid "guestfs_tail"
28693 msgstr ""
28694
28695 #. type: verbatim
28696 #: ../src/guestfs-actions.pod:6993
28697 #, no-wrap
28698 msgid ""
28699 " char **\n"
28700 " guestfs_tail (guestfs_h *g,\n"
28701 "               const char *path);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: =head2
28706 #: ../src/guestfs-actions.pod:7009
28707 msgid "guestfs_tail_n"
28708 msgstr ""
28709
28710 #. type: verbatim
28711 #: ../src/guestfs-actions.pod:7011
28712 #, no-wrap
28713 msgid ""
28714 " char **\n"
28715 " guestfs_tail_n (guestfs_h *g,\n"
28716 "                 int nrlines,\n"
28717 "                 const char *path);\n"
28718 "\n"
28719 msgstr ""
28720
28721 #. type: =head2
28722 #: ../src/guestfs-actions.pod:7033
28723 msgid "guestfs_tar_in"
28724 msgstr ""
28725
28726 #. type: verbatim
28727 #: ../src/guestfs-actions.pod:7035
28728 #, no-wrap
28729 msgid ""
28730 " int\n"
28731 " guestfs_tar_in (guestfs_h *g,\n"
28732 "                 const char *tarfile,\n"
28733 "                 const char *directory);\n"
28734 "\n"
28735 msgstr ""
28736
28737 #. type: textblock
28738 #: ../src/guestfs-actions.pod:7043
28739 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
28740 msgstr ""
28741
28742 #. type: textblock
28743 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7065 ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7097
28744 msgid "(Added in 1.0.3)"
28745 msgstr ""
28746
28747 #. type: =head2
28748 #: ../src/guestfs-actions.pod:7050
28749 msgid "guestfs_tar_out"
28750 msgstr ""
28751
28752 #. type: verbatim
28753 #: ../src/guestfs-actions.pod:7052
28754 #, no-wrap
28755 msgid ""
28756 " int\n"
28757 " guestfs_tar_out (guestfs_h *g,\n"
28758 "                  const char *directory,\n"
28759 "                  const char *tarfile);\n"
28760 "\n"
28761 msgstr ""
28762
28763 #. type: textblock
28764 #: ../src/guestfs-actions.pod:7060
28765 msgid ""
28766 "To download a compressed tarball, use C<guestfs_tgz_out> or "
28767 "C<guestfs_txz_out>."
28768 msgstr ""
28769
28770 #. type: =head2
28771 #: ../src/guestfs-actions.pod:7067
28772 msgid "guestfs_tgz_in"
28773 msgstr ""
28774
28775 #. type: verbatim
28776 #: ../src/guestfs-actions.pod:7069
28777 #, no-wrap
28778 msgid ""
28779 " int\n"
28780 " guestfs_tgz_in (guestfs_h *g,\n"
28781 "                 const char *tarball,\n"
28782 "                 const char *directory);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:7077
28788 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
28789 msgstr ""
28790
28791 #. type: =head2
28792 #: ../src/guestfs-actions.pod:7083
28793 msgid "guestfs_tgz_out"
28794 msgstr ""
28795
28796 #. type: verbatim
28797 #: ../src/guestfs-actions.pod:7085
28798 #, no-wrap
28799 msgid ""
28800 " int\n"
28801 " guestfs_tgz_out (guestfs_h *g,\n"
28802 "                  const char *directory,\n"
28803 "                  const char *tarball);\n"
28804 "\n"
28805 msgstr ""
28806
28807 #. type: textblock
28808 #: ../src/guestfs-actions.pod:7093
28809 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
28810 msgstr ""
28811
28812 #. type: =head2
28813 #: ../src/guestfs-actions.pod:7099
28814 msgid "guestfs_touch"
28815 msgstr ""
28816
28817 #. type: verbatim
28818 #: ../src/guestfs-actions.pod:7101
28819 #, no-wrap
28820 msgid ""
28821 " int\n"
28822 " guestfs_touch (guestfs_h *g,\n"
28823 "                const char *path);\n"
28824 "\n"
28825 msgstr ""
28826
28827 #. type: =head2
28828 #: ../src/guestfs-actions.pod:7116
28829 msgid "guestfs_truncate"
28830 msgstr ""
28831
28832 #. type: verbatim
28833 #: ../src/guestfs-actions.pod:7118
28834 #, no-wrap
28835 msgid ""
28836 " int\n"
28837 " guestfs_truncate (guestfs_h *g,\n"
28838 "                   const char *path);\n"
28839 "\n"
28840 msgstr ""
28841
28842 #. type: =head2
28843 #: ../src/guestfs-actions.pod:7129
28844 msgid "guestfs_truncate_size"
28845 msgstr ""
28846
28847 #. type: verbatim
28848 #: ../src/guestfs-actions.pod:7131
28849 #, no-wrap
28850 msgid ""
28851 " int\n"
28852 " guestfs_truncate_size (guestfs_h *g,\n"
28853 "                        const char *path,\n"
28854 "                        int64_t size);\n"
28855 "\n"
28856 msgstr ""
28857
28858 #. type: textblock
28859 #: ../src/guestfs-actions.pod:7139
28860 msgid ""
28861 "If the current file size is less than C<size> then the file is extended to "
28862 "the required size with zero bytes.  This creates a sparse file (ie. disk "
28863 "blocks are not allocated for the file until you write to it).  To create a "
28864 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
28865 msgstr ""
28866
28867 #. type: =head2
28868 #: ../src/guestfs-actions.pod:7149
28869 msgid "guestfs_tune2fs_l"
28870 msgstr ""
28871
28872 #. type: verbatim
28873 #: ../src/guestfs-actions.pod:7151
28874 #, no-wrap
28875 msgid ""
28876 " char **\n"
28877 " guestfs_tune2fs_l (guestfs_h *g,\n"
28878 "                    const char *device);\n"
28879 "\n"
28880 msgstr ""
28881
28882 #. type: =head2
28883 #: ../src/guestfs-actions.pod:7171
28884 msgid "guestfs_txz_in"
28885 msgstr ""
28886
28887 #. type: verbatim
28888 #: ../src/guestfs-actions.pod:7173
28889 #, no-wrap
28890 msgid ""
28891 " int\n"
28892 " guestfs_txz_in (guestfs_h *g,\n"
28893 "                 const char *tarball,\n"
28894 "                 const char *directory);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: =head2
28899 #: ../src/guestfs-actions.pod:7185
28900 msgid "guestfs_txz_out"
28901 msgstr ""
28902
28903 #. type: verbatim
28904 #: ../src/guestfs-actions.pod:7187
28905 #, no-wrap
28906 msgid ""
28907 " int\n"
28908 " guestfs_txz_out (guestfs_h *g,\n"
28909 "                  const char *directory,\n"
28910 "                  const char *tarball);\n"
28911 "\n"
28912 msgstr ""
28913
28914 #. type: =head2
28915 #: ../src/guestfs-actions.pod:7199
28916 msgid "guestfs_umask"
28917 msgstr ""
28918
28919 #. type: verbatim
28920 #: ../src/guestfs-actions.pod:7201
28921 #, no-wrap
28922 msgid ""
28923 " int\n"
28924 " guestfs_umask (guestfs_h *g,\n"
28925 "                int mask);\n"
28926 "\n"
28927 msgstr ""
28928
28929 #. type: textblock
28930 #: ../src/guestfs-actions.pod:7217
28931 msgid ""
28932 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
28933 "C<guestfs_mkdir>."
28934 msgstr ""
28935
28936 #. type: =head2
28937 #: ../src/guestfs-actions.pod:7226
28938 msgid "guestfs_umount"
28939 msgstr ""
28940
28941 #. type: verbatim
28942 #: ../src/guestfs-actions.pod:7228
28943 #, no-wrap
28944 msgid ""
28945 " int\n"
28946 " guestfs_umount (guestfs_h *g,\n"
28947 "                 const char *pathordevice);\n"
28948 "\n"
28949 msgstr ""
28950
28951 #. type: =head2
28952 #: ../src/guestfs-actions.pod:7240
28953 msgid "guestfs_umount_all"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:7242
28958 #, no-wrap
28959 msgid ""
28960 " int\n"
28961 " guestfs_umount_all (guestfs_h *g);\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: =head2
28966 #: ../src/guestfs-actions.pod:7253
28967 msgid "guestfs_upload"
28968 msgstr ""
28969
28970 #. type: verbatim
28971 #: ../src/guestfs-actions.pod:7255
28972 #, no-wrap
28973 msgid ""
28974 " int\n"
28975 " guestfs_upload (guestfs_h *g,\n"
28976 "                 const char *filename,\n"
28977 "                 const char *remotefilename);\n"
28978 "\n"
28979 msgstr ""
28980
28981 #. type: textblock
28982 #: ../src/guestfs-actions.pod:7265
28983 msgid "See also C<guestfs_download>."
28984 msgstr ""
28985
28986 #. type: =head2
28987 #: ../src/guestfs-actions.pod:7276
28988 msgid "guestfs_upload_offset"
28989 msgstr ""
28990
28991 #. type: verbatim
28992 #: ../src/guestfs-actions.pod:7278
28993 #, no-wrap
28994 msgid ""
28995 " int\n"
28996 " guestfs_upload_offset (guestfs_h *g,\n"
28997 "                        const char *filename,\n"
28998 "                        const char *remotefilename,\n"
28999 "                        int64_t offset);\n"
29000 "\n"
29001 msgstr ""
29002
29003 #. type: textblock
29004 #: ../src/guestfs-actions.pod:7294
29005 msgid ""
29006 "Note that there is no limit on the amount of data that can be uploaded with "
29007 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
29008 "full amount unless an error occurs."
29009 msgstr ""
29010
29011 #. type: textblock
29012 #: ../src/guestfs-actions.pod:7299
29013 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
29014 msgstr ""
29015
29016 #. type: =head2
29017 #: ../src/guestfs-actions.pod:7310
29018 msgid "guestfs_utimens"
29019 msgstr ""
29020
29021 #. type: verbatim
29022 #: ../src/guestfs-actions.pod:7312
29023 #, no-wrap
29024 msgid ""
29025 " int\n"
29026 " guestfs_utimens (guestfs_h *g,\n"
29027 "                  const char *path,\n"
29028 "                  int64_t atsecs,\n"
29029 "                  int64_t atnsecs,\n"
29030 "                  int64_t mtsecs,\n"
29031 "                  int64_t mtnsecs);\n"
29032 "\n"
29033 msgstr ""
29034
29035 #. type: =head2
29036 #: ../src/guestfs-actions.pod:7341 ../src/guestfs-structs.pod:175
29037 msgid "guestfs_version"
29038 msgstr ""
29039
29040 #. type: verbatim
29041 #: ../src/guestfs-actions.pod:7343
29042 #, no-wrap
29043 msgid ""
29044 " struct guestfs_version *\n"
29045 " guestfs_version (guestfs_h *g);\n"
29046 "\n"
29047 msgstr ""
29048
29049 #. type: textblock
29050 #: ../src/guestfs-actions.pod:7371
29051 msgid ""
29052 "I<Note:> Don't use this call to test for availability of features.  In "
29053 "enterprise distributions we backport features from later versions into "
29054 "earlier versions, making this an unreliable way to test for features.  Use "
29055 "C<guestfs_available> instead."
29056 msgstr ""
29057
29058 #. type: textblock
29059 #: ../src/guestfs-actions.pod:7377
29060 msgid ""
29061 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
29062 "error.  I<The caller must call C<guestfs_free_version> after use>."
29063 msgstr ""
29064
29065 #. type: textblock
29066 #: ../src/guestfs-actions.pod:7381
29067 msgid "(Added in 1.0.58)"
29068 msgstr ""
29069
29070 #. type: =head2
29071 #: ../src/guestfs-actions.pod:7383
29072 msgid "guestfs_vfs_label"
29073 msgstr ""
29074
29075 #. type: verbatim
29076 #: ../src/guestfs-actions.pod:7385
29077 #, no-wrap
29078 msgid ""
29079 " char *\n"
29080 " guestfs_vfs_label (guestfs_h *g,\n"
29081 "                    const char *device);\n"
29082 "\n"
29083 msgstr ""
29084
29085 #. type: textblock
29086 #: ../src/guestfs-actions.pod:7394
29087 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
29088 msgstr ""
29089
29090 #. type: textblock
29091 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7436
29092 msgid "(Added in 1.3.18)"
29093 msgstr ""
29094
29095 #. type: =head2
29096 #: ../src/guestfs-actions.pod:7401
29097 msgid "guestfs_vfs_type"
29098 msgstr ""
29099
29100 #. type: verbatim
29101 #: ../src/guestfs-actions.pod:7403
29102 #, no-wrap
29103 msgid ""
29104 " char *\n"
29105 " guestfs_vfs_type (guestfs_h *g,\n"
29106 "                   const char *device);\n"
29107 "\n"
29108 msgstr ""
29109
29110 #. type: =head2
29111 #: ../src/guestfs-actions.pod:7420
29112 msgid "guestfs_vfs_uuid"
29113 msgstr ""
29114
29115 #. type: verbatim
29116 #: ../src/guestfs-actions.pod:7422
29117 #, no-wrap
29118 msgid ""
29119 " char *\n"
29120 " guestfs_vfs_uuid (guestfs_h *g,\n"
29121 "                   const char *device);\n"
29122 "\n"
29123 msgstr ""
29124
29125 #. type: textblock
29126 #: ../src/guestfs-actions.pod:7431
29127 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
29128 msgstr ""
29129
29130 #. type: =head2
29131 #: ../src/guestfs-actions.pod:7438
29132 msgid "guestfs_vg_activate"
29133 msgstr ""
29134
29135 #. type: verbatim
29136 #: ../src/guestfs-actions.pod:7440
29137 #, no-wrap
29138 msgid ""
29139 " int\n"
29140 " guestfs_vg_activate (guestfs_h *g,\n"
29141 "                      int activate,\n"
29142 "                      char *const *volgroups);\n"
29143 "\n"
29144 msgstr ""
29145
29146 #. type: =head2
29147 #: ../src/guestfs-actions.pod:7457
29148 msgid "guestfs_vg_activate_all"
29149 msgstr ""
29150
29151 #. type: verbatim
29152 #: ../src/guestfs-actions.pod:7459
29153 #, no-wrap
29154 msgid ""
29155 " int\n"
29156 " guestfs_vg_activate_all (guestfs_h *g,\n"
29157 "                          int activate);\n"
29158 "\n"
29159 msgstr ""
29160
29161 #. type: =head2
29162 #: ../src/guestfs-actions.pod:7472
29163 msgid "guestfs_vgcreate"
29164 msgstr ""
29165
29166 #. type: verbatim
29167 #: ../src/guestfs-actions.pod:7474
29168 #, no-wrap
29169 msgid ""
29170 " int\n"
29171 " guestfs_vgcreate (guestfs_h *g,\n"
29172 "                   const char *volgroup,\n"
29173 "                   char *const *physvols);\n"
29174 "\n"
29175 msgstr ""
29176
29177 #. type: =head2
29178 #: ../src/guestfs-actions.pod:7486
29179 msgid "guestfs_vglvuuids"
29180 msgstr ""
29181
29182 #. type: verbatim
29183 #: ../src/guestfs-actions.pod:7488
29184 #, no-wrap
29185 msgid ""
29186 " char **\n"
29187 " guestfs_vglvuuids (guestfs_h *g,\n"
29188 "                    const char *vgname);\n"
29189 "\n"
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../src/guestfs-actions.pod:7495
29194 msgid ""
29195 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
29196 "associate logical volumes and volume groups."
29197 msgstr ""
29198
29199 #. type: textblock
29200 #: ../src/guestfs-actions.pod:7498
29201 msgid "See also C<guestfs_vgpvuuids>."
29202 msgstr ""
29203
29204 #. type: =head2
29205 #: ../src/guestfs-actions.pod:7506
29206 msgid "guestfs_vgpvuuids"
29207 msgstr ""
29208
29209 #. type: verbatim
29210 #: ../src/guestfs-actions.pod:7508
29211 #, no-wrap
29212 msgid ""
29213 " char **\n"
29214 " guestfs_vgpvuuids (guestfs_h *g,\n"
29215 "                    const char *vgname);\n"
29216 "\n"
29217 msgstr ""
29218
29219 #. type: textblock
29220 #: ../src/guestfs-actions.pod:7515
29221 msgid ""
29222 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29223 "associate physical volumes and volume groups."
29224 msgstr ""
29225
29226 #. type: textblock
29227 #: ../src/guestfs-actions.pod:7518
29228 msgid "See also C<guestfs_vglvuuids>."
29229 msgstr ""
29230
29231 #. type: =head2
29232 #: ../src/guestfs-actions.pod:7526
29233 msgid "guestfs_vgremove"
29234 msgstr ""
29235
29236 #. type: verbatim
29237 #: ../src/guestfs-actions.pod:7528
29238 #, no-wrap
29239 msgid ""
29240 " int\n"
29241 " guestfs_vgremove (guestfs_h *g,\n"
29242 "                   const char *vgname);\n"
29243 "\n"
29244 msgstr ""
29245
29246 #. type: =head2
29247 #: ../src/guestfs-actions.pod:7541
29248 msgid "guestfs_vgrename"
29249 msgstr ""
29250
29251 #. type: verbatim
29252 #: ../src/guestfs-actions.pod:7543
29253 #, no-wrap
29254 msgid ""
29255 " int\n"
29256 " guestfs_vgrename (guestfs_h *g,\n"
29257 "                   const char *volgroup,\n"
29258 "                   const char *newvolgroup);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: =head2
29263 #: ../src/guestfs-actions.pod:7554
29264 msgid "guestfs_vgs"
29265 msgstr ""
29266
29267 #. type: verbatim
29268 #: ../src/guestfs-actions.pod:7556
29269 #, no-wrap
29270 msgid ""
29271 " char **\n"
29272 " guestfs_vgs (guestfs_h *g);\n"
29273 "\n"
29274 msgstr ""
29275
29276 #. type: textblock
29277 #: ../src/guestfs-actions.pod:7565
29278 msgid "See also C<guestfs_vgs_full>."
29279 msgstr ""
29280
29281 #. type: =head2
29282 #: ../src/guestfs-actions.pod:7573
29283 msgid "guestfs_vgs_full"
29284 msgstr ""
29285
29286 #. type: verbatim
29287 #: ../src/guestfs-actions.pod:7575
29288 #, no-wrap
29289 msgid ""
29290 " struct guestfs_lvm_vg_list *\n"
29291 " guestfs_vgs_full (guestfs_h *g);\n"
29292 "\n"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:7581
29297 msgid ""
29298 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29299 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
29300 "use>."
29301 msgstr ""
29302
29303 #. type: =head2
29304 #: ../src/guestfs-actions.pod:7587
29305 msgid "guestfs_vgscan"
29306 msgstr ""
29307
29308 #. type: verbatim
29309 #: ../src/guestfs-actions.pod:7589
29310 #, no-wrap
29311 msgid ""
29312 " int\n"
29313 " guestfs_vgscan (guestfs_h *g);\n"
29314 "\n"
29315 msgstr ""
29316
29317 #. type: =head2
29318 #: ../src/guestfs-actions.pod:7599
29319 msgid "guestfs_vguuid"
29320 msgstr ""
29321
29322 #. type: verbatim
29323 #: ../src/guestfs-actions.pod:7601
29324 #, no-wrap
29325 msgid ""
29326 " char *\n"
29327 " guestfs_vguuid (guestfs_h *g,\n"
29328 "                 const char *vgname);\n"
29329 "\n"
29330 msgstr ""
29331
29332 #. type: =head2
29333 #: ../src/guestfs-actions.pod:7612
29334 msgid "guestfs_wait_ready"
29335 msgstr ""
29336
29337 #. type: verbatim
29338 #: ../src/guestfs-actions.pod:7614
29339 #, no-wrap
29340 msgid ""
29341 " int\n"
29342 " guestfs_wait_ready (guestfs_h *g);\n"
29343 "\n"
29344 msgstr ""
29345
29346 #. type: textblock
29347 #: ../src/guestfs-actions.pod:7617
29348 msgid ""
29349 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
29350 "instead."
29351 msgstr ""
29352
29353 #. type: textblock
29354 #: ../src/guestfs-actions.pod:7624
29355 msgid "This function is a no op."
29356 msgstr ""
29357
29358 #. type: textblock
29359 #: ../src/guestfs-actions.pod:7626
29360 msgid ""
29361 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29362 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29363 "is no longer necessary because C<guestfs_launch> now does the waiting."
29364 msgstr ""
29365
29366 #. type: textblock
29367 #: ../src/guestfs-actions.pod:7631
29368 msgid ""
29369 "If you see any calls to this function in code then you can just remove them, "
29370 "unless you want to retain compatibility with older versions of the API."
29371 msgstr ""
29372
29373 #. type: =head2
29374 #: ../src/guestfs-actions.pod:7639
29375 msgid "guestfs_wc_c"
29376 msgstr ""
29377
29378 #. type: verbatim
29379 #: ../src/guestfs-actions.pod:7641
29380 #, no-wrap
29381 msgid ""
29382 " int\n"
29383 " guestfs_wc_c (guestfs_h *g,\n"
29384 "               const char *path);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: =head2
29389 #: ../src/guestfs-actions.pod:7652
29390 msgid "guestfs_wc_l"
29391 msgstr ""
29392
29393 #. type: verbatim
29394 #: ../src/guestfs-actions.pod:7654
29395 #, no-wrap
29396 msgid ""
29397 " int\n"
29398 " guestfs_wc_l (guestfs_h *g,\n"
29399 "               const char *path);\n"
29400 "\n"
29401 msgstr ""
29402
29403 #. type: =head2
29404 #: ../src/guestfs-actions.pod:7665
29405 msgid "guestfs_wc_w"
29406 msgstr ""
29407
29408 #. type: verbatim
29409 #: ../src/guestfs-actions.pod:7667
29410 #, no-wrap
29411 msgid ""
29412 " int\n"
29413 " guestfs_wc_w (guestfs_h *g,\n"
29414 "               const char *path);\n"
29415 "\n"
29416 msgstr ""
29417
29418 #. type: =head2
29419 #: ../src/guestfs-actions.pod:7678
29420 msgid "guestfs_write"
29421 msgstr ""
29422
29423 #. type: verbatim
29424 #: ../src/guestfs-actions.pod:7680
29425 #, no-wrap
29426 msgid ""
29427 " int\n"
29428 " guestfs_write (guestfs_h *g,\n"
29429 "                const char *path,\n"
29430 "                const char *content,\n"
29431 "                size_t content_size);\n"
29432 "\n"
29433 msgstr ""
29434
29435 #. type: textblock
29436 #: ../src/guestfs-actions.pod:7689
29437 msgid "See also C<guestfs_write_append>."
29438 msgstr ""
29439
29440 #. type: =head2
29441 #: ../src/guestfs-actions.pod:7698
29442 msgid "guestfs_write_append"
29443 msgstr ""
29444
29445 #. type: verbatim
29446 #: ../src/guestfs-actions.pod:7700
29447 #, no-wrap
29448 msgid ""
29449 " int\n"
29450 " guestfs_write_append (guestfs_h *g,\n"
29451 "                       const char *path,\n"
29452 "                       const char *content,\n"
29453 "                       size_t content_size);\n"
29454 "\n"
29455 msgstr ""
29456
29457 #. type: textblock
29458 #: ../src/guestfs-actions.pod:7709
29459 msgid "See also C<guestfs_write>."
29460 msgstr ""
29461
29462 #. type: =head2
29463 #: ../src/guestfs-actions.pod:7718
29464 msgid "guestfs_write_file"
29465 msgstr ""
29466
29467 #. type: verbatim
29468 #: ../src/guestfs-actions.pod:7720
29469 #, no-wrap
29470 msgid ""
29471 " int\n"
29472 " guestfs_write_file (guestfs_h *g,\n"
29473 "                     const char *path,\n"
29474 "                     const char *content,\n"
29475 "                     int size);\n"
29476 "\n"
29477 msgstr ""
29478
29479 #. type: textblock
29480 #: ../src/guestfs-actions.pod:7726
29481 msgid ""
29482 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
29483 "instead."
29484 msgstr ""
29485
29486 #. type: =head2
29487 #: ../src/guestfs-actions.pod:7751
29488 msgid "guestfs_zegrep"
29489 msgstr ""
29490
29491 #. type: verbatim
29492 #: ../src/guestfs-actions.pod:7753
29493 #, no-wrap
29494 msgid ""
29495 " char **\n"
29496 " guestfs_zegrep (guestfs_h *g,\n"
29497 "                 const char *regex,\n"
29498 "                 const char *path);\n"
29499 "\n"
29500 msgstr ""
29501
29502 #. type: =head2
29503 #: ../src/guestfs-actions.pod:7770
29504 msgid "guestfs_zegrepi"
29505 msgstr ""
29506
29507 #. type: verbatim
29508 #: ../src/guestfs-actions.pod:7772
29509 #, no-wrap
29510 msgid ""
29511 " char **\n"
29512 " guestfs_zegrepi (guestfs_h *g,\n"
29513 "                  const char *regex,\n"
29514 "                  const char *path);\n"
29515 "\n"
29516 msgstr ""
29517
29518 #. type: =head2
29519 #: ../src/guestfs-actions.pod:7789
29520 msgid "guestfs_zero"
29521 msgstr ""
29522
29523 #. type: verbatim
29524 #: ../src/guestfs-actions.pod:7791
29525 #, no-wrap
29526 msgid ""
29527 " int\n"
29528 " guestfs_zero (guestfs_h *g,\n"
29529 "               const char *device);\n"
29530 "\n"
29531 msgstr ""
29532
29533 #. type: textblock
29534 #: ../src/guestfs-actions.pod:7805
29535 msgid ""
29536 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29537 "C<guestfs_is_zero_device>"
29538 msgstr ""
29539
29540 #. type: =head2
29541 #: ../src/guestfs-actions.pod:7817
29542 msgid "guestfs_zero_device"
29543 msgstr ""
29544
29545 #. type: verbatim
29546 #: ../src/guestfs-actions.pod:7819
29547 #, no-wrap
29548 msgid ""
29549 " int\n"
29550 " guestfs_zero_device (guestfs_h *g,\n"
29551 "                      const char *device);\n"
29552 "\n"
29553 msgstr ""
29554
29555 #. type: textblock
29556 #: ../src/guestfs-actions.pod:7823
29557 msgid ""
29558 "This command writes zeroes over the entire C<device>.  Compare with "
29559 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29560 msgstr ""
29561
29562 #. type: textblock
29563 #: ../src/guestfs-actions.pod:7841
29564 msgid "(Added in 1.3.1)"
29565 msgstr ""
29566
29567 #. type: =head2
29568 #: ../src/guestfs-actions.pod:7843
29569 msgid "guestfs_zerofree"
29570 msgstr ""
29571
29572 #. type: verbatim
29573 #: ../src/guestfs-actions.pod:7845
29574 #, no-wrap
29575 msgid ""
29576 " int\n"
29577 " guestfs_zerofree (guestfs_h *g,\n"
29578 "                   const char *device);\n"
29579 "\n"
29580 msgstr ""
29581
29582 #. type: =head2
29583 #: ../src/guestfs-actions.pod:7864
29584 msgid "guestfs_zfgrep"
29585 msgstr ""
29586
29587 #. type: verbatim
29588 #: ../src/guestfs-actions.pod:7866
29589 #, no-wrap
29590 msgid ""
29591 " char **\n"
29592 " guestfs_zfgrep (guestfs_h *g,\n"
29593 "                 const char *pattern,\n"
29594 "                 const char *path);\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: =head2
29599 #: ../src/guestfs-actions.pod:7883
29600 msgid "guestfs_zfgrepi"
29601 msgstr ""
29602
29603 #. type: verbatim
29604 #: ../src/guestfs-actions.pod:7885
29605 #, no-wrap
29606 msgid ""
29607 " char **\n"
29608 " guestfs_zfgrepi (guestfs_h *g,\n"
29609 "                  const char *pattern,\n"
29610 "                  const char *path);\n"
29611 "\n"
29612 msgstr ""
29613
29614 #. type: =head2
29615 #: ../src/guestfs-actions.pod:7902
29616 msgid "guestfs_zfile"
29617 msgstr ""
29618
29619 #. type: verbatim
29620 #: ../src/guestfs-actions.pod:7904
29621 #, no-wrap
29622 msgid ""
29623 " char *\n"
29624 " guestfs_zfile (guestfs_h *g,\n"
29625 "                const char *meth,\n"
29626 "                const char *path);\n"
29627 "\n"
29628 msgstr ""
29629
29630 #. type: textblock
29631 #: ../src/guestfs-actions.pod:7909
29632 msgid ""
29633 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
29634 "instead."
29635 msgstr ""
29636
29637 #. type: textblock
29638 #: ../src/guestfs-actions.pod:7921
29639 msgid ""
29640 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29641 "files."
29642 msgstr ""
29643
29644 #. type: =head2
29645 #: ../src/guestfs-actions.pod:7929
29646 msgid "guestfs_zgrep"
29647 msgstr ""
29648
29649 #. type: verbatim
29650 #: ../src/guestfs-actions.pod:7931
29651 #, no-wrap
29652 msgid ""
29653 " char **\n"
29654 " guestfs_zgrep (guestfs_h *g,\n"
29655 "                const char *regex,\n"
29656 "                const char *path);\n"
29657 "\n"
29658 msgstr ""
29659
29660 #. type: =head2
29661 #: ../src/guestfs-actions.pod:7948
29662 msgid "guestfs_zgrepi"
29663 msgstr ""
29664
29665 #. type: verbatim
29666 #: ../src/guestfs-actions.pod:7950
29667 #, no-wrap
29668 msgid ""
29669 " char **\n"
29670 " guestfs_zgrepi (guestfs_h *g,\n"
29671 "                 const char *regex,\n"
29672 "                 const char *path);\n"
29673 "\n"
29674 msgstr ""
29675
29676 #. type: =item
29677 #: ../src/guestfs-availability.pod:3
29678 msgid "B<augeas>"
29679 msgstr ""
29680
29681 #. type: textblock
29682 #: ../src/guestfs-availability.pod:5
29683 msgid ""
29684 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29685 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29686 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29687 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29688 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29689 msgstr ""
29690
29691 #. type: =item
29692 #: ../src/guestfs-availability.pod:21
29693 msgid "B<btrfs>"
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-availability.pod:23
29698 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29699 msgstr ""
29700
29701 #. type: =item
29702 #: ../src/guestfs-availability.pod:26
29703 msgid "B<grub>"
29704 msgstr ""
29705
29706 #. type: textblock
29707 #: ../src/guestfs-availability.pod:28
29708 msgid "The following functions: L</guestfs_grub_install>"
29709 msgstr ""
29710
29711 #. type: =item
29712 #: ../src/guestfs-availability.pod:31
29713 msgid "B<inotify>"
29714 msgstr ""
29715
29716 #. type: textblock
29717 #: ../src/guestfs-availability.pod:33
29718 msgid ""
29719 "The following functions: L</guestfs_inotify_add_watch> "
29720 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
29721 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
29722 msgstr ""
29723
29724 #. type: =item
29725 #: ../src/guestfs-availability.pod:41
29726 msgid "B<linuxfsuuid>"
29727 msgstr ""
29728
29729 #. type: textblock
29730 #: ../src/guestfs-availability.pod:43
29731 msgid ""
29732 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
29733 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
29734 msgstr ""
29735
29736 #. type: =item
29737 #: ../src/guestfs-availability.pod:50
29738 msgid "B<linuxmodules>"
29739 msgstr ""
29740
29741 #. type: textblock
29742 #: ../src/guestfs-availability.pod:52
29743 msgid "The following functions: L</guestfs_modprobe>"
29744 msgstr ""
29745
29746 #. type: =item
29747 #: ../src/guestfs-availability.pod:55
29748 msgid "B<linuxxattrs>"
29749 msgstr ""
29750
29751 #. type: textblock
29752 #: ../src/guestfs-availability.pod:57
29753 msgid ""
29754 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
29755 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
29756 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
29757 "L</guestfs_setxattr>"
29758 msgstr ""
29759
29760 #. type: =item
29761 #: ../src/guestfs-availability.pod:68
29762 msgid "B<luks>"
29763 msgstr ""
29764
29765 #. type: textblock
29766 #: ../src/guestfs-availability.pod:70
29767 msgid ""
29768 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
29769 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
29770 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
29771 msgstr ""
29772
29773 #. type: =item
29774 #: ../src/guestfs-availability.pod:79
29775 msgid "B<lvm2>"
29776 msgstr ""
29777
29778 #. type: textblock
29779 #: ../src/guestfs-availability.pod:81
29780 msgid ""
29781 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
29782 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
29783 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
29784 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
29785 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
29786 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
29787 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
29788 "L</guestfs_vgs_full>"
29789 msgstr ""
29790
29791 #. type: =item
29792 #: ../src/guestfs-availability.pod:104
29793 msgid "B<mknod>"
29794 msgstr ""
29795
29796 #. type: textblock
29797 #: ../src/guestfs-availability.pod:106
29798 msgid ""
29799 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
29800 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
29801 msgstr ""
29802
29803 #. type: =item
29804 #: ../src/guestfs-availability.pod:112
29805 msgid "B<ntfs3g>"
29806 msgstr ""
29807
29808 #. type: textblock
29809 #: ../src/guestfs-availability.pod:114
29810 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
29811 msgstr ""
29812
29813 #. type: =item
29814 #: ../src/guestfs-availability.pod:117
29815 msgid "B<ntfsprogs>"
29816 msgstr ""
29817
29818 #. type: textblock
29819 #: ../src/guestfs-availability.pod:119
29820 msgid ""
29821 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
29822 "L</guestfs_ntfsresize_size>"
29823 msgstr ""
29824
29825 #. type: =item
29826 #: ../src/guestfs-availability.pod:124
29827 msgid "B<realpath>"
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-availability.pod:126
29832 msgid "The following functions: L</guestfs_realpath>"
29833 msgstr ""
29834
29835 #. type: =item
29836 #: ../src/guestfs-availability.pod:129
29837 msgid "B<scrub>"
29838 msgstr ""
29839
29840 #. type: textblock
29841 #: ../src/guestfs-availability.pod:131
29842 msgid ""
29843 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
29844 "L</guestfs_scrub_freespace>"
29845 msgstr ""
29846
29847 #. type: =item
29848 #: ../src/guestfs-availability.pod:136
29849 msgid "B<selinux>"
29850 msgstr ""
29851
29852 #. type: textblock
29853 #: ../src/guestfs-availability.pod:138
29854 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
29855 msgstr ""
29856
29857 #. type: =item
29858 #: ../src/guestfs-availability.pod:142
29859 msgid "B<xz>"
29860 msgstr ""
29861
29862 #. type: textblock
29863 #: ../src/guestfs-availability.pod:144
29864 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
29865 msgstr ""
29866
29867 #. type: =item
29868 #: ../src/guestfs-availability.pod:148
29869 msgid "B<zerofree>"
29870 msgstr ""
29871
29872 #. type: textblock
29873 #: ../src/guestfs-availability.pod:150
29874 msgid "The following functions: L</guestfs_zerofree>"
29875 msgstr ""
29876
29877 #. type: =head2
29878 #: ../src/guestfs-structs.pod:1
29879 msgid "guestfs_int_bool"
29880 msgstr ""
29881
29882 #. type: verbatim
29883 #: ../src/guestfs-structs.pod:3
29884 #, no-wrap
29885 msgid ""
29886 " struct guestfs_int_bool {\n"
29887 "   int32_t i;\n"
29888 "   int32_t b;\n"
29889 " };\n"
29890 " \n"
29891 msgstr ""
29892
29893 #. type: verbatim
29894 #: ../src/guestfs-structs.pod:8
29895 #, no-wrap
29896 msgid ""
29897 " struct guestfs_int_bool_list {\n"
29898 "   uint32_t len; /* Number of elements in list. */\n"
29899 "   struct guestfs_int_bool *val; /* Elements. */\n"
29900 " };\n"
29901 " \n"
29902 msgstr ""
29903
29904 #. type: verbatim
29905 #: ../src/guestfs-structs.pod:13
29906 #, no-wrap
29907 msgid ""
29908 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
29909 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
29910 "\n"
29911 msgstr ""
29912
29913 #. type: =head2
29914 #: ../src/guestfs-structs.pod:16
29915 msgid "guestfs_lvm_pv"
29916 msgstr ""
29917
29918 #. type: verbatim
29919 #: ../src/guestfs-structs.pod:18
29920 #, no-wrap
29921 msgid ""
29922 " struct guestfs_lvm_pv {\n"
29923 "   char *pv_name;\n"
29924 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29925 "*/\n"
29926 "   char pv_uuid[32];\n"
29927 "   char *pv_fmt;\n"
29928 "   uint64_t pv_size;\n"
29929 "   uint64_t dev_size;\n"
29930 "   uint64_t pv_free;\n"
29931 "   uint64_t pv_used;\n"
29932 "   char *pv_attr;\n"
29933 "   int64_t pv_pe_count;\n"
29934 "   int64_t pv_pe_alloc_count;\n"
29935 "   char *pv_tags;\n"
29936 "   uint64_t pe_start;\n"
29937 "   int64_t pv_mda_count;\n"
29938 "   uint64_t pv_mda_free;\n"
29939 " };\n"
29940 " \n"
29941 msgstr ""
29942
29943 #. type: verbatim
29944 #: ../src/guestfs-structs.pod:36
29945 #, no-wrap
29946 msgid ""
29947 " struct guestfs_lvm_pv_list {\n"
29948 "   uint32_t len; /* Number of elements in list. */\n"
29949 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
29950 " };\n"
29951 " \n"
29952 msgstr ""
29953
29954 #. type: verbatim
29955 #: ../src/guestfs-structs.pod:41
29956 #, no-wrap
29957 msgid ""
29958 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
29959 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
29960 "\n"
29961 msgstr ""
29962
29963 #. type: =head2
29964 #: ../src/guestfs-structs.pod:44
29965 msgid "guestfs_lvm_vg"
29966 msgstr ""
29967
29968 #. type: verbatim
29969 #: ../src/guestfs-structs.pod:46
29970 #, no-wrap
29971 msgid ""
29972 " struct guestfs_lvm_vg {\n"
29973 "   char *vg_name;\n"
29974 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29975 "*/\n"
29976 "   char vg_uuid[32];\n"
29977 "   char *vg_fmt;\n"
29978 "   char *vg_attr;\n"
29979 "   uint64_t vg_size;\n"
29980 "   uint64_t vg_free;\n"
29981 "   char *vg_sysid;\n"
29982 "   uint64_t vg_extent_size;\n"
29983 "   int64_t vg_extent_count;\n"
29984 "   int64_t vg_free_count;\n"
29985 "   int64_t max_lv;\n"
29986 "   int64_t max_pv;\n"
29987 "   int64_t pv_count;\n"
29988 "   int64_t lv_count;\n"
29989 "   int64_t snap_count;\n"
29990 "   int64_t vg_seqno;\n"
29991 "   char *vg_tags;\n"
29992 "   int64_t vg_mda_count;\n"
29993 "   uint64_t vg_mda_free;\n"
29994 " };\n"
29995 " \n"
29996 msgstr ""
29997
29998 #. type: verbatim
29999 #: ../src/guestfs-structs.pod:69
30000 #, no-wrap
30001 msgid ""
30002 " struct guestfs_lvm_vg_list {\n"
30003 "   uint32_t len; /* Number of elements in list. */\n"
30004 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
30005 " };\n"
30006 " \n"
30007 msgstr ""
30008
30009 #. type: verbatim
30010 #: ../src/guestfs-structs.pod:74
30011 #, no-wrap
30012 msgid ""
30013 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
30014 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
30015 "\n"
30016 msgstr ""
30017
30018 #. type: =head2
30019 #: ../src/guestfs-structs.pod:77
30020 msgid "guestfs_lvm_lv"
30021 msgstr ""
30022
30023 #. type: verbatim
30024 #: ../src/guestfs-structs.pod:79
30025 #, no-wrap
30026 msgid ""
30027 " struct guestfs_lvm_lv {\n"
30028 "   char *lv_name;\n"
30029 "   /* The next field is NOT nul-terminated, be careful when printing it: "
30030 "*/\n"
30031 "   char lv_uuid[32];\n"
30032 "   char *lv_attr;\n"
30033 "   int64_t lv_major;\n"
30034 "   int64_t lv_minor;\n"
30035 "   int64_t lv_kernel_major;\n"
30036 "   int64_t lv_kernel_minor;\n"
30037 "   uint64_t lv_size;\n"
30038 "   int64_t seg_count;\n"
30039 "   char *origin;\n"
30040 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30041 "   float snap_percent;\n"
30042 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
30043 "   float copy_percent;\n"
30044 "   char *move_pv;\n"
30045 "   char *lv_tags;\n"
30046 "   char *mirror_log;\n"
30047 "   char *modules;\n"
30048 " };\n"
30049 " \n"
30050 msgstr ""
30051
30052 #. type: verbatim
30053 #: ../src/guestfs-structs.pod:101
30054 #, no-wrap
30055 msgid ""
30056 " struct guestfs_lvm_lv_list {\n"
30057 "   uint32_t len; /* Number of elements in list. */\n"
30058 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
30059 " };\n"
30060 " \n"
30061 msgstr ""
30062
30063 #. type: verbatim
30064 #: ../src/guestfs-structs.pod:106
30065 #, no-wrap
30066 msgid ""
30067 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
30068 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
30069 "\n"
30070 msgstr ""
30071
30072 #. type: verbatim
30073 #: ../src/guestfs-structs.pod:111
30074 #, no-wrap
30075 msgid ""
30076 " struct guestfs_stat {\n"
30077 "   int64_t dev;\n"
30078 "   int64_t ino;\n"
30079 "   int64_t mode;\n"
30080 "   int64_t nlink;\n"
30081 "   int64_t uid;\n"
30082 "   int64_t gid;\n"
30083 "   int64_t rdev;\n"
30084 "   int64_t size;\n"
30085 "   int64_t blksize;\n"
30086 "   int64_t blocks;\n"
30087 "   int64_t atime;\n"
30088 "   int64_t mtime;\n"
30089 "   int64_t ctime;\n"
30090 " };\n"
30091 " \n"
30092 msgstr ""
30093
30094 #. type: verbatim
30095 #: ../src/guestfs-structs.pod:127
30096 #, no-wrap
30097 msgid ""
30098 " struct guestfs_stat_list {\n"
30099 "   uint32_t len; /* Number of elements in list. */\n"
30100 "   struct guestfs_stat *val; /* Elements. */\n"
30101 " };\n"
30102 " \n"
30103 msgstr ""
30104
30105 #. type: verbatim
30106 #: ../src/guestfs-structs.pod:132
30107 #, no-wrap
30108 msgid ""
30109 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
30110 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
30111 "\n"
30112 msgstr ""
30113
30114 #. type: verbatim
30115 #: ../src/guestfs-structs.pod:137
30116 #, no-wrap
30117 msgid ""
30118 " struct guestfs_statvfs {\n"
30119 "   int64_t bsize;\n"
30120 "   int64_t frsize;\n"
30121 "   int64_t blocks;\n"
30122 "   int64_t bfree;\n"
30123 "   int64_t bavail;\n"
30124 "   int64_t files;\n"
30125 "   int64_t ffree;\n"
30126 "   int64_t favail;\n"
30127 "   int64_t fsid;\n"
30128 "   int64_t flag;\n"
30129 "   int64_t namemax;\n"
30130 " };\n"
30131 " \n"
30132 msgstr ""
30133
30134 #. type: verbatim
30135 #: ../src/guestfs-structs.pod:151
30136 #, no-wrap
30137 msgid ""
30138 " struct guestfs_statvfs_list {\n"
30139 "   uint32_t len; /* Number of elements in list. */\n"
30140 "   struct guestfs_statvfs *val; /* Elements. */\n"
30141 " };\n"
30142 " \n"
30143 msgstr ""
30144
30145 #. type: verbatim
30146 #: ../src/guestfs-structs.pod:156
30147 #, no-wrap
30148 msgid ""
30149 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
30150 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
30151 "\n"
30152 msgstr ""
30153
30154 #. type: =head2
30155 #: ../src/guestfs-structs.pod:159
30156 msgid "guestfs_dirent"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../src/guestfs-structs.pod:161
30161 #, no-wrap
30162 msgid ""
30163 " struct guestfs_dirent {\n"
30164 "   int64_t ino;\n"
30165 "   char ftyp;\n"
30166 "   char *name;\n"
30167 " };\n"
30168 " \n"
30169 msgstr ""
30170
30171 #. type: verbatim
30172 #: ../src/guestfs-structs.pod:167
30173 #, no-wrap
30174 msgid ""
30175 " struct guestfs_dirent_list {\n"
30176 "   uint32_t len; /* Number of elements in list. */\n"
30177 "   struct guestfs_dirent *val; /* Elements. */\n"
30178 " };\n"
30179 " \n"
30180 msgstr ""
30181
30182 #. type: verbatim
30183 #: ../src/guestfs-structs.pod:172
30184 #, no-wrap
30185 msgid ""
30186 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
30187 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
30188 "\n"
30189 msgstr ""
30190
30191 #. type: verbatim
30192 #: ../src/guestfs-structs.pod:177
30193 #, no-wrap
30194 msgid ""
30195 " struct guestfs_version {\n"
30196 "   int64_t major;\n"
30197 "   int64_t minor;\n"
30198 "   int64_t release;\n"
30199 "   char *extra;\n"
30200 " };\n"
30201 " \n"
30202 msgstr ""
30203
30204 #. type: verbatim
30205 #: ../src/guestfs-structs.pod:184
30206 #, no-wrap
30207 msgid ""
30208 " struct guestfs_version_list {\n"
30209 "   uint32_t len; /* Number of elements in list. */\n"
30210 "   struct guestfs_version *val; /* Elements. */\n"
30211 " };\n"
30212 " \n"
30213 msgstr ""
30214
30215 #. type: verbatim
30216 #: ../src/guestfs-structs.pod:189
30217 #, no-wrap
30218 msgid ""
30219 " void guestfs_free_version (struct guestfs_free_version *);\n"
30220 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30221 "\n"
30222 msgstr ""
30223
30224 #. type: =head2
30225 #: ../src/guestfs-structs.pod:192
30226 msgid "guestfs_xattr"
30227 msgstr ""
30228
30229 #. type: verbatim
30230 #: ../src/guestfs-structs.pod:194
30231 #, no-wrap
30232 msgid ""
30233 " struct guestfs_xattr {\n"
30234 "   char *attrname;\n"
30235 "   /* The next two fields describe a byte array. */\n"
30236 "   uint32_t attrval_len;\n"
30237 "   char *attrval;\n"
30238 " };\n"
30239 " \n"
30240 msgstr ""
30241
30242 #. type: verbatim
30243 #: ../src/guestfs-structs.pod:201
30244 #, no-wrap
30245 msgid ""
30246 " struct guestfs_xattr_list {\n"
30247 "   uint32_t len; /* Number of elements in list. */\n"
30248 "   struct guestfs_xattr *val; /* Elements. */\n"
30249 " };\n"
30250 " \n"
30251 msgstr ""
30252
30253 #. type: verbatim
30254 #: ../src/guestfs-structs.pod:206
30255 #, no-wrap
30256 msgid ""
30257 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30258 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30259 "\n"
30260 msgstr ""
30261
30262 #. type: =head2
30263 #: ../src/guestfs-structs.pod:209
30264 msgid "guestfs_inotify_event"
30265 msgstr ""
30266
30267 #. type: verbatim
30268 #: ../src/guestfs-structs.pod:211
30269 #, no-wrap
30270 msgid ""
30271 " struct guestfs_inotify_event {\n"
30272 "   int64_t in_wd;\n"
30273 "   uint32_t in_mask;\n"
30274 "   uint32_t in_cookie;\n"
30275 "   char *in_name;\n"
30276 " };\n"
30277 " \n"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs-structs.pod:218
30282 #, no-wrap
30283 msgid ""
30284 " struct guestfs_inotify_event_list {\n"
30285 "   uint32_t len; /* Number of elements in list. */\n"
30286 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30287 " };\n"
30288 " \n"
30289 msgstr ""
30290
30291 #. type: verbatim
30292 #: ../src/guestfs-structs.pod:223
30293 #, no-wrap
30294 msgid ""
30295 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30296 " void guestfs_free_inotify_event_list (struct "
30297 "guestfs_free_inotify_event_list *);\n"
30298 "\n"
30299 msgstr ""
30300
30301 #. type: =head2
30302 #: ../src/guestfs-structs.pod:226
30303 msgid "guestfs_partition"
30304 msgstr ""
30305
30306 #. type: verbatim
30307 #: ../src/guestfs-structs.pod:228
30308 #, no-wrap
30309 msgid ""
30310 " struct guestfs_partition {\n"
30311 "   int32_t part_num;\n"
30312 "   uint64_t part_start;\n"
30313 "   uint64_t part_end;\n"
30314 "   uint64_t part_size;\n"
30315 " };\n"
30316 " \n"
30317 msgstr ""
30318
30319 #. type: verbatim
30320 #: ../src/guestfs-structs.pod:235
30321 #, no-wrap
30322 msgid ""
30323 " struct guestfs_partition_list {\n"
30324 "   uint32_t len; /* Number of elements in list. */\n"
30325 "   struct guestfs_partition *val; /* Elements. */\n"
30326 " };\n"
30327 " \n"
30328 msgstr ""
30329
30330 #. type: verbatim
30331 #: ../src/guestfs-structs.pod:240
30332 #, no-wrap
30333 msgid ""
30334 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30335 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30336 "\n"
30337 msgstr ""
30338
30339 #. type: =head2
30340 #: ../src/guestfs-structs.pod:243
30341 msgid "guestfs_application"
30342 msgstr ""
30343
30344 #. type: verbatim
30345 #: ../src/guestfs-structs.pod:245
30346 #, no-wrap
30347 msgid ""
30348 " struct guestfs_application {\n"
30349 "   char *app_name;\n"
30350 "   char *app_display_name;\n"
30351 "   int32_t app_epoch;\n"
30352 "   char *app_version;\n"
30353 "   char *app_release;\n"
30354 "   char *app_install_path;\n"
30355 "   char *app_trans_path;\n"
30356 "   char *app_publisher;\n"
30357 "   char *app_url;\n"
30358 "   char *app_source_package;\n"
30359 "   char *app_summary;\n"
30360 "   char *app_description;\n"
30361 " };\n"
30362 " \n"
30363 msgstr ""
30364
30365 #. type: verbatim
30366 #: ../src/guestfs-structs.pod:260
30367 #, no-wrap
30368 msgid ""
30369 " struct guestfs_application_list {\n"
30370 "   uint32_t len; /* Number of elements in list. */\n"
30371 "   struct guestfs_application *val; /* Elements. */\n"
30372 " };\n"
30373 " \n"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs-structs.pod:265
30378 #, no-wrap
30379 msgid ""
30380 " void guestfs_free_application (struct guestfs_free_application *);\n"
30381 " void guestfs_free_application_list (struct guestfs_free_application_list "
30382 "*);\n"
30383 "\n"
30384 msgstr ""
30385
30386 #. type: textblock
30387 #: ../src/guestfs.pod:5
30388 msgid "guestfs - Library for accessing and modifying virtual machine images"
30389 msgstr ""
30390
30391 #. type: verbatim
30392 #: ../src/guestfs.pod:11
30393 #, no-wrap
30394 msgid ""
30395 " guestfs_h *g = guestfs_create ();\n"
30396 " guestfs_add_drive (g, \"guest.img\");\n"
30397 " guestfs_launch (g);\n"
30398 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30399 " guestfs_touch (g, \"/hello\");\n"
30400 " guestfs_umount (g, \"/\");\n"
30401 " guestfs_close (g);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: textblock
30406 #: ../src/guestfs.pod:25
30407 msgid ""
30408 "Libguestfs is a library for accessing and modifying guest disk images.  "
30409 "Amongst the things this is good for: making batch configuration changes to "
30410 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30411 "between virtualization systems (see also: virt-p2v), performing partial "
30412 "backups, performing partial guest clones, cloning guests and changing "
30413 "registry/UUID/hostname info, and much else besides."
30414 msgstr ""
30415
30416 #. type: textblock
30417 #: ../src/guestfs.pod:33
30418 msgid ""
30419 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30420 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30421 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30422 "qcow2, vmdk."
30423 msgstr ""
30424
30425 #. type: textblock
30426 #: ../src/guestfs.pod:38
30427 msgid ""
30428 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30429 "what filesystem is in each LV, etc.).  It can also run commands in the "
30430 "context of the guest.  Also you can access filesystems over FUSE."
30431 msgstr ""
30432
30433 #. type: textblock
30434 #: ../src/guestfs.pod:43
30435 msgid ""
30436 "Libguestfs is a library that can be linked with C and C++ management "
30437 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30438 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
30439 "command line."
30440 msgstr ""
30441
30442 #. type: textblock
30443 #: ../src/guestfs.pod:48
30444 msgid ""
30445 "You don't need to be root to use libguestfs, although obviously you do need "
30446 "enough permissions to access the disk images."
30447 msgstr ""
30448
30449 #. type: textblock
30450 #: ../src/guestfs.pod:51
30451 msgid ""
30452 "Libguestfs is a large API because it can do many things.  For a gentle "
30453 "introduction, please read the L</API OVERVIEW> section next."
30454 msgstr ""
30455
30456 #. type: textblock
30457 #: ../src/guestfs.pod:54
30458 msgid ""
30459 "There are also some example programs in the L<guestfs-examples(3)> manual "
30460 "page."
30461 msgstr ""
30462
30463 #. type: =head1
30464 #: ../src/guestfs.pod:57
30465 msgid "API OVERVIEW"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs.pod:59
30470 msgid ""
30471 "This section provides a gentler overview of the libguestfs API.  We also try "
30472 "to group API calls together, where that may not be obvious from reading "
30473 "about the individual calls in the main section of this manual."
30474 msgstr ""
30475
30476 #. type: =head2
30477 #: ../src/guestfs.pod:64
30478 msgid "HANDLES"
30479 msgstr ""
30480
30481 #. type: textblock
30482 #: ../src/guestfs.pod:66
30483 msgid ""
30484 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30485 "must add at least one disk image to the handle, followed by launching the "
30486 "handle, then performing whatever operations you want, and finally closing "
30487 "the handle.  By convention we use the single letter C<g> for the name of the "
30488 "handle variable, although of course you can use any name you want."
30489 msgstr ""
30490
30491 #. type: textblock
30492 #: ../src/guestfs.pod:73
30493 msgid "The general structure of all libguestfs-using programs looks like this:"
30494 msgstr ""
30495
30496 #. type: verbatim
30497 #: ../src/guestfs.pod:76
30498 #, no-wrap
30499 msgid ""
30500 " guestfs_h *g = guestfs_create ();\n"
30501 " \n"
30502 msgstr ""
30503
30504 #. type: verbatim
30505 #: ../src/guestfs.pod:78
30506 #, no-wrap
30507 msgid ""
30508 " /* Call guestfs_add_drive additional times if there are\n"
30509 "  * multiple disk images.\n"
30510 "  */\n"
30511 " guestfs_add_drive (g, \"guest.img\");\n"
30512 " \n"
30513 msgstr ""
30514
30515 #. type: verbatim
30516 #: ../src/guestfs.pod:83
30517 #, no-wrap
30518 msgid ""
30519 " /* Most manipulation calls won't work until you've launched\n"
30520 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30521 "  * and _before_ other commands.\n"
30522 "  */\n"
30523 " guestfs_launch (g);\n"
30524 " \n"
30525 msgstr ""
30526
30527 #. type: verbatim
30528 #: ../src/guestfs.pod:89
30529 #, no-wrap
30530 msgid ""
30531 " /* Now you can examine what partitions, LVs etc are available.\n"
30532 "  */\n"
30533 " char **partitions = guestfs_list_partitions (g);\n"
30534 " char **logvols = guestfs_lvs (g);\n"
30535 " \n"
30536 msgstr ""
30537
30538 #. type: verbatim
30539 #: ../src/guestfs.pod:94
30540 #, no-wrap
30541 msgid ""
30542 " /* To access a filesystem in the image, you must mount it.\n"
30543 "  */\n"
30544 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30545 " \n"
30546 msgstr ""
30547
30548 #. type: verbatim
30549 #: ../src/guestfs.pod:98
30550 #, no-wrap
30551 msgid ""
30552 " /* Now you can perform filesystem actions on the guest\n"
30553 "  * disk image.\n"
30554 "  */\n"
30555 " guestfs_touch (g, \"/hello\");\n"
30556 " \n"
30557 msgstr ""
30558
30559 #. type: verbatim
30560 #: ../src/guestfs.pod:103
30561 #, no-wrap
30562 msgid ""
30563 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30564 "  * it is done automatically when you close the handle.  See\n"
30565 "  * discussion of autosync in this page.\n"
30566 "  */\n"
30567 " guestfs_sync (g);\n"
30568 " \n"
30569 msgstr ""
30570
30571 #. type: verbatim
30572 #: ../src/guestfs.pod:109
30573 #, no-wrap
30574 msgid ""
30575 " /* Close the handle 'g'. */\n"
30576 " guestfs_close (g);\n"
30577 "\n"
30578 msgstr ""
30579
30580 #. type: textblock
30581 #: ../src/guestfs.pod:112
30582 msgid ""
30583 "The code above doesn't include any error checking.  In real code you should "
30584 "check return values carefully for errors.  In general all functions that "
30585 "return integers return C<-1> on error, and all functions that return "
30586 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30587 "how to handle errors, and consult the documentation for each function call "
30588 "below to see precisely how they return error indications.  See "
30589 "L<guestfs-examples(3)> for fully worked examples."
30590 msgstr ""
30591
30592 #. type: =head2
30593 #: ../src/guestfs.pod:121
30594 msgid "DISK IMAGES"
30595 msgstr ""
30596
30597 #. type: textblock
30598 #: ../src/guestfs.pod:123
30599 msgid ""
30600 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30601 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30602 "actual block device, or simply an empty file of zeroes that you have created "
30603 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30604 "of these."
30605 msgstr ""
30606
30607 #. type: textblock
30608 #: ../src/guestfs.pod:129
30609 msgid ""
30610 "The call you should use in modern code for adding drives is "
30611 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30612 "specifying that the format is raw, do:"
30613 msgstr ""
30614
30615 #. type: verbatim
30616 #: ../src/guestfs.pod:133
30617 #, no-wrap
30618 msgid ""
30619 " guestfs_add_drive_opts (g, filename,\n"
30620 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30621 "                         -1);\n"
30622 "\n"
30623 msgstr ""
30624
30625 #. type: textblock
30626 #: ../src/guestfs.pod:137
30627 msgid "You can add a disk read-only using:"
30628 msgstr ""
30629
30630 #. type: verbatim
30631 #: ../src/guestfs.pod:139
30632 #, no-wrap
30633 msgid ""
30634 " guestfs_add_drive_opts (g, filename,\n"
30635 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30636 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30637 "                         -1);\n"
30638 "\n"
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../src/guestfs.pod:144
30643 msgid ""
30644 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30645 "libguestfs won't modify the file."
30646 msgstr ""
30647
30648 #. type: textblock
30649 #: ../src/guestfs.pod:147
30650 msgid ""
30651 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30652 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30653 "corruption, but adding it read-only is safe."
30654 msgstr ""
30655
30656 #. type: textblock
30657 #: ../src/guestfs.pod:151
30658 msgid ""
30659 "You must add at least one disk image, and you may add multiple disk images.  "
30660 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30661 "first one you added), C</dev/sdb> (for the second one you added), etc."
30662 msgstr ""
30663
30664 #. type: textblock
30665 #: ../src/guestfs.pod:156
30666 msgid ""
30667 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30668 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30669 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30670 msgstr ""
30671
30672 #. type: =head2
30673 #: ../src/guestfs.pod:161
30674 msgid "MOUNTING"
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs.pod:163
30679 msgid ""
30680 "Before you can read or write files, create directories and so on in a disk "
30681 "image that contains filesystems, you have to mount those filesystems using "
30682 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30683 "a disk image contains (for example) one partition with a filesystem on that "
30684 "partition, then you can mount it directly:"
30685 msgstr ""
30686
30687 #. type: verbatim
30688 #: ../src/guestfs.pod:170
30689 #, no-wrap
30690 msgid ""
30691 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30692 "\n"
30693 msgstr ""
30694
30695 #. type: textblock
30696 #: ../src/guestfs.pod:172
30697 msgid ""
30698 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30699 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30700 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30701 "that these are libguestfs virtual devices, and are nothing to do with host "
30702 "devices."
30703 msgstr ""
30704
30705 #. type: textblock
30706 #: ../src/guestfs.pod:178
30707 msgid ""
30708 "If you are given a disk image and you don't know what it contains then you "
30709 "have to find out.  Libguestfs can do that too: use "
30710 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
30711 "and LVs, and either try mounting each to see what is mountable, or else "
30712 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
30713 "filesystems, use L</guestfs_list_filesystems>."
30714 msgstr ""
30715
30716 #. type: textblock
30717 #: ../src/guestfs.pod:186
30718 msgid ""
30719 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
30720 "L</INSPECTION> below).  But you might find it easier to look at higher level "
30721 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
30722 msgstr ""
30723
30724 #. type: textblock
30725 #: ../src/guestfs.pod:191
30726 msgid ""
30727 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
30728 "several other variations of the C<guestfs_mount_*> call."
30729 msgstr ""
30730
30731 #. type: =head2
30732 #: ../src/guestfs.pod:194
30733 msgid "FILESYSTEM ACCESS AND MODIFICATION"
30734 msgstr ""
30735
30736 #. type: textblock
30737 #: ../src/guestfs.pod:196
30738 msgid ""
30739 "The majority of the libguestfs API consists of fairly low-level calls for "
30740 "accessing and modifying the files, directories, symlinks etc on mounted "
30741 "filesystems.  There are over a hundred such calls which you can find listed "
30742 "in detail below in this man page, and we don't even pretend to cover them "
30743 "all in this overview."
30744 msgstr ""
30745
30746 #. type: textblock
30747 #: ../src/guestfs.pod:202
30748 msgid ""
30749 "Specify filenames as full paths, starting with C<\"/\"> and including the "
30750 "mount point."
30751 msgstr ""
30752
30753 #. type: textblock
30754 #: ../src/guestfs.pod:205
30755 msgid ""
30756 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
30757 "the file called C<\"etc/passwd\"> then you could do:"
30758 msgstr ""
30759
30760 #. type: verbatim
30761 #: ../src/guestfs.pod:208
30762 #, no-wrap
30763 msgid ""
30764 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
30765 "\n"
30766 msgstr ""
30767
30768 #. type: textblock
30769 #: ../src/guestfs.pod:210
30770 msgid ""
30771 "This would return C<data> as a newly allocated buffer containing the full "
30772 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
30773 "or C<NULL> if there was an error."
30774 msgstr ""
30775
30776 #. type: textblock
30777 #: ../src/guestfs.pod:214
30778 msgid ""
30779 "As another example, to create a top-level directory on that filesystem "
30780 "called C<\"var\"> you would do:"
30781 msgstr ""
30782
30783 #. type: verbatim
30784 #: ../src/guestfs.pod:217
30785 #, no-wrap
30786 msgid ""
30787 " guestfs_mkdir (g, \"/var\");\n"
30788 "\n"
30789 msgstr ""
30790
30791 #. type: textblock
30792 #: ../src/guestfs.pod:219
30793 msgid "To create a symlink you could do:"
30794 msgstr ""
30795
30796 #. type: verbatim
30797 #: ../src/guestfs.pod:221
30798 #, no-wrap
30799 msgid ""
30800 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
30801 "               \"/etc/rc3.d/S30portmap\");\n"
30802 "\n"
30803 msgstr ""
30804
30805 #. type: textblock
30806 #: ../src/guestfs.pod:224
30807 msgid ""
30808 "Libguestfs will reject attempts to use relative paths and there is no "
30809 "concept of a current working directory."
30810 msgstr ""
30811
30812 #. type: textblock
30813 #: ../src/guestfs.pod:227
30814 msgid ""
30815 "Libguestfs can return errors in many situations: for example if the "
30816 "filesystem isn't writable, or if a file or directory that you requested "
30817 "doesn't exist.  If you are using the C API (documented here)  you have to "
30818 "check for those error conditions after each call.  (Other language bindings "
30819 "turn these errors into exceptions)."
30820 msgstr ""
30821
30822 #. type: textblock
30823 #: ../src/guestfs.pod:233
30824 msgid ""
30825 "File writes are affected by the per-handle umask, set by calling "
30826 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
30827 msgstr ""
30828
30829 #. type: =head2
30830 #: ../src/guestfs.pod:236
30831 msgid "PARTITIONING"
30832 msgstr ""
30833
30834 #. type: textblock
30835 #: ../src/guestfs.pod:238
30836 msgid ""
30837 "Libguestfs contains API calls to read, create and modify partition tables on "
30838 "disk images."
30839 msgstr ""
30840
30841 #. type: textblock
30842 #: ../src/guestfs.pod:241
30843 msgid ""
30844 "In the common case where you want to create a single partition covering the "
30845 "whole disk, you should use the L</guestfs_part_disk> call:"
30846 msgstr ""
30847
30848 #. type: verbatim
30849 #: ../src/guestfs.pod:245
30850 #, no-wrap
30851 msgid ""
30852 " const char *parttype = \"mbr\";\n"
30853 " if (disk_is_larger_than_2TB)\n"
30854 "   parttype = \"gpt\";\n"
30855 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
30856 "\n"
30857 msgstr ""
30858
30859 #. type: textblock
30860 #: ../src/guestfs.pod:250
30861 msgid ""
30862 "Obviously this effectively wipes anything that was on that disk image "
30863 "before."
30864 msgstr ""
30865
30866 #. type: =head2
30867 #: ../src/guestfs.pod:253
30868 msgid "LVM2"
30869 msgstr ""
30870
30871 #. type: textblock
30872 #: ../src/guestfs.pod:255
30873 msgid ""
30874 "Libguestfs provides access to a large part of the LVM2 API, such as "
30875 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
30876 "unless you familiarize yourself with the concepts of physical volumes, "
30877 "volume groups and logical volumes."
30878 msgstr ""
30879
30880 #. type: textblock
30881 #: ../src/guestfs.pod:260
30882 msgid ""
30883 "This author strongly recommends reading the LVM HOWTO, online at "
30884 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
30885 msgstr ""
30886
30887 #. type: =head2
30888 #: ../src/guestfs.pod:263
30889 msgid "DOWNLOADING"
30890 msgstr ""
30891
30892 #. type: textblock
30893 #: ../src/guestfs.pod:265
30894 msgid ""
30895 "Use L</guestfs_cat> to download small, text only files.  This call is "
30896 "limited to files which are less than 2 MB and which cannot contain any ASCII "
30897 "NUL (C<\\0>) characters.  However the API is very simple to use."
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs.pod:269
30902 msgid ""
30903 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
30904 "bit data, since it returns a (pointer, size) pair.  However it is still "
30905 "limited to \"small\" files, less than 2 MB."
30906 msgstr ""
30907
30908 #. type: textblock
30909 #: ../src/guestfs.pod:273
30910 msgid ""
30911 "L</guestfs_download> can be used to download any file, with no limits on "
30912 "content or size (even files larger than 4 GB)."
30913 msgstr ""
30914
30915 #. type: textblock
30916 #: ../src/guestfs.pod:276
30917 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
30918 msgstr ""
30919
30920 #. type: =head2
30921 #: ../src/guestfs.pod:279
30922 msgid "UPLOADING"
30923 msgstr ""
30924
30925 #. type: textblock
30926 #: ../src/guestfs.pod:281
30927 msgid ""
30928 "It's often the case that you want to write a file or files to the disk "
30929 "image."
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs.pod:284
30934 msgid ""
30935 "To write a small file with fixed content, use L</guestfs_write>.  To create "
30936 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
30937 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
30938 "variety of other functions for creating test files, for example "
30939 "L</guestfs_fill> and L</guestfs_fill_pattern>."
30940 msgstr ""
30941
30942 #. type: textblock
30943 #: ../src/guestfs.pod:290
30944 msgid ""
30945 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
30946 "file content or size (even files larger than 4 GB)."
30947 msgstr ""
30948
30949 #. type: textblock
30950 #: ../src/guestfs.pod:293
30951 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
30952 msgstr ""
30953
30954 #. type: textblock
30955 #: ../src/guestfs.pod:295
30956 msgid ""
30957 "However the fastest way to upload I<large numbers of arbitrary files> is to "
30958 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
30959 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
30960 "the drive in a predictable way (eg. adding it last after all other drives) "
30961 "then you can get the device name from L</guestfs_list_devices> and mount it "
30962 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
30963 "sometimes non-portable between kernel versions, and they don't support "
30964 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
30965 "using a label or UUID, use an ISO image instead."
30966 msgstr ""
30967
30968 #. type: =head2
30969 #: ../src/guestfs.pod:306
30970 msgid "COPYING"
30971 msgstr ""
30972
30973 #. type: textblock
30974 #: ../src/guestfs.pod:308
30975 msgid ""
30976 "There are various different commands for copying between files and devices "
30977 "and in and out of the guest filesystem.  These are summarised in the table "
30978 "below."
30979 msgstr ""
30980
30981 #. type: =item
30982 #: ../src/guestfs.pod:314
30983 msgid "B<file> to B<file>"
30984 msgstr ""
30985
30986 #. type: textblock
30987 #: ../src/guestfs.pod:316
30988 msgid ""
30989 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
30990 "directories recursively."
30991 msgstr ""
30992
30993 #. type: =item
30994 #: ../src/guestfs.pod:319
30995 msgid "B<file or device> to B<file or device>"
30996 msgstr ""
30997
30998 #. type: textblock
30999 #: ../src/guestfs.pod:321
31000 msgid ""
31001 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
31002 "devices in the guest."
31003 msgstr ""
31004
31005 #. type: textblock
31006 #: ../src/guestfs.pod:324
31007 msgid "Example: duplicate the contents of an LV:"
31008 msgstr ""
31009
31010 #. type: verbatim
31011 #: ../src/guestfs.pod:326
31012 #, no-wrap
31013 msgid ""
31014 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
31015 "\n"
31016 msgstr ""
31017
31018 #. type: textblock
31019 #: ../src/guestfs.pod:328
31020 msgid ""
31021 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
31022 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
31023 "L</guestfs_copy_size>."
31024 msgstr ""
31025
31026 #. type: =item
31027 #: ../src/guestfs.pod:332
31028 msgid "B<file on the host> to B<file or device>"
31029 msgstr ""
31030
31031 #. type: textblock
31032 #: ../src/guestfs.pod:334
31033 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
31034 msgstr ""
31035
31036 #. type: =item
31037 #: ../src/guestfs.pod:336
31038 msgid "B<file or device> to B<file on the host>"
31039 msgstr ""
31040
31041 #. type: textblock
31042 #: ../src/guestfs.pod:338
31043 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
31044 msgstr ""
31045
31046 #. type: =head2
31047 #: ../src/guestfs.pod:342
31048 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
31049 msgstr ""
31050
31051 #. type: textblock
31052 #: ../src/guestfs.pod:344
31053 msgid ""
31054 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
31055 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
31056 "appears you can only upload and download to files.  However many Un*x-like "
31057 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
31058 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
31059 "stderr, and arbitrary file descriptor N."
31060 msgstr ""
31061
31062 #. type: textblock
31063 #: ../src/guestfs.pod:352
31064 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
31065 msgstr ""
31066
31067 #. type: verbatim
31068 #: ../src/guestfs.pod:355
31069 #, no-wrap
31070 msgid ""
31071 " guestfs_download (g, filename, \"/dev/stdout\");\n"
31072 "\n"
31073 msgstr ""
31074
31075 #. type: textblock
31076 #: ../src/guestfs.pod:357
31077 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
31078 msgstr ""
31079
31080 #. type: verbatim
31081 #: ../src/guestfs.pod:359
31082 #, no-wrap
31083 msgid ""
31084 " char devfd[64];\n"
31085 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
31086 " guestfs_tar_out (g, \"/\", devfd);\n"
31087 "\n"
31088 msgstr ""
31089
31090 #. type: =head2
31091 #: ../src/guestfs.pod:363
31092 msgid "LISTING FILES"
31093 msgstr ""
31094
31095 #. type: textblock
31096 #: ../src/guestfs.pod:365
31097 msgid ""
31098 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
31099 "L<guestfish(1)>-equivalent command C<ll>)."
31100 msgstr ""
31101
31102 #. type: textblock
31103 #: ../src/guestfs.pod:368
31104 msgid ""
31105 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
31106 "programs, as a flat list of strings."
31107 msgstr ""
31108
31109 #. type: textblock
31110 #: ../src/guestfs.pod:371
31111 msgid ""
31112 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
31113 "directory, plus additional information about each one.  It is more "
31114 "equivalent to using the L<readdir(3)> call on a local filesystem."
31115 msgstr ""
31116
31117 #. type: textblock
31118 #: ../src/guestfs.pod:375
31119 msgid ""
31120 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
31121 "files."
31122 msgstr ""
31123
31124 #. type: =head2
31125 #: ../src/guestfs.pod:378
31126 msgid "RUNNING COMMANDS"
31127 msgstr ""
31128
31129 #. type: textblock
31130 #: ../src/guestfs.pod:380
31131 msgid ""
31132 "Although libguestfs is primarily an API for manipulating files inside guest "
31133 "images, we also provide some limited facilities for running commands inside "
31134 "guests."
31135 msgstr ""
31136
31137 #. type: textblock
31138 #: ../src/guestfs.pod:384
31139 msgid "There are many limitations to this:"
31140 msgstr ""
31141
31142 #. type: textblock
31143 #: ../src/guestfs.pod:390
31144 msgid ""
31145 "The kernel version that the command runs under will be different from what "
31146 "it expects."
31147 msgstr ""
31148
31149 #. type: textblock
31150 #: ../src/guestfs.pod:395
31151 msgid ""
31152 "If the command needs to communicate with daemons, then most likely they "
31153 "won't be running."
31154 msgstr ""
31155
31156 #. type: textblock
31157 #: ../src/guestfs.pod:400
31158 msgid "The command will be running in limited memory."
31159 msgstr ""
31160
31161 #. type: textblock
31162 #: ../src/guestfs.pod:404
31163 msgid ""
31164 "The network may not be available unless you enable it (see "
31165 "L</guestfs_set_network>)."
31166 msgstr ""
31167
31168 #. type: textblock
31169 #: ../src/guestfs.pod:409
31170 msgid "Only supports Linux guests (not Windows, BSD, etc)."
31171 msgstr ""
31172
31173 #. type: textblock
31174 #: ../src/guestfs.pod:413
31175 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
31176 msgstr ""
31177
31178 #. type: textblock
31179 #: ../src/guestfs.pod:418
31180 msgid ""
31181 "For SELinux guests, you may need to enable SELinux and load policy first.  "
31182 "See L</SELINUX> in this manpage."
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs.pod:423
31187 msgid ""
31188 "I<Security:> It is not safe to run commands from untrusted, possibly "
31189 "malicious guests.  These commands may attempt to exploit your program by "
31190 "sending unexpected output.  They could also try to exploit the Linux kernel "
31191 "or qemu provided by the libguestfs appliance.  They could use the network "
31192 "provided by the libguestfs appliance to bypass ordinary network partitions "
31193 "and firewalls.  They could use the elevated privileges or different SELinux "
31194 "context of your program to their advantage."
31195 msgstr ""
31196
31197 #. type: textblock
31198 #: ../src/guestfs.pod:432
31199 msgid ""
31200 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
31201 "(a script which runs when the guest next boots normally), and to have this "
31202 "script run the commands you want in the normal context of the running guest, "
31203 "network security and so on.  For information about other security issues, "
31204 "see L</SECURITY>."
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs.pod:440
31209 msgid ""
31210 "The two main API calls to run commands are L</guestfs_command> and "
31211 "L</guestfs_sh> (there are also variations)."
31212 msgstr ""
31213
31214 #. type: textblock
31215 #: ../src/guestfs.pod:443
31216 msgid ""
31217 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31218 "shell globs, redirections, etc will work."
31219 msgstr ""
31220
31221 #. type: =head2
31222 #: ../src/guestfs.pod:446
31223 msgid "CONFIGURATION FILES"
31224 msgstr ""
31225
31226 #. type: textblock
31227 #: ../src/guestfs.pod:448
31228 msgid ""
31229 "To read and write configuration files in Linux guest filesystems, we "
31230 "strongly recommend using Augeas.  For example, Augeas understands how to "
31231 "read and write, say, a Linux shadow password file or X.org configuration "
31232 "file, and so avoids you having to write that code."
31233 msgstr ""
31234
31235 #. type: textblock
31236 #: ../src/guestfs.pod:453
31237 msgid ""
31238 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31239 "document Augeas itself here because there is excellent documentation on the "
31240 "L<http://augeas.net/> website."
31241 msgstr ""
31242
31243 #. type: textblock
31244 #: ../src/guestfs.pod:457
31245 msgid ""
31246 "If you don't want to use Augeas (you fool!) then try calling "
31247 "L</guestfs_read_lines> to get the file as a list of lines which you can "
31248 "iterate over."
31249 msgstr ""
31250
31251 #. type: =head2
31252 #: ../src/guestfs.pod:461
31253 msgid "SELINUX"
31254 msgstr ""
31255
31256 #. type: textblock
31257 #: ../src/guestfs.pod:463
31258 msgid ""
31259 "We support SELinux guests.  To ensure that labeling happens correctly in "
31260 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31261 msgstr ""
31262
31263 #. type: textblock
31264 #: ../src/guestfs.pod:471
31265 msgid "Before launching, do:"
31266 msgstr ""
31267
31268 #. type: verbatim
31269 #: ../src/guestfs.pod:473
31270 #, no-wrap
31271 msgid ""
31272 " guestfs_set_selinux (g, 1);\n"
31273 "\n"
31274 msgstr ""
31275
31276 #. type: textblock
31277 #: ../src/guestfs.pod:477
31278 msgid ""
31279 "After mounting the guest's filesystem(s), load the policy.  This is best "
31280 "done by running the L<load_policy(8)> command in the guest itself:"
31281 msgstr ""
31282
31283 #. type: verbatim
31284 #: ../src/guestfs.pod:481
31285 #, no-wrap
31286 msgid ""
31287 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31288 "\n"
31289 msgstr ""
31290
31291 #. type: textblock
31292 #: ../src/guestfs.pod:483
31293 msgid ""
31294 "(Older versions of C<load_policy> require you to specify the name of the "
31295 "policy file)."
31296 msgstr ""
31297
31298 #. type: textblock
31299 #: ../src/guestfs.pod:488
31300 msgid ""
31301 "Optionally, set the security context for the API.  The correct security "
31302 "context to use can only be known by inspecting the guest.  As an example:"
31303 msgstr ""
31304
31305 #. type: verbatim
31306 #: ../src/guestfs.pod:492
31307 #, no-wrap
31308 msgid ""
31309 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31310 "\n"
31311 msgstr ""
31312
31313 #. type: textblock
31314 #: ../src/guestfs.pod:496
31315 msgid "This will work for running commands and editing existing files."
31316 msgstr ""
31317
31318 #. type: textblock
31319 #: ../src/guestfs.pod:498
31320 msgid ""
31321 "When new files are created, you may need to label them explicitly, for "
31322 "example by running the external command C<restorecon pathname>."
31323 msgstr ""
31324
31325 #. type: =head2
31326 #: ../src/guestfs.pod:502
31327 msgid "UMASK"
31328 msgstr ""
31329
31330 #. type: textblock
31331 #: ../src/guestfs.pod:504
31332 msgid ""
31333 "Certain calls are affected by the current file mode creation mask (the "
31334 "\"umask\").  In particular ones which create files or directories, such as "
31335 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31336 "either the default mode that the file is created with or modifies the mode "
31337 "that you supply."
31338 msgstr ""
31339
31340 #. type: textblock
31341 #: ../src/guestfs.pod:510
31342 msgid ""
31343 "The default umask is C<022>, so files are created with modes such as C<0644> "
31344 "and directories with C<0755>."
31345 msgstr ""
31346
31347 #. type: textblock
31348 #: ../src/guestfs.pod:513
31349 msgid ""
31350 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31351 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
31352 "L</guestfs_chmod> after creating each file or directory."
31353 msgstr ""
31354
31355 #. type: textblock
31356 #: ../src/guestfs.pod:517
31357 msgid "For more information about umask, see L<umask(2)>."
31358 msgstr ""
31359
31360 #. type: textblock
31361 #: ../src/guestfs.pod:521
31362 msgid ""
31363 "Libguestfs allows you to access Linux guests which have been encrypted using "
31364 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31365 "standard.  This includes nearly all whole disk encryption systems used by "
31366 "modern Linux guests."
31367 msgstr ""
31368
31369 #. type: textblock
31370 #: ../src/guestfs.pod:527
31371 msgid ""
31372 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31373 "returns the string C<crypto_LUKS>)."
31374 msgstr ""
31375
31376 #. type: textblock
31377 #: ../src/guestfs.pod:530
31378 msgid ""
31379 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31380 "will require the passphrase!"
31381 msgstr ""
31382
31383 #. type: textblock
31384 #: ../src/guestfs.pod:533
31385 msgid ""
31386 "Opening a LUKS device creates a new device mapper device called "
31387 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
31388 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
31389 "decrypted from and encrypted to the underlying block device respectively."
31390 msgstr ""
31391
31392 #. type: textblock
31393 #: ../src/guestfs.pod:539
31394 msgid ""
31395 "LVM volume groups on the device can be made visible by calling "
31396 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
31397 "volume(s) can now be mounted in the usual way."
31398 msgstr ""
31399
31400 #. type: textblock
31401 #: ../src/guestfs.pod:543
31402 msgid ""
31403 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31404 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31405 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
31406 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31407 "underlying encrypted block device)."
31408 msgstr ""
31409
31410 #. type: =head2
31411 #: ../src/guestfs.pod:550
31412 msgid "INSPECTION"
31413 msgstr ""
31414
31415 #. type: textblock
31416 #: ../src/guestfs.pod:552
31417 msgid ""
31418 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31419 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31420 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31421 "version 1.5.3 the most frequently used part of this library has been "
31422 "rewritten in C and moved into the core code)."
31423 msgstr ""
31424
31425 #. type: textblock
31426 #: ../src/guestfs.pod:559
31427 msgid ""
31428 "Add all disks belonging to the unknown virtual machine and call "
31429 "L</guestfs_launch> in the usual way."
31430 msgstr ""
31431
31432 #. type: textblock
31433 #: ../src/guestfs.pod:562
31434 msgid ""
31435 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31436 "and certain heuristics, and returns a list of operating systems that were "
31437 "found.  An empty list means none were found.  A single element is the root "
31438 "filesystem of the operating system.  For dual- or multi-boot guests, "
31439 "multiple roots can be returned, each one corresponding to a separate "
31440 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31441 "world of virtualization, but since this scenario can happen, we have built "
31442 "libguestfs to deal with it.)"
31443 msgstr ""
31444
31445 #. type: textblock
31446 #: ../src/guestfs.pod:571
31447 msgid ""
31448 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31449 "to get additional details about that operating system.  For example, call "
31450 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31451 "Windows and Linux-based operating systems respectively."
31452 msgstr ""
31453
31454 #. type: textblock
31455 #: ../src/guestfs.pod:577
31456 msgid ""
31457 "Un*x-like and Linux-based operating systems usually consist of several "
31458 "filesystems which are mounted at boot time (for example, a separate boot "
31459 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31460 "filesystems correspond to mount points.  Call "
31461 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31462 "hash table like this example:"
31463 msgstr ""
31464
31465 #. type: verbatim
31466 #: ../src/guestfs.pod:584
31467 #, no-wrap
31468 msgid ""
31469 " /boot => /dev/sda1\n"
31470 " /     => /dev/vg_guest/lv_root\n"
31471 " /usr  => /dev/vg_guest/lv_usr\n"
31472 "\n"
31473 msgstr ""
31474
31475 #. type: textblock
31476 #: ../src/guestfs.pod:588
31477 msgid ""
31478 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31479 "filesystems as suggested."
31480 msgstr ""
31481
31482 #. type: textblock
31483 #: ../src/guestfs.pod:591
31484 msgid ""
31485 "Be careful to mount filesystems in the right order (eg. C</> before "
31486 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31487 "work."
31488 msgstr ""
31489
31490 #. type: textblock
31491 #: ../src/guestfs.pod:595
31492 msgid ""
31493 "Inspection currently only works for some common operating systems.  "
31494 "Contributors are welcome to send patches for other operating systems that we "
31495 "currently cannot detect."
31496 msgstr ""
31497
31498 #. type: textblock
31499 #: ../src/guestfs.pod:599
31500 msgid ""
31501 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31502 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31503 "encrypted devices."
31504 msgstr ""
31505
31506 #. type: textblock
31507 #: ../src/guestfs.pod:603
31508 msgid ""
31509 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31510 "inspection and caches the results in the guest handle.  Subsequent calls to "
31511 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31512 "re-read the disks.  If you change the content of the guest disks, you can "
31513 "redo inspection by calling L</guestfs_inspect_os> again.  "
31514 "(L</guestfs_inspect_list_applications> works a little differently from the "
31515 "other calls and does read the disks.  See documentation for that function "
31516 "for details)."
31517 msgstr ""
31518
31519 #. type: =head3
31520 #: ../src/guestfs.pod:612
31521 msgid "INSPECTING INSTALL DISKS"
31522 msgstr ""
31523
31524 #. type: textblock
31525 #: ../src/guestfs.pod:614
31526 msgid ""
31527 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31528 "CDs and more."
31529 msgstr ""
31530
31531 #. type: textblock
31532 #: ../src/guestfs.pod:617
31533 msgid ""
31534 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31535 "system, which currently can be C<installed> (a regular operating system) or "
31536 "C<installer> (some sort of install disk)."
31537 msgstr ""
31538
31539 #. type: textblock
31540 #: ../src/guestfs.pod:621
31541 msgid ""
31542 "Further information is available about the operating system that can be "
31543 "installed using the regular inspection APIs like "
31544 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31545 "etc."
31546 msgstr ""
31547
31548 #. type: textblock
31549 #: ../src/guestfs.pod:626
31550 msgid ""
31551 "Some additional information specific to installer disks is also available "
31552 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31553 "L</guestfs_inspect_is_multipart> calls."
31554 msgstr ""
31555
31556 #. type: =head2
31557 #: ../src/guestfs.pod:631
31558 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31559 msgstr ""
31560
31561 #. type: textblock
31562 #: ../src/guestfs.pod:633
31563 msgid ""
31564 "Libguestfs can mount NTFS partitions.  It does this using the "
31565 "L<http://www.ntfs-3g.org/> driver."
31566 msgstr ""
31567
31568 #. type: =head3
31569 #: ../src/guestfs.pod:636
31570 msgid "DRIVE LETTERS AND PATHS"
31571 msgstr ""
31572
31573 #. type: textblock
31574 #: ../src/guestfs.pod:638
31575 msgid ""
31576 "DOS and Windows still use drive letters, and the filesystems are always "
31577 "treated as case insensitive by Windows itself, and therefore you might find "
31578 "a Windows configuration file referring to a path like "
31579 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31580 "that directory might be referred to as C</WINDOWS/System32>."
31581 msgstr ""
31582
31583 #. type: textblock
31584 #: ../src/guestfs.pod:644
31585 msgid ""
31586 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31587 "L</guestfs_inspect_get_drive_mappings>)"
31588 msgstr ""
31589
31590 #. type: textblock
31591 #: ../src/guestfs.pod:647
31592 msgid ""
31593 "Dealing with separator characters (backslash vs forward slash) is outside "
31594 "the scope of libguestfs, but usually a simple character replacement will "
31595 "work."
31596 msgstr ""
31597
31598 #. type: textblock
31599 #: ../src/guestfs.pod:651
31600 msgid ""
31601 "To resolve the case insensitivity of paths, call "
31602 "L</guestfs_case_sensitive_path>."
31603 msgstr ""
31604
31605 #. type: =head3
31606 #: ../src/guestfs.pod:654
31607 msgid "ACCESSING THE WINDOWS REGISTRY"
31608 msgstr ""
31609
31610 #. type: textblock
31611 #: ../src/guestfs.pod:656
31612 msgid ""
31613 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31614 "files, through the library C<hivex> which is part of the libguestfs project "
31615 "although ships as a separate tarball.  You have to locate and download the "
31616 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31617 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31618 "L<virt-win-reg(1)> for more help on this issue."
31619 msgstr ""
31620
31621 #. type: =head3
31622 #: ../src/guestfs.pod:664
31623 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31624 msgstr ""
31625
31626 #. type: textblock
31627 #: ../src/guestfs.pod:666
31628 msgid ""
31629 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31630 "provide something which looks like a Linux symlink.  The way it tries to do "
31631 "the rewriting is described here:"
31632 msgstr ""
31633
31634 #. type: textblock
31635 #: ../src/guestfs.pod:670
31636 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31637 msgstr ""
31638
31639 #. type: textblock
31640 #: ../src/guestfs.pod:672
31641 msgid ""
31642 "The essential problem is that ntfs-3g simply does not have enough "
31643 "information to do a correct job.  NTFS links can contain drive letters and "
31644 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31645 "It is almost certainly the case that libguestfs callers should ignore what "
31646 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31647 msgstr ""
31648
31649 #. type: textblock
31650 #: ../src/guestfs.pod:679
31651 msgid ""
31652 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31653 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31654 "attribute, and read the raw reparse data from that (you can find the format "
31655 "documented in various places around the web)."
31656 msgstr ""
31657
31658 #. type: =head3
31659 #: ../src/guestfs.pod:684
31660 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31661 msgstr ""
31662
31663 #. type: textblock
31664 #: ../src/guestfs.pod:686
31665 msgid ""
31666 "There are other useful extended attributes that can be read from ntfs-3g "
31667 "filesystems (using L</guestfs_getxattr>).  See:"
31668 msgstr ""
31669
31670 #. type: textblock
31671 #: ../src/guestfs.pod:689
31672 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31673 msgstr ""
31674
31675 #. type: =head2
31676 #: ../src/guestfs.pod:691
31677 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31678 msgstr ""
31679
31680 #. type: textblock
31681 #: ../src/guestfs.pod:693
31682 msgid ""
31683 "Although we don't want to discourage you from using the C API, we will "
31684 "mention here that the same API is also available in other languages."
31685 msgstr ""
31686
31687 #. type: textblock
31688 #: ../src/guestfs.pod:696
31689 msgid ""
31690 "The API is broadly identical in all supported languages.  This means that "
31691 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31692 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31693 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31694 "each language."
31695 msgstr ""
31696
31697 #. type: textblock
31698 #: ../src/guestfs.pod:702
31699 msgid ""
31700 "Error messages are automatically transformed into exceptions if the language "
31701 "supports it."
31702 msgstr ""
31703
31704 #. type: textblock
31705 #: ../src/guestfs.pod:705
31706 msgid ""
31707 "We don't try to \"object orientify\" parts of the API in OO languages, "
31708 "although contributors are welcome to write higher level APIs above what we "
31709 "provide in their favourite languages if they wish."
31710 msgstr ""
31711
31712 #. type: =item
31713 #: ../src/guestfs.pod:711
31714 msgid "B<C++>"
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs.pod:713
31719 msgid ""
31720 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
31721 "identical to the C API.  C++ classes and exceptions are not used."
31722 msgstr ""
31723
31724 #. type: =item
31725 #: ../src/guestfs.pod:717
31726 msgid "B<C#>"
31727 msgstr ""
31728
31729 #. type: textblock
31730 #: ../src/guestfs.pod:719
31731 msgid ""
31732 "The C# bindings are highly experimental.  Please read the warnings at the "
31733 "top of C<csharp/Libguestfs.cs>."
31734 msgstr ""
31735
31736 #. type: =item
31737 #: ../src/guestfs.pod:722
31738 msgid "B<Erlang>"
31739 msgstr ""
31740
31741 #. type: textblock
31742 #: ../src/guestfs.pod:724
31743 msgid "See L<guestfs-erlang(3)>."
31744 msgstr ""
31745
31746 #. type: =item
31747 #: ../src/guestfs.pod:726
31748 msgid "B<Haskell>"
31749 msgstr ""
31750
31751 #. type: textblock
31752 #: ../src/guestfs.pod:728
31753 msgid ""
31754 "This is the only language binding that is working but incomplete.  Only "
31755 "calls which return simple integers have been bound in Haskell, and we are "
31756 "looking for help to complete this binding."
31757 msgstr ""
31758
31759 #. type: =item
31760 #: ../src/guestfs.pod:732
31761 msgid "B<Java>"
31762 msgstr ""
31763
31764 #. type: textblock
31765 #: ../src/guestfs.pod:734
31766 msgid ""
31767 "Full documentation is contained in the Javadoc which is distributed with "
31768 "libguestfs.  For examples, see L<guestfs-java(3)>."
31769 msgstr ""
31770
31771 #. type: =item
31772 #: ../src/guestfs.pod:737
31773 msgid "B<OCaml>"
31774 msgstr ""
31775
31776 #. type: textblock
31777 #: ../src/guestfs.pod:739
31778 msgid "See L<guestfs-ocaml(3)>."
31779 msgstr ""
31780
31781 #. type: =item
31782 #: ../src/guestfs.pod:741
31783 msgid "B<Perl>"
31784 msgstr ""
31785
31786 #. type: textblock
31787 #: ../src/guestfs.pod:743
31788 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
31789 msgstr ""
31790
31791 #. type: =item
31792 #: ../src/guestfs.pod:745
31793 msgid "B<PHP>"
31794 msgstr ""
31795
31796 #. type: textblock
31797 #: ../src/guestfs.pod:747
31798 msgid ""
31799 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
31800 "the php-libguestfs package for your distribution."
31801 msgstr ""
31802
31803 #. type: textblock
31804 #: ../src/guestfs.pod:750
31805 msgid "The PHP binding only works correctly on 64 bit machines."
31806 msgstr ""
31807
31808 #. type: =item
31809 #: ../src/guestfs.pod:752
31810 msgid "B<Python>"
31811 msgstr ""
31812
31813 #. type: textblock
31814 #: ../src/guestfs.pod:754
31815 msgid "See L<guestfs-python(3)>."
31816 msgstr ""
31817
31818 #. type: =item
31819 #: ../src/guestfs.pod:756
31820 msgid "B<Ruby>"
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:758
31825 msgid "See L<guestfs-ruby(3)>."
31826 msgstr ""
31827
31828 #. type: =item
31829 #: ../src/guestfs.pod:760
31830 msgid "B<shell scripts>"
31831 msgstr ""
31832
31833 #. type: textblock
31834 #: ../src/guestfs.pod:762
31835 msgid "See L<guestfish(1)>."
31836 msgstr ""
31837
31838 #. type: =head2
31839 #: ../src/guestfs.pod:766
31840 msgid "LIBGUESTFS GOTCHAS"
31841 msgstr ""
31842
31843 #. type: textblock
31844 #: ../src/guestfs.pod:768
31845 msgid ""
31846 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
31847 "system [...] that works in the way it is documented but is counterintuitive "
31848 "and almost invites mistakes.\""
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs.pod:772
31853 msgid ""
31854 "Since we developed libguestfs and the associated tools, there are several "
31855 "things we would have designed differently, but are now stuck with for "
31856 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
31857 "release, you can expect these to change.  Beware of them."
31858 msgstr ""
31859
31860 #. type: =item
31861 #: ../src/guestfs.pod:780
31862 msgid "Autosync / forgetting to sync."
31863 msgstr ""
31864
31865 #. type: textblock
31866 #: ../src/guestfs.pod:782
31867 msgid ""
31868 "I<Update:> Autosync is enabled by default for all API users starting from "
31869 "libguestfs 1.5.24.  This section only applies to older versions."
31870 msgstr ""
31871
31872 #. type: textblock
31873 #: ../src/guestfs.pod:785
31874 msgid ""
31875 "When modifying a filesystem from C or another language, you B<must> unmount "
31876 "all filesystems and call L</guestfs_sync> explicitly before you close the "
31877 "libguestfs handle.  You can also call:"
31878 msgstr ""
31879
31880 #. type: verbatim
31881 #: ../src/guestfs.pod:789
31882 #, no-wrap
31883 msgid ""
31884 " guestfs_set_autosync (g, 1);\n"
31885 "\n"
31886 msgstr ""
31887
31888 #. type: textblock
31889 #: ../src/guestfs.pod:791
31890 msgid ""
31891 "to have the unmount/sync done automatically for you when the handle 'g' is "
31892 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
31893 "q.v.)"
31894 msgstr ""
31895
31896 #. type: textblock
31897 #: ../src/guestfs.pod:795
31898 msgid ""
31899 "If you forget to do this, then it is entirely possible that your changes "
31900 "won't be written out, or will be partially written, or (very rarely) that "
31901 "you'll get disk corruption."
31902 msgstr ""
31903
31904 #. type: textblock
31905 #: ../src/guestfs.pod:799
31906 msgid ""
31907 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
31908 "guestfish scripts that forget to sync will work just fine, which can make "
31909 "this very puzzling if you are trying to debug a problem."
31910 msgstr ""
31911
31912 #. type: =item
31913 #: ../src/guestfs.pod:803
31914 msgid "Mount option C<-o sync> should not be the default."
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs.pod:805
31919 msgid ""
31920 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
31921 "However C<-o sync> does not add any reliability benefit, but does have a "
31922 "very large performance impact."
31923 msgstr ""
31924
31925 #. type: textblock
31926 #: ../src/guestfs.pod:809
31927 msgid ""
31928 "The work around is to use L</guestfs_mount_options> and set the mount "
31929 "options that you actually want to use."
31930 msgstr ""
31931
31932 #. type: =item
31933 #: ../src/guestfs.pod:812
31934 msgid "Read-only should be the default."
31935 msgstr ""
31936
31937 #. type: textblock
31938 #: ../src/guestfs.pod:814
31939 msgid ""
31940 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
31941 "specify I<--rw> if you want to make changes to the image."
31942 msgstr ""
31943
31944 #. type: textblock
31945 #: ../src/guestfs.pod:817
31946 msgid "This would reduce the potential to corrupt live VM images."
31947 msgstr ""
31948
31949 #. type: textblock
31950 #: ../src/guestfs.pod:819
31951 msgid ""
31952 "Note that many filesystems change the disk when you just mount and unmount, "
31953 "even if you didn't perform any writes.  You need to use "
31954 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
31955 msgstr ""
31956
31957 #. type: =item
31958 #: ../src/guestfs.pod:823
31959 msgid "guestfish command line is hard to use."
31960 msgstr ""
31961
31962 #. type: textblock
31963 #: ../src/guestfs.pod:825
31964 msgid ""
31965 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
31966 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
31967 "exist, so it fails.  In earlier versions of guestfish the error message was "
31968 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
31969 "we should have used C<guestfish -c command> to run commands."
31970 msgstr ""
31971
31972 #. type: =item
31973 #: ../src/guestfs.pod:832
31974 msgid "guestfish megabyte modifiers don't work right on all commands"
31975 msgstr ""
31976
31977 #. type: textblock
31978 #: ../src/guestfs.pod:834
31979 msgid ""
31980 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
31981 "other modifiers).  What guestfish actually does is to multiply the number "
31982 "part by the modifier part and pass the result to the C API.  However this "
31983 "doesn't work for a few APIs which aren't expecting bytes, but are already "
31984 "expecting some other unit (eg. megabytes)."
31985 msgstr ""
31986
31987 #. type: textblock
31988 #: ../src/guestfs.pod:841
31989 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
31990 msgstr ""
31991
31992 #. type: verbatim
31993 #: ../src/guestfs.pod:843
31994 #, no-wrap
31995 msgid ""
31996 " lvcreate LV VG 100M\n"
31997 "\n"
31998 msgstr ""
31999
32000 #. type: textblock
32001 #: ../src/guestfs.pod:845
32002 msgid ""
32003 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
32004 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
32005 "megabytes * megabytes) logical volume.  The error message you get from this "
32006 "is also a little obscure."
32007 msgstr ""
32008
32009 #. type: textblock
32010 #: ../src/guestfs.pod:850
32011 msgid ""
32012 "This could be fixed in the generator by specially marking parameters and "
32013 "return values which take bytes or other units."
32014 msgstr ""
32015
32016 #. type: =item
32017 #: ../src/guestfs.pod:853
32018 msgid "Ambiguity between devices and paths"
32019 msgstr ""
32020
32021 #. type: textblock
32022 #: ../src/guestfs.pod:855
32023 msgid ""
32024 "There is a subtle ambiguity in the API between a device name "
32025 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
32026 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
32027 msgstr ""
32028
32029 #. type: textblock
32030 #: ../src/guestfs.pod:860
32031 msgid ""
32032 "In the current API we usually resolve this ambiguity by having two separate "
32033 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
32034 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
32035 "detecting if the path supplied begins with C</dev/>."
32036 msgstr ""
32037
32038 #. type: textblock
32039 #: ../src/guestfs.pod:866
32040 msgid ""
32041 "To avoid both the ambiguity and the need to duplicate some calls, we could "
32042 "make paths/devices into structured names.  One way to do this would be to "
32043 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
32044 "aspect of grub.  Another way would be to use a structured type, equivalent "
32045 "to this OCaml type:"
32046 msgstr ""
32047
32048 #. type: verbatim
32049 #: ../src/guestfs.pod:872
32050 #, no-wrap
32051 msgid ""
32052 " type path = Path of string | Device of int | Partition of int * int\n"
32053 "\n"
32054 msgstr ""
32055
32056 #. type: textblock
32057 #: ../src/guestfs.pod:874
32058 msgid "which would allow you to pass arguments like:"
32059 msgstr ""
32060
32061 #. type: verbatim
32062 #: ../src/guestfs.pod:876
32063 #, no-wrap
32064 msgid ""
32065 " Path \"/foo/bar\"\n"
32066 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
32067 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
32068 " Path \"/dev/sdb2\"    (* not a device *)\n"
32069 "\n"
32070 msgstr ""
32071
32072 #. type: textblock
32073 #: ../src/guestfs.pod:881
32074 msgid ""
32075 "As you can see there are still problems to resolve even with this "
32076 "representation.  Also consider how it might work in guestfish."
32077 msgstr ""
32078
32079 #. type: =head2
32080 #: ../src/guestfs.pod:886
32081 msgid "KEYS AND PASSPHRASES"
32082 msgstr ""
32083
32084 #. type: textblock
32085 #: ../src/guestfs.pod:888
32086 msgid ""
32087 "Certain libguestfs calls take a parameter that contains sensitive key "
32088 "material, passed in as a C string."
32089 msgstr ""
32090
32091 #. type: textblock
32092 #: ../src/guestfs.pod:891
32093 msgid ""
32094 "In the future we would hope to change the libguestfs implementation so that "
32095 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
32096 "swap.  However this is I<not> done at the moment, because of the complexity "
32097 "of such an implementation."
32098 msgstr ""
32099
32100 #. type: textblock
32101 #: ../src/guestfs.pod:896
32102 msgid ""
32103 "Therefore you should be aware that any key parameter you pass to libguestfs "
32104 "might end up being written out to the swap partition.  If this is a concern, "
32105 "scrub the swap partition or don't use libguestfs on encrypted devices."
32106 msgstr ""
32107
32108 #. type: =head2
32109 #: ../src/guestfs.pod:901
32110 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
32111 msgstr ""
32112
32113 #. type: textblock
32114 #: ../src/guestfs.pod:903
32115 msgid ""
32116 "All high-level libguestfs actions are synchronous.  If you want to use "
32117 "libguestfs asynchronously then you must create a thread."
32118 msgstr ""
32119
32120 #. type: textblock
32121 #: ../src/guestfs.pod:906
32122 msgid ""
32123 "Only use the handle from a single thread.  Either use the handle exclusively "
32124 "from one thread, or provide your own mutex so that two threads cannot issue "
32125 "calls on the same handle at the same time."
32126 msgstr ""
32127
32128 #. type: textblock
32129 #: ../src/guestfs.pod:910
32130 msgid ""
32131 "See the graphical program guestfs-browser for one possible architecture for "
32132 "multithreaded programs using libvirt and libguestfs."
32133 msgstr ""
32134
32135 #. type: =head2
32136 #: ../src/guestfs.pod:913
32137 msgid "PATH"
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs.pod:915
32142 msgid ""
32143 "Libguestfs needs a supermin appliance, which it finds by looking along an "
32144 "internal path."
32145 msgstr ""
32146
32147 #. type: textblock
32148 #: ../src/guestfs.pod:918
32149 msgid ""
32150 "By default it looks for these in the directory C<$libdir/guestfs> "
32151 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
32152 msgstr ""
32153
32154 #. type: textblock
32155 #: ../src/guestfs.pod:921
32156 msgid ""
32157 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
32158 "to change the directories that libguestfs will search in.  The value is a "
32159 "colon-separated list of paths.  The current directory is I<not> searched "
32160 "unless the path contains an empty element or C<.>.  For example "
32161 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
32162 "then C</usr/lib/guestfs>."
32163 msgstr ""
32164
32165 #. type: =head2
32166 #: ../src/guestfs.pod:928
32167 msgid "QEMU WRAPPERS"
32168 msgstr ""
32169
32170 #. type: textblock
32171 #: ../src/guestfs.pod:930
32172 msgid ""
32173 "If you want to compile your own qemu, run qemu from a non-standard location, "
32174 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
32175 "around qemu."
32176 msgstr ""
32177
32178 #. type: textblock
32179 #: ../src/guestfs.pod:934
32180 msgid ""
32181 "There is one important rule to remember: you I<must C<exec qemu>> as the "
32182 "last command in the shell script (so that qemu replaces the shell and "
32183 "becomes the direct child of the libguestfs-using program).  If you don't do "
32184 "this, then the qemu process won't be cleaned up correctly."
32185 msgstr ""
32186
32187 #. type: textblock
32188 #: ../src/guestfs.pod:939
32189 msgid ""
32190 "Here is an example of a wrapper, where I have built my own copy of qemu from "
32191 "source:"
32192 msgstr ""
32193
32194 #. type: verbatim
32195 #: ../src/guestfs.pod:942
32196 #, no-wrap
32197 msgid ""
32198 " #!/bin/sh -\n"
32199 " qemudir=/home/rjones/d/qemu\n"
32200 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
32201 "\"$@\"\n"
32202 "\n"
32203 msgstr ""
32204
32205 #. type: textblock
32206 #: ../src/guestfs.pod:946
32207 msgid ""
32208 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
32209 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
32210 "example:"
32211 msgstr ""
32212
32213 #. type: verbatim
32214 #: ../src/guestfs.pod:950
32215 #, no-wrap
32216 msgid ""
32217 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
32218 "\n"
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../src/guestfs.pod:952
32223 msgid ""
32224 "Note that libguestfs also calls qemu with the -help and -version options in "
32225 "order to determine features."
32226 msgstr ""
32227
32228 #. type: =head2
32229 #: ../src/guestfs.pod:955
32230 msgid "ATTACHING TO RUNNING DAEMONS"
32231 msgstr ""
32232
32233 #. type: textblock
32234 #: ../src/guestfs.pod:957
32235 msgid ""
32236 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32237 "babies.  Use with caution."
32238 msgstr ""
32239
32240 #. type: textblock
32241 #: ../src/guestfs.pod:960
32242 msgid ""
32243 "I<Note (2):> This section explains how to attach to a running daemon from a "
32244 "low level perspective.  For most users, simply using virt tools such as "
32245 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32246 msgstr ""
32247
32248 #. type: =head3
32249 #: ../src/guestfs.pod:964
32250 msgid "Using guestfs_set_attach_method"
32251 msgstr ""
32252
32253 #. type: textblock
32254 #: ../src/guestfs.pod:966
32255 msgid ""
32256 "By calling L</guestfs_set_attach_method> you can change how the library "
32257 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
32258 "L</ARCHITECTURE> for some background)."
32259 msgstr ""
32260
32261 #. type: textblock
32262 #: ../src/guestfs.pod:970
32263 msgid ""
32264 "The normal attach method is C<appliance>, where a small appliance is created "
32265 "containing the daemon, and then the library connects to this."
32266 msgstr ""
32267
32268 #. type: textblock
32269 #: ../src/guestfs.pod:973
32270 msgid ""
32271 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32272 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32273 "daemon over the Unix domain socket."
32274 msgstr ""
32275
32276 #. type: textblock
32277 #: ../src/guestfs.pod:977
32278 msgid ""
32279 "The normal use for this is to connect to a running virtual machine that "
32280 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32281 "files inside the live virtual machine."
32282 msgstr ""
32283
32284 #. type: =head3
32285 #: ../src/guestfs.pod:981
32286 msgid "Using guestfs_add_domain with live flag"
32287 msgstr ""
32288
32289 #. type: textblock
32290 #: ../src/guestfs.pod:983
32291 msgid ""
32292 "L</guestfs_add_domain> provides some help for getting the correct attach "
32293 "method.  If you pass the C<live> option to this function, then (if the "
32294 "virtual machine is running) it will examine the libvirt XML looking for a "
32295 "virtio-serial channel to connect to:"
32296 msgstr ""
32297
32298 #. type: verbatim
32299 #: ../src/guestfs.pod:989
32300 #, no-wrap
32301 msgid ""
32302 " <domain>\n"
32303 "   ...\n"
32304 "   <devices>\n"
32305 "     ...\n"
32306 "     <channel type='unix'>\n"
32307 "       <source mode='bind' path='/path/to/socket'/>\n"
32308 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32309 "     </channel>\n"
32310 "     ...\n"
32311 "   </devices>\n"
32312 " </domain>\n"
32313 "\n"
32314 msgstr ""
32315
32316 #. type: textblock
32317 #: ../src/guestfs.pod:1001
32318 msgid ""
32319 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32320 "method to C<unix:/path/to/socket>."
32321 msgstr ""
32322
32323 #. type: textblock
32324 #: ../src/guestfs.pod:1004
32325 msgid ""
32326 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32327 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32328 "to attach to and modify live virtual machines."
32329 msgstr ""
32330
32331 #. type: textblock
32332 #: ../src/guestfs.pod:1008
32333 msgid ""
32334 "The virtual machine needs to have been set up beforehand so that it has the "
32335 "virtio-serial channel and so that guestfsd is running inside it."
32336 msgstr ""
32337
32338 #. type: =head2
32339 #: ../src/guestfs.pod:1012
32340 msgid "ABI GUARANTEE"
32341 msgstr ""
32342
32343 #. type: textblock
32344 #: ../src/guestfs.pod:1014
32345 msgid ""
32346 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32347 "actions as outlined in this section.  Although we will deprecate some "
32348 "actions, for example if they get replaced by newer calls, we will keep the "
32349 "old actions forever.  This allows you the developer to program in confidence "
32350 "against the libguestfs API."
32351 msgstr ""
32352
32353 #. type: =head2
32354 #: ../src/guestfs.pod:1020
32355 msgid "BLOCK DEVICE NAMING"
32356 msgstr ""
32357
32358 #. type: textblock
32359 #: ../src/guestfs.pod:1022
32360 msgid ""
32361 "In the kernel there is now quite a profusion of schemata for naming block "
32362 "devices (in this context, by I<block device> I mean a physical or virtual "
32363 "hard drive).  The original Linux IDE driver used names starting with "
32364 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
32365 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
32366 "replacement for the old IDE driver (particularly for SATA devices) those "
32367 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
32368 "machines with paravirtualized drivers.  This has created several different "
32369 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
32370 "Xen PV disks."
32371 msgstr ""
32372
32373 #. type: textblock
32374 #: ../src/guestfs.pod:1034
32375 msgid ""
32376 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32377 "Linux kernel to access block devices.  We can run a variety of appliances "
32378 "based on a variety of Linux kernels."
32379 msgstr ""
32380
32381 #. type: textblock
32382 #: ../src/guestfs.pod:1038
32383 msgid ""
32384 "This causes a problem for libguestfs because many API calls use device or "
32385 "partition names.  Working scripts and the recipe (example) scripts that we "
32386 "make available over the internet could fail if the naming scheme changes."
32387 msgstr ""
32388
32389 #. type: textblock
32390 #: ../src/guestfs.pod:1043
32391 msgid ""
32392 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32393 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32394 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32395 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32396 msgstr ""
32397
32398 #. type: textblock
32399 #: ../src/guestfs.pod:1049
32400 msgid ""
32401 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32402 "L</guestfs_list_partitions> and similar calls return the true names of the "
32403 "devices and partitions as known to the appliance."
32404 msgstr ""
32405
32406 #. type: =head3
32407 #: ../src/guestfs.pod:1054
32408 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32409 msgstr ""
32410
32411 #. type: textblock
32412 #: ../src/guestfs.pod:1056
32413 msgid ""
32414 "Usually this translation is transparent.  However in some (very rare)  cases "
32415 "you may need to know the exact algorithm.  Such cases include where you use "
32416 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
32417 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
32418 "devices."
32419 msgstr ""
32420
32421 #. type: textblock
32422 #: ../src/guestfs.pod:1062
32423 msgid ""
32424 "The algorithm is applied only to I<parameters> which are known to be either "
32425 "device or partition names.  Return values from functions such as "
32426 "L</guestfs_list_devices> are never changed."
32427 msgstr ""
32428
32429 #. type: textblock
32430 #: ../src/guestfs.pod:1070
32431 msgid "Is the string a parameter which is a device or partition name?"
32432 msgstr ""
32433
32434 #. type: textblock
32435 #: ../src/guestfs.pod:1074
32436 msgid "Does the string begin with C</dev/sd>?"
32437 msgstr ""
32438
32439 #. type: textblock
32440 #: ../src/guestfs.pod:1078
32441 msgid ""
32442 "Does the named device exist? If so, we use that device.  However if I<not> "
32443 "then we continue with this algorithm."
32444 msgstr ""
32445
32446 #. type: textblock
32447 #: ../src/guestfs.pod:1083
32448 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32449 msgstr ""
32450
32451 #. type: textblock
32452 #: ../src/guestfs.pod:1085
32453 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32454 msgstr ""
32455
32456 #. type: textblock
32457 #: ../src/guestfs.pod:1087
32458 msgid "If that named device exists, use it.  If not, continue."
32459 msgstr ""
32460
32461 #. type: textblock
32462 #: ../src/guestfs.pod:1091
32463 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32464 msgstr ""
32465
32466 #. type: textblock
32467 #: ../src/guestfs.pod:1093
32468 msgid "If that named device exists, use it.  If not, return an error."
32469 msgstr ""
32470
32471 #. type: =head3
32472 #: ../src/guestfs.pod:1097
32473 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32474 msgstr ""
32475
32476 #. type: textblock
32477 #: ../src/guestfs.pod:1099
32478 msgid ""
32479 "Although the standard naming scheme and automatic translation is useful for "
32480 "simple programs and guestfish scripts, for larger programs it is best not to "
32481 "rely on this mechanism."
32482 msgstr ""
32483
32484 #. type: textblock
32485 #: ../src/guestfs.pod:1103
32486 msgid ""
32487 "Where possible for maximum future portability programs using libguestfs "
32488 "should use these future-proof techniques:"
32489 msgstr ""
32490
32491 #. type: textblock
32492 #: ../src/guestfs.pod:1110
32493 msgid ""
32494 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32495 "device names, and then use those names directly."
32496 msgstr ""
32497
32498 #. type: textblock
32499 #: ../src/guestfs.pod:1113
32500 msgid "Since those device names exist by definition, they will never be translated."
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../src/guestfs.pod:1118
32505 msgid ""
32506 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32507 "filesystem labels."
32508 msgstr ""
32509
32510 #. type: =head1
32511 #: ../src/guestfs.pod:1123
32512 msgid "SECURITY"
32513 msgstr ""
32514
32515 #. type: textblock
32516 #: ../src/guestfs.pod:1125
32517 msgid ""
32518 "This section discusses security implications of using libguestfs, "
32519 "particularly with untrusted or malicious guests or disk images."
32520 msgstr ""
32521
32522 #. type: =head2
32523 #: ../src/guestfs.pod:1128
32524 msgid "GENERAL SECURITY CONSIDERATIONS"
32525 msgstr ""
32526
32527 #. type: textblock
32528 #: ../src/guestfs.pod:1130
32529 msgid ""
32530 "Be careful with any files or data that you download from a guest (by "
32531 "\"download\" we mean not just the L</guestfs_download> command but any "
32532 "command that reads files, filenames, directories or anything else from a "
32533 "disk image).  An attacker could manipulate the data to fool your program "
32534 "into doing the wrong thing.  Consider cases such as:"
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs.pod:1140
32539 msgid "the data (file etc) not being present"
32540 msgstr ""
32541
32542 #. type: textblock
32543 #: ../src/guestfs.pod:1144
32544 msgid "being present but empty"
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs.pod:1148
32549 msgid "being much larger than normal"
32550 msgstr ""
32551
32552 #. type: textblock
32553 #: ../src/guestfs.pod:1152
32554 msgid "containing arbitrary 8 bit data"
32555 msgstr ""
32556
32557 #. type: textblock
32558 #: ../src/guestfs.pod:1156
32559 msgid "being in an unexpected character encoding"
32560 msgstr ""
32561
32562 #. type: textblock
32563 #: ../src/guestfs.pod:1160
32564 msgid "containing homoglyphs."
32565 msgstr ""
32566
32567 #. type: =head2
32568 #: ../src/guestfs.pod:1164
32569 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32570 msgstr ""
32571
32572 #. type: textblock
32573 #: ../src/guestfs.pod:1166
32574 msgid ""
32575 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32576 "(VFS) module can sometimes be escalated into exploits by deliberately "
32577 "creating a malicious, malformed filesystem.  These exploits are very severe "
32578 "for two reasons.  Firstly there are very many filesystem drivers in the "
32579 "kernel, and many of them are infrequently used and not much developer "
32580 "attention has been paid to the code.  Linux userspace helps potential "
32581 "crackers by detecting the filesystem type and automatically choosing the "
32582 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32583 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32584 "exploit (worse in some ways), giving immediate and total access to the "
32585 "system right down to the hardware level."
32586 msgstr ""
32587
32588 #. type: textblock
32589 #: ../src/guestfs.pod:1179
32590 msgid ""
32591 "That explains why you should never mount a filesystem from an untrusted "
32592 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32593 "inside a qemu virtual machine, usually running as a non-root user.  The "
32594 "attacker would need to write a filesystem which first exploited the kernel, "
32595 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32596 "the libguestfs protocol, and finally to be as serious as the host kernel "
32597 "exploit it would need to escalate its privileges to root.  This multi-step "
32598 "escalation, performed by a static piece of data, is thought to be extremely "
32599 "hard to do, although we never say 'never' about security issues."
32600 msgstr ""
32601
32602 #. type: textblock
32603 #: ../src/guestfs.pod:1190
32604 msgid ""
32605 "In any case callers can reduce the attack surface by forcing the filesystem "
32606 "type when mounting (use L</guestfs_mount_vfs>)."
32607 msgstr ""
32608
32609 #. type: =head2
32610 #: ../src/guestfs.pod:1193
32611 msgid "PROTOCOL SECURITY"
32612 msgstr ""
32613
32614 #. type: textblock
32615 #: ../src/guestfs.pod:1195
32616 msgid ""
32617 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32618 "defined upper message size.  However a program that uses libguestfs must "
32619 "also take care - for example you can write a program that downloads a binary "
32620 "from a disk image and executes it locally, and no amount of protocol "
32621 "security will save you from the consequences."
32622 msgstr ""
32623
32624 #. type: =head2
32625 #: ../src/guestfs.pod:1201
32626 msgid "INSPECTION SECURITY"
32627 msgstr ""
32628
32629 #. type: textblock
32630 #: ../src/guestfs.pod:1203
32631 msgid ""
32632 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32633 "directly from the guest, and these could contain any 8 bit data.  Callers "
32634 "should be careful to escape these before printing them to a structured file "
32635 "(for example, use HTML escaping if creating a web page)."
32636 msgstr ""
32637
32638 #. type: textblock
32639 #: ../src/guestfs.pod:1209
32640 msgid ""
32641 "Guest configuration may be altered in unusual ways by the administrator of "
32642 "the virtual machine, and may not reflect reality (particularly for untrusted "
32643 "or actively malicious guests).  For example we parse the hostname from "
32644 "configuration files like C</etc/sysconfig/network> that we find in the "
32645 "guest, but the guest administrator can easily manipulate these files to "
32646 "provide the wrong hostname."
32647 msgstr ""
32648
32649 #. type: textblock
32650 #: ../src/guestfs.pod:1217
32651 msgid ""
32652 "The inspection API parses guest configuration using two external libraries: "
32653 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32654 "designed to be robust in the face of malicious data, although denial of "
32655 "service attacks are still possible, for example with oversized configuration "
32656 "files."
32657 msgstr ""
32658
32659 #. type: =head2
32660 #: ../src/guestfs.pod:1223
32661 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
32662 msgstr ""
32663
32664 #. type: textblock
32665 #: ../src/guestfs.pod:1225
32666 msgid ""
32667 "Be very cautious about running commands from the guest.  By running a "
32668 "command in the guest, you are giving CPU time to a binary that you do not "
32669 "control, under the same user account as the library, albeit wrapped in qemu "
32670 "virtualization.  More information and alternatives can be found in the "
32671 "section L</RUNNING COMMANDS>."
32672 msgstr ""
32673
32674 #. type: =head2
32675 #: ../src/guestfs.pod:1231
32676 msgid "CVE-2010-3851"
32677 msgstr ""
32678
32679 #. type: textblock
32680 #: ../src/guestfs.pod:1233
32681 msgid "https://bugzilla.redhat.com/642934"
32682 msgstr ""
32683
32684 #. type: textblock
32685 #: ../src/guestfs.pod:1235
32686 msgid ""
32687 "This security bug concerns the automatic disk format detection that qemu "
32688 "does on disk images."
32689 msgstr ""
32690
32691 #. type: textblock
32692 #: ../src/guestfs.pod:1238
32693 msgid ""
32694 "A raw disk image is just the raw bytes, there is no header.  Other disk "
32695 "images like qcow2 contain a special header.  Qemu deals with this by looking "
32696 "for one of the known headers, and if none is found then assuming the disk "
32697 "image must be raw."
32698 msgstr ""
32699
32700 #. type: textblock
32701 #: ../src/guestfs.pod:1243
32702 msgid ""
32703 "This allows a guest which has been given a raw disk image to write some "
32704 "other header.  At next boot (or when the disk image is accessed by "
32705 "libguestfs) qemu would do autodetection and think the disk image format was, "
32706 "say, qcow2 based on the header written by the guest."
32707 msgstr ""
32708
32709 #. type: textblock
32710 #: ../src/guestfs.pod:1248
32711 msgid ""
32712 "This in itself would not be a problem, but qcow2 offers many features, one "
32713 "of which is to allow a disk image to refer to another image (called the "
32714 "\"backing disk\").  It does this by placing the path to the backing disk "
32715 "into the qcow2 header.  This path is not validated and could point to any "
32716 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
32717 "\"holes\" in the qcow2 disk image, which of course is completely under the "
32718 "control of the attacker."
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs.pod:1256
32723 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
32724 msgstr ""
32725
32726 #. type: textblock
32727 #: ../src/guestfs.pod:1263
32728 msgid "You have enabled the network or have opened the disk in write mode."
32729 msgstr ""
32730
32731 #. type: textblock
32732 #: ../src/guestfs.pod:1267
32733 msgid ""
32734 "You are also running untrusted code from the guest (see L</RUNNING "
32735 "COMMANDS>)."
32736 msgstr ""
32737
32738 #. type: textblock
32739 #: ../src/guestfs.pod:1272
32740 msgid ""
32741 "The way to avoid this is to specify the expected disk format when adding "
32742 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
32743 "should always do this if the disk is raw format, and it's a good idea for "
32744 "other cases too."
32745 msgstr ""
32746
32747 #. type: textblock
32748 #: ../src/guestfs.pod:1277
32749 msgid ""
32750 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
32751 "format is fetched from libvirt and passed through."
32752 msgstr ""
32753
32754 #. type: textblock
32755 #: ../src/guestfs.pod:1280
32756 msgid ""
32757 "For libguestfs tools, use the I<--format> command line parameter as "
32758 "appropriate."
32759 msgstr ""
32760
32761 #. type: =head1
32762 #: ../src/guestfs.pod:1283
32763 msgid "CONNECTION MANAGEMENT"
32764 msgstr ""
32765
32766 #. type: =head2
32767 #: ../src/guestfs.pod:1285
32768 msgid "guestfs_h *"
32769 msgstr ""
32770
32771 #. type: textblock
32772 #: ../src/guestfs.pod:1287
32773 msgid ""
32774 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
32775 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
32776 "handle and release all resources used."
32777 msgstr ""
32778
32779 #. type: textblock
32780 #: ../src/guestfs.pod:1291
32781 msgid ""
32782 "For information on using multiple handles and threads, see the section "
32783 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
32784 msgstr ""
32785
32786 #. type: =head2
32787 #: ../src/guestfs.pod:1294
32788 msgid "guestfs_create"
32789 msgstr ""
32790
32791 #. type: verbatim
32792 #: ../src/guestfs.pod:1296
32793 #, no-wrap
32794 msgid ""
32795 " guestfs_h *guestfs_create (void);\n"
32796 "\n"
32797 msgstr ""
32798
32799 #. type: textblock
32800 #: ../src/guestfs.pod:1298
32801 msgid "Create a connection handle."
32802 msgstr ""
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:1300
32806 msgid ""
32807 "On success this returns a non-NULL pointer to a handle.  On error it returns "
32808 "NULL."
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:1303
32813 msgid ""
32814 "You have to \"configure\" the handle after creating it.  This includes "
32815 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
32816 "handle at least once."
32817 msgstr ""
32818
32819 #. type: textblock
32820 #: ../src/guestfs.pod:1307
32821 msgid "After configuring the handle, you have to call L</guestfs_launch>."
32822 msgstr ""
32823
32824 #. type: textblock
32825 #: ../src/guestfs.pod:1309
32826 msgid ""
32827 "You may also want to configure error handling for the handle.  See the "
32828 "L</ERROR HANDLING> section below."
32829 msgstr ""
32830
32831 #. type: =head2
32832 #: ../src/guestfs.pod:1312
32833 msgid "guestfs_close"
32834 msgstr ""
32835
32836 #. type: verbatim
32837 #: ../src/guestfs.pod:1314
32838 #, no-wrap
32839 msgid ""
32840 " void guestfs_close (guestfs_h *g);\n"
32841 "\n"
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs.pod:1316
32846 msgid "This closes the connection handle and frees up all resources used."
32847 msgstr ""
32848
32849 #. type: textblock
32850 #: ../src/guestfs.pod:1318
32851 msgid ""
32852 "If autosync was set on the handle and the handle was launched, then this "
32853 "implicitly calls various functions to unmount filesystems and sync the "
32854 "disk.  See L</guestfs_set_autosync> for more details."
32855 msgstr ""
32856
32857 #. type: textblock
32858 #: ../src/guestfs.pod:1322
32859 msgid "If a close callback was set on the handle, then it is called."
32860 msgstr ""
32861
32862 #. type: =head1
32863 #: ../src/guestfs.pod:1324
32864 msgid "ERROR HANDLING"
32865 msgstr ""
32866
32867 #. type: textblock
32868 #: ../src/guestfs.pod:1326
32869 msgid ""
32870 "API functions can return errors.  For example, almost all functions that "
32871 "return C<int> will return C<-1> to indicate an error."
32872 msgstr ""
32873
32874 #. type: textblock
32875 #: ../src/guestfs.pod:1329
32876 msgid ""
32877 "Additional information is available for errors: an error message string and "
32878 "optionally an error number (errno) if the thing that failed was a system "
32879 "call."
32880 msgstr ""
32881
32882 #. type: textblock
32883 #: ../src/guestfs.pod:1333
32884 msgid ""
32885 "You can get at the additional information about the last error on the handle "
32886 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
32887 "up an error handler with L</guestfs_set_error_handler>."
32888 msgstr ""
32889
32890 #. type: textblock
32891 #: ../src/guestfs.pod:1338
32892 msgid ""
32893 "When the handle is created, a default error handler is installed which "
32894 "prints the error message string to C<stderr>.  For small short-running "
32895 "command line programs it is sufficient to do:"
32896 msgstr ""
32897
32898 #. type: verbatim
32899 #: ../src/guestfs.pod:1342
32900 #, no-wrap
32901 msgid ""
32902 " if (guestfs_launch (g) == -1)\n"
32903 "   exit (EXIT_FAILURE);\n"
32904 "\n"
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs.pod:1345
32909 msgid ""
32910 "since the default error handler will ensure that an error message has been "
32911 "printed to C<stderr> before the program exits."
32912 msgstr ""
32913
32914 #. type: textblock
32915 #: ../src/guestfs.pod:1348
32916 msgid ""
32917 "For other programs the caller will almost certainly want to install an "
32918 "alternate error handler or do error handling in-line like this:"
32919 msgstr ""
32920
32921 #. type: verbatim
32922 #: ../src/guestfs.pod:1351
32923 #, no-wrap
32924 msgid ""
32925 " /* This disables the default behaviour of printing errors\n"
32926 "    on stderr. */\n"
32927 " guestfs_set_error_handler (g, NULL, NULL);\n"
32928 " \n"
32929 msgstr ""
32930
32931 #. type: verbatim
32932 #: ../src/guestfs.pod:1355
32933 #, no-wrap
32934 msgid ""
32935 " if (guestfs_launch (g) == -1) {\n"
32936 "   /* Examine the error message and print it etc. */\n"
32937 "   char *msg = guestfs_last_error (g);\n"
32938 "   int errnum = guestfs_last_errno (g);\n"
32939 "   fprintf (stderr, \"%s\", msg);\n"
32940 "   if (errnum != 0)\n"
32941 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
32942 "   fprintf (stderr, \"\\n\");\n"
32943 "   /* ... */\n"
32944 " }\n"
32945 "\n"
32946 msgstr ""
32947
32948 #. type: textblock
32949 #: ../src/guestfs.pod:1366
32950 msgid ""
32951 "Out of memory errors are handled differently.  The default action is to call "
32952 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
32953 "L</guestfs_set_out_of_memory_handler>."
32954 msgstr ""
32955
32956 #. type: textblock
32957 #: ../src/guestfs.pod:1370
32958 msgid ""
32959 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
32960 "because there is no handle if this happens there is no way to get additional "
32961 "error information.  However L</guestfs_create> is supposed to be a "
32962 "lightweight operation which can only fail because of insufficient memory (it "
32963 "returns NULL in this case)."
32964 msgstr ""
32965
32966 #. type: =head2
32967 #: ../src/guestfs.pod:1376
32968 msgid "guestfs_last_error"
32969 msgstr ""
32970
32971 #. type: verbatim
32972 #: ../src/guestfs.pod:1378
32973 #, no-wrap
32974 msgid ""
32975 " const char *guestfs_last_error (guestfs_h *g);\n"
32976 "\n"
32977 msgstr ""
32978
32979 #. type: textblock
32980 #: ../src/guestfs.pod:1380
32981 msgid ""
32982 "This returns the last error message that happened on C<g>.  If there has not "
32983 "been an error since the handle was created, then this returns C<NULL>."
32984 msgstr ""
32985
32986 #. type: textblock
32987 #: ../src/guestfs.pod:1384
32988 msgid ""
32989 "The lifetime of the returned string is until the next error occurs, or "
32990 "L</guestfs_close> is called."
32991 msgstr ""
32992
32993 #. type: =head2
32994 #: ../src/guestfs.pod:1387
32995 msgid "guestfs_last_errno"
32996 msgstr ""
32997
32998 #. type: verbatim
32999 #: ../src/guestfs.pod:1389
33000 #, no-wrap
33001 msgid ""
33002 " int guestfs_last_errno (guestfs_h *g);\n"
33003 "\n"
33004 msgstr ""
33005
33006 #. type: textblock
33007 #: ../src/guestfs.pod:1391
33008 msgid "This returns the last error number (errno) that happened on C<g>."
33009 msgstr ""
33010
33011 #. type: textblock
33012 #: ../src/guestfs.pod:1393
33013 msgid "If successful, an errno integer not equal to zero is returned."
33014 msgstr ""
33015
33016 #. type: textblock
33017 #: ../src/guestfs.pod:1395
33018 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
33019 msgstr ""
33020
33021 #. type: textblock
33022 #: ../src/guestfs.pod:1402
33023 msgid "There has not been any error on the handle."
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs.pod:1406
33028 msgid ""
33029 "There has been an error but the errno was meaningless.  This corresponds to "
33030 "the case where the error did not come from a failed system call, but for "
33031 "some other reason."
33032 msgstr ""
33033
33034 #. type: textblock
33035 #: ../src/guestfs.pod:1412
33036 msgid ""
33037 "There was an error from a failed system call, but for some reason the errno "
33038 "was not captured and returned.  This usually indicates a bug in libguestfs."
33039 msgstr ""
33040
33041 #. type: textblock
33042 #: ../src/guestfs.pod:1418
33043 msgid ""
33044 "Libguestfs tries to convert the errno from inside the applicance into a "
33045 "corresponding errno for the caller (not entirely trivial: the appliance "
33046 "might be running a completely different operating system from the library "
33047 "and error numbers are not standardized across Un*xen).  If this could not be "
33048 "done, then the error is translated to C<EINVAL>.  In practice this should "
33049 "only happen in very rare circumstances."
33050 msgstr ""
33051
33052 #. type: =head2
33053 #: ../src/guestfs.pod:1426
33054 msgid "guestfs_set_error_handler"
33055 msgstr ""
33056
33057 #. type: verbatim
33058 #: ../src/guestfs.pod:1428
33059 #, no-wrap
33060 msgid ""
33061 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
33062 "                                           void *opaque,\n"
33063 "                                           const char *msg);\n"
33064 " void guestfs_set_error_handler (guestfs_h *g,\n"
33065 "                                 guestfs_error_handler_cb cb,\n"
33066 "                                 void *opaque);\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: textblock
33071 #: ../src/guestfs.pod:1435
33072 msgid ""
33073 "The callback C<cb> will be called if there is an error.  The parameters "
33074 "passed to the callback are an opaque data pointer and the error message "
33075 "string."
33076 msgstr ""
33077
33078 #. type: textblock
33079 #: ../src/guestfs.pod:1439
33080 msgid ""
33081 "C<errno> is not passed to the callback.  To get that the callback must call "
33082 "L</guestfs_last_errno>."
33083 msgstr ""
33084
33085 #. type: textblock
33086 #: ../src/guestfs.pod:1442
33087 msgid ""
33088 "Note that the message string C<msg> is freed as soon as the callback "
33089 "function returns, so if you want to stash it somewhere you must make your "
33090 "own copy."
33091 msgstr ""
33092
33093 #. type: textblock
33094 #: ../src/guestfs.pod:1446
33095 msgid "The default handler prints messages on C<stderr>."
33096 msgstr ""
33097
33098 #. type: textblock
33099 #: ../src/guestfs.pod:1448
33100 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
33101 msgstr ""
33102
33103 #. type: =head2
33104 #: ../src/guestfs.pod:1450
33105 msgid "guestfs_get_error_handler"
33106 msgstr ""
33107
33108 #. type: verbatim
33109 #: ../src/guestfs.pod:1452
33110 #, no-wrap
33111 msgid ""
33112 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
33113 "                                                     void **opaque_rtn);\n"
33114 "\n"
33115 msgstr ""
33116
33117 #. type: textblock
33118 #: ../src/guestfs.pod:1455
33119 msgid "Returns the current error handler callback."
33120 msgstr ""
33121
33122 #. type: =head2
33123 #: ../src/guestfs.pod:1457
33124 msgid "guestfs_set_out_of_memory_handler"
33125 msgstr ""
33126
33127 #. type: verbatim
33128 #: ../src/guestfs.pod:1459
33129 #, no-wrap
33130 msgid ""
33131 " typedef void (*guestfs_abort_cb) (void);\n"
33132 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
33133 "                                         guestfs_abort_cb);\n"
33134 "\n"
33135 msgstr ""
33136
33137 #. type: textblock
33138 #: ../src/guestfs.pod:1463
33139 msgid ""
33140 "The callback C<cb> will be called if there is an out of memory situation.  "
33141 "I<Note this callback must not return>."
33142 msgstr ""
33143
33144 #. type: textblock
33145 #: ../src/guestfs.pod:1466
33146 msgid "The default is to call L<abort(3)>."
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs.pod:1468
33151 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
33152 msgstr ""
33153
33154 #. type: =head2
33155 #: ../src/guestfs.pod:1471
33156 msgid "guestfs_get_out_of_memory_handler"
33157 msgstr ""
33158
33159 #. type: verbatim
33160 #: ../src/guestfs.pod:1473
33161 #, no-wrap
33162 msgid ""
33163 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
33164 "\n"
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs.pod:1475
33169 msgid "This returns the current out of memory handler."
33170 msgstr ""
33171
33172 #. type: =head1
33173 #: ../src/guestfs.pod:1477
33174 msgid "API CALLS"
33175 msgstr ""
33176
33177 #. type: =head1
33178 #: ../src/guestfs.pod:1481
33179 msgid "STRUCTURES"
33180 msgstr ""
33181
33182 #. type: textblock
33183 #: ../src/guestfs.pod:1483
33184 msgid "@STRUCTS@"
33185 msgstr ""
33186
33187 #. type: =head1
33188 #: ../src/guestfs.pod:1485
33189 msgid "AVAILABILITY"
33190 msgstr ""
33191
33192 #. type: =head2
33193 #: ../src/guestfs.pod:1487
33194 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs.pod:1489
33199 msgid ""
33200 "Using L</guestfs_available> you can test availability of the following "
33201 "groups of functions.  This test queries the appliance to see if the "
33202 "appliance you are currently using supports the functionality."
33203 msgstr ""
33204
33205 #. type: textblock
33206 #: ../src/guestfs.pod:1494
33207 msgid "@AVAILABILITY@"
33208 msgstr ""
33209
33210 #. type: =head2
33211 #: ../src/guestfs.pod:1496
33212 msgid "GUESTFISH supported COMMAND"
33213 msgstr ""
33214
33215 #. type: textblock
33216 #: ../src/guestfs.pod:1498
33217 msgid ""
33218 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33219 "prints out the available groups and whether they are supported by this build "
33220 "of libguestfs.  Note however that you have to do C<run> first."
33221 msgstr ""
33222
33223 #. type: =head2
33224 #: ../src/guestfs.pod:1503
33225 msgid "SINGLE CALLS AT COMPILE TIME"
33226 msgstr ""
33227
33228 #. type: textblock
33229 #: ../src/guestfs.pod:1505
33230 msgid ""
33231 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33232 "function, such as:"
33233 msgstr ""
33234
33235 #. type: verbatim
33236 #: ../src/guestfs.pod:1508
33237 #, no-wrap
33238 msgid ""
33239 " #define LIBGUESTFS_HAVE_DD 1\n"
33240 "\n"
33241 msgstr ""
33242
33243 #. type: textblock
33244 #: ../src/guestfs.pod:1510
33245 msgid "if L</guestfs_dd> is available."
33246 msgstr ""
33247
33248 #. type: textblock
33249 #: ../src/guestfs.pod:1512
33250 msgid ""
33251 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33252 "function is available at compile time, we recommended using build tools such "
33253 "as autoconf or cmake.  For example in autotools you could use:"
33254 msgstr ""
33255
33256 #. type: verbatim
33257 #: ../src/guestfs.pod:1517
33258 #, no-wrap
33259 msgid ""
33260 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33261 " AC_CHECK_FUNCS([guestfs_dd])\n"
33262 "\n"
33263 msgstr ""
33264
33265 #. type: textblock
33266 #: ../src/guestfs.pod:1520
33267 msgid ""
33268 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33269 "in your program."
33270 msgstr ""
33271
33272 #. type: =head2
33273 #: ../src/guestfs.pod:1523
33274 msgid "SINGLE CALLS AT RUN TIME"
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:1525
33279 msgid ""
33280 "Testing at compile time doesn't guarantee that a function really exists in "
33281 "the library.  The reason is that you might be dynamically linked against a "
33282 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33283 "This situation unfortunately results in a segmentation fault, which is a "
33284 "shortcoming of the C dynamic linking system itself."
33285 msgstr ""
33286
33287 #. type: textblock
33288 #: ../src/guestfs.pod:1532
33289 msgid ""
33290 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33291 "in this example program (note that you still need the compile time check as "
33292 "well):"
33293 msgstr ""
33294
33295 #. type: verbatim
33296 #: ../src/guestfs.pod:1536
33297 #, no-wrap
33298 msgid ""
33299 " #include <stdio.h>\n"
33300 " #include <stdlib.h>\n"
33301 " #include <unistd.h>\n"
33302 " #include <dlfcn.h>\n"
33303 " #include <guestfs.h>\n"
33304 " \n"
33305 msgstr ""
33306
33307 #. type: verbatim
33308 #: ../src/guestfs.pod:1542
33309 #, no-wrap
33310 msgid ""
33311 " main ()\n"
33312 " {\n"
33313 " #ifdef LIBGUESTFS_HAVE_DD\n"
33314 "   void *dl;\n"
33315 "   int has_function;\n"
33316 " \n"
33317 msgstr ""
33318
33319 #. type: verbatim
33320 #: ../src/guestfs.pod:1548
33321 #, no-wrap
33322 msgid ""
33323 "   /* Test if the function guestfs_dd is really available. */\n"
33324 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33325 "   if (!dl) {\n"
33326 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33327 "     exit (EXIT_FAILURE);\n"
33328 "   }\n"
33329 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33330 "   dlclose (dl);\n"
33331 " \n"
33332 msgstr ""
33333
33334 #. type: verbatim
33335 #: ../src/guestfs.pod:1557
33336 #, no-wrap
33337 msgid ""
33338 "   if (!has_function)\n"
33339 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33340 "   else {\n"
33341 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33342 "     /* Now it's safe to call\n"
33343 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33344 "     */\n"
33345 "   }\n"
33346 " #else\n"
33347 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33348 " #endif\n"
33349 "  }\n"
33350 "\n"
33351 msgstr ""
33352
33353 #. type: textblock
33354 #: ../src/guestfs.pod:1570
33355 msgid ""
33356 "You may think the above is an awful lot of hassle, and it is.  There are "
33357 "other ways outside of the C linking system to ensure that this kind of "
33358 "incompatibility never arises, such as using package versioning:"
33359 msgstr ""
33360
33361 #. type: verbatim
33362 #: ../src/guestfs.pod:1575
33363 #, no-wrap
33364 msgid ""
33365 " Requires: libguestfs >= 1.0.80\n"
33366 "\n"
33367 msgstr ""
33368
33369 #. type: =head1
33370 #: ../src/guestfs.pod:1577
33371 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33372 msgstr ""
33373
33374 #. type: textblock
33375 #: ../src/guestfs.pod:1579
33376 msgid ""
33377 "A recent feature of the API is the introduction of calls which take optional "
33378 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33379 "takes variable arguments (ie. C<...>), as in this example:"
33380 msgstr ""
33381
33382 #. type: verbatim
33383 #: ../src/guestfs.pod:1584
33384 #, no-wrap
33385 msgid ""
33386 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33387 "\n"
33388 msgstr ""
33389
33390 #. type: textblock
33391 #: ../src/guestfs.pod:1586
33392 msgid ""
33393 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33394 "call with no optional arguments specified:"
33395 msgstr ""
33396
33397 #. type: verbatim
33398 #: ../src/guestfs.pod:1589
33399 #, no-wrap
33400 msgid ""
33401 " guestfs_add_drive_opts (g, filename, -1);\n"
33402 "\n"
33403 msgstr ""
33404
33405 #. type: textblock
33406 #: ../src/guestfs.pod:1591
33407 msgid "With a single optional argument:"
33408 msgstr ""
33409
33410 #. type: verbatim
33411 #: ../src/guestfs.pod:1593
33412 #, no-wrap
33413 msgid ""
33414 " guestfs_add_drive_opts (g, filename,\n"
33415 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33416 "                         -1);\n"
33417 "\n"
33418 msgstr ""
33419
33420 #. type: textblock
33421 #: ../src/guestfs.pod:1597
33422 msgid "With two:"
33423 msgstr ""
33424
33425 #. type: verbatim
33426 #: ../src/guestfs.pod:1599
33427 #, no-wrap
33428 msgid ""
33429 " guestfs_add_drive_opts (g, filename,\n"
33430 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33431 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33432 "                         -1);\n"
33433 "\n"
33434 msgstr ""
33435
33436 #. type: textblock
33437 #: ../src/guestfs.pod:1604
33438 msgid ""
33439 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33440 "happen!"
33441 msgstr ""
33442
33443 #. type: =head2
33444 #: ../src/guestfs.pod:1607
33445 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs.pod:1609
33450 msgid ""
33451 "The second variant has the same name with the suffix C<_va>, which works the "
33452 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33453 "example function, this is declared:"
33454 msgstr ""
33455
33456 #. type: verbatim
33457 #: ../src/guestfs.pod:1613
33458 #, no-wrap
33459 msgid ""
33460 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33461 "                                va_list args);\n"
33462 "\n"
33463 msgstr ""
33464
33465 #. type: =head2
33466 #: ../src/guestfs.pod:1616
33467 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33468 msgstr ""
33469
33470 #. type: textblock
33471 #: ../src/guestfs.pod:1618
33472 msgid ""
33473 "The third variant is useful where you need to construct these calls.  You "
33474 "pass in a structure where you fill in the optional fields.  The structure "
33475 "has a bitmask as the first element which you must set to indicate which "
33476 "fields you have filled in.  For our example function the structure and call "
33477 "are declared:"
33478 msgstr ""
33479
33480 #. type: verbatim
33481 #: ../src/guestfs.pod:1624
33482 #, no-wrap
33483 msgid ""
33484 " struct guestfs_add_drive_opts_argv {\n"
33485 "   uint64_t bitmask;\n"
33486 "   int readonly;\n"
33487 "   const char *format;\n"
33488 "   /* ... */\n"
33489 " };\n"
33490 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33491 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33492 "\n"
33493 msgstr ""
33494
33495 #. type: textblock
33496 #: ../src/guestfs.pod:1633
33497 msgid "You could call it like this:"
33498 msgstr ""
33499
33500 #. type: verbatim
33501 #: ../src/guestfs.pod:1635
33502 #, no-wrap
33503 msgid ""
33504 " struct guestfs_add_drive_opts_argv optargs = {\n"
33505 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33506 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33507 "   .readonly = 1,\n"
33508 "   .format = \"qcow2\"\n"
33509 " };\n"
33510 " \n"
33511 msgstr ""
33512
33513 #. type: verbatim
33514 #: ../src/guestfs.pod:1642
33515 #, no-wrap
33516 msgid ""
33517 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33518 "\n"
33519 msgstr ""
33520
33521 #. type: textblock
33522 #: ../src/guestfs.pod:1650
33523 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33524 msgstr ""
33525
33526 #. type: textblock
33527 #: ../src/guestfs.pod:1655
33528 msgid "You do not need to fill in all fields of the structure."
33529 msgstr ""
33530
33531 #. type: textblock
33532 #: ../src/guestfs.pod:1659
33533 msgid ""
33534 "There must be a one-to-one correspondence between fields of the structure "
33535 "that are filled in, and bits set in the bitmask."
33536 msgstr ""
33537
33538 #. type: =head2
33539 #: ../src/guestfs.pod:1664
33540 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33541 msgstr ""
33542
33543 #. type: textblock
33544 #: ../src/guestfs.pod:1666
33545 msgid ""
33546 "In other languages, optional arguments are expressed in the way that is "
33547 "natural for that language.  We refer you to the language-specific "
33548 "documentation for more details on that."
33549 msgstr ""
33550
33551 #. type: textblock
33552 #: ../src/guestfs.pod:1670
33553 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33554 msgstr ""
33555
33556 #. type: =head2
33557 #: ../src/guestfs.pod:1672
33558 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33559 msgstr ""
33560
33561 #. type: textblock
33562 #: ../src/guestfs.pod:1674
33563 msgid ""
33564 "B<Note:> This section documents the generic event mechanism introduced in "
33565 "libguestfs 1.10, which you should use in new code if possible.  The old "
33566 "functions C<guestfs_set_log_message_callback>, "
33567 "C<guestfs_set_subprocess_quit_callback>, "
33568 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33569 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33570 "page.  Because of the ABI guarantee, the old functions continue to work."
33571 msgstr ""
33572
33573 #. type: textblock
33574 #: ../src/guestfs.pod:1683
33575 msgid ""
33576 "Handles generate events when certain things happen, such as log messages "
33577 "being generated, progress messages during long-running operations, or the "
33578 "handle being closed.  The API calls described below let you register a "
33579 "callback to be called when events happen.  You can register multiple "
33580 "callbacks (for the same, different or overlapping sets of events), and "
33581 "individually remove callbacks.  If callbacks are not removed, then they "
33582 "remain in force until the handle is closed."
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs.pod:1691
33587 msgid ""
33588 "In the current implementation, events are only generated synchronously: that "
33589 "means that events (and hence callbacks) can only happen while you are in the "
33590 "middle of making another libguestfs call.  The callback is called in the "
33591 "same thread."
33592 msgstr ""
33593
33594 #. type: textblock
33595 #: ../src/guestfs.pod:1696
33596 msgid ""
33597 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33598 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33599 msgstr ""
33600
33601 #. type: =head3
33602 #: ../src/guestfs.pod:1700
33603 msgid "CLASSES OF EVENTS"
33604 msgstr ""
33605
33606 #. type: =item
33607 #: ../src/guestfs.pod:1704
33608 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33609 msgstr ""
33610
33611 #. type: textblock
33612 #: ../src/guestfs.pod:1707
33613 msgid ""
33614 "The callback function will be called while the handle is being closed "
33615 "(synchronously from L</guestfs_close>)."
33616 msgstr ""
33617
33618 #. type: textblock
33619 #: ../src/guestfs.pod:1710
33620 msgid ""
33621 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33622 "handles that are open when the program exits.  This means that this callback "
33623 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33624 "problems in higher-level languages (eg. if your HLL interpreter has already "
33625 "been cleaned up by the time this is called, and if your callback then jumps "
33626 "into some HLL function)."
33627 msgstr ""
33628
33629 #. type: textblock
33630 #: ../src/guestfs.pod:1717
33631 msgid ""
33632 "If no callback is registered: the handle is closed without any callback "
33633 "being invoked."
33634 msgstr ""
33635
33636 #. type: =item
33637 #: ../src/guestfs.pod:1720
33638 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:1723
33643 msgid ""
33644 "The callback function will be called when the child process quits, either "
33645 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33646 "corresponds to a transition from any state to the CONFIG state)."
33647 msgstr ""
33648
33649 #. type: textblock
33650 #: ../src/guestfs.pod:1727 ../src/guestfs.pod:1736 ../src/guestfs.pod:1853
33651 msgid "If no callback is registered: the event is ignored."
33652 msgstr ""
33653
33654 #. type: =item
33655 #: ../src/guestfs.pod:1729
33656 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
33657 msgstr ""
33658
33659 #. type: textblock
33660 #: ../src/guestfs.pod:1732
33661 msgid ""
33662 "The callback function will be called when the child process becomes ready "
33663 "first time after it has been launched.  (This corresponds to a transition "
33664 "from LAUNCHING to the READY state)."
33665 msgstr ""
33666
33667 #. type: =item
33668 #: ../src/guestfs.pod:1738
33669 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
33670 msgstr ""
33671
33672 #. type: textblock
33673 #: ../src/guestfs.pod:1741
33674 msgid ""
33675 "Some long-running operations can generate progress messages.  If this "
33676 "callback is registered, then it will be called each time a progress message "
33677 "is generated (usually two seconds after the operation started, and three "
33678 "times per second thereafter until it completes, although the frequency may "
33679 "change in future versions)."
33680 msgstr ""
33681
33682 #. type: textblock
33683 #: ../src/guestfs.pod:1747
33684 msgid ""
33685 "The callback receives in the payload four unsigned 64 bit numbers which are "
33686 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
33687 msgstr ""
33688
33689 #. type: textblock
33690 #: ../src/guestfs.pod:1750
33691 msgid ""
33692 "The units of C<total> are not defined, although for some operations C<total> "
33693 "may relate in some way to the amount of data to be transferred (eg. in bytes "
33694 "or megabytes), and C<position> may be the portion which has been "
33695 "transferred."
33696 msgstr ""
33697
33698 #. type: textblock
33699 #: ../src/guestfs.pod:1755
33700 msgid "The only defined and stable parts of the API are:"
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs.pod:1761
33705 msgid ""
33706 "The callback can display to the user some type of progress bar or indicator "
33707 "which shows the ratio of C<position>:C<total>."
33708 msgstr ""
33709
33710 #. type: textblock
33711 #: ../src/guestfs.pod:1766
33712 msgid "0 E<lt>= C<position> E<lt>= C<total>"
33713 msgstr ""
33714
33715 #. type: textblock
33716 #: ../src/guestfs.pod:1770
33717 msgid ""
33718 "If any progress notification is sent during a call, then a final progress "
33719 "notification is always sent when C<position> = C<total> (I<unless> the call "
33720 "fails with an error)."
33721 msgstr ""
33722
33723 #. type: textblock
33724 #: ../src/guestfs.pod:1774
33725 msgid ""
33726 "This is to simplify caller code, so callers can easily set the progress "
33727 "indicator to \"100%\" at the end of the operation, without requiring special "
33728 "code to detect this case."
33729 msgstr ""
33730
33731 #. type: textblock
33732 #: ../src/guestfs.pod:1780
33733 msgid ""
33734 "For some calls we are unable to estimate the progress of the call, but we "
33735 "can still generate progress messages to indicate activity.  This is known as "
33736 "\"pulse mode\", and is directly supported by certain progress bar "
33737 "implementations (eg. GtkProgressBar)."
33738 msgstr ""
33739
33740 #. type: textblock
33741 #: ../src/guestfs.pod:1785
33742 msgid ""
33743 "For these calls, zero or more progress messages are generated with "
33744 "C<position = 0> and C<total = 1>, followed by a final message with "
33745 "C<position = total = 1>."
33746 msgstr ""
33747
33748 #. type: textblock
33749 #: ../src/guestfs.pod:1789
33750 msgid ""
33751 "As noted above, if the call fails with an error then the final message may "
33752 "not be generated."
33753 msgstr ""
33754
33755 #. type: textblock
33756 #: ../src/guestfs.pod:1794
33757 msgid ""
33758 "The callback also receives the procedure number (C<proc_nr>) and serial "
33759 "number (C<serial>) of the call.  These are only useful for debugging "
33760 "protocol issues, and the callback can normally ignore them.  The callback "
33761 "may want to print these numbers in error messages or debugging messages."
33762 msgstr ""
33763
33764 #. type: textblock
33765 #: ../src/guestfs.pod:1800
33766 msgid "If no callback is registered: progress messages are discarded."
33767 msgstr ""
33768
33769 #. type: =item
33770 #: ../src/guestfs.pod:1802
33771 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
33772 msgstr ""
33773
33774 #. type: textblock
33775 #: ../src/guestfs.pod:1805
33776 msgid ""
33777 "The callback function is called whenever a log message is generated by qemu, "
33778 "the appliance kernel, guestfsd (daemon), or utility programs."
33779 msgstr ""
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:1808
33783 msgid ""
33784 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
33785 "(L</guestfs_launch>) then additional debug messages are generated."
33786 msgstr ""
33787
33788 #. type: textblock
33789 #: ../src/guestfs.pod:1811 ../src/guestfs.pod:1825
33790 msgid ""
33791 "If no callback is registered: the messages are discarded unless the verbose "
33792 "flag is set in which case they are sent to stderr.  You can override the "
33793 "printing of verbose messages to stderr by setting up a callback."
33794 msgstr ""
33795
33796 #. type: =item
33797 #: ../src/guestfs.pod:1816
33798 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
33799 msgstr ""
33800
33801 #. type: textblock
33802 #: ../src/guestfs.pod:1819
33803 msgid ""
33804 "The callback function is called whenever a log message is generated by the "
33805 "library part of libguestfs."
33806 msgstr ""
33807
33808 #. type: textblock
33809 #: ../src/guestfs.pod:1822
33810 msgid ""
33811 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
33812 "messages are generated."
33813 msgstr ""
33814
33815 #. type: =item
33816 #: ../src/guestfs.pod:1830
33817 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
33818 msgstr ""
33819
33820 #. type: textblock
33821 #: ../src/guestfs.pod:1833
33822 msgid ""
33823 "The callback function is called whenever a trace message is generated.  This "
33824 "only applies if the trace flag (L</guestfs_set_trace>) is set."
33825 msgstr ""
33826
33827 #. type: textblock
33828 #: ../src/guestfs.pod:1836
33829 msgid ""
33830 "If no callback is registered: the messages are sent to stderr.  You can "
33831 "override the printing of trace messages to stderr by setting up a callback."
33832 msgstr ""
33833
33834 #. type: =item
33835 #: ../src/guestfs.pod:1840
33836 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
33837 msgstr ""
33838
33839 #. type: textblock
33840 #: ../src/guestfs.pod:1843
33841 msgid "The callback function is called whenever a libguestfs function is entered."
33842 msgstr ""
33843
33844 #. type: textblock
33845 #: ../src/guestfs.pod:1846
33846 msgid ""
33847 "The payload is a string which contains the name of the function that we are "
33848 "entering (not including C<guestfs_> prefix)."
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs.pod:1849
33853 msgid ""
33854 "Note that libguestfs functions can call themselves, so you may see many "
33855 "events from a single call.  A few libguestfs functions do not generate this "
33856 "event."
33857 msgstr ""
33858
33859 #. type: =head3
33860 #: ../src/guestfs.pod:1857
33861 msgid "guestfs_set_event_callback"
33862 msgstr ""
33863
33864 #. type: verbatim
33865 #: ../src/guestfs.pod:1859
33866 #, no-wrap
33867 msgid ""
33868 " int guestfs_set_event_callback (guestfs_h *g,\n"
33869 "                                 guestfs_event_callback cb,\n"
33870 "                                 uint64_t event_bitmask,\n"
33871 "                                 int flags,\n"
33872 "                                 void *opaque);\n"
33873 "\n"
33874 msgstr ""
33875
33876 #. type: textblock
33877 #: ../src/guestfs.pod:1865
33878 msgid ""
33879 "This function registers a callback (C<cb>) for all event classes in the "
33880 "C<event_bitmask>."
33881 msgstr ""
33882
33883 #. type: textblock
33884 #: ../src/guestfs.pod:1868
33885 msgid ""
33886 "For example, to register for all log message events, you could call this "
33887 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
33888 "To register a single callback for all possible classes of events, use "
33889 "C<GUESTFS_EVENT_ALL>."
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs.pod:1874
33894 msgid "C<flags> should always be passed as 0."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:1876
33899 msgid ""
33900 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
33901 "it for any purpose."
33902 msgstr ""
33903
33904 #. type: textblock
33905 #: ../src/guestfs.pod:1879
33906 msgid ""
33907 "The return value is the event handle (an integer) which you can use to "
33908 "delete the callback (see below)."
33909 msgstr ""
33910
33911 #. type: textblock
33912 #: ../src/guestfs.pod:1882
33913 msgid ""
33914 "If there is an error, this function returns C<-1>, and sets the error in the "
33915 "handle in the usual way (see L</guestfs_last_error> etc.)"
33916 msgstr ""
33917
33918 #. type: textblock
33919 #: ../src/guestfs.pod:1885
33920 msgid ""
33921 "Callbacks remain in effect until they are deleted, or until the handle is "
33922 "closed."
33923 msgstr ""
33924
33925 #. type: textblock
33926 #: ../src/guestfs.pod:1888
33927 msgid ""
33928 "In the case where multiple callbacks are registered for a particular event "
33929 "class, all of the callbacks are called.  The order in which multiple "
33930 "callbacks are called is not defined."
33931 msgstr ""
33932
33933 #. type: =head3
33934 #: ../src/guestfs.pod:1892
33935 msgid "guestfs_delete_event_callback"
33936 msgstr ""
33937
33938 #. type: verbatim
33939 #: ../src/guestfs.pod:1894
33940 #, no-wrap
33941 msgid ""
33942 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
33943 "\n"
33944 msgstr ""
33945
33946 #. type: textblock
33947 #: ../src/guestfs.pod:1896
33948 msgid ""
33949 "Delete a callback that was previously registered.  C<event_handle> should be "
33950 "the integer that was returned by a previous call to "
33951 "C<guestfs_set_event_callback> on the same handle."
33952 msgstr ""
33953
33954 #. type: =head3
33955 #: ../src/guestfs.pod:1900
33956 msgid "guestfs_event_callback"
33957 msgstr ""
33958
33959 #. type: verbatim
33960 #: ../src/guestfs.pod:1902
33961 #, no-wrap
33962 msgid ""
33963 " typedef void (*guestfs_event_callback) (\n"
33964 "                  guestfs_h *g,\n"
33965 "                  void *opaque,\n"
33966 "                  uint64_t event,\n"
33967 "                  int event_handle,\n"
33968 "                  int flags,\n"
33969 "                  const char *buf, size_t buf_len,\n"
33970 "                  const uint64_t *array, size_t array_len);\n"
33971 "\n"
33972 msgstr ""
33973
33974 #. type: textblock
33975 #: ../src/guestfs.pod:1911
33976 msgid "This is the type of the event callback function that you have to provide."
33977 msgstr ""
33978
33979 #. type: textblock
33980 #: ../src/guestfs.pod:1914
33981 msgid ""
33982 "The basic parameters are: the handle (C<g>), the opaque user pointer "
33983 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
33984 "handle, and C<flags> which in the current API you should ignore."
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs.pod:1918
33989 msgid ""
33990 "The remaining parameters contain the event payload (if any).  Each event may "
33991 "contain a payload, which usually relates to the event class, but for future "
33992 "proofing your code should be written to handle any payload for any event "
33993 "class."
33994 msgstr ""
33995
33996 #. type: textblock
33997 #: ../src/guestfs.pod:1923
33998 msgid ""
33999 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
34000 "there is no message buffer).  Note that this message buffer can contain "
34001 "arbitrary 8 bit data, including NUL bytes."
34002 msgstr ""
34003
34004 #. type: textblock
34005 #: ../src/guestfs.pod:1927
34006 msgid ""
34007 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
34008 "moment this is only used for progress messages."
34009 msgstr ""
34010
34011 #. type: =head3
34012 #: ../src/guestfs.pod:1930
34013 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs.pod:1932
34018 msgid ""
34019 "One motivation for the generic event API was to allow GUI programs to "
34020 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
34021 "unconditionally to C<stderr>."
34022 msgstr ""
34023
34024 #. type: textblock
34025 #: ../src/guestfs.pod:1936
34026 msgid ""
34027 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
34028 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
34029 "messages are not events; you must capture error messages separately)."
34030 msgstr ""
34031
34032 #. type: textblock
34033 #: ../src/guestfs.pod:1941
34034 msgid ""
34035 "Programs have to set up a callback to capture the classes of events of "
34036 "interest:"
34037 msgstr ""
34038
34039 #. type: verbatim
34040 #: ../src/guestfs.pod:1944
34041 #, no-wrap
34042 msgid ""
34043 " int eh =\n"
34044 "   guestfs_set_event_callback\n"
34045 "     (g, message_callback,\n"
34046 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
34047 "      GUESTFS_EVENT_TRACE,\n"
34048 "      0, NULL) == -1)\n"
34049 " if (eh == -1) {\n"
34050 "   // handle error in the usual way\n"
34051 " }\n"
34052 "\n"
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs.pod:1954
34057 msgid ""
34058 "The callback can then direct messages to the appropriate place.  In this "
34059 "example, messages are directed to syslog:"
34060 msgstr ""
34061
34062 #. type: verbatim
34063 #: ../src/guestfs.pod:1957
34064 #, no-wrap
34065 msgid ""
34066 " static void\n"
34067 " message_callback (\n"
34068 "         guestfs_h *g,\n"
34069 "         void *opaque,\n"
34070 "         uint64_t event,\n"
34071 "         int event_handle,\n"
34072 "         int flags,\n"
34073 "         const char *buf, size_t buf_len,\n"
34074 "         const uint64_t *array, size_t array_len)\n"
34075 " {\n"
34076 "   const int priority = LOG_USER|LOG_INFO;\n"
34077 "   if (buf_len > 0)\n"
34078 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
34079 " }\n"
34080 "\n"
34081 msgstr ""
34082
34083 #. type: =head1
34084 #: ../src/guestfs.pod:1972
34085 msgid "CANCELLING LONG TRANSFERS"
34086 msgstr ""
34087
34088 #. type: textblock
34089 #: ../src/guestfs.pod:1974
34090 msgid ""
34091 "Some operations can be cancelled by the caller while they are in progress.  "
34092 "Currently only operations that involve uploading or downloading data can be "
34093 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
34094 "parameters in the generator)."
34095 msgstr ""
34096
34097 #. type: =head2
34098 #: ../src/guestfs.pod:1979
34099 msgid "guestfs_user_cancel"
34100 msgstr ""
34101
34102 #. type: verbatim
34103 #: ../src/guestfs.pod:1981
34104 #, no-wrap
34105 msgid ""
34106 " void guestfs_user_cancel (guestfs_h *g);\n"
34107 "\n"
34108 msgstr ""
34109
34110 #. type: textblock
34111 #: ../src/guestfs.pod:1983
34112 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
34113 msgstr ""
34114
34115 #. type: textblock
34116 #: ../src/guestfs.pod:1986
34117 msgid ""
34118 "Unlike most other libguestfs calls, this function is signal safe and thread "
34119 "safe.  You can call it from a signal handler or from another thread, without "
34120 "needing to do any locking."
34121 msgstr ""
34122
34123 #. type: textblock
34124 #: ../src/guestfs.pod:1990
34125 msgid ""
34126 "The transfer that was in progress (if there is one) will stop shortly "
34127 "afterwards, and will return an error.  The errno (see "
34128 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
34129 "out if the operation was cancelled or failed because of another error."
34130 msgstr ""
34131
34132 #. type: textblock
34133 #: ../src/guestfs.pod:1996
34134 msgid ""
34135 "No cleanup is performed: for example, if a file was being uploaded then "
34136 "after cancellation there may be a partially uploaded file.  It is the "
34137 "caller's responsibility to clean up if necessary."
34138 msgstr ""
34139
34140 #. type: textblock
34141 #: ../src/guestfs.pod:2000
34142 msgid "There are two common places that you might call C<guestfs_user_cancel>."
34143 msgstr ""
34144
34145 #. type: textblock
34146 #: ../src/guestfs.pod:2002
34147 msgid ""
34148 "In an interactive text-based program, you might call it from a C<SIGINT> "
34149 "signal handler so that pressing C<^C> cancels the current operation.  (You "
34150 "also need to call L</guestfs_set_pgroup> so that child processes don't "
34151 "receive the C<^C> signal)."
34152 msgstr ""
34153
34154 #. type: textblock
34155 #: ../src/guestfs.pod:2007
34156 msgid ""
34157 "In a graphical program, when the main thread is displaying a progress bar "
34158 "with a cancel button, wire up the cancel button to call this function."
34159 msgstr ""
34160
34161 #. type: =head1
34162 #: ../src/guestfs.pod:2011
34163 msgid "PRIVATE DATA AREA"
34164 msgstr ""
34165
34166 #. type: textblock
34167 #: ../src/guestfs.pod:2013
34168 msgid ""
34169 "You can attach named pieces of private data to the libguestfs handle, fetch "
34170 "them by name, and walk over them, for the lifetime of the handle.  This is "
34171 "called the private data area and is only available from the C API."
34172 msgstr ""
34173
34174 #. type: textblock
34175 #: ../src/guestfs.pod:2018
34176 msgid "To attach a named piece of data, use the following call:"
34177 msgstr ""
34178
34179 #. type: verbatim
34180 #: ../src/guestfs.pod:2020
34181 #, no-wrap
34182 msgid ""
34183 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
34184 "\n"
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs.pod:2022
34189 msgid ""
34190 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
34191 "pointer (which can be C<NULL>).  Any previous item with the same key is "
34192 "overwritten."
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:2026
34197 msgid ""
34198 "You can use any C<key> you want, but your key should I<not> start with an "
34199 "underscore character.  Keys beginning with an underscore character are "
34200 "reserved for internal libguestfs purposes (eg. for implementing language "
34201 "bindings).  It is recommended that you prefix the key with some unique "
34202 "string to avoid collisions with other users."
34203 msgstr ""
34204
34205 #. type: textblock
34206 #: ../src/guestfs.pod:2032
34207 msgid "To retrieve the pointer, use:"
34208 msgstr ""
34209
34210 #. type: verbatim
34211 #: ../src/guestfs.pod:2034
34212 #, no-wrap
34213 msgid ""
34214 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34215 "\n"
34216 msgstr ""
34217
34218 #. type: textblock
34219 #: ../src/guestfs.pod:2036
34220 msgid ""
34221 "This function returns C<NULL> if either no data is found associated with "
34222 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34223 "C<NULL>."
34224 msgstr ""
34225
34226 #. type: textblock
34227 #: ../src/guestfs.pod:2040
34228 msgid ""
34229 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34230 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34231 "all.  In particular, libguestfs does I<not> try to free the data when the "
34232 "handle is closed.  If the data must be freed, then the caller must either "
34233 "free it before calling L</guestfs_close> or must set up a close callback to "
34234 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34235 msgstr ""
34236
34237 #. type: textblock
34238 #: ../src/guestfs.pod:2047
34239 msgid "To walk over all entries, use these two functions:"
34240 msgstr ""
34241
34242 #. type: verbatim
34243 #: ../src/guestfs.pod:2049
34244 #, no-wrap
34245 msgid ""
34246 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34247 "\n"
34248 msgstr ""
34249
34250 #. type: verbatim
34251 #: ../src/guestfs.pod:2051
34252 #, no-wrap
34253 msgid ""
34254 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34255 "\n"
34256 msgstr ""
34257
34258 #. type: textblock
34259 #: ../src/guestfs.pod:2053
34260 msgid ""
34261 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34262 "not have any particular meaning -- keys are not returned in any defined "
34263 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34264 "corresponding data pointer is returned from the function.  C<NULL> is "
34265 "returned if there are no keys stored in the handle."
34266 msgstr ""
34267
34268 #. type: textblock
34269 #: ../src/guestfs.pod:2059
34270 msgid ""
34271 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34272 "value of this function is also C<NULL> is there are no further entries to "
34273 "return."
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:2063
34278 msgid "Notes about walking over entries:"
34279 msgstr ""
34280
34281 #. type: textblock
34282 #: ../src/guestfs.pod:2069
34283 msgid "You must not call C<guestfs_set_private> while walking over the entries."
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs.pod:2074
34288 msgid ""
34289 "The handle maintains an internal iterator which is reset when you call "
34290 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34291 "call C<guestfs_set_private>."
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:2080
34296 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34297 msgstr ""
34298
34299 #. type: verbatim
34300 #: ../src/guestfs.pod:2082
34301 #, no-wrap
34302 msgid ""
34303 " guestfs_set_private (g, key, NULL);\n"
34304 "\n"
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:2084
34309 msgid "then that C<key> is not returned when walking."
34310 msgstr ""
34311
34312 #. type: textblock
34313 #: ../src/guestfs.pod:2088
34314 msgid ""
34315 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34316 "C<guestfs_next_private> or C<guestfs_set_private>."
34317 msgstr ""
34318
34319 #. type: textblock
34320 #: ../src/guestfs.pod:2094
34321 msgid ""
34322 "The following example code shows how to print all keys and data pointers "
34323 "that are associated with the handle C<g>:"
34324 msgstr ""
34325
34326 #. type: verbatim
34327 #: ../src/guestfs.pod:2097
34328 #, no-wrap
34329 msgid ""
34330 " const char *key;\n"
34331 " void *data = guestfs_first_private (g, &key);\n"
34332 " while (data != NULL)\n"
34333 "   {\n"
34334 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34335 "     data = guestfs_next_private (g, &key);\n"
34336 "   }\n"
34337 "\n"
34338 msgstr ""
34339
34340 #. type: textblock
34341 #: ../src/guestfs.pod:2105
34342 msgid ""
34343 "More commonly you are only interested in keys that begin with an "
34344 "application-specific prefix C<foo_>.  Modify the loop like so:"
34345 msgstr ""
34346
34347 #. type: verbatim
34348 #: ../src/guestfs.pod:2108
34349 #, no-wrap
34350 msgid ""
34351 " const char *key;\n"
34352 " void *data = guestfs_first_private (g, &key);\n"
34353 " while (data != NULL)\n"
34354 "   {\n"
34355 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34356 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34357 "     data = guestfs_next_private (g, &key);\n"
34358 "   }\n"
34359 "\n"
34360 msgstr ""
34361
34362 #. type: textblock
34363 #: ../src/guestfs.pod:2117
34364 msgid ""
34365 "If you need to modify keys while walking, then you have to jump back to the "
34366 "beginning of the loop.  For example, to delete all keys prefixed with "
34367 "C<foo_>:"
34368 msgstr ""
34369
34370 #. type: verbatim
34371 #: ../src/guestfs.pod:2121
34372 #, no-wrap
34373 msgid ""
34374 "  const char *key;\n"
34375 "  void *data;\n"
34376 " again:\n"
34377 "  data = guestfs_first_private (g, &key);\n"
34378 "  while (data != NULL)\n"
34379 "    {\n"
34380 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34381 "        {\n"
34382 "          guestfs_set_private (g, key, NULL);\n"
34383 "          /* note that 'key' pointer is now invalid, and so is\n"
34384 "             the internal iterator */\n"
34385 "          goto again;\n"
34386 "        }\n"
34387 "      data = guestfs_next_private (g, &key);\n"
34388 "    }\n"
34389 "\n"
34390 msgstr ""
34391
34392 #. type: textblock
34393 #: ../src/guestfs.pod:2137
34394 msgid ""
34395 "Note that the above loop is guaranteed to terminate because the keys are "
34396 "being deleted, but other manipulations of keys within the loop might not "
34397 "terminate unless you also maintain an indication of which keys have been "
34398 "visited."
34399 msgstr ""
34400
34401 #. type: =end
34402 #: ../src/guestfs.pod:2142 ../src/guestfs.pod:2147
34403 msgid "html"
34404 msgstr ""
34405
34406 #. type: textblock
34407 #: ../src/guestfs.pod:2144
34408 msgid ""
34409 "<!-- old anchor for the next section --> <a "
34410 "name=\"state_machine_and_low_level_event_api\"/>"
34411 msgstr ""
34412
34413 #. type: =head1
34414 #: ../src/guestfs.pod:2149
34415 msgid "ARCHITECTURE"
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../src/guestfs.pod:2151
34420 msgid ""
34421 "Internally, libguestfs is implemented by running an appliance (a special "
34422 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34423 "process of the main program."
34424 msgstr ""
34425
34426 #. type: verbatim
34427 #: ../src/guestfs.pod:2155
34428 #, no-wrap
34429 msgid ""
34430 "  ___________________\n"
34431 " /                   \\\n"
34432 " | main program      |\n"
34433 " |                   |\n"
34434 " |                   |           child process / appliance\n"
34435 " |                   |           __________________________\n"
34436 " |                   |          / qemu                     \\\n"
34437 " +-------------------+   RPC    |      +-----------------+ |\n"
34438 " | libguestfs     <--------------------> guestfsd        | |\n"
34439 " |                   |          |      +-----------------+ |\n"
34440 " \\___________________/          |      | Linux kernel    | |\n"
34441 "                                |      +--^--------------+ |\n"
34442 "                                \\_________|________________/\n"
34443 "                                          |\n"
34444 "                                   _______v______\n"
34445 "                                  /              \\\n"
34446 "                                  | Device or    |\n"
34447 "                                  | disk image   |\n"
34448 "                                  \\______________/\n"
34449 "\n"
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs.pod:2175
34454 msgid ""
34455 "The library, linked to the main program, creates the child process and hence "
34456 "the appliance in the L</guestfs_launch> function."
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs.pod:2178
34461 msgid ""
34462 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34463 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34464 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34465 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34466 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34467 "attached to the qemu process which translates device access by the "
34468 "appliance's Linux kernel into accesses to the image."
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:2187
34473 msgid ""
34474 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34475 "Although the disk image you are attached to might also be used by some "
34476 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34477 "care if both libguestfs's qemu process and your virtual machine are trying "
34478 "to update the disk image at the same time, since these usually results in "
34479 "massive disk corruption)."
34480 msgstr ""
34481
34482 #. type: =head1
34483 #: ../src/guestfs.pod:2194
34484 msgid "STATE MACHINE"
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:2196
34489 msgid "libguestfs uses a state machine to model the child process:"
34490 msgstr ""
34491
34492 #. type: verbatim
34493 #: ../src/guestfs.pod:2198
34494 #, no-wrap
34495 msgid ""
34496 "                         |\n"
34497 "                    guestfs_create\n"
34498 "                         |\n"
34499 "                         |\n"
34500 "                     ____V_____\n"
34501 "                    /          \\\n"
34502 "                    |  CONFIG  |\n"
34503 "                    \\__________/\n"
34504 "                     ^ ^   ^  \\\n"
34505 "                    /  |    \\  \\ guestfs_launch\n"
34506 "                   /   |    _\\__V______\n"
34507 "                  /    |   /           \\\n"
34508 "                 /     |   | LAUNCHING |\n"
34509 "                /      |   \\___________/\n"
34510 "               /       |       /\n"
34511 "              /        |  guestfs_launch\n"
34512 "             /         |     /\n"
34513 "    ______  /        __|____V\n"
34514 "   /      \\ ------> /        \\\n"
34515 "   | BUSY |         | READY  |\n"
34516 "   \\______/ <------ \\________/\n"
34517 "\n"
34518 msgstr ""
34519
34520 #. type: textblock
34521 #: ../src/guestfs.pod:2220
34522 msgid ""
34523 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34524 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34525 "(3) alternating between READY and BUSY as commands are issued to, and "
34526 "carried out by, the child process."
34527 msgstr ""
34528
34529 #. type: textblock
34530 #: ../src/guestfs.pod:2225
34531 msgid ""
34532 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34533 "asynchronously at any time (eg. due to some internal error), and that causes "
34534 "the state to transition back to CONFIG."
34535 msgstr ""
34536
34537 #. type: textblock
34538 #: ../src/guestfs.pod:2229
34539 msgid ""
34540 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34541 "issued when in the CONFIG state."
34542 msgstr ""
34543
34544 #. type: textblock
34545 #: ../src/guestfs.pod:2232
34546 msgid ""
34547 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34548 "L</guestfs_launch> blocks until the child process is READY to accept "
34549 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34550 "moves the state from CONFIG to LAUNCHING while it is running."
34551 msgstr ""
34552
34553 #. type: textblock
34554 #: ../src/guestfs.pod:2238
34555 msgid ""
34556 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34557 "state.  These API calls block waiting for the command to be carried out "
34558 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34559 "non-blocking versions, and no way to issue more than one command per handle "
34560 "at the same time."
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:2244
34565 msgid ""
34566 "Finally, the child process sends asynchronous messages back to the main "
34567 "program, such as kernel log messages.  You can register a callback to "
34568 "receive these messages."
34569 msgstr ""
34570
34571 #. type: =head1
34572 #: ../src/guestfs.pod:2248
34573 msgid "INTERNALS"
34574 msgstr ""
34575
34576 #. type: =head2
34577 #: ../src/guestfs.pod:2250
34578 msgid "APPLIANCE BOOT PROCESS"
34579 msgstr ""
34580
34581 #. type: textblock
34582 #: ../src/guestfs.pod:2252
34583 msgid ""
34584 "This process has evolved and continues to evolve.  The description here "
34585 "corresponds only to the current version of libguestfs and is provided for "
34586 "information only."
34587 msgstr ""
34588
34589 #. type: textblock
34590 #: ../src/guestfs.pod:2256
34591 msgid ""
34592 "In order to follow the stages involved below, enable libguestfs debugging "
34593 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
34594 msgstr ""
34595
34596 #. type: =item
34597 #: ../src/guestfs.pod:2261
34598 msgid "Create the appliance"
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:2263
34603 msgid ""
34604 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
34605 "initrd and the appliance."
34606 msgstr ""
34607
34608 #. type: textblock
34609 #: ../src/guestfs.pod:2266
34610 msgid ""
34611 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
34612 "directory if C<TMPDIR> is set)."
34613 msgstr ""
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:2269
34617 msgid ""
34618 "For a complete description of how the appliance is created and cached, read "
34619 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
34620 msgstr ""
34621
34622 #. type: =item
34623 #: ../src/guestfs.pod:2273
34624 msgid "Start qemu and boot the kernel"
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:2275
34629 msgid "qemu is invoked to boot the kernel."
34630 msgstr ""
34631
34632 #. type: =item
34633 #: ../src/guestfs.pod:2277
34634 msgid "Run the initrd"
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:2279
34639 msgid ""
34640 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
34641 "appliance.  The purpose of the initrd is to load enough kernel modules in "
34642 "order that the appliance itself can be mounted and started."
34643 msgstr ""
34644
34645 #. type: textblock
34646 #: ../src/guestfs.pod:2283
34647 msgid ""
34648 "The initrd is a cpio archive called "
34649 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:2286
34654 msgid ""
34655 "When the initrd has started you will see messages showing that kernel "
34656 "modules are being loaded, similar to this:"
34657 msgstr ""
34658
34659 #. type: verbatim
34660 #: ../src/guestfs.pod:2289
34661 #, no-wrap
34662 msgid ""
34663 " febootstrap: ext2 mini initrd starting up\n"
34664 " febootstrap: mounting /sys\n"
34665 " febootstrap: internal insmod libcrc32c.ko\n"
34666 " febootstrap: internal insmod crc32c-intel.ko\n"
34667 "\n"
34668 msgstr ""
34669
34670 #. type: =item
34671 #: ../src/guestfs.pod:2294
34672 msgid "Find and mount the appliance device"
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:2296
34677 msgid ""
34678 "The appliance is a sparse file containing an ext2 filesystem which contains "
34679 "a familiar (although reduced in size) Linux operating system.  It would "
34680 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
34681 msgstr ""
34682
34683 #. type: textblock
34684 #: ../src/guestfs.pod:2300
34685 msgid ""
34686 "The regular disks being inspected by libguestfs are the first devices "
34687 "exposed by qemu (eg. as C</dev/vda>)."
34688 msgstr ""
34689
34690 #. type: textblock
34691 #: ../src/guestfs.pod:2303
34692 msgid ""
34693 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
34694 "there was only one regular disk)."
34695 msgstr ""
34696
34697 #. type: textblock
34698 #: ../src/guestfs.pod:2306
34699 msgid ""
34700 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
34701 "and switch root into the appliance, and run C</init> from the appliance."
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:2310
34706 msgid "If this works successfully you will see messages such as:"
34707 msgstr ""
34708
34709 #. type: verbatim
34710 #: ../src/guestfs.pod:2312
34711 #, no-wrap
34712 msgid ""
34713 " febootstrap: picked /sys/block/vdb/dev as root device\n"
34714 " febootstrap: creating /dev/root as block special 252:16\n"
34715 " febootstrap: mounting new root on /root\n"
34716 " febootstrap: chroot\n"
34717 " Starting /init script ...\n"
34718 "\n"
34719 msgstr ""
34720
34721 #. type: textblock
34722 #: ../src/guestfs.pod:2318
34723 msgid ""
34724 "Note that C<Starting /init script ...> indicates that the appliance's init "
34725 "script is now running."
34726 msgstr ""
34727
34728 #. type: =item
34729 #: ../src/guestfs.pod:2321
34730 msgid "Initialize the appliance"
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:2323
34735 msgid ""
34736 "The appliance itself now initializes itself.  This involves starting certain "
34737 "processes like C<udev>, possibly printing some debug information, and "
34738 "finally running the daemon (C<guestfsd>)."
34739 msgstr ""
34740
34741 #. type: =item
34742 #: ../src/guestfs.pod:2327
34743 msgid "The daemon"
34744 msgstr ""
34745
34746 #. type: textblock
34747 #: ../src/guestfs.pod:2329
34748 msgid ""
34749 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
34750 "should see:"
34751 msgstr ""
34752
34753 #. type: verbatim
34754 #: ../src/guestfs.pod:2332
34755 #, no-wrap
34756 msgid ""
34757 " verbose daemon enabled\n"
34758 "\n"
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:2334
34763 msgid ""
34764 "The daemon expects to see a named virtio-serial port exposed by qemu and "
34765 "connected on the other end to the library."
34766 msgstr ""
34767
34768 #. type: textblock
34769 #: ../src/guestfs.pod:2337
34770 msgid ""
34771 "The daemon connects to this port (and hence to the library) and sends a four "
34772 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
34773 "protocol (see below)."
34774 msgstr ""
34775
34776 #. type: =head2
34777 #: ../src/guestfs.pod:2343
34778 msgid "COMMUNICATION PROTOCOL"
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:2345
34783 msgid ""
34784 "Don't rely on using this protocol directly.  This section documents how it "
34785 "currently works, but it may change at any time."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:2348
34790 msgid ""
34791 "The protocol used to talk between the library and the daemon running inside "
34792 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34793 "1014, RFC 1832, RFC 4506)."
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:2352
34798 msgid ""
34799 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34800 "this file is automatically generated)."
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs.pod:2355
34805 msgid ""
34806 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34807 "and C<FileOut> parameters, which are handled with very simple request/reply "
34808 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34809 "parameters, which use the same request and reply messages, but they may also "
34810 "be followed by files sent using a chunked encoding."
34811 msgstr ""
34812
34813 #. type: =head3
34814 #: ../src/guestfs.pod:2362
34815 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34816 msgstr ""
34817
34818 #. type: textblock
34819 #: ../src/guestfs.pod:2364
34820 msgid "For ordinary functions, the request message is:"
34821 msgstr ""
34822
34823 #. type: verbatim
34824 #: ../src/guestfs.pod:2366
34825 #, no-wrap
34826 msgid ""
34827 " total length (header + arguments,\n"
34828 "      but not including the length word itself)\n"
34829 " struct guestfs_message_header (encoded as XDR)\n"
34830 " struct guestfs_<foo>_args (encoded as XDR)\n"
34831 "\n"
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:2371
34836 msgid ""
34837 "The total length field allows the daemon to allocate a fixed size buffer "
34838 "into which it slurps the rest of the message.  As a result, the total length "
34839 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34840 "effective size of any request is limited to somewhere under this size."
34841 msgstr ""
34842
34843 #. type: textblock
34844 #: ../src/guestfs.pod:2377
34845 msgid ""
34846 "Note also that many functions don't take any arguments, in which case the "
34847 "C<guestfs_I<foo>_args> is completely omitted."
34848 msgstr ""
34849
34850 #. type: textblock
34851 #: ../src/guestfs.pod:2380
34852 msgid ""
34853 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34854 "receiver knows what type of args structure to expect, or none at all."
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:2384
34859 msgid ""
34860 "For functions that take optional arguments, the optional arguments are "
34861 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34862 "arguments.  A bitmask in the header indicates which optional arguments are "
34863 "meaningful.  The bitmask is also checked to see if it contains bits set "
34864 "which the daemon does not know about (eg. if more optional arguments were "
34865 "added in a later version of the library), and this causes the call to be "
34866 "rejected."
34867 msgstr ""
34868
34869 #. type: textblock
34870 #: ../src/guestfs.pod:2392
34871 msgid "The reply message for ordinary functions is:"
34872 msgstr ""
34873
34874 #. type: verbatim
34875 #: ../src/guestfs.pod:2394
34876 #, no-wrap
34877 msgid ""
34878 " total length (header + ret,\n"
34879 "      but not including the length word itself)\n"
34880 " struct guestfs_message_header (encoded as XDR)\n"
34881 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34882 "\n"
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:2399
34887 msgid ""
34888 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
34889 "functions that return no formal return values."
34890 msgstr ""
34891
34892 #. type: textblock
34893 #: ../src/guestfs.pod:2402
34894 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:2405
34899 msgid ""
34900 "In the case of an error, a flag is set in the header, and the reply message "
34901 "is slightly changed:"
34902 msgstr ""
34903
34904 #. type: verbatim
34905 #: ../src/guestfs.pod:2408
34906 #, no-wrap
34907 msgid ""
34908 " total length (header + error,\n"
34909 "      but not including the length word itself)\n"
34910 " struct guestfs_message_header (encoded as XDR)\n"
34911 " struct guestfs_message_error (encoded as XDR)\n"
34912 "\n"
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:2413
34917 msgid ""
34918 "The C<guestfs_message_error> structure contains the error message as a "
34919 "string."
34920 msgstr ""
34921
34922 #. type: =head3
34923 #: ../src/guestfs.pod:2416
34924 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
34925 msgstr ""
34926
34927 #. type: textblock
34928 #: ../src/guestfs.pod:2418
34929 msgid ""
34930 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
34931 "The normal request message is sent (see above).  However this is followed by "
34932 "a sequence of file chunks."
34933 msgstr ""
34934
34935 #. type: verbatim
34936 #: ../src/guestfs.pod:2422
34937 #, no-wrap
34938 msgid ""
34939 " total length (header + arguments,\n"
34940 "      but not including the length word itself,\n"
34941 "      and not including the chunks)\n"
34942 " struct guestfs_message_header (encoded as XDR)\n"
34943 " struct guestfs_<foo>_args (encoded as XDR)\n"
34944 " sequence of chunks for FileIn param #0\n"
34945 " sequence of chunks for FileIn param #1 etc.\n"
34946 "\n"
34947 msgstr ""
34948
34949 #. type: textblock
34950 #: ../src/guestfs.pod:2430
34951 msgid "The \"sequence of chunks\" is:"
34952 msgstr ""
34953
34954 #. type: verbatim
34955 #: ../src/guestfs.pod:2432
34956 #, no-wrap
34957 msgid ""
34958 " length of chunk (not including length word itself)\n"
34959 " struct guestfs_chunk (encoded as XDR)\n"
34960 " length of chunk\n"
34961 " struct guestfs_chunk (encoded as XDR)\n"
34962 "   ...\n"
34963 " length of chunk\n"
34964 " struct guestfs_chunk (with data.data_len == 0)\n"
34965 "\n"
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:2440
34970 msgid ""
34971 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
34972 "is set in the final chunk to indicate either successful completion or early "
34973 "cancellation."
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:2444
34978 msgid ""
34979 "At time of writing there are no functions that have more than one FileIn "
34980 "parameter.  However this is (theoretically) supported, by sending the "
34981 "sequence of chunks for each FileIn parameter one after another (from left to "
34982 "right)."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs.pod:2449
34987 msgid ""
34988 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
34989 "transfer.  The library does this by sending a chunk with a special flag set "
34990 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
34991 "RPC, does I<not> send any reply, and goes back to reading the next request."
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:2455
34996 msgid ""
34997 "The daemon may also cancel.  It does this by writing a special word "
34998 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
34999 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
35000 "cancel chunk).  The special word is chosen so that even if cancellation "
35001 "happens right at the end of the transfer (after the library has finished "
35002 "writing and has started listening for the reply), the \"spurious\" cancel "
35003 "flag will not be confused with the reply message."
35004 msgstr ""
35005
35006 #. type: textblock
35007 #: ../src/guestfs.pod:2464
35008 msgid ""
35009 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
35010 "limit), and also files where the size is not known in advance (eg. from "
35011 "pipes or sockets).  However the chunks are rather small "
35012 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
35013 "to keep much in memory."
35014 msgstr ""
35015
35016 #. type: =head3
35017 #: ../src/guestfs.pod:2470
35018 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:2472
35023 msgid ""
35024 "The protocol for FileOut parameters is exactly the same as for FileIn "
35025 "parameters, but with the roles of daemon and library reversed."
35026 msgstr ""
35027
35028 #. type: verbatim
35029 #: ../src/guestfs.pod:2475
35030 #, no-wrap
35031 msgid ""
35032 " total length (header + ret,\n"
35033 "      but not including the length word itself,\n"
35034 "      and not including the chunks)\n"
35035 " struct guestfs_message_header (encoded as XDR)\n"
35036 " struct guestfs_<foo>_ret (encoded as XDR)\n"
35037 " sequence of chunks for FileOut param #0\n"
35038 " sequence of chunks for FileOut param #1 etc.\n"
35039 "\n"
35040 msgstr ""
35041
35042 #. type: =head3
35043 #: ../src/guestfs.pod:2483
35044 msgid "INITIAL MESSAGE"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:2485
35049 msgid ""
35050 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
35051 "which indicates that the guest and daemon is alive.  This is what "
35052 "L</guestfs_launch> waits for."
35053 msgstr ""
35054
35055 #. type: =head3
35056 #: ../src/guestfs.pod:2489
35057 msgid "PROGRESS NOTIFICATION MESSAGES"
35058 msgstr ""
35059
35060 #. type: textblock
35061 #: ../src/guestfs.pod:2491
35062 msgid ""
35063 "The daemon may send progress notification messages at any time.  These are "
35064 "distinguished by the normal length word being replaced by "
35065 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
35066 msgstr ""
35067
35068 #. type: textblock
35069 #: ../src/guestfs.pod:2495
35070 msgid ""
35071 "The library turns them into progress callbacks (see "
35072 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
35073 "them if not."
35074 msgstr ""
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:2499
35078 msgid ""
35079 "The daemon self-limits the frequency of progress messages it sends (see "
35080 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
35081 "messages."
35082 msgstr ""
35083
35084 #. type: =head1
35085 #: ../src/guestfs.pod:2503
35086 msgid "LIBGUESTFS VERSION NUMBERS"
35087 msgstr ""
35088
35089 #. type: textblock
35090 #: ../src/guestfs.pod:2505
35091 msgid ""
35092 "Since April 2010, libguestfs has started to make separate development and "
35093 "stable releases, along with corresponding branches in our git repository.  "
35094 "These separate releases can be identified by version number:"
35095 msgstr ""
35096
35097 #. type: verbatim
35098 #: ../src/guestfs.pod:2510
35099 #, no-wrap
35100 msgid ""
35101 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
35102 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
35103 "       |\n"
35104 "       v\n"
35105 " 1  .  3  .  5\n"
35106 " ^           ^\n"
35107 " |           |\n"
35108 " |           `-------- sub-version\n"
35109 " |\n"
35110 " `------ always '1' because we don't change the ABI\n"
35111 "\n"
35112 msgstr ""
35113
35114 #. type: textblock
35115 #: ../src/guestfs.pod:2521
35116 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
35117 msgstr ""
35118
35119 #. type: textblock
35120 #: ../src/guestfs.pod:2523
35121 msgid ""
35122 "As time passes we cherry pick fixes from the development branch and backport "
35123 "those into the stable branch, the effect being that the stable branch should "
35124 "get more stable and less buggy over time.  So the stable releases are ideal "
35125 "for people who don't need new features but would just like the software to "
35126 "work."
35127 msgstr ""
35128
35129 #. type: textblock
35130 #: ../src/guestfs.pod:2529
35131 msgid "Our criteria for backporting changes are:"
35132 msgstr ""
35133
35134 #. type: textblock
35135 #: ../src/guestfs.pod:2535
35136 msgid ""
35137 "Documentation changes which don't affect any code are backported unless the "
35138 "documentation refers to a future feature which is not in stable."
35139 msgstr ""
35140
35141 #. type: textblock
35142 #: ../src/guestfs.pod:2541
35143 msgid ""
35144 "Bug fixes which are not controversial, fix obvious problems, and have been "
35145 "well tested are backported."
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs.pod:2546
35150 msgid ""
35151 "Simple rearrangements of code which shouldn't affect how it works get "
35152 "backported.  This is so that the code in the two branches doesn't get too "
35153 "far out of step, allowing us to backport future fixes more easily."
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs.pod:2552
35158 msgid ""
35159 "We I<don't> backport new features, new APIs, new tools etc, except in one "
35160 "exceptional case: the new feature is required in order to implement an "
35161 "important bug fix."
35162 msgstr ""
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:2558
35166 msgid ""
35167 "A new stable branch starts when we think the new features in development are "
35168 "substantial and compelling enough over the current stable branch to warrant "
35169 "it.  When that happens we create new stable and development versions 1.N.0 "
35170 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
35171 "stable at this point, but by backporting fixes from development, that branch "
35172 "will stabilize over time."
35173 msgstr ""
35174
35175 #. type: =head1
35176 #: ../src/guestfs.pod:2566
35177 msgid "EXTENDING LIBGUESTFS"
35178 msgstr ""
35179
35180 #. type: =head2
35181 #: ../src/guestfs.pod:2568
35182 msgid "ADDING A NEW API ACTION"
35183 msgstr ""
35184
35185 #. type: textblock
35186 #: ../src/guestfs.pod:2570
35187 msgid ""
35188 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
35189 "documentation) are generated, and this makes it easy to extend the "
35190 "libguestfs API."
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:2574
35195 msgid "To add a new API action there are two changes:"
35196 msgstr ""
35197
35198 #. type: textblock
35199 #: ../src/guestfs.pod:2580
35200 msgid ""
35201 "You need to add a description of the call (name, parameters, return type, "
35202 "tests, documentation) to C<generator/generator_actions.ml>."
35203 msgstr ""
35204
35205 #. type: textblock
35206 #: ../src/guestfs.pod:2583
35207 msgid ""
35208 "There are two sorts of API action, depending on whether the call goes "
35209 "through to the daemon in the appliance, or is serviced entirely by the "
35210 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35211 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35212 "an example of the latter, since a trace flag is maintained in the handle and "
35213 "all tracing is done on the library side."
35214 msgstr ""
35215
35216 #. type: textblock
35217 #: ../src/guestfs.pod:2591
35218 msgid ""
35219 "Most new actions are of the first type, and get added to the "
35220 "C<daemon_functions> list.  Each function has a unique procedure number used "
35221 "in the RPC protocol which is assigned to that action when we publish "
35222 "libguestfs and cannot be reused.  Take the latest procedure number and "
35223 "increment it."
35224 msgstr ""
35225
35226 #. type: textblock
35227 #: ../src/guestfs.pod:2597
35228 msgid ""
35229 "For library-only actions of the second type, add to the "
35230 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35231 "library and do not travel over the RPC mechanism to the daemon, these "
35232 "functions do not need a procedure number, and so the procedure number is set "
35233 "to C<-1>."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:2605
35238 msgid "Implement the action (in C):"
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:2607
35243 msgid ""
35244 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35245 "C<daemon/> directory."
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:2610
35250 msgid ""
35251 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35252 "(note: double underscore) in the C<src/> directory."
35253 msgstr ""
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:2613
35257 msgid "In either case, use another function as an example of what to do."
35258 msgstr ""
35259
35260 #. type: textblock
35261 #: ../src/guestfs.pod:2617
35262 msgid "After making these changes, use C<make> to compile."
35263 msgstr ""
35264
35265 #. type: textblock
35266 #: ../src/guestfs.pod:2619
35267 msgid ""
35268 "Note that you don't need to implement the RPC, language bindings, manual "
35269 "pages or anything else.  It's all automatically generated from the OCaml "
35270 "description."
35271 msgstr ""
35272
35273 #. type: =head2
35274 #: ../src/guestfs.pod:2623
35275 msgid "ADDING TESTS FOR AN API ACTION"
35276 msgstr ""
35277
35278 #. type: textblock
35279 #: ../src/guestfs.pod:2625
35280 msgid ""
35281 "You can supply zero or as many tests as you want per API call.  The tests "
35282 "can either be added as part of the API description "
35283 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
35284 "drop a script into C<regressions/>.  Note that adding a script to "
35285 "C<regressions/> is slower, so if possible use the first method."
35286 msgstr ""
35287
35288 #. type: textblock
35289 #: ../src/guestfs.pod:2631
35290 msgid ""
35291 "The following describes the test environment used when you add an API test "
35292 "in C<generator_actions.ml>."
35293 msgstr ""
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:2634
35297 msgid "The test environment has 4 block devices:"
35298 msgstr ""
35299
35300 #. type: =item
35301 #: ../src/guestfs.pod:2638
35302 msgid "C</dev/sda> 500MB"
35303 msgstr ""
35304
35305 #. type: textblock
35306 #: ../src/guestfs.pod:2640
35307 msgid "General block device for testing."
35308 msgstr ""
35309
35310 #. type: =item
35311 #: ../src/guestfs.pod:2642
35312 msgid "C</dev/sdb> 50MB"
35313 msgstr ""
35314
35315 #. type: textblock
35316 #: ../src/guestfs.pod:2644
35317 msgid ""
35318 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35319 "operations."
35320 msgstr ""
35321
35322 #. type: =item
35323 #: ../src/guestfs.pod:2647
35324 msgid "C</dev/sdc> 10MB"
35325 msgstr ""
35326
35327 #. type: textblock
35328 #: ../src/guestfs.pod:2649
35329 msgid "Used in a few tests where two block devices are needed."
35330 msgstr ""
35331
35332 #. type: =item
35333 #: ../src/guestfs.pod:2651
35334 msgid "C</dev/sdd>"
35335 msgstr ""
35336
35337 #. type: textblock
35338 #: ../src/guestfs.pod:2653
35339 msgid "ISO with fixed content (see C<images/test.iso>)."
35340 msgstr ""
35341
35342 #. type: textblock
35343 #: ../src/guestfs.pod:2657
35344 msgid ""
35345 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35346 "appliance and block devices are reused between tests.  So don't try testing "
35347 "L</guestfs_kill_subprocess> :-x"
35348 msgstr ""
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:2661
35352 msgid ""
35353 "Each test starts with an initial scenario, selected using one of the "
35354 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35355 "initialize the disks mentioned above in a particular way as documented in "
35356 "C<generator_types.ml>.  You should not assume anything about the previous "
35357 "contents of other disks that are not initialized."
35358 msgstr ""
35359
35360 #. type: textblock
35361 #: ../src/guestfs.pod:2667
35362 msgid ""
35363 "You can add a prerequisite clause to any individual test.  This is a "
35364 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
35365 "if testing a command which might not work on all variations of libguestfs "
35366 "builds.  A test that has prerequisite of C<Always> means to run "
35367 "unconditionally."
35368 msgstr ""
35369
35370 #. type: textblock
35371 #: ../src/guestfs.pod:2673
35372 msgid ""
35373 "In addition, packagers can skip individual tests by setting environment "
35374 "variables before running C<make check>."
35375 msgstr ""
35376
35377 #. type: verbatim
35378 #: ../src/guestfs.pod:2676
35379 #, no-wrap
35380 msgid ""
35381 " SKIP_TEST_<CMD>_<NUM>=1\n"
35382 "\n"
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:2678
35387 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35388 msgstr ""
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:2680
35392 msgid "or:"
35393 msgstr ""
35394
35395 #. type: verbatim
35396 #: ../src/guestfs.pod:2682
35397 #, no-wrap
35398 msgid ""
35399 " SKIP_TEST_<CMD>=1\n"
35400 "\n"
35401 msgstr ""
35402
35403 #. type: textblock
35404 #: ../src/guestfs.pod:2684
35405 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35406 msgstr ""
35407
35408 #. type: textblock
35409 #: ../src/guestfs.pod:2686
35410 msgid "Packagers can run only certain tests by setting for example:"
35411 msgstr ""
35412
35413 #. type: verbatim
35414 #: ../src/guestfs.pod:2688
35415 #, no-wrap
35416 msgid ""
35417 " TEST_ONLY=\"vfs_type zerofree\"\n"
35418 "\n"
35419 msgstr ""
35420
35421 #. type: textblock
35422 #: ../src/guestfs.pod:2690
35423 msgid ""
35424 "See C<capitests/tests.c> for more details of how these environment variables "
35425 "work."
35426 msgstr ""
35427
35428 #. type: =head2
35429 #: ../src/guestfs.pod:2693
35430 msgid "DEBUGGING NEW API ACTIONS"
35431 msgstr ""
35432
35433 #. type: textblock
35434 #: ../src/guestfs.pod:2695
35435 msgid "Test new actions work before submitting them."
35436 msgstr ""
35437
35438 #. type: textblock
35439 #: ../src/guestfs.pod:2697
35440 msgid "You can use guestfish to try out new commands."
35441 msgstr ""
35442
35443 #. type: textblock
35444 #: ../src/guestfs.pod:2699
35445 msgid ""
35446 "Debugging the daemon is a problem because it runs inside a minimal "
35447 "environment.  However you can fprintf messages in the daemon to stderr, and "
35448 "they will show up if you use C<guestfish -v>."
35449 msgstr ""
35450
35451 #. type: =head2
35452 #: ../src/guestfs.pod:2703
35453 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:2705
35458 msgid ""
35459 "Our C source code generally adheres to some basic code-formatting "
35460 "conventions.  The existing code base is not totally consistent on this "
35461 "front, but we do prefer that contributed code be formatted similarly.  In "
35462 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35463 "indentation level, and other than that, follow the K&R style."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:2711
35468 msgid ""
35469 "If you use Emacs, add the following to one of one of your start-up files "
35470 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
35471 msgstr ""
35472
35473 #. type: verbatim
35474 #: ../src/guestfs.pod:2714
35475 #, no-wrap
35476 msgid ""
35477 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35478 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35479 " (add-hook 'find-file-hook\n"
35480 "     '(lambda () (if (and buffer-file-name\n"
35481 "                          (string-match \"/libguestfs\\\\>\"\n"
35482 "                              (buffer-file-name))\n"
35483 "                          (not (string-equal mode-name \"Change Log\"))\n"
35484 "                          (not (string-equal mode-name \"Makefile\")))\n"
35485 "                     (setq indent-tabs-mode nil))))\n"
35486 " \n"
35487 msgstr ""
35488
35489 #. type: verbatim
35490 #: ../src/guestfs.pod:2724
35491 #, no-wrap
35492 msgid ""
35493 " ;;; When editing C sources in libguestfs, use this style.\n"
35494 " (defun libguestfs-c-mode ()\n"
35495 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35496 "   (interactive)\n"
35497 "   (c-set-style \"K&R\")\n"
35498 "   (setq c-indent-level 2)\n"
35499 "   (setq c-basic-offset 2))\n"
35500 " (add-hook 'c-mode-hook\n"
35501 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35502 "                               (buffer-file-name))\n"
35503 "                           (libguestfs-c-mode))))\n"
35504 "\n"
35505 msgstr ""
35506
35507 #. type: textblock
35508 #: ../src/guestfs.pod:2736
35509 msgid "Enable warnings when compiling (and fix any problems this finds):"
35510 msgstr ""
35511
35512 #. type: verbatim
35513 #: ../src/guestfs.pod:2739
35514 #, no-wrap
35515 msgid ""
35516 " ./configure --enable-gcc-warnings\n"
35517 "\n"
35518 msgstr ""
35519
35520 #. type: textblock
35521 #: ../src/guestfs.pod:2741
35522 msgid "Useful targets are:"
35523 msgstr ""
35524
35525 #. type: verbatim
35526 #: ../src/guestfs.pod:2743
35527 #, no-wrap
35528 msgid ""
35529 " make syntax-check  # checks the syntax of the C code\n"
35530 " make check         # runs the test suite\n"
35531 "\n"
35532 msgstr ""
35533
35534 #. type: =head2
35535 #: ../src/guestfs.pod:2746
35536 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35537 msgstr ""
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:2748
35541 msgid ""
35542 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35543 "which are used to do shell quoting."
35544 msgstr ""
35545
35546 #. type: =item
35547 #: ../src/guestfs.pod:2753
35548 msgid "%Q"
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:2755
35553 msgid ""
35554 "Simple shell quoted string.  Any spaces or other shell characters are "
35555 "escaped for you."
35556 msgstr ""
35557
35558 #. type: =item
35559 #: ../src/guestfs.pod:2758
35560 msgid "%R"
35561 msgstr ""
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:2760
35565 msgid ""
35566 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35567 "the sysroot."
35568 msgstr ""
35569
35570 #. type: verbatim
35571 #: ../src/guestfs.pod:2767
35572 #, no-wrap
35573 msgid ""
35574 " asprintf (&cmd, \"cat %R\", path);\n"
35575 "\n"
35576 msgstr ""
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:2769
35580 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:2771
35585 msgid ""
35586 "I<Note:> Do I<not> use these when you are passing parameters to the "
35587 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
35588 "because they are not passed via the shell (instead, straight to exec).  You "
35589 "probably want to use the C<sysroot_path()> function however."
35590 msgstr ""
35591
35592 #. type: =head2
35593 #: ../src/guestfs.pod:2777
35594 msgid "SUBMITTING YOUR NEW API ACTIONS"
35595 msgstr ""
35596
35597 #. type: textblock
35598 #: ../src/guestfs.pod:2779
35599 msgid ""
35600 "Submit patches to the mailing list: "
35601 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
35602 "L<rjones@redhat.com>."
35603 msgstr ""
35604
35605 #. type: =head2
35606 #: ../src/guestfs.pod:2783
35607 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35608 msgstr ""
35609
35610 #. type: textblock
35611 #: ../src/guestfs.pod:2785
35612 msgid "We support i18n (gettext anyhow) in the library."
35613 msgstr ""
35614
35615 #. type: textblock
35616 #: ../src/guestfs.pod:2787
35617 msgid ""
35618 "However many messages come from the daemon, and we don't translate those at "
35619 "the moment.  One reason is that the appliance generally has all locale files "
35620 "removed from it, because they take up a lot of space.  So we'd have to readd "
35621 "some of those, as well as copying our PO files into the appliance."
35622 msgstr ""
35623
35624 #. type: textblock
35625 #: ../src/guestfs.pod:2793
35626 msgid ""
35627 "Debugging messages are never translated, since they are intended for the "
35628 "programmers."
35629 msgstr ""
35630
35631 #. type: =head2
35632 #: ../src/guestfs.pod:2796
35633 msgid "SOURCE CODE SUBDIRECTORIES"
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:2802
35638 msgid "The libguestfs appliance, build scripts and so on."
35639 msgstr ""
35640
35641 #. type: =item
35642 #: ../src/guestfs.pod:2804
35643 msgid "C<capitests>"
35644 msgstr ""
35645
35646 #. type: textblock
35647 #: ../src/guestfs.pod:2806
35648 msgid "Automated tests of the C API."
35649 msgstr ""
35650
35651 #. type: =item
35652 #: ../src/guestfs.pod:2808
35653 msgid "C<cat>"
35654 msgstr ""
35655
35656 #. type: textblock
35657 #: ../src/guestfs.pod:2810
35658 msgid ""
35659 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35660 "documentation."
35661 msgstr ""
35662
35663 #. type: =item
35664 #: ../src/guestfs.pod:2813
35665 msgid "C<caution>"
35666 msgstr ""
35667
35668 #. type: textblock
35669 #: ../src/guestfs.pod:2815
35670 msgid ""
35671 "Safety and liveness tests of components that libguestfs depends upon (not of "
35672 "libguestfs itself).  Mainly this is for qemu and the kernel."
35673 msgstr ""
35674
35675 #. type: =item
35676 #: ../src/guestfs.pod:2818
35677 msgid "C<contrib>"
35678 msgstr ""
35679
35680 #. type: textblock
35681 #: ../src/guestfs.pod:2820
35682 msgid "Outside contributions, experimental parts."
35683 msgstr ""
35684
35685 #. type: =item
35686 #: ../src/guestfs.pod:2822
35687 msgid "C<daemon>"
35688 msgstr ""
35689
35690 #. type: textblock
35691 #: ../src/guestfs.pod:2824
35692 msgid ""
35693 "The daemon that runs inside the libguestfs appliance and carries out "
35694 "actions."
35695 msgstr ""
35696
35697 #. type: =item
35698 #: ../src/guestfs.pod:2827
35699 msgid "C<df>"
35700 msgstr ""
35701
35702 #. type: textblock
35703 #: ../src/guestfs.pod:2829
35704 msgid "L<virt-df(1)> command and documentation."
35705 msgstr ""
35706
35707 #. type: =item
35708 #: ../src/guestfs.pod:2831
35709 msgid "C<edit>"
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:2833
35714 msgid "L<virt-edit(1)> command and documentation."
35715 msgstr ""
35716
35717 #. type: =item
35718 #: ../src/guestfs.pod:2835
35719 msgid "C<examples>"
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:2837
35724 msgid "C API example code."
35725 msgstr ""
35726
35727 #. type: =item
35728 #: ../src/guestfs.pod:2839
35729 msgid "C<fish>"
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:2841
35734 msgid ""
35735 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35736 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35737 "L<virt-tar-out(1)>."
35738 msgstr ""
35739
35740 #. type: =item
35741 #: ../src/guestfs.pod:2845
35742 msgid "C<fuse>"
35743 msgstr ""
35744
35745 #. type: textblock
35746 #: ../src/guestfs.pod:2847
35747 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35748 msgstr ""
35749
35750 #. type: =item
35751 #: ../src/guestfs.pod:2849
35752 msgid "C<generator>"
35753 msgstr ""
35754
35755 #. type: textblock
35756 #: ../src/guestfs.pod:2851
35757 msgid ""
35758 "The crucially important generator, used to automatically generate large "
35759 "amounts of boilerplate C code for things like RPC and bindings."
35760 msgstr ""
35761
35762 #. type: =item
35763 #: ../src/guestfs.pod:2854
35764 msgid "C<images>"
35765 msgstr ""
35766
35767 #. type: textblock
35768 #: ../src/guestfs.pod:2856
35769 msgid "Files used by the test suite."
35770 msgstr ""
35771
35772 #. type: textblock
35773 #: ../src/guestfs.pod:2858
35774 msgid "Some \"phony\" guest images which we test against."
35775 msgstr ""
35776
35777 #. type: =item
35778 #: ../src/guestfs.pod:2860
35779 msgid "C<inspector>"
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:2862
35784 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35785 msgstr ""
35786
35787 #. type: =item
35788 #: ../src/guestfs.pod:2864
35789 msgid "C<logo>"
35790 msgstr ""
35791
35792 #. type: textblock
35793 #: ../src/guestfs.pod:2866
35794 msgid "Logo used on the website.  The fish is called Arthur by the way."
35795 msgstr ""
35796
35797 #. type: =item
35798 #: ../src/guestfs.pod:2868
35799 msgid "C<m4>"
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:2870
35804 msgid "M4 macros used by autoconf."
35805 msgstr ""
35806
35807 #. type: =item
35808 #: ../src/guestfs.pod:2872
35809 msgid "C<po>"
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../src/guestfs.pod:2874
35814 msgid "Translations of simple gettext strings."
35815 msgstr ""
35816
35817 #. type: =item
35818 #: ../src/guestfs.pod:2876
35819 msgid "C<po-docs>"
35820 msgstr ""
35821
35822 #. type: textblock
35823 #: ../src/guestfs.pod:2878
35824 msgid ""
35825 "The build infrastructure and PO files for translations of manpages and POD "
35826 "files.  Eventually this will be combined with the C<po> directory, but that "
35827 "is rather complicated."
35828 msgstr ""
35829
35830 #. type: =item
35831 #: ../src/guestfs.pod:2882
35832 msgid "C<regressions>"
35833 msgstr ""
35834
35835 #. type: textblock
35836 #: ../src/guestfs.pod:2884
35837 msgid "Regression tests."
35838 msgstr ""
35839
35840 #. type: =item
35841 #: ../src/guestfs.pod:2886
35842 msgid "C<rescue>"
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:2888
35847 msgid "L<virt-rescue(1)> command and documentation."
35848 msgstr ""
35849
35850 #. type: =item
35851 #: ../src/guestfs.pod:2890
35852 msgid "C<src>"
35853 msgstr ""
35854
35855 #. type: textblock
35856 #: ../src/guestfs.pod:2892
35857 msgid "Source code to the C library."
35858 msgstr ""
35859
35860 #. type: =item
35861 #: ../src/guestfs.pod:2894
35862 msgid "C<tools>"
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:2896
35867 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
35868 msgstr ""
35869
35870 #. type: =item
35871 #: ../src/guestfs.pod:2898
35872 msgid "C<test-tool>"
35873 msgstr ""
35874
35875 #. type: textblock
35876 #: ../src/guestfs.pod:2900
35877 msgid ""
35878 "Test tool for end users to test if their qemu/kernel combination will work "
35879 "with libguestfs."
35880 msgstr ""
35881
35882 #. type: =item
35883 #: ../src/guestfs.pod:2903
35884 msgid "C<csharp>"
35885 msgstr ""
35886
35887 #. type: =item
35888 #: ../src/guestfs.pod:2905
35889 msgid "C<erlang>"
35890 msgstr ""
35891
35892 #. type: =item
35893 #: ../src/guestfs.pod:2907
35894 msgid "C<haskell>"
35895 msgstr ""
35896
35897 #. type: =item
35898 #: ../src/guestfs.pod:2909
35899 msgid "C<java>"
35900 msgstr ""
35901
35902 #. type: =item
35903 #: ../src/guestfs.pod:2911
35904 msgid "C<ocaml>"
35905 msgstr ""
35906
35907 #. type: =item
35908 #: ../src/guestfs.pod:2913
35909 msgid "C<php>"
35910 msgstr ""
35911
35912 #. type: =item
35913 #: ../src/guestfs.pod:2915
35914 msgid "C<perl>"
35915 msgstr ""
35916
35917 #. type: =item
35918 #: ../src/guestfs.pod:2917
35919 msgid "C<python>"
35920 msgstr ""
35921
35922 #. type: =item
35923 #: ../src/guestfs.pod:2919
35924 msgid "C<ruby>"
35925 msgstr ""
35926
35927 #. type: textblock
35928 #: ../src/guestfs.pod:2921
35929 msgid "Language bindings."
35930 msgstr ""
35931
35932 #. type: =head2
35933 #: ../src/guestfs.pod:2925
35934 msgid "MAKING A STABLE RELEASE"
35935 msgstr ""
35936
35937 #. type: textblock
35938 #: ../src/guestfs.pod:2927
35939 msgid ""
35940 "When we make a stable release, there are several steps documented here.  See "
35941 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
35942 "branch policy."
35943 msgstr ""
35944
35945 #. type: textblock
35946 #: ../src/guestfs.pod:2935
35947 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
35948 msgstr ""
35949
35950 #. type: textblock
35951 #: ../src/guestfs.pod:2940
35952 msgid "Finalize RELEASE-NOTES."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../src/guestfs.pod:2944
35957 msgid "Update ROADMAP."
35958 msgstr ""
35959
35960 #. type: textblock
35961 #: ../src/guestfs.pod:2948
35962 msgid "Run C<src/api-support/update-from-tarballs.sh>."
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:2952
35967 msgid "Push and pull from Transifex."
35968 msgstr ""
35969
35970 #. type: textblock
35971 #: ../src/guestfs.pod:2954
35972 msgid "Run:"
35973 msgstr ""
35974
35975 #. type: verbatim
35976 #: ../src/guestfs.pod:2956
35977 #, no-wrap
35978 msgid ""
35979 " tx push -s\n"
35980 "\n"
35981 msgstr ""
35982
35983 #. type: textblock
35984 #: ../src/guestfs.pod:2958
35985 msgid "to push the latest POT files to Transifex.  Then run:"
35986 msgstr ""
35987
35988 #. type: verbatim
35989 #: ../src/guestfs.pod:2960
35990 #, no-wrap
35991 msgid ""
35992 " ./tx-pull.sh\n"
35993 "\n"
35994 msgstr ""
35995
35996 #. type: textblock
35997 #: ../src/guestfs.pod:2962
35998 msgid "which is a wrapper to pull the latest translated C<*.po> files."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:2966
36003 msgid ""
36004 "Create new stable and development directories under "
36005 "L<http://libguestfs.org/download>."
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:2971
36010 msgid "Create the branch in git:"
36011 msgstr ""
36012
36013 #. type: verbatim
36014 #: ../src/guestfs.pod:2973
36015 #, no-wrap
36016 msgid ""
36017 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
36018 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
36019 " git branch stable-1.XX\n"
36020 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
36021 "\n"
36022 msgstr ""
36023
36024 #. type: =head1
36025 #: ../src/guestfs.pod:2980
36026 msgid "LIMITS"
36027 msgstr ""
36028
36029 #. type: =head2
36030 #: ../src/guestfs.pod:2982
36031 msgid "PROTOCOL LIMITS"
36032 msgstr ""
36033
36034 #. type: textblock
36035 #: ../src/guestfs.pod:2984
36036 msgid ""
36037 "Internally libguestfs uses a message-based protocol to pass API calls and "
36038 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
36039 "plenty more detail about this).  The maximum message size used by the "
36040 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
36041 "aware of this limit.  The API calls which may be affected are individually "
36042 "documented, with a link back to this section of the documentation."
36043 msgstr ""
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:2992
36047 msgid ""
36048 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
36049 "a simple string.  Because this string is at some point internally encoded as "
36050 "a message, the maximum size that it can return is slightly under 4 MB.  If "
36051 "the requested file is larger than this then you will get an error."
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:2998
36056 msgid ""
36057 "In order to transfer large files into and out of the guest filesystem, you "
36058 "need to use particular calls that support this.  The sections L</UPLOADING> "
36059 "and L</DOWNLOADING> document how to do this."
36060 msgstr ""
36061
36062 #. type: textblock
36063 #: ../src/guestfs.pod:3002
36064 msgid ""
36065 "You might also consider mounting the disk image using our FUSE filesystem "
36066 "support (L<guestmount(1)>)."
36067 msgstr ""
36068
36069 #. type: =head2
36070 #: ../src/guestfs.pod:3005
36071 msgid "MAXIMUM NUMBER OF DISKS"
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:3007
36076 msgid "When using virtio disks (the default) the current limit is B<25> disks."
36077 msgstr ""
36078
36079 #. type: textblock
36080 #: ../src/guestfs.pod:3010
36081 msgid ""
36082 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
36083 "slots.  However febootstrap only understands disks with names C</dev/vda> "
36084 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
36085 "purposes."
36086 msgstr ""
36087
36088 #. type: textblock
36089 #: ../src/guestfs.pod:3015
36090 msgid ""
36091 "We are working to substantially raise this limit in future versions but it "
36092 "requires complex changes to qemu."
36093 msgstr ""
36094
36095 #. type: textblock
36096 #: ../src/guestfs.pod:3018
36097 msgid ""
36098 "In future versions of libguestfs it should also be possible to \"hot plug\" "
36099 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
36100 "requires changes to qemu."
36101 msgstr ""
36102
36103 #. type: =head2
36104 #: ../src/guestfs.pod:3022
36105 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
36106 msgstr ""
36107
36108 #. type: textblock
36109 #: ../src/guestfs.pod:3024
36110 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
36111 msgstr ""
36112
36113 #. type: textblock
36114 #: ../src/guestfs.pod:3026
36115 msgid ""
36116 "This is because it reserves 4 bits for the minor device number (thus "
36117 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
36118 msgstr ""
36119
36120 #. type: textblock
36121 #: ../src/guestfs.pod:3029
36122 msgid ""
36123 "If you attach a disk with more than 15 partitions, the extra partitions are "
36124 "ignored by libguestfs."
36125 msgstr ""
36126
36127 #. type: =head2
36128 #: ../src/guestfs.pod:3032
36129 msgid "MAXIMUM SIZE OF A DISK"
36130 msgstr ""
36131
36132 #. type: textblock
36133 #: ../src/guestfs.pod:3034
36134 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
36135 msgstr ""
36136
36137 #. type: textblock
36138 #: ../src/guestfs.pod:3036
36139 msgid ""
36140 "We have tested block devices up to 1 exabyte (2**60 or "
36141 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
36142 "filesystem."
36143 msgstr ""
36144
36145 #. type: textblock
36146 #: ../src/guestfs.pod:3040
36147 msgid ""
36148 "Although libguestfs probably does not impose any limit, the underlying host "
36149 "storage will.  If you store disk images on a host ext4 filesystem, then the "
36150 "maximum size will be limited by the maximum ext4 file size (currently 16 "
36151 "TB).  If you store disk images as host logical volumes then you are limited "
36152 "by the maximum size of an LV."
36153 msgstr ""
36154
36155 #. type: textblock
36156 #: ../src/guestfs.pod:3046
36157 msgid ""
36158 "For the hugest disk image files, we recommend using XFS on the host for "
36159 "storage."
36160 msgstr ""
36161
36162 #. type: =head2
36163 #: ../src/guestfs.pod:3049
36164 msgid "MAXIMUM SIZE OF A PARTITION"
36165 msgstr ""
36166
36167 #. type: textblock
36168 #: ../src/guestfs.pod:3051
36169 msgid ""
36170 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
36171 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
36172 "address a partition located beyond 2 TB on the disk."
36173 msgstr ""
36174
36175 #. type: textblock
36176 #: ../src/guestfs.pod:3055
36177 msgid ""
36178 "It is recommended that you use GPT partitions on disks which are larger than "
36179 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
36180 "which are theoretically larger than the largest disk we could support."
36181 msgstr ""
36182
36183 #. type: =head2
36184 #: ../src/guestfs.pod:3060
36185 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
36186 msgstr ""
36187
36188 #. type: textblock
36189 #: ../src/guestfs.pod:3062
36190 msgid ""
36191 "This depends on the filesystem type.  libguestfs itself does not impose any "
36192 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
36193 "what these limits are."
36194 msgstr ""
36195
36196 #. type: =head2
36197 #: ../src/guestfs.pod:3066
36198 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:3068
36203 msgid ""
36204 "The API functions L</guestfs_upload>, L</guestfs_download>, "
36205 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36206 "uploads and downloads."
36207 msgstr ""
36208
36209 #. type: =head2
36210 #: ../src/guestfs.pod:3072
36211 msgid "INSPECTION LIMITS"
36212 msgstr ""
36213
36214 #. type: textblock
36215 #: ../src/guestfs.pod:3074
36216 msgid ""
36217 "The inspection code has several arbitrary limits on things like the size of "
36218 "Windows Registry hive it will read, and the length of product name.  These "
36219 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36220 "memory and disk space on the host, and should not be reached in practice.  "
36221 "See the source code for more information."
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../src/guestfs.pod:3100
36226 msgid ""
36227 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36228 "effect as calling C<guestfs_set_verbose (g, 1)>."
36229 msgstr ""
36230
36231 #. type: textblock
36232 #: ../src/guestfs.pod:3112
36233 msgid ""
36234 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36235 "the discussion of paths in section L</PATH> above."
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:3121
36240 msgid "See also L</QEMU WRAPPERS> above."
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:3125
36245 msgid ""
36246 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36247 "effect as calling C<guestfs_set_trace (g, 1)>."
36248 msgstr ""
36249
36250 #. type: textblock
36251 #: ../src/guestfs.pod:3143
36252 msgid ""
36253 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, "
36254 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
36255 "L<guestfs-ruby(3)>, L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, "
36256 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
36257 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
36258 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
36259 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
36260 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36261 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36262 msgstr ""
36263
36264 #. type: textblock
36265 #: ../src/guestfs.pod:3174
36266 msgid ""
36267 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
36268 "L<lvm(8)>, L<disktype(1)>."
36269 msgstr ""
36270
36271 #. type: =head1
36272 #: ../src/guestfs.pod:3181 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
36273 msgid "BUGS"
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../src/guestfs.pod:3183
36278 msgid "To get a list of bugs against libguestfs use this link:"
36279 msgstr ""
36280
36281 #. type: textblock
36282 #: ../src/guestfs.pod:3185
36283 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
36284 msgstr ""
36285
36286 #. type: textblock
36287 #: ../src/guestfs.pod:3187
36288 msgid "To report a new bug against libguestfs use this link:"
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../src/guestfs.pod:3189
36293 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
36294 msgstr ""
36295
36296 #. type: textblock
36297 #: ../src/guestfs.pod:3191
36298 msgid "When reporting a bug, please check:"
36299 msgstr ""
36300
36301 #. type: textblock
36302 #: ../src/guestfs.pod:3197
36303 msgid "That the bug hasn't been reported already."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs.pod:3201
36308 msgid "That you are testing a recent version."
36309 msgstr ""
36310
36311 #. type: textblock
36312 #: ../src/guestfs.pod:3205
36313 msgid "Describe the bug accurately, and give a way to reproduce it."
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:3209
36318 msgid ""
36319 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36320 "bug report."
36321 msgstr ""
36322
36323 #. type: textblock
36324 #: ../test-tool/libguestfs-test-tool.pod:5
36325 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
36326 msgstr ""
36327
36328 #. type: verbatim
36329 #: ../test-tool/libguestfs-test-tool.pod:9
36330 #, no-wrap
36331 msgid ""
36332 " libguestfs-test-tool [--options]\n"
36333 "\n"
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../test-tool/libguestfs-test-tool.pod:13
36338 msgid ""
36339 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
36340 "to check basic libguestfs functionality is working.  This is needed because "
36341 "libguestfs occasionally breaks for reasons beyond our control: usually "
36342 "because of changes in the underlying qemu or kernel packages, or the host "
36343 "environment."
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../test-tool/libguestfs-test-tool.pod:19
36348 msgid "If you suspect a problem in libguestfs, then just run:"
36349 msgstr ""
36350
36351 #. type: verbatim
36352 #: ../test-tool/libguestfs-test-tool.pod:21
36353 #, no-wrap
36354 msgid ""
36355 " libguestfs-test-tool\n"
36356 "\n"
36357 msgstr ""
36358
36359 #. type: textblock
36360 #: ../test-tool/libguestfs-test-tool.pod:23
36361 msgid "It will print lots of diagnostic messages."
36362 msgstr ""
36363
36364 #. type: textblock
36365 #: ../test-tool/libguestfs-test-tool.pod:25
36366 msgid "If it runs to completion successfully, you will see this near the end:"
36367 msgstr ""
36368
36369 #. type: verbatim
36370 #: ../test-tool/libguestfs-test-tool.pod:27
36371 #, no-wrap
36372 msgid ""
36373 " ===== TEST FINISHED OK =====\n"
36374 "\n"
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../test-tool/libguestfs-test-tool.pod:29
36379 msgid "and the test tool will exit with code 0."
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../test-tool/libguestfs-test-tool.pod:31
36384 msgid ""
36385 "If it fails (and/or exits with non-zero error code), please paste the "
36386 "I<complete, unedited> output of the test tool into a bug report.  More "
36387 "information about reporting bugs can be found on the "
36388 "L<http://libguestfs.org/> website."
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../test-tool/libguestfs-test-tool.pod:42
36393 msgid "Display short usage information and exit."
36394 msgstr ""
36395
36396 #. type: =item
36397 #: ../test-tool/libguestfs-test-tool.pod:44
36398 msgid "B<--qemu qemu_binary>"
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../test-tool/libguestfs-test-tool.pod:46
36403 msgid ""
36404 "If you have downloaded another qemu binary, point this option at the full "
36405 "path of the binary to try it."
36406 msgstr ""
36407
36408 #. type: =item
36409 #: ../test-tool/libguestfs-test-tool.pod:49
36410 msgid "B<--qemudir qemu_source_dir>"
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../test-tool/libguestfs-test-tool.pod:51
36415 msgid ""
36416 "If you have compiled qemu from source, point this option at the source "
36417 "directory to try it."
36418 msgstr ""
36419
36420 #. type: =item
36421 #: ../test-tool/libguestfs-test-tool.pod:54
36422 msgid "B<-t N>"
36423 msgstr ""
36424
36425 #. type: =item
36426 #: ../test-tool/libguestfs-test-tool.pod:56
36427 msgid "B<--timeout N>"
36428 msgstr ""
36429
36430 #. type: textblock
36431 #: ../test-tool/libguestfs-test-tool.pod:58
36432 msgid ""
36433 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
36434 "minutes) which does not usually need to be adjusted."
36435 msgstr ""
36436
36437 #. type: =head1
36438 #: ../test-tool/libguestfs-test-tool.pod:63
36439 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36440 msgstr ""
36441
36442 #. type: textblock
36443 #: ../test-tool/libguestfs-test-tool.pod:65
36444 msgid ""
36445 "If you have compiled another version of qemu from source and would like to "
36446 "try that, then you can use the I<--qemudir> option to point to the qemu "
36447 "source directory."
36448 msgstr ""
36449
36450 #. type: textblock
36451 #: ../test-tool/libguestfs-test-tool.pod:69
36452 msgid ""
36453 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36454 "option to point to the binary."
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../test-tool/libguestfs-test-tool.pod:72
36459 msgid ""
36460 "Note when using these options, you can ignore the business of qemu wrapper "
36461 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
36462 "wrapper script for you if one is needed."
36463 msgstr ""
36464
36465 #. type: =head1
36466 #: ../test-tool/libguestfs-test-tool.pod:76
36467 msgid "TRYING OUT A DIFFERENT KERNEL"
36468 msgstr ""
36469
36470 #. type: textblock
36471 #: ../test-tool/libguestfs-test-tool.pod:78
36472 msgid ""
36473 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
36474 "libguestfs tries.  You do this by setting the environment variables "
36475 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../test-tool/libguestfs-test-tool.pod:82
36480 msgid ""
36481 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
36482 "information."
36483 msgstr ""
36484
36485 #. type: =head1
36486 #: ../test-tool/libguestfs-test-tool.pod:85
36487 msgid "SELF-DIAGNOSIS"
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../test-tool/libguestfs-test-tool.pod:87
36492 msgid ""
36493 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
36494 "produced by libguestfs-test-tool and/or possible errors."
36495 msgstr ""
36496
36497 #. type: textblock
36498 #: ../test-tool/libguestfs-test-tool.pod:92
36499 msgid ""
36500 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36501 "I<1> if there was an error."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../test-tool/libguestfs-test-tool.pod:97
36506 msgid ""
36507 "For the full list of environment variables which may affect libguestfs, "
36508 "please see the L<guestfs(3)> manual page."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../test-tool/libguestfs-test-tool.pod:102
36513 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../tools/virt-list-filesystems.pl:32
36518 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36519 msgstr ""
36520
36521 #. type: verbatim
36522 #: ../tools/virt-list-filesystems.pl:36
36523 #, no-wrap
36524 msgid ""
36525 " virt-list-filesystems [--options] domname\n"
36526 "\n"
36527 msgstr ""
36528
36529 #. type: verbatim
36530 #: ../tools/virt-list-filesystems.pl:38
36531 #, no-wrap
36532 msgid ""
36533 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36534 "\n"
36535 msgstr ""
36536
36537 #. type: textblock
36538 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36539 msgid ""
36540 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36541 "replacement."
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../tools/virt-list-filesystems.pl:45
36546 msgid ""
36547 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36548 "are contained in a virtual machine or disk image."
36549 msgstr ""
36550
36551 #. type: textblock
36552 #: ../tools/virt-list-filesystems.pl:49
36553 msgid ""
36554 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36555 "functionality.  For more complex cases you should look at the "
36556 "L<guestfish(1)> tool."
36557 msgstr ""
36558
36559 #. type: textblock
36560 #: ../tools/virt-list-filesystems.pl:112
36561 msgid ""
36562 "With this option, C<virt-list-filesystems> displays the type of each "
36563 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36564 msgstr ""
36565
36566 #. type: =item
36567 #: ../tools/virt-list-filesystems.pl:119
36568 msgid "B<-a>"
36569 msgstr ""
36570
36571 #. type: textblock
36572 #: ../tools/virt-list-filesystems.pl:123
36573 msgid ""
36574 "Normally we only show mountable filesystems.  If this option is given then "
36575 "swap devices are shown too."
36576 msgstr ""
36577
36578 #. type: textblock
36579 #: ../tools/virt-list-filesystems.pl:197
36580 msgid ""
36581 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
36582 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
36583 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36584 msgstr ""
36585
36586 #. type: textblock
36587 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36588 msgid "Copyright (C) 2009 Red Hat Inc."
36589 msgstr ""
36590
36591 #. type: textblock
36592 #: ../tools/virt-list-partitions.pl:32
36593 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
36594 msgstr ""
36595
36596 #. type: verbatim
36597 #: ../tools/virt-list-partitions.pl:36
36598 #, no-wrap
36599 msgid ""
36600 " virt-list-partitions [--options] domname\n"
36601 "\n"
36602 msgstr ""
36603
36604 #. type: verbatim
36605 #: ../tools/virt-list-partitions.pl:38
36606 #, no-wrap
36607 msgid ""
36608 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36609 "\n"
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../tools/virt-list-partitions.pl:45
36614 msgid ""
36615 "C<virt-list-partitions> is a command line tool to list the partitions that "
36616 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36617 "first step to using L<virt-resize(1)>."
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../tools/virt-list-partitions.pl:50
36622 msgid ""
36623 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36624 "functionality.  For more complex cases you should look at the "
36625 "L<guestfish(1)> tool."
36626 msgstr ""
36627
36628 #. type: textblock
36629 #: ../tools/virt-list-partitions.pl:113
36630 msgid "Show sizes in human-readable form (eg. \"1G\")."
36631 msgstr ""
36632
36633 #. type: textblock
36634 #: ../tools/virt-list-partitions.pl:123
36635 msgid ""
36636 "With this option, C<virt-list-partitions> displays the type and size of each "
36637 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36638 msgstr ""
36639
36640 #. type: =item
36641 #: ../tools/virt-list-partitions.pl:130
36642 msgid "B<-t>"
36643 msgstr ""
36644
36645 #. type: =item
36646 #: ../tools/virt-list-partitions.pl:132
36647 msgid "B<--total>"
36648 msgstr ""
36649
36650 #. type: textblock
36651 #: ../tools/virt-list-partitions.pl:134
36652 msgid "Display the total size of each block device (as a separate row or rows)."
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../tools/virt-list-partitions.pl:267
36657 msgid ""
36658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
36659 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
36660 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../tools/virt-list-partitions.pl:283
36665 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../tools/virt-make-fs.pl:37
36670 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36671 msgstr ""
36672
36673 #. type: verbatim
36674 #: ../tools/virt-make-fs.pl:41
36675 #, no-wrap
36676 msgid ""
36677 " virt-make-fs [--options] input.tar output.img\n"
36678 "\n"
36679 msgstr ""
36680
36681 #. type: verbatim
36682 #: ../tools/virt-make-fs.pl:43
36683 #, no-wrap
36684 msgid ""
36685 " virt-make-fs [--options] input.tar.gz output.img\n"
36686 "\n"
36687 msgstr ""
36688
36689 #. type: verbatim
36690 #: ../tools/virt-make-fs.pl:45
36691 #, no-wrap
36692 msgid ""
36693 " virt-make-fs [--options] directory output.img\n"
36694 "\n"
36695 msgstr ""
36696
36697 #. type: textblock
36698 #: ../tools/virt-make-fs.pl:49
36699 msgid ""
36700 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36701 "archive or some files in a directory.  It is similar to tools like "
36702 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
36703 "it can create common filesystem types like ext2/3 or NTFS, which can be "
36704 "useful if you want to attach these filesystems to existing virtual machines "
36705 "(eg. to import large amounts of read-only data to a VM)."
36706 msgstr ""
36707
36708 #. type: textblock
36709 #: ../tools/virt-make-fs.pl:57
36710 msgid "Basic usage is:"
36711 msgstr ""
36712
36713 #. type: verbatim
36714 #: ../tools/virt-make-fs.pl:59
36715 #, no-wrap
36716 msgid ""
36717 " virt-make-fs input output\n"
36718 "\n"
36719 msgstr ""
36720
36721 #. type: textblock
36722 #: ../tools/virt-make-fs.pl:61
36723 msgid ""
36724 "where C<input> is either a directory containing files that you want to add, "
36725 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36726 "C<output> is a disk image.  The input type is detected automatically.  The "
36727 "output disk image defaults to a raw ext2 image unless you specify extra "
36728 "flags (see L</OPTIONS> below)."
36729 msgstr ""
36730
36731 #. type: =head2
36732 #: ../tools/virt-make-fs.pl:67
36733 msgid "EXTRA SPACE"
36734 msgstr ""
36735
36736 #. type: textblock
36737 #: ../tools/virt-make-fs.pl:69
36738 msgid ""
36739 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36740 "the files that it contains, but might have extra space.  Depending on how "
36741 "you are going to use the output, you might think this extra space is wasted "
36742 "and want to minimize it, or you might want to leave space so that more files "
36743 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36744 "but you can use the I<--size> flag to leave space in the filesystem if you "
36745 "want it."
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../tools/virt-make-fs.pl:77
36750 msgid ""
36751 "An alternative way to leave extra space but not make the output image any "
36752 "bigger is to use an alternative disk image format (instead of the default "
36753 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36754 "image format (check your hypervisor supports this before using it).  This "
36755 "allows you to choose a large I<--size> but the extra space won't actually be "
36756 "allocated in the image until you try to store something in it."
36757 msgstr ""
36758
36759 #. type: textblock
36760 #: ../tools/virt-make-fs.pl:85
36761 msgid ""
36762 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36763 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36764 "to build another image from scratch."
36765 msgstr ""
36766
36767 #. type: =head3
36768 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
36769 msgid "EXAMPLE"
36770 msgstr ""
36771
36772 #. type: verbatim
36773 #: ../tools/virt-make-fs.pl:91
36774 #, no-wrap
36775 msgid ""
36776 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36777 "\n"
36778 msgstr ""
36779
36780 #. type: =head2
36781 #: ../tools/virt-make-fs.pl:93
36782 msgid "FILESYSTEM TYPE"
36783 msgstr ""
36784
36785 #. type: textblock
36786 #: ../tools/virt-make-fs.pl:95
36787 msgid ""
36788 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36789 "libguestfs supports can be used (but I<not> read-only formats like "
36790 "ISO9660).  Here are some of the more common choices:"
36791 msgstr ""
36792
36793 #. type: =item
36794 #: ../tools/virt-make-fs.pl:101
36795 msgid "I<ext3>"
36796 msgstr ""
36797
36798 #. type: textblock
36799 #: ../tools/virt-make-fs.pl:103
36800 msgid ""
36801 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36802 "you are not going to use the filesystem in a way that requires the journal, "
36803 "then this is just wasted overhead."
36804 msgstr ""
36805
36806 #. type: =item
36807 #: ../tools/virt-make-fs.pl:107
36808 msgid "I<ntfs> or I<vfat>"
36809 msgstr ""
36810
36811 #. type: textblock
36812 #: ../tools/virt-make-fs.pl:109
36813 msgid "Useful if exporting data to a Windows guest."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../tools/virt-make-fs.pl:111
36818 msgid ""
36819 "I<Note for vfat>: The tar archive or local directory must only contain files "
36820 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36821 "program running within libguestfs is unable to change the ownership of "
36822 "non-root files, since vfat itself does not support this."
36823 msgstr ""
36824
36825 #. type: =item
36826 #: ../tools/virt-make-fs.pl:116
36827 msgid "I<minix>"
36828 msgstr ""
36829
36830 #. type: textblock
36831 #: ../tools/virt-make-fs.pl:118
36832 msgid ""
36833 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36834 "total filesystem size."
36835 msgstr ""
36836
36837 #. type: verbatim
36838 #: ../tools/virt-make-fs.pl:125
36839 #, no-wrap
36840 msgid ""
36841 " virt-make-fs --type=minix input minixfs.img\n"
36842 "\n"
36843 msgstr ""
36844
36845 #. type: =head2
36846 #: ../tools/virt-make-fs.pl:127
36847 msgid "TO PARTITION OR NOT TO PARTITION"
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../tools/virt-make-fs.pl:129
36852 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36853 msgstr ""
36854
36855 #. type: textblock
36856 #: ../tools/virt-make-fs.pl:131
36857 msgid ""
36858 "Adding a partition can make the disk image more compatible with certain "
36859 "virtualized operating systems which don't expect to see a filesystem "
36860 "directly located on a block device (Linux doesn't care and will happily "
36861 "handle both types)."
36862 msgstr ""
36863
36864 #. type: textblock
36865 #: ../tools/virt-make-fs.pl:136
36866 msgid ""
36867 "On the other hand, if you have a partition table then the output image is no "
36868 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36869 "directly on a partitioned disk image.  (However libguestfs tools such as "
36870 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../tools/virt-make-fs.pl:144
36875 msgid "Add an MBR partition:"
36876 msgstr ""
36877
36878 #. type: verbatim
36879 #: ../tools/virt-make-fs.pl:146
36880 #, no-wrap
36881 msgid ""
36882 " virt-make-fs --partition -- input disk.img\n"
36883 "\n"
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../tools/virt-make-fs.pl:148
36888 msgid ""
36889 "If the output disk image could be terabyte-sized or larger, it's better to "
36890 "use an EFI/GPT-compatible partition table:"
36891 msgstr ""
36892
36893 #. type: verbatim
36894 #: ../tools/virt-make-fs.pl:151
36895 #, no-wrap
36896 msgid ""
36897 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36898 "\n"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../tools/virt-make-fs.pl:179
36903 msgid "Enable debugging information."
36904 msgstr ""
36905
36906 #. type: =item
36907 #: ../tools/virt-make-fs.pl:185
36908 msgid "B<--size=E<lt>NE<gt>>"
36909 msgstr ""
36910
36911 #. type: =item
36912 #: ../tools/virt-make-fs.pl:187
36913 msgid "B<--size=+E<lt>NE<gt>>"
36914 msgstr ""
36915
36916 #. type: =item
36917 #: ../tools/virt-make-fs.pl:189
36918 msgid "B<-s E<lt>NE<gt>>"
36919 msgstr ""
36920
36921 #. type: =item
36922 #: ../tools/virt-make-fs.pl:191
36923 msgid "B<-s +E<lt>NE<gt>>"
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../tools/virt-make-fs.pl:193
36928 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
36929 msgstr ""
36930
36931 #. type: textblock
36932 #: ../tools/virt-make-fs.pl:196
36933 msgid ""
36934 "If this option is I<not> given, then the output image will be just large "
36935 "enough to contain all the files, with not much wasted space."
36936 msgstr ""
36937
36938 #. type: textblock
36939 #: ../tools/virt-make-fs.pl:199
36940 msgid ""
36941 "To choose a fixed size output disk, specify an absolute number followed by "
36942 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36943 "Petabytes or Exabytes.  This must be large enough to contain all the input "
36944 "files, else you will get an error."
36945 msgstr ""
36946
36947 #. type: textblock
36948 #: ../tools/virt-make-fs.pl:204
36949 msgid ""
36950 "To leave extra space, specify C<+> (plus sign) and a number followed by "
36951 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36952 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
36953 "the input files, and (approximately) an extra 200 MB free space."
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../tools/virt-make-fs.pl:210
36958 msgid ""
36959 "Note that virt-make-fs estimates free space, and therefore will not produce "
36960 "filesystems containing precisely the free space requested.  (It is much more "
36961 "expensive and time-consuming to produce a filesystem which has precisely the "
36962 "desired free space)."
36963 msgstr ""
36964
36965 #. type: =item
36966 #: ../tools/virt-make-fs.pl:219
36967 msgid "B<--format=E<lt>fmtE<gt>>"
36968 msgstr ""
36969
36970 #. type: =item
36971 #: ../tools/virt-make-fs.pl:221
36972 msgid "B<-F E<lt>fmtE<gt>>"
36973 msgstr ""
36974
36975 #. type: textblock
36976 #: ../tools/virt-make-fs.pl:223
36977 msgid "Choose the output disk image format."
36978 msgstr ""
36979
36980 #. type: textblock
36981 #: ../tools/virt-make-fs.pl:225
36982 msgid "The default is C<raw> (raw disk image)."
36983 msgstr ""
36984
36985 #. type: textblock
36986 #: ../tools/virt-make-fs.pl:227
36987 msgid ""
36988 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
36989 "that would really make sense here is C<qcow2>."
36990 msgstr ""
36991
36992 #. type: =item
36993 #: ../tools/virt-make-fs.pl:234
36994 msgid "B<--type=E<lt>fsE<gt>>"
36995 msgstr ""
36996
36997 #. type: =item
36998 #: ../tools/virt-make-fs.pl:236
36999 msgid "B<-t E<lt>fsE<gt>>"
37000 msgstr ""
37001
37002 #. type: textblock
37003 #: ../tools/virt-make-fs.pl:238
37004 msgid "Choose the output filesystem type."
37005 msgstr ""
37006
37007 #. type: textblock
37008 #: ../tools/virt-make-fs.pl:240
37009 msgid "The default is C<ext2>."
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../tools/virt-make-fs.pl:242
37014 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
37015 msgstr ""
37016
37017 #. type: =item
37018 #: ../tools/virt-make-fs.pl:249
37019 msgid "B<--partition>"
37020 msgstr ""
37021
37022 #. type: =item
37023 #: ../tools/virt-make-fs.pl:251
37024 msgid "B<--partition=E<lt>parttypeE<gt>>"
37025 msgstr ""
37026
37027 #. type: textblock
37028 #: ../tools/virt-make-fs.pl:253
37029 msgid ""
37030 "If specified, this flag adds an MBR partition table to the output disk "
37031 "image."
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../tools/virt-make-fs.pl:256
37036 msgid ""
37037 "You can change the partition table type, eg. I<--partition=gpt> for large "
37038 "disks."
37039 msgstr ""
37040
37041 #. type: textblock
37042 #: ../tools/virt-make-fs.pl:259
37043 msgid ""
37044 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
37045 "might consider the next parameter to be the partition type.  For example:"
37046 msgstr ""
37047
37048 #. type: verbatim
37049 #: ../tools/virt-make-fs.pl:263
37050 #, no-wrap
37051 msgid ""
37052 " virt-make-fs --partition input.tar ...\n"
37053 "\n"
37054 msgstr ""
37055
37056 #. type: textblock
37057 #: ../tools/virt-make-fs.pl:265
37058 msgid ""
37059 "would cause virt-make-fs to think you wanted to use a partition type of "
37060 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
37061 "dash) between options and the input file argument:"
37062 msgstr ""
37063
37064 #. type: verbatim
37065 #: ../tools/virt-make-fs.pl:269
37066 #, no-wrap
37067 msgid ""
37068 " virt-make-fs --partition -- input.tar ...\n"
37069 "\n"
37070 msgstr ""
37071
37072 #. type: textblock
37073 #: ../tools/virt-make-fs.pl:541
37074 msgid ""
37075 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
37076 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
37077 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
37082 msgid ""
37083 "When reporting bugs, please enable debugging and capture the I<complete> "
37084 "output:"
37085 msgstr ""
37086
37087 #. type: verbatim
37088 #: ../tools/virt-make-fs.pl:558
37089 #, no-wrap
37090 msgid ""
37091 " export LIBGUESTFS_DEBUG=1\n"
37092 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
37093 "\n"
37094 msgstr ""
37095
37096 #. type: textblock
37097 #: ../tools/virt-make-fs.pl:561
37098 msgid ""
37099 "Attach /tmp/virt-make-fs.log to a new bug report at "
37100 "L<https://bugzilla.redhat.com/>"
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../tools/virt-tar.pl:33
37105 msgid "virt-tar - Extract or upload files to a virtual machine"
37106 msgstr ""
37107
37108 #. type: verbatim
37109 #: ../tools/virt-tar.pl:37
37110 #, no-wrap
37111 msgid ""
37112 " virt-tar [--options] -x domname directory tarball\n"
37113 "\n"
37114 msgstr ""
37115
37116 #. type: verbatim
37117 #: ../tools/virt-tar.pl:39
37118 #, no-wrap
37119 msgid ""
37120 " virt-tar [--options] -u domname tarball directory\n"
37121 "\n"
37122 msgstr ""
37123
37124 #. type: verbatim
37125 #: ../tools/virt-tar.pl:41
37126 #, no-wrap
37127 msgid ""
37128 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
37129 "\n"
37130 msgstr ""
37131
37132 #. type: verbatim
37133 #: ../tools/virt-tar.pl:43
37134 #, no-wrap
37135 msgid ""
37136 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
37137 "\n"
37138 msgstr ""
37139
37140 #. type: =head2
37141 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
37142 msgid "NOTE"
37143 msgstr ""
37144
37145 #. type: textblock
37146 #: ../tools/virt-tar.pl:47
37147 msgid ""
37148 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
37149 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
37150 msgstr ""
37151
37152 #. type: textblock
37153 #: ../tools/virt-tar.pl:52
37154 msgid "Download C</home> from the VM into a local tarball:"
37155 msgstr ""
37156
37157 #. type: verbatim
37158 #: ../tools/virt-tar.pl:54
37159 #, no-wrap
37160 msgid ""
37161 " virt-tar -x domname /home home.tar\n"
37162 "\n"
37163 msgstr ""
37164
37165 #. type: verbatim
37166 #: ../tools/virt-tar.pl:56
37167 #, no-wrap
37168 msgid ""
37169 " virt-tar -zx domname /home home.tar.gz\n"
37170 "\n"
37171 msgstr ""
37172
37173 #. type: textblock
37174 #: ../tools/virt-tar.pl:58
37175 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
37176 msgstr ""
37177
37178 #. type: verbatim
37179 #: ../tools/virt-tar.pl:60
37180 #, no-wrap
37181 msgid ""
37182 " virt-tar -u domname uploadstuff.tar /tmp\n"
37183 "\n"
37184 msgstr ""
37185
37186 #. type: verbatim
37187 #: ../tools/virt-tar.pl:62
37188 #, no-wrap
37189 msgid ""
37190 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
37191 "\n"
37192 msgstr ""
37193
37194 #. type: textblock
37195 #: ../tools/virt-tar.pl:66
37196 msgid ""
37197 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
37198 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
37199 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
37200 msgstr ""
37201
37202 #. type: textblock
37203 #: ../tools/virt-tar.pl:71
37204 msgid ""
37205 "You can use I<-x> (extract) on live virtual machines, but you might get "
37206 "inconsistent results or errors if there is filesystem activity inside the "
37207 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37208 "work, but the only way to guarantee consistent results is if the virtual "
37209 "machine is shut down."
37210 msgstr ""
37211
37212 #. type: textblock
37213 #: ../tools/virt-tar.pl:79
37214 msgid ""
37215 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37216 "parts of a guest filesystem.  There are many possibilities: making backups, "
37217 "uploading data files, snooping on guest activity, fixing or customizing "
37218 "guests, etc."
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../tools/virt-tar.pl:84
37223 msgid ""
37224 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37225 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37226 "should look at the L<guestfish(1)> tool."
37227 msgstr ""
37228
37229 #. type: textblock
37230 #: ../tools/virt-tar.pl:88
37231 msgid ""
37232 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37233 "its contents (recursively) from the virtual machine into a local tarball.  "
37234 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37235 "virtual machine.  You cannot use these two options together."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../tools/virt-tar.pl:94
37240 msgid ""
37241 "In addition, you may need to use the I<-z> (gZip) option to enable "
37242 "compression.  When uploading, you have to specify I<-z> if the upload file "
37243 "is compressed because virt-tar won't detect this on its own."
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../tools/virt-tar.pl:98
37248 msgid ""
37249 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37250 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37251 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37252 "the L<libguestfs(3)> API)."
37253 msgstr ""
37254
37255 #. type: =item
37256 #: ../tools/virt-tar.pl:160
37257 msgid "B<--extract>"
37258 msgstr ""
37259
37260 #. type: =item
37261 #: ../tools/virt-tar.pl:162
37262 msgid "B<--download>"
37263 msgstr ""
37264
37265 #. type: =item
37266 #: ../tools/virt-tar.pl:164
37267 msgid "B<-u>"
37268 msgstr ""
37269
37270 #. type: =item
37271 #: ../tools/virt-tar.pl:166
37272 msgid "B<--upload>"
37273 msgstr ""
37274
37275 #. type: textblock
37276 #: ../tools/virt-tar.pl:168
37277 msgid ""
37278 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37279 "local tarball."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../tools/virt-tar.pl:171
37284 msgid ""
37285 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37286 "Please read the L</WARNING> section above before using this option."
37287 msgstr ""
37288
37289 #. type: textblock
37290 #: ../tools/virt-tar.pl:175
37291 msgid "You must specify exactly one of these options."
37292 msgstr ""
37293
37294 #. type: =item
37295 #: ../tools/virt-tar.pl:181
37296 msgid "B<-z>"
37297 msgstr ""
37298
37299 #. type: =item
37300 #: ../tools/virt-tar.pl:183
37301 msgid "B<--gzip>"
37302 msgstr ""
37303
37304 #. type: textblock
37305 #: ../tools/virt-tar.pl:185
37306 msgid "Specify that the input or output tarball is gzip-compressed."
37307 msgstr ""
37308
37309 #. type: textblock
37310 #: ../tools/virt-tar.pl:298
37311 msgid ""
37312 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
37313 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37314 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
37315 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../tools/virt-win-reg.pl:37
37320 msgid ""
37321 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
37322 "guest"
37323 msgstr ""
37324
37325 #. type: verbatim
37326 #: ../tools/virt-win-reg.pl:41
37327 #, no-wrap
37328 msgid ""
37329 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37330 "\n"
37331 msgstr ""
37332
37333 #. type: verbatim
37334 #: ../tools/virt-win-reg.pl:43
37335 #, no-wrap
37336 msgid ""
37337 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37338 "\n"
37339 msgstr ""
37340
37341 #. type: verbatim
37342 #: ../tools/virt-win-reg.pl:45
37343 #, no-wrap
37344 msgid ""
37345 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37346 "\n"
37347 msgstr ""
37348
37349 #. type: verbatim
37350 #: ../tools/virt-win-reg.pl:47
37351 #, no-wrap
37352 msgid ""
37353 " virt-win-reg --merge domname [input.reg ...]\n"
37354 "\n"
37355 msgstr ""
37356
37357 #. type: verbatim
37358 #: ../tools/virt-win-reg.pl:49
37359 #, no-wrap
37360 msgid ""
37361 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37362 "\n"
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../tools/virt-win-reg.pl:53
37367 msgid ""
37368 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37369 "virtual machines.  If you do this, you I<will> get irreversible disk "
37370 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37371 "but doesn't catch all cases."
37372 msgstr ""
37373
37374 #. type: textblock
37375 #: ../tools/virt-win-reg.pl:58
37376 msgid ""
37377 "Modifying the Windows Registry is an inherently risky operation.  The format "
37378 "is deliberately obscure and undocumented, and Registry changes can leave the "
37379 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37380 "you have a reliable backup first."
37381 msgstr ""
37382
37383 #. type: textblock
37384 #: ../tools/virt-win-reg.pl:65
37385 msgid ""
37386 "This program can export and merge Windows Registry entries from a Windows "
37387 "guest."
37388 msgstr ""
37389
37390 #. type: textblock
37391 #: ../tools/virt-win-reg.pl:68
37392 msgid ""
37393 "The first parameter is the libvirt guest name or the raw disk image of a "
37394 "Windows guest."
37395 msgstr ""
37396
37397 #. type: textblock
37398 #: ../tools/virt-win-reg.pl:71
37399 msgid ""
37400 "If I<--merge> is I<not> specified, then the chosen registry key is "
37401 "displayed/exported (recursively).  For example:"
37402 msgstr ""
37403
37404 #. type: verbatim
37405 #: ../tools/virt-win-reg.pl:74
37406 #, no-wrap
37407 msgid ""
37408 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37409 "\n"
37410 msgstr ""
37411
37412 #. type: textblock
37413 #: ../tools/virt-win-reg.pl:76
37414 msgid "You can also display single values from within registry keys, for example:"
37415 msgstr ""
37416
37417 #. type: verbatim
37418 #: ../tools/virt-win-reg.pl:79
37419 #, no-wrap
37420 msgid ""
37421 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37422 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37423 " Windows 7 Enterprise\n"
37424 "\n"
37425 msgstr ""
37426
37427 #. type: textblock
37428 #: ../tools/virt-win-reg.pl:83
37429 msgid ""
37430 "With I<--merge>, you can merge a textual regedit file into the Windows "
37431 "Registry:"
37432 msgstr ""
37433
37434 #. type: verbatim
37435 #: ../tools/virt-win-reg.pl:86
37436 #, no-wrap
37437 msgid ""
37438 " $ virt-win-reg --merge Windows7 changes.reg\n"
37439 "\n"
37440 msgstr ""
37441
37442 #. type: textblock
37443 #: ../tools/virt-win-reg.pl:90
37444 msgid ""
37445 "This program is only meant for simple access to the registry.  If you want "
37446 "to do complicated things with the registry, we suggest you download the "
37447 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37448 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37449 "L<hivexregedit(1)>."
37450 msgstr ""
37451
37452 #. type: =item
37453 #: ../tools/virt-win-reg.pl:159
37454 msgid "B<--merge>"
37455 msgstr ""
37456
37457 #. type: textblock
37458 #: ../tools/virt-win-reg.pl:161
37459 msgid ""
37460 "In merge mode, this merges a textual regedit file into the Windows Registry "
37461 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37462 "displays or exports Registry entries instead."
37463 msgstr ""
37464
37465 #. type: textblock
37466 #: ../tools/virt-win-reg.pl:165
37467 msgid ""
37468 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37469 "result in disk corruption.  However exporting (without this flag)  is always "
37470 "safe."
37471 msgstr ""
37472
37473 #. type: =item
37474 #: ../tools/virt-win-reg.pl:173
37475 msgid "B<--encoding> UTF-16LE|ASCII"
37476 msgstr ""
37477
37478 #. type: textblock
37479 #: ../tools/virt-win-reg.pl:175
37480 msgid ""
37481 "When merging (only), you may need to specify the encoding for strings to be "
37482 "used in the hive file.  This is explained in detail in "
37483 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../tools/virt-win-reg.pl:179
37488 msgid ""
37489 "The default is to use UTF-16LE, which should work with recent versions of "
37490 "Windows."
37491 msgstr ""
37492
37493 #. type: =item
37494 #: ../tools/virt-win-reg.pl:186
37495 msgid "B<--unsafe-printable-strings>"
37496 msgstr ""
37497
37498 #. type: textblock
37499 #: ../tools/virt-win-reg.pl:188
37500 msgid ""
37501 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37502 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37503 "present."
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../tools/virt-win-reg.pl:192
37508 msgid ""
37509 "This is unsafe and does not preserve the fidelity of strings in the original "
37510 "Registry for various reasons:"
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../tools/virt-win-reg.pl:199
37515 msgid ""
37516 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37517 "other encodings will be corrupted by this transformation."
37518 msgstr ""
37519
37520 #. type: textblock
37521 #: ../tools/virt-win-reg.pl:204
37522 msgid ""
37523 "Assumes that everything which has type 1 or 2 is really a string and that "
37524 "everything else is not a string, but the type field in real Registries is "
37525 "not reliable."
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../tools/virt-win-reg.pl:210
37530 msgid ""
37531 "Loses information about whether a zero codepoint followed the string in the "
37532 "Registry or not."
37533 msgstr ""
37534
37535 #. type: textblock
37536 #: ../tools/virt-win-reg.pl:215
37537 msgid ""
37538 "This all happens because the Registry itself contains no information about "
37539 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37540 msgstr ""
37541
37542 #. type: textblock
37543 #: ../tools/virt-win-reg.pl:219
37544 msgid ""
37545 "You should only use this option for quick hacking and debugging of the "
37546 "Registry contents, and I<never> use it if the output is going to be passed "
37547 "into another program or stored in another Registry."
37548 msgstr ""
37549
37550 #. type: =head1
37551 #: ../tools/virt-win-reg.pl:556
37552 msgid "SUPPORTED SYSTEMS"
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../tools/virt-win-reg.pl:558
37557 msgid ""
37558 "The program currently supports Windows NT-derived guests starting with "
37559 "Windows XP through to at least Windows 7."
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../tools/virt-win-reg.pl:561
37564 msgid "The following Registry keys are supported:"
37565 msgstr ""
37566
37567 #. type: =item
37568 #: ../tools/virt-win-reg.pl:565
37569 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37570 msgstr ""
37571
37572 #. type: =item
37573 #: ../tools/virt-win-reg.pl:567
37574 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37575 msgstr ""
37576
37577 #. type: =item
37578 #: ../tools/virt-win-reg.pl:569
37579 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37580 msgstr ""
37581
37582 #. type: =item
37583 #: ../tools/virt-win-reg.pl:571
37584 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37585 msgstr ""
37586
37587 #. type: =item
37588 #: ../tools/virt-win-reg.pl:573
37589 msgid "C<HKEY_USERS\\.DEFAULT>"
37590 msgstr ""
37591
37592 #. type: =item
37593 #: ../tools/virt-win-reg.pl:575
37594 msgid "C<HKEY_USERS\\I<SID>>"
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../tools/virt-win-reg.pl:577
37599 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37600 msgstr ""
37601
37602 #. type: =item
37603 #: ../tools/virt-win-reg.pl:579
37604 msgid "C<HKEY_USERS\\I<username>>"
37605 msgstr ""
37606
37607 #. type: textblock
37608 #: ../tools/virt-win-reg.pl:581
37609 msgid "where I<username> is a local user name (this is a libguestfs extension)."
37610 msgstr ""
37611
37612 #. type: textblock
37613 #: ../tools/virt-win-reg.pl:585
37614 msgid ""
37615 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37616 "C<HKEY_USERS>."
37617 msgstr ""
37618
37619 #. type: textblock
37620 #: ../tools/virt-win-reg.pl:588
37621 msgid ""
37622 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37623 "supported (there is no \"current user\")."
37624 msgstr ""
37625
37626 #. type: =head1
37627 #: ../tools/virt-win-reg.pl:591
37628 msgid "ENCODING"
37629 msgstr ""
37630
37631 #. type: textblock
37632 #: ../tools/virt-win-reg.pl:593
37633 msgid ""
37634 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37635 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
37636 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
37637 "with Windows-style line endings, you may need to reencode the whole file "
37638 "before or after processing."
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../tools/virt-win-reg.pl:599
37643 msgid ""
37644 "To reencode a file from Windows format to Linux (before processing it with "
37645 "the I<--merge> option), you would do something like this:"
37646 msgstr ""
37647
37648 #. type: verbatim
37649 #: ../tools/virt-win-reg.pl:602
37650 #, no-wrap
37651 msgid ""
37652 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37653 "\n"
37654 msgstr ""
37655
37656 #. type: textblock
37657 #: ../tools/virt-win-reg.pl:604
37658 msgid ""
37659 "To go in the opposite direction, after exporting and before sending the file "
37660 "to a Windows user, do something like this:"
37661 msgstr ""
37662
37663 #. type: verbatim
37664 #: ../tools/virt-win-reg.pl:607
37665 #, no-wrap
37666 msgid ""
37667 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37668 "\n"
37669 msgstr ""
37670
37671 #. type: textblock
37672 #: ../tools/virt-win-reg.pl:609
37673 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37674 msgstr ""
37675
37676 #. type: textblock
37677 #: ../tools/virt-win-reg.pl:611
37678 msgid ""
37679 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37680 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
37681 "Windows-style (CRLF) line endings, like this:"
37682 msgstr ""
37683
37684 #. type: verbatim
37685 #: ../tools/virt-win-reg.pl:615
37686 #, no-wrap
37687 msgid ""
37688 " $ file software.reg\n"
37689 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37690 " with CRLF line terminators\n"
37691 "\n"
37692 msgstr ""
37693
37694 #. type: textblock
37695 #: ../tools/virt-win-reg.pl:619
37696 msgid "This file would need conversion before you could I<--merge> it."
37697 msgstr ""
37698
37699 #. type: =head1
37700 #: ../tools/virt-win-reg.pl:621
37701 msgid "CurrentControlSet etc."
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../tools/virt-win-reg.pl:623
37706 msgid ""
37707 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37708 "Registry at the level of the hive file, and therefore you cannot modify "
37709 "these."
37710 msgstr ""
37711
37712 #. type: textblock
37713 #: ../tools/virt-win-reg.pl:627
37714 msgid ""
37715 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37716 "circumstances it might refer to another control set.  The way to find out is "
37717 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37718 msgstr ""
37719
37720 #. type: verbatim
37721 #: ../tools/virt-win-reg.pl:631
37722 #, no-wrap
37723 msgid ""
37724 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37725 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37726 " \"Current\"=dword:00000001\n"
37727 " \"Default\"=dword:00000001\n"
37728 " \"Failed\"=dword:00000000\n"
37729 " \"LastKnownGood\"=dword:00000002\n"
37730 "\n"
37731 msgstr ""
37732
37733 #. type: textblock
37734 #: ../tools/virt-win-reg.pl:638
37735 msgid "\"Current\" is the one which Windows will choose when it boots."
37736 msgstr ""
37737
37738 #. type: textblock
37739 #: ../tools/virt-win-reg.pl:640
37740 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
37741 msgstr ""
37742
37743 #. type: =head1
37744 #: ../tools/virt-win-reg.pl:643
37745 msgid "WINDOWS TIPS"
37746 msgstr ""
37747
37748 #. type: textblock
37749 #: ../tools/virt-win-reg.pl:645
37750 msgid ""
37751 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37752 "be shut off, else you will get disk corruption."
37753 msgstr ""
37754
37755 #. type: =head2
37756 #: ../tools/virt-win-reg.pl:648
37757 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37758 msgstr ""
37759
37760 #. type: textblock
37761 #: ../tools/virt-win-reg.pl:650
37762 msgid ""
37763 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37764 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37765 "is uploaded into C<C:\\>:"
37766 msgstr ""
37767
37768 #. type: verbatim
37769 #: ../tools/virt-win-reg.pl:654
37770 #, no-wrap
37771 msgid ""
37772 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37773 "\n"
37774 msgstr ""
37775
37776 #. type: textblock
37777 #: ../tools/virt-win-reg.pl:656
37778 msgid "Prepare a regedit file containing the registry change:"
37779 msgstr ""
37780
37781 #. type: verbatim
37782 #: ../tools/virt-win-reg.pl:658
37783 #, no-wrap
37784 msgid ""
37785 " cat > test.reg <<'EOF'\n"
37786 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37787 " \"Test\"=\"c:\\\\test.bat\"\n"
37788 " EOF\n"
37789 "\n"
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../tools/virt-win-reg.pl:663
37794 msgid ""
37795 "In this example we use the key C<RunOnce> which means that the script will "
37796 "run precisely once when the first user logs in.  If you want it to run every "
37797 "time a user logs in, replace C<RunOnce> with C<Run>."
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../tools/virt-win-reg.pl:667
37802 msgid "Now update the registry:"
37803 msgstr ""
37804
37805 #. type: verbatim
37806 #: ../tools/virt-win-reg.pl:669
37807 #, no-wrap
37808 msgid ""
37809 " virt-win-reg --merge WindowsGuest test.reg\n"
37810 "\n"
37811 msgstr ""
37812
37813 #. type: =head2
37814 #: ../tools/virt-win-reg.pl:671
37815 msgid "INSTALLING A SERVICE"
37816 msgstr ""
37817
37818 #. type: textblock
37819 #: ../tools/virt-win-reg.pl:673
37820 msgid ""
37821 "This section assumes you are familiar with Windows services, and you either "
37822 "have a program which handles the Windows Service Control Protocol directly "
37823 "or you want to run any program using a service wrapper like SrvAny or the "
37824 "free RHSrvAny."
37825 msgstr ""
37826
37827 #. type: textblock
37828 #: ../tools/virt-win-reg.pl:678
37829 msgid ""
37830 "First upload the program and optionally the service wrapper.  In this case "
37831 "the test program is called C<test.exe> and we are using the RHSrvAny "
37832 "wrapper:"
37833 msgstr ""
37834
37835 #. type: verbatim
37836 #: ../tools/virt-win-reg.pl:682
37837 #, no-wrap
37838 msgid ""
37839 " guestfish -i -d WindowsGuest <<EOF\n"
37840 "   upload rhsrvany.exe /rhsrvany.exe\n"
37841 "   upload test.exe /test.exe\n"
37842 " EOF\n"
37843 "\n"
37844 msgstr ""
37845
37846 #. type: textblock
37847 #: ../tools/virt-win-reg.pl:687
37848 msgid ""
37849 "Prepare a regedit file containing the registry changes.  In this example, "
37850 "the first registry change is needed for the service itself or the service "
37851 "wrapper (if used).  The second registry change is only needed because I am "
37852 "using the RHSrvAny service wrapper."
37853 msgstr ""
37854
37855 #. type: verbatim
37856 #: ../tools/virt-win-reg.pl:692
37857 #, no-wrap
37858 msgid ""
37859 " cat > service.reg <<'EOF'\n"
37860 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37861 " \"Type\"=dword:00000010\n"
37862 " \"Start\"=dword:00000002\n"
37863 " \"ErrorControl\"=dword:00000001\n"
37864 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37865 " \"DisplayName\"=\"RHSrvAny\"\n"
37866 " \"ObjectName\"=\"NetworkService\"\n"
37867 " \n"
37868 msgstr ""
37869
37870 #. type: verbatim
37871 #: ../tools/virt-win-reg.pl:701
37872 #, no-wrap
37873 msgid ""
37874 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37875 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37876 " \"PWD\"=\"c:\\\\Temp\"\n"
37877 " EOF\n"
37878 "\n"
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../tools/virt-win-reg.pl:712
37883 msgid ""
37884 "For use of C<ControlSet001> see the section above in this manual page.  You "
37885 "may need to adjust this according to the control set that is in use by the "
37886 "guest."
37887 msgstr ""
37888
37889 #. type: textblock
37890 #: ../tools/virt-win-reg.pl:718
37891 msgid ""
37892 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37893 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37894 "privileged account."
37895 msgstr ""
37896
37897 #. type: textblock
37898 #: ../tools/virt-win-reg.pl:724
37899 msgid ""
37900 "For the meaning of the magic numbers, see this Microsoft KB article: "
37901 "L<http://support.microsoft.com/kb/103000>."
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../tools/virt-win-reg.pl:729
37906 msgid "Update the registry:"
37907 msgstr ""
37908
37909 #. type: verbatim
37910 #: ../tools/virt-win-reg.pl:731
37911 #, no-wrap
37912 msgid ""
37913 " virt-win-reg --merge WindowsGuest service.reg\n"
37914 "\n"
37915 msgstr ""
37916
37917 #. type: textblock
37918 #: ../tools/virt-win-reg.pl:735
37919 msgid ""
37920 "Be careful when passing parameters containing C<\\> (backslash) in the "
37921 "shell.  Usually you will have to use 'single quotes' or double backslashes "
37922 "(but not both) to protect them from the shell."
37923 msgstr ""
37924
37925 #. type: textblock
37926 #: ../tools/virt-win-reg.pl:739
37927 msgid "Paths and value names are case-insensitive."
37928 msgstr ""
37929
37930 #. type: textblock
37931 #: ../tools/virt-win-reg.pl:748
37932 msgid ""
37933 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
37934 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
37935 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
37936 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37937 msgstr ""
37938
37939 #. type: verbatim
37940 #: ../tools/virt-win-reg.pl:766
37941 #, no-wrap
37942 msgid ""
37943 " export LIBGUESTFS_DEBUG=1\n"
37944 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
37945 "\n"
37946 msgstr ""
37947
37948 #. type: textblock
37949 #: ../tools/virt-win-reg.pl:769
37950 msgid ""
37951 "Attach /tmp/virt-win-reg.log to a new bug report at "
37952 "L<https://bugzilla.redhat.com/>"
37953 msgstr ""