4b4e98ae2e306cf04416e97966c7c2ba84faa640
[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.12.9\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-10-31 09:45+0000\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../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 ../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 ../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 ../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:1051 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../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:92 ../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:160 ../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:102 ../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:135 ../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:142 ../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:144 ../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:146 ../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:2768
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:172 ../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:174 ../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:266 ../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:268 ../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:272 ../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:274 ../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:287 ../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:568 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl: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:570 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl: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:1114 ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:575 ../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:314 ../inspector/virt-inspector.pod:377 ../resize/virt-resize.pod:577
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 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod: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:580 ../ruby/examples/guestfs-ruby.pod:36 ../src/guestfs.pod:3146 ../test-tool/libguestfs-test-tool.pod:100 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl: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:601 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl: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:603 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl: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 ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400 ../fish/guestfish.pod:1297 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:61 ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55 ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:605 ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:3223 ../test-tool/libguestfs-test-tool.pod:110 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl: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:607 ../tools/virt-make-fs.pl:588
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:1302 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:609 ../test-tool/libguestfs-test-tool.pod:115 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl: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:1307 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:614 ../test-tool/libguestfs-test-tool.pod:120 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl: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:1312 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:310 ../resize/virt-resize.pod:619 ../test-tool/libguestfs-test-tool.pod:125 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl: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-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:4210
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:164
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:1960 ../fish/guestfish-actions.pod:1966 ../fish/guestfish-actions.pod:1974 ../fish/guestfish-actions.pod:1981 ../fish/guestfish-actions.pod:1988 ../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:15 ../src/guestfs-actions.pod:22 ../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:2886 ../src/guestfs-actions.pod:2892 ../src/guestfs-actions.pod:2900 ../src/guestfs-actions.pod:2907 ../src/guestfs-actions.pod:2914 ../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:1087 ../src/guestfs.pod:1091 ../src/guestfs.pod:1095 ../src/guestfs.pod:1100 ../src/guestfs.pod:1108 ../src/guestfs.pod:1127 ../src/guestfs.pod:1135 ../src/guestfs.pod:1157 ../src/guestfs.pod:1161 ../src/guestfs.pod:1165 ../src/guestfs.pod:1169 ../src/guestfs.pod:1173 ../src/guestfs.pod:1177 ../src/guestfs.pod:1666 ../src/guestfs.pod:1671 ../src/guestfs.pod:1675 ../src/guestfs.pod:1777 ../src/guestfs.pod:1782 ../src/guestfs.pod:1786 ../src/guestfs.pod:1796 ../src/guestfs.pod:2070 ../src/guestfs.pod:2075 ../src/guestfs.pod:2081 ../src/guestfs.pod:2089 ../src/guestfs.pod:2536 ../src/guestfs.pod:2542 ../src/guestfs.pod:2547 ../src/guestfs.pod:2553 ../src/guestfs.pod:2938 ../src/guestfs.pod:2943 ../src/guestfs.pod:2947 ../src/guestfs.pod:2951 ../src/guestfs.pod:2955 ../src/guestfs.pod:2969 ../src/guestfs.pod:2974 ../src/guestfs.pod:3200 ../src/guestfs.pod:3204 ../src/guestfs.pod:3208 ../src/guestfs.pod:3212 ../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:105 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2360 msgid "B<-c URI>"
2361 msgstr ""
2362
2363 #. type: =item
2364 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
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:1119 ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:3085 ../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 #: ../examples/guestfs-examples.pod:5
2755 msgid "guestfs-examples - Examples of using libguestfs from C"
2756 msgstr ""
2757
2758 #. type: verbatim
2759 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
2760 #, no-wrap
2761 msgid ""
2762 " #include <guestfs.h>\n"
2763 " \n"
2764 msgstr ""
2765
2766 #. type: verbatim
2767 #: ../examples/guestfs-examples.pod:11
2768 #, no-wrap
2769 msgid ""
2770 " guestfs_h *g = guestfs_create ();\n"
2771 " guestfs_add_drive_ro (g, \"disk.img\");\n"
2772 " guestfs_launch (g);\n"
2773 "\n"
2774 msgstr ""
2775
2776 #. type: verbatim
2777 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
2778 #, no-wrap
2779 msgid ""
2780 " cc prog.c -o prog -lguestfs\n"
2781 "or:\n"
2782 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
2783 "\n"
2784 msgstr ""
2785
2786 #. type: textblock
2787 #: ../examples/guestfs-examples.pod:21
2788 msgid ""
2789 "This manual page contains examples of calling libguestfs from the C "
2790 "programming language.  If you are not familiar with using libguestfs, you "
2791 "also need to read L<guestfs(3)>."
2792 msgstr ""
2793
2794 #. type: =head1
2795 #: ../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
2796 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../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
2801 msgid "@EXAMPLE1@"
2802 msgstr ""
2803
2804 #. type: =head1
2805 #: ../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
2806 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
2807 msgstr ""
2808
2809 #. type: textblock
2810 #: ../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
2811 msgid "@EXAMPLE2@"
2812 msgstr ""
2813
2814 #. type: textblock
2815 #: ../examples/guestfs-examples.pod:35
2816 msgid ""
2817 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
2818 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
2819 "L<http://libguestfs.org/>."
2820 msgstr ""
2821
2822 #. type: =head1
2823 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396 ../fish/guestfish.pod:1293 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:57 ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51 ../python/examples/guestfs-python.pod:53 ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3219 ../test-tool/libguestfs-test-tool.pod:106
2824 msgid "AUTHORS"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398 ../fish/guestfish.pod:1295 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92 ../perl/examples/guestfs-perl.pod:53 ../python/examples/guestfs-python.pod:55 ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3221 ../test-tool/libguestfs-test-tool.pod:108
2829 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
2830 msgstr ""
2831
2832 #. type: textblock
2833 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96 ../python/examples/guestfs-python.pod:59 ../ruby/examples/guestfs-ruby.pod:53
2834 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
2835 msgstr ""
2836
2837 #. type: textblock
2838 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404 ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98 ../perl/examples/guestfs-perl.pod:59 ../python/examples/guestfs-python.pod:61 ../ruby/examples/guestfs-ruby.pod:55
2839 msgid ""
2840 "The examples in this manual page may be freely copied, modified and "
2841 "distributed without any restrictions."
2842 msgstr ""
2843
2844 #. type: textblock
2845 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407 ../java/examples/guestfs-java.pod:68 ../ocaml/examples/guestfs-ocaml.pod:101 ../perl/examples/guestfs-perl.pod:62 ../python/examples/guestfs-python.pod:64 ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3228
2846 msgid ""
2847 "This library is free software; you can redistribute it and/or modify it "
2848 "under the terms of the GNU Lesser General Public License as published by the "
2849 "Free Software Foundation; either version 2 of the License, or (at your "
2850 "option) any later version."
2851 msgstr ""
2852
2853 #. type: textblock
2854 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412 ../java/examples/guestfs-java.pod:73 ../ocaml/examples/guestfs-ocaml.pod:106 ../perl/examples/guestfs-perl.pod:67 ../python/examples/guestfs-python.pod:69 ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3233
2855 msgid ""
2856 "This library is distributed in the hope that it will be useful, but WITHOUT "
2857 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
2858 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
2859 "for more details."
2860 msgstr ""
2861
2862 #. type: textblock
2863 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417 ../java/examples/guestfs-java.pod:78 ../ocaml/examples/guestfs-ocaml.pod:111 ../perl/examples/guestfs-perl.pod:72 ../python/examples/guestfs-python.pod:74 ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3238
2864 msgid ""
2865 "You should have received a copy of the GNU Lesser General Public License "
2866 "along with this library; if not, write to the Free Software Foundation, "
2867 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
2868 msgstr ""
2869
2870 #. type: =end
2871 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
2872 msgid "comment"
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../examples/guestfs-recipes.pod:5
2877 msgid ""
2878 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
2879 "here.  The only way which works for both sorts of output is to just write "
2880 "the URL directly.  Do NOT use L<...> for URLs."
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../examples/guestfs-recipes.pod:9
2885 msgid ""
2886 "We break with tradition here and don't use ALL CAPS for the section "
2887 "headings, as this makes them much easier to read."
2888 msgstr ""
2889
2890 #. type: textblock
2891 #: ../examples/guestfs-recipes.pod:16
2892 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
2893 msgstr ""
2894
2895 #. type: textblock
2896 #: ../examples/guestfs-recipes.pod:20
2897 msgid ""
2898 "This page contains recipes for and links to things you can do using "
2899 "libguestfs, L<guestfish(1)> and the virt tools."
2900 msgstr ""
2901
2902 #. type: =head1
2903 #: ../examples/guestfs-recipes.pod:23
2904 msgid "Audit a virtual machine for setuid files"
2905 msgstr ""
2906
2907 #. type: textblock
2908 #: ../examples/guestfs-recipes.pod:25
2909 msgid ""
2910 "The link below contains a small program which can be used to audit a Linux "
2911 "virtual machine to see what setuid and setgid files it contains."
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../examples/guestfs-recipes.pod:28
2916 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
2917 msgstr ""
2918
2919 #. type: =head1
2920 #: ../examples/guestfs-recipes.pod:30
2921 msgid "Change the background image in a Windows XP VM"
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../examples/guestfs-recipes.pod:32
2926 msgid ""
2927 "The links below explain how to use L<guestfish(1)> to change the background "
2928 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
2929 "be substantially different for each version of Windows."
2930 msgstr ""
2931
2932 #. type: textblock
2933 #: ../examples/guestfs-recipes.pod:37
2934 msgid ""
2935 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
2936 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
2937 msgstr ""
2938
2939 #. type: =head1
2940 #: ../examples/guestfs-recipes.pod:40
2941 msgid "Cloning a virtual machine (Linux)"
2942 msgstr ""
2943
2944 #. type: textblock
2945 #: ../examples/guestfs-recipes.pod:42
2946 msgid ""
2947 "The guestfish technique described in the link below works well for most "
2948 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
2949 "slightly."
2950 msgstr ""
2951
2952 #. type: textblock
2953 #: ../examples/guestfs-recipes.pod:46
2954 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../examples/guestfs-recipes.pod:48
2959 msgid ""
2960 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
2961 "discussion."
2962 msgstr ""
2963
2964 #. type: textblock
2965 #: ../examples/guestfs-recipes.pod:51
2966 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2967 msgstr ""
2968
2969 #. type: =head1
2970 #: ../examples/guestfs-recipes.pod:53
2971 msgid "Cloning a virtual machine (Windows)"
2972 msgstr ""
2973
2974 #. type: textblock
2975 #: ../examples/guestfs-recipes.pod:55
2976 msgid ""
2977 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
2978 "straightforward.  Currently there is code in the Aeolus Oz project which "
2979 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
2980 "we may add sysprepping ability."
2981 msgstr ""
2982
2983 #. type: textblock
2984 #: ../examples/guestfs-recipes.pod:60
2985 msgid ""
2986 "https://github.com/clalancette/oz "
2987 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2988 msgstr ""
2989
2990 #. type: =head1
2991 #: ../examples/guestfs-recipes.pod:63
2992 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../examples/guestfs-recipes.pod:65
2997 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
2998 msgstr ""
2999
3000 #. type: verbatim
3001 #: ../examples/guestfs-recipes.pod:67
3002 #, no-wrap
3003 msgid ""
3004 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3005 "\n"
3006 msgstr ""
3007
3008 #. type: textblock
3009 #: ../examples/guestfs-recipes.pod:69
3010 msgid "To export just a subdirectory, eg. C</files>, do:"
3011 msgstr ""
3012
3013 #. type: verbatim
3014 #: ../examples/guestfs-recipes.pod:71
3015 #, no-wrap
3016 msgid ""
3017 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3018 "\n"
3019 msgstr ""
3020
3021 #. type: =head1
3022 #: ../examples/guestfs-recipes.pod:73
3023 msgid "Create empty disk images"
3024 msgstr ""
3025
3026 #. type: textblock
3027 #: ../examples/guestfs-recipes.pod:75
3028 msgid ""
3029 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3030 "The useful guide below explains the options available."
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../examples/guestfs-recipes.pod:78
3035 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
3036 msgstr ""
3037
3038 #. type: =head1
3039 #: ../examples/guestfs-recipes.pod:80
3040 msgid "Dump raw filesystem content from inside a disk image or VM"
3041 msgstr ""
3042
3043 #. type: textblock
3044 #: ../examples/guestfs-recipes.pod:82
3045 msgid ""
3046 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3047 "filesystem content from any filesystem in a disk image or a VM (even one "
3048 "which is encrypted or buried inside an LV):"
3049 msgstr ""
3050
3051 #. type: verbatim
3052 #: ../examples/guestfs-recipes.pod:86
3053 #, no-wrap
3054 msgid ""
3055 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3056 "\n"
3057 msgstr ""
3058
3059 #. type: verbatim
3060 #: ../examples/guestfs-recipes.pod:88
3061 #, no-wrap
3062 msgid ""
3063 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3064 "\n"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../examples/guestfs-recipes.pod:90
3069 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3070 msgstr ""
3071
3072 #. type: =head1
3073 #: ../examples/guestfs-recipes.pod:92
3074 msgid "Edit grub configuration in a VM"
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../examples/guestfs-recipes.pod:94
3079 msgid "You can use this to:"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../examples/guestfs-recipes.pod:100
3084 msgid "Fix a virtual machine that does not boot."
3085 msgstr ""
3086
3087 #. type: textblock
3088 #: ../examples/guestfs-recipes.pod:104
3089 msgid "Change which kernel is used to boot the VM."
3090 msgstr ""
3091
3092 #. type: textblock
3093 #: ../examples/guestfs-recipes.pod:108
3094 msgid "Change kernel command line options."
3095 msgstr ""
3096
3097 #. type: textblock
3098 #: ../examples/guestfs-recipes.pod:112
3099 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3100 msgstr ""
3101
3102 #. type: verbatim
3103 #: ../examples/guestfs-recipes.pod:114
3104 #, no-wrap
3105 msgid ""
3106 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3107 "\n"
3108 msgstr ""
3109
3110 #. type: textblock
3111 #: ../examples/guestfs-recipes.pod:116
3112 msgid ""
3113 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3114 "this:"
3115 msgstr ""
3116
3117 #. type: verbatim
3118 #: ../examples/guestfs-recipes.pod:119
3119 #, no-wrap
3120 msgid ""
3121 " virt-rescue -d BrokenGuest\n"
3122 "\n"
3123 msgstr ""
3124
3125 #. type: =head1
3126 #: ../examples/guestfs-recipes.pod:121
3127 msgid "Export any directory from a VM"
3128 msgstr ""
3129
3130 #. type: textblock
3131 #: ../examples/guestfs-recipes.pod:123
3132 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3133 msgstr ""
3134
3135 #. type: verbatim
3136 #: ../examples/guestfs-recipes.pod:126
3137 #, no-wrap
3138 msgid ""
3139 " virt-copy-out -d Guest /home .\n"
3140 "\n"
3141 msgstr ""
3142
3143 #. type: textblock
3144 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1551 ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:11 ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335 ../src/guestfs-actions.pod:2882 ../src/guestfs.pod:1662 ../tools/virt-win-reg.pl:706
3145 msgid "Notes:"
3146 msgstr ""
3147
3148 #. type: textblock
3149 #: ../examples/guestfs-recipes.pod:134
3150 msgid ""
3151 "The final dot of the command is not a printing error.  It means we want to "
3152 "copy out to the current directory."
3153 msgstr ""
3154
3155 #. type: textblock
3156 #: ../examples/guestfs-recipes.pod:139
3157 msgid "This creates a directory called C<home> under the current directory."
3158 msgstr ""
3159
3160 #. type: textblock
3161 #: ../examples/guestfs-recipes.pod:143
3162 msgid ""
3163 "If the guest is a Windows guest then you can use drive letters and "
3164 "backslashes, but you must prefix the path with C<win:> and quote it to "
3165 "protect it from the shell, like this:"
3166 msgstr ""
3167
3168 #. type: verbatim
3169 #: ../examples/guestfs-recipes.pod:147
3170 #, no-wrap
3171 msgid ""
3172 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3173 "\n"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../examples/guestfs-recipes.pod:149
3178 msgid "To get the output as a compressed tarball, do:"
3179 msgstr ""
3180
3181 #. type: verbatim
3182 #: ../examples/guestfs-recipes.pod:151
3183 #, no-wrap
3184 msgid ""
3185 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3186 "\n"
3187 msgstr ""
3188
3189 #. type: textblock
3190 #: ../examples/guestfs-recipes.pod:153
3191 msgid ""
3192 "Although it sounds tempting, this is usually not a reliable way to get a "
3193 "backup from a running guest.  See the entry in the FAQ: "
3194 "http://libguestfs.org/FAQ.html#backup"
3195 msgstr ""
3196
3197 #. type: =head1
3198 #: ../examples/guestfs-recipes.pod:157
3199 msgid "Find out which user is using the most space"
3200 msgstr ""
3201
3202 #. type: textblock
3203 #: ../examples/guestfs-recipes.pod:159
3204 msgid ""
3205 "This simple script examines a Linux guest to find out which user is using "
3206 "the most space in their home directory:"
3207 msgstr ""
3208
3209 #. type: verbatim
3210 #: ../examples/guestfs-recipes.pod:162
3211 #, no-wrap
3212 msgid ""
3213 " #!/bin/sh -\n"
3214 " \n"
3215 msgstr ""
3216
3217 #. type: verbatim
3218 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
3219 #, no-wrap
3220 msgid ""
3221 " set -e\n"
3222 " \n"
3223 msgstr ""
3224
3225 #. type: verbatim
3226 #: ../examples/guestfs-recipes.pod:166
3227 #, no-wrap
3228 msgid ""
3229 " vm=\"$1\"\n"
3230 " dir=/home\n"
3231 " \n"
3232 msgstr ""
3233
3234 #. type: verbatim
3235 #: ../examples/guestfs-recipes.pod:169
3236 #, no-wrap
3237 msgid ""
3238 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3239 " \n"
3240 msgstr ""
3241
3242 #. type: verbatim
3243 #: ../examples/guestfs-recipes.pod:171
3244 #, no-wrap
3245 msgid ""
3246 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3247 "     echo -n \"$dir/$d\"\n"
3248 "     echo -ne '\\t'\n"
3249 "     guestfish --remote du \"$dir/$d\";\n"
3250 " done | sort -nr -k 2\n"
3251 " \n"
3252 msgstr ""
3253
3254 #. type: verbatim
3255 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3256 #, no-wrap
3257 msgid ""
3258 " guestfish --remote exit\n"
3259 "\n"
3260 msgstr ""
3261
3262 #. type: =head1
3263 #: ../examples/guestfs-recipes.pod:179
3264 msgid "Get DHCP address from a VM"
3265 msgstr ""
3266
3267 #. type: textblock
3268 #: ../examples/guestfs-recipes.pod:181
3269 msgid ""
3270 "The link below explains the many different possible techniques for getting "
3271 "the last assigned DHCP address of a virtual machine."
3272 msgstr ""
3273
3274 #. type: textblock
3275 #: ../examples/guestfs-recipes.pod:184
3276 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
3277 msgstr ""
3278
3279 #. type: textblock
3280 #: ../examples/guestfs-recipes.pod:186
3281 msgid ""
3282 "In the libguestfs source examples directory you will find the latest version "
3283 "of the C<virt-dhcp-address.c> program."
3284 msgstr ""
3285
3286 #. type: =head1
3287 #: ../examples/guestfs-recipes.pod:189
3288 msgid "Get the operating system product name string"
3289 msgstr ""
3290
3291 #. type: textblock
3292 #: ../examples/guestfs-recipes.pod:191
3293 msgid "Save the following script into a file called C<product-name.sh>:"
3294 msgstr ""
3295
3296 #. type: verbatim
3297 #: ../examples/guestfs-recipes.pod:193
3298 #, no-wrap
3299 msgid ""
3300 " #!/bin/sh -\n"
3301 " set -e\n"
3302 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3303 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3304 " guestfish --remote inspect-get-product-name \"$root\"\n"
3305 " guestfish --remote exit\n"
3306 "\n"
3307 msgstr ""
3308
3309 #. type: textblock
3310 #: ../examples/guestfs-recipes.pod:200
3311 msgid "Make the script executable and run it on a named guest:"
3312 msgstr ""
3313
3314 #. type: verbatim
3315 #: ../examples/guestfs-recipes.pod:202
3316 #, no-wrap
3317 msgid ""
3318 " # product-name.sh RHEL60x64\n"
3319 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3320 "\n"
3321 msgstr ""
3322
3323 #. type: textblock
3324 #: ../examples/guestfs-recipes.pod:205
3325 msgid ""
3326 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3327 "C<xpath> command line tool or from your favourite programming language:"
3328 msgstr ""
3329
3330 #. type: verbatim
3331 #: ../examples/guestfs-recipes.pod:209
3332 #, no-wrap
3333 msgid ""
3334 " # virt-inspector RHEL60x64 > xml\n"
3335 " # xpath '//product_name' < xml\n"
3336 " Found 1 nodes:\n"
3337 " -- NODE --\n"
3338 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
3339 "(Santiago)</product_name>\n"
3340 "\n"
3341 msgstr ""
3342
3343 #. type: =head1
3344 #: ../examples/guestfs-recipes.pod:215
3345 msgid "Get the default boot kernel for a Linux VM"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../examples/guestfs-recipes.pod:217
3350 msgid ""
3351 "The link below contains a program to print the default boot kernel for a "
3352 "Linux VM."
3353 msgstr ""
3354
3355 #. type: textblock
3356 #: ../examples/guestfs-recipes.pod:220
3357 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
3358 msgstr ""
3359
3360 #. type: textblock
3361 #: ../examples/guestfs-recipes.pod:222
3362 msgid ""
3363 "It uses Augeas, and the technique is generally applicable for many different "
3364 "tasks, such as:"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../examples/guestfs-recipes.pod:229
3369 msgid "listing the user accounts in the guest"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../examples/guestfs-recipes.pod:233
3374 msgid "what repositories is it configured to use"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../examples/guestfs-recipes.pod:237
3379 msgid "what NTP servers does it connect to"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:241
3384 msgid "what were the boot messages last time it booted"
3385 msgstr ""
3386
3387 #. type: textblock
3388 #: ../examples/guestfs-recipes.pod:245
3389 msgid "listing who was logged in recently"
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../examples/guestfs-recipes.pod:249
3394 msgid "http://augeas.net/"
3395 msgstr ""
3396
3397 #. type: =head1
3398 #: ../examples/guestfs-recipes.pod:251
3399 msgid "Install RPMs in a guest"
3400 msgstr ""
3401
3402 #. type: textblock
3403 #: ../examples/guestfs-recipes.pod:253
3404 msgid ""
3405 "The link below contains a method to install RPMs in a guest.  In fact the "
3406 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3407 "installs them next time the guest is booted.  You could use this technique "
3408 "to install vital security updates in an offline guest."
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../examples/guestfs-recipes.pod:259
3413 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3414 msgstr ""
3415
3416 #. type: =head1
3417 #: ../examples/guestfs-recipes.pod:261
3418 msgid "List applications installed in a VM"
3419 msgstr ""
3420
3421 #. type: textblock
3422 #: ../examples/guestfs-recipes.pod:263
3423 msgid "Save the following to a file C<list-apps.sh>:"
3424 msgstr ""
3425
3426 #. type: verbatim
3427 #: ../examples/guestfs-recipes.pod:265
3428 #, no-wrap
3429 msgid ""
3430 " #!/bin/sh -\n"
3431 " set -e\n"
3432 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3433 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3434 " guestfish --remote inspect-list-applications \"$root\"\n"
3435 " guestfish --remote exit\n"
3436 "\n"
3437 msgstr ""
3438
3439 #. type: textblock
3440 #: ../examples/guestfs-recipes.pod:272
3441 msgid ""
3442 "Make the file executable and then you can run it on any named virtual "
3443 "machine:"
3444 msgstr ""
3445
3446 #. type: verbatim
3447 #: ../examples/guestfs-recipes.pod:275
3448 #, no-wrap
3449 msgid ""
3450 " # list-apps.sh WinGuest\n"
3451 " [0] = {\n"
3452 "   app_name: Mozilla Firefox (3.6.12)\n"
3453 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3454 "   app_epoch: 0\n"
3455 "   app_version: 3.6.12 (en-GB)\n"
3456 "   app_release:\n"
3457 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3458 "   app_trans_path:\n"
3459 "   app_publisher: Mozilla\n"
3460 "   app_url: http://www.mozilla.com/en-GB/\n"
3461 "   app_source_package:\n"
3462 "   app_summary:\n"
3463 "   app_description: Mozilla Firefox\n"
3464 " }\n"
3465 " [1] = {\n"
3466 "   app_name: VLC media player\n"
3467 "   app_display_name: VLC media player 1.1.5\n"
3468 "   app_epoch: 0\n"
3469 "   app_version: 1.1.5\n"
3470 "   app_release:\n"
3471 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3472 "   app_trans_path:\n"
3473 "   app_publisher: VideoLAN\n"
3474 "   app_url: http://www.videolan.org/\n"
3475 "   app_source_package:\n"
3476 "   app_summary:\n"
3477 "   app_description:\n"
3478 " }\n"
3479 "\n"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../examples/guestfs-recipes.pod:305
3484 msgid ""
3485 "If you want to run the script on disk images (instead of libvirt virtual "
3486 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
3487 "L<virt-inspector(1)>."
3488 msgstr ""
3489
3490 #. type: =head1
3491 #: ../examples/guestfs-recipes.pod:309
3492 msgid "List files and directories in a VM"
3493 msgstr ""
3494
3495 #. type: textblock
3496 #: ../examples/guestfs-recipes.pod:311
3497 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3498 msgstr ""
3499
3500 #. type: verbatim
3501 #: ../examples/guestfs-recipes.pod:313
3502 #, no-wrap
3503 msgid ""
3504 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3505 "\n"
3506 msgstr ""
3507
3508 #. type: =head1
3509 #: ../examples/guestfs-recipes.pod:315
3510 msgid "List services in a Windows VM"
3511 msgstr ""
3512
3513 #. type: textblock
3514 #: ../examples/guestfs-recipes.pod:317
3515 msgid ""
3516 "The link below contains a script that can be used to list out the services "
3517 "from a Windows VM, and whether those services run at boot time or are loaded "
3518 "on demand."
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../examples/guestfs-recipes.pod:321
3523 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
3524 msgstr ""
3525
3526 #. type: =head1
3527 #: ../examples/guestfs-recipes.pod:323
3528 msgid "Make a disk image sparse"
3529 msgstr ""
3530
3531 #. type: textblock
3532 #: ../examples/guestfs-recipes.pod:325
3533 msgid ""
3534 "The link below contains some guides for making a disk image sparse (or "
3535 "reintroducing sparseness)."
3536 msgstr ""
3537
3538 #. type: textblock
3539 #: ../examples/guestfs-recipes.pod:328
3540 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3541 msgstr ""
3542
3543 #. type: =head1
3544 #: ../examples/guestfs-recipes.pod:330
3545 msgid "Monitor disk usage over time"
3546 msgstr ""
3547
3548 #. type: textblock
3549 #: ../examples/guestfs-recipes.pod:332
3550 msgid ""
3551 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3552 "The link below contains a guide."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../examples/guestfs-recipes.pod:335
3557 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3558 msgstr ""
3559
3560 #. type: =head1
3561 #: ../examples/guestfs-recipes.pod:337
3562 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../examples/guestfs-recipes.pod:339
3567 msgid ""
3568 "L<guestfish(1)> plus the tools described in the link below can be used to "
3569 "read out the Windows Event Log from any virtual machine running Windows "
3570 "Vista or a later version."
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../examples/guestfs-recipes.pod:343
3575 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
3576 msgstr ""
3577
3578 #. type: =head1
3579 #: ../examples/guestfs-recipes.pod:345
3580 msgid "Remove root password (Linux)"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../examples/guestfs-recipes.pod:347
3585 msgid ""
3586 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3587 "files.  One use is to remove the root password from a Linux guest:"
3588 msgstr ""
3589
3590 #. type: verbatim
3591 #: ../examples/guestfs-recipes.pod:350
3592 #, no-wrap
3593 msgid ""
3594 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3595 "\n"
3596 msgstr ""
3597
3598 #. type: =head1
3599 #: ../examples/guestfs-recipes.pod:352
3600 msgid "Remove Administrator password (Windows)"
3601 msgstr ""
3602
3603 #. type: textblock
3604 #: ../examples/guestfs-recipes.pod:354
3605 msgid ""
3606 "The link below contains one technique for removing the Administrator "
3607 "password from a Windows VM, or to be more precise, it gives you a command "
3608 "prompt the next time you log in which you can use to bypass any security:"
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../examples/guestfs-recipes.pod:359
3613 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
3614 msgstr ""
3615
3616 #. type: =head1
3617 #: ../examples/guestfs-recipes.pod:361
3618 msgid "Unpack a live CD"
3619 msgstr ""
3620
3621 #. type: textblock
3622 #: ../examples/guestfs-recipes.pod:363
3623 msgid ""
3624 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3625 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
3626 "layers, as outlined in the guide below."
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../examples/guestfs-recipes.pod:367
3631 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
3632 msgstr ""
3633
3634 #. type: =head1
3635 #: ../examples/guestfs-recipes.pod:369
3636 msgid "Uploading and downloading files"
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../examples/guestfs-recipes.pod:371
3641 msgid ""
3642 "The link below contains general tips on uploading (copying in)  and "
3643 "downloading (copying out) files from VMs."
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../examples/guestfs-recipes.pod:374
3648 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
3649 msgstr ""
3650
3651 #. type: =head1
3652 #: ../examples/guestfs-recipes.pod:376
3653 msgid "Use libguestfs tools on VMware ESX guests"
3654 msgstr ""
3655
3656 #. type: textblock
3657 #: ../examples/guestfs-recipes.pod:378
3658 msgid ""
3659 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
3660 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
3661 msgstr ""
3662
3663 #. type: textblock
3664 #: ../examples/guestfs-recipes.pod:382
3665 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
3666 msgstr ""
3667
3668 #. type: textblock
3669 #: ../examples/guestfs-recipes.pod:386
3670 msgid ""
3671 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
3672 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3673 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../examples/guestfs-recipes.pod:402
3678 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
3679 msgstr ""
3680
3681 #. type: =head2
3682 #: ../fish/guestfish-actions.pod:1
3683 msgid "add-cdrom"
3684 msgstr ""
3685
3686 #. type: verbatim
3687 #: ../fish/guestfish-actions.pod:3
3688 #, no-wrap
3689 msgid ""
3690 " add-cdrom filename\n"
3691 "\n"
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:7
3696 msgid "This function adds a virtual CD-ROM disk image to the guest."
3697 msgstr ""
3698
3699 #. type: textblock
3700 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:9
3701 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
3702 msgstr ""
3703
3704 #. type: textblock
3705 #: ../fish/guestfish-actions.pod:15
3706 msgid ""
3707 "This call checks for the existence of C<filename>.  This stops you from "
3708 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3709 "and C<http:> URLs.  To specify those, use the general L</config> call "
3710 "instead."
3711 msgstr ""
3712
3713 #. type: textblock
3714 #: ../fish/guestfish-actions.pod:22
3715 msgid ""
3716 "If you just want to add an ISO file (often you use this as an efficient way "
3717 "to transfer large files into the guest), then you should probably use "
3718 "L</add-drive-ro> instead."
3719 msgstr ""
3720
3721 #. type: textblock
3722 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
3723 msgid ""
3724 "This function is deprecated.  In new code, use the L</add_drive_opts> call "
3725 "instead."
3726 msgstr ""
3727
3728 #. type: textblock
3729 #: ../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:3112 ../fish/guestfish-actions.pod:3319 ../fish/guestfish-actions.pod:3433 ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:4382 ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4427 ../fish/guestfish-actions.pod:4465 ../fish/guestfish-actions.pod:5114 ../fish/guestfish-actions.pod:5220 ../src/guestfs-actions.pod:35 ../src/guestfs-actions.pod:257 ../src/guestfs-actions.pod:278 ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:2013 ../src/guestfs-actions.pod:2034 ../src/guestfs-actions.pod:4655 ../src/guestfs-actions.pod:4974 ../src/guestfs-actions.pod:5192 ../src/guestfs-actions.pod:5282 ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6601 ../src/guestfs-actions.pod:6634 ../src/guestfs-actions.pod:6693 ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7741 ../src/guestfs-actions.pod:7919
3730 msgid ""
3731 "Deprecated functions will not be removed from the API, but the fact that "
3732 "they are deprecated indicates that there are problems with correct use of "
3733 "these functions."
3734 msgstr ""
3735
3736 #. type: =head2
3737 #: ../fish/guestfish-actions.pod:35
3738 msgid "add-domain"
3739 msgstr ""
3740
3741 #. type: =head2
3742 #: ../fish/guestfish-actions.pod:37
3743 msgid "domain"
3744 msgstr ""
3745
3746 #. type: verbatim
3747 #: ../fish/guestfish-actions.pod:39
3748 #, no-wrap
3749 msgid ""
3750 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
3751 "[allowuuid:..]\n"
3752 "\n"
3753 msgstr ""
3754
3755 #. type: textblock
3756 #: ../fish/guestfish-actions.pod:41
3757 msgid ""
3758 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
3759 "It works by connecting to libvirt, requesting the domain and domain XML from "
3760 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
3761 msgstr ""
3762
3763 #. type: textblock
3764 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
3765 msgid ""
3766 "The number of disks added is returned.  This operation is atomic: if an "
3767 "error is returned, then no disks are added."
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
3772 msgid ""
3773 "This function does some minimal checks to make sure the libvirt domain is "
3774 "not running (unless C<readonly> is true).  In a future version we will try "
3775 "to acquire the libvirt lock on each disk."
3776 msgstr ""
3777
3778 #. type: textblock
3779 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
3780 msgid ""
3781 "Disks must be accessible locally.  This often means that adding disks from a "
3782 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
3783 "unless those disks are accessible via the same device path locally too."
3784 msgstr ""
3785
3786 #. type: textblock
3787 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
3788 msgid ""
3789 "The optional C<libvirturi> parameter sets the libvirt URI (see "
3790 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
3791 "default libvirt URI (or one set through an environment variable, see the "
3792 "libvirt documentation for full details)."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
3797 msgid ""
3798 "The optional C<live> flag controls whether this call will try to connect to "
3799 "a running virtual machine C<guestfsd> process if it sees a suitable "
3800 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
3801 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
3802 "DAEMONS> for more information."
3803 msgstr ""
3804
3805 #. type: textblock
3806 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
3807 msgid ""
3808 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
3809 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
3810 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
3811 "as usual."
3812 msgstr ""
3813
3814 #. type: textblock
3815 #: ../fish/guestfish-actions.pod:76
3816 msgid ""
3817 "The other optional parameters are passed directly through to "
3818 "L</add-drive-opts>."
3819 msgstr ""
3820
3821 #. type: textblock
3822 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1995 ../fish/guestfish-actions.pod:3161 ../fish/guestfish-actions.pod:3334 ../fish/guestfish-actions.pod:3469
3823 msgid ""
3824 "This command has one or more optional arguments.  See L</OPTIONAL "
3825 "ARGUMENTS>."
3826 msgstr ""
3827
3828 #. type: =head2
3829 #: ../fish/guestfish-actions.pod:81
3830 msgid "add-drive"
3831 msgstr ""
3832
3833 #. type: verbatim
3834 #: ../fish/guestfish-actions.pod:83
3835 #, no-wrap
3836 msgid ""
3837 " add-drive filename\n"
3838 "\n"
3839 msgstr ""
3840
3841 #. type: textblock
3842 #: ../fish/guestfish-actions.pod:85
3843 msgid ""
3844 "This function is the equivalent of calling L</add-drive-opts> with no "
3845 "optional parameters, so the disk is added writable, with the format being "
3846 "detected automatically."
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../fish/guestfish-actions.pod:89
3851 msgid ""
3852 "Automatic detection of the format opens you up to a potential security hole "
3853 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3854 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3855 "you should think about replacing calls to this function with calls to "
3856 "L</add-drive-opts>, and specifying the format."
3857 msgstr ""
3858
3859 #. type: =head2
3860 #: ../fish/guestfish-actions.pod:96
3861 msgid "add-drive-opts"
3862 msgstr ""
3863
3864 #. type: =head2
3865 #: ../fish/guestfish-actions.pod:98
3866 msgid "add"
3867 msgstr ""
3868
3869 #. type: verbatim
3870 #: ../fish/guestfish-actions.pod:100
3871 #, no-wrap
3872 msgid ""
3873 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
3874 "\n"
3875 msgstr ""
3876
3877 #. type: textblock
3878 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
3879 msgid ""
3880 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3881 "The first time you call this function, the disk appears as C</dev/sda>, the "
3882 "second time as C</dev/sdb>, and so on."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
3887 msgid ""
3888 "You don't necessarily need to be root when using libguestfs.  However you "
3889 "obviously do need sufficient permissions to access the filename for whatever "
3890 "operations you want to perform (ie. read access if you just want to read the "
3891 "image or write access if you want to modify the image)."
3892 msgstr ""
3893
3894 #. type: textblock
3895 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
3896 msgid "This call checks that C<filename> exists."
3897 msgstr ""
3898
3899 #. type: textblock
3900 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3123 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4682
3901 msgid "The optional arguments are:"
3902 msgstr ""
3903
3904 #. type: =item
3905 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
3906 msgid "C<readonly>"
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
3911 msgid ""
3912 "If true then the image is treated as read-only.  Writes are still allowed, "
3913 "but they are stored in a temporary snapshot overlay which is discarded at "
3914 "the end.  The disk that you add is not modified."
3915 msgstr ""
3916
3917 #. type: =item
3918 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
3919 msgid "C<format>"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../fish/guestfish-actions.pod:127
3924 msgid ""
3925 "This forces the image format.  If you omit this (or use L</add-drive> or "
3926 "L</add-drive-ro>) then the format is automatically detected.  Possible "
3927 "formats include C<raw> and C<qcow2>."
3928 msgstr ""
3929
3930 #. type: textblock
3931 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
3932 msgid ""
3933 "Automatic detection of the format opens you up to a potential security hole "
3934 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3935 "RHBZ#642934.  Specifying the format closes this security hole."
3936 msgstr ""
3937
3938 #. type: =item
3939 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
3940 msgid "C<iface>"
3941 msgstr ""
3942
3943 #. type: textblock
3944 #: ../fish/guestfish-actions.pod:138
3945 msgid ""
3946 "This rarely-used option lets you emulate the behaviour of the deprecated "
3947 "L</add-drive-with-if> call (q.v.)"
3948 msgstr ""
3949
3950 #. type: =head2
3951 #: ../fish/guestfish-actions.pod:145
3952 msgid "add-drive-ro"
3953 msgstr ""
3954
3955 #. type: =head2
3956 #: ../fish/guestfish-actions.pod:147
3957 msgid "add-ro"
3958 msgstr ""
3959
3960 #. type: verbatim
3961 #: ../fish/guestfish-actions.pod:149
3962 #, no-wrap
3963 msgid ""
3964 " add-drive-ro filename\n"
3965 "\n"
3966 msgstr ""
3967
3968 #. type: textblock
3969 #: ../fish/guestfish-actions.pod:151
3970 msgid ""
3971 "This function is the equivalent of calling L</add-drive-opts> with the "
3972 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
3973 "is added read-only, with the format being detected automatically."
3974 msgstr ""
3975
3976 #. type: =head2
3977 #: ../fish/guestfish-actions.pod:156
3978 msgid "add-drive-ro-with-if"
3979 msgstr ""
3980
3981 #. type: verbatim
3982 #: ../fish/guestfish-actions.pod:158
3983 #, no-wrap
3984 msgid ""
3985 " add-drive-ro-with-if filename iface\n"
3986 "\n"
3987 msgstr ""
3988
3989 #. type: textblock
3990 #: ../fish/guestfish-actions.pod:160
3991 msgid ""
3992 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
3993 "interface emulation to use at run time."
3994 msgstr ""
3995
3996 #. type: =head2
3997 #: ../fish/guestfish-actions.pod:170
3998 msgid "add-drive-with-if"
3999 msgstr ""
4000
4001 #. type: verbatim
4002 #: ../fish/guestfish-actions.pod:172
4003 #, no-wrap
4004 msgid ""
4005 " add-drive-with-if filename iface\n"
4006 "\n"
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../fish/guestfish-actions.pod:174
4011 msgid ""
4012 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4013 "interface emulation to use at run time."
4014 msgstr ""
4015
4016 #. type: =head2
4017 #: ../fish/guestfish-actions.pod:184
4018 msgid "aug-clear"
4019 msgstr ""
4020
4021 #. type: verbatim
4022 #: ../fish/guestfish-actions.pod:186
4023 #, no-wrap
4024 msgid ""
4025 " aug-clear augpath\n"
4026 "\n"
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4031 msgid ""
4032 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4033 "L<augtool(1)> C<clear> command."
4034 msgstr ""
4035
4036 #. type: =head2
4037 #: ../fish/guestfish-actions.pod:191
4038 msgid "aug-close"
4039 msgstr ""
4040
4041 #. type: verbatim
4042 #: ../fish/guestfish-actions.pod:193
4043 #, no-wrap
4044 msgid ""
4045 " aug-close\n"
4046 "\n"
4047 msgstr ""
4048
4049 #. type: textblock
4050 #: ../fish/guestfish-actions.pod:195
4051 msgid ""
4052 "Close the current Augeas handle and free up any resources used by it.  After "
4053 "calling this, you have to call L</aug-init> again before you can use any "
4054 "other Augeas functions."
4055 msgstr ""
4056
4057 #. type: =head2
4058 #: ../fish/guestfish-actions.pod:200
4059 msgid "aug-defnode"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../fish/guestfish-actions.pod:202
4064 #, no-wrap
4065 msgid ""
4066 " aug-defnode name expr val\n"
4067 "\n"
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4072 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../fish/guestfish-actions.pod:207
4077 msgid ""
4078 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4079 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4080 "containing that single node."
4081 msgstr ""
4082
4083 #. type: textblock
4084 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4085 msgid ""
4086 "On success this returns a pair containing the number of nodes in the "
4087 "nodeset, and a boolean flag if a node was created."
4088 msgstr ""
4089
4090 #. type: =head2
4091 #: ../fish/guestfish-actions.pod:215
4092 msgid "aug-defvar"
4093 msgstr ""
4094
4095 #. type: verbatim
4096 #: ../fish/guestfish-actions.pod:217
4097 #, no-wrap
4098 msgid ""
4099 " aug-defvar name expr\n"
4100 "\n"
4101 msgstr ""
4102
4103 #. type: textblock
4104 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4105 msgid ""
4106 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4107 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4112 msgid ""
4113 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4114 "evaluates to something which is not a nodeset."
4115 msgstr ""
4116
4117 #. type: =head2
4118 #: ../fish/guestfish-actions.pod:226
4119 msgid "aug-get"
4120 msgstr ""
4121
4122 #. type: verbatim
4123 #: ../fish/guestfish-actions.pod:228
4124 #, no-wrap
4125 msgid ""
4126 " aug-get augpath\n"
4127 "\n"
4128 msgstr ""
4129
4130 #. type: textblock
4131 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4132 msgid ""
4133 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4134 "node, the C<value> is returned."
4135 msgstr ""
4136
4137 #. type: =head2
4138 #: ../fish/guestfish-actions.pod:233
4139 msgid "aug-init"
4140 msgstr ""
4141
4142 #. type: verbatim
4143 #: ../fish/guestfish-actions.pod:235
4144 #, no-wrap
4145 msgid ""
4146 " aug-init root flags\n"
4147 "\n"
4148 msgstr ""
4149
4150 #. type: textblock
4151 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4152 msgid ""
4153 "Create a new Augeas handle for editing configuration files.  If there was "
4154 "any previous Augeas handle associated with this guestfs session, then it is "
4155 "closed."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../fish/guestfish-actions.pod:241
4160 msgid "You must call this before using any other L</aug-*> commands."
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4165 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4166 msgstr ""
4167
4168 #. type: textblock
4169 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4170 msgid ""
4171 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4172 "logical I<or> of the following integers:"
4173 msgstr ""
4174
4175 #. type: =item
4176 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4177 msgid "C<AUG_SAVE_BACKUP> = 1"
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4182 msgid "Keep the original file with a C<.augsave> extension."
4183 msgstr ""
4184
4185 #. type: =item
4186 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4187 msgid "C<AUG_SAVE_NEWFILE> = 2"
4188 msgstr ""
4189
4190 #. type: textblock
4191 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4192 msgid ""
4193 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4194 "original.  Overrides C<AUG_SAVE_BACKUP>."
4195 msgstr ""
4196
4197 #. type: =item
4198 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4199 msgid "C<AUG_TYPE_CHECK> = 4"
4200 msgstr ""
4201
4202 #. type: textblock
4203 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4204 msgid "Typecheck lenses."
4205 msgstr ""
4206
4207 #. type: textblock
4208 #: ../fish/guestfish-actions.pod:266
4209 msgid ""
4210 "This option is only useful when debugging Augeas lenses.  Use of this option "
4211 "may require additional memory for the libguestfs appliance.  You may need to "
4212 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4213 msgstr ""
4214
4215 #. type: =item
4216 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4217 msgid "C<AUG_NO_STDINC> = 8"
4218 msgstr ""
4219
4220 #. type: textblock
4221 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4222 msgid "Do not use standard load path for modules."
4223 msgstr ""
4224
4225 #. type: =item
4226 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4227 msgid "C<AUG_SAVE_NOOP> = 16"
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4232 msgid "Make save a no-op, just record what would have been changed."
4233 msgstr ""
4234
4235 #. type: =item
4236 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4237 msgid "C<AUG_NO_LOAD> = 32"
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../fish/guestfish-actions.pod:281
4242 msgid "Do not load the tree in L</aug-init>."
4243 msgstr ""
4244
4245 #. type: textblock
4246 #: ../fish/guestfish-actions.pod:285
4247 msgid "To close the handle, you can call L</aug-close>."
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4252 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4253 msgstr ""
4254
4255 #. type: =head2
4256 #: ../fish/guestfish-actions.pod:289
4257 msgid "aug-insert"
4258 msgstr ""
4259
4260 #. type: verbatim
4261 #: ../fish/guestfish-actions.pod:291
4262 #, no-wrap
4263 msgid ""
4264 " aug-insert augpath label true|false\n"
4265 "\n"
4266 msgstr ""
4267
4268 #. type: textblock
4269 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4270 msgid ""
4271 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4272 "or after C<path> (depending on the boolean flag C<before>)."
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4277 msgid ""
4278 "C<path> must match exactly one existing node in the tree, and C<label> must "
4279 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4280 msgstr ""
4281
4282 #. type: =head2
4283 #: ../fish/guestfish-actions.pod:301
4284 msgid "aug-load"
4285 msgstr ""
4286
4287 #. type: verbatim
4288 #: ../fish/guestfish-actions.pod:303
4289 #, no-wrap
4290 msgid ""
4291 " aug-load\n"
4292 "\n"
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4297 msgid "Load files into the tree."
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4302 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4303 msgstr ""
4304
4305 #. type: =head2
4306 #: ../fish/guestfish-actions.pod:310
4307 msgid "aug-ls"
4308 msgstr ""
4309
4310 #. type: verbatim
4311 #: ../fish/guestfish-actions.pod:312
4312 #, no-wrap
4313 msgid ""
4314 " aug-ls augpath\n"
4315 "\n"
4316 msgstr ""
4317
4318 #. type: textblock
4319 #: ../fish/guestfish-actions.pod:314
4320 msgid ""
4321 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4322 "resulting nodes into alphabetical order."
4323 msgstr ""
4324
4325 #. type: =head2
4326 #: ../fish/guestfish-actions.pod:317
4327 msgid "aug-match"
4328 msgstr ""
4329
4330 #. type: verbatim
4331 #: ../fish/guestfish-actions.pod:319
4332 #, no-wrap
4333 msgid ""
4334 " aug-match augpath\n"
4335 "\n"
4336 msgstr ""
4337
4338 #. type: textblock
4339 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4340 msgid ""
4341 "Returns a list of paths which match the path expression C<path>.  The "
4342 "returned paths are sufficiently qualified so that they match exactly one "
4343 "node in the current tree."
4344 msgstr ""
4345
4346 #. type: =head2
4347 #: ../fish/guestfish-actions.pod:325
4348 msgid "aug-mv"
4349 msgstr ""
4350
4351 #. type: verbatim
4352 #: ../fish/guestfish-actions.pod:327
4353 #, no-wrap
4354 msgid ""
4355 " aug-mv src dest\n"
4356 "\n"
4357 msgstr ""
4358
4359 #. type: textblock
4360 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4361 msgid ""
4362 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4363 "C<dest> is overwritten if it exists."
4364 msgstr ""
4365
4366 #. type: =head2
4367 #: ../fish/guestfish-actions.pod:332
4368 msgid "aug-rm"
4369 msgstr ""
4370
4371 #. type: verbatim
4372 #: ../fish/guestfish-actions.pod:334
4373 #, no-wrap
4374 msgid ""
4375 " aug-rm augpath\n"
4376 "\n"
4377 msgstr ""
4378
4379 #. type: textblock
4380 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4381 msgid "Remove C<path> and all of its children."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4386 msgid "On success this returns the number of entries which were removed."
4387 msgstr ""
4388
4389 #. type: =head2
4390 #: ../fish/guestfish-actions.pod:340
4391 msgid "aug-save"
4392 msgstr ""
4393
4394 #. type: verbatim
4395 #: ../fish/guestfish-actions.pod:342
4396 #, no-wrap
4397 msgid ""
4398 " aug-save\n"
4399 "\n"
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4404 msgid "This writes all pending changes to disk."
4405 msgstr ""
4406
4407 #. type: textblock
4408 #: ../fish/guestfish-actions.pod:346
4409 msgid ""
4410 "The flags which were passed to L</aug-init> affect exactly how files are "
4411 "saved."
4412 msgstr ""
4413
4414 #. type: =head2
4415 #: ../fish/guestfish-actions.pod:349
4416 msgid "aug-set"
4417 msgstr ""
4418
4419 #. type: verbatim
4420 #: ../fish/guestfish-actions.pod:351
4421 #, no-wrap
4422 msgid ""
4423 " aug-set augpath val\n"
4424 "\n"
4425 msgstr ""
4426
4427 #. type: textblock
4428 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4429 msgid "Set the value associated with C<path> to C<val>."
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../fish/guestfish-actions.pod:355
4434 msgid ""
4435 "In the Augeas API, it is possible to clear a node by setting the value to "
4436 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4437 "this call.  Instead you must use the L</aug-clear> call."
4438 msgstr ""
4439
4440 #. type: =head2
4441 #: ../fish/guestfish-actions.pod:360
4442 msgid "available"
4443 msgstr ""
4444
4445 #. type: verbatim
4446 #: ../fish/guestfish-actions.pod:362
4447 #, no-wrap
4448 msgid ""
4449 " available 'groups ...'\n"
4450 "\n"
4451 msgstr ""
4452
4453 #. type: textblock
4454 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4455 msgid ""
4456 "This command is used to check the availability of some groups of "
4457 "functionality in the appliance, which not all builds of the libguestfs "
4458 "appliance will be able to provide."
4459 msgstr ""
4460
4461 #. type: textblock
4462 #: ../fish/guestfish-actions.pod:368
4463 msgid ""
4464 "The libguestfs groups, and the functions that those groups correspond to, "
4465 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4466 "runtime by calling L</available-all-groups>."
4467 msgstr ""
4468
4469 #. type: textblock
4470 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4471 msgid ""
4472 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4473 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4474 "and Augeas (configuration file editing) functions."
4475 msgstr ""
4476
4477 #. type: textblock
4478 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4479 msgid "The command returns no error if I<all> requested groups are available."
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4484 msgid ""
4485 "It fails with an error if one or more of the requested groups is unavailable "
4486 "in the appliance."
4487 msgstr ""
4488
4489 #. type: textblock
4490 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4491 msgid ""
4492 "If an unknown group name is included in the list of groups then an error is "
4493 "always returned."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4498 msgid "I<Notes:>"
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../fish/guestfish-actions.pod:392
4503 msgid "You must call L</launch> before calling this function."
4504 msgstr ""
4505
4506 #. type: textblock
4507 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4508 msgid ""
4509 "The reason is because we don't know what groups are supported by the "
4510 "appliance/daemon until it is running and can be queried."
4511 msgstr ""
4512
4513 #. type: textblock
4514 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4515 msgid ""
4516 "If a group of functions is available, this does not necessarily mean that "
4517 "they will work.  You still have to check for errors when calling individual "
4518 "API functions even if they are available."
4519 msgstr ""
4520
4521 #. type: textblock
4522 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4523 msgid ""
4524 "It is usually the job of distro packagers to build complete functionality "
4525 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4526 "with all requirements satisfied, will support everything."
4527 msgstr ""
4528
4529 #. type: textblock
4530 #: ../fish/guestfish-actions.pod:414
4531 msgid ""
4532 "This call was added in version C<1.0.80>.  In previous versions of "
4533 "libguestfs all you could do would be to speculatively execute a command to "
4534 "find out if the daemon implemented it.  See also L</version>."
4535 msgstr ""
4536
4537 #. type: =head2
4538 #: ../fish/guestfish-actions.pod:421
4539 msgid "available-all-groups"
4540 msgstr ""
4541
4542 #. type: verbatim
4543 #: ../fish/guestfish-actions.pod:423
4544 #, no-wrap
4545 msgid ""
4546 " available-all-groups\n"
4547 "\n"
4548 msgstr ""
4549
4550 #. type: textblock
4551 #: ../fish/guestfish-actions.pod:425
4552 msgid ""
4553 "This command returns a list of all optional groups that this daemon knows "
4554 "about.  Note this returns both supported and unsupported groups.  To find "
4555 "out which ones the daemon can actually support you have to call "
4556 "L</available> on each member of the returned list."
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:431
4561 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4562 msgstr ""
4563
4564 #. type: =head2
4565 #: ../fish/guestfish-actions.pod:433
4566 msgid "base64-in"
4567 msgstr ""
4568
4569 #. type: verbatim
4570 #: ../fish/guestfish-actions.pod:435
4571 #, no-wrap
4572 msgid ""
4573 " base64-in (base64file|-) filename\n"
4574 "\n"
4575 msgstr ""
4576
4577 #. type: textblock
4578 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4579 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../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:4685 ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4708 ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:4771 ../fish/guestfish-actions.pod:4780 ../fish/guestfish-actions.pod:4834 ../fish/guestfish-actions.pod:4857
4584 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4585 msgstr ""
4586
4587 #. type: =head2
4588 #: ../fish/guestfish-actions.pod:442
4589 msgid "base64-out"
4590 msgstr ""
4591
4592 #. type: verbatim
4593 #: ../fish/guestfish-actions.pod:444
4594 #, no-wrap
4595 msgid ""
4596 " base64-out filename (base64file|-)\n"
4597 "\n"
4598 msgstr ""
4599
4600 #. type: textblock
4601 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
4602 msgid ""
4603 "This command downloads the contents of C<filename>, writing it out to local "
4604 "file C<base64file> encoded as base64."
4605 msgstr ""
4606
4607 #. type: =head2
4608 #: ../fish/guestfish-actions.pod:451
4609 msgid "blockdev-flushbufs"
4610 msgstr ""
4611
4612 #. type: verbatim
4613 #: ../fish/guestfish-actions.pod:453
4614 #, no-wrap
4615 msgid ""
4616 " blockdev-flushbufs device\n"
4617 "\n"
4618 msgstr ""
4619
4620 #. type: textblock
4621 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
4622 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../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
4627 msgid "This uses the L<blockdev(8)> command."
4628 msgstr ""
4629
4630 #. type: =head2
4631 #: ../fish/guestfish-actions.pod:460
4632 msgid "blockdev-getbsz"
4633 msgstr ""
4634
4635 #. type: verbatim
4636 #: ../fish/guestfish-actions.pod:462
4637 #, no-wrap
4638 msgid ""
4639 " blockdev-getbsz device\n"
4640 "\n"
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
4645 msgid "This returns the block size of a device."
4646 msgstr ""
4647
4648 #. type: textblock
4649 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
4650 msgid ""
4651 "(Note this is different from both I<size in blocks> and I<filesystem block "
4652 "size>)."
4653 msgstr ""
4654
4655 #. type: =head2
4656 #: ../fish/guestfish-actions.pod:471
4657 msgid "blockdev-getro"
4658 msgstr ""
4659
4660 #. type: verbatim
4661 #: ../fish/guestfish-actions.pod:473
4662 #, no-wrap
4663 msgid ""
4664 " blockdev-getro device\n"
4665 "\n"
4666 msgstr ""
4667
4668 #. type: textblock
4669 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
4670 msgid ""
4671 "Returns a boolean indicating if the block device is read-only (true if "
4672 "read-only, false if not)."
4673 msgstr ""
4674
4675 #. type: =head2
4676 #: ../fish/guestfish-actions.pod:480
4677 msgid "blockdev-getsize64"
4678 msgstr ""
4679
4680 #. type: verbatim
4681 #: ../fish/guestfish-actions.pod:482
4682 #, no-wrap
4683 msgid ""
4684 " blockdev-getsize64 device\n"
4685 "\n"
4686 msgstr ""
4687
4688 #. type: textblock
4689 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
4690 msgid "This returns the size of the device in bytes."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:486
4695 msgid "See also L</blockdev-getsz>."
4696 msgstr ""
4697
4698 #. type: =head2
4699 #: ../fish/guestfish-actions.pod:490
4700 msgid "blockdev-getss"
4701 msgstr ""
4702
4703 #. type: verbatim
4704 #: ../fish/guestfish-actions.pod:492
4705 #, no-wrap
4706 msgid ""
4707 " blockdev-getss device\n"
4708 "\n"
4709 msgstr ""
4710
4711 #. type: textblock
4712 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
4713 msgid ""
4714 "This returns the size of sectors on a block device.  Usually 512, but can be "
4715 "larger for modern devices."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:497
4720 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
4721 msgstr ""
4722
4723 #. type: =head2
4724 #: ../fish/guestfish-actions.pod:502
4725 msgid "blockdev-getsz"
4726 msgstr ""
4727
4728 #. type: verbatim
4729 #: ../fish/guestfish-actions.pod:504
4730 #, no-wrap
4731 msgid ""
4732 " blockdev-getsz device\n"
4733 "\n"
4734 msgstr ""
4735
4736 #. type: textblock
4737 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
4738 msgid ""
4739 "This returns the size of the device in units of 512-byte sectors (even if "
4740 "the sectorsize isn't 512 bytes ... weird)."
4741 msgstr ""
4742
4743 #. type: textblock
4744 #: ../fish/guestfish-actions.pod:509
4745 msgid ""
4746 "See also L</blockdev-getss> for the real sector size of the device, and "
4747 "L</blockdev-getsize64> for the more useful I<size in bytes>."
4748 msgstr ""
4749
4750 #. type: =head2
4751 #: ../fish/guestfish-actions.pod:515
4752 msgid "blockdev-rereadpt"
4753 msgstr ""
4754
4755 #. type: verbatim
4756 #: ../fish/guestfish-actions.pod:517
4757 #, no-wrap
4758 msgid ""
4759 " blockdev-rereadpt device\n"
4760 "\n"
4761 msgstr ""
4762
4763 #. type: textblock
4764 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
4765 msgid "Reread the partition table on C<device>."
4766 msgstr ""
4767
4768 #. type: =head2
4769 #: ../fish/guestfish-actions.pod:523
4770 msgid "blockdev-setbsz"
4771 msgstr ""
4772
4773 #. type: verbatim
4774 #: ../fish/guestfish-actions.pod:525
4775 #, no-wrap
4776 msgid ""
4777 " blockdev-setbsz device blocksize\n"
4778 "\n"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
4783 msgid "This sets the block size of a device."
4784 msgstr ""
4785
4786 #. type: =head2
4787 #: ../fish/guestfish-actions.pod:534
4788 msgid "blockdev-setro"
4789 msgstr ""
4790
4791 #. type: verbatim
4792 #: ../fish/guestfish-actions.pod:536
4793 #, no-wrap
4794 msgid ""
4795 " blockdev-setro device\n"
4796 "\n"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
4801 msgid "Sets the block device named C<device> to read-only."
4802 msgstr ""
4803
4804 #. type: =head2
4805 #: ../fish/guestfish-actions.pod:542
4806 msgid "blockdev-setrw"
4807 msgstr ""
4808
4809 #. type: verbatim
4810 #: ../fish/guestfish-actions.pod:544
4811 #, no-wrap
4812 msgid ""
4813 " blockdev-setrw device\n"
4814 "\n"
4815 msgstr ""
4816
4817 #. type: textblock
4818 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
4819 msgid "Sets the block device named C<device> to read-write."
4820 msgstr ""
4821
4822 #. type: =head2
4823 #: ../fish/guestfish-actions.pod:550
4824 msgid "btrfs-filesystem-resize"
4825 msgstr ""
4826
4827 #. type: verbatim
4828 #: ../fish/guestfish-actions.pod:552
4829 #, no-wrap
4830 msgid ""
4831 " btrfs-filesystem-resize mountpoint [size:..]\n"
4832 "\n"
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
4837 msgid "This command resizes a btrfs filesystem."
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
4842 msgid ""
4843 "Note that unlike other resize calls, the filesystem has to be mounted and "
4844 "the parameter is the mountpoint not the device (this is a requirement of "
4845 "btrfs itself)."
4846 msgstr ""
4847
4848 #. type: textblock
4849 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5216
4850 msgid "The optional parameters are:"
4851 msgstr ""
4852
4853 #. type: =item
4854 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3448 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5220
4855 msgid "C<size>"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
4860 msgid ""
4861 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
4862 "resized to the maximum size."
4863 msgstr ""
4864
4865 #. type: textblock
4866 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
4867 msgid "See also L<btrfs(8)>."
4868 msgstr ""
4869
4870 #. type: =head2
4871 #: ../fish/guestfish-actions.pod:575
4872 msgid "case-sensitive-path"
4873 msgstr ""
4874
4875 #. type: verbatim
4876 #: ../fish/guestfish-actions.pod:577
4877 #, no-wrap
4878 msgid ""
4879 " case-sensitive-path path\n"
4880 "\n"
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
4885 msgid ""
4886 "This can be used to resolve case insensitive paths on a filesystem which is "
4887 "case sensitive.  The use case is to resolve paths which you have read from "
4888 "Windows configuration files or the Windows Registry, to the true path."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
4893 msgid ""
4894 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4895 "(and probably others), which is that although the underlying filesystem is "
4896 "case-insensitive, the driver exports the filesystem to Linux as "
4897 "case-sensitive."
4898 msgstr ""
4899
4900 #. type: textblock
4901 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
4902 msgid ""
4903 "One consequence of this is that special directories such as C<c:\\windows> "
4904 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4905 "precise details of how they were created.  In Windows itself this would not "
4906 "be a problem."
4907 msgstr ""
4908
4909 #. type: textblock
4910 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
4911 msgid ""
4912 "Bug or feature? You decide: "
4913 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4914 msgstr ""
4915
4916 #. type: textblock
4917 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
4918 msgid ""
4919 "This function resolves the true case of each element in the path and returns "
4920 "the case-sensitive path."
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../fish/guestfish-actions.pod:601
4925 msgid ""
4926 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
4927 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4928 "how the directories were originally created under Windows)."
4929 msgstr ""
4930
4931 #. type: textblock
4932 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
4933 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:609
4938 msgid "See also L</realpath>."
4939 msgstr ""
4940
4941 #. type: =head2
4942 #: ../fish/guestfish-actions.pod:611
4943 msgid "cat"
4944 msgstr ""
4945
4946 #. type: verbatim
4947 #: ../fish/guestfish-actions.pod:613
4948 #, no-wrap
4949 msgid ""
4950 " cat path\n"
4951 "\n"
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5859
4956 msgid "Return the contents of the file named C<path>."
4957 msgstr ""
4958
4959 #. type: textblock
4960 #: ../fish/guestfish-actions.pod:617
4961 msgid ""
4962 "Note that this function cannot correctly handle binary files (specifically, "
4963 "files containing C<\\0> character which is treated as end of string).  For "
4964 "those you need to use the L</read-file> or L</download> functions which have "
4965 "a more complex interface."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../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:3734 ../fish/guestfish-actions.pod:3749 ../fish/guestfish-actions.pod:3825 ../fish/guestfish-actions.pod:3842 ../fish/guestfish-actions.pod:3857 ../fish/guestfish-actions.pod:4526 ../fish/guestfish-actions.pod:4572 ../fish/guestfish-actions.pod:4657 ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:5078 ../fish/guestfish-actions.pod:5090 ../fish/guestfish-actions.pod:5108 ../fish/guestfish-actions.pod:5125 ../fish/guestfish-actions.pod:5135 ../fish/guestfish-actions.pod:5192 ../fish/guestfish-actions.pod:5202 ../fish/guestfish-actions.pod:5231 ../fish/guestfish-actions.pod:5241 ../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:5641 ../src/guestfs-actions.pod:5667 ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5824 ../src/guestfs-actions.pod:5848 ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7024 ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7709 ../src/guestfs-actions.pod:7735 ../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
4970 msgid ""
4971 "Because of the message protocol, there is a transfer limit of somewhere "
4972 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4973 msgstr ""
4974
4975 #. type: =head2
4976 #: ../fish/guestfish-actions.pod:625
4977 msgid "checksum"
4978 msgstr ""
4979
4980 #. type: verbatim
4981 #: ../fish/guestfish-actions.pod:627
4982 #, no-wrap
4983 msgid ""
4984 " checksum csumtype path\n"
4985 "\n"
4986 msgstr ""
4987
4988 #. type: textblock
4989 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
4990 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
4995 msgid ""
4996 "The type of checksum to compute is given by the C<csumtype> parameter which "
4997 "must have one of the following values:"
4998 msgstr ""
4999
5000 #. type: =item
5001 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5002 msgid "C<crc>"
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5007 msgid ""
5008 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5009 "C<cksum> command."
5010 msgstr ""
5011
5012 #. type: =item
5013 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5014 msgid "C<md5>"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5019 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5020 msgstr ""
5021
5022 #. type: =item
5023 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5024 msgid "C<sha1>"
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5029 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5030 msgstr ""
5031
5032 #. type: =item
5033 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5034 msgid "C<sha224>"
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5039 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5040 msgstr ""
5041
5042 #. type: =item
5043 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5044 msgid "C<sha256>"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5049 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5050 msgstr ""
5051
5052 #. type: =item
5053 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5054 msgid "C<sha384>"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5059 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5060 msgstr ""
5061
5062 #. type: =item
5063 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5064 msgid "C<sha512>"
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5069 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5074 msgid "The checksum is returned as a printable string."
5075 msgstr ""
5076
5077 #. type: textblock
5078 #: ../fish/guestfish-actions.pod:670
5079 msgid "To get the checksum for a device, use L</checksum-device>."
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../fish/guestfish-actions.pod:672
5084 msgid "To get the checksums for many files, use L</checksums-out>."
5085 msgstr ""
5086
5087 #. type: =head2
5088 #: ../fish/guestfish-actions.pod:674
5089 msgid "checksum-device"
5090 msgstr ""
5091
5092 #. type: verbatim
5093 #: ../fish/guestfish-actions.pod:676
5094 #, no-wrap
5095 msgid ""
5096 " checksum-device csumtype device\n"
5097 "\n"
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../fish/guestfish-actions.pod:678
5102 msgid ""
5103 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5104 "device named C<device>.  For the types of checksums supported see the "
5105 "L</checksum> command."
5106 msgstr ""
5107
5108 #. type: =head2
5109 #: ../fish/guestfish-actions.pod:682
5110 msgid "checksums-out"
5111 msgstr ""
5112
5113 #. type: verbatim
5114 #: ../fish/guestfish-actions.pod:684
5115 #, no-wrap
5116 msgid ""
5117 " checksums-out csumtype directory (sumsfile|-)\n"
5118 "\n"
5119 msgstr ""
5120
5121 #. type: textblock
5122 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5123 msgid ""
5124 "This command computes the checksums of all regular files in C<directory> and "
5125 "then emits a list of those checksums to the local output file C<sumsfile>."
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5130 msgid ""
5131 "This can be used for verifying the integrity of a virtual machine.  However "
5132 "to be properly secure you should pay attention to the output of the checksum "
5133 "command (it uses the ones from GNU coreutils).  In particular when the "
5134 "filename is not printable, coreutils uses a special backslash syntax.  For "
5135 "more information, see the GNU coreutils info file."
5136 msgstr ""
5137
5138 #. type: =head2
5139 #: ../fish/guestfish-actions.pod:700
5140 msgid "chmod"
5141 msgstr ""
5142
5143 #. type: verbatim
5144 #: ../fish/guestfish-actions.pod:702
5145 #, no-wrap
5146 msgid ""
5147 " chmod mode path\n"
5148 "\n"
5149 msgstr ""
5150
5151 #. type: textblock
5152 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5153 msgid ""
5154 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5155 "supported."
5156 msgstr ""
5157
5158 #. type: textblock
5159 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5160 msgid ""
5161 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5162 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5163 "C<700>."
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3087 ../fish/guestfish-actions.pod:3226 ../fish/guestfish-actions.pod:3236 ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4613 ../src/guestfs-actions.pod:4822 ../src/guestfs-actions.pod:4841 ../src/guestfs-actions.pod:4860
5168 msgid "The mode actually set is affected by the umask."
5169 msgstr ""
5170
5171 #. type: =head2
5172 #: ../fish/guestfish-actions.pod:713
5173 msgid "chown"
5174 msgstr ""
5175
5176 #. type: verbatim
5177 #: ../fish/guestfish-actions.pod:715
5178 #, no-wrap
5179 msgid ""
5180 " chown owner group path\n"
5181 "\n"
5182 msgstr ""
5183
5184 #. type: textblock
5185 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5186 msgid "Change the file owner to C<owner> and group to C<group>."
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3684
5191 msgid ""
5192 "Only numeric uid and gid are supported.  If you want to use names, you will "
5193 "need to locate and parse the password file yourself (Augeas support makes "
5194 "this relatively easy)."
5195 msgstr ""
5196
5197 #. type: =head2
5198 #: ../fish/guestfish-actions.pod:723
5199 msgid "command"
5200 msgstr ""
5201
5202 #. type: verbatim
5203 #: ../fish/guestfish-actions.pod:725
5204 #, no-wrap
5205 msgid ""
5206 " command 'arguments ...'\n"
5207 "\n"
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5212 msgid ""
5213 "This call runs a command from the guest filesystem.  The filesystem must be "
5214 "mounted, and must contain a compatible operating system (ie. something "
5215 "Linux, with the same or compatible processor architecture)."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:732
5220 msgid ""
5221 "The single parameter is an argv-style list of arguments.  The first element "
5222 "is the name of the program to run.  Subsequent elements are parameters.  The "
5223 "list must be non-empty (ie. must contain a program name).  Note that the "
5224 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5225 msgstr ""
5226
5227 #. type: textblock
5228 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5229 msgid "The return value is anything printed to I<stdout> by the command."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5234 msgid ""
5235 "If the command returns a non-zero exit status, then this function returns an "
5236 "error message.  The error message string is the content of I<stderr> from "
5237 "the command."
5238 msgstr ""
5239
5240 #. type: textblock
5241 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5242 msgid ""
5243 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5244 "C</bin>.  If you require a program from another location, you should provide "
5245 "the full path in the first parameter."
5246 msgstr ""
5247
5248 #. type: textblock
5249 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5250 msgid ""
5251 "Shared libraries and data files required by the program must be available on "
5252 "filesystems which are mounted in the correct places.  It is the caller's "
5253 "responsibility to ensure all filesystems that are needed are mounted at the "
5254 "right locations."
5255 msgstr ""
5256
5257 #. type: =head2
5258 #: ../fish/guestfish-actions.pod:760
5259 msgid "command-lines"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../fish/guestfish-actions.pod:762
5264 #, no-wrap
5265 msgid ""
5266 " command-lines 'arguments ...'\n"
5267 "\n"
5268 msgstr ""
5269
5270 #. type: textblock
5271 #: ../fish/guestfish-actions.pod:764
5272 msgid "This is the same as L</command>, but splits the result into a list of lines."
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../fish/guestfish-actions.pod:767
5277 msgid "See also: L</sh-lines>"
5278 msgstr ""
5279
5280 #. type: =head2
5281 #: ../fish/guestfish-actions.pod:772
5282 msgid "config"
5283 msgstr ""
5284
5285 #. type: verbatim
5286 #: ../fish/guestfish-actions.pod:774
5287 #, no-wrap
5288 msgid ""
5289 " config qemuparam qemuvalue\n"
5290 "\n"
5291 msgstr ""
5292
5293 #. type: textblock
5294 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5295 msgid ""
5296 "This can be used to add arbitrary qemu command line parameters of the form "
5297 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5298 "setting some parameters which would interfere with parameters that we use."
5299 msgstr ""
5300
5301 #. type: textblock
5302 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5303 msgid "The first character of C<param> string must be a C<-> (dash)."
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5308 msgid "C<value> can be NULL."
5309 msgstr ""
5310
5311 #. type: =head2
5312 #: ../fish/guestfish-actions.pod:785
5313 msgid "copy-size"
5314 msgstr ""
5315
5316 #. type: verbatim
5317 #: ../fish/guestfish-actions.pod:787
5318 #, no-wrap
5319 msgid ""
5320 " copy-size src dest size\n"
5321 "\n"
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5326 msgid ""
5327 "This command copies exactly C<size> bytes from one source device or file "
5328 "C<src> to another destination device or file C<dest>."
5329 msgstr ""
5330
5331 #. type: textblock
5332 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5333 msgid ""
5334 "Note this will fail if the source is too short or if the destination is not "
5335 "large enough."
5336 msgstr ""
5337
5338 #. type: =head2
5339 #: ../fish/guestfish-actions.pod:795
5340 msgid "cp"
5341 msgstr ""
5342
5343 #. type: verbatim
5344 #: ../fish/guestfish-actions.pod:797
5345 #, no-wrap
5346 msgid ""
5347 " cp src dest\n"
5348 "\n"
5349 msgstr ""
5350
5351 #. type: textblock
5352 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5353 msgid ""
5354 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5355 "destination filename or destination directory."
5356 msgstr ""
5357
5358 #. type: =head2
5359 #: ../fish/guestfish-actions.pod:802
5360 msgid "cp-a"
5361 msgstr ""
5362
5363 #. type: verbatim
5364 #: ../fish/guestfish-actions.pod:804
5365 #, no-wrap
5366 msgid ""
5367 " cp-a src dest\n"
5368 "\n"
5369 msgstr ""
5370
5371 #. type: textblock
5372 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5373 msgid ""
5374 "This copies a file or directory from C<src> to C<dest> recursively using the "
5375 "C<cp -a> command."
5376 msgstr ""
5377
5378 #. type: =head2
5379 #: ../fish/guestfish-actions.pod:809
5380 msgid "dd"
5381 msgstr ""
5382
5383 #. type: verbatim
5384 #: ../fish/guestfish-actions.pod:811
5385 #, no-wrap
5386 msgid ""
5387 " dd src dest\n"
5388 "\n"
5389 msgstr ""
5390
5391 #. type: textblock
5392 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5393 msgid ""
5394 "This command copies from one source device or file C<src> to another "
5395 "destination device or file C<dest>.  Normally you would use this to copy to "
5396 "or from a device or partition, for example to duplicate a filesystem."
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:818
5401 msgid ""
5402 "If the destination is a device, it must be as large or larger than the "
5403 "source file or device, otherwise the copy will fail.  This command cannot do "
5404 "partial copies (see L</copy-size>)."
5405 msgstr ""
5406
5407 #. type: =head2
5408 #: ../fish/guestfish-actions.pod:822
5409 msgid "df"
5410 msgstr ""
5411
5412 #. type: verbatim
5413 #: ../fish/guestfish-actions.pod:824
5414 #, no-wrap
5415 msgid ""
5416 " df\n"
5417 "\n"
5418 msgstr ""
5419
5420 #. type: textblock
5421 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5422 msgid "This command runs the C<df> command to report disk space used."
5423 msgstr ""
5424
5425 #. type: textblock
5426 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5427 msgid ""
5428 "This command is mostly useful for interactive sessions.  It is I<not> "
5429 "intended that you try to parse the output string.  Use L</statvfs> from "
5430 "programs."
5431 msgstr ""
5432
5433 #. type: =head2
5434 #: ../fish/guestfish-actions.pod:832
5435 msgid "df-h"
5436 msgstr ""
5437
5438 #. type: verbatim
5439 #: ../fish/guestfish-actions.pod:834
5440 #, no-wrap
5441 msgid ""
5442 " df-h\n"
5443 "\n"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5448 msgid ""
5449 "This command runs the C<df -h> command to report disk space used in "
5450 "human-readable format."
5451 msgstr ""
5452
5453 #. type: =head2
5454 #: ../fish/guestfish-actions.pod:843
5455 msgid "dmesg"
5456 msgstr ""
5457
5458 #. type: verbatim
5459 #: ../fish/guestfish-actions.pod:845
5460 #, no-wrap
5461 msgid ""
5462 " dmesg\n"
5463 "\n"
5464 msgstr ""
5465
5466 #. type: textblock
5467 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5468 msgid ""
5469 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5470 "This is sometimes useful for extended debugging of problems."
5471 msgstr ""
5472
5473 #. type: textblock
5474 #: ../fish/guestfish-actions.pod:851
5475 msgid ""
5476 "Another way to get the same information is to enable verbose messages with "
5477 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5478 "before running the program."
5479 msgstr ""
5480
5481 #. type: =head2
5482 #: ../fish/guestfish-actions.pod:856
5483 msgid "download"
5484 msgstr ""
5485
5486 #. type: verbatim
5487 #: ../fish/guestfish-actions.pod:858
5488 #, no-wrap
5489 msgid ""
5490 " download remotefilename (filename|-)\n"
5491 "\n"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873 ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5496 msgid ""
5497 "Download file C<remotefilename> and save it as C<filename> on the local "
5498 "machine."
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4830 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7259
5503 msgid "C<filename> can also be a named pipe."
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../fish/guestfish-actions.pod:865
5508 msgid "See also L</upload>, L</cat>."
5509 msgstr ""
5510
5511 #. type: =head2
5512 #: ../fish/guestfish-actions.pod:869
5513 msgid "download-offset"
5514 msgstr ""
5515
5516 #. type: verbatim
5517 #: ../fish/guestfish-actions.pod:871
5518 #, no-wrap
5519 msgid ""
5520 " download-offset remotefilename (filename|-) offset size\n"
5521 "\n"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
5526 msgid ""
5527 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5528 "region must be within the file or device)."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../fish/guestfish-actions.pod:879
5533 msgid ""
5534 "Note that there is no limit on the amount of data that can be downloaded "
5535 "with this call, unlike with L</pread>, and this call always reads the full "
5536 "amount unless an error occurs."
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:884
5541 msgid "See also L</download>, L</pread>."
5542 msgstr ""
5543
5544 #. type: =head2
5545 #: ../fish/guestfish-actions.pod:888
5546 msgid "drop-caches"
5547 msgstr ""
5548
5549 #. type: verbatim
5550 #: ../fish/guestfish-actions.pod:890
5551 #, no-wrap
5552 msgid ""
5553 " drop-caches whattodrop\n"
5554 "\n"
5555 msgstr ""
5556
5557 #. type: textblock
5558 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
5559 msgid ""
5560 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5561 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5562 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5563 msgstr ""
5564
5565 #. type: textblock
5566 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
5567 msgid "Setting C<whattodrop> to 3 should drop everything."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
5572 msgid ""
5573 "This automatically calls L<sync(2)> before the operation, so that the "
5574 "maximum guest memory is freed."
5575 msgstr ""
5576
5577 #. type: =head2
5578 #: ../fish/guestfish-actions.pod:902
5579 msgid "du"
5580 msgstr ""
5581
5582 #. type: verbatim
5583 #: ../fish/guestfish-actions.pod:904
5584 #, no-wrap
5585 msgid ""
5586 " du path\n"
5587 "\n"
5588 msgstr ""
5589
5590 #. type: textblock
5591 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
5592 msgid ""
5593 "This command runs the C<du -s> command to estimate file space usage for "
5594 "C<path>."
5595 msgstr ""
5596
5597 #. type: textblock
5598 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
5599 msgid ""
5600 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5601 "estimate includes the contents of the directory and all subdirectories "
5602 "(recursively)."
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
5607 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5608 msgstr ""
5609
5610 #. type: =head2
5611 #: ../fish/guestfish-actions.pod:916
5612 msgid "e2fsck-f"
5613 msgstr ""
5614
5615 #. type: verbatim
5616 #: ../fish/guestfish-actions.pod:918
5617 #, no-wrap
5618 msgid ""
5619 " e2fsck-f device\n"
5620 "\n"
5621 msgstr ""
5622
5623 #. type: textblock
5624 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
5625 msgid ""
5626 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5627 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5628 "clean (I<-f>)."
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../fish/guestfish-actions.pod:924
5633 msgid ""
5634 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5635 "should use L</fsck>."
5636 msgstr ""
5637
5638 #. type: =head2
5639 #: ../fish/guestfish-actions.pod:927
5640 msgid "echo-daemon"
5641 msgstr ""
5642
5643 #. type: verbatim
5644 #: ../fish/guestfish-actions.pod:929
5645 #, no-wrap
5646 msgid ""
5647 " echo-daemon 'words ...'\n"
5648 "\n"
5649 msgstr ""
5650
5651 #. type: textblock
5652 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
5653 msgid ""
5654 "This command concatenates the list of C<words> passed with single spaces "
5655 "between them and returns the resulting string."
5656 msgstr ""
5657
5658 #. type: textblock
5659 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
5660 msgid "You can use this command to test the connection through to the daemon."
5661 msgstr ""
5662
5663 #. type: textblock
5664 #: ../fish/guestfish-actions.pod:936
5665 msgid "See also L</ping-daemon>."
5666 msgstr ""
5667
5668 #. type: =head2
5669 #: ../fish/guestfish-actions.pod:938
5670 msgid "egrep"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../fish/guestfish-actions.pod:940
5675 #, no-wrap
5676 msgid ""
5677 " egrep regex path\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
5683 msgid "This calls the external C<egrep> program and returns the matching lines."
5684 msgstr ""
5685
5686 #. type: =head2
5687 #: ../fish/guestfish-actions.pod:948
5688 msgid "egrepi"
5689 msgstr ""
5690
5691 #. type: verbatim
5692 #: ../fish/guestfish-actions.pod:950
5693 #, no-wrap
5694 msgid ""
5695 " egrepi regex path\n"
5696 "\n"
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
5701 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5702 msgstr ""
5703
5704 #. type: =head2
5705 #: ../fish/guestfish-actions.pod:958
5706 msgid "equal"
5707 msgstr ""
5708
5709 #. type: verbatim
5710 #: ../fish/guestfish-actions.pod:960
5711 #, no-wrap
5712 msgid ""
5713 " equal file1 file2\n"
5714 "\n"
5715 msgstr ""
5716
5717 #. type: textblock
5718 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
5719 msgid ""
5720 "This compares the two files C<file1> and C<file2> and returns true if their "
5721 "content is exactly equal, or false otherwise."
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
5726 msgid "The external L<cmp(1)> program is used for the comparison."
5727 msgstr ""
5728
5729 #. type: =head2
5730 #: ../fish/guestfish-actions.pod:967
5731 msgid "exists"
5732 msgstr ""
5733
5734 #. type: verbatim
5735 #: ../fish/guestfish-actions.pod:969
5736 #, no-wrap
5737 msgid ""
5738 " exists path\n"
5739 "\n"
5740 msgstr ""
5741
5742 #. type: textblock
5743 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
5744 msgid ""
5745 "This returns C<true> if and only if there is a file, directory (or anything) "
5746 "with the given C<path> name."
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../fish/guestfish-actions.pod:974
5751 msgid "See also L</is-file>, L</is-dir>, L</stat>."
5752 msgstr ""
5753
5754 #. type: =head2
5755 #: ../fish/guestfish-actions.pod:976
5756 msgid "fallocate"
5757 msgstr ""
5758
5759 #. type: verbatim
5760 #: ../fish/guestfish-actions.pod:978
5761 #, no-wrap
5762 msgid ""
5763 " fallocate path len\n"
5764 "\n"
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999 ../src/guestfs-actions.pod:1505 ../src/guestfs-actions.pod:1531
5769 msgid ""
5770 "This command preallocates a file (containing zero bytes) named C<path> of "
5771 "size C<len> bytes.  If the file exists already, it is overwritten."
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1509
5776 msgid ""
5777 "Do not confuse this with the guestfish-specific C<alloc> command which "
5778 "allocates a file in the host and attaches it as a device."
5779 msgstr ""
5780
5781 #. type: textblock
5782 #: ../fish/guestfish-actions.pod:988
5783 msgid ""
5784 "This function is deprecated.  In new code, use the L</fallocate64> call "
5785 "instead."
5786 msgstr ""
5787
5788 #. type: =head2
5789 #: ../fish/guestfish-actions.pod:995
5790 msgid "fallocate64"
5791 msgstr ""
5792
5793 #. type: verbatim
5794 #: ../fish/guestfish-actions.pod:997
5795 #, no-wrap
5796 msgid ""
5797 " fallocate64 path len\n"
5798 "\n"
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../fish/guestfish-actions.pod:1003
5803 msgid ""
5804 "Note that this call allocates disk blocks for the file.  To create a sparse "
5805 "file use L</truncate-size> instead."
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../fish/guestfish-actions.pod:1006
5810 msgid ""
5811 "The deprecated call L</fallocate> does the same, but owing to an oversight "
5812 "it only allowed 30 bit lengths to be specified, effectively limiting the "
5813 "maximum size of files created through that call to 1GB."
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
5818 msgid ""
5819 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5820 "commands which create a file in the host and attach it as a device."
5821 msgstr ""
5822
5823 #. type: =head2
5824 #: ../fish/guestfish-actions.pod:1015
5825 msgid "fgrep"
5826 msgstr ""
5827
5828 #. type: verbatim
5829 #: ../fish/guestfish-actions.pod:1017
5830 #, no-wrap
5831 msgid ""
5832 " fgrep pattern path\n"
5833 "\n"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
5838 msgid "This calls the external C<fgrep> program and returns the matching lines."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:1025
5843 msgid "fgrepi"
5844 msgstr ""
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:1027
5848 #, no-wrap
5849 msgid ""
5850 " fgrepi pattern path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
5856 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5857 msgstr ""
5858
5859 #. type: =head2
5860 #: ../fish/guestfish-actions.pod:1035
5861 msgid "file"
5862 msgstr ""
5863
5864 #. type: verbatim
5865 #: ../fish/guestfish-actions.pod:1037
5866 #, no-wrap
5867 msgid ""
5868 " file path\n"
5869 "\n"
5870 msgstr ""
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
5874 msgid ""
5875 "This call uses the standard L<file(1)> command to determine the type or "
5876 "contents of the file."
5877 msgstr ""
5878
5879 #. type: textblock
5880 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
5881 msgid ""
5882 "This call will also transparently look inside various types of compressed "
5883 "file."
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
5888 msgid ""
5889 "The exact command which runs is C<file -zb path>.  Note in particular that "
5890 "the filename is not prepended to the output (the I<-b> option)."
5891 msgstr ""
5892
5893 #. type: textblock
5894 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
5895 msgid ""
5896 "The output depends on the output of the underlying L<file(1)> command and it "
5897 "can change in future in ways beyond our control.  In other words, the output "
5898 "is not guaranteed by the ABI."
5899 msgstr ""
5900
5901 #. type: textblock
5902 #: ../fish/guestfish-actions.pod:1053
5903 msgid ""
5904 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
5905 "(etc), L</is-zero>."
5906 msgstr ""
5907
5908 #. type: =head2
5909 #: ../fish/guestfish-actions.pod:1056
5910 msgid "file-architecture"
5911 msgstr ""
5912
5913 #. type: verbatim
5914 #: ../fish/guestfish-actions.pod:1058
5915 #, no-wrap
5916 msgid ""
5917 " file-architecture filename\n"
5918 "\n"
5919 msgstr ""
5920
5921 #. type: textblock
5922 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
5923 msgid ""
5924 "This detects the architecture of the binary C<filename>, and returns it if "
5925 "known."
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
5930 msgid "Currently defined architectures are:"
5931 msgstr ""
5932
5933 #. type: =item
5934 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
5935 msgid "\"i386\""
5936 msgstr ""
5937
5938 #. type: textblock
5939 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
5940 msgid ""
5941 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5942 "irrespective of the precise processor requirements of the binary."
5943 msgstr ""
5944
5945 #. type: =item
5946 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
5947 msgid "\"x86_64\""
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
5952 msgid "64 bit x86-64."
5953 msgstr ""
5954
5955 #. type: =item
5956 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
5957 msgid "\"sparc\""
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
5962 msgid "32 bit SPARC."
5963 msgstr ""
5964
5965 #. type: =item
5966 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
5967 msgid "\"sparc64\""
5968 msgstr ""
5969
5970 #. type: textblock
5971 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
5972 msgid "64 bit SPARC V9 and above."
5973 msgstr ""
5974
5975 #. type: =item
5976 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
5977 msgid "\"ia64\""
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
5982 msgid "Intel Itanium."
5983 msgstr ""
5984
5985 #. type: =item
5986 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
5987 msgid "\"ppc\""
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
5992 msgid "32 bit Power PC."
5993 msgstr ""
5994
5995 #. type: =item
5996 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
5997 msgid "\"ppc64\""
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6002 msgid "64 bit Power PC."
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6007 msgid "Libguestfs may return other architecture strings in future."
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6012 msgid "The function works on at least the following types of files:"
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6017 msgid "many types of Un*x and Linux binary"
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6022 msgid "many types of Un*x and Linux shared library"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6027 msgid "Windows Win32 and Win64 binaries"
6028 msgstr ""
6029
6030 #. type: textblock
6031 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6032 msgid "Windows Win32 and Win64 DLLs"
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6037 msgid "Win32 binaries and DLLs return C<i386>."
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6042 msgid "Win64 binaries and DLLs return C<x86_64>."
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6047 msgid "Linux kernel modules"
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6052 msgid "Linux new-style initrd images"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6057 msgid "some non-x86 Linux vmlinuz kernels"
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6062 msgid "What it can't do currently:"
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6067 msgid "static libraries (libfoo.a)"
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6072 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6073 msgstr ""
6074
6075 #. type: textblock
6076 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6077 msgid "x86 Linux vmlinuz kernels"
6078 msgstr ""
6079
6080 #. type: textblock
6081 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6082 msgid ""
6083 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6084 "compressed code, and are horribly hard to unpack.  If you want to find the "
6085 "architecture of a kernel, use the architecture of the associated initrd or "
6086 "kernel module(s) instead."
6087 msgstr ""
6088
6089 #. type: =head2
6090 #: ../fish/guestfish-actions.pod:1161
6091 msgid "filesize"
6092 msgstr ""
6093
6094 #. type: verbatim
6095 #: ../fish/guestfish-actions.pod:1163
6096 #, no-wrap
6097 msgid ""
6098 " filesize file\n"
6099 "\n"
6100 msgstr ""
6101
6102 #. type: textblock
6103 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6104 msgid "This command returns the size of C<file> in bytes."
6105 msgstr ""
6106
6107 #. type: textblock
6108 #: ../fish/guestfish-actions.pod:1167
6109 msgid ""
6110 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6111 "L</is-file> etc.  To get the size of block devices, use "
6112 "L</blockdev-getsize64>."
6113 msgstr ""
6114
6115 #. type: =head2
6116 #: ../fish/guestfish-actions.pod:1171
6117 msgid "fill"
6118 msgstr ""
6119
6120 #. type: verbatim
6121 #: ../fish/guestfish-actions.pod:1173
6122 #, no-wrap
6123 msgid ""
6124 " fill c len path\n"
6125 "\n"
6126 msgstr ""
6127
6128 #. type: textblock
6129 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6130 msgid ""
6131 "This command creates a new file called C<path>.  The initial content of the "
6132 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6133 "C<[0..255]>."
6134 msgstr ""
6135
6136 #. type: textblock
6137 #: ../fish/guestfish-actions.pod:1179
6138 msgid ""
6139 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6140 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6141 "L</fill-pattern>."
6142 msgstr ""
6143
6144 #. type: =head2
6145 #: ../fish/guestfish-actions.pod:1184
6146 msgid "fill-pattern"
6147 msgstr ""
6148
6149 #. type: verbatim
6150 #: ../fish/guestfish-actions.pod:1186
6151 #, no-wrap
6152 msgid ""
6153 " fill-pattern pattern len path\n"
6154 "\n"
6155 msgstr ""
6156
6157 #. type: textblock
6158 #: ../fish/guestfish-actions.pod:1188
6159 msgid ""
6160 "This function is like L</fill> except that it creates a new file of length "
6161 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6162 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6163 "bytes."
6164 msgstr ""
6165
6166 #. type: =head2
6167 #: ../fish/guestfish-actions.pod:1193
6168 msgid "find"
6169 msgstr ""
6170
6171 #. type: verbatim
6172 #: ../fish/guestfish-actions.pod:1195
6173 #, no-wrap
6174 msgid ""
6175 " find directory\n"
6176 "\n"
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6181 msgid ""
6182 "This command lists out all files and directories, recursively, starting at "
6183 "C<directory>.  It is essentially equivalent to running the shell command "
6184 "C<find directory -print> but some post-processing happens on the output, "
6185 "described below."
6186 msgstr ""
6187
6188 #. type: textblock
6189 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6190 msgid ""
6191 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6192 "structure was:"
6193 msgstr ""
6194
6195 #. type: verbatim
6196 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6197 #, no-wrap
6198 msgid ""
6199 " /tmp/a\n"
6200 " /tmp/b\n"
6201 " /tmp/c/d\n"
6202 "\n"
6203 msgstr ""
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:1209
6207 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6208 msgstr ""
6209
6210 #. type: verbatim
6211 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6212 #, no-wrap
6213 msgid ""
6214 " a\n"
6215 " b\n"
6216 " c\n"
6217 " c/d\n"
6218 "\n"
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6223 msgid "If C<directory> is not a directory, then this command returns an error."
6224 msgstr ""
6225
6226 #. type: textblock
6227 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6228 msgid "The returned list is sorted."
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:1222
6233 msgid "See also L</find0>."
6234 msgstr ""
6235
6236 #. type: =head2
6237 #: ../fish/guestfish-actions.pod:1227
6238 msgid "find0"
6239 msgstr ""
6240
6241 #. type: verbatim
6242 #: ../fish/guestfish-actions.pod:1229
6243 #, no-wrap
6244 msgid ""
6245 " find0 directory (files|-)\n"
6246 "\n"
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6251 msgid ""
6252 "This command lists out all files and directories, recursively, starting at "
6253 "C<directory>, placing the resulting list in the external file called "
6254 "C<files>."
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:1235
6259 msgid "This command works the same way as L</find> with the following exceptions:"
6260 msgstr ""
6261
6262 #. type: textblock
6263 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6264 msgid "The resulting list is written to an external file."
6265 msgstr ""
6266
6267 #. type: textblock
6268 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6269 msgid ""
6270 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6271 "L<find(1)> option I<-print0>."
6272 msgstr ""
6273
6274 #. type: textblock
6275 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6276 msgid "This command is not limited in the number of names that it can return."
6277 msgstr ""
6278
6279 #. type: textblock
6280 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6281 msgid "The result list is not sorted."
6282 msgstr ""
6283
6284 #. type: =head2
6285 #: ../fish/guestfish-actions.pod:1262
6286 msgid "findfs-label"
6287 msgstr ""
6288
6289 #. type: verbatim
6290 #: ../fish/guestfish-actions.pod:1264
6291 #, no-wrap
6292 msgid ""
6293 " findfs-label label\n"
6294 "\n"
6295 msgstr ""
6296
6297 #. type: textblock
6298 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6299 msgid ""
6300 "This command searches the filesystems and returns the one which has the "
6301 "given label.  An error is returned if no such filesystem can be found."
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:1270
6306 msgid "To find the label of a filesystem, use L</vfs-label>."
6307 msgstr ""
6308
6309 #. type: =head2
6310 #: ../fish/guestfish-actions.pod:1272
6311 msgid "findfs-uuid"
6312 msgstr ""
6313
6314 #. type: verbatim
6315 #: ../fish/guestfish-actions.pod:1274
6316 #, no-wrap
6317 msgid ""
6318 " findfs-uuid uuid\n"
6319 "\n"
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6324 msgid ""
6325 "This command searches the filesystems and returns the one which has the "
6326 "given UUID.  An error is returned if no such filesystem can be found."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:1280
6331 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6332 msgstr ""
6333
6334 #. type: =head2
6335 #: ../fish/guestfish-actions.pod:1282
6336 msgid "fsck"
6337 msgstr ""
6338
6339 #. type: verbatim
6340 #: ../fish/guestfish-actions.pod:1284
6341 #, no-wrap
6342 msgid ""
6343 " fsck fstype device\n"
6344 "\n"
6345 msgstr ""
6346
6347 #. type: textblock
6348 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6349 msgid ""
6350 "This runs the filesystem checker (fsck) on C<device> which should have "
6351 "filesystem type C<fstype>."
6352 msgstr ""
6353
6354 #. type: textblock
6355 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6356 msgid ""
6357 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6358 "codes from C<fsck>."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6363 msgid "Multiple status codes can be summed together."
6364 msgstr ""
6365
6366 #. type: textblock
6367 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6368 msgid ""
6369 "A non-zero return code can mean \"success\", for example if errors have been "
6370 "corrected on the filesystem."
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6375 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6380 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6381 msgstr ""
6382
6383 #. type: =head2
6384 #: ../fish/guestfish-actions.pod:1314
6385 msgid "get-append"
6386 msgstr ""
6387
6388 #. type: verbatim
6389 #: ../fish/guestfish-actions.pod:1316
6390 #, no-wrap
6391 msgid ""
6392 " get-append\n"
6393 "\n"
6394 msgstr ""
6395
6396 #. type: textblock
6397 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6398 msgid ""
6399 "Return the additional kernel options which are added to the guest kernel "
6400 "command line."
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6405 msgid "If C<NULL> then no options are added."
6406 msgstr ""
6407
6408 #. type: =head2
6409 #: ../fish/guestfish-actions.pod:1323
6410 msgid "get-attach-method"
6411 msgstr ""
6412
6413 #. type: verbatim
6414 #: ../fish/guestfish-actions.pod:1325
6415 #, no-wrap
6416 msgid ""
6417 " get-attach-method\n"
6418 "\n"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:1327
6423 msgid "Return the current attach method.  See L</set-attach-method>."
6424 msgstr ""
6425
6426 #. type: =head2
6427 #: ../fish/guestfish-actions.pod:1329
6428 msgid "get-autosync"
6429 msgstr ""
6430
6431 #. type: verbatim
6432 #: ../fish/guestfish-actions.pod:1331
6433 #, no-wrap
6434 msgid ""
6435 " get-autosync\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6441 msgid "Get the autosync flag."
6442 msgstr ""
6443
6444 #. type: =head2
6445 #: ../fish/guestfish-actions.pod:1335
6446 msgid "get-direct"
6447 msgstr ""
6448
6449 #. type: verbatim
6450 #: ../fish/guestfish-actions.pod:1337
6451 #, no-wrap
6452 msgid ""
6453 " get-direct\n"
6454 "\n"
6455 msgstr ""
6456
6457 #. type: textblock
6458 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6459 msgid "Return the direct appliance mode flag."
6460 msgstr ""
6461
6462 #. type: =head2
6463 #: ../fish/guestfish-actions.pod:1341
6464 msgid "get-e2label"
6465 msgstr ""
6466
6467 #. type: verbatim
6468 #: ../fish/guestfish-actions.pod:1343
6469 #, no-wrap
6470 msgid ""
6471 " get-e2label device\n"
6472 "\n"
6473 msgstr ""
6474
6475 #. type: textblock
6476 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2004
6477 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:1348
6482 msgid ""
6483 "This function is deprecated.  In new code, use the L</vfs_label> call "
6484 "instead."
6485 msgstr ""
6486
6487 #. type: =head2
6488 #: ../fish/guestfish-actions.pod:1355
6489 msgid "get-e2uuid"
6490 msgstr ""
6491
6492 #. type: verbatim
6493 #: ../fish/guestfish-actions.pod:1357
6494 #, no-wrap
6495 msgid ""
6496 " get-e2uuid device\n"
6497 "\n"
6498 msgstr ""
6499
6500 #. type: textblock
6501 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2025
6502 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6503 msgstr ""
6504
6505 #. type: textblock
6506 #: ../fish/guestfish-actions.pod:1362
6507 msgid ""
6508 "This function is deprecated.  In new code, use the L</vfs_uuid> call "
6509 "instead."
6510 msgstr ""
6511
6512 #. type: =head2
6513 #: ../fish/guestfish-actions.pod:1369
6514 msgid "get-memsize"
6515 msgstr ""
6516
6517 #. type: verbatim
6518 #: ../fish/guestfish-actions.pod:1371
6519 #, no-wrap
6520 msgid ""
6521 " get-memsize\n"
6522 "\n"
6523 msgstr ""
6524
6525 #. type: textblock
6526 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
6527 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6528 msgstr ""
6529
6530 #. type: textblock
6531 #: ../fish/guestfish-actions.pod:1376
6532 msgid ""
6533 "If L</set-memsize> was not called on this handle, and if "
6534 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6535 "value for memsize."
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437 ../fish/guestfish-actions.pod:4190 ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6446
6540 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6541 msgstr ""
6542
6543 #. type: =head2
6544 #: ../fish/guestfish-actions.pod:1383
6545 msgid "get-network"
6546 msgstr ""
6547
6548 #. type: verbatim
6549 #: ../fish/guestfish-actions.pod:1385
6550 #, no-wrap
6551 msgid ""
6552 " get-network\n"
6553 "\n"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
6558 msgid "This returns the enable network flag."
6559 msgstr ""
6560
6561 #. type: =head2
6562 #: ../fish/guestfish-actions.pod:1389
6563 msgid "get-path"
6564 msgstr ""
6565
6566 #. type: verbatim
6567 #: ../fish/guestfish-actions.pod:1391
6568 #, no-wrap
6569 msgid ""
6570 " get-path\n"
6571 "\n"
6572 msgstr ""
6573
6574 #. type: textblock
6575 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
6576 msgid "Return the current search path."
6577 msgstr ""
6578
6579 #. type: textblock
6580 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
6581 msgid ""
6582 "This is always non-NULL.  If it wasn't set already, then this will return "
6583 "the default path."
6584 msgstr ""
6585
6586 #. type: =head2
6587 #: ../fish/guestfish-actions.pod:1398
6588 msgid "get-pgroup"
6589 msgstr ""
6590
6591 #. type: verbatim
6592 #: ../fish/guestfish-actions.pod:1400
6593 #, no-wrap
6594 msgid ""
6595 " get-pgroup\n"
6596 "\n"
6597 msgstr ""
6598
6599 #. type: textblock
6600 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
6601 msgid "This returns the process group flag."
6602 msgstr ""
6603
6604 #. type: =head2
6605 #: ../fish/guestfish-actions.pod:1404
6606 msgid "get-pid"
6607 msgstr ""
6608
6609 #. type: =head2
6610 #: ../fish/guestfish-actions.pod:1406
6611 msgid "pid"
6612 msgstr ""
6613
6614 #. type: verbatim
6615 #: ../fish/guestfish-actions.pod:1408
6616 #, no-wrap
6617 msgid ""
6618 " get-pid\n"
6619 "\n"
6620 msgstr ""
6621
6622 #. type: textblock
6623 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
6624 msgid ""
6625 "Return the process ID of the qemu subprocess.  If there is no qemu "
6626 "subprocess, then this will return an error."
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
6631 msgid "This is an internal call used for debugging and testing."
6632 msgstr ""
6633
6634 #. type: =head2
6635 #: ../fish/guestfish-actions.pod:1415
6636 msgid "get-qemu"
6637 msgstr ""
6638
6639 #. type: verbatim
6640 #: ../fish/guestfish-actions.pod:1417
6641 #, no-wrap
6642 msgid ""
6643 " get-qemu\n"
6644 "\n"
6645 msgstr ""
6646
6647 #. type: textblock
6648 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
6649 msgid "Return the current qemu binary."
6650 msgstr ""
6651
6652 #. type: textblock
6653 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
6654 msgid ""
6655 "This is always non-NULL.  If it wasn't set already, then this will return "
6656 "the default qemu binary name."
6657 msgstr ""
6658
6659 #. type: =head2
6660 #: ../fish/guestfish-actions.pod:1424
6661 msgid "get-recovery-proc"
6662 msgstr ""
6663
6664 #. type: verbatim
6665 #: ../fish/guestfish-actions.pod:1426
6666 #, no-wrap
6667 msgid ""
6668 " get-recovery-proc\n"
6669 "\n"
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
6674 msgid "Return the recovery process enabled flag."
6675 msgstr ""
6676
6677 #. type: =head2
6678 #: ../fish/guestfish-actions.pod:1430
6679 msgid "get-selinux"
6680 msgstr ""
6681
6682 #. type: verbatim
6683 #: ../fish/guestfish-actions.pod:1432
6684 #, no-wrap
6685 msgid ""
6686 " get-selinux\n"
6687 "\n"
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:1434
6692 msgid ""
6693 "This returns the current setting of the selinux flag which is passed to the "
6694 "appliance at boot time.  See L</set-selinux>."
6695 msgstr ""
6696
6697 #. type: =head2
6698 #: ../fish/guestfish-actions.pod:1440
6699 msgid "get-state"
6700 msgstr ""
6701
6702 #. type: verbatim
6703 #: ../fish/guestfish-actions.pod:1442
6704 #, no-wrap
6705 msgid ""
6706 " get-state\n"
6707 "\n"
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
6712 msgid ""
6713 "This returns the current state as an opaque integer.  This is only useful "
6714 "for printing debug and internal error messages."
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2389 ../fish/guestfish-actions.pod:2407 ../fish/guestfish-actions.pod:2445 ../fish/guestfish-actions.pod:2461 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3461 ../src/guestfs-actions.pod:3490 ../src/guestfs-actions.pod:3551 ../src/guestfs-actions.pod:3578
6719 msgid "For more information on states, see L<guestfs(3)>."
6720 msgstr ""
6721
6722 #. type: =head2
6723 #: ../fish/guestfish-actions.pod:1449
6724 msgid "get-trace"
6725 msgstr ""
6726
6727 #. type: verbatim
6728 #: ../fish/guestfish-actions.pod:1451
6729 #, no-wrap
6730 msgid ""
6731 " get-trace\n"
6732 "\n"
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
6737 msgid "Return the command trace flag."
6738 msgstr ""
6739
6740 #. type: =head2
6741 #: ../fish/guestfish-actions.pod:1455
6742 msgid "get-umask"
6743 msgstr ""
6744
6745 #. type: verbatim
6746 #: ../fish/guestfish-actions.pod:1457
6747 #, no-wrap
6748 msgid ""
6749 " get-umask\n"
6750 "\n"
6751 msgstr ""
6752
6753 #. type: textblock
6754 #: ../fish/guestfish-actions.pod:1459
6755 msgid ""
6756 "Return the current umask.  By default the umask is C<022> unless it has been "
6757 "set by calling L</umask>."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1462
6762 msgid "get-verbose"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1464
6767 #, no-wrap
6768 msgid ""
6769 " get-verbose\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
6775 msgid "This returns the verbose messages flag."
6776 msgstr ""
6777
6778 #. type: =head2
6779 #: ../fish/guestfish-actions.pod:1468
6780 msgid "getcon"
6781 msgstr ""
6782
6783 #. type: verbatim
6784 #: ../fish/guestfish-actions.pod:1470
6785 #, no-wrap
6786 msgid ""
6787 " getcon\n"
6788 "\n"
6789 msgstr ""
6790
6791 #. type: textblock
6792 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
6793 msgid "This gets the SELinux security context of the daemon."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1474
6798 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
6799 msgstr ""
6800
6801 #. type: =head2
6802 #: ../fish/guestfish-actions.pod:1477
6803 msgid "getxattr"
6804 msgstr ""
6805
6806 #. type: verbatim
6807 #: ../fish/guestfish-actions.pod:1479
6808 #, no-wrap
6809 msgid ""
6810 " getxattr path name\n"
6811 "\n"
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1481
6816 msgid ""
6817 "Get a single extended attribute from file C<path> named C<name>.  This call "
6818 "follows symlinks.  If you want to lookup an extended attribute for the "
6819 "symlink itself, use L</lgetxattr>."
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2534
6824 msgid ""
6825 "Normally it is better to get all extended attributes from a file in one go "
6826 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
6827 "buggy and do not provide a way to list out attributes.  For these "
6828 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
6829 "attributes you want in advance and call this function."
6830 msgstr ""
6831
6832 #. type: textblock
6833 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2541 ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3711
6834 msgid ""
6835 "Extended attribute values are blobs of binary data.  If there is no extended "
6836 "attribute named C<name>, this returns an error."
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:1495
6841 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
6842 msgstr ""
6843
6844 #. type: =head2
6845 #: ../fish/guestfish-actions.pod:1497
6846 msgid "getxattrs"
6847 msgstr ""
6848
6849 #. type: verbatim
6850 #: ../fish/guestfish-actions.pod:1499
6851 #, no-wrap
6852 msgid ""
6853 " getxattrs path\n"
6854 "\n"
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
6859 msgid "This call lists the extended attributes of the file or directory C<path>."
6860 msgstr ""
6861
6862 #. type: textblock
6863 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
6864 msgid ""
6865 "At the system call level, this is a combination of the L<listxattr(2)> and "
6866 "L<getxattr(2)> calls."
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:1507
6871 msgid "See also: L</lgetxattrs>, L<attr(5)>."
6872 msgstr ""
6873
6874 #. type: =head2
6875 #: ../fish/guestfish-actions.pod:1509
6876 msgid "glob-expand"
6877 msgstr ""
6878
6879 #. type: verbatim
6880 #: ../fish/guestfish-actions.pod:1511
6881 #, no-wrap
6882 msgid ""
6883 " glob-expand pattern\n"
6884 "\n"
6885 msgstr ""
6886
6887 #. type: textblock
6888 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
6889 msgid ""
6890 "This command searches for all the pathnames matching C<pattern> according to "
6891 "the wildcard expansion rules used by the shell."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
6896 msgid "If no paths match, then this returns an empty list (note: not an error)."
6897 msgstr ""
6898
6899 #. type: textblock
6900 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
6901 msgid ""
6902 "It is just a wrapper around the C L<glob(3)> function with flags "
6903 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../fish/guestfish-actions.pod:1524
6908 msgid "grep"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../fish/guestfish-actions.pod:1526
6913 #, no-wrap
6914 msgid ""
6915 " grep regex path\n"
6916 "\n"
6917 msgstr ""
6918
6919 #. type: textblock
6920 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
6921 msgid "This calls the external C<grep> program and returns the matching lines."
6922 msgstr ""
6923
6924 #. type: =head2
6925 #: ../fish/guestfish-actions.pod:1534
6926 msgid "grepi"
6927 msgstr ""
6928
6929 #. type: verbatim
6930 #: ../fish/guestfish-actions.pod:1536
6931 #, no-wrap
6932 msgid ""
6933 " grepi regex path\n"
6934 "\n"
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
6939 msgid "This calls the external C<grep -i> program and returns the matching lines."
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:1544
6944 msgid "grub-install"
6945 msgstr ""
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:1546
6949 #, no-wrap
6950 msgid ""
6951 " grub-install root device\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
6957 msgid ""
6958 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
6959 "with the root directory being C<root>."
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
6964 msgid ""
6965 "There is currently no way in the API to install grub2, which is used by most "
6966 "modern Linux guests.  It is possible to run the grub2 command from the "
6967 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
6972 msgid ""
6973 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
6974 "compatible with itself, so this only works in rather narrow circumstances.  "
6975 "Careful testing with each guest version is advisable."
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
6980 msgid ""
6981 "If grub-install reports the error \"No suitable drive was found in the "
6982 "generated device map.\" it may be that you need to create a "
6983 "C</boot/grub/device.map> file first that contains the mapping between grub "
6984 "device names and Linux device names.  It is usually sufficient to create a "
6985 "file containing:"
6986 msgstr ""
6987
6988 #. type: verbatim
6989 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
6990 #, no-wrap
6991 msgid ""
6992 " (hd0) /dev/vda\n"
6993 "\n"
6994 msgstr ""
6995
6996 #. type: textblock
6997 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
6998 msgid "replacing C</dev/vda> with the name of the installation device."
6999 msgstr ""
7000
7001 #. type: =head2
7002 #: ../fish/guestfish-actions.pod:1584
7003 msgid "head"
7004 msgstr ""
7005
7006 #. type: verbatim
7007 #: ../fish/guestfish-actions.pod:1586
7008 #, no-wrap
7009 msgid ""
7010 " head path\n"
7011 "\n"
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
7016 msgid ""
7017 "This command returns up to the first 10 lines of a file as a list of "
7018 "strings."
7019 msgstr ""
7020
7021 #. type: =head2
7022 #: ../fish/guestfish-actions.pod:1594
7023 msgid "head-n"
7024 msgstr ""
7025
7026 #. type: verbatim
7027 #: ../fish/guestfish-actions.pod:1596
7028 #, no-wrap
7029 msgid ""
7030 " head-n nrlines path\n"
7031 "\n"
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
7036 msgid ""
7037 "If the parameter C<nrlines> is a positive number, this returns the first "
7038 "C<nrlines> lines of the file C<path>."
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
7043 msgid ""
7044 "If the parameter C<nrlines> is a negative number, this returns lines from "
7045 "the file C<path>, excluding the last C<nrlines> lines."
7046 msgstr ""
7047
7048 #. type: textblock
7049 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4670 ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7018
7050 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7051 msgstr ""
7052
7053 #. type: =head2
7054 #: ../fish/guestfish-actions.pod:1609
7055 msgid "hexdump"
7056 msgstr ""
7057
7058 #. type: verbatim
7059 #: ../fish/guestfish-actions.pod:1611
7060 #, no-wrap
7061 msgid ""
7062 " hexdump path\n"
7063 "\n"
7064 msgstr ""
7065
7066 #. type: textblock
7067 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
7068 msgid ""
7069 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7070 "human-readable, canonical hex dump of the file."
7071 msgstr ""
7072
7073 #. type: =head2
7074 #: ../fish/guestfish-actions.pod:1619
7075 msgid "initrd-cat"
7076 msgstr ""
7077
7078 #. type: verbatim
7079 #: ../fish/guestfish-actions.pod:1621
7080 #, no-wrap
7081 msgid ""
7082 " initrd-cat initrdpath filename\n"
7083 "\n"
7084 msgstr ""
7085
7086 #. type: textblock
7087 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
7088 msgid ""
7089 "This command unpacks the file C<filename> from the initrd file called "
7090 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7091 "character."
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
7096 msgid ""
7097 "For example, in guestfish you could use the following command to examine the "
7098 "boot script (usually called C</init>)  contained in a Linux initrd or "
7099 "initramfs image:"
7100 msgstr ""
7101
7102 #. type: verbatim
7103 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
7104 #, no-wrap
7105 msgid ""
7106 " initrd-cat /boot/initrd-<version>.img init\n"
7107 "\n"
7108 msgstr ""
7109
7110 #. type: textblock
7111 #: ../fish/guestfish-actions.pod:1633
7112 msgid "See also L</initrd-list>."
7113 msgstr ""
7114
7115 #. type: =head2
7116 #: ../fish/guestfish-actions.pod:1638
7117 msgid "initrd-list"
7118 msgstr ""
7119
7120 #. type: verbatim
7121 #: ../fish/guestfish-actions.pod:1640
7122 #, no-wrap
7123 msgid ""
7124 " initrd-list path\n"
7125 "\n"
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
7130 msgid "This command lists out files contained in an initrd."
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
7135 msgid ""
7136 "The files are listed without any initial C</> character.  The files are "
7137 "listed in the order they appear (not necessarily alphabetical).  Directory "
7138 "names are listed as separate items."
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
7143 msgid ""
7144 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7145 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7146 "files)."
7147 msgstr ""
7148
7149 #. type: =head2
7150 #: ../fish/guestfish-actions.pod:1652
7151 msgid "inotify-add-watch"
7152 msgstr ""
7153
7154 #. type: verbatim
7155 #: ../fish/guestfish-actions.pod:1654
7156 #, no-wrap
7157 msgid ""
7158 " inotify-add-watch path mask\n"
7159 "\n"
7160 msgstr ""
7161
7162 #. type: textblock
7163 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
7164 msgid "Watch C<path> for the events listed in C<mask>."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
7169 msgid ""
7170 "Note that if C<path> is a directory then events within that directory are "
7171 "watched, but this does I<not> happen recursively (in subdirectories)."
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
7176 msgid ""
7177 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7178 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7179 msgstr ""
7180
7181 #. type: =head2
7182 #: ../fish/guestfish-actions.pod:1666
7183 msgid "inotify-close"
7184 msgstr ""
7185
7186 #. type: verbatim
7187 #: ../fish/guestfish-actions.pod:1668
7188 #, no-wrap
7189 msgid ""
7190 " inotify-close\n"
7191 "\n"
7192 msgstr ""
7193
7194 #. type: textblock
7195 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
7196 msgid ""
7197 "This closes the inotify handle which was previously opened by inotify_init.  "
7198 "It removes all watches, throws away any pending events, and deallocates all "
7199 "resources."
7200 msgstr ""
7201
7202 #. type: =head2
7203 #: ../fish/guestfish-actions.pod:1674
7204 msgid "inotify-files"
7205 msgstr ""
7206
7207 #. type: verbatim
7208 #: ../fish/guestfish-actions.pod:1676
7209 #, no-wrap
7210 msgid ""
7211 " inotify-files\n"
7212 "\n"
7213 msgstr ""
7214
7215 #. type: textblock
7216 #: ../fish/guestfish-actions.pod:1678
7217 msgid ""
7218 "This function is a helpful wrapper around L</inotify-read> which just "
7219 "returns a list of pathnames of objects that were touched.  The returned "
7220 "pathnames are sorted and deduplicated."
7221 msgstr ""
7222
7223 #. type: =head2
7224 #: ../fish/guestfish-actions.pod:1682
7225 msgid "inotify-init"
7226 msgstr ""
7227
7228 #. type: verbatim
7229 #: ../fish/guestfish-actions.pod:1684
7230 #, no-wrap
7231 msgid ""
7232 " inotify-init maxevents\n"
7233 "\n"
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
7238 msgid ""
7239 "This command creates a new inotify handle.  The inotify subsystem can be "
7240 "used to notify events which happen to objects in the guest filesystem."
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:1690
7245 msgid ""
7246 "C<maxevents> is the maximum number of events which will be queued up between "
7247 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7248 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7249 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7250 "but records the fact that it threw them away by setting a flag "
7251 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:1700
7256 msgid ""
7257 "Before any events are generated, you have to add some watches to the "
7258 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7259 "L</inotify-watch-all>."
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:1706
7264 msgid ""
7265 "Queued up events should be read periodically by calling L</inotify-read> (or "
7266 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7267 "If you don't read the events out often enough then you risk the internal "
7268 "queue overflowing."
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1713
7273 msgid ""
7274 "The handle should be closed after use by calling L</inotify-close>.  This "
7275 "also removes any watches automatically."
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
7280 msgid ""
7281 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7282 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7283 "that there is one global inotify handle per libguestfs instance."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:1722
7288 msgid "inotify-read"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:1724
7293 #, no-wrap
7294 msgid ""
7295 " inotify-read\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
7301 msgid ""
7302 "Return the complete queue of events that have happened since the previous "
7303 "read call."
7304 msgstr ""
7305
7306 #. type: textblock
7307 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
7308 msgid "If no events have happened, this returns an empty list."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
7313 msgid ""
7314 "I<Note>: In order to make sure that all events have been read, you must call "
7315 "this function repeatedly until it returns an empty list.  The reason is that "
7316 "the call will read events up to the maximum appliance-to-host message size "
7317 "and leave remaining events in the queue."
7318 msgstr ""
7319
7320 #. type: =head2
7321 #: ../fish/guestfish-actions.pod:1737
7322 msgid "inotify-rm-watch"
7323 msgstr ""
7324
7325 #. type: verbatim
7326 #: ../fish/guestfish-actions.pod:1739
7327 #, no-wrap
7328 msgid ""
7329 " inotify-rm-watch wd\n"
7330 "\n"
7331 msgstr ""
7332
7333 #. type: textblock
7334 #: ../fish/guestfish-actions.pod:1741
7335 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7336 msgstr ""
7337
7338 #. type: =head2
7339 #: ../fish/guestfish-actions.pod:1744
7340 msgid "inspect-get-arch"
7341 msgstr ""
7342
7343 #. type: verbatim
7344 #: ../fish/guestfish-actions.pod:1746
7345 #, no-wrap
7346 msgid ""
7347 " inspect-get-arch root\n"
7348 "\n"
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../fish/guestfish-actions.pod:1748
7353 msgid ""
7354 "This returns the architecture of the inspected operating system.  The "
7355 "possible return values are listed under L</file-architecture>."
7356 msgstr ""
7357
7358 #. type: textblock
7359 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
7360 msgid ""
7361 "If the architecture could not be determined, then the string C<unknown> is "
7362 "returned."
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1838 ../fish/guestfish-actions.pod:1917 ../fish/guestfish-actions.pod:1929 ../fish/guestfish-actions.pod:2013 ../fish/guestfish-actions.pod:2074 ../fish/guestfish-actions.pod:2095 ../fish/guestfish-actions.pod:2109 ../fish/guestfish-actions.pod:2149 ../fish/guestfish-actions.pod:2181 ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2207 ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2227 ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2335 ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:2625 ../src/guestfs-actions.pod:2715 ../src/guestfs-actions.pod:2819 ../src/guestfs-actions.pod:2838 ../src/guestfs-actions.pod:2969 ../src/guestfs-actions.pod:3052 ../src/guestfs-actions.pod:3080 ../src/guestfs-actions.pod:3101 ../src/guestfs-actions.pod:3154 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214 ../src/guestfs-actions.pod:3234 ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:3285 ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3428
7367 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7368 msgstr ""
7369
7370 #. type: =head2
7371 #: ../fish/guestfish-actions.pod:1757
7372 msgid "inspect-get-distro"
7373 msgstr ""
7374
7375 #. type: verbatim
7376 #: ../fish/guestfish-actions.pod:1759
7377 #, no-wrap
7378 msgid ""
7379 " inspect-get-distro root\n"
7380 "\n"
7381 msgstr ""
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7385 msgid "This returns the distro (distribution) of the inspected operating system."
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7390 msgid "Currently defined distros are:"
7391 msgstr ""
7392
7393 #. type: =item
7394 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7395 msgid "\"archlinux\""
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7400 msgid "Arch Linux."
7401 msgstr ""
7402
7403 #. type: =item
7404 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7405 msgid "\"centos\""
7406 msgstr ""
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7410 msgid "CentOS."
7411 msgstr ""
7412
7413 #. type: =item
7414 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7415 msgid "\"debian\""
7416 msgstr ""
7417
7418 #. type: textblock
7419 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7420 msgid "Debian."
7421 msgstr ""
7422
7423 #. type: =item
7424 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7425 msgid "\"fedora\""
7426 msgstr ""
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7430 msgid "Fedora."
7431 msgstr ""
7432
7433 #. type: =item
7434 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7435 msgid "\"gentoo\""
7436 msgstr ""
7437
7438 #. type: textblock
7439 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7440 msgid "Gentoo."
7441 msgstr ""
7442
7443 #. type: =item
7444 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7445 msgid "\"linuxmint\""
7446 msgstr ""
7447
7448 #. type: textblock
7449 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7450 msgid "Linux Mint."
7451 msgstr ""
7452
7453 #. type: =item
7454 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7455 msgid "\"mandriva\""
7456 msgstr ""
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7460 msgid "Mandriva."
7461 msgstr ""
7462
7463 #. type: =item
7464 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
7465 msgid "\"meego\""
7466 msgstr ""
7467
7468 #. type: textblock
7469 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
7470 msgid "MeeGo."
7471 msgstr ""
7472
7473 #. type: =item
7474 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
7475 msgid "\"pardus\""
7476 msgstr ""
7477
7478 #. type: textblock
7479 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
7480 msgid "Pardus."
7481 msgstr ""
7482
7483 #. type: =item
7484 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
7485 msgid "\"redhat-based\""
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
7490 msgid "Some Red Hat-derived distro."
7491 msgstr ""
7492
7493 #. type: =item
7494 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
7495 msgid "\"rhel\""
7496 msgstr ""
7497
7498 #. type: textblock
7499 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
7500 msgid "Red Hat Enterprise Linux."
7501 msgstr ""
7502
7503 #. type: =item
7504 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
7505 msgid "\"scientificlinux\""
7506 msgstr ""
7507
7508 #. type: textblock
7509 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
7510 msgid "Scientific Linux."
7511 msgstr ""
7512
7513 #. type: =item
7514 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
7515 msgid "\"slackware\""
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
7520 msgid "Slackware."
7521 msgstr ""
7522
7523 #. type: =item
7524 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
7525 msgid "\"ubuntu\""
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
7530 msgid "Ubuntu."
7531 msgstr ""
7532
7533 #. type: =item
7534 #: ../fish/guestfish-actions.pod:1824 ../fish/guestfish-actions.pod:1908 ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2810 ../src/guestfs-actions.pod:3185
7535 msgid "\"unknown\""
7536 msgstr ""
7537
7538 #. type: textblock
7539 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
7540 msgid "The distro could not be determined."
7541 msgstr ""
7542
7543 #. type: =item
7544 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:2164 ../src/guestfs-actions.pod:2705 ../src/guestfs-actions.pod:3177
7545 msgid "\"windows\""
7546 msgstr ""
7547
7548 #. type: textblock
7549 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
7550 msgid ""
7551 "Windows does not have distributions.  This string is returned if the OS type "
7552 "is Windows."
7553 msgstr ""
7554
7555 #. type: textblock
7556 #: ../fish/guestfish-actions.pod:1835 ../fish/guestfish-actions.pod:1914 ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:2712 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:3191
7557 msgid ""
7558 "Future versions of libguestfs may return other strings here.  The caller "
7559 "should be prepared to handle any string."
7560 msgstr ""
7561
7562 #. type: =head2
7563 #: ../fish/guestfish-actions.pod:1840
7564 msgid "inspect-get-drive-mappings"
7565 msgstr ""
7566
7567 #. type: verbatim
7568 #: ../fish/guestfish-actions.pod:1842
7569 #, no-wrap
7570 msgid ""
7571 " inspect-get-drive-mappings root\n"
7572 "\n"
7573 msgstr ""
7574
7575 #. type: textblock
7576 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
7577 msgid ""
7578 "This call is useful for Windows which uses a primitive system of assigning "
7579 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7580 "Windows Registry to find out how disks/partitions are mapped to drive "
7581 "letters, and returns a hash table as in the example below:"
7582 msgstr ""
7583
7584 #. type: verbatim
7585 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2734
7586 #, no-wrap
7587 msgid ""
7588 " C      =>     /dev/vda2\n"
7589 " E      =>     /dev/vdb1\n"
7590 " F      =>     /dev/vdc1\n"
7591 "\n"
7592 msgstr ""
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
7596 msgid ""
7597 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7598 "and just contains the drive letter, without the customary colon separator "
7599 "character."
7600 msgstr ""
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
7604 msgid ""
7605 "In future we may support other operating systems that also used drive "
7606 "letters, but the keys for those might not be case insensitive and might be "
7607 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7608 "C<h1> etc."
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2747
7613 msgid ""
7614 "For Windows guests, currently only hard drive mappings are returned.  "
7615 "Removable disks (eg. DVD-ROMs) are ignored."
7616 msgstr ""
7617
7618 #. type: textblock
7619 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2750
7620 msgid ""
7621 "For guests that do not use drive mappings, or if the drive mappings could "
7622 "not be determined, this returns an empty hash table."
7623 msgstr ""
7624
7625 #. type: textblock
7626 #: ../fish/guestfish-actions.pod:1869
7627 msgid ""
7628 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7629 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7630 msgstr ""
7631
7632 #. type: =head2
7633 #: ../fish/guestfish-actions.pod:1873
7634 msgid "inspect-get-filesystems"
7635 msgstr ""
7636
7637 #. type: verbatim
7638 #: ../fish/guestfish-actions.pod:1875
7639 #, no-wrap
7640 msgid ""
7641 " inspect-get-filesystems root\n"
7642 "\n"
7643 msgstr ""
7644
7645 #. type: textblock
7646 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2771
7647 msgid ""
7648 "This returns a list of all the filesystems that we think are associated with "
7649 "this operating system.  This includes the root filesystem, other ordinary "
7650 "filesystems, and non-mounted devices like swap partitions."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1882 ../src/guestfs-actions.pod:2776
7655 msgid ""
7656 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7657 "to be shared between operating systems."
7658 msgstr ""
7659
7660 #. type: textblock
7661 #: ../fish/guestfish-actions.pod:1885
7662 msgid ""
7663 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7664 "L</inspect-get-mountpoints>."
7665 msgstr ""
7666
7667 #. type: =head2
7668 #: ../fish/guestfish-actions.pod:1888
7669 msgid "inspect-get-format"
7670 msgstr ""
7671
7672 #. type: verbatim
7673 #: ../fish/guestfish-actions.pod:1890
7674 #, no-wrap
7675 msgid ""
7676 " inspect-get-format root\n"
7677 "\n"
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1892 ../src/guestfs-actions.pod:2794
7682 msgid ""
7683 "This returns the format of the inspected operating system.  You can use it "
7684 "to detect install images, live CDs and similar."
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2797
7689 msgid "Currently defined formats are:"
7690 msgstr ""
7691
7692 #. type: =item
7693 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
7694 msgid "\"installed\""
7695 msgstr ""
7696
7697 #. type: textblock
7698 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2803
7699 msgid "This is an installed operating system."
7700 msgstr ""
7701
7702 #. type: =item
7703 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
7704 msgid "\"installer\""
7705 msgstr ""
7706
7707 #. type: textblock
7708 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
7709 msgid ""
7710 "The disk image being inspected is not an installed operating system, but a "
7711 "I<bootable> install disk, live CD, or similar."
7712 msgstr ""
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:1910 ../src/guestfs-actions.pod:2812
7716 msgid "The format of this disk image is not known."
7717 msgstr ""
7718
7719 #. type: =head2
7720 #: ../fish/guestfish-actions.pod:1919
7721 msgid "inspect-get-hostname"
7722 msgstr ""
7723
7724 #. type: verbatim
7725 #: ../fish/guestfish-actions.pod:1921
7726 #, no-wrap
7727 msgid ""
7728 " inspect-get-hostname root\n"
7729 "\n"
7730 msgstr ""
7731
7732 #. type: textblock
7733 #: ../fish/guestfish-actions.pod:1923 ../src/guestfs-actions.pod:2832
7734 msgid ""
7735 "This function returns the hostname of the operating system as found by "
7736 "inspection of the guest's configuration files."
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2835
7741 msgid ""
7742 "If the hostname could not be determined, then the string C<unknown> is "
7743 "returned."
7744 msgstr ""
7745
7746 #. type: =head2
7747 #: ../fish/guestfish-actions.pod:1931
7748 msgid "inspect-get-icon"
7749 msgstr ""
7750
7751 #. type: verbatim
7752 #: ../fish/guestfish-actions.pod:1933
7753 #, no-wrap
7754 msgid ""
7755 " inspect-get-icon root [favicon:..] [highquality:..]\n"
7756 "\n"
7757 msgstr ""
7758
7759 #. type: textblock
7760 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
7761 msgid ""
7762 "This function returns an icon corresponding to the inspected operating "
7763 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
7764 "to PNG if necessary)."
7765 msgstr ""
7766
7767 #. type: textblock
7768 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
7769 msgid ""
7770 "If it was not possible to get an icon this function returns a zero-length "
7771 "(non-NULL) buffer.  I<Callers must check for this case>."
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:2868
7776 msgid ""
7777 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
7778 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
7779 "this file will be returned.  You can disable favicons by passing the "
7780 "optional C<favicon> boolean as false (default is true)."
7781 msgstr ""
7782
7783 #. type: textblock
7784 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2874
7785 msgid ""
7786 "If finding the favicon fails, then we look in other places in the guest for "
7787 "a suitable icon."
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:1951 ../src/guestfs-actions.pod:2877
7792 msgid ""
7793 "If the optional C<highquality> boolean is true then only high quality icons "
7794 "are returned, which means only icons of high resolution with an alpha "
7795 "channel.  The default (false) is to return any icon we can, even if it is of "
7796 "substandard quality."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:2888
7801 msgid ""
7802 "Unlike most other inspection API calls, the guest's disks must be mounted up "
7803 "before you call this, since it needs to read information from the guest "
7804 "filesystem during the call."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
7809 msgid ""
7810 "B<Security:> The icon data comes from the untrusted guest, and should be "
7811 "treated with caution.  PNG files have been known to contain exploits.  "
7812 "Ensure that libpng (or other relevant libraries) are fully up to date before "
7813 "trying to process or display the icon."
7814 msgstr ""
7815
7816 #. type: textblock
7817 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:2902
7818 msgid ""
7819 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
7820 "tries to return the largest, highest quality icon available.  The "
7821 "application must scale the icon to the required size."
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1983 ../src/guestfs-actions.pod:2909
7826 msgid ""
7827 "Extracting icons from Windows guests requires the external C<wrestool> "
7828 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
7829 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
7830 "installed separately."
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:2916
7835 msgid ""
7836 "Operating system icons are usually trademarks.  Seek legal advice before "
7837 "using trademarks in applications."
7838 msgstr ""
7839
7840 #. type: =head2
7841 #: ../fish/guestfish-actions.pod:1997
7842 msgid "inspect-get-major-version"
7843 msgstr ""
7844
7845 #. type: verbatim
7846 #: ../fish/guestfish-actions.pod:1999
7847 #, no-wrap
7848 msgid ""
7849 " inspect-get-major-version root\n"
7850 "\n"
7851 msgstr ""
7852
7853 #. type: textblock
7854 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:2957
7855 msgid "This returns the major version number of the inspected operating system."
7856 msgstr ""
7857
7858 #. type: textblock
7859 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2960
7860 msgid ""
7861 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7862 "popular public names used by the operating system.  Notably the operating "
7863 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7864 "1).  You can find out the real versions corresponding to releases of Windows "
7865 "by consulting Wikipedia or MSDN."
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2022 ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:2984
7870 msgid "If the version could not be determined, then C<0> is returned."
7871 msgstr ""
7872
7873 #. type: =head2
7874 #: ../fish/guestfish-actions.pod:2015
7875 msgid "inspect-get-minor-version"
7876 msgstr ""
7877
7878 #. type: verbatim
7879 #: ../fish/guestfish-actions.pod:2017
7880 #, no-wrap
7881 msgid ""
7882 " inspect-get-minor-version root\n"
7883 "\n"
7884 msgstr ""
7885
7886 #. type: textblock
7887 #: ../fish/guestfish-actions.pod:2019 ../src/guestfs-actions.pod:2981
7888 msgid "This returns the minor version number of the inspected operating system."
7889 msgstr ""
7890
7891 #. type: textblock
7892 #: ../fish/guestfish-actions.pod:2024
7893 msgid ""
7894 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7895 "L</inspect-get-major-version>."
7896 msgstr ""
7897
7898 #. type: =head2
7899 #: ../fish/guestfish-actions.pod:2027
7900 msgid "inspect-get-mountpoints"
7901 msgstr ""
7902
7903 #. type: verbatim
7904 #: ../fish/guestfish-actions.pod:2029
7905 #, no-wrap
7906 msgid ""
7907 " inspect-get-mountpoints root\n"
7908 "\n"
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:2031 ../src/guestfs-actions.pod:2999
7913 msgid ""
7914 "This returns a hash of where we think the filesystems associated with this "
7915 "operating system should be mounted.  Callers should note that this is at "
7916 "best an educated guess made by reading configuration files such as "
7917 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
7918 "are non-existent or not mountable and callers should be prepared to handle "
7919 "or ignore failures if they try to mount them."
7920 msgstr ""
7921
7922 #. type: textblock
7923 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3008
7924 msgid ""
7925 "Each element in the returned hashtable has a key which is the path of the "
7926 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7927 "mounted there (eg. C</dev/sda1>)."
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3013
7932 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7933 msgstr ""
7934
7935 #. type: textblock
7936 #: ../fish/guestfish-actions.pod:2048
7937 msgid ""
7938 "For operating systems like Windows which still use drive letters, this call "
7939 "will only return an entry for the first drive \"mounted on\" C</>.  For "
7940 "information about the mapping of drive letters to partitions, see "
7941 "L</inspect-get-drive-mappings>."
7942 msgstr ""
7943
7944 #. type: textblock
7945 #: ../fish/guestfish-actions.pod:2054
7946 msgid ""
7947 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7948 "L</inspect-get-filesystems>."
7949 msgstr ""
7950
7951 #. type: =head2
7952 #: ../fish/guestfish-actions.pod:2057
7953 msgid "inspect-get-package-format"
7954 msgstr ""
7955
7956 #. type: verbatim
7957 #: ../fish/guestfish-actions.pod:2059
7958 #, no-wrap
7959 msgid ""
7960 " inspect-get-package-format root\n"
7961 "\n"
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:2061
7966 msgid ""
7967 "This function and L</inspect-get-package-management> return the package "
7968 "format and package management tool used by the inspected operating system.  "
7969 "For example for Fedora these functions would return C<rpm> (package format) "
7970 "and C<yum> (package management)."
7971 msgstr ""
7972
7973 #. type: textblock
7974 #: ../fish/guestfish-actions.pod:2067 ../src/guestfs-actions.pod:3045
7975 msgid ""
7976 "This returns the string C<unknown> if we could not determine the package "
7977 "format I<or> if the operating system does not have a real packaging system "
7978 "(eg. Windows)."
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
7983 msgid ""
7984 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
7985 "Future versions of libguestfs may return other strings."
7986 msgstr ""
7987
7988 #. type: =head2
7989 #: ../fish/guestfish-actions.pod:2076
7990 msgid "inspect-get-package-management"
7991 msgstr ""
7992
7993 #. type: verbatim
7994 #: ../fish/guestfish-actions.pod:2078
7995 #, no-wrap
7996 msgid ""
7997 " inspect-get-package-management root\n"
7998 "\n"
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:2080
8003 msgid ""
8004 "L</inspect-get-package-format> and this function return the package format "
8005 "and package management tool used by the inspected operating system.  For "
8006 "example for Fedora these functions would return C<rpm> (package format) and "
8007 "C<yum> (package management)."
8008 msgstr ""
8009
8010 #. type: textblock
8011 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3071
8012 msgid ""
8013 "This returns the string C<unknown> if we could not determine the package "
8014 "management tool I<or> if the operating system does not have a real packaging "
8015 "system (eg. Windows)."
8016 msgstr ""
8017
8018 #. type: textblock
8019 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
8020 msgid ""
8021 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
8022 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
8023 "libguestfs may return other strings."
8024 msgstr ""
8025
8026 #. type: =head2
8027 #: ../fish/guestfish-actions.pod:2097
8028 msgid "inspect-get-product-name"
8029 msgstr ""
8030
8031 #. type: verbatim
8032 #: ../fish/guestfish-actions.pod:2099
8033 #, no-wrap
8034 msgid ""
8035 " inspect-get-product-name root\n"
8036 "\n"
8037 msgstr ""
8038
8039 #. type: textblock
8040 #: ../fish/guestfish-actions.pod:2101 ../src/guestfs-actions.pod:3093
8041 msgid ""
8042 "This returns the product name of the inspected operating system.  The "
8043 "product name is generally some freeform string which can be displayed to the "
8044 "user, but should not be parsed by programs."
8045 msgstr ""
8046
8047 #. type: textblock
8048 #: ../fish/guestfish-actions.pod:2106 ../src/guestfs-actions.pod:3098
8049 msgid ""
8050 "If the product name could not be determined, then the string C<unknown> is "
8051 "returned."
8052 msgstr ""
8053
8054 #. type: =head2
8055 #: ../fish/guestfish-actions.pod:2111
8056 msgid "inspect-get-product-variant"
8057 msgstr ""
8058
8059 #. type: verbatim
8060 #: ../fish/guestfish-actions.pod:2113
8061 #, no-wrap
8062 msgid ""
8063 " inspect-get-product-variant root\n"
8064 "\n"
8065 msgstr ""
8066
8067 #. type: textblock
8068 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3114
8069 msgid "This returns the product variant of the inspected operating system."
8070 msgstr ""
8071
8072 #. type: textblock
8073 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3117
8074 msgid ""
8075 "For Windows guests, this returns the contents of the Registry key "
8076 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8077 "which is usually a string such as C<Client> or C<Server> (other values are "
8078 "possible).  This can be used to distinguish consumer and enterprise versions "
8079 "of Windows that have the same version number (for example, Windows 7 and "
8080 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8081 "the latter is C<Server>)."
8082 msgstr ""
8083
8084 #. type: textblock
8085 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3126
8086 msgid ""
8087 "For enterprise Linux guests, in future we intend this to return the product "
8088 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8089 "implemented at present."
8090 msgstr ""
8091
8092 #. type: textblock
8093 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
8094 msgid ""
8095 "If the product variant could not be determined, then the string C<unknown> "
8096 "is returned."
8097 msgstr ""
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:2134
8101 msgid ""
8102 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8103 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8104 msgstr ""
8105
8106 #. type: =head2
8107 #: ../fish/guestfish-actions.pod:2138
8108 msgid "inspect-get-roots"
8109 msgstr ""
8110
8111 #. type: verbatim
8112 #: ../fish/guestfish-actions.pod:2140
8113 #, no-wrap
8114 msgid ""
8115 " inspect-get-roots\n"
8116 "\n"
8117 msgstr ""
8118
8119 #. type: textblock
8120 #: ../fish/guestfish-actions.pod:2142
8121 msgid ""
8122 "This function is a convenient way to get the list of root devices, as "
8123 "returned from a previous call to L</inspect-os>, but without redoing the "
8124 "whole inspection process."
8125 msgstr ""
8126
8127 #. type: textblock
8128 #: ../fish/guestfish-actions.pod:2146
8129 msgid ""
8130 "This returns an empty list if either no root devices were found or the "
8131 "caller has not called L</inspect-os>."
8132 msgstr ""
8133
8134 #. type: =head2
8135 #: ../fish/guestfish-actions.pod:2151
8136 msgid "inspect-get-type"
8137 msgstr ""
8138
8139 #. type: verbatim
8140 #: ../fish/guestfish-actions.pod:2153
8141 #, no-wrap
8142 msgid ""
8143 " inspect-get-type root\n"
8144 "\n"
8145 msgstr ""
8146
8147 #. type: textblock
8148 #: ../fish/guestfish-actions.pod:2155 ../src/guestfs-actions.pod:3168
8149 msgid ""
8150 "This returns the type of the inspected operating system.  Currently defined "
8151 "types are:"
8152 msgstr ""
8153
8154 #. type: =item
8155 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3173
8156 msgid "\"linux\""
8157 msgstr ""
8158
8159 #. type: textblock
8160 #: ../fish/guestfish-actions.pod:2162 ../src/guestfs-actions.pod:3175
8161 msgid "Any Linux-based operating system."
8162 msgstr ""
8163
8164 #. type: textblock
8165 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
8166 msgid "Any Microsoft Windows operating system."
8167 msgstr ""
8168
8169 #. type: =item
8170 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3181
8171 msgid "\"freebsd\""
8172 msgstr ""
8173
8174 #. type: textblock
8175 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
8176 msgid "FreeBSD."
8177 msgstr ""
8178
8179 #. type: textblock
8180 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
8181 msgid "The operating system type could not be determined."
8182 msgstr ""
8183
8184 #. type: =head2
8185 #: ../fish/guestfish-actions.pod:2183
8186 msgid "inspect-get-windows-current-control-set"
8187 msgstr ""
8188
8189 #. type: verbatim
8190 #: ../fish/guestfish-actions.pod:2185
8191 #, no-wrap
8192 msgid ""
8193 " inspect-get-windows-current-control-set root\n"
8194 "\n"
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../fish/guestfish-actions.pod:2187 ../src/guestfs-actions.pod:3207
8199 msgid ""
8200 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8201 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8202 msgstr ""
8203
8204 #. type: textblock
8205 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3210
8206 msgid ""
8207 "This call assumes that the guest is Windows and that the Registry could be "
8208 "examined by inspection.  If this is not the case then an error is returned."
8209 msgstr ""
8210
8211 #. type: =head2
8212 #: ../fish/guestfish-actions.pod:2196
8213 msgid "inspect-get-windows-systemroot"
8214 msgstr ""
8215
8216 #. type: verbatim
8217 #: ../fish/guestfish-actions.pod:2198
8218 #, no-wrap
8219 msgid ""
8220 " inspect-get-windows-systemroot root\n"
8221 "\n"
8222 msgstr ""
8223
8224 #. type: textblock
8225 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3227
8226 msgid ""
8227 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8228 "is a directory path such as C</WINDOWS>."
8229 msgstr ""
8230
8231 #. type: textblock
8232 #: ../fish/guestfish-actions.pod:2203 ../src/guestfs-actions.pod:3230
8233 msgid ""
8234 "This call assumes that the guest is Windows and that the systemroot could be "
8235 "determined by inspection.  If this is not the case then an error is "
8236 "returned."
8237 msgstr ""
8238
8239 #. type: =head2
8240 #: ../fish/guestfish-actions.pod:2209
8241 msgid "inspect-is-live"
8242 msgstr ""
8243
8244 #. type: verbatim
8245 #: ../fish/guestfish-actions.pod:2211
8246 #, no-wrap
8247 msgid ""
8248 " inspect-is-live root\n"
8249 "\n"
8250 msgstr ""
8251
8252 #. type: textblock
8253 #: ../fish/guestfish-actions.pod:2213
8254 msgid ""
8255 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8256 "then this returns true if a live image was detected on the disk."
8257 msgstr ""
8258
8259 #. type: =head2
8260 #: ../fish/guestfish-actions.pod:2219
8261 msgid "inspect-is-multipart"
8262 msgstr ""
8263
8264 #. type: verbatim
8265 #: ../fish/guestfish-actions.pod:2221
8266 #, no-wrap
8267 msgid ""
8268 " inspect-is-multipart root\n"
8269 "\n"
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:2223
8274 msgid ""
8275 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8276 "then this returns true if the disk is part of a set."
8277 msgstr ""
8278
8279 #. type: =head2
8280 #: ../fish/guestfish-actions.pod:2229
8281 msgid "inspect-is-netinst"
8282 msgstr ""
8283
8284 #. type: verbatim
8285 #: ../fish/guestfish-actions.pod:2231
8286 #, no-wrap
8287 msgid ""
8288 " inspect-is-netinst root\n"
8289 "\n"
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:2233
8294 msgid ""
8295 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8296 "then this returns true if the disk is a network installer, ie. not a "
8297 "self-contained install CD but one which is likely to require network access "
8298 "to complete the install."
8299 msgstr ""
8300
8301 #. type: =head2
8302 #: ../fish/guestfish-actions.pod:2241
8303 msgid "inspect-list-applications"
8304 msgstr ""
8305
8306 #. type: verbatim
8307 #: ../fish/guestfish-actions.pod:2243
8308 #, no-wrap
8309 msgid ""
8310 " inspect-list-applications root\n"
8311 "\n"
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3297
8316 msgid "Return the list of applications installed in the operating system."
8317 msgstr ""
8318
8319 #. type: textblock
8320 #: ../fish/guestfish-actions.pod:2247
8321 msgid ""
8322 "I<Note:> This call works differently from other parts of the inspection "
8323 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8324 "then mount up the disks, before calling this.  Listing applications is a "
8325 "significantly more difficult operation which requires access to the full "
8326 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8327 "are just returning data cached in the libguestfs handle, this call actually "
8328 "reads parts of the mounted filesystems during the call."
8329 msgstr ""
8330
8331 #. type: textblock
8332 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8333 msgid ""
8334 "This returns an empty list if the inspection code was not able to determine "
8335 "the list of applications."
8336 msgstr ""
8337
8338 #. type: textblock
8339 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8340 msgid "The application structure contains the following fields:"
8341 msgstr ""
8342
8343 #. type: =item
8344 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
8345 msgid "C<app_name>"
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8350 msgid ""
8351 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8352 "guests, this is the package name."
8353 msgstr ""
8354
8355 #. type: =item
8356 #: ../fish/guestfish-actions.pod:2269 ../src/guestfs-actions.pod:3321
8357 msgid "C<app_display_name>"
8358 msgstr ""
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8362 msgid ""
8363 "The display name of the application, sometimes localized to the install "
8364 "language of the guest operating system."
8365 msgstr ""
8366
8367 #. type: textblock
8368 #: ../fish/guestfish-actions.pod:2274 ../src/guestfs-actions.pod:3326
8369 msgid ""
8370 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8371 "to display something can use C<app_name> instead."
8372 msgstr ""
8373
8374 #. type: =item
8375 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8376 msgid "C<app_epoch>"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:2279 ../src/guestfs-actions.pod:3331
8381 msgid ""
8382 "For package managers which use epochs, this contains the epoch of the "
8383 "package (an integer).  If unavailable, this is returned as C<0>."
8384 msgstr ""
8385
8386 #. type: =item
8387 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8388 msgid "C<app_version>"
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:2284 ../src/guestfs-actions.pod:3336
8393 msgid ""
8394 "The version string of the application or package.  If unavailable this is "
8395 "returned as an empty string C<\"\">."
8396 msgstr ""
8397
8398 #. type: =item
8399 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8400 msgid "C<app_release>"
8401 msgstr ""
8402
8403 #. type: textblock
8404 #: ../fish/guestfish-actions.pod:2289 ../src/guestfs-actions.pod:3341
8405 msgid ""
8406 "The release string of the application or package, for package managers that "
8407 "use this.  If unavailable this is returned as an empty string C<\"\">."
8408 msgstr ""
8409
8410 #. type: =item
8411 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8412 msgid "C<app_install_path>"
8413 msgstr ""
8414
8415 #. type: textblock
8416 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3347
8417 msgid ""
8418 "The installation path of the application (on operating systems such as "
8419 "Windows which use installation paths).  This path is in the format used by "
8420 "the guest operating system, it is not a libguestfs path."
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:2300 ../src/guestfs-actions.pod:3352
8425 msgid "If unavailable this is returned as an empty string C<\"\">."
8426 msgstr ""
8427
8428 #. type: =item
8429 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3354
8430 msgid "C<app_trans_path>"
8431 msgstr ""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
8435 msgid ""
8436 "The install path translated into a libguestfs path.  If unavailable this is "
8437 "returned as an empty string C<\"\">."
8438 msgstr ""
8439
8440 #. type: =item
8441 #: ../fish/guestfish-actions.pod:2307 ../src/guestfs-actions.pod:3359
8442 msgid "C<app_publisher>"
8443 msgstr ""
8444
8445 #. type: textblock
8446 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3361
8447 msgid ""
8448 "The name of the publisher of the application, for package managers that use "
8449 "this.  If unavailable this is returned as an empty string C<\"\">."
8450 msgstr ""
8451
8452 #. type: =item
8453 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
8454 msgid "C<app_url>"
8455 msgstr ""
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:2315 ../src/guestfs-actions.pod:3367
8459 msgid ""
8460 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8461 "returned as an empty string C<\"\">."
8462 msgstr ""
8463
8464 #. type: =item
8465 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3370
8466 msgid "C<app_source_package>"
8467 msgstr ""
8468
8469 #. type: textblock
8470 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3372
8471 msgid ""
8472 "For packaging systems which support this, the name of the source package.  "
8473 "If unavailable this is returned as an empty string C<\"\">."
8474 msgstr ""
8475
8476 #. type: =item
8477 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3375
8478 msgid "C<app_summary>"
8479 msgstr ""
8480
8481 #. type: textblock
8482 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3377
8483 msgid ""
8484 "A short (usually one line) description of the application or package.  If "
8485 "unavailable this is returned as an empty string C<\"\">."
8486 msgstr ""
8487
8488 #. type: =item
8489 #: ../fish/guestfish-actions.pod:2328 ../src/guestfs-actions.pod:3380
8490 msgid "C<app_description>"
8491 msgstr ""
8492
8493 #. type: textblock
8494 #: ../fish/guestfish-actions.pod:2330 ../src/guestfs-actions.pod:3382
8495 msgid ""
8496 "A longer description of the application or package.  If unavailable this is "
8497 "returned as an empty string C<\"\">."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:2337
8502 msgid "inspect-os"
8503 msgstr ""
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:2339
8507 #, no-wrap
8508 msgid ""
8509 " inspect-os\n"
8510 "\n"
8511 msgstr ""
8512
8513 #. type: textblock
8514 #: ../fish/guestfish-actions.pod:2341 ../src/guestfs-actions.pod:3400
8515 msgid ""
8516 "This function uses other libguestfs functions and certain heuristics to "
8517 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8518 "for operating systems."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
8523 msgid "The list returned is empty if no operating systems were found."
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3406
8528 msgid ""
8529 "If one operating system was found, then this returns a list with a single "
8530 "element, which is the name of the root filesystem of this operating system.  "
8531 "It is also possible for this function to return a list containing more than "
8532 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8533 "element being the root filesystem of one of the operating systems."
8534 msgstr ""
8535
8536 #. type: textblock
8537 #: ../fish/guestfish-actions.pod:2354
8538 msgid ""
8539 "You can pass the root string(s) returned to other L</inspect-get-*> "
8540 "functions in order to query further information about each operating system, "
8541 "such as the name and version."
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:2359
8546 msgid ""
8547 "This function uses other libguestfs features such as L</mount-ro> and "
8548 "L</umount-all> in order to mount and unmount filesystems and look at the "
8549 "contents.  This should be called with no disks currently mounted.  The "
8550 "function may also use Augeas, so any existing Augeas handle will be closed."
8551 msgstr ""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3424
8555 msgid ""
8556 "This function cannot decrypt encrypted disks.  The caller must do that first "
8557 "(supplying the necessary keys) if the disk is encrypted."
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2569 ../fish/guestfish-actions.pod:2628
8562 msgid "See also L</list-filesystems>."
8563 msgstr ""
8564
8565 #. type: =head2
8566 #: ../fish/guestfish-actions.pod:2373
8567 msgid "is-blockdev"
8568 msgstr ""
8569
8570 #. type: verbatim
8571 #: ../fish/guestfish-actions.pod:2375
8572 #, no-wrap
8573 msgid ""
8574 " is-blockdev path\n"
8575 "\n"
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3444
8580 msgid ""
8581 "This returns C<true> if and only if there is a block device with the given "
8582 "C<path> name."
8583 msgstr ""
8584
8585 #. type: textblock
8586 #: ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2417 ../fish/guestfish-actions.pod:2426 ../fish/guestfish-actions.pod:2436 ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2479
8587 msgid "See also L</stat>."
8588 msgstr ""
8589
8590 #. type: =head2
8591 #: ../fish/guestfish-actions.pod:2382
8592 msgid "is-busy"
8593 msgstr ""
8594
8595 #. type: verbatim
8596 #: ../fish/guestfish-actions.pod:2384
8597 #, no-wrap
8598 msgid ""
8599 " is-busy\n"
8600 "\n"
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3458
8605 msgid ""
8606 "This returns true iff this handle is busy processing a command (in the "
8607 "C<BUSY> state)."
8608 msgstr ""
8609
8610 #. type: =head2
8611 #: ../fish/guestfish-actions.pod:2391
8612 msgid "is-chardev"
8613 msgstr ""
8614
8615 #. type: verbatim
8616 #: ../fish/guestfish-actions.pod:2393
8617 #, no-wrap
8618 msgid ""
8619 " is-chardev path\n"
8620 "\n"
8621 msgstr ""
8622
8623 #. type: textblock
8624 #: ../fish/guestfish-actions.pod:2395 ../src/guestfs-actions.pod:3473
8625 msgid ""
8626 "This returns C<true> if and only if there is a character device with the "
8627 "given C<path> name."
8628 msgstr ""
8629
8630 #. type: =head2
8631 #: ../fish/guestfish-actions.pod:2400
8632 msgid "is-config"
8633 msgstr ""
8634
8635 #. type: verbatim
8636 #: ../fish/guestfish-actions.pod:2402
8637 #, no-wrap
8638 msgid ""
8639 " is-config\n"
8640 "\n"
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3487
8645 msgid ""
8646 "This returns true iff this handle is being configured (in the C<CONFIG> "
8647 "state)."
8648 msgstr ""
8649
8650 #. type: =head2
8651 #: ../fish/guestfish-actions.pod:2409
8652 msgid "is-dir"
8653 msgstr ""
8654
8655 #. type: verbatim
8656 #: ../fish/guestfish-actions.pod:2411
8657 #, no-wrap
8658 msgid ""
8659 " is-dir path\n"
8660 "\n"
8661 msgstr ""
8662
8663 #. type: textblock
8664 #: ../fish/guestfish-actions.pod:2413 ../src/guestfs-actions.pod:3502
8665 msgid ""
8666 "This returns C<true> if and only if there is a directory with the given "
8667 "C<path> name.  Note that it returns false for other objects like files."
8668 msgstr ""
8669
8670 #. type: =head2
8671 #: ../fish/guestfish-actions.pod:2419
8672 msgid "is-fifo"
8673 msgstr ""
8674
8675 #. type: verbatim
8676 #: ../fish/guestfish-actions.pod:2421
8677 #, no-wrap
8678 msgid ""
8679 " is-fifo path\n"
8680 "\n"
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:2423 ../src/guestfs-actions.pod:3518
8685 msgid ""
8686 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8687 "given C<path> name."
8688 msgstr ""
8689
8690 #. type: =head2
8691 #: ../fish/guestfish-actions.pod:2428
8692 msgid "is-file"
8693 msgstr ""
8694
8695 #. type: verbatim
8696 #: ../fish/guestfish-actions.pod:2430
8697 #, no-wrap
8698 msgid ""
8699 " is-file path\n"
8700 "\n"
8701 msgstr ""
8702
8703 #. type: textblock
8704 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:3533
8705 msgid ""
8706 "This returns C<true> if and only if there is a regular file with the given "
8707 "C<path> name.  Note that it returns false for other objects like "
8708 "directories."
8709 msgstr ""
8710
8711 #. type: =head2
8712 #: ../fish/guestfish-actions.pod:2438
8713 msgid "is-launching"
8714 msgstr ""
8715
8716 #. type: verbatim
8717 #: ../fish/guestfish-actions.pod:2440
8718 #, no-wrap
8719 msgid ""
8720 " is-launching\n"
8721 "\n"
8722 msgstr ""
8723
8724 #. type: textblock
8725 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3548
8726 msgid ""
8727 "This returns true iff this handle is launching the subprocess (in the "
8728 "C<LAUNCHING> state)."
8729 msgstr ""
8730
8731 #. type: =head2
8732 #: ../fish/guestfish-actions.pod:2447
8733 msgid "is-lv"
8734 msgstr ""
8735
8736 #. type: verbatim
8737 #: ../fish/guestfish-actions.pod:2449
8738 #, no-wrap
8739 msgid ""
8740 " is-lv device\n"
8741 "\n"
8742 msgstr ""
8743
8744 #. type: textblock
8745 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3563
8746 msgid ""
8747 "This command tests whether C<device> is a logical volume, and returns true "
8748 "iff this is the case."
8749 msgstr ""
8750
8751 #. type: =head2
8752 #: ../fish/guestfish-actions.pod:2454
8753 msgid "is-ready"
8754 msgstr ""
8755
8756 #. type: verbatim
8757 #: ../fish/guestfish-actions.pod:2456
8758 #, no-wrap
8759 msgid ""
8760 " is-ready\n"
8761 "\n"
8762 msgstr ""
8763
8764 #. type: textblock
8765 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3575
8766 msgid ""
8767 "This returns true iff this handle is ready to accept commands (in the "
8768 "C<READY> state)."
8769 msgstr ""
8770
8771 #. type: =head2
8772 #: ../fish/guestfish-actions.pod:2463
8773 msgid "is-socket"
8774 msgstr ""
8775
8776 #. type: verbatim
8777 #: ../fish/guestfish-actions.pod:2465
8778 #, no-wrap
8779 msgid ""
8780 " is-socket path\n"
8781 "\n"
8782 msgstr ""
8783
8784 #. type: textblock
8785 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3590
8786 msgid ""
8787 "This returns C<true> if and only if there is a Unix domain socket with the "
8788 "given C<path> name."
8789 msgstr ""
8790
8791 #. type: =head2
8792 #: ../fish/guestfish-actions.pod:2472
8793 msgid "is-symlink"
8794 msgstr ""
8795
8796 #. type: verbatim
8797 #: ../fish/guestfish-actions.pod:2474
8798 #, no-wrap
8799 msgid ""
8800 " is-symlink path\n"
8801 "\n"
8802 msgstr ""
8803
8804 #. type: textblock
8805 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3605
8806 msgid ""
8807 "This returns C<true> if and only if there is a symbolic link with the given "
8808 "C<path> name."
8809 msgstr ""
8810
8811 #. type: =head2
8812 #: ../fish/guestfish-actions.pod:2481
8813 msgid "is-zero"
8814 msgstr ""
8815
8816 #. type: verbatim
8817 #: ../fish/guestfish-actions.pod:2483
8818 #, no-wrap
8819 msgid ""
8820 " is-zero path\n"
8821 "\n"
8822 msgstr ""
8823
8824 #. type: textblock
8825 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3620
8826 msgid ""
8827 "This returns true iff the file exists and the file is empty or it contains "
8828 "all zero bytes."
8829 msgstr ""
8830
8831 #. type: =head2
8832 #: ../fish/guestfish-actions.pod:2488
8833 msgid "is-zero-device"
8834 msgstr ""
8835
8836 #. type: verbatim
8837 #: ../fish/guestfish-actions.pod:2490
8838 #, no-wrap
8839 msgid ""
8840 " is-zero-device device\n"
8841 "\n"
8842 msgstr ""
8843
8844 #. type: textblock
8845 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3633
8846 msgid "This returns true iff the device exists and contains all zero bytes."
8847 msgstr ""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3635
8851 msgid "Note that for large devices this can take a long time to run."
8852 msgstr ""
8853
8854 #. type: =head2
8855 #: ../fish/guestfish-actions.pod:2496
8856 msgid "kill-subprocess"
8857 msgstr ""
8858
8859 #. type: verbatim
8860 #: ../fish/guestfish-actions.pod:2498
8861 #, no-wrap
8862 msgid ""
8863 " kill-subprocess\n"
8864 "\n"
8865 msgstr ""
8866
8867 #. type: textblock
8868 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3646
8869 msgid "This kills the qemu subprocess.  You should never need to call this."
8870 msgstr ""
8871
8872 #. type: =head2
8873 #: ../fish/guestfish-actions.pod:2502
8874 msgid "launch"
8875 msgstr ""
8876
8877 #. type: =head2
8878 #: ../fish/guestfish-actions.pod:2504
8879 msgid "run"
8880 msgstr ""
8881
8882 #. type: verbatim
8883 #: ../fish/guestfish-actions.pod:2506
8884 #, no-wrap
8885 msgid ""
8886 " launch\n"
8887 "\n"
8888 msgstr ""
8889
8890 #. type: textblock
8891 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3657
8892 msgid ""
8893 "Internally libguestfs is implemented by running a virtual machine using "
8894 "L<qemu(1)>."
8895 msgstr ""
8896
8897 #. type: textblock
8898 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3660
8899 msgid ""
8900 "You should call this after configuring the handle (eg. adding drives) but "
8901 "before performing any actions."
8902 msgstr ""
8903
8904 #. type: =head2
8905 #: ../fish/guestfish-actions.pod:2514
8906 msgid "lchown"
8907 msgstr ""
8908
8909 #. type: verbatim
8910 #: ../fish/guestfish-actions.pod:2516
8911 #, no-wrap
8912 msgid ""
8913 " lchown owner group path\n"
8914 "\n"
8915 msgstr ""
8916
8917 #. type: textblock
8918 #: ../fish/guestfish-actions.pod:2518
8919 msgid ""
8920 "Change the file owner to C<owner> and group to C<group>.  This is like "
8921 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
8922 "the target."
8923 msgstr ""
8924
8925 #. type: =head2
8926 #: ../fish/guestfish-actions.pod:2526
8927 msgid "lgetxattr"
8928 msgstr ""
8929
8930 #. type: verbatim
8931 #: ../fish/guestfish-actions.pod:2528
8932 #, no-wrap
8933 msgid ""
8934 " lgetxattr path name\n"
8935 "\n"
8936 msgstr ""
8937
8938 #. type: textblock
8939 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3700
8940 msgid ""
8941 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
8942 "is a symlink, then this call returns an extended attribute from the symlink."
8943 msgstr ""
8944
8945 #. type: textblock
8946 #: ../fish/guestfish-actions.pod:2544
8947 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
8948 msgstr ""
8949
8950 #. type: =head2
8951 #: ../fish/guestfish-actions.pod:2546
8952 msgid "lgetxattrs"
8953 msgstr ""
8954
8955 #. type: verbatim
8956 #: ../fish/guestfish-actions.pod:2548
8957 #, no-wrap
8958 msgid ""
8959 " lgetxattrs path\n"
8960 "\n"
8961 msgstr ""
8962
8963 #. type: textblock
8964 #: ../fish/guestfish-actions.pod:2550
8965 msgid ""
8966 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
8967 "it returns the extended attributes of the link itself."
8968 msgstr ""
8969
8970 #. type: =head2
8971 #: ../fish/guestfish-actions.pod:2554
8972 msgid "list-9p"
8973 msgstr ""
8974
8975 #. type: verbatim
8976 #: ../fish/guestfish-actions.pod:2556
8977 #, no-wrap
8978 msgid ""
8979 " list-9p\n"
8980 "\n"
8981 msgstr ""
8982
8983 #. type: textblock
8984 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3743
8985 msgid ""
8986 "List all 9p filesystems attached to the guest.  A list of mount tags is "
8987 "returned."
8988 msgstr ""
8989
8990 #. type: =head2
8991 #: ../fish/guestfish-actions.pod:2561
8992 msgid "list-devices"
8993 msgstr ""
8994
8995 #. type: verbatim
8996 #: ../fish/guestfish-actions.pod:2563
8997 #, no-wrap
8998 msgid ""
8999 " list-devices\n"
9000 "\n"
9001 msgstr ""
9002
9003 #. type: textblock
9004 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3757
9005 msgid "List all the block devices."
9006 msgstr ""
9007
9008 #. type: textblock
9009 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3759
9010 msgid "The full block device names are returned, eg. C</dev/sda>."
9011 msgstr ""
9012
9013 #. type: =head2
9014 #: ../fish/guestfish-actions.pod:2571
9015 msgid "list-dm-devices"
9016 msgstr ""
9017
9018 #. type: verbatim
9019 #: ../fish/guestfish-actions.pod:2573
9020 #, no-wrap
9021 msgid ""
9022 " list-dm-devices\n"
9023 "\n"
9024 msgstr ""
9025
9026 #. type: textblock
9027 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3774
9028 msgid "List all device mapper devices."
9029 msgstr ""
9030
9031 #. type: textblock
9032 #: ../fish/guestfish-actions.pod:2577
9033 msgid ""
9034 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9035 "previous call to L</luks-open>."
9036 msgstr ""
9037
9038 #. type: textblock
9039 #: ../fish/guestfish-actions.pod:2580
9040 msgid ""
9041 "Device mapper devices which correspond to logical volumes are I<not> "
9042 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9043 msgstr ""
9044
9045 #. type: =head2
9046 #: ../fish/guestfish-actions.pod:2584
9047 msgid "list-filesystems"
9048 msgstr ""
9049
9050 #. type: verbatim
9051 #: ../fish/guestfish-actions.pod:2586
9052 #, no-wrap
9053 msgid ""
9054 " list-filesystems\n"
9055 "\n"
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:2588 ../src/guestfs-actions.pod:3794
9060 msgid ""
9061 "This inspection command looks for filesystems on partitions, block devices "
9062 "and logical volumes, returning a list of devices containing filesystems and "
9063 "their type."
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
9068 msgid ""
9069 "The return value is a hash, where the keys are the devices containing "
9070 "filesystems, and the values are the filesystem types.  For example:"
9071 msgstr ""
9072
9073 #. type: verbatim
9074 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
9075 #, no-wrap
9076 msgid ""
9077 " \"/dev/sda1\" => \"ntfs\"\n"
9078 " \"/dev/sda2\" => \"ext2\"\n"
9079 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9080 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9081 "\n"
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3807
9086 msgid ""
9087 "The value can have the special value \"unknown\", meaning the content of the "
9088 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../fish/guestfish-actions.pod:2605
9093 msgid ""
9094 "This command runs other libguestfs commands, which might include L</mount> "
9095 "and L</umount>, and therefore you should use this soon after launch and only "
9096 "when nothing is mounted."
9097 msgstr ""
9098
9099 #. type: textblock
9100 #: ../fish/guestfish-actions.pod:2609
9101 msgid ""
9102 "Not all of the filesystems returned will be mountable.  In particular, swap "
9103 "partitions are returned in the list.  Also this command does not check that "
9104 "each filesystem found is valid and mountable, and some filesystems might be "
9105 "mountable but require special options.  Filesystems may not all belong to a "
9106 "single logical operating system (use L</inspect-os> to look for OSes)."
9107 msgstr ""
9108
9109 #. type: =head2
9110 #: ../fish/guestfish-actions.pod:2617
9111 msgid "list-partitions"
9112 msgstr ""
9113
9114 #. type: verbatim
9115 #: ../fish/guestfish-actions.pod:2619
9116 #, no-wrap
9117 msgid ""
9118 " list-partitions\n"
9119 "\n"
9120 msgstr ""
9121
9122 #. type: textblock
9123 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3836
9124 msgid "List all the partitions detected on all block devices."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3838
9129 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9130 msgstr ""
9131
9132 #. type: textblock
9133 #: ../fish/guestfish-actions.pod:2625
9134 msgid ""
9135 "This does not return logical volumes.  For that you will need to call "
9136 "L</lvs>."
9137 msgstr ""
9138
9139 #. type: =head2
9140 #: ../fish/guestfish-actions.pod:2630
9141 msgid "ll"
9142 msgstr ""
9143
9144 #. type: verbatim
9145 #: ../fish/guestfish-actions.pod:2632
9146 #, no-wrap
9147 msgid ""
9148 " ll directory\n"
9149 "\n"
9150 msgstr ""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:2634 ../src/guestfs-actions.pod:3857
9154 msgid ""
9155 "List the files in C<directory> (relative to the root directory, there is no "
9156 "cwd) in the format of 'ls -la'."
9157 msgstr ""
9158
9159 #. type: textblock
9160 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3860
9161 msgid ""
9162 "This command is mostly useful for interactive sessions.  It is I<not> "
9163 "intended that you try to parse the output string."
9164 msgstr ""
9165
9166 #. type: =head2
9167 #: ../fish/guestfish-actions.pod:2640
9168 msgid "ln"
9169 msgstr ""
9170
9171 #. type: verbatim
9172 #: ../fish/guestfish-actions.pod:2642
9173 #, no-wrap
9174 msgid ""
9175 " ln target linkname\n"
9176 "\n"
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:2644 ../src/guestfs-actions.pod:3875
9181 msgid "This command creates a hard link using the C<ln> command."
9182 msgstr ""
9183
9184 #. type: =head2
9185 #: ../fish/guestfish-actions.pod:2646
9186 msgid "ln-f"
9187 msgstr ""
9188
9189 #. type: verbatim
9190 #: ../fish/guestfish-actions.pod:2648
9191 #, no-wrap
9192 msgid ""
9193 " ln-f target linkname\n"
9194 "\n"
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:2650 ../src/guestfs-actions.pod:3888
9199 msgid ""
9200 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9201 "option removes the link (C<linkname>) if it exists already."
9202 msgstr ""
9203
9204 #. type: =head2
9205 #: ../fish/guestfish-actions.pod:2653
9206 msgid "ln-s"
9207 msgstr ""
9208
9209 #. type: verbatim
9210 #: ../fish/guestfish-actions.pod:2655
9211 #, no-wrap
9212 msgid ""
9213 " ln-s target linkname\n"
9214 "\n"
9215 msgstr ""
9216
9217 #. type: textblock
9218 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:3902
9219 msgid "This command creates a symbolic link using the C<ln -s> command."
9220 msgstr ""
9221
9222 #. type: =head2
9223 #: ../fish/guestfish-actions.pod:2659
9224 msgid "ln-sf"
9225 msgstr ""
9226
9227 #. type: verbatim
9228 #: ../fish/guestfish-actions.pod:2661
9229 #, no-wrap
9230 msgid ""
9231 " ln-sf target linkname\n"
9232 "\n"
9233 msgstr ""
9234
9235 #. type: textblock
9236 #: ../fish/guestfish-actions.pod:2663 ../src/guestfs-actions.pod:3915
9237 msgid ""
9238 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9239 "option removes the link (C<linkname>) if it exists already."
9240 msgstr ""
9241
9242 #. type: =head2
9243 #: ../fish/guestfish-actions.pod:2666
9244 msgid "lremovexattr"
9245 msgstr ""
9246
9247 #. type: verbatim
9248 #: ../fish/guestfish-actions.pod:2668
9249 #, no-wrap
9250 msgid ""
9251 " lremovexattr xattr path\n"
9252 "\n"
9253 msgstr ""
9254
9255 #. type: textblock
9256 #: ../fish/guestfish-actions.pod:2670
9257 msgid ""
9258 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9259 "it removes an extended attribute of the link itself."
9260 msgstr ""
9261
9262 #. type: =head2
9263 #: ../fish/guestfish-actions.pod:2674
9264 msgid "ls"
9265 msgstr ""
9266
9267 #. type: verbatim
9268 #: ../fish/guestfish-actions.pod:2676
9269 #, no-wrap
9270 msgid ""
9271 " ls directory\n"
9272 "\n"
9273 msgstr ""
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:2678 ../src/guestfs-actions.pod:3943
9277 msgid ""
9278 "List the files in C<directory> (relative to the root directory, there is no "
9279 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9280 "shown."
9281 msgstr ""
9282
9283 #. type: textblock
9284 #: ../fish/guestfish-actions.pod:2682
9285 msgid ""
9286 "This command is mostly useful for interactive sessions.  Programs should "
9287 "probably use L</readdir> instead."
9288 msgstr ""
9289
9290 #. type: =head2
9291 #: ../fish/guestfish-actions.pod:2685
9292 msgid "lsetxattr"
9293 msgstr ""
9294
9295 #. type: verbatim
9296 #: ../fish/guestfish-actions.pod:2687
9297 #, no-wrap
9298 msgid ""
9299 " lsetxattr xattr val vallen path\n"
9300 "\n"
9301 msgstr ""
9302
9303 #. type: textblock
9304 #: ../fish/guestfish-actions.pod:2689
9305 msgid ""
9306 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9307 "sets an extended attribute of the link itself."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:2693
9312 msgid "lstat"
9313 msgstr ""
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:2695
9317 #, no-wrap
9318 msgid ""
9319 " lstat path\n"
9320 "\n"
9321 msgstr ""
9322
9323 #. type: textblock
9324 #: ../fish/guestfish-actions.pod:2697 ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:6758
9325 msgid "Returns file information for the given C<path>."
9326 msgstr ""
9327
9328 #. type: textblock
9329 #: ../fish/guestfish-actions.pod:2699
9330 msgid ""
9331 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9332 "the link is stat-ed, not the file it refers to."
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:3985
9337 msgid "This is the same as the C<lstat(2)> system call."
9338 msgstr ""
9339
9340 #. type: =head2
9341 #: ../fish/guestfish-actions.pod:2705
9342 msgid "lstatlist"
9343 msgstr ""
9344
9345 #. type: verbatim
9346 #: ../fish/guestfish-actions.pod:2707
9347 #, no-wrap
9348 msgid ""
9349 " lstatlist path 'names ...'\n"
9350 "\n"
9351 msgstr ""
9352
9353 #. type: textblock
9354 #: ../fish/guestfish-actions.pod:2709
9355 msgid ""
9356 "This call allows you to perform the L</lstat> operation on multiple files, "
9357 "where all files are in the directory C<path>.  C<names> is the list of files "
9358 "from this directory."
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4004
9363 msgid ""
9364 "On return you get a list of stat structs, with a one-to-one correspondence "
9365 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9366 "then the C<ino> field of that structure is set to C<-1>."
9367 msgstr ""
9368
9369 #. type: textblock
9370 #: ../fish/guestfish-actions.pod:2718
9371 msgid ""
9372 "This call is intended for programs that want to efficiently list a directory "
9373 "contents without making many round-trips.  See also L</lxattrlist> for a "
9374 "similarly efficient call for getting extended attributes.  Very long "
9375 "directory listings might cause the protocol message size to be exceeded, "
9376 "causing this call to fail.  The caller must split up such requests into "
9377 "smaller groups of names."
9378 msgstr ""
9379
9380 #. type: =head2
9381 #: ../fish/guestfish-actions.pod:2726
9382 msgid "luks-add-key"
9383 msgstr ""
9384
9385 #. type: verbatim
9386 #: ../fish/guestfish-actions.pod:2728
9387 #, no-wrap
9388 msgid ""
9389 " luks-add-key device keyslot\n"
9390 "\n"
9391 msgstr ""
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:2730 ../src/guestfs-actions.pod:4032
9395 msgid ""
9396 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9397 "existing key, and is used to access the device.  C<newkey> is the new key to "
9398 "add.  C<keyslot> is the key slot that will be replaced."
9399 msgstr ""
9400
9401 #. type: textblock
9402 #: ../fish/guestfish-actions.pod:2735
9403 msgid ""
9404 "Note that if C<keyslot> already contains a key, then this command will "
9405 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9406 msgstr ""
9407
9408 #. type: textblock
9409 #: ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2761 ../fish/guestfish-actions.pod:2774 ../fish/guestfish-actions.pod:2788 ../fish/guestfish-actions.pod:2814 ../fish/guestfish-actions.pod:2824
9410 msgid ""
9411 "This command has one or more key or passphrase parameters.  Guestfish will "
9412 "prompt for these separately."
9413 msgstr ""
9414
9415 #. type: =head2
9416 #: ../fish/guestfish-actions.pod:2742
9417 msgid "luks-close"
9418 msgstr ""
9419
9420 #. type: verbatim
9421 #: ../fish/guestfish-actions.pod:2744
9422 #, no-wrap
9423 msgid ""
9424 " luks-close device\n"
9425 "\n"
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:2746
9430 msgid ""
9431 "This closes a LUKS device that was created earlier by L</luks-open> or "
9432 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9433 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9434 "underlying block device."
9435 msgstr ""
9436
9437 #. type: =head2
9438 #: ../fish/guestfish-actions.pod:2752
9439 msgid "luks-format"
9440 msgstr ""
9441
9442 #. type: verbatim
9443 #: ../fish/guestfish-actions.pod:2754
9444 #, no-wrap
9445 msgid ""
9446 " luks-format device keyslot\n"
9447 "\n"
9448 msgstr ""
9449
9450 #. type: textblock
9451 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4073
9452 msgid ""
9453 "This command erases existing data on C<device> and formats the device as a "
9454 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9455 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9456 msgstr ""
9457
9458 #. type: textblock
9459 #: ../fish/guestfish-actions.pod:2764 ../fish/guestfish-actions.pod:2777 ../fish/guestfish-actions.pod:2864 ../fish/guestfish-actions.pod:3525 ../fish/guestfish-actions.pod:4051 ../fish/guestfish-actions.pod:4376 ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:4421 ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4103 ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:5349 ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6595 ../src/guestfs-actions.pod:6628 ../src/guestfs-actions.pod:7834
9460 msgid ""
9461 "B<This command is dangerous.  Without careful use you can easily destroy all "
9462 "your data>."
9463 msgstr ""
9464
9465 #. type: =head2
9466 #: ../fish/guestfish-actions.pod:2767
9467 msgid "luks-format-cipher"
9468 msgstr ""
9469
9470 #. type: verbatim
9471 #: ../fish/guestfish-actions.pod:2769
9472 #, no-wrap
9473 msgid ""
9474 " luks-format-cipher device keyslot cipher\n"
9475 "\n"
9476 msgstr ""
9477
9478 #. type: textblock
9479 #: ../fish/guestfish-actions.pod:2771
9480 msgid ""
9481 "This command is the same as L</luks-format> but it also allows you to set "
9482 "the C<cipher> used."
9483 msgstr ""
9484
9485 #. type: =head2
9486 #: ../fish/guestfish-actions.pod:2780
9487 msgid "luks-kill-slot"
9488 msgstr ""
9489
9490 #. type: verbatim
9491 #: ../fish/guestfish-actions.pod:2782
9492 #, no-wrap
9493 msgid ""
9494 " luks-kill-slot device keyslot\n"
9495 "\n"
9496 msgstr ""
9497
9498 #. type: textblock
9499 #: ../fish/guestfish-actions.pod:2784 ../src/guestfs-actions.pod:4120
9500 msgid ""
9501 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9502 "device C<device>.  C<key> must be one of the I<other> keys."
9503 msgstr ""
9504
9505 #. type: =head2
9506 #: ../fish/guestfish-actions.pod:2791
9507 msgid "luks-open"
9508 msgstr ""
9509
9510 #. type: verbatim
9511 #: ../fish/guestfish-actions.pod:2793
9512 #, no-wrap
9513 msgid ""
9514 " luks-open device mapname\n"
9515 "\n"
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:2795 ../src/guestfs-actions.pod:4140
9520 msgid ""
9521 "This command opens a block device which has been encrypted according to the "
9522 "Linux Unified Key Setup (LUKS) standard."
9523 msgstr ""
9524
9525 #. type: textblock
9526 #: ../fish/guestfish-actions.pod:2798 ../src/guestfs-actions.pod:4143
9527 msgid "C<device> is the encrypted block device or partition."
9528 msgstr ""
9529
9530 #. type: textblock
9531 #: ../fish/guestfish-actions.pod:2800 ../src/guestfs-actions.pod:4145
9532 msgid ""
9533 "The caller must supply one of the keys associated with the LUKS block "
9534 "device, in the C<key> parameter."
9535 msgstr ""
9536
9537 #. type: textblock
9538 #: ../fish/guestfish-actions.pod:2803 ../src/guestfs-actions.pod:4148
9539 msgid ""
9540 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9541 "writes to this block device are decrypted from and encrypted to the "
9542 "underlying C<device> respectively."
9543 msgstr ""
9544
9545 #. type: textblock
9546 #: ../fish/guestfish-actions.pod:2807
9547 msgid ""
9548 "If this block device contains LVM volume groups, then calling L</vgscan> "
9549 "followed by L</vg-activate-all> will make them visible."
9550 msgstr ""
9551
9552 #. type: textblock
9553 #: ../fish/guestfish-actions.pod:2811
9554 msgid "Use L</list-dm-devices> to list all device mapper devices."
9555 msgstr ""
9556
9557 #. type: =head2
9558 #: ../fish/guestfish-actions.pod:2817
9559 msgid "luks-open-ro"
9560 msgstr ""
9561
9562 #. type: verbatim
9563 #: ../fish/guestfish-actions.pod:2819
9564 #, no-wrap
9565 msgid ""
9566 " luks-open-ro device mapname\n"
9567 "\n"
9568 msgstr ""
9569
9570 #. type: textblock
9571 #: ../fish/guestfish-actions.pod:2821
9572 msgid ""
9573 "This is the same as L</luks-open> except that a read-only mapping is "
9574 "created."
9575 msgstr ""
9576
9577 #. type: =head2
9578 #: ../fish/guestfish-actions.pod:2827
9579 msgid "lvcreate"
9580 msgstr ""
9581
9582 #. type: verbatim
9583 #: ../fish/guestfish-actions.pod:2829
9584 #, no-wrap
9585 msgid ""
9586 " lvcreate logvol volgroup mbytes\n"
9587 "\n"
9588 msgstr ""
9589
9590 #. type: textblock
9591 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4194
9592 msgid ""
9593 "This creates an LVM logical volume called C<logvol> on the volume group "
9594 "C<volgroup>, with C<size> megabytes."
9595 msgstr ""
9596
9597 #. type: =head2
9598 #: ../fish/guestfish-actions.pod:2834
9599 msgid "lvm-canonical-lv-name"
9600 msgstr ""
9601
9602 #. type: verbatim
9603 #: ../fish/guestfish-actions.pod:2836
9604 #, no-wrap
9605 msgid ""
9606 " lvm-canonical-lv-name lvname\n"
9607 "\n"
9608 msgstr ""
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:2838 ../src/guestfs-actions.pod:4207
9612 msgid ""
9613 "This converts alternative naming schemes for LVs that you might find to the "
9614 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9615 "C</dev/VG/LV>."
9616 msgstr ""
9617
9618 #. type: textblock
9619 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
9620 msgid ""
9621 "This command returns an error if the C<lvname> parameter does not refer to a "
9622 "logical volume."
9623 msgstr ""
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2845
9627 msgid "See also L</is-lv>."
9628 msgstr ""
9629
9630 #. type: =head2
9631 #: ../fish/guestfish-actions.pod:2847
9632 msgid "lvm-clear-filter"
9633 msgstr ""
9634
9635 #. type: verbatim
9636 #: ../fish/guestfish-actions.pod:2849
9637 #, no-wrap
9638 msgid ""
9639 " lvm-clear-filter\n"
9640 "\n"
9641 msgstr ""
9642
9643 #. type: textblock
9644 #: ../fish/guestfish-actions.pod:2851
9645 msgid ""
9646 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9647 "block device."
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../fish/guestfish-actions.pod:2854 ../fish/guestfish-actions.pod:2885 ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4271
9652 msgid "This command also clears the LVM cache and performs a volume group scan."
9653 msgstr ""
9654
9655 #. type: =head2
9656 #: ../fish/guestfish-actions.pod:2857
9657 msgid "lvm-remove-all"
9658 msgstr ""
9659
9660 #. type: verbatim
9661 #: ../fish/guestfish-actions.pod:2859
9662 #, no-wrap
9663 msgid ""
9664 " lvm-remove-all\n"
9665 "\n"
9666 msgstr ""
9667
9668 #. type: textblock
9669 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4241
9670 msgid ""
9671 "This command removes all LVM logical volumes, volume groups and physical "
9672 "volumes."
9673 msgstr ""
9674
9675 #. type: =head2
9676 #: ../fish/guestfish-actions.pod:2867
9677 msgid "lvm-set-filter"
9678 msgstr ""
9679
9680 #. type: verbatim
9681 #: ../fish/guestfish-actions.pod:2869
9682 #, no-wrap
9683 msgid ""
9684 " lvm-set-filter 'devices ...'\n"
9685 "\n"
9686 msgstr ""
9687
9688 #. type: textblock
9689 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4257
9690 msgid ""
9691 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9692 "block devices in the list C<devices>, and will ignore all other attached "
9693 "block devices."
9694 msgstr ""
9695
9696 #. type: textblock
9697 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
9698 msgid ""
9699 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9700 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9701 "there are two types of duplication possible: either cloned PVs/VGs which "
9702 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9703 "same name.  In normal operation you cannot create this situation, but you "
9704 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9705 "inside the LVM metadata."
9706 msgstr ""
9707
9708 #. type: textblock
9709 #: ../fish/guestfish-actions.pod:2888 ../src/guestfs-actions.pod:4274
9710 msgid "You can filter whole block devices or individual partitions."
9711 msgstr ""
9712
9713 #. type: textblock
9714 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4276
9715 msgid ""
9716 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9717 "filesystem), even if you are not filtering out that VG."
9718 msgstr ""
9719
9720 #. type: =head2
9721 #: ../fish/guestfish-actions.pod:2894
9722 msgid "lvremove"
9723 msgstr ""
9724
9725 #. type: verbatim
9726 #: ../fish/guestfish-actions.pod:2896
9727 #, no-wrap
9728 msgid ""
9729 " lvremove device\n"
9730 "\n"
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:2898 ../src/guestfs-actions.pod:4290
9735 msgid ""
9736 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9737 "LV, such as C</dev/VG/LV>."
9738 msgstr ""
9739
9740 #. type: textblock
9741 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4293
9742 msgid ""
9743 "You can also remove all LVs in a volume group by specifying the VG name, "
9744 "C</dev/VG>."
9745 msgstr ""
9746
9747 #. type: =head2
9748 #: ../fish/guestfish-actions.pod:2904
9749 msgid "lvrename"
9750 msgstr ""
9751
9752 #. type: verbatim
9753 #: ../fish/guestfish-actions.pod:2906
9754 #, no-wrap
9755 msgid ""
9756 " lvrename logvol newlogvol\n"
9757 "\n"
9758 msgstr ""
9759
9760 #. type: textblock
9761 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4307
9762 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9763 msgstr ""
9764
9765 #. type: =head2
9766 #: ../fish/guestfish-actions.pod:2910
9767 msgid "lvresize"
9768 msgstr ""
9769
9770 #. type: verbatim
9771 #: ../fish/guestfish-actions.pod:2912
9772 #, no-wrap
9773 msgid ""
9774 " lvresize device mbytes\n"
9775 "\n"
9776 msgstr ""
9777
9778 #. type: textblock
9779 #: ../fish/guestfish-actions.pod:2914 ../src/guestfs-actions.pod:4320
9780 msgid ""
9781 "This resizes (expands or shrinks) an existing LVM logical volume to "
9782 "C<mbytes>.  When reducing, data in the reduced part is lost."
9783 msgstr ""
9784
9785 #. type: =head2
9786 #: ../fish/guestfish-actions.pod:2918
9787 msgid "lvresize-free"
9788 msgstr ""
9789
9790 #. type: verbatim
9791 #: ../fish/guestfish-actions.pod:2920
9792 #, no-wrap
9793 msgid ""
9794 " lvresize-free lv percent\n"
9795 "\n"
9796 msgstr ""
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4335
9800 msgid ""
9801 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9802 "remaining free space in the volume group.  Commonly you would call this with "
9803 "pc = 100 which expands the logical volume as much as possible, using all "
9804 "remaining free space in the volume group."
9805 msgstr ""
9806
9807 #. type: =head2
9808 #: ../fish/guestfish-actions.pod:2928
9809 msgid "lvs"
9810 msgstr ""
9811
9812 #. type: verbatim
9813 #: ../fish/guestfish-actions.pod:2930
9814 #, no-wrap
9815 msgid ""
9816 " lvs\n"
9817 "\n"
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:2932 ../src/guestfs-actions.pod:4350
9822 msgid ""
9823 "List all the logical volumes detected.  This is the equivalent of the "
9824 "L<lvs(8)> command."
9825 msgstr ""
9826
9827 #. type: textblock
9828 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4353
9829 msgid ""
9830 "This returns a list of the logical volume device names "
9831 "(eg. C</dev/VolGroup00/LogVol00>)."
9832 msgstr ""
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:2938
9836 msgid "See also L</lvs-full>, L</list-filesystems>."
9837 msgstr ""
9838
9839 #. type: =head2
9840 #: ../fish/guestfish-actions.pod:2940
9841 msgid "lvs-full"
9842 msgstr ""
9843
9844 #. type: verbatim
9845 #: ../fish/guestfish-actions.pod:2942
9846 #, no-wrap
9847 msgid ""
9848 " lvs-full\n"
9849 "\n"
9850 msgstr ""
9851
9852 #. type: textblock
9853 #: ../fish/guestfish-actions.pod:2944 ../src/guestfs-actions.pod:4369
9854 msgid ""
9855 "List all the logical volumes detected.  This is the equivalent of the "
9856 "L<lvs(8)> command.  The \"full\" version includes all fields."
9857 msgstr ""
9858
9859 #. type: =head2
9860 #: ../fish/guestfish-actions.pod:2947
9861 msgid "lvuuid"
9862 msgstr ""
9863
9864 #. type: verbatim
9865 #: ../fish/guestfish-actions.pod:2949
9866 #, no-wrap
9867 msgid ""
9868 " lvuuid device\n"
9869 "\n"
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4384
9874 msgid "This command returns the UUID of the LVM LV C<device>."
9875 msgstr ""
9876
9877 #. type: =head2
9878 #: ../fish/guestfish-actions.pod:2953
9879 msgid "lxattrlist"
9880 msgstr ""
9881
9882 #. type: verbatim
9883 #: ../fish/guestfish-actions.pod:2955
9884 #, no-wrap
9885 msgid ""
9886 " lxattrlist path 'names ...'\n"
9887 "\n"
9888 msgstr ""
9889
9890 #. type: textblock
9891 #: ../fish/guestfish-actions.pod:2957 ../src/guestfs-actions.pod:4398
9892 msgid ""
9893 "This call allows you to get the extended attributes of multiple files, where "
9894 "all files are in the directory C<path>.  C<names> is the list of files from "
9895 "this directory."
9896 msgstr ""
9897
9898 #. type: textblock
9899 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
9900 msgid ""
9901 "On return you get a flat list of xattr structs which must be interpreted "
9902 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9903 "C<attrval> in this struct is zero-length to indicate there was an error "
9904 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9905 "number (the number of following attributes for this file, which could be "
9906 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9907 "attributes for the first named file.  This repeats for the second and "
9908 "subsequent files."
9909 msgstr ""
9910
9911 #. type: textblock
9912 #: ../fish/guestfish-actions.pod:2971
9913 msgid ""
9914 "This call is intended for programs that want to efficiently list a directory "
9915 "contents without making many round-trips.  See also L</lstatlist> for a "
9916 "similarly efficient call for getting standard stats.  Very long directory "
9917 "listings might cause the protocol message size to be exceeded, causing this "
9918 "call to fail.  The caller must split up such requests into smaller groups of "
9919 "names."
9920 msgstr ""
9921
9922 #. type: =head2
9923 #: ../fish/guestfish-actions.pod:2979
9924 msgid "mkdir"
9925 msgstr ""
9926
9927 #. type: verbatim
9928 #: ../fish/guestfish-actions.pod:2981
9929 #, no-wrap
9930 msgid ""
9931 " mkdir path\n"
9932 "\n"
9933 msgstr ""
9934
9935 #. type: textblock
9936 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4432
9937 msgid "Create a directory named C<path>."
9938 msgstr ""
9939
9940 #. type: =head2
9941 #: ../fish/guestfish-actions.pod:2985
9942 msgid "mkdir-mode"
9943 msgstr ""
9944
9945 #. type: verbatim
9946 #: ../fish/guestfish-actions.pod:2987
9947 #, no-wrap
9948 msgid ""
9949 " mkdir-mode path mode\n"
9950 "\n"
9951 msgstr ""
9952
9953 #. type: textblock
9954 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4445
9955 msgid ""
9956 "This command creates a directory, setting the initial permissions of the "
9957 "directory to C<mode>."
9958 msgstr ""
9959
9960 #. type: textblock
9961 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4448
9962 msgid ""
9963 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9964 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9965 "other ways."
9966 msgstr ""
9967
9968 #. type: textblock
9969 #: ../fish/guestfish-actions.pod:2996
9970 msgid "See also L</mkdir>, L</umask>"
9971 msgstr ""
9972
9973 #. type: =head2
9974 #: ../fish/guestfish-actions.pod:2998
9975 msgid "mkdir-p"
9976 msgstr ""
9977
9978 #. type: verbatim
9979 #: ../fish/guestfish-actions.pod:3000
9980 #, no-wrap
9981 msgid ""
9982 " mkdir-p path\n"
9983 "\n"
9984 msgstr ""
9985
9986 #. type: textblock
9987 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4464
9988 msgid ""
9989 "Create a directory named C<path>, creating any parent directories as "
9990 "necessary.  This is like the C<mkdir -p> shell command."
9991 msgstr ""
9992
9993 #. type: =head2
9994 #: ../fish/guestfish-actions.pod:3005
9995 msgid "mkdtemp"
9996 msgstr ""
9997
9998 #. type: verbatim
9999 #: ../fish/guestfish-actions.pod:3007
10000 #, no-wrap
10001 msgid ""
10002 " mkdtemp template\n"
10003 "\n"
10004 msgstr ""
10005
10006 #. type: textblock
10007 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4477
10008 msgid ""
10009 "This command creates a temporary directory.  The C<template> parameter "
10010 "should be a full pathname for the temporary directory name with the final "
10011 "six characters being \"XXXXXX\"."
10012 msgstr ""
10013
10014 #. type: textblock
10015 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4482
10016 msgid ""
10017 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
10018 "being suitable for Windows filesystems."
10019 msgstr ""
10020
10021 #. type: textblock
10022 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4485
10023 msgid "The name of the temporary directory that was created is returned."
10024 msgstr ""
10025
10026 #. type: textblock
10027 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4488
10028 msgid "The temporary directory is created with mode 0700 and is owned by root."
10029 msgstr ""
10030
10031 #. type: textblock
10032 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4491
10033 msgid ""
10034 "The caller is responsible for deleting the temporary directory and its "
10035 "contents after use."
10036 msgstr ""
10037
10038 #. type: textblock
10039 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4494
10040 msgid "See also: L<mkdtemp(3)>"
10041 msgstr ""
10042
10043 #. type: =head2
10044 #: ../fish/guestfish-actions.pod:3028
10045 msgid "mke2fs-J"
10046 msgstr ""
10047
10048 #. type: verbatim
10049 #: ../fish/guestfish-actions.pod:3030
10050 #, no-wrap
10051 msgid ""
10052 " mke2fs-J fstype blocksize device journal\n"
10053 "\n"
10054 msgstr ""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:3032 ../src/guestfs-actions.pod:4510
10058 msgid ""
10059 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10060 "C<journal>.  It is equivalent to the command:"
10061 msgstr ""
10062
10063 #. type: verbatim
10064 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
10065 #, no-wrap
10066 msgid ""
10067 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10068 "\n"
10069 msgstr ""
10070
10071 #. type: textblock
10072 #: ../fish/guestfish-actions.pod:3038
10073 msgid "See also L</mke2journal>."
10074 msgstr ""
10075
10076 #. type: =head2
10077 #: ../fish/guestfish-actions.pod:3040
10078 msgid "mke2fs-JL"
10079 msgstr ""
10080
10081 #. type: verbatim
10082 #: ../fish/guestfish-actions.pod:3042
10083 #, no-wrap
10084 msgid ""
10085 " mke2fs-JL fstype blocksize device label\n"
10086 "\n"
10087 msgstr ""
10088
10089 #. type: textblock
10090 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4531
10091 msgid ""
10092 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10093 "the journal labeled C<label>."
10094 msgstr ""
10095
10096 #. type: textblock
10097 #: ../fish/guestfish-actions.pod:3047
10098 msgid "See also L</mke2journal-L>."
10099 msgstr ""
10100
10101 #. type: =head2
10102 #: ../fish/guestfish-actions.pod:3049
10103 msgid "mke2fs-JU"
10104 msgstr ""
10105
10106 #. type: verbatim
10107 #: ../fish/guestfish-actions.pod:3051
10108 #, no-wrap
10109 msgid ""
10110 " mke2fs-JU fstype blocksize device uuid\n"
10111 "\n"
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4549
10116 msgid ""
10117 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10118 "the journal with UUID C<uuid>."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:3056
10123 msgid "See also L</mke2journal-U>."
10124 msgstr ""
10125
10126 #. type: =head2
10127 #: ../fish/guestfish-actions.pod:3058
10128 msgid "mke2journal"
10129 msgstr ""
10130
10131 #. type: verbatim
10132 #: ../fish/guestfish-actions.pod:3060
10133 #, no-wrap
10134 msgid ""
10135 " mke2journal blocksize device\n"
10136 "\n"
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4565
10141 msgid ""
10142 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10143 "command:"
10144 msgstr ""
10145
10146 #. type: verbatim
10147 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4568
10148 #, no-wrap
10149 msgid ""
10150 " mke2fs -O journal_dev -b blocksize device\n"
10151 "\n"
10152 msgstr ""
10153
10154 #. type: =head2
10155 #: ../fish/guestfish-actions.pod:3067
10156 msgid "mke2journal-L"
10157 msgstr ""
10158
10159 #. type: verbatim
10160 #: ../fish/guestfish-actions.pod:3069
10161 #, no-wrap
10162 msgid ""
10163 " mke2journal-L blocksize label device\n"
10164 "\n"
10165 msgstr ""
10166
10167 #. type: textblock
10168 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4582
10169 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10170 msgstr ""
10171
10172 #. type: =head2
10173 #: ../fish/guestfish-actions.pod:3073
10174 msgid "mke2journal-U"
10175 msgstr ""
10176
10177 #. type: verbatim
10178 #: ../fish/guestfish-actions.pod:3075
10179 #, no-wrap
10180 msgid ""
10181 " mke2journal-U blocksize uuid device\n"
10182 "\n"
10183 msgstr ""
10184
10185 #. type: textblock
10186 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4596
10187 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10188 msgstr ""
10189
10190 #. type: =head2
10191 #: ../fish/guestfish-actions.pod:3079
10192 msgid "mkfifo"
10193 msgstr ""
10194
10195 #. type: verbatim
10196 #: ../fish/guestfish-actions.pod:3081
10197 #, no-wrap
10198 msgid ""
10199 " mkfifo mode path\n"
10200 "\n"
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:3083
10205 msgid ""
10206 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10207 "is just a convenient wrapper around L</mknod>."
10208 msgstr ""
10209
10210 #. type: =head2
10211 #: ../fish/guestfish-actions.pod:3089
10212 msgid "mkfs"
10213 msgstr ""
10214
10215 #. type: verbatim
10216 #: ../fish/guestfish-actions.pod:3091
10217 #, no-wrap
10218 msgid ""
10219 " mkfs fstype device\n"
10220 "\n"
10221 msgstr ""
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4626
10225 msgid ""
10226 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10227 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10228 msgstr ""
10229
10230 #. type: =head2
10231 #: ../fish/guestfish-actions.pod:3097
10232 msgid "mkfs-b"
10233 msgstr ""
10234
10235 #. type: verbatim
10236 #: ../fish/guestfish-actions.pod:3099
10237 #, no-wrap
10238 msgid ""
10239 " mkfs-b fstype blocksize device\n"
10240 "\n"
10241 msgstr ""
10242
10243 #. type: textblock
10244 #: ../fish/guestfish-actions.pod:3101
10245 msgid ""
10246 "This call is similar to L</mkfs>, but it allows you to control the block "
10247 "size of the resulting filesystem.  Supported block sizes depend on the "
10248 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10249 msgstr ""
10250
10251 #. type: textblock
10252 #: ../fish/guestfish-actions.pod:3106 ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4692
10253 msgid ""
10254 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10255 "cluster size."
10256 msgstr ""
10257
10258 #. type: textblock
10259 #: ../fish/guestfish-actions.pod:3109
10260 msgid ""
10261 "This function is deprecated.  In new code, use the L</mkfs_opts> call "
10262 "instead."
10263 msgstr ""
10264
10265 #. type: =head2
10266 #: ../fish/guestfish-actions.pod:3116
10267 msgid "mkfs-opts"
10268 msgstr ""
10269
10270 #. type: verbatim
10271 #: ../fish/guestfish-actions.pod:3118
10272 #, no-wrap
10273 msgid ""
10274 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10275 "[sectorsize:..]\n"
10276 "\n"
10277 msgstr ""
10278
10279 #. type: textblock
10280 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10281 msgid ""
10282 "This function creates a filesystem on C<device>.  The filesystem type is "
10283 "C<fstype>, for example C<ext3>."
10284 msgstr ""
10285
10286 #. type: =item
10287 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10288 msgid "C<blocksize>"
10289 msgstr ""
10290
10291 #. type: textblock
10292 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10293 msgid ""
10294 "The filesystem block size.  Supported block sizes depend on the filesystem "
10295 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10296 "filesystems."
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:3136 ../src/guestfs-actions.pod:4695
10301 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10302 msgstr ""
10303
10304 #. type: =item
10305 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4697
10306 msgid "C<features>"
10307 msgstr ""
10308
10309 #. type: textblock
10310 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
10311 msgid "This passes the I<-O> parameter to the external mkfs program."
10312 msgstr ""
10313
10314 #. type: textblock
10315 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
10316 msgid ""
10317 "For certain filesystem types, this allows extra filesystem features to be "
10318 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10319 msgstr ""
10320
10321 #. type: textblock
10322 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
10323 msgid ""
10324 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10325 "type."
10326 msgstr ""
10327
10328 #. type: =item
10329 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4708
10330 msgid "C<inode>"
10331 msgstr ""
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:3151 ../src/guestfs-actions.pod:4710
10335 msgid ""
10336 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10337 "sets the inode size (only for ext2/3/4 filesystems at present)."
10338 msgstr ""
10339
10340 #. type: =item
10341 #: ../fish/guestfish-actions.pod:3154 ../src/guestfs-actions.pod:4713
10342 msgid "C<sectorsize>"
10343 msgstr ""
10344
10345 #. type: textblock
10346 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4715
10347 msgid ""
10348 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10349 "sets sector size for ufs filesystem."
10350 msgstr ""
10351
10352 #. type: =head2
10353 #: ../fish/guestfish-actions.pod:3163
10354 msgid "mkmountpoint"
10355 msgstr ""
10356
10357 #. type: verbatim
10358 #: ../fish/guestfish-actions.pod:3165
10359 #, no-wrap
10360 msgid ""
10361 " mkmountpoint exemptpath\n"
10362 "\n"
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:3167
10367 msgid ""
10368 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10369 "to create extra mountpoints before mounting the first filesystem."
10370 msgstr ""
10371
10372 #. type: textblock
10373 #: ../fish/guestfish-actions.pod:3171 ../src/guestfs-actions.pod:4758
10374 msgid ""
10375 "These calls are I<only> necessary in some very limited circumstances, mainly "
10376 "the case where you want to mount a mix of unrelated and/or read-only "
10377 "filesystems together."
10378 msgstr ""
10379
10380 #. type: textblock
10381 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
10382 msgid ""
10383 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10384 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10385 "inside that.  You can unpack this as follows in guestfish:"
10386 msgstr ""
10387
10388 #. type: verbatim
10389 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4767
10390 #, no-wrap
10391 msgid ""
10392 " add-ro Fedora-11-i686-Live.iso\n"
10393 " run\n"
10394 " mkmountpoint /cd\n"
10395 " mkmountpoint /sqsh\n"
10396 " mkmountpoint /ext3fs\n"
10397 " mount /dev/sda /cd\n"
10398 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10399 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10400 "\n"
10401 msgstr ""
10402
10403 #. type: textblock
10404 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4776
10405 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10406 msgstr ""
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:3191
10410 msgid ""
10411 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10412 "unexpected errors if you try to mix these calls.  It is safest to manually "
10413 "unmount filesystems and remove mountpoints after use."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:3195
10418 msgid ""
10419 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10420 "for this to work for manual mountpoints, you must ensure that the innermost "
10421 "mountpoints have the longest pathnames, as in the example code above."
10422 msgstr ""
10423
10424 #. type: textblock
10425 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4787
10426 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:3202
10431 msgid ""
10432 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10433 "L</umount-all> to be called when the handle is closed which can also trigger "
10434 "these issues."
10435 msgstr ""
10436
10437 #. type: =head2
10438 #: ../fish/guestfish-actions.pod:3206
10439 msgid "mknod"
10440 msgstr ""
10441
10442 #. type: verbatim
10443 #: ../fish/guestfish-actions.pod:3208
10444 #, no-wrap
10445 msgid ""
10446 " mknod mode devmajor devminor path\n"
10447 "\n"
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4806
10452 msgid ""
10453 "This call creates block or character special devices, or named pipes "
10454 "(FIFOs)."
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:3213 ../src/guestfs-actions.pod:4809
10459 msgid ""
10460 "The C<mode> parameter should be the mode, using the standard constants.  "
10461 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10462 "used when creating block and character special devices."
10463 msgstr ""
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:3218
10467 msgid ""
10468 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10469 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10470 "regular file).  These constants are available in the standard Linux header "
10471 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10472 "wrappers around this command which bitwise OR in the appropriate constant "
10473 "for you."
10474 msgstr ""
10475
10476 #. type: =head2
10477 #: ../fish/guestfish-actions.pod:3228
10478 msgid "mknod-b"
10479 msgstr ""
10480
10481 #. type: verbatim
10482 #: ../fish/guestfish-actions.pod:3230
10483 #, no-wrap
10484 msgid ""
10485 " mknod-b mode devmajor devminor path\n"
10486 "\n"
10487 msgstr ""
10488
10489 #. type: textblock
10490 #: ../fish/guestfish-actions.pod:3232
10491 msgid ""
10492 "This call creates a block device node called C<path> with mode C<mode> and "
10493 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10494 "wrapper around L</mknod>."
10495 msgstr ""
10496
10497 #. type: =head2
10498 #: ../fish/guestfish-actions.pod:3238
10499 msgid "mknod-c"
10500 msgstr ""
10501
10502 #. type: verbatim
10503 #: ../fish/guestfish-actions.pod:3240
10504 #, no-wrap
10505 msgid ""
10506 " mknod-c mode devmajor devminor path\n"
10507 "\n"
10508 msgstr ""
10509
10510 #. type: textblock
10511 #: ../fish/guestfish-actions.pod:3242
10512 msgid ""
10513 "This call creates a char device node called C<path> with mode C<mode> and "
10514 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10515 "wrapper around L</mknod>."
10516 msgstr ""
10517
10518 #. type: =head2
10519 #: ../fish/guestfish-actions.pod:3248
10520 msgid "mkswap"
10521 msgstr ""
10522
10523 #. type: verbatim
10524 #: ../fish/guestfish-actions.pod:3250
10525 #, no-wrap
10526 msgid ""
10527 " mkswap device\n"
10528 "\n"
10529 msgstr ""
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4872
10533 msgid "Create a swap partition on C<device>."
10534 msgstr ""
10535
10536 #. type: =head2
10537 #: ../fish/guestfish-actions.pod:3254
10538 msgid "mkswap-L"
10539 msgstr ""
10540
10541 #. type: verbatim
10542 #: ../fish/guestfish-actions.pod:3256
10543 #, no-wrap
10544 msgid ""
10545 " mkswap-L label device\n"
10546 "\n"
10547 msgstr ""
10548
10549 #. type: textblock
10550 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4885
10551 msgid "Create a swap partition on C<device> with label C<label>."
10552 msgstr ""
10553
10554 #. type: textblock
10555 #: ../fish/guestfish-actions.pod:3260 ../src/guestfs-actions.pod:4887
10556 msgid ""
10557 "Note that you cannot attach a swap label to a block device "
10558 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10559 "the kernel or swap tools."
10560 msgstr ""
10561
10562 #. type: =head2
10563 #: ../fish/guestfish-actions.pod:3264
10564 msgid "mkswap-U"
10565 msgstr ""
10566
10567 #. type: verbatim
10568 #: ../fish/guestfish-actions.pod:3266
10569 #, no-wrap
10570 msgid ""
10571 " mkswap-U uuid device\n"
10572 "\n"
10573 msgstr ""
10574
10575 #. type: textblock
10576 #: ../fish/guestfish-actions.pod:3268 ../src/guestfs-actions.pod:4902
10577 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10578 msgstr ""
10579
10580 #. type: =head2
10581 #: ../fish/guestfish-actions.pod:3270
10582 msgid "mkswap-file"
10583 msgstr ""
10584
10585 #. type: verbatim
10586 #: ../fish/guestfish-actions.pod:3272
10587 #, no-wrap
10588 msgid ""
10589 " mkswap-file path\n"
10590 "\n"
10591 msgstr ""
10592
10593 #. type: textblock
10594 #: ../fish/guestfish-actions.pod:3274 ../src/guestfs-actions.pod:4914
10595 msgid "Create a swap file."
10596 msgstr ""
10597
10598 #. type: textblock
10599 #: ../fish/guestfish-actions.pod:3276
10600 msgid ""
10601 "This command just writes a swap file signature to an existing file.  To "
10602 "create the file itself, use something like L</fallocate>."
10603 msgstr ""
10604
10605 #. type: =head2
10606 #: ../fish/guestfish-actions.pod:3279
10607 msgid "modprobe"
10608 msgstr ""
10609
10610 #. type: verbatim
10611 #: ../fish/guestfish-actions.pod:3281
10612 #, no-wrap
10613 msgid ""
10614 " modprobe modulename\n"
10615 "\n"
10616 msgstr ""
10617
10618 #. type: textblock
10619 #: ../fish/guestfish-actions.pod:3283 ../src/guestfs-actions.pod:4929
10620 msgid "This loads a kernel module in the appliance."
10621 msgstr ""
10622
10623 #. type: textblock
10624 #: ../fish/guestfish-actions.pod:3285 ../src/guestfs-actions.pod:4931
10625 msgid ""
10626 "The kernel module must have been whitelisted when libguestfs was built (see "
10627 "C<appliance/kmod.whitelist.in> in the source)."
10628 msgstr ""
10629
10630 #. type: =head2
10631 #: ../fish/guestfish-actions.pod:3288
10632 msgid "mount"
10633 msgstr ""
10634
10635 #. type: verbatim
10636 #: ../fish/guestfish-actions.pod:3290
10637 #, no-wrap
10638 msgid ""
10639 " mount device mountpoint\n"
10640 "\n"
10641 msgstr ""
10642
10643 #. type: textblock
10644 #: ../fish/guestfish-actions.pod:3292 ../src/guestfs-actions.pod:4945
10645 msgid ""
10646 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10647 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10648 "those block devices contain partitions, they will have the usual names "
10649 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10650 msgstr ""
10651
10652 #. type: textblock
10653 #: ../fish/guestfish-actions.pod:3298 ../src/guestfs-actions.pod:4951
10654 msgid ""
10655 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10656 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10657 "mounted on directories which already exist."
10658 msgstr ""
10659
10660 #. type: textblock
10661 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4956
10662 msgid ""
10663 "The mounted filesystem is writable, if we have sufficient permissions on the "
10664 "underlying device."
10665 msgstr ""
10666
10667 #. type: textblock
10668 #: ../fish/guestfish-actions.pod:3306
10669 msgid ""
10670 "B<Important note:> When you use this call, the filesystem options C<sync> "
10671 "and C<noatime> are set implicitly.  This was originally done because we "
10672 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10673 "very large negative performance impact and negligible effect on "
10674 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
10675 "code that needs performance, and instead use L</mount-options> (use an empty "
10676 "string for the first parameter if you don't want any options)."
10677 msgstr ""
10678
10679 #. type: textblock
10680 #: ../fish/guestfish-actions.pod:3316
10681 msgid ""
10682 "This function is deprecated.  In new code, use the L</mount_options> call "
10683 "instead."
10684 msgstr ""
10685
10686 #. type: =head2
10687 #: ../fish/guestfish-actions.pod:3323
10688 msgid "mount-9p"
10689 msgstr ""
10690
10691 #. type: verbatim
10692 #: ../fish/guestfish-actions.pod:3325
10693 #, no-wrap
10694 msgid ""
10695 " mount-9p mounttag mountpoint [options:..]\n"
10696 "\n"
10697 msgstr ""
10698
10699 #. type: textblock
10700 #: ../fish/guestfish-actions.pod:3327 ../src/guestfs-actions.pod:4995
10701 msgid ""
10702 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10703 "C<mountpoint>."
10704 msgstr ""
10705
10706 #. type: textblock
10707 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:4998
10708 msgid ""
10709 "If required, C<trans=virtio> will be automatically added to the options.  "
10710 "Any other options required can be passed in the optional C<options> "
10711 "parameter."
10712 msgstr ""
10713
10714 #. type: =head2
10715 #: ../fish/guestfish-actions.pod:3336
10716 msgid "mount-loop"
10717 msgstr ""
10718
10719 #. type: verbatim
10720 #: ../fish/guestfish-actions.pod:3338
10721 #, no-wrap
10722 msgid ""
10723 " mount-loop file mountpoint\n"
10724 "\n"
10725 msgstr ""
10726
10727 #. type: textblock
10728 #: ../fish/guestfish-actions.pod:3340 ../src/guestfs-actions.pod:5037
10729 msgid ""
10730 "This command lets you mount C<file> (a filesystem image in a file) on a "
10731 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10732 "mountpoint>."
10733 msgstr ""
10734
10735 #. type: =head2
10736 #: ../fish/guestfish-actions.pod:3344
10737 msgid "mount-options"
10738 msgstr ""
10739
10740 #. type: verbatim
10741 #: ../fish/guestfish-actions.pod:3346
10742 #, no-wrap
10743 msgid ""
10744 " mount-options options device mountpoint\n"
10745 "\n"
10746 msgstr ""
10747
10748 #. type: textblock
10749 #: ../fish/guestfish-actions.pod:3348
10750 msgid ""
10751 "This is the same as the L</mount> command, but it allows you to set the "
10752 "mount options as for the L<mount(8)> I<-o> flag."
10753 msgstr ""
10754
10755 #. type: textblock
10756 #: ../fish/guestfish-actions.pod:3352 ../src/guestfs-actions.pod:5057
10757 msgid ""
10758 "If the C<options> parameter is an empty string, then no options are passed "
10759 "(all options default to whatever the filesystem uses)."
10760 msgstr ""
10761
10762 #. type: =head2
10763 #: ../fish/guestfish-actions.pod:3356
10764 msgid "mount-ro"
10765 msgstr ""
10766
10767 #. type: verbatim
10768 #: ../fish/guestfish-actions.pod:3358
10769 #, no-wrap
10770 msgid ""
10771 " mount-ro device mountpoint\n"
10772 "\n"
10773 msgstr ""
10774
10775 #. type: textblock
10776 #: ../fish/guestfish-actions.pod:3360
10777 msgid ""
10778 "This is the same as the L</mount> command, but it mounts the filesystem with "
10779 "the read-only (I<-o ro>) flag."
10780 msgstr ""
10781
10782 #. type: =head2
10783 #: ../fish/guestfish-actions.pod:3363
10784 msgid "mount-vfs"
10785 msgstr ""
10786
10787 #. type: verbatim
10788 #: ../fish/guestfish-actions.pod:3365
10789 #, no-wrap
10790 msgid ""
10791 " mount-vfs options vfstype device mountpoint\n"
10792 "\n"
10793 msgstr ""
10794
10795 #. type: textblock
10796 #: ../fish/guestfish-actions.pod:3367
10797 msgid ""
10798 "This is the same as the L</mount> command, but it allows you to set both the "
10799 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
10800 msgstr ""
10801
10802 #. type: =head2
10803 #: ../fish/guestfish-actions.pod:3371
10804 msgid "mountpoints"
10805 msgstr ""
10806
10807 #. type: verbatim
10808 #: ../fish/guestfish-actions.pod:3373
10809 #, no-wrap
10810 msgid ""
10811 " mountpoints\n"
10812 "\n"
10813 msgstr ""
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:3375
10817 msgid ""
10818 "This call is similar to L</mounts>.  That call returns a list of devices.  "
10819 "This one returns a hash table (map) of device name to directory where the "
10820 "device is mounted."
10821 msgstr ""
10822
10823 #. type: =head2
10824 #: ../fish/guestfish-actions.pod:3379
10825 msgid "mounts"
10826 msgstr ""
10827
10828 #. type: verbatim
10829 #: ../fish/guestfish-actions.pod:3381
10830 #, no-wrap
10831 msgid ""
10832 " mounts\n"
10833 "\n"
10834 msgstr ""
10835
10836 #. type: textblock
10837 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5118
10838 msgid ""
10839 "This returns the list of currently mounted filesystems.  It returns the list "
10840 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10841 msgstr ""
10842
10843 #. type: textblock
10844 #: ../fish/guestfish-actions.pod:3386 ../src/guestfs-actions.pod:5121
10845 msgid "Some internal mounts are not shown."
10846 msgstr ""
10847
10848 #. type: textblock
10849 #: ../fish/guestfish-actions.pod:3388
10850 msgid "See also: L</mountpoints>"
10851 msgstr ""
10852
10853 #. type: =head2
10854 #: ../fish/guestfish-actions.pod:3390
10855 msgid "mv"
10856 msgstr ""
10857
10858 #. type: verbatim
10859 #: ../fish/guestfish-actions.pod:3392
10860 #, no-wrap
10861 msgid ""
10862 " mv src dest\n"
10863 "\n"
10864 msgstr ""
10865
10866 #. type: textblock
10867 #: ../fish/guestfish-actions.pod:3394 ../src/guestfs-actions.pod:5138
10868 msgid ""
10869 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10870 "destination filename or destination directory."
10871 msgstr ""
10872
10873 #. type: =head2
10874 #: ../fish/guestfish-actions.pod:3397
10875 msgid "ntfs-3g-probe"
10876 msgstr ""
10877
10878 #. type: verbatim
10879 #: ../fish/guestfish-actions.pod:3399
10880 #, no-wrap
10881 msgid ""
10882 " ntfs-3g-probe true|false device\n"
10883 "\n"
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:3401 ../src/guestfs-actions.pod:5152
10888 msgid ""
10889 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10890 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10891 "read-write, and some cannot be mounted at all)."
10892 msgstr ""
10893
10894 #. type: textblock
10895 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
10896 msgid ""
10897 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10898 "can be mounted read-write.  Set it to false if you want to test if the "
10899 "volume can be mounted read-only."
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
10904 msgid ""
10905 "The return value is an integer which C<0> if the operation would succeed, or "
10906 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10907 msgstr ""
10908
10909 #. type: =head2
10910 #: ../fish/guestfish-actions.pod:3413
10911 msgid "ntfsresize"
10912 msgstr ""
10913
10914 #. type: verbatim
10915 #: ../fish/guestfish-actions.pod:3415
10916 #, no-wrap
10917 msgid ""
10918 " ntfsresize device\n"
10919 "\n"
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:3417 ../fish/guestfish-actions.pod:3441 ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5213
10924 msgid ""
10925 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10926 "size of the underlying device."
10927 msgstr ""
10928
10929 #. type: textblock
10930 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5177
10931 msgid ""
10932 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
10933 "consistency check (for safety).  You have to boot into Windows to perform "
10934 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
10935 "resize filesystems which have been marked in this way.  So in effect it is "
10936 "not possible to call ntfsresize multiple times on a single filesystem "
10937 "without booting into Windows between each resize."
10938 msgstr ""
10939
10940 #. type: textblock
10941 #: ../fish/guestfish-actions.pod:3428 ../fish/guestfish-actions.pod:3467 ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5239
10942 msgid "See also L<ntfsresize(8)>."
10943 msgstr ""
10944
10945 #. type: textblock
10946 #: ../fish/guestfish-actions.pod:3430 ../fish/guestfish-actions.pod:3478
10947 msgid ""
10948 "This function is deprecated.  In new code, use the L</ntfsresize_opts> call "
10949 "instead."
10950 msgstr ""
10951
10952 #. type: =head2
10953 #: ../fish/guestfish-actions.pod:3437
10954 msgid "ntfsresize-opts"
10955 msgstr ""
10956
10957 #. type: verbatim
10958 #: ../fish/guestfish-actions.pod:3439
10959 #, no-wrap
10960 msgid ""
10961 " ntfsresize-opts device [size:..] [force:..]\n"
10962 "\n"
10963 msgstr ""
10964
10965 #. type: textblock
10966 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5222
10967 msgid ""
10968 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
10969 "resized to fit the container (eg. partition)."
10970 msgstr ""
10971
10972 #. type: =item
10973 #: ../fish/guestfish-actions.pod:3453 ../src/guestfs-actions.pod:5225
10974 msgid "C<force>"
10975 msgstr ""
10976
10977 #. type: textblock
10978 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5227
10979 msgid ""
10980 "If this option is true, then force the resize of the filesystem even if the "
10981 "filesystem is marked as requiring a consistency check."
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:3458
10986 msgid ""
10987 "After the resize operation, the filesystem is always marked as requiring a "
10988 "consistency check (for safety).  You have to boot into Windows to perform "
10989 "this check and clear this condition.  If you I<don't> set the C<force> "
10990 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
10991 "a single filesystem without booting into Windows between each resize."
10992 msgstr ""
10993
10994 #. type: =head2
10995 #: ../fish/guestfish-actions.pod:3471
10996 msgid "ntfsresize-size"
10997 msgstr ""
10998
10999 #. type: verbatim
11000 #: ../fish/guestfish-actions.pod:3473
11001 #, no-wrap
11002 msgid ""
11003 " ntfsresize-size device size\n"
11004 "\n"
11005 msgstr ""
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:3475
11009 msgid ""
11010 "This command is the same as L</ntfsresize> except that it allows you to "
11011 "specify the new size (in bytes) explicitly."
11012 msgstr ""
11013
11014 #. type: =head2
11015 #: ../fish/guestfish-actions.pod:3485
11016 msgid "part-add"
11017 msgstr ""
11018
11019 #. type: verbatim
11020 #: ../fish/guestfish-actions.pod:3487
11021 #, no-wrap
11022 msgid ""
11023 " part-add device prlogex startsect endsect\n"
11024 "\n"
11025 msgstr ""
11026
11027 #. type: textblock
11028 #: ../fish/guestfish-actions.pod:3489
11029 msgid ""
11030 "This command adds a partition to C<device>.  If there is no partition table "
11031 "on the device, call L</part-init> first."
11032 msgstr ""
11033
11034 #. type: textblock
11035 #: ../fish/guestfish-actions.pod:3492 ../src/guestfs-actions.pod:5300
11036 msgid ""
11037 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11038 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11039 "C<logical>) and C<e> (or C<extended>) partition types."
11040 msgstr ""
11041
11042 #. type: textblock
11043 #: ../fish/guestfish-actions.pod:3497 ../src/guestfs-actions.pod:5305
11044 msgid ""
11045 "C<startsect> and C<endsect> are the start and end of the partition in "
11046 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11047 "from the end of the disk (C<-1> is the last sector)."
11048 msgstr ""
11049
11050 #. type: textblock
11051 #: ../fish/guestfish-actions.pod:3501
11052 msgid ""
11053 "Creating a partition which covers the whole disk is not so easy.  Use "
11054 "L</part-disk> to do that."
11055 msgstr ""
11056
11057 #. type: =head2
11058 #: ../fish/guestfish-actions.pod:3504
11059 msgid "part-del"
11060 msgstr ""
11061
11062 #. type: verbatim
11063 #: ../fish/guestfish-actions.pod:3506
11064 #, no-wrap
11065 msgid ""
11066 " part-del device partnum\n"
11067 "\n"
11068 msgstr ""
11069
11070 #. type: textblock
11071 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5323
11072 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5325
11077 msgid ""
11078 "Note that in the case of MBR partitioning, deleting an extended partition "
11079 "also deletes any logical partitions it contains."
11080 msgstr ""
11081
11082 #. type: =head2
11083 #: ../fish/guestfish-actions.pod:3514
11084 msgid "part-disk"
11085 msgstr ""
11086
11087 #. type: verbatim
11088 #: ../fish/guestfish-actions.pod:3516
11089 #, no-wrap
11090 msgid ""
11091 " part-disk device parttype\n"
11092 "\n"
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:3518
11097 msgid ""
11098 "This command is simply a combination of L</part-init> followed by "
11099 "L</part-add> to create a single primary partition covering the whole disk."
11100 msgstr ""
11101
11102 #. type: textblock
11103 #: ../fish/guestfish-actions.pod:3522
11104 msgid ""
11105 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11106 "possible values are described in L</part-init>."
11107 msgstr ""
11108
11109 #. type: =head2
11110 #: ../fish/guestfish-actions.pod:3528
11111 msgid "part-get-bootable"
11112 msgstr ""
11113
11114 #. type: verbatim
11115 #: ../fish/guestfish-actions.pod:3530
11116 #, no-wrap
11117 msgid ""
11118 " part-get-bootable device partnum\n"
11119 "\n"
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5361
11124 msgid ""
11125 "This command returns true if the partition C<partnum> on C<device> has the "
11126 "bootable flag set."
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:3535
11131 msgid "See also L</part-set-bootable>."
11132 msgstr ""
11133
11134 #. type: =head2
11135 #: ../fish/guestfish-actions.pod:3537
11136 msgid "part-get-mbr-id"
11137 msgstr ""
11138
11139 #. type: verbatim
11140 #: ../fish/guestfish-actions.pod:3539
11141 #, no-wrap
11142 msgid ""
11143 " part-get-mbr-id device partnum\n"
11144 "\n"
11145 msgstr ""
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:3541 ../src/guestfs-actions.pod:5377
11149 msgid ""
11150 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11151 "partition C<partnum>."
11152 msgstr ""
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:3544 ../fish/guestfish-actions.pod:3688
11156 msgid ""
11157 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11158 "undefined results for other partition table types (see "
11159 "L</part-get-parttype>)."
11160 msgstr ""
11161
11162 #. type: =head2
11163 #: ../fish/guestfish-actions.pod:3548
11164 msgid "part-get-parttype"
11165 msgstr ""
11166
11167 #. type: verbatim
11168 #: ../fish/guestfish-actions.pod:3550
11169 #, no-wrap
11170 msgid ""
11171 " part-get-parttype device\n"
11172 "\n"
11173 msgstr ""
11174
11175 #. type: textblock
11176 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5394
11177 msgid ""
11178 "This command examines the partition table on C<device> and returns the "
11179 "partition table type (format) being used."
11180 msgstr ""
11181
11182 #. type: textblock
11183 #: ../fish/guestfish-actions.pod:3555
11184 msgid ""
11185 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11186 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11187 "possible, although unusual.  See L</part-init> for a full list."
11188 msgstr ""
11189
11190 #. type: =head2
11191 #: ../fish/guestfish-actions.pod:3560
11192 msgid "part-init"
11193 msgstr ""
11194
11195 #. type: verbatim
11196 #: ../fish/guestfish-actions.pod:3562
11197 #, no-wrap
11198 msgid ""
11199 " part-init device parttype\n"
11200 "\n"
11201 msgstr ""
11202
11203 #. type: textblock
11204 #: ../fish/guestfish-actions.pod:3564 ../src/guestfs-actions.pod:5414
11205 msgid ""
11206 "This creates an empty partition table on C<device> of one of the partition "
11207 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11208 "(for large disks)."
11209 msgstr ""
11210
11211 #. type: textblock
11212 #: ../fish/guestfish-actions.pod:3568
11213 msgid ""
11214 "Initially there are no partitions.  Following this, you should call "
11215 "L</part-add> for each partition required."
11216 msgstr ""
11217
11218 #. type: textblock
11219 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5421
11220 msgid "Possible values for C<parttype> are:"
11221 msgstr ""
11222
11223 #. type: =item
11224 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
11225 msgid "B<efi>"
11226 msgstr ""
11227
11228 #. type: =item
11229 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5427
11230 msgid "B<gpt>"
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11235 msgid "Intel EFI / GPT partition table."
11236 msgstr ""
11237
11238 #. type: textblock
11239 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11240 msgid ""
11241 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11242 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11243 "the C<mbr> format."
11244 msgstr ""
11245
11246 #. type: =item
11247 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11248 msgid "B<mbr>"
11249 msgstr ""
11250
11251 #. type: =item
11252 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11253 msgid "B<msdos>"
11254 msgstr ""
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11258 msgid ""
11259 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11260 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11261 "TB.  For large disks we recommend using C<gpt>."
11262 msgstr ""
11263
11264 #. type: textblock
11265 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11266 msgid "Other partition table types that may work but are not supported include:"
11267 msgstr ""
11268
11269 #. type: =item
11270 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11271 msgid "B<aix>"
11272 msgstr ""
11273
11274 #. type: textblock
11275 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11276 msgid "AIX disk labels."
11277 msgstr ""
11278
11279 #. type: =item
11280 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11281 msgid "B<amiga>"
11282 msgstr ""
11283
11284 #. type: =item
11285 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11286 msgid "B<rdb>"
11287 msgstr ""
11288
11289 #. type: textblock
11290 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11291 msgid "Amiga \"Rigid Disk Block\" format."
11292 msgstr ""
11293
11294 #. type: =item
11295 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11296 msgid "B<bsd>"
11297 msgstr ""
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
11301 msgid "BSD disk labels."
11302 msgstr ""
11303
11304 #. type: =item
11305 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
11306 msgid "B<dasd>"
11307 msgstr ""
11308
11309 #. type: textblock
11310 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
11311 msgid "DASD, used on IBM mainframes."
11312 msgstr ""
11313
11314 #. type: =item
11315 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
11316 msgid "B<dvh>"
11317 msgstr ""
11318
11319 #. type: textblock
11320 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
11321 msgid "MIPS/SGI volumes."
11322 msgstr ""
11323
11324 #. type: =item
11325 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
11326 msgid "B<mac>"
11327 msgstr ""
11328
11329 #. type: textblock
11330 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
11331 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11332 msgstr ""
11333
11334 #. type: =item
11335 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
11336 msgid "B<pc98>"
11337 msgstr ""
11338
11339 #. type: textblock
11340 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
11341 msgid "NEC PC-98 format, common in Japan apparently."
11342 msgstr ""
11343
11344 #. type: =item
11345 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
11346 msgid "B<sun>"
11347 msgstr ""
11348
11349 #. type: textblock
11350 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
11351 msgid "Sun disk labels."
11352 msgstr ""
11353
11354 #. type: =head2
11355 #: ../fish/guestfish-actions.pod:3637
11356 msgid "part-list"
11357 msgstr ""
11358
11359 #. type: verbatim
11360 #: ../fish/guestfish-actions.pod:3639
11361 #, no-wrap
11362 msgid ""
11363 " part-list device\n"
11364 "\n"
11365 msgstr ""
11366
11367 #. type: textblock
11368 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11369 msgid ""
11370 "This command parses the partition table on C<device> and returns the list of "
11371 "partitions found."
11372 msgstr ""
11373
11374 #. type: textblock
11375 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5500
11376 msgid "The fields in the returned structure are:"
11377 msgstr ""
11378
11379 #. type: =item
11380 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
11381 msgid "B<part_num>"
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5506
11386 msgid "Partition number, counting from 1."
11387 msgstr ""
11388
11389 #. type: =item
11390 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
11391 msgid "B<part_start>"
11392 msgstr ""
11393
11394 #. type: textblock
11395 #: ../fish/guestfish-actions.pod:3654
11396 msgid ""
11397 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11398 "the device's sector size, see L</blockdev-getss>."
11399 msgstr ""
11400
11401 #. type: =item
11402 #: ../fish/guestfish-actions.pod:3657 ../src/guestfs-actions.pod:5513
11403 msgid "B<part_end>"
11404 msgstr ""
11405
11406 #. type: textblock
11407 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5515
11408 msgid "End of the partition in bytes."
11409 msgstr ""
11410
11411 #. type: =item
11412 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
11413 msgid "B<part_size>"
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
11418 msgid "Size of the partition in bytes."
11419 msgstr ""
11420
11421 #. type: =head2
11422 #: ../fish/guestfish-actions.pod:3667
11423 msgid "part-set-bootable"
11424 msgstr ""
11425
11426 #. type: verbatim
11427 #: ../fish/guestfish-actions.pod:3669
11428 #, no-wrap
11429 msgid ""
11430 " part-set-bootable device partnum true|false\n"
11431 "\n"
11432 msgstr ""
11433
11434 #. type: textblock
11435 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5537
11436 msgid ""
11437 "This sets the bootable flag on partition numbered C<partnum> on device "
11438 "C<device>.  Note that partitions are numbered from 1."
11439 msgstr ""
11440
11441 #. type: textblock
11442 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5540
11443 msgid ""
11444 "The bootable flag is used by some operating systems (notably Windows) to "
11445 "determine which partition to boot from.  It is by no means universally "
11446 "recognized."
11447 msgstr ""
11448
11449 #. type: =head2
11450 #: ../fish/guestfish-actions.pod:3678
11451 msgid "part-set-mbr-id"
11452 msgstr ""
11453
11454 #. type: verbatim
11455 #: ../fish/guestfish-actions.pod:3680
11456 #, no-wrap
11457 msgid ""
11458 " part-set-mbr-id device partnum idbyte\n"
11459 "\n"
11460 msgstr ""
11461
11462 #. type: textblock
11463 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5556
11464 msgid ""
11465 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11466 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11467 "documentation are in fact hexadecimal numbers, but usually documented "
11468 "without any leading \"0x\" which might be confusing."
11469 msgstr ""
11470
11471 #. type: =head2
11472 #: ../fish/guestfish-actions.pod:3692
11473 msgid "part-set-name"
11474 msgstr ""
11475
11476 #. type: verbatim
11477 #: ../fish/guestfish-actions.pod:3694
11478 #, no-wrap
11479 msgid ""
11480 " part-set-name device partnum name\n"
11481 "\n"
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5578
11486 msgid ""
11487 "This sets the partition name on partition numbered C<partnum> on device "
11488 "C<device>.  Note that partitions are numbered from 1."
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5581
11493 msgid ""
11494 "The partition name can only be set on certain types of partition table.  "
11495 "This works on C<gpt> but not on C<mbr> partitions."
11496 msgstr ""
11497
11498 #. type: =head2
11499 #: ../fish/guestfish-actions.pod:3702
11500 msgid "part-to-dev"
11501 msgstr ""
11502
11503 #. type: verbatim
11504 #: ../fish/guestfish-actions.pod:3704
11505 #, no-wrap
11506 msgid ""
11507 " part-to-dev partition\n"
11508 "\n"
11509 msgstr ""
11510
11511 #. type: textblock
11512 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5594
11513 msgid ""
11514 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11515 "partition number, returning the device name (eg. \"/dev/sdb\")."
11516 msgstr ""
11517
11518 #. type: textblock
11519 #: ../fish/guestfish-actions.pod:3710
11520 msgid ""
11521 "The named partition must exist, for example as a string returned from "
11522 "L</list-partitions>."
11523 msgstr ""
11524
11525 #. type: =head2
11526 #: ../fish/guestfish-actions.pod:3713
11527 msgid "ping-daemon"
11528 msgstr ""
11529
11530 #. type: verbatim
11531 #: ../fish/guestfish-actions.pod:3715
11532 #, no-wrap
11533 msgid ""
11534 " ping-daemon\n"
11535 "\n"
11536 msgstr ""
11537
11538 #. type: textblock
11539 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5611
11540 msgid ""
11541 "This is a test probe into the guestfs daemon running inside the qemu "
11542 "subprocess.  Calling this function checks that the daemon responds to the "
11543 "ping message, without affecting the daemon or attached block device(s) in "
11544 "any other way."
11545 msgstr ""
11546
11547 #. type: =head2
11548 #: ../fish/guestfish-actions.pod:3722
11549 msgid "pread"
11550 msgstr ""
11551
11552 #. type: verbatim
11553 #: ../fish/guestfish-actions.pod:3724
11554 #, no-wrap
11555 msgid ""
11556 " pread path count offset\n"
11557 "\n"
11558 msgstr ""
11559
11560 #. type: textblock
11561 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5629
11562 msgid ""
11563 "This command lets you read part of a file.  It reads C<count> bytes of the "
11564 "file, starting at C<offset>, from file C<path>."
11565 msgstr ""
11566
11567 #. type: textblock
11568 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5632 ../src/guestfs-actions.pod:5658
11569 msgid ""
11570 "This may read fewer bytes than requested.  For further details see the "
11571 "L<pread(2)> system call."
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:3732
11576 msgid "See also L</pwrite>, L</pread-device>."
11577 msgstr ""
11578
11579 #. type: =head2
11580 #: ../fish/guestfish-actions.pod:3737
11581 msgid "pread-device"
11582 msgstr ""
11583
11584 #. type: verbatim
11585 #: ../fish/guestfish-actions.pod:3739
11586 #, no-wrap
11587 msgid ""
11588 " pread-device device count offset\n"
11589 "\n"
11590 msgstr ""
11591
11592 #. type: textblock
11593 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5655
11594 msgid ""
11595 "This command lets you read part of a file.  It reads C<count> bytes of "
11596 "C<device>, starting at C<offset>."
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:3747
11601 msgid "See also L</pread>."
11602 msgstr ""
11603
11604 #. type: =head2
11605 #: ../fish/guestfish-actions.pod:3752
11606 msgid "pvcreate"
11607 msgstr ""
11608
11609 #. type: verbatim
11610 #: ../fish/guestfish-actions.pod:3754
11611 #, no-wrap
11612 msgid ""
11613 " pvcreate device\n"
11614 "\n"
11615 msgstr ""
11616
11617 #. type: textblock
11618 #: ../fish/guestfish-actions.pod:3756 ../src/guestfs-actions.pod:5678
11619 msgid ""
11620 "This creates an LVM physical volume on the named C<device>, where C<device> "
11621 "should usually be a partition name such as C</dev/sda1>."
11622 msgstr ""
11623
11624 #. type: =head2
11625 #: ../fish/guestfish-actions.pod:3760
11626 msgid "pvremove"
11627 msgstr ""
11628
11629 #. type: verbatim
11630 #: ../fish/guestfish-actions.pod:3762
11631 #, no-wrap
11632 msgid ""
11633 " pvremove device\n"
11634 "\n"
11635 msgstr ""
11636
11637 #. type: textblock
11638 #: ../fish/guestfish-actions.pod:3764 ../src/guestfs-actions.pod:5692
11639 msgid ""
11640 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11641 "it."
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5695
11646 msgid ""
11647 "The implementation uses the C<pvremove> command which refuses to wipe "
11648 "physical volumes that contain any volume groups, so you have to remove those "
11649 "first."
11650 msgstr ""
11651
11652 #. type: =head2
11653 #: ../fish/guestfish-actions.pod:3771
11654 msgid "pvresize"
11655 msgstr ""
11656
11657 #. type: verbatim
11658 #: ../fish/guestfish-actions.pod:3773
11659 #, no-wrap
11660 msgid ""
11661 " pvresize device\n"
11662 "\n"
11663 msgstr ""
11664
11665 #. type: textblock
11666 #: ../fish/guestfish-actions.pod:3775 ../src/guestfs-actions.pod:5709
11667 msgid ""
11668 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11669 "the new size of the underlying device."
11670 msgstr ""
11671
11672 #. type: =head2
11673 #: ../fish/guestfish-actions.pod:3778
11674 msgid "pvresize-size"
11675 msgstr ""
11676
11677 #. type: verbatim
11678 #: ../fish/guestfish-actions.pod:3780
11679 #, no-wrap
11680 msgid ""
11681 " pvresize-size device size\n"
11682 "\n"
11683 msgstr ""
11684
11685 #. type: textblock
11686 #: ../fish/guestfish-actions.pod:3782
11687 msgid ""
11688 "This command is the same as L</pvresize> except that it allows you to "
11689 "specify the new size (in bytes) explicitly."
11690 msgstr ""
11691
11692 #. type: =head2
11693 #: ../fish/guestfish-actions.pod:3785
11694 msgid "pvs"
11695 msgstr ""
11696
11697 #. type: verbatim
11698 #: ../fish/guestfish-actions.pod:3787
11699 #, no-wrap
11700 msgid ""
11701 " pvs\n"
11702 "\n"
11703 msgstr ""
11704
11705 #. type: textblock
11706 #: ../fish/guestfish-actions.pod:3789 ../src/guestfs-actions.pod:5735
11707 msgid ""
11708 "List all the physical volumes detected.  This is the equivalent of the "
11709 "L<pvs(8)> command."
11710 msgstr ""
11711
11712 #. type: textblock
11713 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5738
11714 msgid ""
11715 "This returns a list of just the device names that contain PVs "
11716 "(eg. C</dev/sda2>)."
11717 msgstr ""
11718
11719 #. type: textblock
11720 #: ../fish/guestfish-actions.pod:3795
11721 msgid "See also L</pvs-full>."
11722 msgstr ""
11723
11724 #. type: =head2
11725 #: ../fish/guestfish-actions.pod:3797
11726 msgid "pvs-full"
11727 msgstr ""
11728
11729 #. type: verbatim
11730 #: ../fish/guestfish-actions.pod:3799
11731 #, no-wrap
11732 msgid ""
11733 " pvs-full\n"
11734 "\n"
11735 msgstr ""
11736
11737 #. type: textblock
11738 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5754
11739 msgid ""
11740 "List all the physical volumes detected.  This is the equivalent of the "
11741 "L<pvs(8)> command.  The \"full\" version includes all fields."
11742 msgstr ""
11743
11744 #. type: =head2
11745 #: ../fish/guestfish-actions.pod:3804
11746 msgid "pvuuid"
11747 msgstr ""
11748
11749 #. type: verbatim
11750 #: ../fish/guestfish-actions.pod:3806
11751 #, no-wrap
11752 msgid ""
11753 " pvuuid device\n"
11754 "\n"
11755 msgstr ""
11756
11757 #. type: textblock
11758 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5769
11759 msgid "This command returns the UUID of the LVM PV C<device>."
11760 msgstr ""
11761
11762 #. type: =head2
11763 #: ../fish/guestfish-actions.pod:3810
11764 msgid "pwrite"
11765 msgstr ""
11766
11767 #. type: verbatim
11768 #: ../fish/guestfish-actions.pod:3812
11769 #, no-wrap
11770 msgid ""
11771 " pwrite path content offset\n"
11772 "\n"
11773 msgstr ""
11774
11775 #. type: textblock
11776 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5785
11777 msgid ""
11778 "This command writes to part of a file.  It writes the data buffer C<content> "
11779 "to the file C<path> starting at offset C<offset>."
11780 msgstr ""
11781
11782 #. type: textblock
11783 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5788
11784 msgid ""
11785 "This command implements the L<pwrite(2)> system call, and like that system "
11786 "call it may not write the full data requested.  The return value is the "
11787 "number of bytes that were actually written to the file.  This could even be "
11788 "0, although short writes are unlikely for regular files in ordinary "
11789 "circumstances."
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../fish/guestfish-actions.pod:3823
11794 msgid "See also L</pread>, L</pwrite-device>."
11795 msgstr ""
11796
11797 #. type: =head2
11798 #: ../fish/guestfish-actions.pod:3828
11799 msgid "pwrite-device"
11800 msgstr ""
11801
11802 #. type: verbatim
11803 #: ../fish/guestfish-actions.pod:3830
11804 #, no-wrap
11805 msgid ""
11806 " pwrite-device device content offset\n"
11807 "\n"
11808 msgstr ""
11809
11810 #. type: textblock
11811 #: ../fish/guestfish-actions.pod:3832 ../src/guestfs-actions.pod:5812
11812 msgid ""
11813 "This command writes to part of a device.  It writes the data buffer "
11814 "C<content> to C<device> starting at offset C<offset>."
11815 msgstr ""
11816
11817 #. type: textblock
11818 #: ../fish/guestfish-actions.pod:3835 ../src/guestfs-actions.pod:5815
11819 msgid ""
11820 "This command implements the L<pwrite(2)> system call, and like that system "
11821 "call it may not write the full data requested (although short writes to disk "
11822 "devices and partitions are probably impossible with standard Linux kernels)."
11823 msgstr ""
11824
11825 #. type: textblock
11826 #: ../fish/guestfish-actions.pod:3840
11827 msgid "See also L</pwrite>."
11828 msgstr ""
11829
11830 #. type: =head2
11831 #: ../fish/guestfish-actions.pod:3845
11832 msgid "read-file"
11833 msgstr ""
11834
11835 #. type: verbatim
11836 #: ../fish/guestfish-actions.pod:3847
11837 #, no-wrap
11838 msgid ""
11839 " read-file path\n"
11840 "\n"
11841 msgstr ""
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5836
11845 msgid "This calls returns the contents of the file C<path> as a buffer."
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:3852
11850 msgid ""
11851 "Unlike L</cat>, this function can correctly handle files that contain "
11852 "embedded ASCII NUL characters.  However unlike L</download>, this function "
11853 "is limited in the total size of file that can be handled."
11854 msgstr ""
11855
11856 #. type: =head2
11857 #: ../fish/guestfish-actions.pod:3860
11858 msgid "read-lines"
11859 msgstr ""
11860
11861 #. type: verbatim
11862 #: ../fish/guestfish-actions.pod:3862
11863 #, no-wrap
11864 msgid ""
11865 " read-lines path\n"
11866 "\n"
11867 msgstr ""
11868
11869 #. type: textblock
11870 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5861
11871 msgid ""
11872 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11873 "C<CRLF> character sequences are I<not> returned."
11874 msgstr ""
11875
11876 #. type: textblock
11877 #: ../fish/guestfish-actions.pod:3869
11878 msgid ""
11879 "Note that this function cannot correctly handle binary files (specifically, "
11880 "files containing C<\\0> character which is treated as end of line).  For "
11881 "those you need to use the L</read-file> function which has a more complex "
11882 "interface."
11883 msgstr ""
11884
11885 #. type: =head2
11886 #: ../fish/guestfish-actions.pod:3874
11887 msgid "readdir"
11888 msgstr ""
11889
11890 #. type: verbatim
11891 #: ../fish/guestfish-actions.pod:3876
11892 #, no-wrap
11893 msgid ""
11894 " readdir dir\n"
11895 "\n"
11896 msgstr ""
11897
11898 #. type: textblock
11899 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
11900 msgid "This returns the list of directory entries in directory C<dir>."
11901 msgstr ""
11902
11903 #. type: textblock
11904 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
11905 msgid ""
11906 "All entries in the directory are returned, including C<.> and C<..>.  The "
11907 "entries are I<not> sorted, but returned in the same order as the underlying "
11908 "filesystem."
11909 msgstr ""
11910
11911 #. type: textblock
11912 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
11913 msgid ""
11914 "Also this call returns basic file type information about each file.  The "
11915 "C<ftyp> field will contain one of the following characters:"
11916 msgstr ""
11917
11918 #. type: =item
11919 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
11920 msgid "'b'"
11921 msgstr ""
11922
11923 #. type: textblock
11924 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
11925 msgid "Block special"
11926 msgstr ""
11927
11928 #. type: =item
11929 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
11930 msgid "'c'"
11931 msgstr ""
11932
11933 #. type: textblock
11934 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
11935 msgid "Char special"
11936 msgstr ""
11937
11938 #. type: =item
11939 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
11940 msgid "'d'"
11941 msgstr ""
11942
11943 #. type: textblock
11944 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
11945 msgid "Directory"
11946 msgstr ""
11947
11948 #. type: =item
11949 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
11950 msgid "'f'"
11951 msgstr ""
11952
11953 #. type: textblock
11954 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
11955 msgid "FIFO (named pipe)"
11956 msgstr ""
11957
11958 #. type: =item
11959 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
11960 msgid "'l'"
11961 msgstr ""
11962
11963 #. type: textblock
11964 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
11965 msgid "Symbolic link"
11966 msgstr ""
11967
11968 #. type: =item
11969 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
11970 msgid "'r'"
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
11975 msgid "Regular file"
11976 msgstr ""
11977
11978 #. type: =item
11979 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
11980 msgid "'s'"
11981 msgstr ""
11982
11983 #. type: textblock
11984 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
11985 msgid "Socket"
11986 msgstr ""
11987
11988 #. type: =item
11989 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
11990 msgid "'u'"
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
11995 msgid "Unknown file type"
11996 msgstr ""
11997
11998 #. type: =item
11999 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
12000 msgid "'?'"
12001 msgstr ""
12002
12003 #. type: textblock
12004 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
12005 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
12006 msgstr ""
12007
12008 #. type: textblock
12009 #: ../fish/guestfish-actions.pod:3928
12010 msgid ""
12011 "This function is primarily intended for use by programs.  To get a simple "
12012 "list of names, use L</ls>.  To get a printable directory for human "
12013 "consumption, use L</ll>."
12014 msgstr ""
12015
12016 #. type: =head2
12017 #: ../fish/guestfish-actions.pod:3932
12018 msgid "readlink"
12019 msgstr ""
12020
12021 #. type: verbatim
12022 #: ../fish/guestfish-actions.pod:3934
12023 #, no-wrap
12024 msgid ""
12025 " readlink path\n"
12026 "\n"
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:5947
12031 msgid "This command reads the target of a symbolic link."
12032 msgstr ""
12033
12034 #. type: =head2
12035 #: ../fish/guestfish-actions.pod:3938
12036 msgid "readlinklist"
12037 msgstr ""
12038
12039 #. type: verbatim
12040 #: ../fish/guestfish-actions.pod:3940
12041 #, no-wrap
12042 msgid ""
12043 " readlinklist path 'names ...'\n"
12044 "\n"
12045 msgstr ""
12046
12047 #. type: textblock
12048 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:5961
12049 msgid ""
12050 "This call allows you to do a C<readlink> operation on multiple files, where "
12051 "all files are in the directory C<path>.  C<names> is the list of files from "
12052 "this directory."
12053 msgstr ""
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
12057 msgid ""
12058 "On return you get a list of strings, with a one-to-one correspondence to the "
12059 "C<names> list.  Each string is the value of the symbolic link."
12060 msgstr ""
12061
12062 #. type: textblock
12063 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
12064 msgid ""
12065 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12066 "result string is the empty string C<\"\">.  However the whole operation is "
12067 "completed even if there were C<readlink(2)> errors, and so you can call this "
12068 "function with names where you don't know if they are symbolic links already "
12069 "(albeit slightly less efficient)."
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5976
12074 msgid ""
12075 "This call is intended for programs that want to efficiently list a directory "
12076 "contents without making many round-trips.  Very long directory listings "
12077 "might cause the protocol message size to be exceeded, causing this call to "
12078 "fail.  The caller must split up such requests into smaller groups of names."
12079 msgstr ""
12080
12081 #. type: =head2
12082 #: ../fish/guestfish-actions.pod:3964
12083 msgid "realpath"
12084 msgstr ""
12085
12086 #. type: verbatim
12087 #: ../fish/guestfish-actions.pod:3966
12088 #, no-wrap
12089 msgid ""
12090 " realpath path\n"
12091 "\n"
12092 msgstr ""
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:5995
12096 msgid ""
12097 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12098 "has no C<.>, C<..> or symbolic link path elements."
12099 msgstr ""
12100
12101 #. type: =head2
12102 #: ../fish/guestfish-actions.pod:3971
12103 msgid "removexattr"
12104 msgstr ""
12105
12106 #. type: verbatim
12107 #: ../fish/guestfish-actions.pod:3973
12108 #, no-wrap
12109 msgid ""
12110 " removexattr xattr path\n"
12111 "\n"
12112 msgstr ""
12113
12114 #. type: textblock
12115 #: ../fish/guestfish-actions.pod:3975 ../src/guestfs-actions.pod:6010
12116 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3978
12121 msgid "See also: L</lremovexattr>, L<attr(5)>."
12122 msgstr ""
12123
12124 #. type: =head2
12125 #: ../fish/guestfish-actions.pod:3980
12126 msgid "resize2fs"
12127 msgstr ""
12128
12129 #. type: verbatim
12130 #: ../fish/guestfish-actions.pod:3982
12131 #, no-wrap
12132 msgid ""
12133 " resize2fs device\n"
12134 "\n"
12135 msgstr ""
12136
12137 #. type: textblock
12138 #: ../fish/guestfish-actions.pod:3984 ../src/guestfs-actions.pod:6025
12139 msgid ""
12140 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12141 "underlying device."
12142 msgstr ""
12143
12144 #. type: textblock
12145 #: ../fish/guestfish-actions.pod:3987
12146 msgid ""
12147 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12148 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12149 "gives an error about this and sometimes not.  In any case, it is always safe "
12150 "to call L</e2fsck-f> before calling this function."
12151 msgstr ""
12152
12153 #. type: =head2
12154 #: ../fish/guestfish-actions.pod:3993
12155 msgid "resize2fs-M"
12156 msgstr ""
12157
12158 #. type: verbatim
12159 #: ../fish/guestfish-actions.pod:3995
12160 #, no-wrap
12161 msgid ""
12162 " resize2fs-M device\n"
12163 "\n"
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:3997
12168 msgid ""
12169 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12170 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12171 "command."
12172 msgstr ""
12173
12174 #. type: textblock
12175 #: ../fish/guestfish-actions.pod:4001
12176 msgid ""
12177 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12178 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12179 "multiplied together, give the resulting size of the minimal filesystem in "
12180 "bytes."
12181 msgstr ""
12182
12183 #. type: =head2
12184 #: ../fish/guestfish-actions.pod:4006
12185 msgid "resize2fs-size"
12186 msgstr ""
12187
12188 #. type: verbatim
12189 #: ../fish/guestfish-actions.pod:4008
12190 #, no-wrap
12191 msgid ""
12192 " resize2fs-size device size\n"
12193 "\n"
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:4010
12198 msgid ""
12199 "This command is the same as L</resize2fs> except that it allows you to "
12200 "specify the new size (in bytes) explicitly."
12201 msgstr ""
12202
12203 #. type: =head2
12204 #: ../fish/guestfish-actions.pod:4013
12205 msgid "rm"
12206 msgstr ""
12207
12208 #. type: verbatim
12209 #: ../fish/guestfish-actions.pod:4015
12210 #, no-wrap
12211 msgid ""
12212 " rm path\n"
12213 "\n"
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:4017 ../src/guestfs-actions.pod:6077
12218 msgid "Remove the single file C<path>."
12219 msgstr ""
12220
12221 #. type: =head2
12222 #: ../fish/guestfish-actions.pod:4019
12223 msgid "rm-rf"
12224 msgstr ""
12225
12226 #. type: verbatim
12227 #: ../fish/guestfish-actions.pod:4021
12228 #, no-wrap
12229 msgid ""
12230 " rm-rf path\n"
12231 "\n"
12232 msgstr ""
12233
12234 #. type: textblock
12235 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6089
12236 msgid ""
12237 "Remove the file or directory C<path>, recursively removing the contents if "
12238 "its a directory.  This is like the C<rm -rf> shell command."
12239 msgstr ""
12240
12241 #. type: =head2
12242 #: ../fish/guestfish-actions.pod:4027
12243 msgid "rmdir"
12244 msgstr ""
12245
12246 #. type: verbatim
12247 #: ../fish/guestfish-actions.pod:4029
12248 #, no-wrap
12249 msgid ""
12250 " rmdir path\n"
12251 "\n"
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6103
12256 msgid "Remove the single directory C<path>."
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:4033
12261 msgid "rmmountpoint"
12262 msgstr ""
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:4035
12266 #, no-wrap
12267 msgid ""
12268 " rmmountpoint exemptpath\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:4037
12274 msgid ""
12275 "This calls removes a mountpoint that was previously created with "
12276 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12277 msgstr ""
12278
12279 #. type: =head2
12280 #: ../fish/guestfish-actions.pod:4041
12281 msgid "scrub-device"
12282 msgstr ""
12283
12284 #. type: verbatim
12285 #: ../fish/guestfish-actions.pod:4043
12286 #, no-wrap
12287 msgid ""
12288 " scrub-device device\n"
12289 "\n"
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6129
12294 msgid ""
12295 "This command writes patterns over C<device> to make data retrieval more "
12296 "difficult."
12297 msgstr ""
12298
12299 #. type: textblock
12300 #: ../fish/guestfish-actions.pod:4048 ../fish/guestfish-actions.pod:4063 ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6132 ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
12301 msgid ""
12302 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12303 "more details."
12304 msgstr ""
12305
12306 #. type: =head2
12307 #: ../fish/guestfish-actions.pod:4054
12308 msgid "scrub-file"
12309 msgstr ""
12310
12311 #. type: verbatim
12312 #: ../fish/guestfish-actions.pod:4056
12313 #, no-wrap
12314 msgid ""
12315 " scrub-file file\n"
12316 "\n"
12317 msgstr ""
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6148
12321 msgid ""
12322 "This command writes patterns over a file to make data retrieval more "
12323 "difficult."
12324 msgstr ""
12325
12326 #. type: textblock
12327 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6151
12328 msgid "The file is I<removed> after scrubbing."
12329 msgstr ""
12330
12331 #. type: =head2
12332 #: ../fish/guestfish-actions.pod:4066
12333 msgid "scrub-freespace"
12334 msgstr ""
12335
12336 #. type: verbatim
12337 #: ../fish/guestfish-actions.pod:4068
12338 #, no-wrap
12339 msgid ""
12340 " scrub-freespace dir\n"
12341 "\n"
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:4070
12346 msgid ""
12347 "This command creates the directory C<dir> and then fills it with files until "
12348 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12349 "deletes them.  The intention is to scrub any free space on the partition "
12350 "containing C<dir>."
12351 msgstr ""
12352
12353 #. type: =head2
12354 #: ../fish/guestfish-actions.pod:4079
12355 msgid "set-append"
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:4081
12360 msgid "append"
12361 msgstr ""
12362
12363 #. type: verbatim
12364 #: ../fish/guestfish-actions.pod:4083
12365 #, no-wrap
12366 msgid ""
12367 " set-append append\n"
12368 "\n"
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6185
12373 msgid ""
12374 "This function is used to add additional options to the guest kernel command "
12375 "line."
12376 msgstr ""
12377
12378 #. type: textblock
12379 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6188
12380 msgid ""
12381 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12382 "environment variable."
12383 msgstr ""
12384
12385 #. type: textblock
12386 #: ../fish/guestfish-actions.pod:4091 ../src/guestfs-actions.pod:6191
12387 msgid ""
12388 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12389 "(libguestfs always adds a few of its own)."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:4094
12394 msgid "set-attach-method"
12395 msgstr ""
12396
12397 #. type: =head2
12398 #: ../fish/guestfish-actions.pod:4096
12399 msgid "attach-method"
12400 msgstr ""
12401
12402 #. type: verbatim
12403 #: ../fish/guestfish-actions.pod:4098
12404 #, no-wrap
12405 msgid ""
12406 " set-attach-method attachmethod\n"
12407 "\n"
12408 msgstr ""
12409
12410 #. type: textblock
12411 #: ../fish/guestfish-actions.pod:4100 ../src/guestfs-actions.pod:6204
12412 msgid ""
12413 "Set the method that libguestfs uses to connect to the back end guestfsd "
12414 "daemon.  Possible methods are:"
12415 msgstr ""
12416
12417 #. type: =item
12418 #: ../fish/guestfish-actions.pod:4105 ../src/guestfs-actions.pod:6209 ../src/guestfs.pod:2803
12419 msgid "C<appliance>"
12420 msgstr ""
12421
12422 #. type: textblock
12423 #: ../fish/guestfish-actions.pod:4107 ../src/guestfs-actions.pod:6211
12424 msgid ""
12425 "Launch an appliance and connect to it.  This is the ordinary method and the "
12426 "default."
12427 msgstr ""
12428
12429 #. type: =item
12430 #: ../fish/guestfish-actions.pod:4110 ../src/guestfs-actions.pod:6214
12431 msgid "C<unix:I<path>>"
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:4112 ../src/guestfs-actions.pod:6216
12436 msgid "Connect to the Unix domain socket I<path>."
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
12441 msgid ""
12442 "This method lets you connect to an existing daemon or (using virtio-serial) "
12443 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12444 "RUNNING DAEMONS>."
12445 msgstr ""
12446
12447 #. type: =head2
12448 #: ../fish/guestfish-actions.pod:4120
12449 msgid "set-autosync"
12450 msgstr ""
12451
12452 #. type: =head2
12453 #: ../fish/guestfish-actions.pod:4122
12454 msgid "autosync"
12455 msgstr ""
12456
12457 #. type: verbatim
12458 #: ../fish/guestfish-actions.pod:4124
12459 #, no-wrap
12460 msgid ""
12461 " set-autosync true|false\n"
12462 "\n"
12463 msgstr ""
12464
12465 #. type: textblock
12466 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6234
12467 msgid ""
12468 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12469 "effort attempt to make filesystems consistent and synchronized when the "
12470 "handle is closed (also if the program exits without closing handles)."
12471 msgstr ""
12472
12473 #. type: textblock
12474 #: ../fish/guestfish-actions.pod:4131 ../src/guestfs-actions.pod:6239
12475 msgid ""
12476 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12477 "disabled by default)."
12478 msgstr ""
12479
12480 #. type: =head2
12481 #: ../fish/guestfish-actions.pod:4134
12482 msgid "set-direct"
12483 msgstr ""
12484
12485 #. type: =head2
12486 #: ../fish/guestfish-actions.pod:4136
12487 msgid "direct"
12488 msgstr ""
12489
12490 #. type: verbatim
12491 #: ../fish/guestfish-actions.pod:4138
12492 #, no-wrap
12493 msgid ""
12494 " set-direct true|false\n"
12495 "\n"
12496 msgstr ""
12497
12498 #. type: textblock
12499 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6252
12500 msgid ""
12501 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12502 "passed directly through to the appliance once it is launched."
12503 msgstr ""
12504
12505 #. type: textblock
12506 #: ../fish/guestfish-actions.pod:4144
12507 msgid ""
12508 "One consequence of this is that log messages aren't caught by the library "
12509 "and handled by L</set-log-message-callback>, but go straight to stdout."
12510 msgstr ""
12511
12512 #. type: textblock
12513 #: ../fish/guestfish-actions.pod:4148 ../src/guestfs-actions.pod:6260
12514 msgid "You probably don't want to use this unless you know what you are doing."
12515 msgstr ""
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:4151 ../src/guestfs-actions.pod:6263
12519 msgid "The default is disabled."
12520 msgstr ""
12521
12522 #. type: =head2
12523 #: ../fish/guestfish-actions.pod:4153
12524 msgid "set-e2label"
12525 msgstr ""
12526
12527 #. type: verbatim
12528 #: ../fish/guestfish-actions.pod:4155
12529 #, no-wrap
12530 msgid ""
12531 " set-e2label device label\n"
12532 "\n"
12533 msgstr ""
12534
12535 #. type: textblock
12536 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6276
12537 msgid ""
12538 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12539 "C<label>.  Filesystem labels are limited to 16 characters."
12540 msgstr ""
12541
12542 #. type: textblock
12543 #: ../fish/guestfish-actions.pod:4161
12544 msgid ""
12545 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12546 "label on a filesystem."
12547 msgstr ""
12548
12549 #. type: =head2
12550 #: ../fish/guestfish-actions.pod:4164
12551 msgid "set-e2uuid"
12552 msgstr ""
12553
12554 #. type: verbatim
12555 #: ../fish/guestfish-actions.pod:4166
12556 #, no-wrap
12557 msgid ""
12558 " set-e2uuid device uuid\n"
12559 "\n"
12560 msgstr ""
12561
12562 #. type: textblock
12563 #: ../fish/guestfish-actions.pod:4168 ../src/guestfs-actions.pod:6294
12564 msgid ""
12565 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12566 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12567 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12568 msgstr ""
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:4173
12572 msgid ""
12573 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12574 "UUID of a filesystem."
12575 msgstr ""
12576
12577 #. type: =head2
12578 #: ../fish/guestfish-actions.pod:4176
12579 msgid "set-memsize"
12580 msgstr ""
12581
12582 #. type: =head2
12583 #: ../fish/guestfish-actions.pod:4178
12584 msgid "memsize"
12585 msgstr ""
12586
12587 #. type: verbatim
12588 #: ../fish/guestfish-actions.pod:4180
12589 #, no-wrap
12590 msgid ""
12591 " set-memsize memsize\n"
12592 "\n"
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:4182
12597 msgid ""
12598 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12599 "This only has any effect if called before L</launch>."
12600 msgstr ""
12601
12602 #. type: textblock
12603 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6316
12604 msgid ""
12605 "You can also change this by setting the environment variable "
12606 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12607 msgstr ""
12608
12609 #. type: =head2
12610 #: ../fish/guestfish-actions.pod:4193
12611 msgid "set-network"
12612 msgstr ""
12613
12614 #. type: =head2
12615 #: ../fish/guestfish-actions.pod:4195
12616 msgid "network"
12617 msgstr ""
12618
12619 #. type: verbatim
12620 #: ../fish/guestfish-actions.pod:4197
12621 #, no-wrap
12622 msgid ""
12623 " set-network true|false\n"
12624 "\n"
12625 msgstr ""
12626
12627 #. type: textblock
12628 #: ../fish/guestfish-actions.pod:4199 ../src/guestfs-actions.pod:6333
12629 msgid ""
12630 "If C<network> is true, then the network is enabled in the libguestfs "
12631 "appliance.  The default is false."
12632 msgstr ""
12633
12634 #. type: textblock
12635 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6336
12636 msgid ""
12637 "This affects whether commands are able to access the network (see "
12638 "L<guestfs(3)/RUNNING COMMANDS>)."
12639 msgstr ""
12640
12641 #. type: textblock
12642 #: ../fish/guestfish-actions.pod:4205
12643 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12644 msgstr ""
12645
12646 #. type: =head2
12647 #: ../fish/guestfish-actions.pod:4208
12648 msgid "set-path"
12649 msgstr ""
12650
12651 #. type: verbatim
12652 #: ../fish/guestfish-actions.pod:4212
12653 #, no-wrap
12654 msgid ""
12655 " set-path searchpath\n"
12656 "\n"
12657 msgstr ""
12658
12659 #. type: textblock
12660 #: ../fish/guestfish-actions.pod:4214 ../src/guestfs-actions.pod:6352
12661 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12662 msgstr ""
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:4216 ../src/guestfs-actions.pod:6354
12666 msgid ""
12667 "The default is C<$libdir/guestfs> unless overridden by setting "
12668 "C<LIBGUESTFS_PATH> environment variable."
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:4219 ../src/guestfs-actions.pod:6357
12673 msgid "Setting C<path> to C<NULL> restores the default path."
12674 msgstr ""
12675
12676 #. type: =head2
12677 #: ../fish/guestfish-actions.pod:4221
12678 msgid "set-pgroup"
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:4223
12683 msgid "pgroup"
12684 msgstr ""
12685
12686 #. type: verbatim
12687 #: ../fish/guestfish-actions.pod:4225
12688 #, no-wrap
12689 msgid ""
12690 " set-pgroup true|false\n"
12691 "\n"
12692 msgstr ""
12693
12694 #. type: textblock
12695 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6369
12696 msgid ""
12697 "If C<pgroup> is true, child processes are placed into their own process "
12698 "group."
12699 msgstr ""
12700
12701 #. type: textblock
12702 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6372
12703 msgid ""
12704 "The practical upshot of this is that signals like C<SIGINT> (from users "
12705 "pressing C<^C>) won't be received by the child process."
12706 msgstr ""
12707
12708 #. type: textblock
12709 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6375
12710 msgid ""
12711 "The default for this flag is false, because usually you want C<^C> to kill "
12712 "the subprocess."
12713 msgstr ""
12714
12715 #. type: =head2
12716 #: ../fish/guestfish-actions.pod:4236
12717 msgid "set-qemu"
12718 msgstr ""
12719
12720 #. type: =head2
12721 #: ../fish/guestfish-actions.pod:4238
12722 msgid "qemu"
12723 msgstr ""
12724
12725 #. type: verbatim
12726 #: ../fish/guestfish-actions.pod:4240
12727 #, no-wrap
12728 msgid ""
12729 " set-qemu qemu\n"
12730 "\n"
12731 msgstr ""
12732
12733 #. type: textblock
12734 #: ../fish/guestfish-actions.pod:4242 ../src/guestfs-actions.pod:6388
12735 msgid "Set the qemu binary that we will use."
12736 msgstr ""
12737
12738 #. type: textblock
12739 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6390
12740 msgid "The default is chosen when the library was compiled by the configure script."
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6393
12745 msgid ""
12746 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12747 "variable."
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../fish/guestfish-actions.pod:4250 ../src/guestfs-actions.pod:6396
12752 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12753 msgstr ""
12754
12755 #. type: textblock
12756 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6398
12757 msgid ""
12758 "Note that you should call this function as early as possible after creating "
12759 "the handle.  This is because some pre-launch operations depend on testing "
12760 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12761 "don't retest features, and so you might see inconsistent results.  Using the "
12762 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12763 "the qemu binary at the same time as the handle is created."
12764 msgstr ""
12765
12766 #. type: =head2
12767 #: ../fish/guestfish-actions.pod:4260
12768 msgid "set-recovery-proc"
12769 msgstr ""
12770
12771 #. type: =head2
12772 #: ../fish/guestfish-actions.pod:4262
12773 msgid "recovery-proc"
12774 msgstr ""
12775
12776 #. type: verbatim
12777 #: ../fish/guestfish-actions.pod:4264
12778 #, no-wrap
12779 msgid ""
12780 " set-recovery-proc true|false\n"
12781 "\n"
12782 msgstr ""
12783
12784 #. type: textblock
12785 #: ../fish/guestfish-actions.pod:4266
12786 msgid ""
12787 "If this is called with the parameter C<false> then L</launch> does not "
12788 "create a recovery process.  The purpose of the recovery process is to stop "
12789 "runaway qemu processes in the case where the main program aborts abruptly."
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:4271
12794 msgid ""
12795 "This only has any effect if called before L</launch>, and the default is "
12796 "true."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6424
12801 msgid ""
12802 "About the only time when you would want to disable this is if the main "
12803 "process will fork itself into the background (\"daemonize\" itself).  In "
12804 "this case the recovery process thinks that the main program has disappeared "
12805 "and so kills qemu, which is not very helpful."
12806 msgstr ""
12807
12808 #. type: =head2
12809 #: ../fish/guestfish-actions.pod:4280
12810 msgid "set-selinux"
12811 msgstr ""
12812
12813 #. type: =head2
12814 #: ../fish/guestfish-actions.pod:4282
12815 msgid "selinux"
12816 msgstr ""
12817
12818 #. type: verbatim
12819 #: ../fish/guestfish-actions.pod:4284
12820 #, no-wrap
12821 msgid ""
12822 " set-selinux true|false\n"
12823 "\n"
12824 msgstr ""
12825
12826 #. type: textblock
12827 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6440
12828 msgid ""
12829 "This sets the selinux flag that is passed to the appliance at boot time.  "
12830 "The default is C<selinux=0> (disabled)."
12831 msgstr ""
12832
12833 #. type: textblock
12834 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6443
12835 msgid ""
12836 "Note that if SELinux is enabled, it is always in Permissive mode "
12837 "(C<enforcing=0>)."
12838 msgstr ""
12839
12840 #. type: =head2
12841 #: ../fish/guestfish-actions.pod:4295
12842 msgid "set-trace"
12843 msgstr ""
12844
12845 #. type: =head2
12846 #: ../fish/guestfish-actions.pod:4297
12847 msgid "trace"
12848 msgstr ""
12849
12850 #. type: verbatim
12851 #: ../fish/guestfish-actions.pod:4299
12852 #, no-wrap
12853 msgid ""
12854 " set-trace true|false\n"
12855 "\n"
12856 msgstr ""
12857
12858 #. type: textblock
12859 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6459
12860 msgid ""
12861 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
12862 "return values are traced."
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6462
12867 msgid ""
12868 "If you want to trace C API calls into libguestfs (and other libraries) then "
12869 "possibly a better way is to use the external ltrace(1) command."
12870 msgstr ""
12871
12872 #. type: textblock
12873 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
12874 msgid ""
12875 "Command traces are disabled unless the environment variable "
12876 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12877 msgstr ""
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:4311
12881 msgid ""
12882 "Trace messages are normally sent to C<stderr>, unless you register a "
12883 "callback to send them somewhere else (see L</set-event-callback>)."
12884 msgstr ""
12885
12886 #. type: =head2
12887 #: ../fish/guestfish-actions.pod:4315
12888 msgid "set-verbose"
12889 msgstr ""
12890
12891 #. type: =head2
12892 #: ../fish/guestfish-actions.pod:4317
12893 msgid "verbose"
12894 msgstr ""
12895
12896 #. type: verbatim
12897 #: ../fish/guestfish-actions.pod:4319
12898 #, no-wrap
12899 msgid ""
12900 " set-verbose true|false\n"
12901 "\n"
12902 msgstr ""
12903
12904 #. type: textblock
12905 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6483
12906 msgid "If C<verbose> is true, this turns on verbose messages."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:4323 ../src/guestfs-actions.pod:6485
12911 msgid ""
12912 "Verbose messages are disabled unless the environment variable "
12913 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:4326
12918 msgid ""
12919 "Verbose messages are normally sent to C<stderr>, unless you register a "
12920 "callback to send them somewhere else (see L</set-event-callback>)."
12921 msgstr ""
12922
12923 #. type: =head2
12924 #: ../fish/guestfish-actions.pod:4330
12925 msgid "setcon"
12926 msgstr ""
12927
12928 #. type: verbatim
12929 #: ../fish/guestfish-actions.pod:4332
12930 #, no-wrap
12931 msgid ""
12932 " setcon context\n"
12933 "\n"
12934 msgstr ""
12935
12936 #. type: textblock
12937 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6502
12938 msgid ""
12939 "This sets the SELinux security context of the daemon to the string "
12940 "C<context>."
12941 msgstr ""
12942
12943 #. type: textblock
12944 #: ../fish/guestfish-actions.pod:4337 ../src/guestfs-actions.pod:6505
12945 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12946 msgstr ""
12947
12948 #. type: =head2
12949 #: ../fish/guestfish-actions.pod:4339
12950 msgid "setxattr"
12951 msgstr ""
12952
12953 #. type: verbatim
12954 #: ../fish/guestfish-actions.pod:4341
12955 #, no-wrap
12956 msgid ""
12957 " setxattr xattr val vallen path\n"
12958 "\n"
12959 msgstr ""
12960
12961 #. type: textblock
12962 #: ../fish/guestfish-actions.pod:4343 ../src/guestfs-actions.pod:6520
12963 msgid ""
12964 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12965 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12966 msgstr ""
12967
12968 #. type: textblock
12969 #: ../fish/guestfish-actions.pod:4347
12970 msgid "See also: L</lsetxattr>, L<attr(5)>."
12971 msgstr ""
12972
12973 #. type: =head2
12974 #: ../fish/guestfish-actions.pod:4349
12975 msgid "sfdisk"
12976 msgstr ""
12977
12978 #. type: verbatim
12979 #: ../fish/guestfish-actions.pod:4351
12980 #, no-wrap
12981 msgid ""
12982 " sfdisk device cyls heads sectors 'lines ...'\n"
12983 "\n"
12984 msgstr ""
12985
12986 #. type: textblock
12987 #: ../fish/guestfish-actions.pod:4353 ../src/guestfs-actions.pod:6540
12988 msgid ""
12989 "This is a direct interface to the L<sfdisk(8)> program for creating "
12990 "partitions on block devices."
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:4356 ../src/guestfs-actions.pod:6543
12995 msgid "C<device> should be a block device, for example C</dev/sda>."
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6545
13000 msgid ""
13001 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
13002 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
13003 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
13004 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
13005 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
13006 "the kernel) cannot work out the right geometry and you will need to tell it."
13007 msgstr ""
13008
13009 #. type: textblock
13010 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6553
13011 msgid ""
13012 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
13013 "refer to the L<sfdisk(8)> manpage."
13014 msgstr ""
13015
13016 #. type: textblock
13017 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6556
13018 msgid ""
13019 "To create a single partition occupying the whole disk, you would pass "
13020 "C<lines> as a single element list, when the single element being the string "
13021 "C<,> (comma)."
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:4373
13026 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13027 msgstr ""
13028
13029 #. type: textblock
13030 #: ../fish/guestfish-actions.pod:4379 ../fish/guestfish-actions.pod:4402 ../fish/guestfish-actions.pod:4424
13031 msgid ""
13032 "This function is deprecated.  In new code, use the L</part_add> call "
13033 "instead."
13034 msgstr ""
13035
13036 #. type: =head2
13037 #: ../fish/guestfish-actions.pod:4386
13038 msgid "sfdiskM"
13039 msgstr ""
13040
13041 #. type: verbatim
13042 #: ../fish/guestfish-actions.pod:4388
13043 #, no-wrap
13044 msgid ""
13045 " sfdiskM device 'lines ...'\n"
13046 "\n"
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:4390
13051 msgid ""
13052 "This is a simplified interface to the L</sfdisk> command, where partition "
13053 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13054 "you don't need to specify the cyls, heads and sectors parameters which were "
13055 "rarely if ever used anyway."
13056 msgstr ""
13057
13058 #. type: textblock
13059 #: ../fish/guestfish-actions.pod:4396
13060 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13061 msgstr ""
13062
13063 #. type: =head2
13064 #: ../fish/guestfish-actions.pod:4409
13065 msgid "sfdisk-N"
13066 msgstr ""
13067
13068 #. type: verbatim
13069 #: ../fish/guestfish-actions.pod:4411
13070 #, no-wrap
13071 msgid ""
13072 " sfdisk-N device partnum cyls heads sectors line\n"
13073 "\n"
13074 msgstr ""
13075
13076 #. type: textblock
13077 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6618
13078 msgid ""
13079 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13080 "(note: C<n> counts from 1)."
13081 msgstr ""
13082
13083 #. type: textblock
13084 #: ../fish/guestfish-actions.pod:4416
13085 msgid ""
13086 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13087 "cyls/heads/sectors parameters."
13088 msgstr ""
13089
13090 #. type: textblock
13091 #: ../fish/guestfish-actions.pod:4419
13092 msgid "See also: L</part-add>"
13093 msgstr ""
13094
13095 #. type: =head2
13096 #: ../fish/guestfish-actions.pod:4431
13097 msgid "sfdisk-disk-geometry"
13098 msgstr ""
13099
13100 #. type: verbatim
13101 #: ../fish/guestfish-actions.pod:4433
13102 #, no-wrap
13103 msgid ""
13104 " sfdisk-disk-geometry device\n"
13105 "\n"
13106 msgstr ""
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:4435
13110 msgid ""
13111 "This displays the disk geometry of C<device> read from the partition table.  "
13112 "Especially in the case where the underlying block device has been resized, "
13113 "this can be different from the kernel's idea of the geometry (see "
13114 "L</sfdisk-kernel-geometry>)."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:4440 ../fish/guestfish-actions.pod:4449 ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6667
13119 msgid "The result is in human-readable format, and not designed to be parsed."
13120 msgstr ""
13121
13122 #. type: =head2
13123 #: ../fish/guestfish-actions.pod:4443
13124 msgid "sfdisk-kernel-geometry"
13125 msgstr ""
13126
13127 #. type: verbatim
13128 #: ../fish/guestfish-actions.pod:4445
13129 #, no-wrap
13130 msgid ""
13131 " sfdisk-kernel-geometry device\n"
13132 "\n"
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../fish/guestfish-actions.pod:4447 ../src/guestfs-actions.pod:6665
13137 msgid "This displays the kernel's idea of the geometry of C<device>."
13138 msgstr ""
13139
13140 #. type: =head2
13141 #: ../fish/guestfish-actions.pod:4452
13142 msgid "sfdisk-l"
13143 msgstr ""
13144
13145 #. type: verbatim
13146 #: ../fish/guestfish-actions.pod:4454
13147 #, no-wrap
13148 msgid ""
13149 " sfdisk-l device\n"
13150 "\n"
13151 msgstr ""
13152
13153 #. type: textblock
13154 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6681
13155 msgid ""
13156 "This displays the partition table on C<device>, in the human-readable output "
13157 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13158 msgstr ""
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:4460
13162 msgid "See also: L</part-list>"
13163 msgstr ""
13164
13165 #. type: textblock
13166 #: ../fish/guestfish-actions.pod:4462
13167 msgid ""
13168 "This function is deprecated.  In new code, use the L</part_list> call "
13169 "instead."
13170 msgstr ""
13171
13172 #. type: =head2
13173 #: ../fish/guestfish-actions.pod:4469
13174 msgid "sh"
13175 msgstr ""
13176
13177 #. type: verbatim
13178 #: ../fish/guestfish-actions.pod:4471
13179 #, no-wrap
13180 msgid ""
13181 " sh command\n"
13182 "\n"
13183 msgstr ""
13184
13185 #. type: textblock
13186 #: ../fish/guestfish-actions.pod:4473 ../src/guestfs-actions.pod:6705
13187 msgid ""
13188 "This call runs a command from the guest filesystem via the guest's "
13189 "C</bin/sh>."
13190 msgstr ""
13191
13192 #. type: textblock
13193 #: ../fish/guestfish-actions.pod:4476
13194 msgid "This is like L</command>, but passes the command to:"
13195 msgstr ""
13196
13197 #. type: verbatim
13198 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6710
13199 #, no-wrap
13200 msgid ""
13201 " /bin/sh -c \"command\"\n"
13202 "\n"
13203 msgstr ""
13204
13205 #. type: textblock
13206 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6712
13207 msgid ""
13208 "Depending on the guest's shell, this usually results in wildcards being "
13209 "expanded, shell expressions being interpolated and so on."
13210 msgstr ""
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:4484
13214 msgid "All the provisos about L</command> apply to this call."
13215 msgstr ""
13216
13217 #. type: =head2
13218 #: ../fish/guestfish-actions.pod:4486
13219 msgid "sh-lines"
13220 msgstr ""
13221
13222 #. type: verbatim
13223 #: ../fish/guestfish-actions.pod:4488
13224 #, no-wrap
13225 msgid ""
13226 " sh-lines command\n"
13227 "\n"
13228 msgstr ""
13229
13230 #. type: textblock
13231 #: ../fish/guestfish-actions.pod:4490
13232 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13233 msgstr ""
13234
13235 #. type: textblock
13236 #: ../fish/guestfish-actions.pod:4493
13237 msgid "See also: L</command-lines>"
13238 msgstr ""
13239
13240 #. type: =head2
13241 #: ../fish/guestfish-actions.pod:4495
13242 msgid "sleep"
13243 msgstr ""
13244
13245 #. type: verbatim
13246 #: ../fish/guestfish-actions.pod:4497
13247 #, no-wrap
13248 msgid ""
13249 " sleep secs\n"
13250 "\n"
13251 msgstr ""
13252
13253 #. type: textblock
13254 #: ../fish/guestfish-actions.pod:4499 ../src/guestfs-actions.pod:6746
13255 msgid "Sleep for C<secs> seconds."
13256 msgstr ""
13257
13258 #. type: =head2
13259 #: ../fish/guestfish-actions.pod:4501
13260 msgid "stat"
13261 msgstr ""
13262
13263 #. type: verbatim
13264 #: ../fish/guestfish-actions.pod:4503
13265 #, no-wrap
13266 msgid ""
13267 " stat path\n"
13268 "\n"
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:4507 ../src/guestfs-actions.pod:6760
13273 msgid "This is the same as the C<stat(2)> system call."
13274 msgstr ""
13275
13276 #. type: =head2
13277 #: ../fish/guestfish-actions.pod:4509
13278 msgid "statvfs"
13279 msgstr ""
13280
13281 #. type: verbatim
13282 #: ../fish/guestfish-actions.pod:4511
13283 #, no-wrap
13284 msgid ""
13285 " statvfs path\n"
13286 "\n"
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6774
13291 msgid ""
13292 "Returns file system statistics for any mounted file system.  C<path> should "
13293 "be a file or directory in the mounted file system (typically it is the mount "
13294 "point itself, but it doesn't need to be)."
13295 msgstr ""
13296
13297 #. type: textblock
13298 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
13299 msgid "This is the same as the C<statvfs(2)> system call."
13300 msgstr ""
13301
13302 #. type: =head2
13303 #: ../fish/guestfish-actions.pod:4519
13304 msgid "strings"
13305 msgstr ""
13306
13307 #. type: verbatim
13308 #: ../fish/guestfish-actions.pod:4521
13309 #, no-wrap
13310 msgid ""
13311 " strings path\n"
13312 "\n"
13313 msgstr ""
13314
13315 #. type: textblock
13316 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6792
13317 msgid ""
13318 "This runs the L<strings(1)> command on a file and returns the list of "
13319 "printable strings found."
13320 msgstr ""
13321
13322 #. type: =head2
13323 #: ../fish/guestfish-actions.pod:4529
13324 msgid "strings-e"
13325 msgstr ""
13326
13327 #. type: verbatim
13328 #: ../fish/guestfish-actions.pod:4531
13329 #, no-wrap
13330 msgid ""
13331 " strings-e encoding path\n"
13332 "\n"
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:4533
13337 msgid ""
13338 "This is like the L</strings> command, but allows you to specify the encoding "
13339 "of strings that are looked for in the source file C<path>."
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13344 msgid "Allowed encodings are:"
13345 msgstr ""
13346
13347 #. type: =item
13348 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
13349 msgid "s"
13350 msgstr ""
13351
13352 #. type: textblock
13353 #: ../fish/guestfish-actions.pod:4543
13354 msgid ""
13355 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13356 "ISO-8859-X (this is what L</strings> uses)."
13357 msgstr ""
13358
13359 #. type: =item
13360 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6824
13361 msgid "S"
13362 msgstr ""
13363
13364 #. type: textblock
13365 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13366 msgid "Single 8-bit-byte characters."
13367 msgstr ""
13368
13369 #. type: =item
13370 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
13371 msgid "b"
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
13376 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13377 msgstr ""
13378
13379 #. type: =item
13380 #: ../fish/guestfish-actions.pod:4555 ../src/guestfs-actions.pod:6833
13381 msgid "l (lower case letter L)"
13382 msgstr ""
13383
13384 #. type: textblock
13385 #: ../fish/guestfish-actions.pod:4557 ../src/guestfs-actions.pod:6835
13386 msgid ""
13387 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13388 "examining binaries in Windows guests."
13389 msgstr ""
13390
13391 #. type: =item
13392 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6838
13393 msgid "B"
13394 msgstr ""
13395
13396 #. type: textblock
13397 #: ../fish/guestfish-actions.pod:4562 ../src/guestfs-actions.pod:6840
13398 msgid "32-bit big endian such as UCS-4BE."
13399 msgstr ""
13400
13401 #. type: =item
13402 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
13403 msgid "L"
13404 msgstr ""
13405
13406 #. type: textblock
13407 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
13408 msgid "32-bit little endian such as UCS-4LE."
13409 msgstr ""
13410
13411 #. type: textblock
13412 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
13413 msgid "The returned strings are transcoded to UTF-8."
13414 msgstr ""
13415
13416 #. type: =head2
13417 #: ../fish/guestfish-actions.pod:4575
13418 msgid "swapoff-device"
13419 msgstr ""
13420
13421 #. type: verbatim
13422 #: ../fish/guestfish-actions.pod:4577
13423 #, no-wrap
13424 msgid ""
13425 " swapoff-device device\n"
13426 "\n"
13427 msgstr ""
13428
13429 #. type: textblock
13430 #: ../fish/guestfish-actions.pod:4579
13431 msgid ""
13432 "This command disables the libguestfs appliance swap device or partition "
13433 "named C<device>.  See L</swapon-device>."
13434 msgstr ""
13435
13436 #. type: =head2
13437 #: ../fish/guestfish-actions.pod:4583
13438 msgid "swapoff-file"
13439 msgstr ""
13440
13441 #. type: verbatim
13442 #: ../fish/guestfish-actions.pod:4585
13443 #, no-wrap
13444 msgid ""
13445 " swapoff-file file\n"
13446 "\n"
13447 msgstr ""
13448
13449 #. type: textblock
13450 #: ../fish/guestfish-actions.pod:4587 ../src/guestfs-actions.pod:6879
13451 msgid "This command disables the libguestfs appliance swap on file."
13452 msgstr ""
13453
13454 #. type: =head2
13455 #: ../fish/guestfish-actions.pod:4589
13456 msgid "swapoff-label"
13457 msgstr ""
13458
13459 #. type: verbatim
13460 #: ../fish/guestfish-actions.pod:4591
13461 #, no-wrap
13462 msgid ""
13463 " swapoff-label label\n"
13464 "\n"
13465 msgstr ""
13466
13467 #. type: textblock
13468 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6891
13469 msgid ""
13470 "This command disables the libguestfs appliance swap on labeled swap "
13471 "partition."
13472 msgstr ""
13473
13474 #. type: =head2
13475 #: ../fish/guestfish-actions.pod:4596
13476 msgid "swapoff-uuid"
13477 msgstr ""
13478
13479 #. type: verbatim
13480 #: ../fish/guestfish-actions.pod:4598
13481 #, no-wrap
13482 msgid ""
13483 " swapoff-uuid uuid\n"
13484 "\n"
13485 msgstr ""
13486
13487 #. type: textblock
13488 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:6904
13489 msgid ""
13490 "This command disables the libguestfs appliance swap partition with the given "
13491 "UUID."
13492 msgstr ""
13493
13494 #. type: =head2
13495 #: ../fish/guestfish-actions.pod:4603
13496 msgid "swapon-device"
13497 msgstr ""
13498
13499 #. type: verbatim
13500 #: ../fish/guestfish-actions.pod:4605
13501 #, no-wrap
13502 msgid ""
13503 " swapon-device device\n"
13504 "\n"
13505 msgstr ""
13506
13507 #. type: textblock
13508 #: ../fish/guestfish-actions.pod:4607
13509 msgid ""
13510 "This command enables the libguestfs appliance to use the swap device or "
13511 "partition named C<device>.  The increased memory is made available for all "
13512 "commands, for example those run using L</command> or L</sh>."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6922
13517 msgid ""
13518 "Note that you should not swap to existing guest swap partitions unless you "
13519 "know what you are doing.  They may contain hibernation information, or other "
13520 "information that the guest doesn't want you to trash.  You also risk leaking "
13521 "information about the host to the guest this way.  Instead, attach a new "
13522 "host device to the guest and swap on that."
13523 msgstr ""
13524
13525 #. type: =head2
13526 #: ../fish/guestfish-actions.pod:4619
13527 msgid "swapon-file"
13528 msgstr ""
13529
13530 #. type: verbatim
13531 #: ../fish/guestfish-actions.pod:4621
13532 #, no-wrap
13533 msgid ""
13534 " swapon-file file\n"
13535 "\n"
13536 msgstr ""
13537
13538 #. type: textblock
13539 #: ../fish/guestfish-actions.pod:4623
13540 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13541 msgstr ""
13542
13543 #. type: =head2
13544 #: ../fish/guestfish-actions.pod:4626
13545 msgid "swapon-label"
13546 msgstr ""
13547
13548 #. type: verbatim
13549 #: ../fish/guestfish-actions.pod:4628
13550 #, no-wrap
13551 msgid ""
13552 " swapon-label label\n"
13553 "\n"
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:4630
13558 msgid ""
13559 "This command enables swap to a labeled swap partition.  See "
13560 "L</swapon-device> for other notes."
13561 msgstr ""
13562
13563 #. type: =head2
13564 #: ../fish/guestfish-actions.pod:4633
13565 msgid "swapon-uuid"
13566 msgstr ""
13567
13568 #. type: verbatim
13569 #: ../fish/guestfish-actions.pod:4635
13570 #, no-wrap
13571 msgid ""
13572 " swapon-uuid uuid\n"
13573 "\n"
13574 msgstr ""
13575
13576 #. type: textblock
13577 #: ../fish/guestfish-actions.pod:4637
13578 msgid ""
13579 "This command enables swap to a swap partition with the given UUID.  See "
13580 "L</swapon-device> for other notes."
13581 msgstr ""
13582
13583 #. type: =head2
13584 #: ../fish/guestfish-actions.pod:4640
13585 msgid "sync"
13586 msgstr ""
13587
13588 #. type: verbatim
13589 #: ../fish/guestfish-actions.pod:4642
13590 #, no-wrap
13591 msgid ""
13592 " sync\n"
13593 "\n"
13594 msgstr ""
13595
13596 #. type: textblock
13597 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:6977
13598 msgid ""
13599 "This syncs the disk, so that any writes are flushed through to the "
13600 "underlying disk image."
13601 msgstr ""
13602
13603 #. type: textblock
13604 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:6980
13605 msgid ""
13606 "You should always call this if you have modified a disk image, before "
13607 "closing the handle."
13608 msgstr ""
13609
13610 #. type: =head2
13611 #: ../fish/guestfish-actions.pod:4650
13612 msgid "tail"
13613 msgstr ""
13614
13615 #. type: verbatim
13616 #: ../fish/guestfish-actions.pod:4652
13617 #, no-wrap
13618 msgid ""
13619 " tail path\n"
13620 "\n"
13621 msgstr ""
13622
13623 #. type: textblock
13624 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:6993
13625 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13626 msgstr ""
13627
13628 #. type: =head2
13629 #: ../fish/guestfish-actions.pod:4660
13630 msgid "tail-n"
13631 msgstr ""
13632
13633 #. type: verbatim
13634 #: ../fish/guestfish-actions.pod:4662
13635 #, no-wrap
13636 msgid ""
13637 " tail-n nrlines path\n"
13638 "\n"
13639 msgstr ""
13640
13641 #. type: textblock
13642 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7012
13643 msgid ""
13644 "If the parameter C<nrlines> is a positive number, this returns the last "
13645 "C<nrlines> lines of the file C<path>."
13646 msgstr ""
13647
13648 #. type: textblock
13649 #: ../fish/guestfish-actions.pod:4667 ../src/guestfs-actions.pod:7015
13650 msgid ""
13651 "If the parameter C<nrlines> is a negative number, this returns lines from "
13652 "the file C<path>, starting with the C<-nrlines>th line."
13653 msgstr ""
13654
13655 #. type: =head2
13656 #: ../fish/guestfish-actions.pod:4675
13657 msgid "tar-in"
13658 msgstr ""
13659
13660 #. type: verbatim
13661 #: ../fish/guestfish-actions.pod:4677
13662 #, no-wrap
13663 msgid ""
13664 " tar-in (tarfile|-) directory\n"
13665 "\n"
13666 msgstr ""
13667
13668 #. type: textblock
13669 #: ../fish/guestfish-actions.pod:4679 ../src/guestfs-actions.pod:7036
13670 msgid ""
13671 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13672 "tar file) into C<directory>."
13673 msgstr ""
13674
13675 #. type: textblock
13676 #: ../fish/guestfish-actions.pod:4682
13677 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13678 msgstr ""
13679
13680 #. type: =head2
13681 #: ../fish/guestfish-actions.pod:4687
13682 msgid "tar-out"
13683 msgstr ""
13684
13685 #. type: verbatim
13686 #: ../fish/guestfish-actions.pod:4689
13687 #, no-wrap
13688 msgid ""
13689 " tar-out directory (tarfile|-)\n"
13690 "\n"
13691 msgstr ""
13692
13693 #. type: textblock
13694 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7053
13695 msgid ""
13696 "This command packs the contents of C<directory> and downloads it to local "
13697 "file C<tarfile>."
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:4694
13702 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
13703 msgstr ""
13704
13705 #. type: =head2
13706 #: ../fish/guestfish-actions.pod:4699
13707 msgid "tgz-in"
13708 msgstr ""
13709
13710 #. type: verbatim
13711 #: ../fish/guestfish-actions.pod:4701
13712 #, no-wrap
13713 msgid ""
13714 " tgz-in (tarball|-) directory\n"
13715 "\n"
13716 msgstr ""
13717
13718 #. type: textblock
13719 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7070
13720 msgid ""
13721 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13722 "tar file) into C<directory>."
13723 msgstr ""
13724
13725 #. type: textblock
13726 #: ../fish/guestfish-actions.pod:4706
13727 msgid "To upload an uncompressed tarball, use L</tar-in>."
13728 msgstr ""
13729
13730 #. type: =head2
13731 #: ../fish/guestfish-actions.pod:4710
13732 msgid "tgz-out"
13733 msgstr ""
13734
13735 #. type: verbatim
13736 #: ../fish/guestfish-actions.pod:4712
13737 #, no-wrap
13738 msgid ""
13739 " tgz-out directory (tarball|-)\n"
13740 "\n"
13741 msgstr ""
13742
13743 #. type: textblock
13744 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7086
13745 msgid ""
13746 "This command packs the contents of C<directory> and downloads it to local "
13747 "file C<tarball>."
13748 msgstr ""
13749
13750 #. type: textblock
13751 #: ../fish/guestfish-actions.pod:4717
13752 msgid "To download an uncompressed tarball, use L</tar-out>."
13753 msgstr ""
13754
13755 #. type: =head2
13756 #: ../fish/guestfish-actions.pod:4721
13757 msgid "touch"
13758 msgstr ""
13759
13760 #. type: verbatim
13761 #: ../fish/guestfish-actions.pod:4723
13762 #, no-wrap
13763 msgid ""
13764 " touch path\n"
13765 "\n"
13766 msgstr ""
13767
13768 #. type: textblock
13769 #: ../fish/guestfish-actions.pod:4725 ../src/guestfs-actions.pod:7101
13770 msgid ""
13771 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13772 "timestamps on a file, or, if the file does not exist, to create a new "
13773 "zero-length file."
13774 msgstr ""
13775
13776 #. type: textblock
13777 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
13778 msgid ""
13779 "This command only works on regular files, and will fail on other file types "
13780 "such as directories, symbolic links, block special etc."
13781 msgstr ""
13782
13783 #. type: =head2
13784 #: ../fish/guestfish-actions.pod:4732
13785 msgid "truncate"
13786 msgstr ""
13787
13788 #. type: verbatim
13789 #: ../fish/guestfish-actions.pod:4734
13790 #, no-wrap
13791 msgid ""
13792 " truncate path\n"
13793 "\n"
13794 msgstr ""
13795
13796 #. type: textblock
13797 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7118
13798 msgid ""
13799 "This command truncates C<path> to a zero-length file.  The file must exist "
13800 "already."
13801 msgstr ""
13802
13803 #. type: =head2
13804 #: ../fish/guestfish-actions.pod:4739
13805 msgid "truncate-size"
13806 msgstr ""
13807
13808 #. type: verbatim
13809 #: ../fish/guestfish-actions.pod:4741
13810 #, no-wrap
13811 msgid ""
13812 " truncate-size path size\n"
13813 "\n"
13814 msgstr ""
13815
13816 #. type: textblock
13817 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7132
13818 msgid ""
13819 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13820 "already."
13821 msgstr ""
13822
13823 #. type: textblock
13824 #: ../fish/guestfish-actions.pod:4746
13825 msgid ""
13826 "If the current file size is less than C<size> then the file is extended to "
13827 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13828 "blocks are not allocated for the file until you write to it).  To create a "
13829 "non-sparse file of zeroes, use L</fallocate64> instead."
13830 msgstr ""
13831
13832 #. type: =head2
13833 #: ../fish/guestfish-actions.pod:4752
13834 msgid "tune2fs-l"
13835 msgstr ""
13836
13837 #. type: verbatim
13838 #: ../fish/guestfish-actions.pod:4754
13839 #, no-wrap
13840 msgid ""
13841 " tune2fs-l device\n"
13842 "\n"
13843 msgstr ""
13844
13845 #. type: textblock
13846 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7151
13847 msgid ""
13848 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13849 "C<device>."
13850 msgstr ""
13851
13852 #. type: textblock
13853 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7154
13854 msgid ""
13855 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13856 "for more details.  The list of fields returned isn't clearly defined, and "
13857 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13858 "and the filesystem itself."
13859 msgstr ""
13860
13861 #. type: =head2
13862 #: ../fish/guestfish-actions.pod:4764
13863 msgid "txz-in"
13864 msgstr ""
13865
13866 #. type: verbatim
13867 #: ../fish/guestfish-actions.pod:4766
13868 #, no-wrap
13869 msgid ""
13870 " txz-in (tarball|-) directory\n"
13871 "\n"
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7174
13876 msgid ""
13877 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13878 "tar file) into C<directory>."
13879 msgstr ""
13880
13881 #. type: =head2
13882 #: ../fish/guestfish-actions.pod:4773
13883 msgid "txz-out"
13884 msgstr ""
13885
13886 #. type: verbatim
13887 #: ../fish/guestfish-actions.pod:4775
13888 #, no-wrap
13889 msgid ""
13890 " txz-out directory (tarball|-)\n"
13891 "\n"
13892 msgstr ""
13893
13894 #. type: textblock
13895 #: ../fish/guestfish-actions.pod:4777 ../src/guestfs-actions.pod:7188
13896 msgid ""
13897 "This command packs the contents of C<directory> and downloads it to local "
13898 "file C<tarball> (as an xz compressed tar archive)."
13899 msgstr ""
13900
13901 #. type: =head2
13902 #: ../fish/guestfish-actions.pod:4782
13903 msgid "umask"
13904 msgstr ""
13905
13906 #. type: verbatim
13907 #: ../fish/guestfish-actions.pod:4784
13908 #, no-wrap
13909 msgid ""
13910 " umask mask\n"
13911 "\n"
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7201
13916 msgid ""
13917 "This function sets the mask used for creating new files and device nodes to "
13918 "C<mask & 0777>."
13919 msgstr ""
13920
13921 #. type: textblock
13922 #: ../fish/guestfish-actions.pod:4789 ../src/guestfs-actions.pod:7204
13923 msgid ""
13924 "Typical umask values would be C<022> which creates new files with "
13925 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13926 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13927 msgstr ""
13928
13929 #. type: textblock
13930 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7209
13931 msgid ""
13932 "The default umask is C<022>.  This is important because it means that "
13933 "directories and device nodes will be created with C<0644> or C<0755> mode "
13934 "even if you specify C<0777>."
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:4798
13939 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
13940 msgstr ""
13941
13942 #. type: textblock
13943 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7216
13944 msgid "This call returns the previous umask."
13945 msgstr ""
13946
13947 #. type: =head2
13948 #: ../fish/guestfish-actions.pod:4803
13949 msgid "umount"
13950 msgstr ""
13951
13952 #. type: =head2
13953 #: ../fish/guestfish-actions.pod:4805
13954 msgid "unmount"
13955 msgstr ""
13956
13957 #. type: verbatim
13958 #: ../fish/guestfish-actions.pod:4807
13959 #, no-wrap
13960 msgid ""
13961 " umount pathordevice\n"
13962 "\n"
13963 msgstr ""
13964
13965 #. type: textblock
13966 #: ../fish/guestfish-actions.pod:4809 ../src/guestfs-actions.pod:7228
13967 msgid ""
13968 "This unmounts the given filesystem.  The filesystem may be specified either "
13969 "by its mountpoint (path) or the device which contains the filesystem."
13970 msgstr ""
13971
13972 #. type: =head2
13973 #: ../fish/guestfish-actions.pod:4813
13974 msgid "umount-all"
13975 msgstr ""
13976
13977 #. type: =head2
13978 #: ../fish/guestfish-actions.pod:4815
13979 msgid "unmount-all"
13980 msgstr ""
13981
13982 #. type: verbatim
13983 #: ../fish/guestfish-actions.pod:4817
13984 #, no-wrap
13985 msgid ""
13986 " umount-all\n"
13987 "\n"
13988 msgstr ""
13989
13990 #. type: textblock
13991 #: ../fish/guestfish-actions.pod:4819 ../src/guestfs-actions.pod:7241
13992 msgid "This unmounts all mounted filesystems."
13993 msgstr ""
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7243
13997 msgid "Some internal mounts are not unmounted by this call."
13998 msgstr ""
13999
14000 #. type: =head2
14001 #: ../fish/guestfish-actions.pod:4823
14002 msgid "upload"
14003 msgstr ""
14004
14005 #. type: verbatim
14006 #: ../fish/guestfish-actions.pod:4825
14007 #, no-wrap
14008 msgid ""
14009 " upload (filename|-) remotefilename\n"
14010 "\n"
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../fish/guestfish-actions.pod:4827 ../fish/guestfish-actions.pod:4840 ../src/guestfs-actions.pod:7256 ../src/guestfs-actions.pod:7280
14015 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
14016 msgstr ""
14017
14018 #. type: textblock
14019 #: ../fish/guestfish-actions.pod:4832
14020 msgid "See also L</download>."
14021 msgstr ""
14022
14023 #. type: =head2
14024 #: ../fish/guestfish-actions.pod:4836
14025 msgid "upload-offset"
14026 msgstr ""
14027
14028 #. type: verbatim
14029 #: ../fish/guestfish-actions.pod:4838
14030 #, no-wrap
14031 msgid ""
14032 " upload-offset (filename|-) remotefilename offset\n"
14033 "\n"
14034 msgstr ""
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7283
14038 msgid ""
14039 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14040 "The intention is to overwrite parts of existing files or devices, although "
14041 "if a non-existant file is specified then it is created with a \"hole\" "
14042 "before C<offset>.  The size of the data written is implicit in the size of "
14043 "the source C<filename>."
14044 msgstr ""
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:4850
14048 msgid ""
14049 "Note that there is no limit on the amount of data that can be uploaded with "
14050 "this call, unlike with L</pwrite>, and this call always writes the full "
14051 "amount unless an error occurs."
14052 msgstr ""
14053
14054 #. type: textblock
14055 #: ../fish/guestfish-actions.pod:4855
14056 msgid "See also L</upload>, L</pwrite>."
14057 msgstr ""
14058
14059 #. type: =head2
14060 #: ../fish/guestfish-actions.pod:4859
14061 msgid "utimens"
14062 msgstr ""
14063
14064 #. type: verbatim
14065 #: ../fish/guestfish-actions.pod:4861
14066 #, no-wrap
14067 msgid ""
14068 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14069 "\n"
14070 msgstr ""
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:4863 ../src/guestfs-actions.pod:7316
14074 msgid "This command sets the timestamps of a file with nanosecond precision."
14075 msgstr ""
14076
14077 #. type: textblock
14078 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7319
14079 msgid ""
14080 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14081 "from the epoch."
14082 msgstr ""
14083
14084 #. type: textblock
14085 #: ../fish/guestfish-actions.pod:4869 ../src/guestfs-actions.pod:7322
14086 msgid ""
14087 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14088 "nanoseconds from the epoch."
14089 msgstr ""
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:4872 ../src/guestfs-actions.pod:7325
14093 msgid ""
14094 "If the C<*nsecs> field contains the special value C<-1> then the "
14095 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14096 "ignored in this case)."
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
14101 msgid ""
14102 "If the C<*nsecs> field contains the special value C<-2> then the "
14103 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14104 "in this case)."
14105 msgstr ""
14106
14107 #. type: =head2
14108 #: ../fish/guestfish-actions.pod:4880
14109 msgid "version"
14110 msgstr ""
14111
14112 #. type: verbatim
14113 #: ../fish/guestfish-actions.pod:4882
14114 #, no-wrap
14115 msgid ""
14116 " version\n"
14117 "\n"
14118 msgstr ""
14119
14120 #. type: textblock
14121 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7342
14122 msgid "Return the libguestfs version number that the program is linked against."
14123 msgstr ""
14124
14125 #. type: textblock
14126 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7345
14127 msgid ""
14128 "Note that because of dynamic linking this is not necessarily the version of "
14129 "libguestfs that you compiled against.  You can compile the program, and then "
14130 "at runtime dynamically link against a completely different C<libguestfs.so> "
14131 "library."
14132 msgstr ""
14133
14134 #. type: textblock
14135 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7350
14136 msgid ""
14137 "This call was added in version C<1.0.58>.  In previous versions of "
14138 "libguestfs there was no way to get the version number.  From C code you can "
14139 "use dynamic linker functions to find out if this symbol exists (if it "
14140 "doesn't, then it's an earlier version)."
14141 msgstr ""
14142
14143 #. type: textblock
14144 #: ../fish/guestfish-actions.pod:4898 ../src/guestfs-actions.pod:7356
14145 msgid ""
14146 "The call returns a structure with four elements.  The first three (C<major>, "
14147 "C<minor> and C<release>) are numbers and correspond to the usual version "
14148 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14149 "but may be used for distro-specific information."
14150 msgstr ""
14151
14152 #. type: textblock
14153 #: ../fish/guestfish-actions.pod:4904 ../src/guestfs-actions.pod:7362
14154 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14155 msgstr ""
14156
14157 #. type: textblock
14158 #: ../fish/guestfish-actions.pod:4907 ../src/guestfs-actions.pod:7365
14159 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14160 msgstr ""
14161
14162 #. type: textblock
14163 #: ../fish/guestfish-actions.pod:4909
14164 msgid ""
14165 "I<Note:> Don't use this call to test for availability of features.  In "
14166 "enterprise distributions we backport features from later versions into "
14167 "earlier versions, making this an unreliable way to test for features.  Use "
14168 "L</available> instead."
14169 msgstr ""
14170
14171 #. type: =head2
14172 #: ../fish/guestfish-actions.pod:4915
14173 msgid "vfs-label"
14174 msgstr ""
14175
14176 #. type: verbatim
14177 #: ../fish/guestfish-actions.pod:4917
14178 #, no-wrap
14179 msgid ""
14180 " vfs-label device\n"
14181 "\n"
14182 msgstr ""
14183
14184 #. type: textblock
14185 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7385
14186 msgid "This returns the filesystem label of the filesystem on C<device>."
14187 msgstr ""
14188
14189 #. type: textblock
14190 #: ../fish/guestfish-actions.pod:4922 ../src/guestfs-actions.pod:7388
14191 msgid "If the filesystem is unlabeled, this returns the empty string."
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:4924
14196 msgid "To find a filesystem from the label, use L</findfs-label>."
14197 msgstr ""
14198
14199 #. type: =head2
14200 #: ../fish/guestfish-actions.pod:4926
14201 msgid "vfs-type"
14202 msgstr ""
14203
14204 #. type: verbatim
14205 #: ../fish/guestfish-actions.pod:4928
14206 #, no-wrap
14207 msgid ""
14208 " vfs-type device\n"
14209 "\n"
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4930 ../src/guestfs-actions.pod:7403
14214 msgid ""
14215 "This command gets the filesystem type corresponding to the filesystem on "
14216 "C<device>."
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7406
14221 msgid ""
14222 "For most filesystems, the result is the name of the Linux VFS module which "
14223 "would be used to mount this filesystem if you mounted it without specifying "
14224 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14225 msgstr ""
14226
14227 #. type: =head2
14228 #: ../fish/guestfish-actions.pod:4938
14229 msgid "vfs-uuid"
14230 msgstr ""
14231
14232 #. type: verbatim
14233 #: ../fish/guestfish-actions.pod:4940
14234 #, no-wrap
14235 msgid ""
14236 " vfs-uuid device\n"
14237 "\n"
14238 msgstr ""
14239
14240 #. type: textblock
14241 #: ../fish/guestfish-actions.pod:4942 ../src/guestfs-actions.pod:7422
14242 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14243 msgstr ""
14244
14245 #. type: textblock
14246 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7425
14247 msgid "If the filesystem does not have a UUID, this returns the empty string."
14248 msgstr ""
14249
14250 #. type: textblock
14251 #: ../fish/guestfish-actions.pod:4947
14252 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14253 msgstr ""
14254
14255 #. type: =head2
14256 #: ../fish/guestfish-actions.pod:4949
14257 msgid "vg-activate"
14258 msgstr ""
14259
14260 #. type: verbatim
14261 #: ../fish/guestfish-actions.pod:4951
14262 #, no-wrap
14263 msgid ""
14264 " vg-activate true|false 'volgroups ...'\n"
14265 "\n"
14266 msgstr ""
14267
14268 #. type: textblock
14269 #: ../fish/guestfish-actions.pod:4953 ../src/guestfs-actions.pod:7441
14270 msgid ""
14271 "This command activates or (if C<activate> is false) deactivates all logical "
14272 "volumes in the listed volume groups C<volgroups>."
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:4956 ../src/guestfs-actions.pod:7444
14277 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14278 msgstr ""
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4958 ../src/guestfs-actions.pod:7446
14282 msgid ""
14283 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14284 "activated or deactivated."
14285 msgstr ""
14286
14287 #. type: =head2
14288 #: ../fish/guestfish-actions.pod:4961
14289 msgid "vg-activate-all"
14290 msgstr ""
14291
14292 #. type: verbatim
14293 #: ../fish/guestfish-actions.pod:4963
14294 #, no-wrap
14295 msgid ""
14296 " vg-activate-all true|false\n"
14297 "\n"
14298 msgstr ""
14299
14300 #. type: textblock
14301 #: ../fish/guestfish-actions.pod:4965 ../src/guestfs-actions.pod:7459
14302 msgid ""
14303 "This command activates or (if C<activate> is false) deactivates all logical "
14304 "volumes in all volume groups."
14305 msgstr ""
14306
14307 #. type: textblock
14308 #: ../fish/guestfish-actions.pod:4968 ../src/guestfs-actions.pod:7462
14309 msgid "This command is the same as running C<vgchange -a y|n>"
14310 msgstr ""
14311
14312 #. type: =head2
14313 #: ../fish/guestfish-actions.pod:4970
14314 msgid "vgcreate"
14315 msgstr ""
14316
14317 #. type: verbatim
14318 #: ../fish/guestfish-actions.pod:4972
14319 #, no-wrap
14320 msgid ""
14321 " vgcreate volgroup 'physvols ...'\n"
14322 "\n"
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:4974 ../src/guestfs-actions.pod:7475
14327 msgid ""
14328 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14329 "of physical volumes C<physvols>."
14330 msgstr ""
14331
14332 #. type: =head2
14333 #: ../fish/guestfish-actions.pod:4977
14334 msgid "vglvuuids"
14335 msgstr ""
14336
14337 #. type: verbatim
14338 #: ../fish/guestfish-actions.pod:4979
14339 #, no-wrap
14340 msgid ""
14341 " vglvuuids vgname\n"
14342 "\n"
14343 msgstr ""
14344
14345 #. type: textblock
14346 #: ../fish/guestfish-actions.pod:4981 ../src/guestfs-actions.pod:7488
14347 msgid ""
14348 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14349 "volumes created in this volume group."
14350 msgstr ""
14351
14352 #. type: textblock
14353 #: ../fish/guestfish-actions.pod:4984
14354 msgid ""
14355 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14356 "logical volumes and volume groups."
14357 msgstr ""
14358
14359 #. type: textblock
14360 #: ../fish/guestfish-actions.pod:4987
14361 msgid "See also L</vgpvuuids>."
14362 msgstr ""
14363
14364 #. type: =head2
14365 #: ../fish/guestfish-actions.pod:4989
14366 msgid "vgpvuuids"
14367 msgstr ""
14368
14369 #. type: verbatim
14370 #: ../fish/guestfish-actions.pod:4991
14371 #, no-wrap
14372 msgid ""
14373 " vgpvuuids vgname\n"
14374 "\n"
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7508
14379 msgid ""
14380 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14381 "volumes that this volume group resides on."
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../fish/guestfish-actions.pod:4996
14386 msgid ""
14387 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14388 "physical volumes and volume groups."
14389 msgstr ""
14390
14391 #. type: textblock
14392 #: ../fish/guestfish-actions.pod:4999
14393 msgid "See also L</vglvuuids>."
14394 msgstr ""
14395
14396 #. type: =head2
14397 #: ../fish/guestfish-actions.pod:5001
14398 msgid "vgremove"
14399 msgstr ""
14400
14401 #. type: verbatim
14402 #: ../fish/guestfish-actions.pod:5003
14403 #, no-wrap
14404 msgid ""
14405 " vgremove vgname\n"
14406 "\n"
14407 msgstr ""
14408
14409 #. type: textblock
14410 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7528
14411 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14412 msgstr ""
14413
14414 #. type: textblock
14415 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7530
14416 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14417 msgstr ""
14418
14419 #. type: =head2
14420 #: ../fish/guestfish-actions.pod:5010
14421 msgid "vgrename"
14422 msgstr ""
14423
14424 #. type: verbatim
14425 #: ../fish/guestfish-actions.pod:5012
14426 #, no-wrap
14427 msgid ""
14428 " vgrename volgroup newvolgroup\n"
14429 "\n"
14430 msgstr ""
14431
14432 #. type: textblock
14433 #: ../fish/guestfish-actions.pod:5014 ../src/guestfs-actions.pod:7544
14434 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14435 msgstr ""
14436
14437 #. type: =head2
14438 #: ../fish/guestfish-actions.pod:5016
14439 msgid "vgs"
14440 msgstr ""
14441
14442 #. type: verbatim
14443 #: ../fish/guestfish-actions.pod:5018
14444 #, no-wrap
14445 msgid ""
14446 " vgs\n"
14447 "\n"
14448 msgstr ""
14449
14450 #. type: textblock
14451 #: ../fish/guestfish-actions.pod:5020 ../src/guestfs-actions.pod:7555
14452 msgid ""
14453 "List all the volumes groups detected.  This is the equivalent of the "
14454 "L<vgs(8)> command."
14455 msgstr ""
14456
14457 #. type: textblock
14458 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7558
14459 msgid ""
14460 "This returns a list of just the volume group names that were detected "
14461 "(eg. C<VolGroup00>)."
14462 msgstr ""
14463
14464 #. type: textblock
14465 #: ../fish/guestfish-actions.pod:5026
14466 msgid "See also L</vgs-full>."
14467 msgstr ""
14468
14469 #. type: =head2
14470 #: ../fish/guestfish-actions.pod:5028
14471 msgid "vgs-full"
14472 msgstr ""
14473
14474 #. type: verbatim
14475 #: ../fish/guestfish-actions.pod:5030
14476 #, no-wrap
14477 msgid ""
14478 " vgs-full\n"
14479 "\n"
14480 msgstr ""
14481
14482 #. type: textblock
14483 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7574
14484 msgid ""
14485 "List all the volumes groups detected.  This is the equivalent of the "
14486 "L<vgs(8)> command.  The \"full\" version includes all fields."
14487 msgstr ""
14488
14489 #. type: =head2
14490 #: ../fish/guestfish-actions.pod:5035
14491 msgid "vgscan"
14492 msgstr ""
14493
14494 #. type: verbatim
14495 #: ../fish/guestfish-actions.pod:5037
14496 #, no-wrap
14497 msgid ""
14498 " vgscan\n"
14499 "\n"
14500 msgstr ""
14501
14502 #. type: textblock
14503 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7588
14504 msgid ""
14505 "This rescans all block devices and rebuilds the list of LVM physical "
14506 "volumes, volume groups and logical volumes."
14507 msgstr ""
14508
14509 #. type: =head2
14510 #: ../fish/guestfish-actions.pod:5042
14511 msgid "vguuid"
14512 msgstr ""
14513
14514 #. type: verbatim
14515 #: ../fish/guestfish-actions.pod:5044
14516 #, no-wrap
14517 msgid ""
14518 " vguuid vgname\n"
14519 "\n"
14520 msgstr ""
14521
14522 #. type: textblock
14523 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7601
14524 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14525 msgstr ""
14526
14527 #. type: =head2
14528 #: ../fish/guestfish-actions.pod:5048
14529 msgid "wc-c"
14530 msgstr ""
14531
14532 #. type: verbatim
14533 #: ../fish/guestfish-actions.pod:5050
14534 #, no-wrap
14535 msgid ""
14536 " wc-c path\n"
14537 "\n"
14538 msgstr ""
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7641
14542 msgid ""
14543 "This command counts the characters in a file, using the C<wc -c> external "
14544 "command."
14545 msgstr ""
14546
14547 #. type: =head2
14548 #: ../fish/guestfish-actions.pod:5055
14549 msgid "wc-l"
14550 msgstr ""
14551
14552 #. type: verbatim
14553 #: ../fish/guestfish-actions.pod:5057
14554 #, no-wrap
14555 msgid ""
14556 " wc-l path\n"
14557 "\n"
14558 msgstr ""
14559
14560 #. type: textblock
14561 #: ../fish/guestfish-actions.pod:5059 ../src/guestfs-actions.pod:7654
14562 msgid ""
14563 "This command counts the lines in a file, using the C<wc -l> external "
14564 "command."
14565 msgstr ""
14566
14567 #. type: =head2
14568 #: ../fish/guestfish-actions.pod:5062
14569 msgid "wc-w"
14570 msgstr ""
14571
14572 #. type: verbatim
14573 #: ../fish/guestfish-actions.pod:5064
14574 #, no-wrap
14575 msgid ""
14576 " wc-w path\n"
14577 "\n"
14578 msgstr ""
14579
14580 #. type: textblock
14581 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7667
14582 msgid ""
14583 "This command counts the words in a file, using the C<wc -w> external "
14584 "command."
14585 msgstr ""
14586
14587 #. type: =head2
14588 #: ../fish/guestfish-actions.pod:5069
14589 msgid "write"
14590 msgstr ""
14591
14592 #. type: verbatim
14593 #: ../fish/guestfish-actions.pod:5071
14594 #, no-wrap
14595 msgid ""
14596 " write path content\n"
14597 "\n"
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7682
14602 msgid ""
14603 "This call creates a file called C<path>.  The content of the file is the "
14604 "string C<content> (which can contain any 8 bit data)."
14605 msgstr ""
14606
14607 #. type: textblock
14608 #: ../fish/guestfish-actions.pod:5076
14609 msgid "See also L</write-append>."
14610 msgstr ""
14611
14612 #. type: =head2
14613 #: ../fish/guestfish-actions.pod:5081
14614 msgid "write-append"
14615 msgstr ""
14616
14617 #. type: verbatim
14618 #: ../fish/guestfish-actions.pod:5083
14619 #, no-wrap
14620 msgid ""
14621 " write-append path content\n"
14622 "\n"
14623 msgstr ""
14624
14625 #. type: textblock
14626 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7702
14627 msgid ""
14628 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14629 "not exist, then a new file is created."
14630 msgstr ""
14631
14632 #. type: textblock
14633 #: ../fish/guestfish-actions.pod:5088
14634 msgid "See also L</write>."
14635 msgstr ""
14636
14637 #. type: =head2
14638 #: ../fish/guestfish-actions.pod:5093
14639 msgid "write-file"
14640 msgstr ""
14641
14642 #. type: verbatim
14643 #: ../fish/guestfish-actions.pod:5095
14644 #, no-wrap
14645 msgid ""
14646 " write-file path content size\n"
14647 "\n"
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7722
14652 msgid ""
14653 "This call creates a file called C<path>.  The contents of the file is the "
14654 "string C<content> (which can contain any 8 bit data), with length C<size>."
14655 msgstr ""
14656
14657 #. type: textblock
14658 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7726
14659 msgid ""
14660 "As a special case, if C<size> is C<0> then the length is calculated using "
14661 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14662 msgstr ""
14663
14664 #. type: textblock
14665 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7730
14666 msgid ""
14667 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14668 "I<not> work, even if the length is specified."
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:5111
14673 msgid "This function is deprecated.  In new code, use the L</write> call instead."
14674 msgstr ""
14675
14676 #. type: =head2
14677 #: ../fish/guestfish-actions.pod:5118
14678 msgid "zegrep"
14679 msgstr ""
14680
14681 #. type: verbatim
14682 #: ../fish/guestfish-actions.pod:5120
14683 #, no-wrap
14684 msgid ""
14685 " zegrep regex path\n"
14686 "\n"
14687 msgstr ""
14688
14689 #. type: textblock
14690 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7754
14691 msgid "This calls the external C<zegrep> program and returns the matching lines."
14692 msgstr ""
14693
14694 #. type: =head2
14695 #: ../fish/guestfish-actions.pod:5128
14696 msgid "zegrepi"
14697 msgstr ""
14698
14699 #. type: verbatim
14700 #: ../fish/guestfish-actions.pod:5130
14701 #, no-wrap
14702 msgid ""
14703 " zegrepi regex path\n"
14704 "\n"
14705 msgstr ""
14706
14707 #. type: textblock
14708 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7773
14709 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14710 msgstr ""
14711
14712 #. type: =head2
14713 #: ../fish/guestfish-actions.pod:5138
14714 msgid "zero"
14715 msgstr ""
14716
14717 #. type: verbatim
14718 #: ../fish/guestfish-actions.pod:5140
14719 #, no-wrap
14720 msgid ""
14721 " zero device\n"
14722 "\n"
14723 msgstr ""
14724
14725 #. type: textblock
14726 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7791
14727 msgid "This command writes zeroes over the first few blocks of C<device>."
14728 msgstr ""
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7793
14732 msgid ""
14733 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14734 "securely wipe the device).  It should be sufficient to remove any partition "
14735 "tables, filesystem superblocks and so on."
14736 msgstr ""
14737
14738 #. type: textblock
14739 #: ../fish/guestfish-actions.pod:5148 ../fish/guestfish-actions.pod:5163 ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7823
14740 msgid ""
14741 "If blocks are already zero, then this command avoids writing zeroes.  This "
14742 "prevents the underlying device from becoming non-sparse or growing "
14743 "unnecessarily."
14744 msgstr ""
14745
14746 #. type: textblock
14747 #: ../fish/guestfish-actions.pod:5152
14748 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
14749 msgstr ""
14750
14751 #. type: =head2
14752 #: ../fish/guestfish-actions.pod:5155
14753 msgid "zero-device"
14754 msgstr ""
14755
14756 #. type: verbatim
14757 #: ../fish/guestfish-actions.pod:5157
14758 #, no-wrap
14759 msgid ""
14760 " zero-device device\n"
14761 "\n"
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:5159
14766 msgid ""
14767 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
14768 "which just zeroes the first few blocks of a device."
14769 msgstr ""
14770
14771 #. type: =head2
14772 #: ../fish/guestfish-actions.pod:5170
14773 msgid "zerofree"
14774 msgstr ""
14775
14776 #. type: verbatim
14777 #: ../fish/guestfish-actions.pod:5172
14778 #, no-wrap
14779 msgid ""
14780 " zerofree device\n"
14781 "\n"
14782 msgstr ""
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7845
14786 msgid ""
14787 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14788 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14789 "possible to compress the filesystem more effectively."
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7850
14794 msgid "You should B<not> run this program if the filesystem is mounted."
14795 msgstr ""
14796
14797 #. type: textblock
14798 #: ../fish/guestfish-actions.pod:5182 ../src/guestfs-actions.pod:7853
14799 msgid ""
14800 "It is possible that using this program can damage the filesystem or data on "
14801 "the filesystem."
14802 msgstr ""
14803
14804 #. type: =head2
14805 #: ../fish/guestfish-actions.pod:5185
14806 msgid "zfgrep"
14807 msgstr ""
14808
14809 #. type: verbatim
14810 #: ../fish/guestfish-actions.pod:5187
14811 #, no-wrap
14812 msgid ""
14813 " zfgrep pattern path\n"
14814 "\n"
14815 msgstr ""
14816
14817 #. type: textblock
14818 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7867
14819 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14820 msgstr ""
14821
14822 #. type: =head2
14823 #: ../fish/guestfish-actions.pod:5195
14824 msgid "zfgrepi"
14825 msgstr ""
14826
14827 #. type: verbatim
14828 #: ../fish/guestfish-actions.pod:5197
14829 #, no-wrap
14830 msgid ""
14831 " zfgrepi pattern path\n"
14832 "\n"
14833 msgstr ""
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7886
14837 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14838 msgstr ""
14839
14840 #. type: =head2
14841 #: ../fish/guestfish-actions.pod:5205
14842 msgid "zfile"
14843 msgstr ""
14844
14845 #. type: verbatim
14846 #: ../fish/guestfish-actions.pod:5207
14847 #, no-wrap
14848 msgid ""
14849 " zfile meth path\n"
14850 "\n"
14851 msgstr ""
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7905
14855 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14856 msgstr ""
14857
14858 #. type: textblock
14859 #: ../fish/guestfish-actions.pod:5212 ../src/guestfs-actions.pod:7908
14860 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14861 msgstr ""
14862
14863 #. type: textblock
14864 #: ../fish/guestfish-actions.pod:5214
14865 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
14866 msgstr ""
14867
14868 #. type: textblock
14869 #: ../fish/guestfish-actions.pod:5217
14870 msgid "This function is deprecated.  In new code, use the L</file> call instead."
14871 msgstr ""
14872
14873 #. type: =head2
14874 #: ../fish/guestfish-actions.pod:5224
14875 msgid "zgrep"
14876 msgstr ""
14877
14878 #. type: verbatim
14879 #: ../fish/guestfish-actions.pod:5226
14880 #, no-wrap
14881 msgid ""
14882 " zgrep regex path\n"
14883 "\n"
14884 msgstr ""
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:5228 ../src/guestfs-actions.pod:7932
14888 msgid "This calls the external C<zgrep> program and returns the matching lines."
14889 msgstr ""
14890
14891 #. type: =head2
14892 #: ../fish/guestfish-actions.pod:5234
14893 msgid "zgrepi"
14894 msgstr ""
14895
14896 #. type: verbatim
14897 #: ../fish/guestfish-actions.pod:5236
14898 #, no-wrap
14899 msgid ""
14900 " zgrepi regex path\n"
14901 "\n"
14902 msgstr ""
14903
14904 #. type: textblock
14905 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:7951
14906 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14907 msgstr ""
14908
14909 #. type: =head2
14910 #: ../fish/guestfish-commands.pod:1
14911 msgid "alloc"
14912 msgstr ""
14913
14914 #. type: =head2
14915 #: ../fish/guestfish-commands.pod:3
14916 msgid "allocate"
14917 msgstr ""
14918
14919 #. type: verbatim
14920 #: ../fish/guestfish-commands.pod:5
14921 #, no-wrap
14922 msgid ""
14923 " alloc filename size\n"
14924 "\n"
14925 msgstr ""
14926
14927 #. type: textblock
14928 #: ../fish/guestfish-commands.pod:7
14929 msgid ""
14930 "This creates an empty (zeroed) file of the given size, and then adds so it "
14931 "can be further examined."
14932 msgstr ""
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:182
14936 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
14937 msgstr ""
14938
14939 #. type: textblock
14940 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:184
14941 msgid "Size can be specified using standard suffixes, eg. C<1M>."
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-commands.pod:14
14946 msgid ""
14947 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
14948 "image, see L</PREPARED DISK IMAGES>."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-commands.pod:17
14953 msgid "copy-in"
14954 msgstr ""
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-commands.pod:19
14958 #, no-wrap
14959 msgid ""
14960 " copy-in local [local ...] /remotedir\n"
14961 "\n"
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-commands.pod:21
14966 msgid ""
14967 "C<copy-in> copies local files or directories recursively into the disk "
14968 "image, placing them in the directory called C</remotedir> (which must "
14969 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
14970 "other commands as necessary."
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-commands.pod:26
14975 msgid ""
14976 "Multiple local files and directories can be specified, but the last "
14977 "parameter must always be a remote directory.  Wildcards cannot be used."
14978 msgstr ""
14979
14980 #. type: =head2
14981 #: ../fish/guestfish-commands.pod:30
14982 msgid "copy-out"
14983 msgstr ""
14984
14985 #. type: verbatim
14986 #: ../fish/guestfish-commands.pod:32
14987 #, no-wrap
14988 msgid ""
14989 " copy-out remote [remote ...] localdir\n"
14990 "\n"
14991 msgstr ""
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-commands.pod:34
14995 msgid ""
14996 "C<copy-out> copies remote files or directories recursively out of the disk "
14997 "image, placing them on the host disk in a local directory called C<localdir> "
14998 "(which must exist).  This guestfish meta-command turns into a sequence of "
14999 "L</download>, L</tar-out> and other commands as necessary."
15000 msgstr ""
15001
15002 #. type: textblock
15003 #: ../fish/guestfish-commands.pod:40
15004 msgid ""
15005 "Multiple remote files and directories can be specified, but the last "
15006 "parameter must always be a local directory.  To download to the current "
15007 "directory, use C<.> as in:"
15008 msgstr ""
15009
15010 #. type: verbatim
15011 #: ../fish/guestfish-commands.pod:44
15012 #, no-wrap
15013 msgid ""
15014 " copy-out /home .\n"
15015 "\n"
15016 msgstr ""
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-commands.pod:46
15020 msgid ""
15021 "Wildcards cannot be used in the ordinary command, but you can use them with "
15022 "the help of L</glob> like this:"
15023 msgstr ""
15024
15025 #. type: verbatim
15026 #: ../fish/guestfish-commands.pod:49
15027 #, no-wrap
15028 msgid ""
15029 " glob copy-out /home/* .\n"
15030 "\n"
15031 msgstr ""
15032
15033 #. type: =head2
15034 #: ../fish/guestfish-commands.pod:51
15035 msgid "display"
15036 msgstr ""
15037
15038 #. type: verbatim
15039 #: ../fish/guestfish-commands.pod:53
15040 #, no-wrap
15041 msgid ""
15042 " display filename\n"
15043 "\n"
15044 msgstr ""
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-commands.pod:55
15048 msgid ""
15049 "Use C<display> (a graphical display program) to display an image file.  It "
15050 "downloads the file, and runs C<display> on it."
15051 msgstr ""
15052
15053 #. type: textblock
15054 #: ../fish/guestfish-commands.pod:58
15055 msgid ""
15056 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15057 "environment variable.  For example to use the GNOME display program:"
15058 msgstr ""
15059
15060 #. type: verbatim
15061 #: ../fish/guestfish-commands.pod:61
15062 #, no-wrap
15063 msgid ""
15064 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15065 "\n"
15066 msgstr ""
15067
15068 #. type: textblock
15069 #: ../fish/guestfish-commands.pod:63
15070 msgid "See also L<display(1)>."
15071 msgstr ""
15072
15073 #. type: =head2
15074 #: ../fish/guestfish-commands.pod:65
15075 msgid "echo"
15076 msgstr ""
15077
15078 #. type: verbatim
15079 #: ../fish/guestfish-commands.pod:67
15080 #, no-wrap
15081 msgid ""
15082 " echo [params ...]\n"
15083 "\n"
15084 msgstr ""
15085
15086 #. type: textblock
15087 #: ../fish/guestfish-commands.pod:69
15088 msgid "This echos the parameters to the terminal."
15089 msgstr ""
15090
15091 #. type: =head2
15092 #: ../fish/guestfish-commands.pod:71
15093 msgid "edit"
15094 msgstr ""
15095
15096 #. type: =head2
15097 #: ../fish/guestfish-commands.pod:73
15098 msgid "vi"
15099 msgstr ""
15100
15101 #. type: =head2
15102 #: ../fish/guestfish-commands.pod:75
15103 msgid "emacs"
15104 msgstr ""
15105
15106 #. type: verbatim
15107 #: ../fish/guestfish-commands.pod:77
15108 #, no-wrap
15109 msgid ""
15110 " edit filename\n"
15111 "\n"
15112 msgstr ""
15113
15114 #. type: textblock
15115 #: ../fish/guestfish-commands.pod:79
15116 msgid ""
15117 "This is used to edit a file.  It downloads the file, edits it locally using "
15118 "your editor, then uploads the result."
15119 msgstr ""
15120
15121 #. type: textblock
15122 #: ../fish/guestfish-commands.pod:82
15123 msgid ""
15124 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15125 "or C<emacs> you will get those corresponding editors."
15126 msgstr ""
15127
15128 #. type: =head2
15129 #: ../fish/guestfish-commands.pod:86
15130 msgid "glob"
15131 msgstr ""
15132
15133 #. type: verbatim
15134 #: ../fish/guestfish-commands.pod:88
15135 #, no-wrap
15136 msgid ""
15137 " glob command args...\n"
15138 "\n"
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-commands.pod:90
15143 msgid ""
15144 "Expand wildcards in any paths in the args list, and run C<command> "
15145 "repeatedly on each matching path."
15146 msgstr ""
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-commands.pod:93
15150 msgid "See L</WILDCARDS AND GLOBBING>."
15151 msgstr ""
15152
15153 #. type: =head2
15154 #: ../fish/guestfish-commands.pod:95
15155 msgid "hexedit"
15156 msgstr ""
15157
15158 #. type: verbatim
15159 #: ../fish/guestfish-commands.pod:97
15160 #, no-wrap
15161 msgid ""
15162 " hexedit <filename|device>\n"
15163 " hexedit <filename|device> <max>\n"
15164 " hexedit <filename|device> <start> <max>\n"
15165 "\n"
15166 msgstr ""
15167
15168 #. type: textblock
15169 #: ../fish/guestfish-commands.pod:101
15170 msgid ""
15171 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15172 "device."
15173 msgstr ""
15174
15175 #. type: textblock
15176 #: ../fish/guestfish-commands.pod:104
15177 msgid ""
15178 "This command works by downloading potentially the whole file or device, "
15179 "editing it locally, then uploading it.  If the file or device is large, you "
15180 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15181 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15182 "usual modifiers allowed such as C<1M> (1 megabyte)."
15183 msgstr ""
15184
15185 #. type: textblock
15186 #: ../fish/guestfish-commands.pod:111
15187 msgid "For example to edit the first few sectors of a disk you might do:"
15188 msgstr ""
15189
15190 #. type: verbatim
15191 #: ../fish/guestfish-commands.pod:114
15192 #, no-wrap
15193 msgid ""
15194 " hexedit /dev/sda 1M\n"
15195 "\n"
15196 msgstr ""
15197
15198 #. type: textblock
15199 #: ../fish/guestfish-commands.pod:116
15200 msgid ""
15201 "which would allow you to edit anywhere within the first megabyte of the "
15202 "disk."
15203 msgstr ""
15204
15205 #. type: textblock
15206 #: ../fish/guestfish-commands.pod:119
15207 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15208 msgstr ""
15209
15210 #. type: verbatim
15211 #: ../fish/guestfish-commands.pod:121
15212 #, no-wrap
15213 msgid ""
15214 " hexedit /dev/sda1 0x400 0x400\n"
15215 "\n"
15216 msgstr ""
15217
15218 #. type: textblock
15219 #: ../fish/guestfish-commands.pod:123
15220 msgid "(assuming the superblock is in the standard location)."
15221 msgstr ""
15222
15223 #. type: textblock
15224 #: ../fish/guestfish-commands.pod:125
15225 msgid ""
15226 "This command requires the external L<hexedit(1)> program.  You can specify "
15227 "another program to use by setting the C<HEXEDITOR> environment variable."
15228 msgstr ""
15229
15230 #. type: textblock
15231 #: ../fish/guestfish-commands.pod:129
15232 msgid "See also L</hexdump>."
15233 msgstr ""
15234
15235 #. type: =head2
15236 #: ../fish/guestfish-commands.pod:131
15237 msgid "lcd"
15238 msgstr ""
15239
15240 #. type: verbatim
15241 #: ../fish/guestfish-commands.pod:133
15242 #, no-wrap
15243 msgid ""
15244 " lcd directory\n"
15245 "\n"
15246 msgstr ""
15247
15248 #. type: textblock
15249 #: ../fish/guestfish-commands.pod:135
15250 msgid "Change the local directory, ie. the current directory of guestfish itself."
15251 msgstr ""
15252
15253 #. type: textblock
15254 #: ../fish/guestfish-commands.pod:138
15255 msgid "Note that C<!cd> won't do what you might expect."
15256 msgstr ""
15257
15258 #. type: =head2
15259 #: ../fish/guestfish-commands.pod:140
15260 msgid "man"
15261 msgstr ""
15262
15263 #. type: =head2
15264 #: ../fish/guestfish-commands.pod:142
15265 msgid "manual"
15266 msgstr ""
15267
15268 #. type: verbatim
15269 #: ../fish/guestfish-commands.pod:144
15270 #, no-wrap
15271 msgid ""
15272 "  man\n"
15273 "\n"
15274 msgstr ""
15275
15276 #. type: textblock
15277 #: ../fish/guestfish-commands.pod:146
15278 msgid "Opens the manual page for guestfish."
15279 msgstr ""
15280
15281 #. type: =head2
15282 #: ../fish/guestfish-commands.pod:148
15283 msgid "more"
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-commands.pod:150
15288 msgid "less"
15289 msgstr ""
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-commands.pod:152
15293 #, no-wrap
15294 msgid ""
15295 " more filename\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: verbatim
15300 #: ../fish/guestfish-commands.pod:154
15301 #, no-wrap
15302 msgid ""
15303 " less filename\n"
15304 "\n"
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-commands.pod:156
15309 msgid "This is used to view a file."
15310 msgstr ""
15311
15312 #. type: textblock
15313 #: ../fish/guestfish-commands.pod:158
15314 msgid ""
15315 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15316 "C<less> you will get the C<less> command specifically."
15317 msgstr ""
15318
15319 #. type: =head2
15320 #: ../fish/guestfish-commands.pod:161
15321 msgid "reopen"
15322 msgstr ""
15323
15324 #. type: verbatim
15325 #: ../fish/guestfish-commands.pod:163
15326 #, no-wrap
15327 msgid ""
15328 "  reopen\n"
15329 "\n"
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-commands.pod:165
15334 msgid ""
15335 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15336 "normally, because the handle is closed properly when guestfish exits.  "
15337 "However this is occasionally useful for testing."
15338 msgstr ""
15339
15340 #. type: =head2
15341 #: ../fish/guestfish-commands.pod:169
15342 msgid "sparse"
15343 msgstr ""
15344
15345 #. type: verbatim
15346 #: ../fish/guestfish-commands.pod:171
15347 #, no-wrap
15348 msgid ""
15349 " sparse filename size\n"
15350 "\n"
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-commands.pod:173
15355 msgid ""
15356 "This creates an empty sparse file of the given size, and then adds so it can "
15357 "be further examined."
15358 msgstr ""
15359
15360 #. type: textblock
15361 #: ../fish/guestfish-commands.pod:176
15362 msgid ""
15363 "In all respects it works the same as the L</alloc> command, except that the "
15364 "image file is allocated sparsely, which means that disk blocks are not "
15365 "assigned to the file until they are needed.  Sparse disk files only use "
15366 "space when written to, but they are slower and there is a danger you could "
15367 "run out of real disk space during a write operation."
15368 msgstr ""
15369
15370 #. type: =head2
15371 #: ../fish/guestfish-commands.pod:186
15372 msgid "supported"
15373 msgstr ""
15374
15375 #. type: verbatim
15376 #: ../fish/guestfish-commands.pod:188
15377 #, no-wrap
15378 msgid ""
15379 " supported\n"
15380 "\n"
15381 msgstr ""
15382
15383 #. type: textblock
15384 #: ../fish/guestfish-commands.pod:190
15385 msgid ""
15386 "This command returns a list of the optional groups known to the daemon, and "
15387 "indicates which ones are supported by this build of the libguestfs "
15388 "appliance."
15389 msgstr ""
15390
15391 #. type: textblock
15392 #: ../fish/guestfish-commands.pod:194
15393 msgid "See also L<guestfs(3)/AVAILABILITY>."
15394 msgstr ""
15395
15396 #. type: =head2
15397 #: ../fish/guestfish-commands.pod:196
15398 msgid "time"
15399 msgstr ""
15400
15401 #. type: verbatim
15402 #: ../fish/guestfish-commands.pod:198
15403 #, no-wrap
15404 msgid ""
15405 " time command args...\n"
15406 "\n"
15407 msgstr ""
15408
15409 #. type: textblock
15410 #: ../fish/guestfish-commands.pod:200
15411 msgid ""
15412 "Run the command as usual, but print the elapsed time afterwards.  This can "
15413 "be useful for benchmarking operations."
15414 msgstr ""
15415
15416 #. type: textblock
15417 #: ../fish/guestfish.pod:5
15418 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15419 msgstr ""
15420
15421 #. type: verbatim
15422 #: ../fish/guestfish.pod:9
15423 #, no-wrap
15424 msgid ""
15425 " guestfish [--options] [commands]\n"
15426 "\n"
15427 msgstr ""
15428
15429 #. type: verbatim
15430 #: ../fish/guestfish.pod:11
15431 #, no-wrap
15432 msgid ""
15433 " guestfish\n"
15434 "\n"
15435 msgstr ""
15436
15437 #. type: verbatim
15438 #: ../fish/guestfish.pod:13
15439 #, no-wrap
15440 msgid ""
15441 " guestfish [--ro|--rw] -a disk.img\n"
15442 "\n"
15443 msgstr ""
15444
15445 #. type: verbatim
15446 #: ../fish/guestfish.pod:15
15447 #, no-wrap
15448 msgid ""
15449 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15450 "\n"
15451 msgstr ""
15452
15453 #. type: verbatim
15454 #: ../fish/guestfish.pod:17
15455 #, no-wrap
15456 msgid ""
15457 " guestfish -d libvirt-domain\n"
15458 "\n"
15459 msgstr ""
15460
15461 #. type: verbatim
15462 #: ../fish/guestfish.pod:19
15463 #, no-wrap
15464 msgid ""
15465 " guestfish [--ro|--rw] -a disk.img -i\n"
15466 "\n"
15467 msgstr ""
15468
15469 #. type: verbatim
15470 #: ../fish/guestfish.pod:21
15471 #, no-wrap
15472 msgid ""
15473 " guestfish -d libvirt-domain -i\n"
15474 "\n"
15475 msgstr ""
15476
15477 #. type: textblock
15478 #: ../fish/guestfish.pod:25
15479 msgid ""
15480 "Using guestfish in read/write mode on live virtual machines can be "
15481 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15482 "option to use guestfish safely if the disk image or virtual machine might be "
15483 "live."
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish.pod:32
15488 msgid ""
15489 "Guestfish is a shell and command-line tool for examining and modifying "
15490 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15491 "functionality of the guestfs API, see L<guestfs(3)>."
15492 msgstr ""
15493
15494 #. type: textblock
15495 #: ../fish/guestfish.pod:36
15496 msgid ""
15497 "Guestfish gives you structured access to the libguestfs API, from shell "
15498 "scripts or the command line or interactively.  If you want to rescue a "
15499 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15500 "command."
15501 msgstr ""
15502
15503 #. type: =head2
15504 #: ../fish/guestfish.pod:43
15505 msgid "As an interactive shell"
15506 msgstr ""
15507
15508 #. type: verbatim
15509 #: ../fish/guestfish.pod:45
15510 #, no-wrap
15511 msgid ""
15512 " $ guestfish\n"
15513 " \n"
15514 msgstr ""
15515
15516 #. type: verbatim
15517 #: ../fish/guestfish.pod:47
15518 #, no-wrap
15519 msgid ""
15520 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15521 " editing virtual machine filesystems.\n"
15522 " \n"
15523 msgstr ""
15524
15525 #. type: verbatim
15526 #: ../fish/guestfish.pod:50
15527 #, no-wrap
15528 msgid ""
15529 " Type: 'help' for a list of commands\n"
15530 "       'man' to read the manual\n"
15531 "       'quit' to quit the shell\n"
15532 " \n"
15533 msgstr ""
15534
15535 #. type: verbatim
15536 #: ../fish/guestfish.pod:54
15537 #, no-wrap
15538 msgid ""
15539 " ><fs> add-ro disk.img\n"
15540 " ><fs> run\n"
15541 " ><fs> list-filesystems\n"
15542 " /dev/sda1: ext4\n"
15543 " /dev/vg_guest/lv_root: ext4\n"
15544 " /dev/vg_guest/lv_swap: swap\n"
15545 " ><fs> mount /dev/vg_guest/lv_root /\n"
15546 " ><fs> cat /etc/fstab\n"
15547 " # /etc/fstab\n"
15548 " # Created by anaconda\n"
15549 " [...]\n"
15550 " ><fs> exit\n"
15551 "\n"
15552 msgstr ""
15553
15554 #. type: =head2
15555 #: ../fish/guestfish.pod:67
15556 msgid "From shell scripts"
15557 msgstr ""
15558
15559 #. type: textblock
15560 #: ../fish/guestfish.pod:69
15561 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15562 msgstr ""
15563
15564 #. type: verbatim
15565 #: ../fish/guestfish.pod:71
15566 #, no-wrap
15567 msgid ""
15568 " guestfish <<_EOF_\n"
15569 " add disk.img\n"
15570 " run\n"
15571 " mount /dev/vg_guest/lv_root /\n"
15572 " write /etc/motd \"Welcome, new users\"\n"
15573 " _EOF_\n"
15574 "\n"
15575 msgstr ""
15576
15577 #. type: textblock
15578 #: ../fish/guestfish.pod:78
15579 msgid "List the LVM logical volumes in a disk image:"
15580 msgstr ""
15581
15582 #. type: verbatim
15583 #: ../fish/guestfish.pod:80
15584 #, no-wrap
15585 msgid ""
15586 " guestfish -a disk.img --ro <<_EOF_\n"
15587 " run\n"
15588 " lvs\n"
15589 " _EOF_\n"
15590 "\n"
15591 msgstr ""
15592
15593 #. type: textblock
15594 #: ../fish/guestfish.pod:85
15595 msgid "List all the filesystems in a disk image:"
15596 msgstr ""
15597
15598 #. type: verbatim
15599 #: ../fish/guestfish.pod:87
15600 #, no-wrap
15601 msgid ""
15602 " guestfish -a disk.img --ro <<_EOF_\n"
15603 " run\n"
15604 " list-filesystems\n"
15605 " _EOF_\n"
15606 "\n"
15607 msgstr ""
15608
15609 #. type: =head2
15610 #: ../fish/guestfish.pod:92
15611 msgid "On one command line"
15612 msgstr ""
15613
15614 #. type: textblock
15615 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15616 msgid "Update C</etc/resolv.conf> in a guest:"
15617 msgstr ""
15618
15619 #. type: verbatim
15620 #: ../fish/guestfish.pod:96
15621 #, no-wrap
15622 msgid ""
15623 " guestfish \\\n"
15624 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15625 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15626 "\n"
15627 msgstr ""
15628
15629 #. type: textblock
15630 #: ../fish/guestfish.pod:100
15631 msgid "Edit C</boot/grub/grub.conf> interactively:"
15632 msgstr ""
15633
15634 #. type: verbatim
15635 #: ../fish/guestfish.pod:102
15636 #, no-wrap
15637 msgid ""
15638 " guestfish --rw --add disk.img \\\n"
15639 "   --mount /dev/vg_guest/lv_root \\\n"
15640 "   --mount /dev/sda1:/boot \\\n"
15641 "   edit /boot/grub/grub.conf\n"
15642 "\n"
15643 msgstr ""
15644
15645 #. type: =head2
15646 #: ../fish/guestfish.pod:107
15647 msgid "Mount disks automatically"
15648 msgstr ""
15649
15650 #. type: textblock
15651 #: ../fish/guestfish.pod:109
15652 msgid ""
15653 "Use the I<-i> option to automatically mount the disks from a virtual "
15654 "machine:"
15655 msgstr ""
15656
15657 #. type: verbatim
15658 #: ../fish/guestfish.pod:112
15659 #, no-wrap
15660 msgid ""
15661 " guestfish --ro -a disk.img -i cat /etc/group\n"
15662 "\n"
15663 msgstr ""
15664
15665 #. type: verbatim
15666 #: ../fish/guestfish.pod:114
15667 #, no-wrap
15668 msgid ""
15669 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15670 "\n"
15671 msgstr ""
15672
15673 #. type: textblock
15674 #: ../fish/guestfish.pod:116
15675 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15676 msgstr ""
15677
15678 #. type: verbatim
15679 #: ../fish/guestfish.pod:118
15680 #, no-wrap
15681 msgid ""
15682 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15683 "\n"
15684 msgstr ""
15685
15686 #. type: =head2
15687 #: ../fish/guestfish.pod:120
15688 msgid "As a script interpreter"
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish.pod:122
15693 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15694 msgstr ""
15695
15696 #. type: verbatim
15697 #: ../fish/guestfish.pod:124
15698 #, no-wrap
15699 msgid ""
15700 " #!/usr/bin/guestfish -f\n"
15701 " sparse test1.img 100M\n"
15702 " run\n"
15703 " part-disk /dev/sda mbr\n"
15704 " mkfs ext2 /dev/sda1\n"
15705 "\n"
15706 msgstr ""
15707
15708 #. type: =head2
15709 #: ../fish/guestfish.pod:130
15710 msgid "Start with a prepared disk"
15711 msgstr ""
15712
15713 #. type: textblock
15714 #: ../fish/guestfish.pod:132
15715 msgid ""
15716 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15717 "single ext2-formatted partition:"
15718 msgstr ""
15719
15720 #. type: verbatim
15721 #: ../fish/guestfish.pod:135
15722 #, no-wrap
15723 msgid ""
15724 " guestfish -N fs\n"
15725 "\n"
15726 msgstr ""
15727
15728 #. type: textblock
15729 #: ../fish/guestfish.pod:137
15730 msgid "To list what is available do:"
15731 msgstr ""
15732
15733 #. type: verbatim
15734 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
15735 #, no-wrap
15736 msgid ""
15737 " guestfish -N help | less\n"
15738 "\n"
15739 msgstr ""
15740
15741 #. type: =head2
15742 #: ../fish/guestfish.pod:141
15743 msgid "Remote control"
15744 msgstr ""
15745
15746 #. type: verbatim
15747 #: ../fish/guestfish.pod:143
15748 #, no-wrap
15749 msgid ""
15750 " eval \"`guestfish --listen`\"\n"
15751 " guestfish --remote add-ro disk.img\n"
15752 " guestfish --remote run\n"
15753 " guestfish --remote lvs\n"
15754 "\n"
15755 msgstr ""
15756
15757 #. type: textblock
15758 #: ../fish/guestfish.pod:154
15759 msgid "Displays general help on options."
15760 msgstr ""
15761
15762 #. type: =item
15763 #: ../fish/guestfish.pod:158
15764 msgid "B<--cmd-help>"
15765 msgstr ""
15766
15767 #. type: textblock
15768 #: ../fish/guestfish.pod:160
15769 msgid "Lists all available guestfish commands."
15770 msgstr ""
15771
15772 #. type: =item
15773 #: ../fish/guestfish.pod:162
15774 msgid "B<-h cmd>"
15775 msgstr ""
15776
15777 #. type: =item
15778 #: ../fish/guestfish.pod:164
15779 msgid "B<--cmd-help cmd>"
15780 msgstr ""
15781
15782 #. type: textblock
15783 #: ../fish/guestfish.pod:166
15784 msgid "Displays detailed help on a single command C<cmd>."
15785 msgstr ""
15786
15787 #. type: =item
15788 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
15789 msgid "B<-a image>"
15790 msgstr ""
15791
15792 #. type: =item
15793 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
15794 msgid "B<--add image>"
15795 msgstr ""
15796
15797 #. type: textblock
15798 #: ../fish/guestfish.pod:172
15799 msgid "Add a block device or virtual machine image to the shell."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish.pod:177
15804 msgid ""
15805 "Using this flag is mostly equivalent to using the C<add> command, with "
15806 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
15807 "the I<--format=...> flag was given."
15808 msgstr ""
15809
15810 #. type: textblock
15811 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
15812 msgid ""
15813 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15814 "URI to use.  The default is to use the default libvirt connection."
15815 msgstr ""
15816
15817 #. type: =item
15818 #: ../fish/guestfish.pod:189
15819 msgid "B<--csh>"
15820 msgstr ""
15821
15822 #. type: textblock
15823 #: ../fish/guestfish.pod:191
15824 msgid ""
15825 "If using the I<--listen> option and a csh-like shell, use this option.  See "
15826 "section L</REMOTE CONTROL AND CSH> below."
15827 msgstr ""
15828
15829 #. type: =item
15830 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
15831 msgid "B<-d libvirt-domain>"
15832 msgstr ""
15833
15834 #. type: =item
15835 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
15836 msgid "B<--domain libvirt-domain>"
15837 msgstr ""
15838
15839 #. type: textblock
15840 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
15841 msgid ""
15842 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15843 "used, then any libvirt domain can be used.  However in write mode, only "
15844 "libvirt domains which are shut down can be named here."
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
15849 msgid "Domain UUIDs can be used instead of names."
15850 msgstr ""
15851
15852 #. type: textblock
15853 #: ../fish/guestfish.pod:204
15854 msgid ""
15855 "Using this flag is mostly equivalent to using the C<add-domain> command, "
15856 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
15857 "if the I<--format:...> flag was given."
15858 msgstr ""
15859
15860 #. type: =item
15861 #: ../fish/guestfish.pod:208
15862 msgid "B<-D>"
15863 msgstr ""
15864
15865 #. type: =item
15866 #: ../fish/guestfish.pod:210
15867 msgid "B<--no-dest-paths>"
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../fish/guestfish.pod:212
15872 msgid ""
15873 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15874 "to hit the tab key to complete paths on the guest filesystem, but this "
15875 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15876 "allow this feature to be disabled."
15877 msgstr ""
15878
15879 #. type: textblock
15880 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
15881 msgid ""
15882 "When prompting for keys and passphrases, guestfish normally turns echoing "
15883 "off so you cannot see what you are typing.  If you are not worried about "
15884 "Tempest attacks and there is no one else in the room you can specify this "
15885 "flag to see what you are typing."
15886 msgstr ""
15887
15888 #. type: =item
15889 #: ../fish/guestfish.pod:224
15890 msgid "B<-f file>"
15891 msgstr ""
15892
15893 #. type: =item
15894 #: ../fish/guestfish.pod:226
15895 msgid "B<--file file>"
15896 msgstr ""
15897
15898 #. type: textblock
15899 #: ../fish/guestfish.pod:228
15900 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15901 msgstr ""
15902
15903 #. type: verbatim
15904 #: ../fish/guestfish.pod:231
15905 #, no-wrap
15906 msgid ""
15907 " #!/usr/bin/guestfish -f\n"
15908 "\n"
15909 msgstr ""
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish.pod:244
15913 #, no-wrap
15914 msgid ""
15915 " guestfish --format=raw -a disk.img\n"
15916 "\n"
15917 msgstr ""
15918
15919 #. type: verbatim
15920 #: ../fish/guestfish.pod:248
15921 #, no-wrap
15922 msgid ""
15923 " guestfish --format=raw -a disk.img --format -a another.img\n"
15924 "\n"
15925 msgstr ""
15926
15927 #. type: textblock
15928 #: ../fish/guestfish.pod:253
15929 msgid ""
15930 "If you have untrusted raw-format guest disk images, you should use this "
15931 "option to specify the disk format.  This avoids a possible security problem "
15932 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15933 msgstr ""
15934
15935 #. type: =item
15936 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
15937 msgid "B<--inspector>"
15938 msgstr ""
15939
15940 #. type: textblock
15941 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
15942 msgid ""
15943 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15944 "system and mount filesystems as they would be mounted on the real virtual "
15945 "machine."
15946 msgstr ""
15947
15948 #. type: textblock
15949 #: ../fish/guestfish.pod:266
15950 msgid "Typical usage is either:"
15951 msgstr ""
15952
15953 #. type: verbatim
15954 #: ../fish/guestfish.pod:268
15955 #, no-wrap
15956 msgid ""
15957 " guestfish -d myguest -i\n"
15958 "\n"
15959 msgstr ""
15960
15961 #. type: textblock
15962 #: ../fish/guestfish.pod:270
15963 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15964 msgstr ""
15965
15966 #. type: verbatim
15967 #: ../fish/guestfish.pod:272
15968 #, no-wrap
15969 msgid ""
15970 " guestfish --ro -d myguest -i\n"
15971 "\n"
15972 msgstr ""
15973
15974 #. type: textblock
15975 #: ../fish/guestfish.pod:274
15976 msgid "(for active domains, readonly), or specify the block device directly:"
15977 msgstr ""
15978
15979 #. type: verbatim
15980 #: ../fish/guestfish.pod:276
15981 #, no-wrap
15982 msgid ""
15983 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
15984 "\n"
15985 msgstr ""
15986
15987 #. type: textblock
15988 #: ../fish/guestfish.pod:278
15989 msgid ""
15990 "Note that the command line syntax changed slightly over older versions of "
15991 "guestfish.  You can still use the old syntax:"
15992 msgstr ""
15993
15994 #. type: verbatim
15995 #: ../fish/guestfish.pod:281
15996 #, no-wrap
15997 msgid ""
15998 " guestfish [--ro] -i disk.img\n"
15999 "\n"
16000 msgstr ""
16001
16002 #. type: verbatim
16003 #: ../fish/guestfish.pod:283
16004 #, no-wrap
16005 msgid ""
16006 " guestfish [--ro] -i libvirt-domain\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish.pod:285
16012 msgid ""
16013 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16014 "then using other commands to mount the filesystems that were found."
16015 msgstr ""
16016
16017 #. type: =item
16018 #: ../fish/guestfish.pod:294
16019 msgid "B<--listen>"
16020 msgstr ""
16021
16022 #. type: textblock
16023 #: ../fish/guestfish.pod:296
16024 msgid ""
16025 "Fork into the background and listen for remote commands.  See section "
16026 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16027 msgstr ""
16028
16029 #. type: =item
16030 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
16031 msgid "B<--live>"
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
16036 msgid ""
16037 "Connect to a live virtual machine.  (Experimental, see "
16038 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16039 msgstr ""
16040
16041 #. type: =item
16042 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
16043 msgid "B<-m dev[:mountpoint[:options]]>"
16044 msgstr ""
16045
16046 #. type: =item
16047 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
16048 msgid "B<--mount dev[:mountpoint[:options]]>"
16049 msgstr ""
16050
16051 #. type: textblock
16052 #: ../fish/guestfish.pod:308
16053 msgid "Mount the named partition or logical volume on the given mountpoint."
16054 msgstr ""
16055
16056 #. type: textblock
16057 #: ../fish/guestfish.pod:310
16058 msgid "If the mountpoint is omitted, it defaults to C</>."
16059 msgstr ""
16060
16061 #. type: textblock
16062 #: ../fish/guestfish.pod:312
16063 msgid "You have to mount something on C</> before most commands will work."
16064 msgstr ""
16065
16066 #. type: textblock
16067 #: ../fish/guestfish.pod:314
16068 msgid ""
16069 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16070 "launched."
16071 msgstr ""
16072
16073 #. type: textblock
16074 #: ../fish/guestfish.pod:317
16075 msgid ""
16076 "If you don't know what filesystems a disk image contains, you can either run "
16077 "guestfish without this option, then list the partitions, filesystems and LVs "
16078 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16079 "commands), or you can use the L<virt-filesystems(1)> program."
16080 msgstr ""
16081
16082 #. type: textblock
16083 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
16084 msgid ""
16085 "The third (and rarely used) part of the mount parameter is the list of mount "
16086 "options used to mount the underlying filesystem.  If this is not given, then "
16087 "the mount options are either the empty string or C<ro> (the latter if the "
16088 "I<--ro> flag is used).  By specifying the mount options, you override this "
16089 "default choice.  Probably the only time you would use this is to enable ACLs "
16090 "and/or extended attributes if the filesystem can support them:"
16091 msgstr ""
16092
16093 #. type: verbatim
16094 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
16095 #, no-wrap
16096 msgid ""
16097 " -m /dev/sda1:/:acl,user_xattr\n"
16098 "\n"
16099 msgstr ""
16100
16101 #. type: textblock
16102 #: ../fish/guestfish.pod:333
16103 msgid "Using this flag is equivalent to using the C<mount-options> command."
16104 msgstr ""
16105
16106 #. type: =item
16107 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202 ../resize/virt-resize.pod:358
16108 msgid "B<-n>"
16109 msgstr ""
16110
16111 #. type: =item
16112 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
16113 msgid "B<--no-sync>"
16114 msgstr ""
16115
16116 #. type: textblock
16117 #: ../fish/guestfish.pod:339
16118 msgid ""
16119 "Disable autosync.  This is enabled by default.  See the discussion of "
16120 "autosync in the L<guestfs(3)> manpage."
16121 msgstr ""
16122
16123 #. type: =item
16124 #: ../fish/guestfish.pod:342
16125 msgid "B<-N type>"
16126 msgstr ""
16127
16128 #. type: =item
16129 #: ../fish/guestfish.pod:344
16130 msgid "B<--new type>"
16131 msgstr ""
16132
16133 #. type: =item
16134 #: ../fish/guestfish.pod:346
16135 msgid "B<-N help>"
16136 msgstr ""
16137
16138 #. type: textblock
16139 #: ../fish/guestfish.pod:348
16140 msgid ""
16141 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16142 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16143 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16144 "IMAGES> below."
16145 msgstr ""
16146
16147 #. type: =item
16148 #: ../fish/guestfish.pod:353
16149 msgid "B<--progress-bars>"
16150 msgstr ""
16151
16152 #. type: textblock
16153 #: ../fish/guestfish.pod:355
16154 msgid "Enable progress bars, even when guestfish is used non-interactively."
16155 msgstr ""
16156
16157 #. type: textblock
16158 #: ../fish/guestfish.pod:357
16159 msgid ""
16160 "Progress bars are enabled by default when guestfish is used as an "
16161 "interactive shell."
16162 msgstr ""
16163
16164 #. type: =item
16165 #: ../fish/guestfish.pod:360
16166 msgid "B<--no-progress-bars>"
16167 msgstr ""
16168
16169 #. type: textblock
16170 #: ../fish/guestfish.pod:362
16171 msgid "Disable progress bars."
16172 msgstr ""
16173
16174 #. type: =item
16175 #: ../fish/guestfish.pod:364
16176 msgid "B<--remote[=pid]>"
16177 msgstr ""
16178
16179 #. type: textblock
16180 #: ../fish/guestfish.pod:366
16181 msgid ""
16182 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16183 "CONTROL GUESTFISH OVER A SOCKET> below."
16184 msgstr ""
16185
16186 #. type: =item
16187 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248 ../rescue/virt-rescue.pod:161
16188 msgid "B<-r>"
16189 msgstr ""
16190
16191 #. type: =item
16192 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250 ../rescue/virt-rescue.pod:163
16193 msgid "B<--ro>"
16194 msgstr ""
16195
16196 #. type: textblock
16197 #: ../fish/guestfish.pod:373
16198 msgid ""
16199 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16200 "mounts are done read-only."
16201 msgstr ""
16202
16203 #. type: textblock
16204 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16205 msgid ""
16206 "The option must always be used if the disk image or virtual machine might be "
16207 "running, and is generally recommended in cases where you don't need write "
16208 "access to the disk."
16209 msgstr ""
16210
16211 #. type: textblock
16212 #: ../fish/guestfish.pod:380
16213 msgid ""
16214 "Note that prepared disk images created with I<-N> are not affected by this "
16215 "option.  Also commands like C<add> are not affected - you have to specify "
16216 "the C<readonly:true> option explicitly if you need it."
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish.pod:384
16221 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16222 msgstr ""
16223
16224 #. type: =item
16225 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262 ../rescue/virt-rescue.pod:173
16226 msgid "B<--selinux>"
16227 msgstr ""
16228
16229 #. type: textblock
16230 #: ../fish/guestfish.pod:388
16231 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../fish/guestfish.pod:394
16236 msgid ""
16237 "Enable very verbose messages.  This is particularly useful if you find a "
16238 "bug."
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:401
16243 msgid "Display the guestfish / libguestfs version number and exit."
16244 msgstr ""
16245
16246 #. type: =item
16247 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278 ../rescue/virt-rescue.pod:190
16248 msgid "B<-w>"
16249 msgstr ""
16250
16251 #. type: =item
16252 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280 ../rescue/virt-rescue.pod:192
16253 msgid "B<--rw>"
16254 msgstr ""
16255
16256 #. type: textblock
16257 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
16258 msgid ""
16259 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16260 "mounts are done read-write."
16261 msgstr ""
16262
16263 #. type: textblock
16264 #: ../fish/guestfish.pod:410
16265 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish.pod:414
16270 msgid "Echo each command before executing it."
16271 msgstr ""
16272
16273 #. type: =head1
16274 #: ../fish/guestfish.pod:418
16275 msgid "COMMANDS ON COMMAND LINE"
16276 msgstr ""
16277
16278 #. type: textblock
16279 #: ../fish/guestfish.pod:420
16280 msgid "Any additional (non-option) arguments are treated as commands to execute."
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish.pod:423
16285 msgid ""
16286 "Commands to execute should be separated by a colon (C<:>), where the colon "
16287 "is a separate parameter.  Thus:"
16288 msgstr ""
16289
16290 #. type: verbatim
16291 #: ../fish/guestfish.pod:426
16292 #, no-wrap
16293 msgid ""
16294 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16295 "\n"
16296 msgstr ""
16297
16298 #. type: textblock
16299 #: ../fish/guestfish.pod:428
16300 msgid ""
16301 "If there are no additional arguments, then we enter a shell, either an "
16302 "interactive shell with a prompt (if the input is a terminal) or a "
16303 "non-interactive shell."
16304 msgstr ""
16305
16306 #. type: textblock
16307 #: ../fish/guestfish.pod:432
16308 msgid ""
16309 "In either command line mode or non-interactive shell, the first command that "
16310 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16311 "prompt) if a command fails, you can continue to enter commands."
16312 msgstr ""
16313
16314 #. type: =head1
16315 #: ../fish/guestfish.pod:437
16316 msgid "USING launch (OR run)"
16317 msgstr ""
16318
16319 #. type: textblock
16320 #: ../fish/guestfish.pod:439
16321 msgid ""
16322 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16323 "then launch it, then mount any disks you need, and finally issue "
16324 "actions/commands.  So the general order of the day is:"
16325 msgstr ""
16326
16327 #. type: textblock
16328 #: ../fish/guestfish.pod:447
16329 msgid "add or -a/--add"
16330 msgstr ""
16331
16332 #. type: textblock
16333 #: ../fish/guestfish.pod:451
16334 msgid "launch (aka run)"
16335 msgstr ""
16336
16337 #. type: textblock
16338 #: ../fish/guestfish.pod:455
16339 msgid "mount or -m/--mount"
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish.pod:459
16344 msgid "any other commands"
16345 msgstr ""
16346
16347 #. type: textblock
16348 #: ../fish/guestfish.pod:463
16349 msgid ""
16350 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16351 "guest before mounting or performing any other commands."
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../fish/guestfish.pod:466
16356 msgid ""
16357 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16358 "I<--new> options were given then C<run> is done automatically, simply "
16359 "because guestfish can't perform the action you asked for without doing this."
16360 msgstr ""
16361
16362 #. type: =head1
16363 #: ../fish/guestfish.pod:471
16364 msgid "OPENING DISKS FOR READ AND WRITE"
16365 msgstr ""
16366
16367 #. type: textblock
16368 #: ../fish/guestfish.pod:473
16369 msgid ""
16370 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16371 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16372 "I<-i> and I<-m> open disk images read-only or for writing."
16373 msgstr ""
16374
16375 #. type: textblock
16376 #: ../fish/guestfish.pod:478
16377 msgid ""
16378 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16379 "opening disk images supplied on the command line for write.  To open a disk "
16380 "image read-only you have to do I<-a image --ro>."
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish.pod:482
16385 msgid ""
16386 "This matters: If you accidentally open a live VM disk image writable then "
16387 "you will cause irreversible disk corruption."
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish.pod:485
16392 msgid ""
16393 "In a future libguestfs we intend to change the default the other way.  Disk "
16394 "images will be opened read-only.  You will have to either specify "
16395 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16396 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16397 "access for disk images specified by those other command line options."
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../fish/guestfish.pod:492
16402 msgid ""
16403 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16404 "which does nothing (it is already the default).  However it is highly "
16405 "recommended that you use this option to indicate that you need write access, "
16406 "and prepare your scripts for the day when this option will be required for "
16407 "write access."
16408 msgstr ""
16409
16410 #. type: textblock
16411 #: ../fish/guestfish.pod:498
16412 msgid ""
16413 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16414 "other libguestfs program apart from guestfish and guestmount."
16415 msgstr ""
16416
16417 #. type: =head1
16418 #: ../fish/guestfish.pod:501
16419 msgid "QUOTING"
16420 msgstr ""
16421
16422 #. type: textblock
16423 #: ../fish/guestfish.pod:503
16424 msgid ""
16425 "You can quote ordinary parameters using either single or double quotes.  For "
16426 "example:"
16427 msgstr ""
16428
16429 #. type: verbatim
16430 #: ../fish/guestfish.pod:506
16431 #, no-wrap
16432 msgid ""
16433 " add \"file with a space.img\"\n"
16434 "\n"
16435 msgstr ""
16436
16437 #. type: verbatim
16438 #: ../fish/guestfish.pod:508
16439 #, no-wrap
16440 msgid ""
16441 " rm '/file name'\n"
16442 "\n"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish.pod:510
16447 #, no-wrap
16448 msgid ""
16449 " rm '/\"'\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish.pod:512
16455 msgid ""
16456 "A few commands require a list of strings to be passed.  For these, use a "
16457 "whitespace-separated list, enclosed in quotes.  Strings containing "
16458 "whitespace to be passed through must be enclosed in single quotes.  A "
16459 "literal single quote must be escaped with a backslash."
16460 msgstr ""
16461
16462 #. type: verbatim
16463 #: ../fish/guestfish.pod:517
16464 #, no-wrap
16465 msgid ""
16466 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16467 " command \"/bin/echo 'foo      bar'\"\n"
16468 " command \"/bin/echo \\'foo\\'\"\n"
16469 "\n"
16470 msgstr ""
16471
16472 #. type: =head2
16473 #: ../fish/guestfish.pod:521
16474 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish.pod:523
16479 msgid ""
16480 "In double-quoted arguments (only) use backslash to insert special "
16481 "characters:"
16482 msgstr ""
16483
16484 #. type: =item
16485 #: ../fish/guestfish.pod:528
16486 msgid "C<\\a>"
16487 msgstr ""
16488
16489 #. type: textblock
16490 #: ../fish/guestfish.pod:530
16491 msgid "Alert (bell) character."
16492 msgstr ""
16493
16494 #. type: =item
16495 #: ../fish/guestfish.pod:532
16496 msgid "C<\\b>"
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../fish/guestfish.pod:534
16501 msgid "Backspace character."
16502 msgstr ""
16503
16504 #. type: =item
16505 #: ../fish/guestfish.pod:536
16506 msgid "C<\\f>"
16507 msgstr ""
16508
16509 #. type: textblock
16510 #: ../fish/guestfish.pod:538
16511 msgid "Form feed character."
16512 msgstr ""
16513
16514 #. type: =item
16515 #: ../fish/guestfish.pod:540
16516 msgid "C<\\n>"
16517 msgstr ""
16518
16519 #. type: textblock
16520 #: ../fish/guestfish.pod:542
16521 msgid "Newline character."
16522 msgstr ""
16523
16524 #. type: =item
16525 #: ../fish/guestfish.pod:544
16526 msgid "C<\\r>"
16527 msgstr ""
16528
16529 #. type: textblock
16530 #: ../fish/guestfish.pod:546
16531 msgid "Carriage return character."
16532 msgstr ""
16533
16534 #. type: =item
16535 #: ../fish/guestfish.pod:548
16536 msgid "C<\\t>"
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish.pod:550
16541 msgid "Horizontal tab character."
16542 msgstr ""
16543
16544 #. type: =item
16545 #: ../fish/guestfish.pod:552
16546 msgid "C<\\v>"
16547 msgstr ""
16548
16549 #. type: textblock
16550 #: ../fish/guestfish.pod:554
16551 msgid "Vertical tab character."
16552 msgstr ""
16553
16554 #. type: =item
16555 #: ../fish/guestfish.pod:556
16556 msgid "C<\\\">"
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../fish/guestfish.pod:558
16561 msgid "A literal double quote character."
16562 msgstr ""
16563
16564 #. type: =item
16565 #: ../fish/guestfish.pod:560
16566 msgid "C<\\ooo>"
16567 msgstr ""
16568
16569 #. type: textblock
16570 #: ../fish/guestfish.pod:562
16571 msgid ""
16572 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16573 "(unlike C)."
16574 msgstr ""
16575
16576 #. type: =item
16577 #: ../fish/guestfish.pod:565
16578 msgid "C<\\xhh>"
16579 msgstr ""
16580
16581 #. type: textblock
16582 #: ../fish/guestfish.pod:567
16583 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16584 msgstr ""
16585
16586 #. type: textblock
16587 #: ../fish/guestfish.pod:570
16588 msgid ""
16589 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16590 "strings."
16591 msgstr ""
16592
16593 #. type: =item
16594 #: ../fish/guestfish.pod:573
16595 msgid "C<\\\\>"
16596 msgstr ""
16597
16598 #. type: textblock
16599 #: ../fish/guestfish.pod:575
16600 msgid "A literal backslash character."
16601 msgstr ""
16602
16603 #. type: =head1
16604 #: ../fish/guestfish.pod:579
16605 msgid "OPTIONAL ARGUMENTS"
16606 msgstr ""
16607
16608 #. type: textblock
16609 #: ../fish/guestfish.pod:581
16610 msgid ""
16611 "Some commands take optional arguments.  These arguments appear in this "
16612 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16613 msgstr ""
16614
16615 #. type: verbatim
16616 #: ../fish/guestfish.pod:585
16617 #, no-wrap
16618 msgid ""
16619 " add-drive-opts filename\n"
16620 "\n"
16621 msgstr ""
16622
16623 #. type: verbatim
16624 #: ../fish/guestfish.pod:587
16625 #, no-wrap
16626 msgid ""
16627 " add-drive-opts filename readonly:true\n"
16628 "\n"
16629 msgstr ""
16630
16631 #. type: verbatim
16632 #: ../fish/guestfish.pod:589
16633 #, no-wrap
16634 msgid ""
16635 " add-drive-opts filename format:qcow2 readonly:false\n"
16636 "\n"
16637 msgstr ""
16638
16639 #. type: textblock
16640 #: ../fish/guestfish.pod:591
16641 msgid ""
16642 "Each optional argument can appear at most once.  All optional arguments must "
16643 "appear after the required ones."
16644 msgstr ""
16645
16646 #. type: =head1
16647 #: ../fish/guestfish.pod:594
16648 msgid "NUMBERS"
16649 msgstr ""
16650
16651 #. type: textblock
16652 #: ../fish/guestfish.pod:596
16653 msgid "This section applies to all commands which can take integers as parameters."
16654 msgstr ""
16655
16656 #. type: =head2
16657 #: ../fish/guestfish.pod:599
16658 msgid "SIZE SUFFIX"
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish.pod:601
16663 msgid ""
16664 "When the command takes a parameter measured in bytes, you can use one of the "
16665 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16666 msgstr ""
16667
16668 #. type: =item
16669 #: ../fish/guestfish.pod:607
16670 msgid "B<k> or B<K> or B<KiB>"
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish.pod:609
16675 msgid "The size in kilobytes (multiplied by 1024)."
16676 msgstr ""
16677
16678 #. type: =item
16679 #: ../fish/guestfish.pod:611
16680 msgid "B<KB>"
16681 msgstr ""
16682
16683 #. type: textblock
16684 #: ../fish/guestfish.pod:613
16685 msgid "The size in SI 1000 byte units."
16686 msgstr ""
16687
16688 #. type: =item
16689 #: ../fish/guestfish.pod:615
16690 msgid "B<M> or B<MiB>"
16691 msgstr ""
16692
16693 #. type: textblock
16694 #: ../fish/guestfish.pod:617
16695 msgid "The size in megabytes (multiplied by 1048576)."
16696 msgstr ""
16697
16698 #. type: =item
16699 #: ../fish/guestfish.pod:619
16700 msgid "B<MB>"
16701 msgstr ""
16702
16703 #. type: textblock
16704 #: ../fish/guestfish.pod:621
16705 msgid "The size in SI 1000000 byte units."
16706 msgstr ""
16707
16708 #. type: =item
16709 #: ../fish/guestfish.pod:623
16710 msgid "B<G> or B<GiB>"
16711 msgstr ""
16712
16713 #. type: textblock
16714 #: ../fish/guestfish.pod:625
16715 msgid "The size in gigabytes (multiplied by 2**30)."
16716 msgstr ""
16717
16718 #. type: =item
16719 #: ../fish/guestfish.pod:627
16720 msgid "B<GB>"
16721 msgstr ""
16722
16723 #. type: textblock
16724 #: ../fish/guestfish.pod:629
16725 msgid "The size in SI 10**9 byte units."
16726 msgstr ""
16727
16728 #. type: =item
16729 #: ../fish/guestfish.pod:631
16730 msgid "B<T> or B<TiB>"
16731 msgstr ""
16732
16733 #. type: textblock
16734 #: ../fish/guestfish.pod:633
16735 msgid "The size in terabytes (multiplied by 2**40)."
16736 msgstr ""
16737
16738 #. type: =item
16739 #: ../fish/guestfish.pod:635
16740 msgid "B<TB>"
16741 msgstr ""
16742
16743 #. type: textblock
16744 #: ../fish/guestfish.pod:637
16745 msgid "The size in SI 10**12 byte units."
16746 msgstr ""
16747
16748 #. type: =item
16749 #: ../fish/guestfish.pod:639
16750 msgid "B<P> or B<PiB>"
16751 msgstr ""
16752
16753 #. type: textblock
16754 #: ../fish/guestfish.pod:641
16755 msgid "The size in petabytes (multiplied by 2**50)."
16756 msgstr ""
16757
16758 #. type: =item
16759 #: ../fish/guestfish.pod:643
16760 msgid "B<PB>"
16761 msgstr ""
16762
16763 #. type: textblock
16764 #: ../fish/guestfish.pod:645
16765 msgid "The size in SI 10**15 byte units."
16766 msgstr ""
16767
16768 #. type: =item
16769 #: ../fish/guestfish.pod:647
16770 msgid "B<E> or B<EiB>"
16771 msgstr ""
16772
16773 #. type: textblock
16774 #: ../fish/guestfish.pod:649
16775 msgid "The size in exabytes (multiplied by 2**60)."
16776 msgstr ""
16777
16778 #. type: =item
16779 #: ../fish/guestfish.pod:651
16780 msgid "B<EB>"
16781 msgstr ""
16782
16783 #. type: textblock
16784 #: ../fish/guestfish.pod:653
16785 msgid "The size in SI 10**18 byte units."
16786 msgstr ""
16787
16788 #. type: =item
16789 #: ../fish/guestfish.pod:655
16790 msgid "B<Z> or B<ZiB>"
16791 msgstr ""
16792
16793 #. type: textblock
16794 #: ../fish/guestfish.pod:657
16795 msgid "The size in zettabytes (multiplied by 2**70)."
16796 msgstr ""
16797
16798 #. type: =item
16799 #: ../fish/guestfish.pod:659
16800 msgid "B<ZB>"
16801 msgstr ""
16802
16803 #. type: textblock
16804 #: ../fish/guestfish.pod:661
16805 msgid "The size in SI 10**21 byte units."
16806 msgstr ""
16807
16808 #. type: =item
16809 #: ../fish/guestfish.pod:663
16810 msgid "B<Y> or B<YiB>"
16811 msgstr ""
16812
16813 #. type: textblock
16814 #: ../fish/guestfish.pod:665
16815 msgid "The size in yottabytes (multiplied by 2**80)."
16816 msgstr ""
16817
16818 #. type: =item
16819 #: ../fish/guestfish.pod:667
16820 msgid "B<YB>"
16821 msgstr ""
16822
16823 #. type: textblock
16824 #: ../fish/guestfish.pod:669
16825 msgid "The size in SI 10**24 byte units."
16826 msgstr ""
16827
16828 #. type: verbatim
16829 #: ../fish/guestfish.pod:675
16830 #, no-wrap
16831 msgid ""
16832 " truncate-size /file 1G\n"
16833 "\n"
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../fish/guestfish.pod:677
16838 msgid "would truncate the file to 1 gigabyte."
16839 msgstr ""
16840
16841 #. type: textblock
16842 #: ../fish/guestfish.pod:679
16843 msgid ""
16844 "Be careful because a few commands take sizes in kilobytes or megabytes "
16845 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16846 "Adding a suffix will probably not do what you expect."
16847 msgstr ""
16848
16849 #. type: =head2
16850 #: ../fish/guestfish.pod:683
16851 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16852 msgstr ""
16853
16854 #. type: textblock
16855 #: ../fish/guestfish.pod:685
16856 msgid ""
16857 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16858 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16859 msgstr ""
16860
16861 #. type: verbatim
16862 #: ../fish/guestfish.pod:688
16863 #, no-wrap
16864 msgid ""
16865 " 1234      decimal number 1234\n"
16866 " 02322     octal number, equivalent to decimal 1234\n"
16867 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16868 "\n"
16869 msgstr ""
16870
16871 #. type: textblock
16872 #: ../fish/guestfish.pod:692
16873 msgid ""
16874 "When using the C<chmod> command, you almost always want to specify an octal "
16875 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16876 "L<chmod(1)> program):"
16877 msgstr ""
16878
16879 #. type: verbatim
16880 #: ../fish/guestfish.pod:696
16881 #, no-wrap
16882 msgid ""
16883 " chmod 0777 /public  # OK\n"
16884 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16885 "\n"
16886 msgstr ""
16887
16888 #. type: textblock
16889 #: ../fish/guestfish.pod:699
16890 msgid ""
16891 "Commands that return numbers usually print them in decimal, but some "
16892 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16893 "octal, preceeded by C<0>)."
16894 msgstr ""
16895
16896 #. type: =head1
16897 #: ../fish/guestfish.pod:703
16898 msgid "WILDCARDS AND GLOBBING"
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish.pod:705
16903 msgid ""
16904 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16905 "(globbing) by default.  So for example the following will not do what you "
16906 "expect:"
16907 msgstr ""
16908
16909 #. type: verbatim
16910 #: ../fish/guestfish.pod:709
16911 #, no-wrap
16912 msgid ""
16913 " rm-rf /home/*\n"
16914 "\n"
16915 msgstr ""
16916
16917 #. type: textblock
16918 #: ../fish/guestfish.pod:711
16919 msgid ""
16920 "Assuming you don't have a directory called literally C</home/*> then the "
16921 "above command will return an error."
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../fish/guestfish.pod:714
16926 msgid "To perform wildcard expansion, use the C<glob> command."
16927 msgstr ""
16928
16929 #. type: verbatim
16930 #: ../fish/guestfish.pod:716
16931 #, no-wrap
16932 msgid ""
16933 " glob rm-rf /home/*\n"
16934 "\n"
16935 msgstr ""
16936
16937 #. type: textblock
16938 #: ../fish/guestfish.pod:718
16939 msgid ""
16940 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16941 "many times), equivalent to:"
16942 msgstr ""
16943
16944 #. type: verbatim
16945 #: ../fish/guestfish.pod:721
16946 #, no-wrap
16947 msgid ""
16948 " rm-rf /home/jim\n"
16949 " rm-rf /home/joe\n"
16950 " rm-rf /home/mary\n"
16951 "\n"
16952 msgstr ""
16953
16954 #. type: textblock
16955 #: ../fish/guestfish.pod:725
16956 msgid "C<glob> only works on simple guest paths and not on device names."
16957 msgstr ""
16958
16959 #. type: textblock
16960 #: ../fish/guestfish.pod:727
16961 msgid ""
16962 "If you have several parameters, each containing a wildcard, then glob will "
16963 "perform a Cartesian product."
16964 msgstr ""
16965
16966 #. type: =head1
16967 #: ../fish/guestfish.pod:730
16968 msgid "COMMENTS"
16969 msgstr ""
16970
16971 #. type: textblock
16972 #: ../fish/guestfish.pod:732
16973 msgid ""
16974 "Any line which starts with a I<#> character is treated as a comment and "
16975 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16976 "a command.  For example:"
16977 msgstr ""
16978
16979 #. type: verbatim
16980 #: ../fish/guestfish.pod:736
16981 #, no-wrap
16982 msgid ""
16983 " # this is a comment\n"
16984 "         # this is a comment\n"
16985 " foo # NOT a comment\n"
16986 "\n"
16987 msgstr ""
16988
16989 #. type: textblock
16990 #: ../fish/guestfish.pod:740
16991 msgid "Blank lines are also ignored."
16992 msgstr ""
16993
16994 #. type: =head1
16995 #: ../fish/guestfish.pod:742
16996 msgid "RUNNING COMMANDS LOCALLY"
16997 msgstr ""
16998
16999 #. type: textblock
17000 #: ../fish/guestfish.pod:744
17001 msgid ""
17002 "Any line which starts with a I<!> character is treated as a command sent to "
17003 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17004 msgstr ""
17005
17006 #. type: verbatim
17007 #: ../fish/guestfish.pod:748
17008 #, no-wrap
17009 msgid ""
17010 " !mkdir local\n"
17011 " tgz-out /remote local/remote-data.tar.gz\n"
17012 "\n"
17013 msgstr ""
17014
17015 #. type: textblock
17016 #: ../fish/guestfish.pod:751
17017 msgid ""
17018 "will create a directory C<local> on the host, and then export the contents "
17019 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17020 "(See C<tgz-out>)."
17021 msgstr ""
17022
17023 #. type: textblock
17024 #: ../fish/guestfish.pod:755
17025 msgid ""
17026 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17027 "effect, due to the way that subprocesses work in Unix."
17028 msgstr ""
17029
17030 #. type: =head2
17031 #: ../fish/guestfish.pod:758
17032 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17033 msgstr ""
17034
17035 #. type: textblock
17036 #: ../fish/guestfish.pod:760
17037 msgid ""
17038 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17039 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17040 "and executed as guestfish commands."
17041 msgstr ""
17042
17043 #. type: textblock
17044 #: ../fish/guestfish.pod:764
17045 msgid ""
17046 "Thus you can use shell script to construct arbitrary guestfish commands "
17047 "which are then parsed by guestfish."
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../fish/guestfish.pod:767
17052 msgid ""
17053 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17054 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17055 "if we use a shell script to create the guestfish commands for us:"
17056 msgstr ""
17057
17058 #. type: verbatim
17059 #: ../fish/guestfish.pod:772
17060 #, no-wrap
17061 msgid ""
17062 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17063 "\n"
17064 msgstr ""
17065
17066 #. type: textblock
17067 #: ../fish/guestfish.pod:774
17068 msgid "or with names like C</foo.001>:"
17069 msgstr ""
17070
17071 #. type: verbatim
17072 #: ../fish/guestfish.pod:776
17073 #, no-wrap
17074 msgid ""
17075 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17076 "\n"
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../fish/guestfish.pod:778
17081 msgid ""
17082 "When using guestfish interactively it can be helpful to just run the shell "
17083 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17084 "ordinary I<!> local command), see what guestfish commands it would run, and "
17085 "when you are happy with those prepend the C<E<lt>> character to run the "
17086 "guestfish commands for real."
17087 msgstr ""
17088
17089 #. type: =head1
17090 #: ../fish/guestfish.pod:784
17091 msgid "PIPES"
17092 msgstr ""
17093
17094 #. type: textblock
17095 #: ../fish/guestfish.pod:786
17096 msgid ""
17097 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17098 "command (a guestfish command) to the second command (any host command).  For "
17099 "example:"
17100 msgstr ""
17101
17102 #. type: verbatim
17103 #: ../fish/guestfish.pod:790
17104 #, no-wrap
17105 msgid ""
17106 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17107 "\n"
17108 msgstr ""
17109
17110 #. type: textblock
17111 #: ../fish/guestfish.pod:792
17112 msgid ""
17113 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17114 "program).  The above command would list all accounts in the guest filesystem "
17115 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17116 msgstr ""
17117
17118 #. type: verbatim
17119 #: ../fish/guestfish.pod:797
17120 #, no-wrap
17121 msgid ""
17122 " hexdump /bin/ls | head\n"
17123 " list-devices | tail -1\n"
17124 " tgz-out / - | tar ztf -\n"
17125 "\n"
17126 msgstr ""
17127
17128 #. type: textblock
17129 #: ../fish/guestfish.pod:801
17130 msgid ""
17131 "The space before the pipe symbol is required, any space after the pipe "
17132 "symbol is optional.  Everything after the pipe symbol is just passed "
17133 "straight to the host shell, so it can contain redirections, globs and "
17134 "anything else that makes sense on the host side."
17135 msgstr ""
17136
17137 #. type: textblock
17138 #: ../fish/guestfish.pod:806
17139 msgid ""
17140 "To use a literal argument which begins with a pipe symbol, you have to quote "
17141 "it, eg:"
17142 msgstr ""
17143
17144 #. type: verbatim
17145 #: ../fish/guestfish.pod:809
17146 #, no-wrap
17147 msgid ""
17148 " echo \"|\"\n"
17149 "\n"
17150 msgstr ""
17151
17152 #. type: =head1
17153 #: ../fish/guestfish.pod:811
17154 msgid "HOME DIRECTORIES"
17155 msgstr ""
17156
17157 #. type: textblock
17158 #: ../fish/guestfish.pod:813
17159 msgid ""
17160 "If a parameter starts with the character C<~> then the tilde may be expanded "
17161 "as a home directory path (either C<~> for the current user's home directory, "
17162 "or C<~user> for another user)."
17163 msgstr ""
17164
17165 #. type: textblock
17166 #: ../fish/guestfish.pod:817
17167 msgid ""
17168 "Note that home directory expansion happens for users known I<on the host>, "
17169 "not in the guest filesystem."
17170 msgstr ""
17171
17172 #. type: textblock
17173 #: ../fish/guestfish.pod:820
17174 msgid ""
17175 "To use a literal argument which begins with a tilde, you have to quote it, "
17176 "eg:"
17177 msgstr ""
17178
17179 #. type: verbatim
17180 #: ../fish/guestfish.pod:823
17181 #, no-wrap
17182 msgid ""
17183 " echo \"~\"\n"
17184 "\n"
17185 msgstr ""
17186
17187 #. type: =head2
17188 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17189 msgid "ENCRYPTED DISKS"
17190 msgstr ""
17191
17192 #. type: textblock
17193 #: ../fish/guestfish.pod:827
17194 msgid ""
17195 "Libguestfs has some support for Linux guests encrypted according to the "
17196 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17197 "disk encryption systems used by modern Linux guests.  Currently only "
17198 "LVM-on-LUKS is supported."
17199 msgstr ""
17200
17201 #. type: textblock
17202 #: ../fish/guestfish.pod:832
17203 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17204 msgstr ""
17205
17206 #. type: verbatim
17207 #: ../fish/guestfish.pod:834
17208 #, no-wrap
17209 msgid ""
17210 " ><fs> vfs-type /dev/sda2\n"
17211 " crypto_LUKS\n"
17212 "\n"
17213 msgstr ""
17214
17215 #. type: textblock
17216 #: ../fish/guestfish.pod:837
17217 msgid ""
17218 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17219 "device called C</dev/mapper/luksdev>."
17220 msgstr ""
17221
17222 #. type: verbatim
17223 #: ../fish/guestfish.pod:840
17224 #, no-wrap
17225 msgid ""
17226 " ><fs> luks-open /dev/sda2 luksdev\n"
17227 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17228 "\n"
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish.pod:843
17233 msgid ""
17234 "Finally you have to tell LVM to scan for volume groups on the newly created "
17235 "mapper device:"
17236 msgstr ""
17237
17238 #. type: verbatim
17239 #: ../fish/guestfish.pod:846
17240 #, no-wrap
17241 msgid ""
17242 " vgscan\n"
17243 " vg-activate-all true\n"
17244 "\n"
17245 msgstr ""
17246
17247 #. type: textblock
17248 #: ../fish/guestfish.pod:849
17249 msgid "The logical volume(s) can now be mounted in the usual way."
17250 msgstr ""
17251
17252 #. type: textblock
17253 #: ../fish/guestfish.pod:851
17254 msgid ""
17255 "Before closing a LUKS device you must unmount any logical volumes on it and "
17256 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17257 "one.  Then you can close the mapper device:"
17258 msgstr ""
17259
17260 #. type: verbatim
17261 #: ../fish/guestfish.pod:855
17262 #, no-wrap
17263 msgid ""
17264 " vg-activate false /dev/VG\n"
17265 " luks-close /dev/mapper/luksdev\n"
17266 "\n"
17267 msgstr ""
17268
17269 #. type: textblock
17270 #: ../fish/guestfish.pod:860
17271 msgid ""
17272 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17273 "letters and paths (with some limitations).  The following commands are "
17274 "equivalent:"
17275 msgstr ""
17276
17277 #. type: verbatim
17278 #: ../fish/guestfish.pod:864
17279 #, no-wrap
17280 msgid ""
17281 " file /WINDOWS/system32/config/system.LOG\n"
17282 "\n"
17283 msgstr ""
17284
17285 #. type: verbatim
17286 #: ../fish/guestfish.pod:866
17287 #, no-wrap
17288 msgid ""
17289 " file win:\\windows\\system32\\config\\system.log\n"
17290 "\n"
17291 msgstr ""
17292
17293 #. type: verbatim
17294 #: ../fish/guestfish.pod:868
17295 #, no-wrap
17296 msgid ""
17297 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17298 "\n"
17299 msgstr ""
17300
17301 #. type: textblock
17302 #: ../fish/guestfish.pod:870
17303 msgid ""
17304 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17305 "where the drive is mounted, prepending that to the path, changing all "
17306 "backslash characters to forward slash, then resolving the result using "
17307 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17308 "then the parameter might be rewritten like this:"
17309 msgstr ""
17310
17311 #. type: verbatim
17312 #: ../fish/guestfish.pod:876
17313 #, no-wrap
17314 msgid ""
17315 " win:e:\\foo\\bar => /e/FOO/bar\n"
17316 "\n"
17317 msgstr ""
17318
17319 #. type: textblock
17320 #: ../fish/guestfish.pod:878
17321 msgid "This only works in argument positions that expect a path."
17322 msgstr ""
17323
17324 #. type: =head1
17325 #: ../fish/guestfish.pod:880
17326 msgid "UPLOADING AND DOWNLOADING FILES"
17327 msgstr ""
17328
17329 #. type: textblock
17330 #: ../fish/guestfish.pod:882
17331 msgid ""
17332 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17333 "others which upload from or download to a local file, you can use the "
17334 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17335 msgstr ""
17336
17337 #. type: verbatim
17338 #: ../fish/guestfish.pod:886
17339 #, no-wrap
17340 msgid ""
17341 " upload - /foo\n"
17342 "\n"
17343 msgstr ""
17344
17345 #. type: textblock
17346 #: ../fish/guestfish.pod:888
17347 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17348 msgstr ""
17349
17350 #. type: verbatim
17351 #: ../fish/guestfish.pod:891
17352 #, no-wrap
17353 msgid ""
17354 " tar-out /etc - | tar tf -\n"
17355 "\n"
17356 msgstr ""
17357
17358 #. type: textblock
17359 #: ../fish/guestfish.pod:893
17360 msgid ""
17361 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17362 "command (see L</PIPES>)."
17363 msgstr ""
17364
17365 #. type: textblock
17366 #: ../fish/guestfish.pod:896
17367 msgid ""
17368 "When using C<-> to read from stdin, the input is read up to the end of "
17369 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17370 "some arbitrary end marker:"
17371 msgstr ""
17372
17373 #. type: verbatim
17374 #: ../fish/guestfish.pod:900
17375 #, no-wrap
17376 msgid ""
17377 " upload -<<END /foo\n"
17378 " input line 1\n"
17379 " input line 2\n"
17380 " input line 3\n"
17381 " END\n"
17382 "\n"
17383 msgstr ""
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:906
17387 msgid ""
17388 "Any string of characters can be used instead of C<END>.  The end marker must "
17389 "appear on a line of its own, without any preceeding or following characters "
17390 "(not even spaces)."
17391 msgstr ""
17392
17393 #. type: textblock
17394 #: ../fish/guestfish.pod:910
17395 msgid ""
17396 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17397 "upload local files (so-called \"FileIn\" parameters in the generator)."
17398 msgstr ""
17399
17400 #. type: =head1
17401 #: ../fish/guestfish.pod:913
17402 msgid "EXIT ON ERROR BEHAVIOUR"
17403 msgstr ""
17404
17405 #. type: textblock
17406 #: ../fish/guestfish.pod:915
17407 msgid ""
17408 "By default, guestfish will ignore any errors when in interactive mode "
17409 "(ie. taking commands from a human over a tty), and will exit on the first "
17410 "error in non-interactive mode (scripts, commands given on the command line)."
17411 msgstr ""
17412
17413 #. type: textblock
17414 #: ../fish/guestfish.pod:920
17415 msgid ""
17416 "If you prefix a command with a I<-> character, then that command will not "
17417 "cause guestfish to exit, even if that (one) command returns an error."
17418 msgstr ""
17419
17420 #. type: =head1
17421 #: ../fish/guestfish.pod:924
17422 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17423 msgstr ""
17424
17425 #. type: textblock
17426 #: ../fish/guestfish.pod:926
17427 msgid ""
17428 "Guestfish can be remote-controlled over a socket.  This is useful "
17429 "particularly in shell scripts where you want to make several different "
17430 "changes to a filesystem, but you don't want the overhead of starting up a "
17431 "guestfish process each time."
17432 msgstr ""
17433
17434 #. type: textblock
17435 #: ../fish/guestfish.pod:931
17436 msgid "Start a guestfish server process using:"
17437 msgstr ""
17438
17439 #. type: verbatim
17440 #: ../fish/guestfish.pod:933
17441 #, no-wrap
17442 msgid ""
17443 " eval \"`guestfish --listen`\"\n"
17444 "\n"
17445 msgstr ""
17446
17447 #. type: textblock
17448 #: ../fish/guestfish.pod:935
17449 msgid "and then send it commands by doing:"
17450 msgstr ""
17451
17452 #. type: verbatim
17453 #: ../fish/guestfish.pod:937
17454 #, no-wrap
17455 msgid ""
17456 " guestfish --remote cmd [...]\n"
17457 "\n"
17458 msgstr ""
17459
17460 #. type: textblock
17461 #: ../fish/guestfish.pod:939
17462 msgid "To cause the server to exit, send it the exit command:"
17463 msgstr ""
17464
17465 #. type: textblock
17466 #: ../fish/guestfish.pod:943
17467 msgid ""
17468 "Note that the server will normally exit if there is an error in a command.  "
17469 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17470 "BEHAVIOUR>."
17471 msgstr ""
17472
17473 #. type: =head2
17474 #: ../fish/guestfish.pod:947
17475 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17476 msgstr ""
17477
17478 #. type: textblock
17479 #: ../fish/guestfish.pod:949
17480 msgid ""
17481 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17482 "is how the I<--remote> option knows where to send the commands.  You can "
17483 "have several guestfish listener processes running using:"
17484 msgstr ""
17485
17486 #. type: verbatim
17487 #: ../fish/guestfish.pod:953
17488 #, no-wrap
17489 msgid ""
17490 " eval \"`guestfish --listen`\"\n"
17491 " pid1=$GUESTFISH_PID\n"
17492 " eval \"`guestfish --listen`\"\n"
17493 " pid2=$GUESTFISH_PID\n"
17494 " ...\n"
17495 " guestfish --remote=$pid1 cmd\n"
17496 " guestfish --remote=$pid2 cmd\n"
17497 "\n"
17498 msgstr ""
17499
17500 #. type: =head2
17501 #: ../fish/guestfish.pod:961
17502 msgid "REMOTE CONTROL AND CSH"
17503 msgstr ""
17504
17505 #. type: textblock
17506 #: ../fish/guestfish.pod:963
17507 msgid ""
17508 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17509 "option:"
17510 msgstr ""
17511
17512 #. type: verbatim
17513 #: ../fish/guestfish.pod:966
17514 #, no-wrap
17515 msgid ""
17516 " eval \"`guestfish --listen --csh`\"\n"
17517 "\n"
17518 msgstr ""
17519
17520 #. type: =head2
17521 #: ../fish/guestfish.pod:968
17522 msgid "REMOTE CONTROL DETAILS"
17523 msgstr ""
17524
17525 #. type: textblock
17526 #: ../fish/guestfish.pod:970
17527 msgid ""
17528 "Remote control happens over a Unix domain socket called "
17529 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17530 "of the process, and C<$PID> is the process ID of the server."
17531 msgstr ""
17532
17533 #. type: textblock
17534 #: ../fish/guestfish.pod:974
17535 msgid "Guestfish client and server versions must match exactly."
17536 msgstr ""
17537
17538 #. type: =head2
17539 #: ../fish/guestfish.pod:976
17540 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
17541 msgstr ""
17542
17543 #. type: textblock
17544 #: ../fish/guestfish.pod:978
17545 msgid ""
17546 "From Bash, you can use the following code which creates a guestfish "
17547 "instance, correctly quotes the command line, handles failure to start, and "
17548 "cleans up guestfish when the script exits:"
17549 msgstr ""
17550
17551 #. type: verbatim
17552 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:958
17553 #, no-wrap
17554 msgid ""
17555 " #!/bin/bash -\n"
17556 " \n"
17557 msgstr ""
17558
17559 #. type: verbatim
17560 #: ../fish/guestfish.pod:986
17561 #, no-wrap
17562 msgid ""
17563 " guestfish[0]=\"guestfish\"\n"
17564 " guestfish[1]=\"--listen\"\n"
17565 " guestfish[2]=\"--ro\"\n"
17566 " guestfish[3]=\"-a\"\n"
17567 " guestfish[4]=\"disk.img\"\n"
17568 " \n"
17569 msgstr ""
17570
17571 #. type: verbatim
17572 #: ../fish/guestfish.pod:992
17573 #, no-wrap
17574 msgid ""
17575 " GUESTFISH_PID=\n"
17576 " eval $(\"${guestfish[@]}\")\n"
17577 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
17578 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
17579 "     exit 1\n"
17580 " fi\n"
17581 " \n"
17582 msgstr ""
17583
17584 #. type: verbatim
17585 #: ../fish/guestfish.pod:999
17586 #, no-wrap
17587 msgid ""
17588 " cleanup_guestfish ()\n"
17589 " {\n"
17590 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
17591 " }\n"
17592 " trap cleanup_guestfish EXIT ERR\n"
17593 " \n"
17594 msgstr ""
17595
17596 #. type: verbatim
17597 #: ../fish/guestfish.pod:1005
17598 #, no-wrap
17599 msgid ""
17600 " guestfish --remote -- run\n"
17601 " \n"
17602 msgstr ""
17603
17604 #. type: verbatim
17605 #: ../fish/guestfish.pod:1007
17606 #, no-wrap
17607 msgid ""
17608 " # ...\n"
17609 "\n"
17610 msgstr ""
17611
17612 #. type: =head2
17613 #: ../fish/guestfish.pod:1009
17614 msgid "REMOTE CONTROL RUN COMMAND HANGING"
17615 msgstr ""
17616
17617 #. type: textblock
17618 #: ../fish/guestfish.pod:1011
17619 msgid ""
17620 "Using the C<run> (or C<launch>) command remotely in a command substitution "
17621 "context hangs, ie. don't do (note the backquotes):"
17622 msgstr ""
17623
17624 #. type: verbatim
17625 #: ../fish/guestfish.pod:1014
17626 #, no-wrap
17627 msgid ""
17628 " a=`guestfish --remote run`\n"
17629 "\n"
17630 msgstr ""
17631
17632 #. type: textblock
17633 #: ../fish/guestfish.pod:1016
17634 msgid ""
17635 "Since the C<run> command produces no output on stdout, this is not useful "
17636 "anyway.  For further information see "
17637 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
17638 msgstr ""
17639
17640 #. type: =head1
17641 #: ../fish/guestfish.pod:1020
17642 msgid "PREPARED DISK IMAGES"
17643 msgstr ""
17644
17645 #. type: textblock
17646 #: ../fish/guestfish.pod:1022
17647 msgid ""
17648 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17649 "preformatted disk images that guestfish can make for you to save typing.  "
17650 "This is particularly useful for testing purposes.  This option is used "
17651 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17652 "can be mixed with I<-a>)."
17653 msgstr ""
17654
17655 #. type: textblock
17656 #: ../fish/guestfish.pod:1028
17657 msgid ""
17658 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17659 "the second and so on.  Existing files in the current directory are "
17660 "I<overwritten>."
17661 msgstr ""
17662
17663 #. type: textblock
17664 #: ../fish/guestfish.pod:1032
17665 msgid ""
17666 "The type briefly describes how the disk should be sized, partitioned, how "
17667 "filesystem(s) should be created, and how content should be added.  "
17668 "Optionally the type can be followed by extra parameters, separated by C<:> "
17669 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17670 "sparsely-allocated disk, containing a single partition, with the partition "
17671 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17672 "on a 1GB disk instead."
17673 msgstr ""
17674
17675 #. type: textblock
17676 #: ../fish/guestfish.pod:1040
17677 msgid "To list the available types and any extra parameters they take, run:"
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish.pod:1044
17682 msgid ""
17683 "Note that the prepared filesystem is not mounted.  You would usually have to "
17684 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish.pod:1048
17689 msgid ""
17690 "If any I<-N> or I<--new> options are given, the guest is automatically "
17691 "launched."
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish.pod:1053
17696 msgid "Create a 100MB disk with an ext4-formatted partition:"
17697 msgstr ""
17698
17699 #. type: verbatim
17700 #: ../fish/guestfish.pod:1055
17701 #, no-wrap
17702 msgid ""
17703 " guestfish -N fs:ext4\n"
17704 "\n"
17705 msgstr ""
17706
17707 #. type: textblock
17708 #: ../fish/guestfish.pod:1057
17709 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17710 msgstr ""
17711
17712 #. type: verbatim
17713 #: ../fish/guestfish.pod:1059
17714 #, no-wrap
17715 msgid ""
17716 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17717 "\n"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:1061
17722 msgid "Create a blank 200MB disk:"
17723 msgstr ""
17724
17725 #. type: verbatim
17726 #: ../fish/guestfish.pod:1063
17727 #, no-wrap
17728 msgid ""
17729 " guestfish -N disk:200M\n"
17730 "\n"
17731 msgstr ""
17732
17733 #. type: =head1
17734 #: ../fish/guestfish.pod:1065
17735 msgid "PROGRESS BARS"
17736 msgstr ""
17737
17738 #. type: textblock
17739 #: ../fish/guestfish.pod:1067
17740 msgid ""
17741 "Some (not all) long-running commands send progress notification messages as "
17742 "they are running.  Guestfish turns these messages into progress bars."
17743 msgstr ""
17744
17745 #. type: textblock
17746 #: ../fish/guestfish.pod:1071
17747 msgid ""
17748 "When a command that supports progress bars takes longer than two seconds to "
17749 "run, and if progress bars are enabled, then you will see one appearing below "
17750 "the command:"
17751 msgstr ""
17752
17753 #. type: verbatim
17754 #: ../fish/guestfish.pod:1075
17755 #, no-wrap
17756 msgid ""
17757 " ><fs> copy-size /large-file /another-file 2048M\n"
17758 " / 10% [#####-----------------------------------------] 00:30\n"
17759 "\n"
17760 msgstr ""
17761
17762 #. type: textblock
17763 #: ../fish/guestfish.pod:1078
17764 msgid ""
17765 "The spinner on the left hand side moves round once for every progress "
17766 "notification received from the backend.  This is a (reasonably) golden "
17767 "assurance that the command is \"doing something\" even if the progress bar "
17768 "is not moving, because the command is able to send the progress "
17769 "notifications.  When the bar reaches 100% and the command finishes, the "
17770 "spinner disappears."
17771 msgstr ""
17772
17773 #. type: textblock
17774 #: ../fish/guestfish.pod:1085
17775 msgid ""
17776 "Progress bars are enabled by default when guestfish is used interactively.  "
17777 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17778 "and you can disable them completely using I<--no-progress-bars>."
17779 msgstr ""
17780
17781 #. type: =head1
17782 #: ../fish/guestfish.pod:1090
17783 msgid "GUESTFISH COMMANDS"
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:1092
17788 msgid ""
17789 "The commands in this section are guestfish convenience commands, in other "
17790 "words, they are not part of the L<guestfs(3)> API."
17791 msgstr ""
17792
17793 #. type: =head2
17794 #: ../fish/guestfish.pod:1095
17795 msgid "help"
17796 msgstr ""
17797
17798 #. type: verbatim
17799 #: ../fish/guestfish.pod:1097
17800 #, no-wrap
17801 msgid ""
17802 " help\n"
17803 " help cmd\n"
17804 "\n"
17805 msgstr ""
17806
17807 #. type: textblock
17808 #: ../fish/guestfish.pod:1100
17809 msgid "Without any parameter, this provides general help."
17810 msgstr ""
17811
17812 #. type: textblock
17813 #: ../fish/guestfish.pod:1102
17814 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17815 msgstr ""
17816
17817 #. type: =head2
17818 #: ../fish/guestfish.pod:1104
17819 msgid "quit | exit"
17820 msgstr ""
17821
17822 #. type: textblock
17823 #: ../fish/guestfish.pod:1106
17824 msgid "This exits guestfish.  You can also use C<^D> key."
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../fish/guestfish.pod:1108
17829 msgid "@FISH_COMMANDS@"
17830 msgstr ""
17831
17832 #. type: =head1
17833 #: ../fish/guestfish.pod:1110
17834 msgid "COMMANDS"
17835 msgstr ""
17836
17837 #. type: textblock
17838 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1497
17839 msgid "@ACTIONS@"
17840 msgstr ""
17841
17842 #. type: textblock
17843 #: ../fish/guestfish.pod:1116
17844 msgid ""
17845 "guestfish returns 0 if the commands completed without error, or 1 if there "
17846 "was an error."
17847 msgstr ""
17848
17849 #. type: =item
17850 #: ../fish/guestfish.pod:1123
17851 msgid "EDITOR"
17852 msgstr ""
17853
17854 #. type: textblock
17855 #: ../fish/guestfish.pod:1125
17856 msgid ""
17857 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17858 "C<vi>."
17859 msgstr ""
17860
17861 #. type: =item
17862 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3089
17863 msgid "FEBOOTSTRAP_KERNEL"
17864 msgstr ""
17865
17866 #. type: =item
17867 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3091
17868 msgid "FEBOOTSTRAP_MODULES"
17869 msgstr ""
17870
17871 #. type: textblock
17872 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3093
17873 msgid ""
17874 "These two environment variables allow the kernel that libguestfs uses in the "
17875 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
17876 "most recent host kernel is chosen.  For more information about kernel "
17877 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
17878 "available in febootstrap E<ge> 3.8."
17879 msgstr ""
17880
17881 #. type: =item
17882 #: ../fish/guestfish.pod:1138
17883 msgid "GUESTFISH_DISPLAY_IMAGE"
17884 msgstr ""
17885
17886 #. type: textblock
17887 #: ../fish/guestfish.pod:1140
17888 msgid ""
17889 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
17890 "If not set, it uses L<display(1)>."
17891 msgstr ""
17892
17893 #. type: =item
17894 #: ../fish/guestfish.pod:1143
17895 msgid "GUESTFISH_PID"
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish.pod:1145
17900 msgid ""
17901 "Used with the I<--remote> option to specify the remote guestfish process to "
17902 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17903 msgstr ""
17904
17905 #. type: =item
17906 #: ../fish/guestfish.pod:1149
17907 msgid "HEXEDITOR"
17908 msgstr ""
17909
17910 #. type: textblock
17911 #: ../fish/guestfish.pod:1151
17912 msgid ""
17913 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17914 "not specified, the external L<hexedit(1)> program is used."
17915 msgstr ""
17916
17917 #. type: =item
17918 #: ../fish/guestfish.pod:1155
17919 msgid "HOME"
17920 msgstr ""
17921
17922 #. type: textblock
17923 #: ../fish/guestfish.pod:1157
17924 msgid ""
17925 "If compiled with GNU readline support, various files in the home directory "
17926 "can be used.  See L</FILES>."
17927 msgstr ""
17928
17929 #. type: =item
17930 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3099
17931 msgid "LIBGUESTFS_APPEND"
17932 msgstr ""
17933
17934 #. type: textblock
17935 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3101
17936 msgid "Pass additional options to the guest kernel."
17937 msgstr ""
17938
17939 #. type: =item
17940 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3103
17941 msgid "LIBGUESTFS_DEBUG"
17942 msgstr ""
17943
17944 #. type: textblock
17945 #: ../fish/guestfish.pod:1166
17946 msgid ""
17947 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17948 "effect as using the B<-v> option."
17949 msgstr ""
17950
17951 #. type: =item
17952 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3108
17953 msgid "LIBGUESTFS_MEMSIZE"
17954 msgstr ""
17955
17956 #. type: textblock
17957 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3110
17958 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
17959 msgstr ""
17960
17961 #. type: verbatim
17962 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3113
17963 #, no-wrap
17964 msgid ""
17965 " LIBGUESTFS_MEMSIZE=700\n"
17966 "\n"
17967 msgstr ""
17968
17969 #. type: =item
17970 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3115
17971 msgid "LIBGUESTFS_PATH"
17972 msgstr ""
17973
17974 #. type: textblock
17975 #: ../fish/guestfish.pod:1178
17976 msgid ""
17977 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17978 "the discussion of paths in L<guestfs(3)>."
17979 msgstr ""
17980
17981 #. type: =item
17982 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3120
17983 msgid "LIBGUESTFS_QEMU"
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3122
17988 msgid ""
17989 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
17990 "which was found at compile time by the configure script is used."
17991 msgstr ""
17992
17993 #. type: =item
17994 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3128
17995 msgid "LIBGUESTFS_TRACE"
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish.pod:1189
18000 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
18001 msgstr ""
18002
18003 #. type: =item
18004 #: ../fish/guestfish.pod:1191
18005 msgid "PAGER"
18006 msgstr ""
18007
18008 #. type: textblock
18009 #: ../fish/guestfish.pod:1193
18010 msgid ""
18011 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
18012 "C<more>."
18013 msgstr ""
18014
18015 #. type: =item
18016 #: ../fish/guestfish.pod:1196 ../src/guestfs.pod:3133
18017 msgid "TMPDIR"
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3135
18022 msgid ""
18023 "Location of temporary directory, defaults to C</tmp> except for the cached "
18024 "supermin appliance which defaults to C</var/tmp>."
18025 msgstr ""
18026
18027 #. type: textblock
18028 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3138
18029 msgid ""
18030 "If libguestfs was compiled to use the supermin appliance then the real "
18031 "appliance is cached in this directory, shared between all handles belonging "
18032 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
18033 "use in case C</var/tmp> is not large enough."
18034 msgstr ""
18035
18036 #. type: =head1
18037 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297 ../rescue/virt-rescue.pod:269
18038 msgid "FILES"
18039 msgstr ""
18040
18041 #. type: =item
18042 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301 ../rescue/virt-rescue.pod:273
18043 msgid "$HOME/.libguestfs-tools.rc"
18044 msgstr ""
18045
18046 #. type: =item
18047 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303 ../rescue/virt-rescue.pod:275
18048 msgid "/etc/libguestfs-tools.conf"
18049 msgstr ""
18050
18051 #. type: textblock
18052 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305 ../rescue/virt-rescue.pod:277
18053 msgid ""
18054 "This configuration file controls the default read-only or read-write mode "
18055 "(I<--ro> or I<--rw>)."
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish.pod:1220
18060 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18061 msgstr ""
18062
18063 #. type: =item
18064 #: ../fish/guestfish.pod:1222
18065 msgid "$HOME/.guestfish"
18066 msgstr ""
18067
18068 #. type: textblock
18069 #: ../fish/guestfish.pod:1224
18070 msgid ""
18071 "If compiled with GNU readline support, then the command history is saved in "
18072 "this file."
18073 msgstr ""
18074
18075 #. type: =item
18076 #: ../fish/guestfish.pod:1227
18077 msgid "$HOME/.inputrc"
18078 msgstr ""
18079
18080 #. type: =item
18081 #: ../fish/guestfish.pod:1229
18082 msgid "/etc/inputrc"
18083 msgstr ""
18084
18085 #. type: textblock
18086 #: ../fish/guestfish.pod:1231
18087 msgid ""
18088 "If compiled with GNU readline support, then these files can be used to "
18089 "configure readline.  For further information, please see "
18090 "L<readline(3)/INITIALIZATION FILE>."
18091 msgstr ""
18092
18093 #. type: textblock
18094 #: ../fish/guestfish.pod:1235
18095 msgid "To write rules which only apply to guestfish, use:"
18096 msgstr ""
18097
18098 #. type: verbatim
18099 #: ../fish/guestfish.pod:1237
18100 #, no-wrap
18101 msgid ""
18102 " $if guestfish\n"
18103 " ...\n"
18104 " $endif\n"
18105 "\n"
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish.pod:1241
18110 msgid ""
18111 "Variables that you can set in inputrc that change the behaviour of guestfish "
18112 "in useful ways include:"
18113 msgstr ""
18114
18115 #. type: =item
18116 #: ../fish/guestfish.pod:1246
18117 msgid "completion-ignore-case (default: on)"
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish.pod:1248
18122 msgid ""
18123 "By default, guestfish will ignore case when tab-completing paths on the "
18124 "disk.  Use:"
18125 msgstr ""
18126
18127 #. type: verbatim
18128 #: ../fish/guestfish.pod:1251
18129 #, no-wrap
18130 msgid ""
18131 " set completion-ignore-case off\n"
18132 "\n"
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:1253
18137 msgid "to make guestfish case sensitive."
18138 msgstr ""
18139
18140 #. type: =item
18141 #: ../fish/guestfish.pod:1257
18142 msgid "test1.img"
18143 msgstr ""
18144
18145 #. type: =item
18146 #: ../fish/guestfish.pod:1259
18147 msgid "test2.img (etc)"
18148 msgstr ""
18149
18150 #. type: textblock
18151 #: ../fish/guestfish.pod:1261
18152 msgid ""
18153 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18154 "will be created in the file C<test1.img> in the current directory.  The "
18155 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18156 "the same name will be overwritten."
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/guestfish.pod:1270
18161 msgid ""
18162 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
18163 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
18164 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
18165 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
18166 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
18167 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18168 "L<febootstrap-supermin-helper(8)>."
18169 msgstr ""
18170
18171 #. type: textblock
18172 #: ../fish/guestfish.pod:1299 ../src/guestfs.pod:3225 ../test-tool/libguestfs-test-tool.pod:112
18173 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18174 msgstr ""
18175
18176 #. type: textblock
18177 #: ../fish/virt-copy-in.pod:5
18178 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18179 msgstr ""
18180
18181 #. type: verbatim
18182 #: ../fish/virt-copy-in.pod:9
18183 #, no-wrap
18184 msgid ""
18185 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18186 "\n"
18187 msgstr ""
18188
18189 #. type: verbatim
18190 #: ../fish/virt-copy-in.pod:11
18191 #, no-wrap
18192 msgid ""
18193 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18194 "\n"
18195 msgstr ""
18196
18197 #. type: textblock
18198 #: ../fish/virt-copy-in.pod:15
18199 msgid ""
18200 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18201 "causing disk corruption.  The virtual machine must be shut down before you "
18202 "use this command."
18203 msgstr ""
18204
18205 #. type: textblock
18206 #: ../fish/virt-copy-in.pod:21
18207 msgid ""
18208 "C<virt-copy-in> copies files and directories from the local disk into a "
18209 "virtual machine disk image or named libvirt domain."
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../fish/virt-copy-in.pod:24
18214 msgid ""
18215 "You can give one of more filenames and directories on the command line.  "
18216 "Directories are copied in recursively.  The final parameter must be the "
18217 "destination directory in the disk image which must be an absolute path "
18218 "starting with a C</> character."
18219 msgstr ""
18220
18221 #. type: verbatim
18222 #: ../fish/virt-copy-in.pod:33
18223 #, no-wrap
18224 msgid ""
18225 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18226 "\n"
18227 msgstr ""
18228
18229 #. type: textblock
18230 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18231 msgid "Upload a home directory to a guest:"
18232 msgstr ""
18233
18234 #. type: verbatim
18235 #: ../fish/virt-copy-in.pod:37
18236 #, no-wrap
18237 msgid ""
18238 " virt-copy-in -d MyGuest skel /home\n"
18239 "\n"
18240 msgstr ""
18241
18242 #. type: =head1
18243 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18244 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18245 msgstr ""
18246
18247 #. type: textblock
18248 #: ../fish/virt-copy-in.pod:41
18249 msgid ""
18250 "This command is just a simple shell script wrapper around the "
18251 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18252 "trivial copy, you are probably better off using guestfish directly."
18253 msgstr ""
18254
18255 #. type: textblock
18256 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18257 msgid ""
18258 "Since the shell script just passes options straight to guestfish, read "
18259 "L<guestfish(1)> to see the full list of options."
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../fish/virt-copy-in.pod:52
18264 msgid ""
18265 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18266 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18267 msgstr ""
18268
18269 #. type: textblock
18270 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18271 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18272 msgstr ""
18273
18274 #. type: textblock
18275 #: ../fish/virt-copy-out.pod:5
18276 msgid ""
18277 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18278 "image."
18279 msgstr ""
18280
18281 #. type: verbatim
18282 #: ../fish/virt-copy-out.pod:9
18283 #, no-wrap
18284 msgid ""
18285 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18286 "\n"
18287 msgstr ""
18288
18289 #. type: verbatim
18290 #: ../fish/virt-copy-out.pod:11
18291 #, no-wrap
18292 msgid ""
18293 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18294 "\n"
18295 msgstr ""
18296
18297 #. type: textblock
18298 #: ../fish/virt-copy-out.pod:15
18299 msgid ""
18300 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18301 "image or named libvirt domain."
18302 msgstr ""
18303
18304 #. type: textblock
18305 #: ../fish/virt-copy-out.pod:18
18306 msgid ""
18307 "You can give one of more filenames and directories on the command line.  "
18308 "Directories are copied out recursively."
18309 msgstr ""
18310
18311 #. type: textblock
18312 #: ../fish/virt-copy-out.pod:23
18313 msgid "Download the home directories from a virtual machine:"
18314 msgstr ""
18315
18316 #. type: verbatim
18317 #: ../fish/virt-copy-out.pod:25
18318 #, no-wrap
18319 msgid ""
18320 " mkdir homes\n"
18321 " virt-copy-out -d MyGuest /home homes\n"
18322 "\n"
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/virt-copy-out.pod:30
18327 msgid ""
18328 "This command is just a simple shell script wrapper around the "
18329 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18330 "trivial copy, you are probably better off using guestfish directly."
18331 msgstr ""
18332
18333 #. type: textblock
18334 #: ../fish/virt-copy-out.pod:41
18335 msgid ""
18336 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18337 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18338 msgstr ""
18339
18340 #. type: textblock
18341 #: ../fish/virt-tar-in.pod:5
18342 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18343 msgstr ""
18344
18345 #. type: verbatim
18346 #: ../fish/virt-tar-in.pod:9
18347 #, no-wrap
18348 msgid ""
18349 " virt-tar-in -a disk.img data.tar /destination\n"
18350 "\n"
18351 msgstr ""
18352
18353 #. type: verbatim
18354 #: ../fish/virt-tar-in.pod:11
18355 #, no-wrap
18356 msgid ""
18357 " virt-tar-in -d domain data.tar /destination\n"
18358 "\n"
18359 msgstr ""
18360
18361 #. type: verbatim
18362 #: ../fish/virt-tar-in.pod:13
18363 #, no-wrap
18364 msgid ""
18365 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18366 "\n"
18367 msgstr ""
18368
18369 #. type: textblock
18370 #: ../fish/virt-tar-in.pod:17
18371 msgid ""
18372 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18373 "causing disk corruption.  The virtual machine must be shut down before you "
18374 "use this command."
18375 msgstr ""
18376
18377 #. type: textblock
18378 #: ../fish/virt-tar-in.pod:23
18379 msgid ""
18380 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18381 "image or named libvirt domain."
18382 msgstr ""
18383
18384 #. type: textblock
18385 #: ../fish/virt-tar-in.pod:26
18386 msgid ""
18387 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18388 "standard input.  The second parameter is the absolute target directory to "
18389 "unpack into."
18390 msgstr ""
18391
18392 #. type: verbatim
18393 #: ../fish/virt-tar-in.pod:34
18394 #, no-wrap
18395 msgid ""
18396 " virt-tar-in -d MyGuest homes.tar /home\n"
18397 "\n"
18398 msgstr ""
18399
18400 #. type: textblock
18401 #: ../fish/virt-tar-in.pod:38
18402 msgid ""
18403 "This command is just a simple shell script wrapper around the "
18404 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18405 "copy, you are probably better off using guestfish directly."
18406 msgstr ""
18407
18408 #. type: textblock
18409 #: ../fish/virt-tar-in.pod:49
18410 msgid ""
18411 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18412 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18413 "L<http://libguestfs.org/>."
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/virt-tar-out.pod:5
18418 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18419 msgstr ""
18420
18421 #. type: verbatim
18422 #: ../fish/virt-tar-out.pod:9
18423 #, no-wrap
18424 msgid ""
18425 " virt-tar-out -a disk.img /dir files.tar\n"
18426 "\n"
18427 msgstr ""
18428
18429 #. type: verbatim
18430 #: ../fish/virt-tar-out.pod:11
18431 #, no-wrap
18432 msgid ""
18433 " virt-tar-out -d domain /dir files.tar\n"
18434 "\n"
18435 msgstr ""
18436
18437 #. type: verbatim
18438 #: ../fish/virt-tar-out.pod:13
18439 #, no-wrap
18440 msgid ""
18441 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18442 "\n"
18443 msgstr ""
18444
18445 #. type: textblock
18446 #: ../fish/virt-tar-out.pod:17
18447 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18448 msgstr ""
18449
18450 #. type: textblock
18451 #: ../fish/virt-tar-out.pod:20
18452 msgid ""
18453 "The first parameter is the absolute path of the virtual machine directory.  "
18454 "The second parameter is the tar file to write.  Use C<-> to write to "
18455 "standard output."
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/virt-tar-out.pod:26
18460 msgid "Download the home directories from a guest:"
18461 msgstr ""
18462
18463 #. type: verbatim
18464 #: ../fish/virt-tar-out.pod:28
18465 #, no-wrap
18466 msgid ""
18467 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18468 "\n"
18469 msgstr ""
18470
18471 #. type: textblock
18472 #: ../fish/virt-tar-out.pod:32
18473 msgid ""
18474 "This command is just a simple shell script wrapper around the "
18475 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
18476 "trivial copy, you are probably better off using guestfish directly."
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/virt-tar-out.pod:43
18481 msgid ""
18482 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18483 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18484 msgstr ""
18485
18486 #. type: textblock
18487 #: ../fuse/guestmount.pod:5
18488 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18489 msgstr ""
18490
18491 #. type: verbatim
18492 #: ../fuse/guestmount.pod:9
18493 #, no-wrap
18494 msgid ""
18495 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18496 "\n"
18497 msgstr ""
18498
18499 #. type: verbatim
18500 #: ../fuse/guestmount.pod:11
18501 #, no-wrap
18502 msgid ""
18503 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18504 "\n"
18505 msgstr ""
18506
18507 #. type: verbatim
18508 #: ../fuse/guestmount.pod:13
18509 #, no-wrap
18510 msgid ""
18511 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18512 "\n"
18513 msgstr ""
18514
18515 #. type: textblock
18516 #: ../fuse/guestmount.pod:17
18517 msgid ""
18518 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18519 "machines.  If you do this, you risk disk corruption in the VM."
18520 msgstr ""
18521
18522 #. type: textblock
18523 #: ../fuse/guestmount.pod:22
18524 msgid ""
18525 "The guestmount program can be used to mount virtual machine filesystems and "
18526 "other disk images on the host.  It uses libguestfs for access to the guest "
18527 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18528 "a mountable device."
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../fuse/guestmount.pod:27
18533 msgid ""
18534 "Along with other options, you have to give at least one device (I<-a> "
18535 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18536 "option) or use the I<-i> inspection option.  How this works is better "
18537 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18538 "below."
18539 msgstr ""
18540
18541 #. type: textblock
18542 #: ../fuse/guestmount.pod:33
18543 msgid ""
18544 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18545 "by you, and the filesystem will not be visible to any other users unless you "
18546 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18547 "the filesystem, use the C<fusermount -u> command."
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fuse/guestmount.pod:41
18552 msgid ""
18553 "For a typical Windows guest which has its main filesystem on the first "
18554 "partition:"
18555 msgstr ""
18556
18557 #. type: verbatim
18558 #: ../fuse/guestmount.pod:44
18559 #, no-wrap
18560 msgid ""
18561 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18562 "\n"
18563 msgstr ""
18564
18565 #. type: textblock
18566 #: ../fuse/guestmount.pod:46
18567 msgid ""
18568 "For a typical Linux guest which has a /boot filesystem on the first "
18569 "partition, and the root filesystem on a logical volume:"
18570 msgstr ""
18571
18572 #. type: verbatim
18573 #: ../fuse/guestmount.pod:49
18574 #, no-wrap
18575 msgid ""
18576 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
18577 "\n"
18578 msgstr ""
18579
18580 #. type: textblock
18581 #: ../fuse/guestmount.pod:51
18582 msgid "To get libguestfs to detect guest mountpoints for you:"
18583 msgstr ""
18584
18585 #. type: verbatim
18586 #: ../fuse/guestmount.pod:53
18587 #, no-wrap
18588 msgid ""
18589 " guestmount -a guest.img -i --ro /mnt\n"
18590 "\n"
18591 msgstr ""
18592
18593 #. type: textblock
18594 #: ../fuse/guestmount.pod:55
18595 msgid "For a libvirt guest called \"Guest\" you could do:"
18596 msgstr ""
18597
18598 #. type: verbatim
18599 #: ../fuse/guestmount.pod:57
18600 #, no-wrap
18601 msgid ""
18602 " guestmount -d Guest -i --ro /mnt\n"
18603 "\n"
18604 msgstr ""
18605
18606 #. type: textblock
18607 #: ../fuse/guestmount.pod:59
18608 msgid ""
18609 "If you don't know what filesystems are contained in a guest or disk image, "
18610 "use L<virt-filesystems(1)> first:"
18611 msgstr ""
18612
18613 #. type: verbatim
18614 #: ../fuse/guestmount.pod:62
18615 #, no-wrap
18616 msgid ""
18617 " virt-filesystems MyGuest\n"
18618 "\n"
18619 msgstr ""
18620
18621 #. type: textblock
18622 #: ../fuse/guestmount.pod:64
18623 msgid ""
18624 "If you want to trace the libguestfs calls but without excessive debugging "
18625 "information, we recommend:"
18626 msgstr ""
18627
18628 #. type: verbatim
18629 #: ../fuse/guestmount.pod:67
18630 #, no-wrap
18631 msgid ""
18632 " guestmount [...] --trace /mnt\n"
18633 "\n"
18634 msgstr ""
18635
18636 #. type: textblock
18637 #: ../fuse/guestmount.pod:69
18638 msgid "If you want to debug the program, we recommend:"
18639 msgstr ""
18640
18641 #. type: verbatim
18642 #: ../fuse/guestmount.pod:71
18643 #, no-wrap
18644 msgid ""
18645 " guestmount [...] --trace --verbose /mnt\n"
18646 "\n"
18647 msgstr ""
18648
18649 #. type: =head1
18650 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:511
18651 msgid "NOTES"
18652 msgstr ""
18653
18654 #. type: =head2
18655 #: ../fuse/guestmount.pod:75
18656 msgid "Other users cannot see the filesystem by default"
18657 msgstr ""
18658
18659 #. type: textblock
18660 #: ../fuse/guestmount.pod:77
18661 msgid ""
18662 "If you mount a filesystem as one user (eg. root), then other users will not "
18663 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
18664 "option when mounting:"
18665 msgstr ""
18666
18667 #. type: verbatim
18668 #: ../fuse/guestmount.pod:81
18669 #, no-wrap
18670 msgid ""
18671 " sudo guestmount [...] -o allow_other /mnt\n"
18672 "\n"
18673 msgstr ""
18674
18675 #. type: =head2
18676 #: ../fuse/guestmount.pod:83
18677 msgid "Enabling FUSE"
18678 msgstr ""
18679
18680 #. type: textblock
18681 #: ../fuse/guestmount.pod:85
18682 msgid ""
18683 "On some distros, you may need to add yourself to a special group "
18684 "(eg. C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
18685 "Debian and derivatives."
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fuse/guestmount.pod:89
18690 msgid ""
18691 "On other distros, no special group is required.  It is not necessary on "
18692 "Fedora or Red Hat Enterprise Linux."
18693 msgstr ""
18694
18695 #. type: textblock
18696 #: ../fuse/guestmount.pod:100
18697 msgid "Add a block device or virtual machine image."
18698 msgstr ""
18699
18700 #. type: =item
18701 #: ../fuse/guestmount.pod:123
18702 msgid "B<--dir-cache-timeout N>"
18703 msgstr ""
18704
18705 #. type: textblock
18706 #: ../fuse/guestmount.pod:125
18707 msgid ""
18708 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
18709 "seconds.  The readdir cache [actually, there are several semi-independent "
18710 "caches] is populated after a readdir(2) call with the stat and extended "
18711 "attributes of the files in the directory, in anticipation that they will be "
18712 "requested soon after."
18713 msgstr ""
18714
18715 #. type: textblock
18716 #: ../fuse/guestmount.pod:131
18717 msgid ""
18718 "There is also a different attribute cache implemented by FUSE (see the FUSE "
18719 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
18720 "requests, only cache existing ones."
18721 msgstr ""
18722
18723 #. type: textblock
18724 #: ../fuse/guestmount.pod:151
18725 msgid ""
18726 "If you have untrusted raw-format guest disk images, you should use this "
18727 "option to specify the disk format.  This avoids a possible security problem "
18728 "with malicious guests (CVE-2010-3851).  See also "
18729 "L<guestfs(3)/guestfs_add_drive_opts>."
18730 msgstr ""
18731
18732 #. type: =item
18733 #: ../fuse/guestmount.pod:156
18734 msgid "B<--fuse-help>"
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fuse/guestmount.pod:158
18739 msgid "Display help on special FUSE options (see I<-o> below)."
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fuse/guestmount.pod:162
18744 msgid "Display brief help and exit."
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../fuse/guestmount.pod:186
18749 msgid ""
18750 "Mount the named partition or logical volume on the given mountpoint B<in the "
18751 "guest> (this has nothing to do with mountpoints in the host)."
18752 msgstr ""
18753
18754 #. type: textblock
18755 #: ../fuse/guestmount.pod:189
18756 msgid ""
18757 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
18758 "something on C</>."
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fuse/guestmount.pod:206
18763 msgid ""
18764 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
18765 "unmounted.  If you specify this option, then we don't attempt to sync the "
18766 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
18767 msgstr ""
18768
18769 #. type: =item
18770 #: ../fuse/guestmount.pod:211
18771 msgid "B<-o option>"
18772 msgstr ""
18773
18774 #. type: =item
18775 #: ../fuse/guestmount.pod:213
18776 msgid "B<--option option>"
18777 msgstr ""
18778
18779 #. type: textblock
18780 #: ../fuse/guestmount.pod:215
18781 msgid "Pass extra options to FUSE."
18782 msgstr ""
18783
18784 #. type: textblock
18785 #: ../fuse/guestmount.pod:217
18786 msgid ""
18787 "To get a list of all the extra options supported by FUSE, use the command "
18788 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
18789 "of them are a good idea."
18790 msgstr ""
18791
18792 #. type: verbatim
18793 #: ../fuse/guestmount.pod:221
18794 #, no-wrap
18795 msgid ""
18796 " guestmount --fuse-help\n"
18797 "\n"
18798 msgstr ""
18799
18800 #. type: textblock
18801 #: ../fuse/guestmount.pod:223
18802 msgid "Some potentially useful FUSE options:"
18803 msgstr ""
18804
18805 #. type: =item
18806 #: ../fuse/guestmount.pod:227
18807 msgid "B<-o allow_other>"
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fuse/guestmount.pod:229
18812 msgid "Allow other users to see the filesystem."
18813 msgstr ""
18814
18815 #. type: =item
18816 #: ../fuse/guestmount.pod:231
18817 msgid "B<-o attr_timeout=N>"
18818 msgstr ""
18819
18820 #. type: textblock
18821 #: ../fuse/guestmount.pod:233
18822 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
18823 msgstr ""
18824
18825 #. type: =item
18826 #: ../fuse/guestmount.pod:235
18827 msgid "B<-o kernel_cache>"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fuse/guestmount.pod:237
18832 msgid ""
18833 "Allow the kernel to cache files (reduces the number of reads that have to go "
18834 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
18835 "afford the extra memory usage."
18836 msgstr ""
18837
18838 #. type: =item
18839 #: ../fuse/guestmount.pod:241
18840 msgid "B<-o uid=N> B<-o gid=N>"
18841 msgstr ""
18842
18843 #. type: textblock
18844 #: ../fuse/guestmount.pod:243
18845 msgid ""
18846 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
18847 "the chosen values."
18848 msgstr ""
18849
18850 #. type: textblock
18851 #: ../fuse/guestmount.pod:252
18852 msgid ""
18853 "Add devices and mount everything read-only.  Also disallow writes and make "
18854 "the disk appear read-only to FUSE."
18855 msgstr ""
18856
18857 #. type: textblock
18858 #: ../fuse/guestmount.pod:255
18859 msgid ""
18860 "This is highly recommended if you are not going to edit the guest disk.  If "
18861 "the guest is running and this option is I<not> supplied, then there is a "
18862 "strong risk of disk corruption in the guest.  We try to prevent this from "
18863 "happening, but it is not always possible."
18864 msgstr ""
18865
18866 #. type: textblock
18867 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
18868 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18869 msgstr ""
18870
18871 #. type: textblock
18872 #: ../fuse/guestmount.pod:264
18873 msgid "Enable SELinux support for the guest."
18874 msgstr ""
18875
18876 #. type: textblock
18877 #: ../fuse/guestmount.pod:270
18878 msgid "Enable verbose messages from underlying libguestfs."
18879 msgstr ""
18880
18881 #. type: textblock
18882 #: ../fuse/guestmount.pod:276
18883 msgid "Display the program version and exit."
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308 ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
18888 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18889 msgstr ""
18890
18891 #. type: =item
18892 #: ../fuse/guestmount.pod:289
18893 msgid "B<--trace>"
18894 msgstr ""
18895
18896 #. type: textblock
18897 #: ../fuse/guestmount.pod:291
18898 msgid "Trace libguestfs calls and entry into each FUSE function."
18899 msgstr ""
18900
18901 #. type: textblock
18902 #: ../fuse/guestmount.pod:293
18903 msgid "This also stops the daemon from forking into the background."
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fuse/guestmount.pod:319
18908 msgid ""
18909 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
18910 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
18911 "L<http://fuse.sf.net/>."
18912 msgstr ""
18913
18914 #. type: textblock
18915 #: ../fuse/guestmount.pod:334
18916 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
18917 msgstr ""
18918
18919 #. type: textblock
18920 #: ../inspector/virt-inspector.pod:5
18921 msgid ""
18922 "virt-inspector - Display operating system version and other information "
18923 "about a virtual machine"
18924 msgstr ""
18925
18926 #. type: verbatim
18927 #: ../inspector/virt-inspector.pod:9
18928 #, no-wrap
18929 msgid ""
18930 " virt-inspector [--options] -d domname\n"
18931 "\n"
18932 msgstr ""
18933
18934 #. type: verbatim
18935 #: ../inspector/virt-inspector.pod:11
18936 #, no-wrap
18937 msgid ""
18938 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
18939 "\n"
18940 msgstr ""
18941
18942 #. type: verbatim
18943 #: ../inspector/virt-inspector.pod:15
18944 #, no-wrap
18945 msgid ""
18946 " virt-inspector domname\n"
18947 "\n"
18948 msgstr ""
18949
18950 #. type: verbatim
18951 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
18952 #, no-wrap
18953 msgid ""
18954 " virt-inspector disk.img [disk.img ...]\n"
18955 "\n"
18956 msgstr ""
18957
18958 #. type: textblock
18959 #: ../inspector/virt-inspector.pod:21
18960 msgid ""
18961 "B<virt-inspector> examines a virtual machine or disk image and tries to "
18962 "determine the version of the operating system and other information about "
18963 "the virtual machine."
18964 msgstr ""
18965
18966 #. type: textblock
18967 #: ../inspector/virt-inspector.pod:25
18968 msgid "Virt-inspector produces XML output for feeding into other programs."
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../inspector/virt-inspector.pod:27
18973 msgid ""
18974 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
18975 "the libvirt domain (see: C<virsh list --all>)."
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../inspector/virt-inspector.pod:30
18980 msgid ""
18981 "You can also run virt-inspector directly on disk images from a single "
18982 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
18983 "has several block devices, in which case you should list several I<-a> "
18984 "options one after another, with the first corresponding to the guest's "
18985 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
18986 msgstr ""
18987
18988 #. type: textblock
18989 #: ../inspector/virt-inspector.pod:37
18990 msgid ""
18991 "You can also run virt-inspector on install disks, live CDs, bootable USB "
18992 "keys and similar."
18993 msgstr ""
18994
18995 #. type: textblock
18996 #: ../inspector/virt-inspector.pod:40
18997 msgid ""
18998 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
18999 "inspect several virtual machines, you have to run virt-inspector several "
19000 "times (for example, from a shell script for-loop)."
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../inspector/virt-inspector.pod:45
19005 msgid ""
19006 "Because virt-inspector needs direct access to guest images, it won't "
19007 "normally work over remote libvirt connections."
19008 msgstr ""
19009
19010 #. type: textblock
19011 #: ../inspector/virt-inspector.pod:48
19012 msgid ""
19013 "All of the information available from virt-inspector is also available "
19014 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
19015 "The same information can also be fetched using guestfish or via libguestfs "
19016 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
19017 "WITH OTHER PROGRAMMING LANGUAGES>)."
19018 msgstr ""
19019
19020 #. type: textblock
19021 #: ../inspector/virt-inspector.pod:81
19022 msgid ""
19023 "Libvirt is only used if you specify a C<domname> on the command line.  If "
19024 "you specify guest block devices directly (I<-a>), then libvirt is not used "
19025 "at all."
19026 msgstr ""
19027
19028 #. type: textblock
19029 #: ../inspector/virt-inspector.pod:94
19030 msgid ""
19031 "When prompting for keys and passphrases, virt-inspector normally turns "
19032 "echoing off so you cannot see what you are typing.  If you are not worried "
19033 "about Tempest attacks and there is no one else in the room you can specify "
19034 "this flag to see what you are typing."
19035 msgstr ""
19036
19037 #. type: textblock
19038 #: ../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
19039 msgid ""
19040 "Specify the format of disk images given on the command line.  If this is "
19041 "omitted then the format is autodetected from the content of the disk image."
19042 msgstr ""
19043
19044 #. type: textblock
19045 #: ../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
19046 msgid ""
19047 "If disk images are requested from libvirt, then this program asks libvirt "
19048 "for this information.  In this case, the value of the format parameter is "
19049 "ignored."
19050 msgstr ""
19051
19052 #. type: textblock
19053 #: ../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
19054 msgid ""
19055 "If working with untrusted raw-format guest disk images, you should ensure "
19056 "the format is always specified."
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../inspector/virt-inspector.pod:139
19061 msgid "Previous versions of virt-inspector allowed you to write either:"
19062 msgstr ""
19063
19064 #. type: verbatim
19065 #: ../inspector/virt-inspector.pod:145
19066 #, no-wrap
19067 msgid ""
19068 " virt-inspector guestname\n"
19069 "\n"
19070 msgstr ""
19071
19072 #. type: =head1
19073 #: ../inspector/virt-inspector.pod:153
19074 msgid "XML FORMAT"
19075 msgstr ""
19076
19077 #. type: textblock
19078 #: ../inspector/virt-inspector.pod:155
19079 msgid ""
19080 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19081 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19082 "just an overview."
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../inspector/virt-inspector.pod:159
19087 msgid ""
19088 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19089 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19090 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19091 "which is vanishingly rare in real world VMs."
19092 msgstr ""
19093
19094 #. type: =head2
19095 #: ../inspector/virt-inspector.pod:164
19096 msgid "E<lt>operatingsystemE<gt>"
19097 msgstr ""
19098
19099 #. type: textblock
19100 #: ../inspector/virt-inspector.pod:166
19101 msgid ""
19102 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19103 "describe the operating system, its architecture, the descriptive \"product "
19104 "name\" string, the type of OS and so on, as in this example:"
19105 msgstr ""
19106
19107 #. type: verbatim
19108 #: ../inspector/virt-inspector.pod:170
19109 #, no-wrap
19110 msgid ""
19111 " <operatingsystems>\n"
19112 "   <operatingsystem>\n"
19113 "     <root>/dev/sda2</root>\n"
19114 "     <name>windows</name>\n"
19115 "     <arch>i386</arch>\n"
19116 "     <distro>windows</distro>\n"
19117 "     <product_name>Windows 7 Enterprise</product_name>\n"
19118 "     <product_variant>Client</product_variant>\n"
19119 "     <major_version>6</major_version>\n"
19120 "     <minor_version>1</minor_version>\n"
19121 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19122 "     <format>installed</format>\n"
19123 "\n"
19124 msgstr ""
19125
19126 #. type: textblock
19127 #: ../inspector/virt-inspector.pod:183
19128 msgid ""
19129 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19130 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19131 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19132 "architecture.  The other fields are fairly self-explanatory, but because "
19133 "these fields are taken directly from the libguestfs inspection API you can "
19134 "find precise information from L<guestfs(3)/INSPECTION>."
19135 msgstr ""
19136
19137 #. type: textblock
19138 #: ../inspector/virt-inspector.pod:191
19139 msgid ""
19140 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19141 "of view of libguestfs (block devices may have completely different names "
19142 "inside the VM itself)."
19143 msgstr ""
19144
19145 #. type: =head2
19146 #: ../inspector/virt-inspector.pod:195
19147 msgid "E<lt>mountpointsE<gt>"
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../inspector/virt-inspector.pod:197
19152 msgid ""
19153 "Un*x-like guests typically have multiple filesystems which are mounted at "
19154 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19155 "element which looks like this:"
19156 msgstr ""
19157
19158 #. type: verbatim
19159 #: ../inspector/virt-inspector.pod:201
19160 #, no-wrap
19161 msgid ""
19162 " <operatingsystems>\n"
19163 "   <operatingsystem>\n"
19164 "     ...\n"
19165 "     <mountpoints>\n"
19166 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19167 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19168 "     </mountpoints>\n"
19169 "\n"
19170 msgstr ""
19171
19172 #. type: textblock
19173 #: ../inspector/virt-inspector.pod:209
19174 msgid ""
19175 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19176 "and may have completely different names inside the guest.  Only mountable "
19177 "filesystems appear in this list, not things like swap devices."
19178 msgstr ""
19179
19180 #. type: =head2
19181 #: ../inspector/virt-inspector.pod:214
19182 msgid "E<lt>filesystemsE<gt>"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../inspector/virt-inspector.pod:216
19187 msgid ""
19188 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19189 "filesystems belonging to the guest, including swap and empty partitions.  "
19190 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19191 "this OS or shared with this OS and other OSes)."
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../inspector/virt-inspector.pod:222
19196 msgid "You might see something like this:"
19197 msgstr ""
19198
19199 #. type: verbatim
19200 #: ../inspector/virt-inspector.pod:224
19201 #, no-wrap
19202 msgid ""
19203 " <operatingsystems>\n"
19204 "   <operatingsystem>\n"
19205 "     ...\n"
19206 "     <filesystems>\n"
19207 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19208 "         <type>ext4</type>\n"
19209 "         <label>Fedora-13-x86_64</label>\n"
19210 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19211 "       </filesystem>\n"
19212 "\n"
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../inspector/virt-inspector.pod:234
19217 msgid ""
19218 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19219 "the label, and the UUID."
19220 msgstr ""
19221
19222 #. type: =head2
19223 #: ../inspector/virt-inspector.pod:237
19224 msgid "E<lt>applicationsE<gt>"
19225 msgstr ""
19226
19227 #. type: textblock
19228 #: ../inspector/virt-inspector.pod:239
19229 msgid ""
19230 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19231 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19232 "machine."
19233 msgstr ""
19234
19235 #. type: textblock
19236 #: ../inspector/virt-inspector.pod:243
19237 msgid ""
19238 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19239 "Typical values would be C<rpm> and C<deb>."
19240 msgstr ""
19241
19242 #. type: textblock
19243 #: ../inspector/virt-inspector.pod:246
19244 msgid ""
19245 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19246 "Typical values include C<yum>, C<up2date> and C<apt>"
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../inspector/virt-inspector.pod:249
19251 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19252 msgstr ""
19253
19254 #. type: verbatim
19255 #: ../inspector/virt-inspector.pod:252
19256 #, no-wrap
19257 msgid ""
19258 " <operatingsystems>\n"
19259 "   <operatingsystem>\n"
19260 "     ...\n"
19261 "     <applications>\n"
19262 "       <application>\n"
19263 "         <name>coreutils</name>\n"
19264 "         <version>8.5</version>\n"
19265 "         <release>1</release>\n"
19266 "       </application>\n"
19267 "\n"
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../inspector/virt-inspector.pod:262
19272 msgid ""
19273 "The version and release fields may not be available for some types guests.  "
19274 "Other fields are possible, see "
19275 "L<guestfs(3)/guestfs_inspect_list_applications>."
19276 msgstr ""
19277
19278 #. type: =head2
19279 #: ../inspector/virt-inspector.pod:266
19280 msgid "E<lt>drive_mappingsE<gt>"
19281 msgstr ""
19282
19283 #. type: textblock
19284 #: ../inspector/virt-inspector.pod:268
19285 msgid ""
19286 "For operating systems like Windows which use drive letters, virt-inspector "
19287 "is able to find out how drive letters map to filesystems."
19288 msgstr ""
19289
19290 #. type: verbatim
19291 #: ../inspector/virt-inspector.pod:272
19292 #, no-wrap
19293 msgid ""
19294 " <operatingsystems>\n"
19295 "   <operatingsystem>\n"
19296 "     ...\n"
19297 "     <drive_mappings>\n"
19298 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19299 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19300 "     </drive_mappings>\n"
19301 "\n"
19302 msgstr ""
19303
19304 #. type: textblock
19305 #: ../inspector/virt-inspector.pod:280
19306 msgid ""
19307 "In the example above, drive C maps to the filesystem on the second partition "
19308 "on the first disk, and drive E maps to the filesystem on the first partition "
19309 "on the second disk."
19310 msgstr ""
19311
19312 #. type: textblock
19313 #: ../inspector/virt-inspector.pod:284
19314 msgid ""
19315 "Note that this only covers permanent local filesystem mappings, not things "
19316 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19317 "here."
19318 msgstr ""
19319
19320 #. type: =head2
19321 #: ../inspector/virt-inspector.pod:288
19322 msgid "E<lt>iconE<gt>"
19323 msgstr ""
19324
19325 #. type: textblock
19326 #: ../inspector/virt-inspector.pod:290
19327 msgid ""
19328 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19329 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19330 "very large and high quality."
19331 msgstr ""
19332
19333 #. type: verbatim
19334 #: ../inspector/virt-inspector.pod:294
19335 #, no-wrap
19336 msgid ""
19337 " <operatingsystems>\n"
19338 "   <operatingsystem>\n"
19339 "     ...\n"
19340 "     <icon>\n"
19341 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19342 "       [... many lines of base64 data ...]\n"
19343 "     </icon>\n"
19344 "\n"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../inspector/virt-inspector.pod:302
19349 msgid ""
19350 "To display the icon, you have to extract it and convert the base64 data back "
19351 "to a binary file.  Use an XPath query or simply an editor to extract the "
19352 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19353 "to a PNG file:"
19354 msgstr ""
19355
19356 #. type: verbatim
19357 #: ../inspector/virt-inspector.pod:307
19358 #, no-wrap
19359 msgid ""
19360 " base64 -i -d < icon.data > icon.png\n"
19361 "\n"
19362 msgstr ""
19363
19364 #. type: =head2
19365 #: ../inspector/virt-inspector.pod:309
19366 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19367 msgstr ""
19368
19369 #. type: textblock
19370 #: ../inspector/virt-inspector.pod:311
19371 msgid ""
19372 "Virt-inspector can detect some operating system installers on install disks, "
19373 "live CDs, bootable USB keys and more."
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../inspector/virt-inspector.pod:314
19378 msgid ""
19379 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19380 "fields may be present to indicate a live CD, network installer, or one part "
19381 "of a multipart CD.  For example:"
19382 msgstr ""
19383
19384 #. type: verbatim
19385 #: ../inspector/virt-inspector.pod:318
19386 #, no-wrap
19387 msgid ""
19388 " <operatingsystems>\n"
19389 "   <operatingsystem>\n"
19390 "     <root>/dev/sda</root>\n"
19391 "     <name>linux</name>\n"
19392 "     <arch>i386</arch>\n"
19393 "     <distro>ubuntu</distro>\n"
19394 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19395 "Meerkat&quot;</product_name>\n"
19396 "     <major_version>10</major_version>\n"
19397 "     <minor_version>10</minor_version>\n"
19398 "     <format>installer</format>\n"
19399 "     <live/>\n"
19400 "\n"
19401 msgstr ""
19402
19403 #. type: =head1
19404 #: ../inspector/virt-inspector.pod:330
19405 msgid "USING XPATH"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../inspector/virt-inspector.pod:332
19410 msgid ""
19411 "You can use the XPath query language to select parts of the XML.  We "
19412 "recommend using C<xmlstarlet> to perform XPath queries from the command "
19413 "line."
19414 msgstr ""
19415
19416 #. type: verbatim
19417 #: ../inspector/virt-inspector.pod:338
19418 #, no-wrap
19419 msgid ""
19420 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
19421 " <filesystems>\n"
19422 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19423 "        <type>ext4</type>\n"
19424 " [...]\n"
19425 "\n"
19426 msgstr ""
19427
19428 #. type: verbatim
19429 #: ../inspector/virt-inspector.pod:344
19430 #, no-wrap
19431 msgid ""
19432 " $ virt-inspector -d Guest | \\\n"
19433 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19434 " ext4\n"
19435 "\n"
19436 msgstr ""
19437
19438 #. type: verbatim
19439 #: ../inspector/virt-inspector.pod:348
19440 #, no-wrap
19441 msgid ""
19442 " $ virt-inspector -d Guest | \\\n"
19443 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
19444 " [displays the guest icon, if there is one]\n"
19445 "\n"
19446 msgstr ""
19447
19448 #. type: =head1
19449 #: ../inspector/virt-inspector.pod:359
19450 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19451 msgstr ""
19452
19453 #. type: textblock
19454 #: ../inspector/virt-inspector.pod:361
19455 msgid ""
19456 "Early versions of libguestfs shipped with a different virt-inspector program "
19457 "written in Perl (the current version is written in C).  The XML output of "
19458 "the Perl virt-inspector was different and it could also output in other "
19459 "formats like text."
19460 msgstr ""
19461
19462 #. type: textblock
19463 #: ../inspector/virt-inspector.pod:366
19464 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19465 msgstr ""
19466
19467 #. type: textblock
19468 #: ../inspector/virt-inspector.pod:369
19469 msgid ""
19470 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19471 "versions of virt-inspector with different names:"
19472 msgstr ""
19473
19474 #. type: verbatim
19475 #: ../inspector/virt-inspector.pod:372
19476 #, no-wrap
19477 msgid ""
19478 " virt-inspector     Old Perl version.\n"
19479 " virt-inspector2    New C version.\n"
19480 "\n"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../inspector/virt-inspector.pod:382
19485 msgid ""
19486 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19487 "L<base64(1)>, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../inspector/virt-inspector.pod:399
19492 msgid "Matthew Booth L<mbooth@redhat.com>"
19493 msgstr ""
19494
19495 #. type: textblock
19496 #: ../java/examples/guestfs-java.pod:5
19497 msgid "guestfs-java - How to use libguestfs from Java"
19498 msgstr ""
19499
19500 #. type: verbatim
19501 #: ../java/examples/guestfs-java.pod:9
19502 #, no-wrap
19503 msgid ""
19504 " import com.redhat.et.libguestfs.*;\n"
19505 " \n"
19506 msgstr ""
19507
19508 #. type: verbatim
19509 #: ../java/examples/guestfs-java.pod:11
19510 #, no-wrap
19511 msgid ""
19512 " GuestFS g = new GuestFS ();\n"
19513 " g.add_drive_opts (\"disk.img\", null);\n"
19514 " g.launch ();\n"
19515 "\n"
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../java/examples/guestfs-java.pod:17
19520 msgid ""
19521 "This manual page documents how to call libguestfs from the Java programming "
19522 "language.  This page just documents the differences from the C API and gives "
19523 "some examples.  If you are not familiar with using libguestfs, you also need "
19524 "to read L<guestfs(3)>."
19525 msgstr ""
19526
19527 #. type: =head2
19528 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19529 msgid "CLOSING THE HANDLE"
19530 msgstr ""
19531
19532 #. type: textblock
19533 #: ../java/examples/guestfs-java.pod:24
19534 msgid ""
19535 "The handle is closed when it is reaped by the garbage collector.  Because "
19536 "libguestfs handles include a lot of state, it is also possible to close (and "
19537 "hence free) them explicitly by calling the C<close> method."
19538 msgstr ""
19539
19540 #. type: =head2
19541 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19542 msgid "EXCEPTIONS"
19543 msgstr ""
19544
19545 #. type: textblock
19546 #: ../java/examples/guestfs-java.pod:31
19547 msgid ""
19548 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19549 "exception.  This has a single parameter which is the error message (a "
19550 "C<String>)."
19551 msgstr ""
19552
19553 #. type: textblock
19554 #: ../java/examples/guestfs-java.pod:35
19555 msgid "Calling any method on a closed handle raises the same exception."
19556 msgstr ""
19557
19558 #. type: textblock
19559 #: ../java/examples/guestfs-java.pod:47
19560 msgid ""
19561 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, "
19562 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19563 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19564 msgstr ""
19565
19566 #. type: textblock
19567 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
19568 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../ocaml/examples/guestfs-ocaml.pod:5
19573 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19574 msgstr ""
19575
19576 #. type: textblock
19577 #: ../ocaml/examples/guestfs-ocaml.pod:9
19578 msgid "Module style:"
19579 msgstr ""
19580
19581 #. type: verbatim
19582 #: ../ocaml/examples/guestfs-ocaml.pod:11
19583 #, no-wrap
19584 msgid ""
19585 " let g = Guestfs.create () in\n"
19586 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19587 " Guestfs.launch g;\n"
19588 "\n"
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../ocaml/examples/guestfs-ocaml.pod:15
19593 msgid "Object-oriented style:"
19594 msgstr ""
19595
19596 #. type: verbatim
19597 #: ../ocaml/examples/guestfs-ocaml.pod:17
19598 #, no-wrap
19599 msgid ""
19600 " let g = new Guestfs.guestfs () in\n"
19601 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19602 " g#launch ();\n"
19603 "\n"
19604 msgstr ""
19605
19606 #. type: verbatim
19607 #: ../ocaml/examples/guestfs-ocaml.pod:21
19608 #, no-wrap
19609 msgid ""
19610 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19611 "or:\n"
19612 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19613 "\n"
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../ocaml/examples/guestfs-ocaml.pod:27
19618 msgid ""
19619 "This manual page documents how to call libguestfs from the OCaml programming "
19620 "language.  This page just documents the differences from the C API and gives "
19621 "some examples.  If you are not familiar with using libguestfs, you also need "
19622 "to read L<guestfs(3)>."
19623 msgstr ""
19624
19625 #. type: =head2
19626 #: ../ocaml/examples/guestfs-ocaml.pod:32
19627 msgid "PROGRAMMING STYLES"
19628 msgstr ""
19629
19630 #. type: textblock
19631 #: ../ocaml/examples/guestfs-ocaml.pod:34
19632 msgid ""
19633 "There are two different programming styles supported by the OCaml bindings.  "
19634 "You can use a module style, with each C function mapped to an OCaml "
19635 "function:"
19636 msgstr ""
19637
19638 #. type: verbatim
19639 #: ../ocaml/examples/guestfs-ocaml.pod:38
19640 #, no-wrap
19641 msgid ""
19642 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19643 "\n"
19644 msgstr ""
19645
19646 #. type: textblock
19647 #: ../ocaml/examples/guestfs-ocaml.pod:40
19648 msgid "becomes:"
19649 msgstr ""
19650
19651 #. type: verbatim
19652 #: ../ocaml/examples/guestfs-ocaml.pod:42
19653 #, no-wrap
19654 msgid ""
19655 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19656 "\n"
19657 msgstr ""
19658
19659 #. type: textblock
19660 #: ../ocaml/examples/guestfs-ocaml.pod:44
19661 msgid ""
19662 "Alternately you can use an object-oriented style, calling methods on the "
19663 "class C<Guestfs.guestfs>:"
19664 msgstr ""
19665
19666 #. type: verbatim
19667 #: ../ocaml/examples/guestfs-ocaml.pod:47
19668 #, no-wrap
19669 msgid ""
19670 " method set_verbose : bool -> unit\n"
19671 "\n"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../ocaml/examples/guestfs-ocaml.pod:49
19676 msgid ""
19677 "The object-oriented style is usually briefer, and the minor performance "
19678 "penalty isn't noticable in the general overhead of performing libguestfs "
19679 "functions."
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../ocaml/examples/guestfs-ocaml.pod:55
19684 msgid ""
19685 "The handle is closed when it is reaped by the garbage collector.  Because "
19686 "libguestfs handles include a lot of state, it is also possible to close (and "
19687 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19688 "method."
19689 msgstr ""
19690
19691 #. type: textblock
19692 #: ../ocaml/examples/guestfs-ocaml.pod:62
19693 msgid ""
19694 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19695 "exception.  This has a single parameter which is the error message (a "
19696 "string)."
19697 msgstr ""
19698
19699 #. type: textblock
19700 #: ../ocaml/examples/guestfs-ocaml.pod:66
19701 msgid ""
19702 "Calling any function/method on a closed handle raises "
19703 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19704 "that you called."
19705 msgstr ""
19706
19707 #. type: textblock
19708 #: ../ocaml/examples/guestfs-ocaml.pod:80
19709 msgid ""
19710 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19711 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19712 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../perl/examples/guestfs-perl.pod:5
19717 msgid "guestfs-perl - How to use libguestfs from Perl"
19718 msgstr ""
19719
19720 #. type: verbatim
19721 #: ../perl/examples/guestfs-perl.pod:9
19722 #, no-wrap
19723 msgid ""
19724 " use Sys::Guestfs;\n"
19725 " \n"
19726 msgstr ""
19727
19728 #. type: verbatim
19729 #: ../perl/examples/guestfs-perl.pod:11
19730 #, no-wrap
19731 msgid ""
19732 " my $h = Sys::Guestfs->new ();\n"
19733 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19734 " $h->launch ();\n"
19735 " $h->mount_options ('', '/dev/sda1', '/');\n"
19736 " $h->touch ('/hello');\n"
19737 " $h->sync ();\n"
19738 "\n"
19739 msgstr ""
19740
19741 #. type: textblock
19742 #: ../perl/examples/guestfs-perl.pod:20
19743 msgid ""
19744 "This manual page documents how to call libguestfs from the Perl programming "
19745 "language.  This page just documents the differences from the C API and gives "
19746 "some examples.  If you are not familiar with using libguestfs, you also need "
19747 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
19748 msgstr ""
19749
19750 #. type: =head2
19751 #: ../perl/examples/guestfs-perl.pod:26
19752 msgid "ERRORS"
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../perl/examples/guestfs-perl.pod:28
19757 msgid ""
19758 "Errors from libguestfs functions turn into calls to C<croak> (see "
19759 "L<Carp(3)>)."
19760 msgstr ""
19761
19762 #. type: textblock
19763 #: ../perl/examples/guestfs-perl.pod:41
19764 msgid ""
19765 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
19766 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
19767 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19768 msgstr ""
19769
19770 #. type: textblock
19771 #: ../python/examples/guestfs-python.pod:5
19772 msgid "guestfs-python - How to use libguestfs from Python"
19773 msgstr ""
19774
19775 #. type: verbatim
19776 #: ../python/examples/guestfs-python.pod:9
19777 #, no-wrap
19778 msgid ""
19779 " import guestfs\n"
19780 " g = guestfs.GuestFS ()\n"
19781 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
19782 " g.launch\n"
19783 "\n"
19784 msgstr ""
19785
19786 #. type: textblock
19787 #: ../python/examples/guestfs-python.pod:16
19788 msgid ""
19789 "This manual page documents how to call libguestfs from the Python "
19790 "programming language.  This page just documents the differences from the C "
19791 "API and gives some examples.  If you are not familiar with using libguestfs, "
19792 "you also need to read L<guestfs(3)>."
19793 msgstr ""
19794
19795 #. type: textblock
19796 #: ../python/examples/guestfs-python.pod:23
19797 msgid ""
19798 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
19799 "single string argument which is the error message."
19800 msgstr ""
19801
19802 #. type: =head2
19803 #: ../python/examples/guestfs-python.pod:26
19804 msgid "MORE DOCUMENTATION"
19805 msgstr ""
19806
19807 #. type: textblock
19808 #: ../python/examples/guestfs-python.pod:28
19809 msgid "Type:"
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../python/examples/guestfs-python.pod:30
19814 #, no-wrap
19815 msgid ""
19816 " $ python\n"
19817 " >>> import guestfs\n"
19818 " >>> help (guestfs)\n"
19819 "\n"
19820 msgstr ""
19821
19822 #. type: textblock
19823 #: ../python/examples/guestfs-python.pod:44
19824 msgid ""
19825 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19826 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
19827 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../rescue/virt-rescue.pod:5
19832 msgid "virt-rescue - Run a rescue shell on a virtual machine"
19833 msgstr ""
19834
19835 #. type: verbatim
19836 #: ../rescue/virt-rescue.pod:9
19837 #, no-wrap
19838 msgid ""
19839 " virt-rescue [--options] -d domname\n"
19840 "\n"
19841 msgstr ""
19842
19843 #. type: verbatim
19844 #: ../rescue/virt-rescue.pod:11
19845 #, no-wrap
19846 msgid ""
19847 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
19848 "\n"
19849 msgstr ""
19850
19851 #. type: verbatim
19852 #: ../rescue/virt-rescue.pod:15
19853 #, no-wrap
19854 msgid ""
19855 " virt-rescue [--options] domname\n"
19856 "\n"
19857 msgstr ""
19858
19859 #. type: verbatim
19860 #: ../rescue/virt-rescue.pod:17
19861 #, no-wrap
19862 msgid ""
19863 " virt-rescue [--options] disk.img [disk.img ...]\n"
19864 "\n"
19865 msgstr ""
19866
19867 #. type: textblock
19868 #: ../rescue/virt-rescue.pod:21
19869 msgid ""
19870 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
19871 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
19872 "you from doing this, but doesn't catch all cases."
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../rescue/virt-rescue.pod:25
19877 msgid ""
19878 "However if you use the I<--ro> (read only) option, then you can attach a "
19879 "shell to a live virtual machine.  The results might be strange or "
19880 "inconsistent at times but you won't get disk corruption."
19881 msgstr ""
19882
19883 #. type: textblock
19884 #: ../rescue/virt-rescue.pod:31
19885 msgid ""
19886 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
19887 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
19888 "recovery tools which you can use to examine or rescue a virtual machine or "
19889 "disk image."
19890 msgstr ""
19891
19892 #. type: textblock
19893 #: ../rescue/virt-rescue.pod:36
19894 msgid ""
19895 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
19896 "on disk image(s):"
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../rescue/virt-rescue.pod:39
19901 #, no-wrap
19902 msgid ""
19903 " virt-rescue -d GuestName\n"
19904 "\n"
19905 msgstr ""
19906
19907 #. type: verbatim
19908 #: ../rescue/virt-rescue.pod:41
19909 #, no-wrap
19910 msgid ""
19911 " virt-rescue --ro -a /path/to/disk.img\n"
19912 "\n"
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../rescue/virt-rescue.pod:43
19917 #, no-wrap
19918 msgid ""
19919 " virt-rescue -a /dev/sdc\n"
19920 "\n"
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../rescue/virt-rescue.pod:45
19925 msgid "For live VMs you I<must> use the --ro option."
19926 msgstr ""
19927
19928 #. type: textblock
19929 #: ../rescue/virt-rescue.pod:47
19930 msgid ""
19931 "When you run virt-rescue on a virtual machine or disk image, you are placed "
19932 "in an interactive bash shell where you can use many ordinary Linux "
19933 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
19934 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
19935 "is an empty directory called C</sysroot> where you can mount filesystems."
19936 msgstr ""
19937
19938 #. type: textblock
19939 #: ../rescue/virt-rescue.pod:54
19940 msgid ""
19941 "In the example below, we list logical volumes, then choose one to mount "
19942 "under C</sysroot>:"
19943 msgstr ""
19944
19945 #. type: verbatim
19946 #: ../rescue/virt-rescue.pod:57
19947 #, no-wrap
19948 msgid ""
19949 " ><rescue> lvs\n"
19950 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
19951 " lv_root vg_f11x64 -wi-a-   8.83G\n"
19952 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
19953 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
19954 " ><rescue> ls /sysroot\n"
19955 "\n"
19956 msgstr ""
19957
19958 #. type: textblock
19959 #: ../rescue/virt-rescue.pod:64
19960 msgid ""
19961 "If you don't know what filesystems are available on the virtual machine then "
19962 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
19963 msgstr ""
19964
19965 #. type: textblock
19966 #: ../rescue/virt-rescue.pod:70
19967 msgid ""
19968 "Virt-rescue can be used on I<any> disk image file or device, not just a "
19969 "virtual machine.  For example you can use it on a blank file if you want to "
19970 "partition that file (although we would recommend using L<guestfish(1)> "
19971 "instead as it is more suitable for this purpose).  You can even use "
19972 "virt-rescue on things like SD cards."
19973 msgstr ""
19974
19975 #. type: textblock
19976 #: ../rescue/virt-rescue.pod:76
19977 msgid ""
19978 "Virt-rescue does not require root.  You only need to run it as root if you "
19979 "need root to open the disk image."
19980 msgstr ""
19981
19982 #. type: textblock
19983 #: ../rescue/virt-rescue.pod:79
19984 msgid ""
19985 "This tool is just designed for quick interactive hacking on a virtual "
19986 "machine.  For more structured access to a virtual machine disk image, you "
19987 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
19988 "make scripted changes to guests, use L<guestfish(1)>."
19989 msgstr ""
19990
19991 #. type: =item
19992 #: ../rescue/virt-rescue.pod:103
19993 msgid "B<--append kernelopts>"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../rescue/virt-rescue.pod:105
19998 msgid "Pass additional options to the rescue kernel."
19999 msgstr ""
20000
20001 #. type: verbatim
20002 #: ../rescue/virt-rescue.pod:135
20003 #, no-wrap
20004 msgid ""
20005 " virt-rescue --format=raw -a disk.img\n"
20006 "\n"
20007 msgstr ""
20008
20009 #. type: verbatim
20010 #: ../rescue/virt-rescue.pod:139
20011 #, no-wrap
20012 msgid ""
20013 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
20014 "\n"
20015 msgstr ""
20016
20017 #. type: =item
20018 #: ../rescue/virt-rescue.pod:148
20019 msgid "B<-m MB>"
20020 msgstr ""
20021
20022 #. type: =item
20023 #: ../rescue/virt-rescue.pod:150
20024 msgid "B<--memsize MB>"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../rescue/virt-rescue.pod:152
20029 msgid ""
20030 "Change the amount of memory allocated to the rescue system.  The default is "
20031 "set by libguestfs and is small but adequate for running system tools.  The "
20032 "occasional program might need more memory.  The parameter is specified in "
20033 "megabytes."
20034 msgstr ""
20035
20036 #. type: =item
20037 #: ../rescue/virt-rescue.pod:157
20038 msgid "B<--network>"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../rescue/virt-rescue.pod:159
20043 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
20044 msgstr ""
20045
20046 #. type: textblock
20047 #: ../rescue/virt-rescue.pod:165
20048 msgid "Open the image read-only."
20049 msgstr ""
20050
20051 #. type: textblock
20052 #: ../rescue/virt-rescue.pod:175
20053 msgid ""
20054 "Enable SELinux in the rescue appliance.  You should read "
20055 "L<guestfs(3)/SELINUX> before using this option."
20056 msgstr ""
20057
20058 #. type: textblock
20059 #: ../rescue/virt-rescue.pod:194
20060 msgid ""
20061 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
20062 "are done read-write."
20063 msgstr ""
20064
20065 #. type: textblock
20066 #: ../rescue/virt-rescue.pod:207
20067 msgid "Previous versions of virt-rescue allowed you to write either:"
20068 msgstr ""
20069
20070 #. type: verbatim
20071 #: ../rescue/virt-rescue.pod:209
20072 #, no-wrap
20073 msgid ""
20074 " virt-rescue disk.img [disk.img ...]\n"
20075 "\n"
20076 msgstr ""
20077
20078 #. type: verbatim
20079 #: ../rescue/virt-rescue.pod:213
20080 #, no-wrap
20081 msgid ""
20082 " virt-rescue guestname\n"
20083 "\n"
20084 msgstr ""
20085
20086 #. type: =head1
20087 #: ../rescue/virt-rescue.pod:221
20088 msgid "NETWORK"
20089 msgstr ""
20090
20091 #. type: textblock
20092 #: ../rescue/virt-rescue.pod:223
20093 msgid ""
20094 "Adding the I<--network> option enables QEMU user networking in the rescue "
20095 "appliance.  There are some differences between user networking and ordinary "
20096 "networking:"
20097 msgstr ""
20098
20099 #. type: =item
20100 #: ../rescue/virt-rescue.pod:229
20101 msgid "ping does not work"
20102 msgstr ""
20103
20104 #. type: textblock
20105 #: ../rescue/virt-rescue.pod:231
20106 msgid ""
20107 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20108 "send the ping packets, and because virt-rescue must be able to run as "
20109 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
20110 "command.  The ping command will appear to resolve addresses but will not be "
20111 "able to send or receive any packets.  This does not mean that the network is "
20112 "not working."
20113 msgstr ""
20114
20115 #. type: =item
20116 #: ../rescue/virt-rescue.pod:238
20117 msgid "cannot receive connections"
20118 msgstr ""
20119
20120 #. type: textblock
20121 #: ../rescue/virt-rescue.pod:240
20122 msgid "QEMU user networking cannot receive incoming connections."
20123 msgstr ""
20124
20125 #. type: =item
20126 #: ../rescue/virt-rescue.pod:242
20127 msgid "making TCP connections"
20128 msgstr ""
20129
20130 #. type: textblock
20131 #: ../rescue/virt-rescue.pod:244
20132 msgid ""
20133 "The virt-rescue appliance needs to be small and so does not include many "
20134 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20135 "make TCP connections from the shell using the magical "
20136 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20137 msgstr ""
20138
20139 #. type: verbatim
20140 #: ../rescue/virt-rescue.pod:249
20141 #, no-wrap
20142 msgid ""
20143 " exec 3<>/dev/tcp/redhat.com/80\n"
20144 " echo \"GET /\" >&3\n"
20145 " cat <&3\n"
20146 "\n"
20147 msgstr ""
20148
20149 #. type: textblock
20150 #: ../rescue/virt-rescue.pod:253
20151 msgid "See L<bash(1)> for more details."
20152 msgstr ""
20153
20154 #. type: textblock
20155 #: ../rescue/virt-rescue.pod:259
20156 msgid ""
20157 "Several environment variables affect virt-rescue.  See "
20158 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20159 msgstr ""
20160
20161 #. type: textblock
20162 #: ../rescue/virt-rescue.pod:286
20163 msgid ""
20164 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20165 "L<http://libguestfs.org/>."
20166 msgstr ""
20167
20168 #. type: textblock
20169 #: ../resize/virt-resize.pod:5
20170 msgid "virt-resize - Resize a virtual machine disk"
20171 msgstr ""
20172
20173 #. type: verbatim
20174 #: ../resize/virt-resize.pod:9
20175 #, no-wrap
20176 msgid ""
20177 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20178 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20179 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20180 "\n"
20181 msgstr ""
20182
20183 #. type: textblock
20184 #: ../resize/virt-resize.pod:15
20185 msgid ""
20186 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20187 "larger or smaller overall, and resizing or deleting any partitions contained "
20188 "within."
20189 msgstr ""
20190
20191 #. type: textblock
20192 #: ../resize/virt-resize.pod:19
20193 msgid ""
20194 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20195 "not> be used on live virtual machines - for consistent results, shut the "
20196 "virtual machine down before resizing it."
20197 msgstr ""
20198
20199 #. type: textblock
20200 #: ../resize/virt-resize.pod:23
20201 msgid ""
20202 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20203 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20204 msgstr ""
20205
20206 #. type: =item
20207 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1280 ../src/guestfs.pod:1418 ../src/guestfs.pod:2581
20208 msgid "1."
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../resize/virt-resize.pod:33
20213 msgid ""
20214 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20215 "fill the extra 5GB of space."
20216 msgstr ""
20217
20218 #. type: verbatim
20219 #: ../resize/virt-resize.pod:36
20220 #, no-wrap
20221 msgid ""
20222 " virt-filesystems --long -h --all -a olddisk\n"
20223 " \n"
20224 msgstr ""
20225
20226 #. type: verbatim
20227 #: ../resize/virt-resize.pod:38
20228 #, no-wrap
20229 msgid ""
20230 " truncate -r olddisk newdisk\n"
20231 " truncate -s +5G newdisk\n"
20232 " \n"
20233 msgstr ""
20234
20235 #. type: verbatim
20236 #: ../resize/virt-resize.pod:41
20237 #, no-wrap
20238 msgid ""
20239 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20240 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20241 "\n"
20242 msgstr ""
20243
20244 #. type: =item
20245 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1284 ../src/guestfs.pod:1422 ../src/guestfs.pod:2606
20246 msgid "2."
20247 msgstr ""
20248
20249 #. type: textblock
20250 #: ../resize/virt-resize.pod:46
20251 msgid ""
20252 "As above, but make the /boot partition 200MB bigger, while giving the "
20253 "remaining space to /dev/sda2:"
20254 msgstr ""
20255
20256 #. type: verbatim
20257 #: ../resize/virt-resize.pod:49
20258 #, no-wrap
20259 msgid ""
20260 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20261 "   olddisk newdisk\n"
20262 "\n"
20263 msgstr ""
20264
20265 #. type: =item
20266 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1428
20267 msgid "3."
20268 msgstr ""
20269
20270 #. type: textblock
20271 #: ../resize/virt-resize.pod:54
20272 msgid ""
20273 "As in the first example, but expand a logical volume as the final step.  "
20274 "This is what you would typically use for Linux guests that use LVM:"
20275 msgstr ""
20276
20277 #. type: verbatim
20278 #: ../resize/virt-resize.pod:58
20279 #, no-wrap
20280 msgid ""
20281 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20282 "   olddisk newdisk\n"
20283 "\n"
20284 msgstr ""
20285
20286 #. type: =item
20287 #: ../resize/virt-resize.pod:61
20288 msgid "4."
20289 msgstr ""
20290
20291 #. type: textblock
20292 #: ../resize/virt-resize.pod:63
20293 msgid ""
20294 "As in the first example, but the output format will be qcow2 instead of a "
20295 "raw disk:"
20296 msgstr ""
20297
20298 #. type: verbatim
20299 #: ../resize/virt-resize.pod:66
20300 #, no-wrap
20301 msgid ""
20302 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20303 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20304 "\n"
20305 msgstr ""
20306
20307 #. type: =head1
20308 #: ../resize/virt-resize.pod:71
20309 msgid "DETAILED USAGE"
20310 msgstr ""
20311
20312 #. type: =head2
20313 #: ../resize/virt-resize.pod:73
20314 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20315 msgstr ""
20316
20317 #. type: =item
20318 #: ../resize/virt-resize.pod:77
20319 msgid "1. Shut down the virtual machine"
20320 msgstr ""
20321
20322 #. type: =item
20323 #: ../resize/virt-resize.pod:79
20324 msgid "2. Locate input disk image"
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../resize/virt-resize.pod:81
20329 msgid ""
20330 "Locate the input disk image (ie. the file or device on the host containing "
20331 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20332 "dumpxml> like this to find the disk image name:"
20333 msgstr ""
20334
20335 #. type: verbatim
20336 #: ../resize/virt-resize.pod:85
20337 #, no-wrap
20338 msgid ""
20339 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20340 " Found 1 nodes:\n"
20341 " -- NODE --\n"
20342 " <source dev=\"/dev/vg/lv_guest\" />\n"
20343 "\n"
20344 msgstr ""
20345
20346 #. type: =item
20347 #: ../resize/virt-resize.pod:90
20348 msgid "3. Look at current sizing"
20349 msgstr ""
20350
20351 #. type: textblock
20352 #: ../resize/virt-resize.pod:92
20353 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20354 msgstr ""
20355
20356 #. type: verbatim
20357 #: ../resize/virt-resize.pod:95
20358 #, no-wrap
20359 msgid ""
20360 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20361 " Name       Type       Size  Parent\n"
20362 " /dev/sda1  partition  101M  /dev/sda\n"
20363 " /dev/sda2  partition  7.9G  /dev/sda\n"
20364 " /dev/sda   device     8.0G  -\n"
20365 "\n"
20366 msgstr ""
20367
20368 #. type: textblock
20369 #: ../resize/virt-resize.pod:101
20370 msgid ""
20371 "(This example is a virtual machine with an 8 GB disk which we would like to "
20372 "expand up to 10 GB)."
20373 msgstr ""
20374
20375 #. type: =item
20376 #: ../resize/virt-resize.pod:104
20377 msgid "4. Create output disk"
20378 msgstr ""
20379
20380 #. type: textblock
20381 #: ../resize/virt-resize.pod:106
20382 msgid ""
20383 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20384 "to store the resized output disk."
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../resize/virt-resize.pod:109
20389 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20390 msgstr ""
20391
20392 #. type: verbatim
20393 #: ../resize/virt-resize.pod:112
20394 #, no-wrap
20395 msgid ""
20396 " # rm -f outdisk\n"
20397 " # truncate -s 10G outdisk\n"
20398 "\n"
20399 msgstr ""
20400
20401 #. type: textblock
20402 #: ../resize/virt-resize.pod:115
20403 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20404 msgstr ""
20405
20406 #. type: verbatim
20407 #: ../resize/virt-resize.pod:117
20408 #, no-wrap
20409 msgid ""
20410 " # lvcreate -L 10G -n lv_name vg_name\n"
20411 "\n"
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../resize/virt-resize.pod:119
20416 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20417 msgstr ""
20418
20419 #. type: verbatim
20420 #: ../resize/virt-resize.pod:121
20421 #, no-wrap
20422 msgid ""
20423 " # virsh pool-list\n"
20424 " # virsh vol-create-as poolname newvol 10G\n"
20425 "\n"
20426 msgstr ""
20427
20428 #. type: =item
20429 #: ../resize/virt-resize.pod:124
20430 msgid "5. Resize"
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../resize/virt-resize.pod:126
20435 msgid ""
20436 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20437 "file) and the output disk.  The output disk is the one created in the "
20438 "previous step."
20439 msgstr ""
20440
20441 #. type: verbatim
20442 #: ../resize/virt-resize.pod:130
20443 #, no-wrap
20444 msgid ""
20445 " # virt-resize indisk outdisk\n"
20446 "\n"
20447 msgstr ""
20448
20449 #. type: textblock
20450 #: ../resize/virt-resize.pod:132
20451 msgid ""
20452 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20453 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20454 "larger, then an extra, empty partition is created at the end of the disk "
20455 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20456 "error."
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../resize/virt-resize.pod:138
20461 msgid ""
20462 "More realistically you'd want to expand existing partitions in the disk "
20463 "image by passing extra options (for the full list see the L</OPTIONS> "
20464 "section below)."
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../resize/virt-resize.pod:142
20469 msgid ""
20470 "L</--expand> is the most useful option.  It expands the named partition "
20471 "within the disk to fill any extra space:"
20472 msgstr ""
20473
20474 #. type: verbatim
20475 #: ../resize/virt-resize.pod:145
20476 #, no-wrap
20477 msgid ""
20478 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20479 "\n"
20480 msgstr ""
20481
20482 #. type: textblock
20483 #: ../resize/virt-resize.pod:147
20484 msgid ""
20485 "(In this case, an extra partition is I<not> created at the end of the disk, "
20486 "because there will be no unused space)."
20487 msgstr ""
20488
20489 #. type: textblock
20490 #: ../resize/virt-resize.pod:150
20491 msgid ""
20492 "L</--resize> is the other commonly used option.  The following would "
20493 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20494 "rest of the available space:"
20495 msgstr ""
20496
20497 #. type: verbatim
20498 #: ../resize/virt-resize.pod:154
20499 #, no-wrap
20500 msgid ""
20501 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20502 "     indisk outdisk\n"
20503 "\n"
20504 msgstr ""
20505
20506 #. type: textblock
20507 #: ../resize/virt-resize.pod:157
20508 msgid ""
20509 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20510 "if virt-resize knows how, it will resize the contents, the equivalent of "
20511 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20512 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20513 "filesystems, so you would have to online resize them after booting the "
20514 "guest."
20515 msgstr ""
20516
20517 #. type: textblock
20518 #: ../resize/virt-resize.pod:164
20519 msgid "Other options are covered below."
20520 msgstr ""
20521
20522 #. type: =item
20523 #: ../resize/virt-resize.pod:166
20524 msgid "6. Test"
20525 msgstr ""
20526
20527 #. type: textblock
20528 #: ../resize/virt-resize.pod:168
20529 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../resize/virt-resize.pod:170
20534 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20535 msgstr ""
20536
20537 #. type: verbatim
20538 #: ../resize/virt-resize.pod:172
20539 #, no-wrap
20540 msgid ""
20541 " # virsh edit guestname\n"
20542 "\n"
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../resize/virt-resize.pod:174
20547 msgid ""
20548 "Change E<lt>source ...E<gt>, see "
20549 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20550 msgstr ""
20551
20552 #. type: textblock
20553 #: ../resize/virt-resize.pod:177
20554 msgid "Then start up the domain with the new, resized disk:"
20555 msgstr ""
20556
20557 #. type: verbatim
20558 #: ../resize/virt-resize.pod:179
20559 #, no-wrap
20560 msgid ""
20561 " # virsh start guestname\n"
20562 "\n"
20563 msgstr ""
20564
20565 #. type: textblock
20566 #: ../resize/virt-resize.pod:181
20567 msgid ""
20568 "and check that it still works.  See also the L</NOTES> section below for "
20569 "additional information."
20570 msgstr ""
20571
20572 #. type: =item
20573 #: ../resize/virt-resize.pod:184
20574 msgid "7. Resize LVs etc inside the guest"
20575 msgstr ""
20576
20577 #. type: textblock
20578 #: ../resize/virt-resize.pod:186
20579 msgid "(This can also be done offline using L<guestfish(1)>)"
20580 msgstr ""
20581
20582 #. type: textblock
20583 #: ../resize/virt-resize.pod:188
20584 msgid ""
20585 "Once the guest has booted you should see the new space available, at least "
20586 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20587 "may need to resize LVs inside PVs, and also resize filesystem types that "
20588 "virt-resize does not know how to expand."
20589 msgstr ""
20590
20591 #. type: =head2
20592 #: ../resize/virt-resize.pod:195
20593 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20594 msgstr ""
20595
20596 #. type: textblock
20597 #: ../resize/virt-resize.pod:197
20598 msgid ""
20599 "Shrinking is somewhat more complex than expanding, and only an overview is "
20600 "given here."
20601 msgstr ""
20602
20603 #. type: textblock
20604 #: ../resize/virt-resize.pod:200
20605 msgid ""
20606 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20607 "filesystems).  The user has to shrink content before passing the disk image "
20608 "to virt-resize, and virt-resize will check that the content has been shrunk "
20609 "properly."
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../resize/virt-resize.pod:205
20614 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20615 msgstr ""
20616
20617 #. type: textblock
20618 #: ../resize/virt-resize.pod:207
20619 msgid ""
20620 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20621 "steps 3 and 4 above to allocate a new disk image."
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../resize/virt-resize.pod:210
20626 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20627 msgstr ""
20628
20629 #. type: =head2
20630 #: ../resize/virt-resize.pod:213
20631 msgid "IGNORING OR DELETING PARTITIONS"
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../resize/virt-resize.pod:215
20636 msgid ""
20637 "virt-resize also gives a convenient way to ignore or delete partitions when "
20638 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20639 "up the copy where you don't care about the existing contents of a "
20640 "partition.  Deleting a partition removes it completely, but note that it "
20641 "also renumbers any partitions after the one which is deleted, which can "
20642 "leave some guests unbootable."
20643 msgstr ""
20644
20645 #. type: =head2
20646 #: ../resize/virt-resize.pod:222
20647 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20648 msgstr ""
20649
20650 #. type: textblock
20651 #: ../resize/virt-resize.pod:224
20652 msgid ""
20653 "If the input disk is in qcow2 format, then you may prefer that the output is "
20654 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20655 "the fly.  The output format is simply determined by the format of the empty "
20656 "output container that you provide.  Thus to create qcow2 output, use:"
20657 msgstr ""
20658
20659 #. type: verbatim
20660 #: ../resize/virt-resize.pod:230
20661 #, no-wrap
20662 msgid ""
20663 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20664 "\n"
20665 msgstr ""
20666
20667 #. type: textblock
20668 #: ../resize/virt-resize.pod:232
20669 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../resize/virt-resize.pod:234
20674 msgid "Similarly, to get non-sparse raw output use:"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../resize/virt-resize.pod:236
20679 #, no-wrap
20680 msgid ""
20681 " fallocate -l size outdisk\n"
20682 "\n"
20683 msgstr ""
20684
20685 #. type: textblock
20686 #: ../resize/virt-resize.pod:238
20687 msgid ""
20688 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20689 "if=/dev/zero of=outdisk bs=1M count=..>)"
20690 msgstr ""
20691
20692 #. type: textblock
20693 #: ../resize/virt-resize.pod:247
20694 msgid "Display help."
20695 msgstr ""
20696
20697 #. type: =item
20698 #: ../resize/virt-resize.pod:249
20699 msgid "B<-d>"
20700 msgstr ""
20701
20702 #. type: =item
20703 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20704 msgid "B<--debug>"
20705 msgstr ""
20706
20707 #. type: textblock
20708 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20709 msgid "Enable debugging messages."
20710 msgstr ""
20711
20712 #. type: =item
20713 #: ../resize/virt-resize.pod:255
20714 msgid "B<--delete part>"
20715 msgstr ""
20716
20717 #. type: textblock
20718 #: ../resize/virt-resize.pod:257
20719 msgid ""
20720 "Delete the named partition.  It would be more accurate to describe this as "
20721 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20722 "the original disk image is left intact."
20723 msgstr ""
20724
20725 #. type: textblock
20726 #: ../resize/virt-resize.pod:261
20727 msgid ""
20728 "Note that when you delete a partition, then anything contained in the "
20729 "partition is also deleted.  Furthermore, this causes any partitions that "
20730 "come after to be I<renumbered>, which can easily make your guest unbootable."
20731 msgstr ""
20732
20733 #. type: textblock
20734 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:454
20735 msgid "You can give this option multiple times."
20736 msgstr ""
20737
20738 #. type: =item
20739 #: ../resize/virt-resize.pod:268
20740 msgid "B<--expand part>"
20741 msgstr ""
20742
20743 #. type: textblock
20744 #: ../resize/virt-resize.pod:270
20745 msgid ""
20746 "Expand the named partition so it uses up all extra space (space left over "
20747 "after any other resize changes that you request have been done)."
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../resize/virt-resize.pod:273
20752 msgid ""
20753 "If virt-resize knows how, it will expand the direct content of the "
20754 "partition.  For example, if the partition is an LVM PV, it will expand the "
20755 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
20756 "content it doesn't know about alone."
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../resize/virt-resize.pod:278
20761 msgid "Currently virt-resize can resize:"
20762 msgstr ""
20763
20764 #. type: textblock
20765 #: ../resize/virt-resize.pod:284
20766 msgid "ext2, ext3 and ext4 filesystems."
20767 msgstr ""
20768
20769 #. type: textblock
20770 #: ../resize/virt-resize.pod:288
20771 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../resize/virt-resize.pod:290
20776 msgid ""
20777 "The filesystem must have been shut down consistently last time it was used.  "
20778 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
20779 "consistency check, so at the first boot after resizing Windows will check "
20780 "the disk."
20781 msgstr ""
20782
20783 #. type: textblock
20784 #: ../resize/virt-resize.pod:297
20785 msgid ""
20786 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
20787 "inside the PV, but see the I<--LV-expand> option.  The user could also "
20788 "resize LVs as desired after boot."
20789 msgstr ""
20790
20791 #. type: textblock
20792 #: ../resize/virt-resize.pod:303
20793 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
20794 msgstr ""
20795
20796 #. type: textblock
20797 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
20798 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
20799 msgstr ""
20800
20801 #. type: =item
20802 #: ../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
20803 msgid "B<--format> raw"
20804 msgstr ""
20805
20806 #. type: textblock
20807 #: ../resize/virt-resize.pod:311
20808 msgid ""
20809 "Specify the format of the input disk image.  If this flag is not given then "
20810 "it is auto-detected from the image itself."
20811 msgstr ""
20812
20813 #. type: textblock
20814 #: ../resize/virt-resize.pod:317
20815 msgid ""
20816 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
20817 "AND NON-SPARSE RAW FORMATS>."
20818 msgstr ""
20819
20820 #. type: =item
20821 #: ../resize/virt-resize.pod:320
20822 msgid "B<--ignore part>"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../resize/virt-resize.pod:322
20827 msgid ""
20828 "Ignore the named partition.  Effectively this means the partition is "
20829 "allocated on the destination disk, but the content is not copied across from "
20830 "the source disk.  The content of the partition will be blank (all zero "
20831 "bytes)."
20832 msgstr ""
20833
20834 #. type: =item
20835 #: ../resize/virt-resize.pod:329
20836 msgid "B<--LV-expand logvol>"
20837 msgstr ""
20838
20839 #. type: textblock
20840 #: ../resize/virt-resize.pod:331
20841 msgid ""
20842 "This takes the logical volume and, as a final step, expands it to fill all "
20843 "the space available in its volume group.  A typical usage, assuming a Linux "
20844 "guest with a single PV C</dev/sda2> and a root device called "
20845 "C</dev/vg_guest/lv_root> would be:"
20846 msgstr ""
20847
20848 #. type: verbatim
20849 #: ../resize/virt-resize.pod:336
20850 #, no-wrap
20851 msgid ""
20852 " virt-resize indisk outdisk \\\n"
20853 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
20854 "\n"
20855 msgstr ""
20856
20857 #. type: textblock
20858 #: ../resize/virt-resize.pod:339
20859 msgid ""
20860 "This would first expand the partition (and PV), and then expand the root "
20861 "device to fill the extra space in the PV."
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../resize/virt-resize.pod:342
20866 msgid ""
20867 "The contents of the LV are also resized if virt-resize knows how to do "
20868 "that.  You can stop virt-resize from trying to expand the content by using "
20869 "the option I<--no-expand-content>."
20870 msgstr ""
20871
20872 #. type: textblock
20873 #: ../resize/virt-resize.pod:346
20874 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
20875 msgstr ""
20876
20877 #. type: textblock
20878 #: ../resize/virt-resize.pod:348
20879 msgid ""
20880 "You can give this option multiple times, I<but> it doesn't make sense to do "
20881 "this unless the logical volumes you specify are all in different volume "
20882 "groups."
20883 msgstr ""
20884
20885 #. type: =item
20886 #: ../resize/virt-resize.pod:352
20887 msgid "B<--machine-readable>"
20888 msgstr ""
20889
20890 #. type: textblock
20891 #: ../resize/virt-resize.pod:354
20892 msgid ""
20893 "This option is used to make the output more machine friendly when being "
20894 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
20895 msgstr ""
20896
20897 #. type: =item
20898 #: ../resize/virt-resize.pod:360
20899 msgid "B<--dryrun>"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../resize/virt-resize.pod:362
20904 msgid "Print a summary of what would be done, but don't do anything."
20905 msgstr ""
20906
20907 #. type: =item
20908 #: ../resize/virt-resize.pod:364
20909 msgid "B<--no-copy-boot-loader>"
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../resize/virt-resize.pod:366
20914 msgid ""
20915 "By default, virt-resize copies over some sectors at the start of the disk "
20916 "(up to the beginning of the first partition).  Commonly these sectors "
20917 "contain the Master Boot Record (MBR) and the boot loader, and are required "
20918 "in order for the guest to boot correctly."
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../resize/virt-resize.pod:371
20923 msgid ""
20924 "If you specify this flag, then this initial copy is not done.  You may need "
20925 "to reinstall the boot loader in this case."
20926 msgstr ""
20927
20928 #. type: =item
20929 #: ../resize/virt-resize.pod:374
20930 msgid "B<--no-extra-partition>"
20931 msgstr ""
20932
20933 #. type: textblock
20934 #: ../resize/virt-resize.pod:376
20935 msgid ""
20936 "By default, virt-resize creates an extra partition if there is any extra, "
20937 "unused space after all resizing has happened.  Use this option to prevent "
20938 "the extra partition from being created.  If you do this then the extra space "
20939 "will be inaccessible until you run fdisk, parted, or some other partitioning "
20940 "tool in the guest."
20941 msgstr ""
20942
20943 #. type: textblock
20944 #: ../resize/virt-resize.pod:382
20945 msgid ""
20946 "Note that if the surplus space is smaller than 10 MB, no extra partition "
20947 "will be created."
20948 msgstr ""
20949
20950 #. type: =item
20951 #: ../resize/virt-resize.pod:385
20952 msgid "B<--no-expand-content>"
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../resize/virt-resize.pod:387
20957 msgid ""
20958 "By default, virt-resize will try to expand the direct contents of "
20959 "partitions, if it knows how (see I<--expand> option above)."
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../resize/virt-resize.pod:390
20964 msgid ""
20965 "If you give the I<--no-expand-content> option then virt-resize will not "
20966 "attempt this."
20967 msgstr ""
20968
20969 #. type: =item
20970 #: ../resize/virt-resize.pod:393
20971 msgid "B<--ntfsresize-force>"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../resize/virt-resize.pod:395
20976 msgid ""
20977 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
20978 "the NTFS disk is marked as needing a consistency check.  You have to use "
20979 "this option if you want to resize a Windows guest multiple times without "
20980 "booting into Windows between each resize."
20981 msgstr ""
20982
20983 #. type: =item
20984 #: ../resize/virt-resize.pod:401
20985 msgid "B<--output-format> raw"
20986 msgstr ""
20987
20988 #. type: textblock
20989 #: ../resize/virt-resize.pod:403
20990 msgid ""
20991 "Specify the format of the output disk image.  If this flag is not given then "
20992 "it is auto-detected from the image itself."
20993 msgstr ""
20994
20995 #. type: textblock
20996 #: ../resize/virt-resize.pod:409
20997 msgid ""
20998 "Note that this option I<does not create> the output format.  This option "
20999 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
21000 "need to create the output disk with the right format.  See L</QCOW2 AND "
21001 "NON-SPARSE RAW FORMATS>."
21002 msgstr ""
21003
21004 #. type: =item
21005 #: ../resize/virt-resize.pod:414
21006 msgid "B<-q>"
21007 msgstr ""
21008
21009 #. type: =item
21010 #: ../resize/virt-resize.pod:416
21011 msgid "B<--quiet>"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../resize/virt-resize.pod:418
21016 msgid "Don't print the summary."
21017 msgstr ""
21018
21019 #. type: =item
21020 #: ../resize/virt-resize.pod:420
21021 msgid "B<--resize part=size>"
21022 msgstr ""
21023
21024 #. type: textblock
21025 #: ../resize/virt-resize.pod:422
21026 msgid ""
21027 "Resize the named partition (expanding or shrinking it) so that it has the "
21028 "given size."
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../resize/virt-resize.pod:425
21033 msgid ""
21034 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
21035 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
21036 "size; or as a relative number or percentage.  For example:"
21037 msgstr ""
21038
21039 #. type: verbatim
21040 #: ../resize/virt-resize.pod:431
21041 #, no-wrap
21042 msgid ""
21043 " --resize /dev/sda2=10G\n"
21044 "\n"
21045 msgstr ""
21046
21047 #. type: verbatim
21048 #: ../resize/virt-resize.pod:433
21049 #, no-wrap
21050 msgid ""
21051 " --resize /dev/sda4=90%\n"
21052 "\n"
21053 msgstr ""
21054
21055 #. type: verbatim
21056 #: ../resize/virt-resize.pod:435
21057 #, no-wrap
21058 msgid ""
21059 " --resize /dev/sda2=+1G\n"
21060 "\n"
21061 msgstr ""
21062
21063 #. type: verbatim
21064 #: ../resize/virt-resize.pod:437
21065 #, no-wrap
21066 msgid ""
21067 " --resize /dev/sda2=-200M\n"
21068 "\n"
21069 msgstr ""
21070
21071 #. type: verbatim
21072 #: ../resize/virt-resize.pod:439
21073 #, no-wrap
21074 msgid ""
21075 " --resize /dev/sda1=+128K\n"
21076 "\n"
21077 msgstr ""
21078
21079 #. type: verbatim
21080 #: ../resize/virt-resize.pod:441
21081 #, no-wrap
21082 msgid ""
21083 " --resize /dev/sda1=+10%\n"
21084 "\n"
21085 msgstr ""
21086
21087 #. type: verbatim
21088 #: ../resize/virt-resize.pod:443
21089 #, no-wrap
21090 msgid ""
21091 " --resize /dev/sda1=-10%\n"
21092 "\n"
21093 msgstr ""
21094
21095 #. type: textblock
21096 #: ../resize/virt-resize.pod:445
21097 msgid ""
21098 "You can increase the size of any partition.  Virt-resize will expand the "
21099 "direct content of the partition if it knows how (see I<--expand> below)."
21100 msgstr ""
21101
21102 #. type: textblock
21103 #: ../resize/virt-resize.pod:449
21104 msgid ""
21105 "You can only I<decrease> the size of partitions that contain filesystems or "
21106 "PVs which have already been shrunk.  Virt-resize will check this has been "
21107 "done before proceeding, or else will print an error (see also "
21108 "I<--resize-force>)."
21109 msgstr ""
21110
21111 #. type: =item
21112 #: ../resize/virt-resize.pod:456
21113 msgid "B<--resize-force part=size>"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../resize/virt-resize.pod:458
21118 msgid ""
21119 "This is the same as I<--resize> except that it will let you decrease the "
21120 "size of any partition.  Generally this means you will lose any data which "
21121 "was at the end of the partition you shrink, but you may not care about that "
21122 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21123 "as a swap partition)."
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../resize/virt-resize.pod:464
21128 msgid "See also the I<--ignore> option."
21129 msgstr ""
21130
21131 #. type: =item
21132 #: ../resize/virt-resize.pod:466
21133 msgid "B<--shrink part>"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../resize/virt-resize.pod:468
21138 msgid ""
21139 "Shrink the named partition until the overall disk image fits in the "
21140 "destination.  The named partition B<must> contain a filesystem or PV which "
21141 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21142 "online tools).  Virt-resize will check this and give an error if it has not "
21143 "been done."
21144 msgstr ""
21145
21146 #. type: textblock
21147 #: ../resize/virt-resize.pod:474
21148 msgid ""
21149 "The amount by which the overall disk must be shrunk (after carrying out all "
21150 "other operations requested by the user) is called the \"deficit\".  For "
21151 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21152 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21153 "would give an error unless the user specified a partition to shrink and that "
21154 "partition had more than a gigabyte of free space."
21155 msgstr ""
21156
21157 #. type: =head1
21158 #: ../resize/virt-resize.pod:492
21159 msgid "MACHINE READABLE OUTPUT"
21160 msgstr ""
21161
21162 #. type: textblock
21163 #: ../resize/virt-resize.pod:494
21164 msgid ""
21165 "The I<--machine-readable> option can be used to make the output more machine "
21166 "friendly, which is useful when calling virt-resize from other programs, GUIs "
21167 "etc."
21168 msgstr ""
21169
21170 #. type: textblock
21171 #: ../resize/virt-resize.pod:498
21172 msgid ""
21173 "Use the option on its own to query the capabilities of the virt-resize "
21174 "binary.  Typical output looks like this:"
21175 msgstr ""
21176
21177 #. type: verbatim
21178 #: ../resize/virt-resize.pod:501
21179 #, no-wrap
21180 msgid ""
21181 " $ virt-resize --machine-readable\n"
21182 " virt-resize\n"
21183 " ntfsresize-force\n"
21184 " 32bitok\n"
21185 " ntfs\n"
21186 " btrfs\n"
21187 "\n"
21188 msgstr ""
21189
21190 #. type: textblock
21191 #: ../resize/virt-resize.pod:508
21192 msgid ""
21193 "A list of features is printed, one per line, and the program exits with "
21194 "status 0."
21195 msgstr ""
21196
21197 #. type: =head2
21198 #: ../resize/virt-resize.pod:513
21199 msgid "\"Partition 1 does not end on cylinder boundary.\""
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../resize/virt-resize.pod:515
21204 msgid ""
21205 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21206 "means the partitions will not be aligned to the ancient CHS geometry.  "
21207 "However CHS geometry is meaningless for disks manufactured since the early "
21208 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21209 "cylinders is not required by any modern operating system."
21210 msgstr ""
21211
21212 #. type: =head2
21213 #: ../resize/virt-resize.pod:522
21214 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../resize/virt-resize.pod:524
21219 msgid ""
21220 "In Windows Vista and later versions, Microsoft switched to using a separate "
21221 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21222 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21223 "the boot partition.  Doing so seems to break the guest completely.  However "
21224 "expanding the second partition (ie. C: drive) should work."
21225 msgstr ""
21226
21227 #. type: textblock
21228 #: ../resize/virt-resize.pod:531
21229 msgid ""
21230 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21231 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21232 "it find errors) is nothing to worry about."
21233 msgstr ""
21234
21235 #. type: =head2
21236 #: ../resize/virt-resize.pod:535
21237 msgid "GUEST BOOT STUCK AT \"GRUB\""
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../resize/virt-resize.pod:537
21242 msgid ""
21243 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21244 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21245 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21246 "although we think is to do with partition alignment."
21247 msgstr ""
21248
21249 #. type: verbatim
21250 #: ../resize/virt-resize.pod:542
21251 #, no-wrap
21252 msgid ""
21253 " guestfish -i -a newdisk\n"
21254 " ><fs> cat /boot/grub/device.map\n"
21255 " # check the contents of this file are sensible or\n"
21256 " # edit the file if necessary\n"
21257 " ><fs> grub-install / /dev/vda\n"
21258 " ><fs> exit\n"
21259 "\n"
21260 msgstr ""
21261
21262 #. type: textblock
21263 #: ../resize/virt-resize.pod:549
21264 msgid ""
21265 "For more flexible guest reconfiguration, including if you need to specify "
21266 "other parameters to grub-install, use L<virt-rescue(1)>."
21267 msgstr ""
21268
21269 #. type: =head1
21270 #: ../resize/virt-resize.pod:552
21271 msgid "ALTERNATIVE TOOLS"
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../resize/virt-resize.pod:554
21276 msgid ""
21277 "There are several proprietary tools for resizing partitions.  We won't "
21278 "mention any here."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../resize/virt-resize.pod:557
21283 msgid ""
21284 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21285 "operations on disk images.  They can resize and move partitions, but I don't "
21286 "think they can do anything with the contents, and they certainly don't "
21287 "understand LVM."
21288 msgstr ""
21289
21290 #. type: textblock
21291 #: ../resize/virt-resize.pod:562
21292 msgid ""
21293 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21294 "but at a much lower level.  You will probably end up hand-calculating sector "
21295 "offsets, which is something that virt-resize was designed to avoid.  If you "
21296 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21297 "I<--debug> flag."
21298 msgstr ""
21299
21300 #. type: textblock
21301 #: ../resize/virt-resize.pod:582
21302 msgid ""
21303 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21304 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21305 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21306 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21307 "L<http://libguestfs.org/>."
21308 msgstr ""
21309
21310 #. type: textblock
21311 #: ../ruby/examples/guestfs-ruby.pod:5
21312 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21313 msgstr ""
21314
21315 #. type: verbatim
21316 #: ../ruby/examples/guestfs-ruby.pod:9
21317 #, no-wrap
21318 msgid ""
21319 " require 'guestfs'\n"
21320 " g = Guestfs::Guestfs.new()\n"
21321 " g.add_drive_opts(\"disk.img\",\n"
21322 "                  :readonly => 1, :format => \"raw\")\n"
21323 " g.launch()\n"
21324 "\n"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../ruby/examples/guestfs-ruby.pod:17
21329 msgid ""
21330 "This manual page documents how to call libguestfs from the Ruby programming "
21331 "language.  This page just documents the differences from the C API and gives "
21332 "some examples.  If you are not familiar with using libguestfs, you also need "
21333 "to read L<guestfs(3)>."
21334 msgstr ""
21335
21336 #. type: textblock
21337 #: ../ruby/examples/guestfs-ruby.pod:24
21338 msgid ""
21339 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21340 "This has a single parameter which is the error message (a string)."
21341 msgstr ""
21342
21343 #. type: textblock
21344 #: ../ruby/examples/guestfs-ruby.pod:38
21345 msgid ""
21346 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
21347 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21348 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21349 msgstr ""
21350
21351 #. type: =head2
21352 #: ../src/guestfs-actions.pod:1
21353 msgid "guestfs_add_cdrom"
21354 msgstr ""
21355
21356 #. type: verbatim
21357 #: ../src/guestfs-actions.pod:3
21358 #, no-wrap
21359 msgid ""
21360 " int\n"
21361 " guestfs_add_cdrom (guestfs_h *g,\n"
21362 "                    const char *filename);\n"
21363 "\n"
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../src/guestfs-actions.pod:17
21368 msgid ""
21369 "This call checks for the existence of C<filename>.  This stops you from "
21370 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21371 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21372 "instead."
21373 msgstr ""
21374
21375 #. type: textblock
21376 #: ../src/guestfs-actions.pod:24
21377 msgid ""
21378 "If you just want to add an ISO file (often you use this as an efficient way "
21379 "to transfer large files into the guest), then you should probably use "
21380 "C<guestfs_add_drive_ro> instead."
21381 msgstr ""
21382
21383 #. type: textblock
21384 #: ../src/guestfs-actions.pod:30 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../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:1513 ../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:3648 ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3688 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3904 ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3933 ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4078 ../src/guestfs-actions.pod:4101 ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:4159 ../src/guestfs-actions.pod:4178 ../src/guestfs-actions.pod:4197 ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4244 ../src/guestfs-actions.pod:4280 ../src/guestfs-actions.pod:4296 ../src/guestfs-actions.pod:4309 ../src/guestfs-actions.pod:4324 ../src/guestfs-actions.pod:4341 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:4454 ../src/guestfs-actions.pod:4467 ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4536 ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4570 ../src/guestfs-actions.pod:4584 ../src/guestfs-actions.pod:4598 ../src/guestfs-actions.pod:4615 ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4720 ../src/guestfs-actions.pod:4793 ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:4843 ../src/guestfs-actions.pod:4862 ../src/guestfs-actions.pod:4874 ../src/guestfs-actions.pod:4891 ../src/guestfs-actions.pod:4904 ../src/guestfs-actions.pod:4919 ../src/guestfs-actions.pod:4934 ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:5002 ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5061 ../src/guestfs-actions.pod:5075 ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5141 ../src/guestfs-actions.pod:5187 ../src/guestfs-actions.pod:5241 ../src/guestfs-actions.pod:5277 ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5329 ../src/guestfs-actions.pod:5347 ../src/guestfs-actions.pod:5487 ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5566 ../src/guestfs-actions.pod:5584 ../src/guestfs-actions.pod:5616 ../src/guestfs-actions.pod:5682 ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:5726 ../src/guestfs-actions.pod:6015 ../src/guestfs-actions.pod:6034 ../src/guestfs-actions.pod:6053 ../src/guestfs-actions.pod:6067 ../src/guestfs-actions.pod:6079 ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6119 ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6156 ../src/guestfs-actions.pod:6175 ../src/guestfs-actions.pod:6194 ../src/guestfs-actions.pod:6224 ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6265 ../src/guestfs-actions.pod:6283 ../src/guestfs-actions.pod:6302 ../src/guestfs-actions.pod:6323 ../src/guestfs-actions.pod:6342 ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:6406 ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6449 ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6492 ../src/guestfs-actions.pod:6507 ../src/guestfs-actions.pod:6526 ../src/guestfs-actions.pod:6563 ../src/guestfs-actions.pod:6593 ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6748 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6881 ../src/guestfs-actions.pod:6894 ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6942 ../src/guestfs-actions.pod:6955 ../src/guestfs-actions.pod:6968 ../src/guestfs-actions.pod:6983 ../src/guestfs-actions.pod:7042 ../src/guestfs-actions.pod:7059 ../src/guestfs-actions.pod:7075 ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7141 ../src/guestfs-actions.pod:7177 ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245 ../src/guestfs-actions.pod:7263 ../src/guestfs-actions.pod:7297 ../src/guestfs-actions.pod:7333 ../src/guestfs-actions.pod:7449 ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7478 ../src/guestfs-actions.pod:7533 ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7591 ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7707 ../src/guestfs-actions.pod:7733 ../src/guestfs-actions.pod:7804 ../src/guestfs-actions.pod:7827 ../src/guestfs-actions.pod:7856
21385 msgid "This function returns 0 on success or -1 on error."
21386 msgstr ""
21387
21388 #. type: textblock
21389 #: ../src/guestfs-actions.pod:32 ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:275
21390 msgid ""
21391 "This function is deprecated.  In new code, use the "
21392 "L</guestfs_add_drive_opts> call instead."
21393 msgstr ""
21394
21395 #. type: textblock
21396 #: ../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:3650 ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:4978 ../src/guestfs-actions.pod:6244 ../src/guestfs-actions.pod:6361 ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7110 ../src/guestfs-actions.pod:7633
21397 msgid "(Added in 0.3)"
21398 msgstr ""
21399
21400 #. type: =head2
21401 #: ../src/guestfs-actions.pod:41
21402 msgid "guestfs_add_domain"
21403 msgstr ""
21404
21405 #. type: verbatim
21406 #: ../src/guestfs-actions.pod:43
21407 #, no-wrap
21408 msgid ""
21409 " int\n"
21410 " guestfs_add_domain (guestfs_h *g,\n"
21411 "                     const char *dom,\n"
21412 "                     ...);\n"
21413 "\n"
21414 msgstr ""
21415
21416 #. type: textblock
21417 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2853 ../src/guestfs-actions.pod:4669 ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5205
21418 msgid ""
21419 "You may supply a list of optional arguments to this call.  Use zero or more "
21420 "of the following pairs of parameters, and terminate the list with C<-1> on "
21421 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21422 msgstr ""
21423
21424 #. type: verbatim
21425 #: ../src/guestfs-actions.pod:53
21426 #, no-wrap
21427 msgid ""
21428 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21429 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21430 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21431 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21432 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21433 "\n"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../src/guestfs-actions.pod:59
21438 msgid ""
21439 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21440 "It works by connecting to libvirt, requesting the domain and domain XML from "
21441 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21442 "one."
21443 msgstr ""
21444
21445 #. type: textblock
21446 #: ../src/guestfs-actions.pod:94
21447 msgid ""
21448 "The other optional parameters are passed directly through to "
21449 "C<guestfs_add_drive_opts>."
21450 msgstr ""
21451
21452 #. type: textblock
21453 #: ../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:2971 ../src/guestfs-actions.pod:2989 ../src/guestfs-actions.pod:5164 ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5796 ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:7218 ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7657 ../src/guestfs-actions.pod:7670
21454 msgid "On error this function returns -1."
21455 msgstr ""
21456
21457 #. type: textblock
21458 #: ../src/guestfs-actions.pod:99
21459 msgid "(Added in 1.7.4)"
21460 msgstr ""
21461
21462 #. type: =head2
21463 #: ../src/guestfs-actions.pod:101
21464 msgid "guestfs_add_domain_va"
21465 msgstr ""
21466
21467 #. type: verbatim
21468 #: ../src/guestfs-actions.pod:103
21469 #, no-wrap
21470 msgid ""
21471 " int\n"
21472 " guestfs_add_domain_va (guestfs_h *g,\n"
21473 "                        const char *dom,\n"
21474 "                        va_list args);\n"
21475 "\n"
21476 msgstr ""
21477
21478 #. type: textblock
21479 #: ../src/guestfs-actions.pod:108
21480 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../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:2937 ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:4734 ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:5028 ../src/guestfs-actions.pod:5254 ../src/guestfs-actions.pod:5265
21485 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21486 msgstr ""
21487
21488 #. type: =head2
21489 #: ../src/guestfs-actions.pod:112
21490 msgid "guestfs_add_domain_argv"
21491 msgstr ""
21492
21493 #. type: verbatim
21494 #: ../src/guestfs-actions.pod:114
21495 #, no-wrap
21496 msgid ""
21497 " int\n"
21498 " guestfs_add_domain_argv (guestfs_h *g,\n"
21499 "                          const char *dom,\n"
21500 "                          const struct guestfs_add_domain_argv *optargs);\n"
21501 "\n"
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../src/guestfs-actions.pod:119
21506 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21507 msgstr ""
21508
21509 #. type: =head2
21510 #: ../src/guestfs-actions.pod:123
21511 msgid "guestfs_add_drive"
21512 msgstr ""
21513
21514 #. type: verbatim
21515 #: ../src/guestfs-actions.pod:125
21516 #, no-wrap
21517 msgid ""
21518 " int\n"
21519 " guestfs_add_drive (guestfs_h *g,\n"
21520 "                    const char *filename);\n"
21521 "\n"
21522 msgstr ""
21523
21524 #. type: textblock
21525 #: ../src/guestfs-actions.pod:129
21526 msgid ""
21527 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21528 "optional parameters, so the disk is added writable, with the format being "
21529 "detected automatically."
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../src/guestfs-actions.pod:133
21534 msgid ""
21535 "Automatic detection of the format opens you up to a potential security hole "
21536 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21537 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21538 "you should think about replacing calls to this function with calls to "
21539 "C<guestfs_add_drive_opts>, and specifying the format."
21540 msgstr ""
21541
21542 #. type: =head2
21543 #: ../src/guestfs-actions.pod:144
21544 msgid "guestfs_add_drive_opts"
21545 msgstr ""
21546
21547 #. type: verbatim
21548 #: ../src/guestfs-actions.pod:146
21549 #, no-wrap
21550 msgid ""
21551 " int\n"
21552 " guestfs_add_drive_opts (guestfs_h *g,\n"
21553 "                         const char *filename,\n"
21554 "                         ...);\n"
21555 "\n"
21556 msgstr ""
21557
21558 #. type: verbatim
21559 #: ../src/guestfs-actions.pod:156
21560 #, no-wrap
21561 msgid ""
21562 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21563 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21564 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21565 "\n"
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../src/guestfs-actions.pod:185
21570 msgid ""
21571 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21572 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21573 "Possible formats include C<raw> and C<qcow2>."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../src/guestfs-actions.pod:196
21578 msgid ""
21579 "This rarely-used option lets you emulate the behaviour of the deprecated "
21580 "C<guestfs_add_drive_with_if> call (q.v.)"
21581 msgstr ""
21582
21583 #. type: textblock
21584 #: ../src/guestfs-actions.pod:203
21585 msgid "(Added in 1.5.23)"
21586 msgstr ""
21587
21588 #. type: =head2
21589 #: ../src/guestfs-actions.pod:205
21590 msgid "guestfs_add_drive_opts_va"
21591 msgstr ""
21592
21593 #. type: verbatim
21594 #: ../src/guestfs-actions.pod:207
21595 #, no-wrap
21596 msgid ""
21597 " int\n"
21598 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21599 "                            const char *filename,\n"
21600 "                            va_list args);\n"
21601 "\n"
21602 msgstr ""
21603
21604 #. type: textblock
21605 #: ../src/guestfs-actions.pod:212
21606 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21607 msgstr ""
21608
21609 #. type: =head2
21610 #: ../src/guestfs-actions.pod:216
21611 msgid "guestfs_add_drive_opts_argv"
21612 msgstr ""
21613
21614 #. type: verbatim
21615 #: ../src/guestfs-actions.pod:218
21616 #, no-wrap
21617 msgid ""
21618 " int\n"
21619 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21620 "                              const char *filename,\n"
21621 "                              const struct guestfs_add_drive_opts_argv "
21622 "*optargs);\n"
21623 "\n"
21624 msgstr ""
21625
21626 #. type: textblock
21627 #: ../src/guestfs-actions.pod:223
21628 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21629 msgstr ""
21630
21631 #. type: =head2
21632 #: ../src/guestfs-actions.pod:227
21633 msgid "guestfs_add_drive_ro"
21634 msgstr ""
21635
21636 #. type: verbatim
21637 #: ../src/guestfs-actions.pod:229
21638 #, no-wrap
21639 msgid ""
21640 " int\n"
21641 " guestfs_add_drive_ro (guestfs_h *g,\n"
21642 "                       const char *filename);\n"
21643 "\n"
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../src/guestfs-actions.pod:233
21648 msgid ""
21649 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21650 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21651 "disk is added read-only, with the format being detected automatically."
21652 msgstr ""
21653
21654 #. type: textblock
21655 #: ../src/guestfs-actions.pod:240
21656 msgid "(Added in 1.0.38)"
21657 msgstr ""
21658
21659 #. type: =head2
21660 #: ../src/guestfs-actions.pod:242
21661 msgid "guestfs_add_drive_ro_with_if"
21662 msgstr ""
21663
21664 #. type: verbatim
21665 #: ../src/guestfs-actions.pod:244
21666 #, no-wrap
21667 msgid ""
21668 " int\n"
21669 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
21670 "                               const char *filename,\n"
21671 "                               const char *iface);\n"
21672 "\n"
21673 msgstr ""
21674
21675 #. type: textblock
21676 #: ../src/guestfs-actions.pod:249
21677 msgid ""
21678 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
21679 "QEMU interface emulation to use at run time."
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2458
21684 msgid "(Added in 1.0.84)"
21685 msgstr ""
21686
21687 #. type: =head2
21688 #: ../src/guestfs-actions.pod:263
21689 msgid "guestfs_add_drive_with_if"
21690 msgstr ""
21691
21692 #. type: verbatim
21693 #: ../src/guestfs-actions.pod:265
21694 #, no-wrap
21695 msgid ""
21696 " int\n"
21697 " guestfs_add_drive_with_if (guestfs_h *g,\n"
21698 "                            const char *filename,\n"
21699 "                            const char *iface);\n"
21700 "\n"
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../src/guestfs-actions.pod:270
21705 msgid ""
21706 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
21707 "QEMU interface emulation to use at run time."
21708 msgstr ""
21709
21710 #. type: =head2
21711 #: ../src/guestfs-actions.pod:284
21712 msgid "guestfs_aug_clear"
21713 msgstr ""
21714
21715 #. type: verbatim
21716 #: ../src/guestfs-actions.pod:286
21717 #, no-wrap
21718 msgid ""
21719 " int\n"
21720 " guestfs_aug_clear (guestfs_h *g,\n"
21721 "                    const char *augpath);\n"
21722 "\n"
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
21727 msgid "(Added in 1.3.4)"
21728 msgstr ""
21729
21730 #. type: =head2
21731 #: ../src/guestfs-actions.pod:297
21732 msgid "guestfs_aug_close"
21733 msgstr ""
21734
21735 #. type: verbatim
21736 #: ../src/guestfs-actions.pod:299
21737 #, no-wrap
21738 msgid ""
21739 " int\n"
21740 " guestfs_aug_close (guestfs_h *g);\n"
21741 "\n"
21742 msgstr ""
21743
21744 #. type: textblock
21745 #: ../src/guestfs-actions.pod:302
21746 msgid ""
21747 "Close the current Augeas handle and free up any resources used by it.  After "
21748 "calling this, you have to call C<guestfs_aug_init> again before you can use "
21749 "any other Augeas functions."
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../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:5873
21754 msgid "(Added in 0.7)"
21755 msgstr ""
21756
21757 #. type: =head2
21758 #: ../src/guestfs-actions.pod:311
21759 msgid "guestfs_aug_defnode"
21760 msgstr ""
21761
21762 #. type: verbatim
21763 #: ../src/guestfs-actions.pod:313
21764 #, no-wrap
21765 msgid ""
21766 " struct guestfs_int_bool *\n"
21767 " guestfs_aug_defnode (guestfs_h *g,\n"
21768 "                      const char *name,\n"
21769 "                      const char *expr,\n"
21770 "                      const char *val);\n"
21771 "\n"
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../src/guestfs-actions.pod:322
21776 msgid ""
21777 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21778 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
21779 "containing that single node."
21780 msgstr ""
21781
21782 #. type: textblock
21783 #: ../src/guestfs-actions.pod:330
21784 msgid ""
21785 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
21786 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
21787 msgstr ""
21788
21789 #. type: =head2
21790 #: ../src/guestfs-actions.pod:336
21791 msgid "guestfs_aug_defvar"
21792 msgstr ""
21793
21794 #. type: verbatim
21795 #: ../src/guestfs-actions.pod:338
21796 #, no-wrap
21797 msgid ""
21798 " int\n"
21799 " guestfs_aug_defvar (guestfs_h *g,\n"
21800 "                     const char *name,\n"
21801 "                     const char *expr);\n"
21802 "\n"
21803 msgstr ""
21804
21805 #. type: =head2
21806 #: ../src/guestfs-actions.pod:354
21807 msgid "guestfs_aug_get"
21808 msgstr ""
21809
21810 #. type: verbatim
21811 #: ../src/guestfs-actions.pod:356
21812 #, no-wrap
21813 msgid ""
21814 " char *\n"
21815 " guestfs_aug_get (guestfs_h *g,\n"
21816 "                  const char *augpath);\n"
21817 "\n"
21818 msgstr ""
21819
21820 #. type: textblock
21821 #: ../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:2007 ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627 ../src/guestfs-actions.pod:2717 ../src/guestfs-actions.pod:2821 ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:3054 ../src/guestfs-actions.pod:3082 ../src/guestfs-actions.pod:3103 ../src/guestfs-actions.pod:3137 ../src/guestfs-actions.pod:3196 ../src/guestfs-actions.pod:3216 ../src/guestfs-actions.pod:3236 ../src/guestfs-actions.pod:3863 ../src/guestfs-actions.pod:4216 ../src/guestfs-actions.pod:4386 ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5601 ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5949 ../src/guestfs-actions.pod:5998 ../src/guestfs-actions.pod:6654 ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:6687 ../src/guestfs-actions.pod:6718 ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7411 ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7603 ../src/guestfs-actions.pod:7913
21822 msgid ""
21823 "This function returns a string, or NULL on error.  I<The caller must free "
21824 "the returned string after use>."
21825 msgstr ""
21826
21827 #. type: =head2
21828 #: ../src/guestfs-actions.pod:368
21829 msgid "guestfs_aug_init"
21830 msgstr ""
21831
21832 #. type: verbatim
21833 #: ../src/guestfs-actions.pod:370
21834 #, no-wrap
21835 msgid ""
21836 " int\n"
21837 " guestfs_aug_init (guestfs_h *g,\n"
21838 "                   const char *root,\n"
21839 "                   int flags);\n"
21840 "\n"
21841 msgstr ""
21842
21843 #. type: textblock
21844 #: ../src/guestfs-actions.pod:379
21845 msgid "You must call this before using any other C<guestfs_aug_*> commands."
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../src/guestfs-actions.pod:404
21850 msgid ""
21851 "This option is only useful when debugging Augeas lenses.  Use of this option "
21852 "may require additional memory for the libguestfs appliance.  You may need to "
21853 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
21854 "C<guestfs_set_memsize>."
21855 msgstr ""
21856
21857 #. type: textblock
21858 #: ../src/guestfs-actions.pod:419
21859 msgid "Do not load the tree in C<guestfs_aug_init>."
21860 msgstr ""
21861
21862 #. type: textblock
21863 #: ../src/guestfs-actions.pod:423
21864 msgid "To close the handle, you can call C<guestfs_aug_close>."
21865 msgstr ""
21866
21867 #. type: =head2
21868 #: ../src/guestfs-actions.pod:431
21869 msgid "guestfs_aug_insert"
21870 msgstr ""
21871
21872 #. type: verbatim
21873 #: ../src/guestfs-actions.pod:433
21874 #, no-wrap
21875 msgid ""
21876 " int\n"
21877 " guestfs_aug_insert (guestfs_h *g,\n"
21878 "                     const char *augpath,\n"
21879 "                     const char *label,\n"
21880 "                     int before);\n"
21881 "\n"
21882 msgstr ""
21883
21884 #. type: =head2
21885 #: ../src/guestfs-actions.pod:451
21886 msgid "guestfs_aug_load"
21887 msgstr ""
21888
21889 #. type: verbatim
21890 #: ../src/guestfs-actions.pod:453
21891 #, no-wrap
21892 msgid ""
21893 " int\n"
21894 " guestfs_aug_load (guestfs_h *g);\n"
21895 "\n"
21896 msgstr ""
21897
21898 #. type: =head2
21899 #: ../src/guestfs-actions.pod:465
21900 msgid "guestfs_aug_ls"
21901 msgstr ""
21902
21903 #. type: verbatim
21904 #: ../src/guestfs-actions.pod:467
21905 #, no-wrap
21906 msgid ""
21907 " char **\n"
21908 " guestfs_aug_ls (guestfs_h *g,\n"
21909 "                 const char *augpath);\n"
21910 "\n"
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../src/guestfs-actions.pod:471
21915 msgid ""
21916 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
21917 "sorting the resulting nodes into alphabetical order."
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../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:2782 ../src/guestfs-actions.pod:3156 ../src/guestfs-actions.pod:3432 ../src/guestfs-actions.pod:3746 ../src/guestfs-actions.pod:3763 ../src/guestfs-actions.pod:3783 ../src/guestfs-actions.pod:3845 ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:4358 ../src/guestfs-actions.pod:5125 ../src/guestfs-actions.pod:5743 ../src/guestfs-actions.pod:5869 ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6795 ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:6996 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7496 ../src/guestfs-actions.pod:7516 ../src/guestfs-actions.pod:7563 ../src/guestfs-actions.pod:7757 ../src/guestfs-actions.pod:7776 ../src/guestfs-actions.pod:7870 ../src/guestfs-actions.pod:7889 ../src/guestfs-actions.pod:7935 ../src/guestfs-actions.pod:7954
21922 msgid ""
21923 "This function returns a NULL-terminated array of strings (like "
21924 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
21925 "strings and the array after use>."
21926 msgstr ""
21927
21928 #. type: textblock
21929 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3541 ../src/guestfs-actions.pod:4199 ../src/guestfs-actions.pod:4249 ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:5129 ../src/guestfs-actions.pod:5684 ../src/guestfs-actions.pod:6081 ../src/guestfs-actions.pod:6095 ../src/guestfs-actions.pod:6107 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7480 ../src/guestfs-actions.pod:7745
21930 msgid "(Added in 0.8)"
21931 msgstr ""
21932
21933 #. type: =head2
21934 #: ../src/guestfs-actions.pod:480
21935 msgid "guestfs_aug_match"
21936 msgstr ""
21937
21938 #. type: verbatim
21939 #: ../src/guestfs-actions.pod:482
21940 #, no-wrap
21941 msgid ""
21942 " char **\n"
21943 " guestfs_aug_match (guestfs_h *g,\n"
21944 "                    const char *augpath);\n"
21945 "\n"
21946 msgstr ""
21947
21948 #. type: =head2
21949 #: ../src/guestfs-actions.pod:496
21950 msgid "guestfs_aug_mv"
21951 msgstr ""
21952
21953 #. type: verbatim
21954 #: ../src/guestfs-actions.pod:498
21955 #, no-wrap
21956 msgid ""
21957 " int\n"
21958 " guestfs_aug_mv (guestfs_h *g,\n"
21959 "                 const char *src,\n"
21960 "                 const char *dest);\n"
21961 "\n"
21962 msgstr ""
21963
21964 #. type: =head2
21965 #: ../src/guestfs-actions.pod:510
21966 msgid "guestfs_aug_rm"
21967 msgstr ""
21968
21969 #. type: verbatim
21970 #: ../src/guestfs-actions.pod:512
21971 #, no-wrap
21972 msgid ""
21973 " int\n"
21974 " guestfs_aug_rm (guestfs_h *g,\n"
21975 "                 const char *augpath);\n"
21976 "\n"
21977 msgstr ""
21978
21979 #. type: =head2
21980 #: ../src/guestfs-actions.pod:524
21981 msgid "guestfs_aug_save"
21982 msgstr ""
21983
21984 #. type: verbatim
21985 #: ../src/guestfs-actions.pod:526
21986 #, no-wrap
21987 msgid ""
21988 " int\n"
21989 " guestfs_aug_save (guestfs_h *g);\n"
21990 "\n"
21991 msgstr ""
21992
21993 #. type: textblock
21994 #: ../src/guestfs-actions.pod:531
21995 msgid ""
21996 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
21997 "are saved."
21998 msgstr ""
21999
22000 #. type: =head2
22001 #: ../src/guestfs-actions.pod:538
22002 msgid "guestfs_aug_set"
22003 msgstr ""
22004
22005 #. type: verbatim
22006 #: ../src/guestfs-actions.pod:540
22007 #, no-wrap
22008 msgid ""
22009 " int\n"
22010 " guestfs_aug_set (guestfs_h *g,\n"
22011 "                  const char *augpath,\n"
22012 "                  const char *val);\n"
22013 "\n"
22014 msgstr ""
22015
22016 #. type: textblock
22017 #: ../src/guestfs-actions.pod:547
22018 msgid ""
22019 "In the Augeas API, it is possible to clear a node by setting the value to "
22020 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
22021 "this call.  Instead you must use the C<guestfs_aug_clear> call."
22022 msgstr ""
22023
22024 #. type: =head2
22025 #: ../src/guestfs-actions.pod:556
22026 msgid "guestfs_available"
22027 msgstr ""
22028
22029 #. type: verbatim
22030 #: ../src/guestfs-actions.pod:558
22031 #, no-wrap
22032 msgid ""
22033 " int\n"
22034 " guestfs_available (guestfs_h *g,\n"
22035 "                    char *const *groups);\n"
22036 "\n"
22037 msgstr ""
22038
22039 #. type: textblock
22040 #: ../src/guestfs-actions.pod:566
22041 msgid ""
22042 "The libguestfs groups, and the functions that those groups correspond to, "
22043 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
22044 "runtime by calling C<guestfs_available_all_groups>."
22045 msgstr ""
22046
22047 #. type: textblock
22048 #: ../src/guestfs-actions.pod:590
22049 msgid "You must call C<guestfs_launch> before calling this function."
22050 msgstr ""
22051
22052 #. type: textblock
22053 #: ../src/guestfs-actions.pod:612
22054 msgid ""
22055 "This call was added in version C<1.0.80>.  In previous versions of "
22056 "libguestfs all you could do would be to speculatively execute a command to "
22057 "find out if the daemon implemented it.  See also C<guestfs_version>."
22058 msgstr ""
22059
22060 #. type: textblock
22061 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
22062 msgid "(Added in 1.0.80)"
22063 msgstr ""
22064
22065 #. type: =head2
22066 #: ../src/guestfs-actions.pod:623
22067 msgid "guestfs_available_all_groups"
22068 msgstr ""
22069
22070 #. type: verbatim
22071 #: ../src/guestfs-actions.pod:625
22072 #, no-wrap
22073 msgid ""
22074 " char **\n"
22075 " guestfs_available_all_groups (guestfs_h *g);\n"
22076 "\n"
22077 msgstr ""
22078
22079 #. type: textblock
22080 #: ../src/guestfs-actions.pod:628
22081 msgid ""
22082 "This command returns a list of all optional groups that this daemon knows "
22083 "about.  Note this returns both supported and unsupported groups.  To find "
22084 "out which ones the daemon can actually support you have to call "
22085 "C<guestfs_available> on each member of the returned list."
22086 msgstr ""
22087
22088 #. type: textblock
22089 #: ../src/guestfs-actions.pod:634
22090 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
22091 msgstr ""
22092
22093 #. type: textblock
22094 #: ../src/guestfs-actions.pod:640
22095 msgid "(Added in 1.3.15)"
22096 msgstr ""
22097
22098 #. type: =head2
22099 #: ../src/guestfs-actions.pod:642
22100 msgid "guestfs_base64_in"
22101 msgstr ""
22102
22103 #. type: verbatim
22104 #: ../src/guestfs-actions.pod:644
22105 #, no-wrap
22106 msgid ""
22107 " int\n"
22108 " guestfs_base64_in (guestfs_h *g,\n"
22109 "                    const char *base64file,\n"
22110 "                    const char *filename);\n"
22111 "\n"
22112 msgstr ""
22113
22114 #. type: textblock
22115 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
22116 msgid "(Added in 1.3.5)"
22117 msgstr ""
22118
22119 #. type: =head2
22120 #: ../src/guestfs-actions.pod:656
22121 msgid "guestfs_base64_out"
22122 msgstr ""
22123
22124 #. type: verbatim
22125 #: ../src/guestfs-actions.pod:658
22126 #, no-wrap
22127 msgid ""
22128 " int\n"
22129 " guestfs_base64_out (guestfs_h *g,\n"
22130 "                     const char *filename,\n"
22131 "                     const char *base64file);\n"
22132 "\n"
22133 msgstr ""
22134
22135 #. type: =head2
22136 #: ../src/guestfs-actions.pod:670
22137 msgid "guestfs_blockdev_flushbufs"
22138 msgstr ""
22139
22140 #. type: verbatim
22141 #: ../src/guestfs-actions.pod:672
22142 #, no-wrap
22143 msgid ""
22144 " int\n"
22145 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22146 "                             const char *device);\n"
22147 "\n"
22148 msgstr ""
22149
22150 #. type: textblock
22151 #: ../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
22152 msgid "(Added in 0.9.3)"
22153 msgstr ""
22154
22155 #. type: =head2
22156 #: ../src/guestfs-actions.pod:685
22157 msgid "guestfs_blockdev_getbsz"
22158 msgstr ""
22159
22160 #. type: verbatim
22161 #: ../src/guestfs-actions.pod:687
22162 #, no-wrap
22163 msgid ""
22164 " int\n"
22165 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22166 "                          const char *device);\n"
22167 "\n"
22168 msgstr ""
22169
22170 #. type: =head2
22171 #: ../src/guestfs-actions.pod:702
22172 msgid "guestfs_blockdev_getro"
22173 msgstr ""
22174
22175 #. type: verbatim
22176 #: ../src/guestfs-actions.pod:704
22177 #, no-wrap
22178 msgid ""
22179 " int\n"
22180 " guestfs_blockdev_getro (guestfs_h *g,\n"
22181 "                         const char *device);\n"
22182 "\n"
22183 msgstr ""
22184
22185 #. type: textblock
22186 #: ../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:3253 ../src/guestfs-actions.pod:3269 ../src/guestfs-actions.pod:3287 ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3478 ../src/guestfs-actions.pod:3492 ../src/guestfs-actions.pod:3508 ../src/guestfs-actions.pod:3523 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3580 ../src/guestfs-actions.pod:3595 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637 ../src/guestfs-actions.pod:5366
22187 msgid "This function returns a C truth value on success or -1 on error."
22188 msgstr ""
22189
22190 #. type: =head2
22191 #: ../src/guestfs-actions.pod:717
22192 msgid "guestfs_blockdev_getsize64"
22193 msgstr ""
22194
22195 #. type: verbatim
22196 #: ../src/guestfs-actions.pod:719
22197 #, no-wrap
22198 msgid ""
22199 " int64_t\n"
22200 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22201 "                             const char *device);\n"
22202 "\n"
22203 msgstr ""
22204
22205 #. type: textblock
22206 #: ../src/guestfs-actions.pod:725
22207 msgid "See also C<guestfs_blockdev_getsz>."
22208 msgstr ""
22209
22210 #. type: =head2
22211 #: ../src/guestfs-actions.pod:733
22212 msgid "guestfs_blockdev_getss"
22213 msgstr ""
22214
22215 #. type: verbatim
22216 #: ../src/guestfs-actions.pod:735
22217 #, no-wrap
22218 msgid ""
22219 " int\n"
22220 " guestfs_blockdev_getss (guestfs_h *g,\n"
22221 "                         const char *device);\n"
22222 "\n"
22223 msgstr ""
22224
22225 #. type: textblock
22226 #: ../src/guestfs-actions.pod:742
22227 msgid ""
22228 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22229 "that)."
22230 msgstr ""
22231
22232 #. type: =head2
22233 #: ../src/guestfs-actions.pod:751
22234 msgid "guestfs_blockdev_getsz"
22235 msgstr ""
22236
22237 #. type: verbatim
22238 #: ../src/guestfs-actions.pod:753
22239 #, no-wrap
22240 msgid ""
22241 " int64_t\n"
22242 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22243 "                         const char *device);\n"
22244 "\n"
22245 msgstr ""
22246
22247 #. type: textblock
22248 #: ../src/guestfs-actions.pod:760
22249 msgid ""
22250 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22251 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22252 msgstr ""
22253
22254 #. type: =head2
22255 #: ../src/guestfs-actions.pod:770
22256 msgid "guestfs_blockdev_rereadpt"
22257 msgstr ""
22258
22259 #. type: verbatim
22260 #: ../src/guestfs-actions.pod:772
22261 #, no-wrap
22262 msgid ""
22263 " int\n"
22264 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22265 "                            const char *device);\n"
22266 "\n"
22267 msgstr ""
22268
22269 #. type: =head2
22270 #: ../src/guestfs-actions.pod:784
22271 msgid "guestfs_blockdev_setbsz"
22272 msgstr ""
22273
22274 #. type: verbatim
22275 #: ../src/guestfs-actions.pod:786
22276 #, no-wrap
22277 msgid ""
22278 " int\n"
22279 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22280 "                          const char *device,\n"
22281 "                          int blocksize);\n"
22282 "\n"
22283 msgstr ""
22284
22285 #. type: =head2
22286 #: ../src/guestfs-actions.pod:802
22287 msgid "guestfs_blockdev_setro"
22288 msgstr ""
22289
22290 #. type: verbatim
22291 #: ../src/guestfs-actions.pod:804
22292 #, no-wrap
22293 msgid ""
22294 " int\n"
22295 " guestfs_blockdev_setro (guestfs_h *g,\n"
22296 "                         const char *device);\n"
22297 "\n"
22298 msgstr ""
22299
22300 #. type: =head2
22301 #: ../src/guestfs-actions.pod:816
22302 msgid "guestfs_blockdev_setrw"
22303 msgstr ""
22304
22305 #. type: verbatim
22306 #: ../src/guestfs-actions.pod:818
22307 #, no-wrap
22308 msgid ""
22309 " int\n"
22310 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22311 "                         const char *device);\n"
22312 "\n"
22313 msgstr ""
22314
22315 #. type: =head2
22316 #: ../src/guestfs-actions.pod:830
22317 msgid "guestfs_btrfs_filesystem_resize"
22318 msgstr ""
22319
22320 #. type: verbatim
22321 #: ../src/guestfs-actions.pod:832
22322 #, no-wrap
22323 msgid ""
22324 " int\n"
22325 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22326 "                                  const char *mountpoint,\n"
22327 "                                  ...);\n"
22328 "\n"
22329 msgstr ""
22330
22331 #. type: verbatim
22332 #: ../src/guestfs-actions.pod:842
22333 #, no-wrap
22334 msgid ""
22335 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22336 "\n"
22337 msgstr ""
22338
22339 #. type: textblock
22340 #: ../src/guestfs-actions.pod:865
22341 msgid "(Added in 1.11.17)"
22342 msgstr ""
22343
22344 #. type: =head2
22345 #: ../src/guestfs-actions.pod:867
22346 msgid "guestfs_btrfs_filesystem_resize_va"
22347 msgstr ""
22348
22349 #. type: verbatim
22350 #: ../src/guestfs-actions.pod:869
22351 #, no-wrap
22352 msgid ""
22353 " int\n"
22354 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22355 "                                     const char *mountpoint,\n"
22356 "                                     va_list args);\n"
22357 "\n"
22358 msgstr ""
22359
22360 #. type: textblock
22361 #: ../src/guestfs-actions.pod:874
22362 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22363 msgstr ""
22364
22365 #. type: =head2
22366 #: ../src/guestfs-actions.pod:878
22367 msgid "guestfs_btrfs_filesystem_resize_argv"
22368 msgstr ""
22369
22370 #. type: verbatim
22371 #: ../src/guestfs-actions.pod:880
22372 #, no-wrap
22373 msgid ""
22374 " int\n"
22375 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22376 "                                       const char *mountpoint,\n"
22377 "                                       const struct "
22378 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22379 "\n"
22380 msgstr ""
22381
22382 #. type: textblock
22383 #: ../src/guestfs-actions.pod:885
22384 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22385 msgstr ""
22386
22387 #. type: =head2
22388 #: ../src/guestfs-actions.pod:889
22389 msgid "guestfs_case_sensitive_path"
22390 msgstr ""
22391
22392 #. type: verbatim
22393 #: ../src/guestfs-actions.pod:891
22394 #, no-wrap
22395 msgid ""
22396 " char *\n"
22397 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22398 "                              const char *path);\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../src/guestfs-actions.pod:917
22404 msgid ""
22405 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22406 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22407 "how the directories were originally created under Windows)."
22408 msgstr ""
22409
22410 #. type: textblock
22411 #: ../src/guestfs-actions.pod:925
22412 msgid "See also C<guestfs_realpath>."
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7414
22417 msgid "(Added in 1.0.75)"
22418 msgstr ""
22419
22420 #. type: =head2
22421 #: ../src/guestfs-actions.pod:932
22422 msgid "guestfs_cat"
22423 msgstr ""
22424
22425 #. type: verbatim
22426 #: ../src/guestfs-actions.pod:934
22427 #, no-wrap
22428 msgid ""
22429 " char *\n"
22430 " guestfs_cat (guestfs_h *g,\n"
22431 "              const char *path);\n"
22432 "\n"
22433 msgstr ""
22434
22435 #. type: textblock
22436 #: ../src/guestfs-actions.pod:940
22437 msgid ""
22438 "Note that this function cannot correctly handle binary files (specifically, "
22439 "files containing C<\\0> character which is treated as end of string).  For "
22440 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22441 "functions which have a more complex interface."
22442 msgstr ""
22443
22444 #. type: textblock
22445 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3767 ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:4376 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:7567 ../src/guestfs-actions.pod:7581
22446 msgid "(Added in 0.4)"
22447 msgstr ""
22448
22449 #. type: =head2
22450 #: ../src/guestfs-actions.pod:953
22451 msgid "guestfs_checksum"
22452 msgstr ""
22453
22454 #. type: verbatim
22455 #: ../src/guestfs-actions.pod:955
22456 #, no-wrap
22457 msgid ""
22458 " char *\n"
22459 " guestfs_checksum (guestfs_h *g,\n"
22460 "                   const char *csumtype,\n"
22461 "                   const char *path);\n"
22462 "\n"
22463 msgstr ""
22464
22465 #. type: textblock
22466 #: ../src/guestfs-actions.pod:1001
22467 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22468 msgstr ""
22469
22470 #. type: textblock
22471 #: ../src/guestfs-actions.pod:1003
22472 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3582 ../src/guestfs-actions.pod:7270
22477 msgid "(Added in 1.0.2)"
22478 msgstr ""
22479
22480 #. type: =head2
22481 #: ../src/guestfs-actions.pod:1010
22482 msgid "guestfs_checksum_device"
22483 msgstr ""
22484
22485 #. type: verbatim
22486 #: ../src/guestfs-actions.pod:1012
22487 #, no-wrap
22488 msgid ""
22489 " char *\n"
22490 " guestfs_checksum_device (guestfs_h *g,\n"
22491 "                          const char *csumtype,\n"
22492 "                          const char *device);\n"
22493 "\n"
22494 msgstr ""
22495
22496 #. type: textblock
22497 #: ../src/guestfs-actions.pod:1017
22498 msgid ""
22499 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22500 "device named C<device>.  For the types of checksums supported see the "
22501 "C<guestfs_checksum> command."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5368 ../src/guestfs-actions.pod:5386 ../src/guestfs-actions.pod:5568 ../src/guestfs-actions.pod:7179 ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7593
22506 msgid "(Added in 1.3.2)"
22507 msgstr ""
22508
22509 #. type: =head2
22510 #: ../src/guestfs-actions.pod:1026
22511 msgid "guestfs_checksums_out"
22512 msgstr ""
22513
22514 #. type: verbatim
22515 #: ../src/guestfs-actions.pod:1028
22516 #, no-wrap
22517 msgid ""
22518 " int\n"
22519 " guestfs_checksums_out (guestfs_h *g,\n"
22520 "                        const char *csumtype,\n"
22521 "                        const char *directory,\n"
22522 "                        const char *sumsfile);\n"
22523 "\n"
22524 msgstr ""
22525
22526 #. type: textblock
22527 #: ../src/guestfs-actions.pod:1048
22528 msgid "(Added in 1.3.7)"
22529 msgstr ""
22530
22531 #. type: =head2
22532 #: ../src/guestfs-actions.pod:1050
22533 msgid "guestfs_chmod"
22534 msgstr ""
22535
22536 #. type: verbatim
22537 #: ../src/guestfs-actions.pod:1052
22538 #, no-wrap
22539 msgid ""
22540 " int\n"
22541 " guestfs_chmod (guestfs_h *g,\n"
22542 "                int mode,\n"
22543 "                const char *path);\n"
22544 "\n"
22545 msgstr ""
22546
22547 #. type: =head2
22548 #: ../src/guestfs-actions.pod:1070
22549 msgid "guestfs_chown"
22550 msgstr ""
22551
22552 #. type: verbatim
22553 #: ../src/guestfs-actions.pod:1072
22554 #, no-wrap
22555 msgid ""
22556 " int\n"
22557 " guestfs_chown (guestfs_h *g,\n"
22558 "                int owner,\n"
22559 "                int group,\n"
22560 "                const char *path);\n"
22561 "\n"
22562 msgstr ""
22563
22564 #. type: =head2
22565 #: ../src/guestfs-actions.pod:1088
22566 msgid "guestfs_command"
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../src/guestfs-actions.pod:1090
22571 #, no-wrap
22572 msgid ""
22573 " char *\n"
22574 " guestfs_command (guestfs_h *g,\n"
22575 "                  char *const *arguments);\n"
22576 "\n"
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../src/guestfs-actions.pod:1099
22581 msgid ""
22582 "The single parameter is an argv-style list of arguments.  The first element "
22583 "is the name of the program to run.  Subsequent elements are parameters.  The "
22584 "list must be non-empty (ie. must contain a program name).  Note that the "
22585 "command runs directly, and is I<not> invoked via the shell (see "
22586 "C<guestfs_sh>)."
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1615
22591 msgid "(Added in 0.9.1)"
22592 msgstr ""
22593
22594 #. type: =head2
22595 #: ../src/guestfs-actions.pod:1132
22596 msgid "guestfs_command_lines"
22597 msgstr ""
22598
22599 #. type: verbatim
22600 #: ../src/guestfs-actions.pod:1134
22601 #, no-wrap
22602 msgid ""
22603 " char **\n"
22604 " guestfs_command_lines (guestfs_h *g,\n"
22605 "                        char *const *arguments);\n"
22606 "\n"
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../src/guestfs-actions.pod:1138
22611 msgid ""
22612 "This is the same as C<guestfs_command>, but splits the result into a list of "
22613 "lines."
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../src/guestfs-actions.pod:1141
22618 msgid "See also: C<guestfs_sh_lines>"
22619 msgstr ""
22620
22621 #. type: =head2
22622 #: ../src/guestfs-actions.pod:1152
22623 msgid "guestfs_config"
22624 msgstr ""
22625
22626 #. type: verbatim
22627 #: ../src/guestfs-actions.pod:1154
22628 #, no-wrap
22629 msgid ""
22630 " int\n"
22631 " guestfs_config (guestfs_h *g,\n"
22632 "                 const char *qemuparam,\n"
22633 "                 const char *qemuvalue);\n"
22634 "\n"
22635 msgstr ""
22636
22637 #. type: =head2
22638 #: ../src/guestfs-actions.pod:1172
22639 msgid "guestfs_copy_size"
22640 msgstr ""
22641
22642 #. type: verbatim
22643 #: ../src/guestfs-actions.pod:1174
22644 #, no-wrap
22645 msgid ""
22646 " int\n"
22647 " guestfs_copy_size (guestfs_h *g,\n"
22648 "                    const char *src,\n"
22649 "                    const char *dest,\n"
22650 "                    int64_t size);\n"
22651 "\n"
22652 msgstr ""
22653
22654 #. type: textblock
22655 #: ../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:3665 ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7299 ../src/guestfs-actions.pod:7806 ../src/guestfs-actions.pod:7829
22656 msgid ""
22657 "This long-running command can generate progress notification messages so "
22658 "that the caller can display a progress bar or indicator.  To receive these "
22659 "messages, the caller must register a progress event callback.  See "
22660 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
22661 msgstr ""
22662
22663 #. type: textblock
22664 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7520 ../src/guestfs-actions.pod:7606
22665 msgid "(Added in 1.0.87)"
22666 msgstr ""
22667
22668 #. type: =head2
22669 #: ../src/guestfs-actions.pod:1195
22670 msgid "guestfs_cp"
22671 msgstr ""
22672
22673 #. type: verbatim
22674 #: ../src/guestfs-actions.pod:1197
22675 #, no-wrap
22676 msgid ""
22677 " int\n"
22678 " guestfs_cp (guestfs_h *g,\n"
22679 "             const char *src,\n"
22680 "             const char *dest);\n"
22681 "\n"
22682 msgstr ""
22683
22684 #. type: textblock
22685 #: ../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:5143 ../src/guestfs-actions.pod:5618
22686 msgid "(Added in 1.0.18)"
22687 msgstr ""
22688
22689 #. type: =head2
22690 #: ../src/guestfs-actions.pod:1209
22691 msgid "guestfs_cp_a"
22692 msgstr ""
22693
22694 #. type: verbatim
22695 #: ../src/guestfs-actions.pod:1211
22696 #, no-wrap
22697 msgid ""
22698 " int\n"
22699 " guestfs_cp_a (guestfs_h *g,\n"
22700 "               const char *src,\n"
22701 "               const char *dest);\n"
22702 "\n"
22703 msgstr ""
22704
22705 #. type: =head2
22706 #: ../src/guestfs-actions.pod:1223
22707 msgid "guestfs_dd"
22708 msgstr ""
22709
22710 #. type: verbatim
22711 #: ../src/guestfs-actions.pod:1225
22712 #, no-wrap
22713 msgid ""
22714 " int\n"
22715 " guestfs_dd (guestfs_h *g,\n"
22716 "             const char *src,\n"
22717 "             const char *dest);\n"
22718 "\n"
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../src/guestfs-actions.pod:1235
22723 msgid ""
22724 "If the destination is a device, it must be as large or larger than the "
22725 "source file or device, otherwise the copy will fail.  This command cannot do "
22726 "partial copies (see C<guestfs_copy_size>)."
22727 msgstr ""
22728
22729 #. type: =head2
22730 #: ../src/guestfs-actions.pod:1243
22731 msgid "guestfs_df"
22732 msgstr ""
22733
22734 #. type: verbatim
22735 #: ../src/guestfs-actions.pod:1245
22736 #, no-wrap
22737 msgid ""
22738 " char *\n"
22739 " guestfs_df (guestfs_h *g);\n"
22740 "\n"
22741 msgstr ""
22742
22743 #. type: textblock
22744 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
22745 msgid ""
22746 "This command is mostly useful for interactive sessions.  It is I<not> "
22747 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
22748 "from programs."
22749 msgstr ""
22750
22751 #. type: textblock
22752 #: ../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:4499 ../src/guestfs-actions.pod:5043 ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7027 ../src/guestfs-actions.pod:7646 ../src/guestfs-actions.pod:7659 ../src/guestfs-actions.pod:7672
22753 msgid "(Added in 1.0.54)"
22754 msgstr ""
22755
22756 #. type: =head2
22757 #: ../src/guestfs-actions.pod:1259
22758 msgid "guestfs_df_h"
22759 msgstr ""
22760
22761 #. type: verbatim
22762 #: ../src/guestfs-actions.pod:1261
22763 #, no-wrap
22764 msgid ""
22765 " char *\n"
22766 " guestfs_df_h (guestfs_h *g);\n"
22767 "\n"
22768 msgstr ""
22769
22770 #. type: =head2
22771 #: ../src/guestfs-actions.pod:1276
22772 msgid "guestfs_dmesg"
22773 msgstr ""
22774
22775 #. type: verbatim
22776 #: ../src/guestfs-actions.pod:1278
22777 #, no-wrap
22778 msgid ""
22779 " char *\n"
22780 " guestfs_dmesg (guestfs_h *g);\n"
22781 "\n"
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../src/guestfs-actions.pod:1285
22786 msgid ""
22787 "Another way to get the same information is to enable verbose messages with "
22788 "C<guestfs_set_verbose> or by setting the environment variable "
22789 "C<LIBGUESTFS_DEBUG=1> before running the program."
22790 msgstr ""
22791
22792 #. type: =head2
22793 #: ../src/guestfs-actions.pod:1295
22794 msgid "guestfs_download"
22795 msgstr ""
22796
22797 #. type: verbatim
22798 #: ../src/guestfs-actions.pod:1297
22799 #, no-wrap
22800 msgid ""
22801 " int\n"
22802 " guestfs_download (guestfs_h *g,\n"
22803 "                   const char *remotefilename,\n"
22804 "                   const char *filename);\n"
22805 "\n"
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../src/guestfs-actions.pod:1307
22810 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
22811 msgstr ""
22812
22813 #. type: =head2
22814 #: ../src/guestfs-actions.pod:1318
22815 msgid "guestfs_download_offset"
22816 msgstr ""
22817
22818 #. type: verbatim
22819 #: ../src/guestfs-actions.pod:1320
22820 #, no-wrap
22821 msgid ""
22822 " int\n"
22823 " guestfs_download_offset (guestfs_h *g,\n"
22824 "                          const char *remotefilename,\n"
22825 "                          const char *filename,\n"
22826 "                          int64_t offset,\n"
22827 "                          int64_t size);\n"
22828 "\n"
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../src/guestfs-actions.pod:1333
22833 msgid ""
22834 "Note that there is no limit on the amount of data that can be downloaded "
22835 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
22836 "full amount unless an error occurs."
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../src/guestfs-actions.pod:1338
22841 msgid "See also C<guestfs_download>, C<guestfs_pread>."
22842 msgstr ""
22843
22844 #. type: textblock
22845 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7304
22846 msgid "(Added in 1.5.17)"
22847 msgstr ""
22848
22849 #. type: =head2
22850 #: ../src/guestfs-actions.pod:1349
22851 msgid "guestfs_drop_caches"
22852 msgstr ""
22853
22854 #. type: verbatim
22855 #: ../src/guestfs-actions.pod:1351
22856 #, no-wrap
22857 msgid ""
22858 " int\n"
22859 " guestfs_drop_caches (guestfs_h *g,\n"
22860 "                      int whattodrop);\n"
22861 "\n"
22862 msgstr ""
22863
22864 #. type: =head2
22865 #: ../src/guestfs-actions.pod:1369
22866 msgid "guestfs_du"
22867 msgstr ""
22868
22869 #. type: verbatim
22870 #: ../src/guestfs-actions.pod:1371
22871 #, no-wrap
22872 msgid ""
22873 " int64_t\n"
22874 " guestfs_du (guestfs_h *g,\n"
22875 "             const char *path);\n"
22876 "\n"
22877 msgstr ""
22878
22879 #. type: =head2
22880 #: ../src/guestfs-actions.pod:1394
22881 msgid "guestfs_e2fsck_f"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../src/guestfs-actions.pod:1396
22886 #, no-wrap
22887 msgid ""
22888 " int\n"
22889 " guestfs_e2fsck_f (guestfs_h *g,\n"
22890 "                   const char *device);\n"
22891 "\n"
22892 msgstr ""
22893
22894 #. type: textblock
22895 #: ../src/guestfs-actions.pod:1404
22896 msgid ""
22897 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
22898 "Normally you should use C<guestfs_fsck>."
22899 msgstr ""
22900
22901 #. type: textblock
22902 #: ../src/guestfs-actions.pod:1409
22903 msgid "(Added in 1.0.29)"
22904 msgstr ""
22905
22906 #. type: =head2
22907 #: ../src/guestfs-actions.pod:1411
22908 msgid "guestfs_echo_daemon"
22909 msgstr ""
22910
22911 #. type: verbatim
22912 #: ../src/guestfs-actions.pod:1413
22913 #, no-wrap
22914 msgid ""
22915 " char *\n"
22916 " guestfs_echo_daemon (guestfs_h *g,\n"
22917 "                      char *const *words);\n"
22918 "\n"
22919 msgstr ""
22920
22921 #. type: textblock
22922 #: ../src/guestfs-actions.pod:1422
22923 msgid "See also C<guestfs_ping_daemon>."
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:6475
22928 msgid "(Added in 1.0.69)"
22929 msgstr ""
22930
22931 #. type: =head2
22932 #: ../src/guestfs-actions.pod:1429
22933 msgid "guestfs_egrep"
22934 msgstr ""
22935
22936 #. type: verbatim
22937 #: ../src/guestfs-actions.pod:1431
22938 #, no-wrap
22939 msgid ""
22940 " char **\n"
22941 " guestfs_egrep (guestfs_h *g,\n"
22942 "                const char *regex,\n"
22943 "                const char *path);\n"
22944 "\n"
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../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:3879 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3920 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5952 ../src/guestfs-actions.pod:6001 ../src/guestfs-actions.pod:6871 ../src/guestfs-actions.pod:6883 ../src/guestfs-actions.pod:6896 ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6931 ../src/guestfs-actions.pod:6944 ../src/guestfs-actions.pod:6957 ../src/guestfs-actions.pod:6970 ../src/guestfs-actions.pod:7764 ../src/guestfs-actions.pod:7783 ../src/guestfs-actions.pod:7877 ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7942 ../src/guestfs-actions.pod:7961
22949 msgid "(Added in 1.0.66)"
22950 msgstr ""
22951
22952 #. type: =head2
22953 #: ../src/guestfs-actions.pod:1448
22954 msgid "guestfs_egrepi"
22955 msgstr ""
22956
22957 #. type: verbatim
22958 #: ../src/guestfs-actions.pod:1450
22959 #, no-wrap
22960 msgid ""
22961 " char **\n"
22962 " guestfs_egrepi (guestfs_h *g,\n"
22963 "                 const char *regex,\n"
22964 "                 const char *path);\n"
22965 "\n"
22966 msgstr ""
22967
22968 #. type: =head2
22969 #: ../src/guestfs-actions.pod:1467
22970 msgid "guestfs_equal"
22971 msgstr ""
22972
22973 #. type: verbatim
22974 #: ../src/guestfs-actions.pod:1469
22975 #, no-wrap
22976 msgid ""
22977 " int\n"
22978 " guestfs_equal (guestfs_h *g,\n"
22979 "                const char *file1,\n"
22980 "                const char *file2);\n"
22981 "\n"
22982 msgstr ""
22983
22984 #. type: =head2
22985 #: ../src/guestfs-actions.pod:1483
22986 msgid "guestfs_exists"
22987 msgstr ""
22988
22989 #. type: verbatim
22990 #: ../src/guestfs-actions.pod:1485
22991 #, no-wrap
22992 msgid ""
22993 " int\n"
22994 " guestfs_exists (guestfs_h *g,\n"
22995 "                 const char *path);\n"
22996 "\n"
22997 msgstr ""
22998
22999 #. type: textblock
23000 #: ../src/guestfs-actions.pod:1492
23001 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
23002 msgstr ""
23003
23004 #. type: =head2
23005 #: ../src/guestfs-actions.pod:1498
23006 msgid "guestfs_fallocate"
23007 msgstr ""
23008
23009 #. type: verbatim
23010 #: ../src/guestfs-actions.pod:1500
23011 #, no-wrap
23012 msgid ""
23013 " int\n"
23014 " guestfs_fallocate (guestfs_h *g,\n"
23015 "                    const char *path,\n"
23016 "                    int len);\n"
23017 "\n"
23018 msgstr ""
23019
23020 #. type: textblock
23021 #: ../src/guestfs-actions.pod:1515
23022 msgid ""
23023 "This function is deprecated.  In new code, use the L</guestfs_fallocate64> "
23024 "call instead."
23025 msgstr ""
23026
23027 #. type: =head2
23028 #: ../src/guestfs-actions.pod:1524
23029 msgid "guestfs_fallocate64"
23030 msgstr ""
23031
23032 #. type: verbatim
23033 #: ../src/guestfs-actions.pod:1526
23034 #, no-wrap
23035 msgid ""
23036 " int\n"
23037 " guestfs_fallocate64 (guestfs_h *g,\n"
23038 "                      const char *path,\n"
23039 "                      int64_t len);\n"
23040 "\n"
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../src/guestfs-actions.pod:1535
23045 msgid ""
23046 "Note that this call allocates disk blocks for the file.  To create a sparse "
23047 "file use C<guestfs_truncate_size> instead."
23048 msgstr ""
23049
23050 #. type: textblock
23051 #: ../src/guestfs-actions.pod:1538
23052 msgid ""
23053 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
23054 "oversight it only allowed 30 bit lengths to be specified, effectively "
23055 "limiting the maximum size of files created through that call to 1GB."
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../src/guestfs-actions.pod:1549
23060 msgid "(Added in 1.3.17)"
23061 msgstr ""
23062
23063 #. type: =head2
23064 #: ../src/guestfs-actions.pod:1551
23065 msgid "guestfs_fgrep"
23066 msgstr ""
23067
23068 #. type: verbatim
23069 #: ../src/guestfs-actions.pod:1553
23070 #, no-wrap
23071 msgid ""
23072 " char **\n"
23073 " guestfs_fgrep (guestfs_h *g,\n"
23074 "                const char *pattern,\n"
23075 "                const char *path);\n"
23076 "\n"
23077 msgstr ""
23078
23079 #. type: =head2
23080 #: ../src/guestfs-actions.pod:1570
23081 msgid "guestfs_fgrepi"
23082 msgstr ""
23083
23084 #. type: verbatim
23085 #: ../src/guestfs-actions.pod:1572
23086 #, no-wrap
23087 msgid ""
23088 " char **\n"
23089 " guestfs_fgrepi (guestfs_h *g,\n"
23090 "                 const char *pattern,\n"
23091 "                 const char *path);\n"
23092 "\n"
23093 msgstr ""
23094
23095 #. type: =head2
23096 #: ../src/guestfs-actions.pod:1589
23097 msgid "guestfs_file"
23098 msgstr ""
23099
23100 #. type: verbatim
23101 #: ../src/guestfs-actions.pod:1591
23102 #, no-wrap
23103 msgid ""
23104 " char *\n"
23105 " guestfs_file (guestfs_h *g,\n"
23106 "               const char *path);\n"
23107 "\n"
23108 msgstr ""
23109
23110 #. type: textblock
23111 #: ../src/guestfs-actions.pod:1609
23112 msgid ""
23113 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
23114 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
23115 msgstr ""
23116
23117 #. type: =head2
23118 #: ../src/guestfs-actions.pod:1617
23119 msgid "guestfs_file_architecture"
23120 msgstr ""
23121
23122 #. type: verbatim
23123 #: ../src/guestfs-actions.pod:1619
23124 #, no-wrap
23125 msgid ""
23126 " char *\n"
23127 " guestfs_file_architecture (guestfs_h *g,\n"
23128 "                            const char *filename);\n"
23129 "\n"
23130 msgstr ""
23131
23132 #. type: textblock
23133 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:2973 ../src/guestfs-actions.pod:2991 ../src/guestfs-actions.pod:3031 ../src/guestfs-actions.pod:3106 ../src/guestfs-actions.pod:3199 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3568
23134 msgid "(Added in 1.5.3)"
23135 msgstr ""
23136
23137 #. type: =head2
23138 #: ../src/guestfs-actions.pod:1729
23139 msgid "guestfs_filesize"
23140 msgstr ""
23141
23142 #. type: verbatim
23143 #: ../src/guestfs-actions.pod:1731
23144 #, no-wrap
23145 msgid ""
23146 " int64_t\n"
23147 " guestfs_filesize (guestfs_h *g,\n"
23148 "                   const char *file);\n"
23149 "\n"
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../src/guestfs-actions.pod:1737
23154 msgid ""
23155 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23156 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23157 "devices, use C<guestfs_blockdev_getsize64>."
23158 msgstr ""
23159
23160 #. type: textblock
23161 #: ../src/guestfs-actions.pod:1743
23162 msgid "(Added in 1.0.82)"
23163 msgstr ""
23164
23165 #. type: =head2
23166 #: ../src/guestfs-actions.pod:1745
23167 msgid "guestfs_fill"
23168 msgstr ""
23169
23170 #. type: verbatim
23171 #: ../src/guestfs-actions.pod:1747
23172 #, no-wrap
23173 msgid ""
23174 " int\n"
23175 " guestfs_fill (guestfs_h *g,\n"
23176 "               int c,\n"
23177 "               int len,\n"
23178 "               const char *path);\n"
23179 "\n"
23180 msgstr ""
23181
23182 #. type: textblock
23183 #: ../src/guestfs-actions.pod:1757
23184 msgid ""
23185 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23186 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23187 "bytes use C<guestfs_fill_pattern>."
23188 msgstr ""
23189
23190 #. type: textblock
23191 #: ../src/guestfs-actions.pod:1769
23192 msgid "(Added in 1.0.79)"
23193 msgstr ""
23194
23195 #. type: =head2
23196 #: ../src/guestfs-actions.pod:1771
23197 msgid "guestfs_fill_pattern"
23198 msgstr ""
23199
23200 #. type: verbatim
23201 #: ../src/guestfs-actions.pod:1773
23202 #, no-wrap
23203 msgid ""
23204 " int\n"
23205 " guestfs_fill_pattern (guestfs_h *g,\n"
23206 "                       const char *pattern,\n"
23207 "                       int len,\n"
23208 "                       const char *path);\n"
23209 "\n"
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../src/guestfs-actions.pod:1779
23214 msgid ""
23215 "This function is like C<guestfs_fill> except that it creates a new file of "
23216 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23217 "pattern is truncated if necessary to ensure the length of the file is "
23218 "exactly C<len> bytes."
23219 msgstr ""
23220
23221 #. type: textblock
23222 #: ../src/guestfs-actions.pod:1791
23223 msgid "(Added in 1.3.12)"
23224 msgstr ""
23225
23226 #. type: =head2
23227 #: ../src/guestfs-actions.pod:1793
23228 msgid "guestfs_find"
23229 msgstr ""
23230
23231 #. type: verbatim
23232 #: ../src/guestfs-actions.pod:1795
23233 #, no-wrap
23234 msgid ""
23235 " char **\n"
23236 " guestfs_find (guestfs_h *g,\n"
23237 "               const char *directory);\n"
23238 "\n"
23239 msgstr ""
23240
23241 #. type: textblock
23242 #: ../src/guestfs-actions.pod:1811
23243 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23244 msgstr ""
23245
23246 #. type: textblock
23247 #: ../src/guestfs-actions.pod:1824
23248 msgid "See also C<guestfs_find0>."
23249 msgstr ""
23250
23251 #. type: textblock
23252 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4326 ../src/guestfs-actions.pod:6036
23253 msgid "(Added in 1.0.27)"
23254 msgstr ""
23255
23256 #. type: =head2
23257 #: ../src/guestfs-actions.pod:1835
23258 msgid "guestfs_find0"
23259 msgstr ""
23260
23261 #. type: verbatim
23262 #: ../src/guestfs-actions.pod:1837
23263 #, no-wrap
23264 msgid ""
23265 " int\n"
23266 " guestfs_find0 (guestfs_h *g,\n"
23267 "                const char *directory,\n"
23268 "                const char *files);\n"
23269 "\n"
23270 msgstr ""
23271
23272 #. type: textblock
23273 #: ../src/guestfs-actions.pod:1846
23274 msgid ""
23275 "This command works the same way as C<guestfs_find> with the following "
23276 "exceptions:"
23277 msgstr ""
23278
23279 #. type: textblock
23280 #: ../src/guestfs-actions.pod:1873
23281 msgid "(Added in 1.0.74)"
23282 msgstr ""
23283
23284 #. type: =head2
23285 #: ../src/guestfs-actions.pod:1875
23286 msgid "guestfs_findfs_label"
23287 msgstr ""
23288
23289 #. type: verbatim
23290 #: ../src/guestfs-actions.pod:1877
23291 #, no-wrap
23292 msgid ""
23293 " char *\n"
23294 " guestfs_findfs_label (guestfs_h *g,\n"
23295 "                       const char *label);\n"
23296 "\n"
23297 msgstr ""
23298
23299 #. type: textblock
23300 #: ../src/guestfs-actions.pod:1885
23301 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23302 msgstr ""
23303
23304 #. type: =head2
23305 #: ../src/guestfs-actions.pod:1892
23306 msgid "guestfs_findfs_uuid"
23307 msgstr ""
23308
23309 #. type: verbatim
23310 #: ../src/guestfs-actions.pod:1894
23311 #, no-wrap
23312 msgid ""
23313 " char *\n"
23314 " guestfs_findfs_uuid (guestfs_h *g,\n"
23315 "                      const char *uuid);\n"
23316 "\n"
23317 msgstr ""
23318
23319 #. type: textblock
23320 #: ../src/guestfs-actions.pod:1902
23321 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23322 msgstr ""
23323
23324 #. type: =head2
23325 #: ../src/guestfs-actions.pod:1909
23326 msgid "guestfs_fsck"
23327 msgstr ""
23328
23329 #. type: verbatim
23330 #: ../src/guestfs-actions.pod:1911
23331 #, no-wrap
23332 msgid ""
23333 " int\n"
23334 " guestfs_fsck (guestfs_h *g,\n"
23335 "               const char *fstype,\n"
23336 "               const char *device);\n"
23337 "\n"
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7811
23342 msgid "(Added in 1.0.16)"
23343 msgstr ""
23344
23345 #. type: =head2
23346 #: ../src/guestfs-actions.pod:1948
23347 msgid "guestfs_get_append"
23348 msgstr ""
23349
23350 #. type: verbatim
23351 #: ../src/guestfs-actions.pod:1950
23352 #, no-wrap
23353 msgid ""
23354 " const char *\n"
23355 " guestfs_get_append (guestfs_h *g);\n"
23356 "\n"
23357 msgstr ""
23358
23359 #. type: textblock
23360 #: ../src/guestfs-actions.pod:1958
23361 msgid ""
23362 "This function returns a string which may be NULL.  There is no way to return "
23363 "an error from this function.  The string is owned by the guest handle and "
23364 "must I<not> be freed."
23365 msgstr ""
23366
23367 #. type: textblock
23368 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5714 ../src/guestfs-actions.pod:6196 ../src/guestfs-actions.pod:6638 ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6673 ../src/guestfs-actions.pod:6697 ../src/guestfs-actions.pod:7451 ../src/guestfs-actions.pod:7466 ../src/guestfs-actions.pod:7858
23369 msgid "(Added in 1.0.26)"
23370 msgstr ""
23371
23372 #. type: =head2
23373 #: ../src/guestfs-actions.pod:1964
23374 msgid "guestfs_get_attach_method"
23375 msgstr ""
23376
23377 #. type: verbatim
23378 #: ../src/guestfs-actions.pod:1966
23379 #, no-wrap
23380 msgid ""
23381 " char *\n"
23382 " guestfs_get_attach_method (guestfs_h *g);\n"
23383 "\n"
23384 msgstr ""
23385
23386 #. type: textblock
23387 #: ../src/guestfs-actions.pod:1969
23388 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23389 msgstr ""
23390
23391 #. type: textblock
23392 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6226
23393 msgid "(Added in 1.9.8)"
23394 msgstr ""
23395
23396 #. type: =head2
23397 #: ../src/guestfs-actions.pod:1976
23398 msgid "guestfs_get_autosync"
23399 msgstr ""
23400
23401 #. type: verbatim
23402 #: ../src/guestfs-actions.pod:1978
23403 #, no-wrap
23404 msgid ""
23405 " int\n"
23406 " guestfs_get_autosync (guestfs_h *g);\n"
23407 "\n"
23408 msgstr ""
23409
23410 #. type: =head2
23411 #: ../src/guestfs-actions.pod:1987
23412 msgid "guestfs_get_direct"
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../src/guestfs-actions.pod:1989
23417 #, no-wrap
23418 msgid ""
23419 " int\n"
23420 " guestfs_get_direct (guestfs_h *g);\n"
23421 "\n"
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6267
23426 msgid "(Added in 1.0.72)"
23427 msgstr ""
23428
23429 #. type: =head2
23430 #: ../src/guestfs-actions.pod:1998
23431 msgid "guestfs_get_e2label"
23432 msgstr ""
23433
23434 #. type: verbatim
23435 #: ../src/guestfs-actions.pod:2000
23436 #, no-wrap
23437 msgid ""
23438 " char *\n"
23439 " guestfs_get_e2label (guestfs_h *g,\n"
23440 "                      const char *device);\n"
23441 "\n"
23442 msgstr ""
23443
23444 #. type: textblock
23445 #: ../src/guestfs-actions.pod:2010
23446 msgid ""
23447 "This function is deprecated.  In new code, use the L</guestfs_vfs_label> "
23448 "call instead."
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
23453 msgid "(Added in 1.0.15)"
23454 msgstr ""
23455
23456 #. type: =head2
23457 #: ../src/guestfs-actions.pod:2019
23458 msgid "guestfs_get_e2uuid"
23459 msgstr ""
23460
23461 #. type: verbatim
23462 #: ../src/guestfs-actions.pod:2021
23463 #, no-wrap
23464 msgid ""
23465 " char *\n"
23466 " guestfs_get_e2uuid (guestfs_h *g,\n"
23467 "                     const char *device);\n"
23468 "\n"
23469 msgstr ""
23470
23471 #. type: textblock
23472 #: ../src/guestfs-actions.pod:2031
23473 msgid ""
23474 "This function is deprecated.  In new code, use the L</guestfs_vfs_uuid> call "
23475 "instead."
23476 msgstr ""
23477
23478 #. type: =head2
23479 #: ../src/guestfs-actions.pod:2040
23480 msgid "guestfs_get_memsize"
23481 msgstr ""
23482
23483 #. type: verbatim
23484 #: ../src/guestfs-actions.pod:2042
23485 #, no-wrap
23486 msgid ""
23487 " int\n"
23488 " guestfs_get_memsize (guestfs_h *g);\n"
23489 "\n"
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../src/guestfs-actions.pod:2048
23494 msgid ""
23495 "If C<guestfs_set_memsize> was not called on this handle, and if "
23496 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23497 "value for memsize."
23498 msgstr ""
23499
23500 #. type: textblock
23501 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4826 ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4876 ../src/guestfs-actions.pod:4893 ../src/guestfs-actions.pod:4906 ../src/guestfs-actions.pod:5939 ../src/guestfs-actions.pod:6325 ../src/guestfs-actions.pod:6605 ../src/guestfs-actions.pod:7220
23502 msgid "(Added in 1.0.55)"
23503 msgstr ""
23504
23505 #. type: =head2
23506 #: ../src/guestfs-actions.pod:2059
23507 msgid "guestfs_get_network"
23508 msgstr ""
23509
23510 #. type: verbatim
23511 #: ../src/guestfs-actions.pod:2061
23512 #, no-wrap
23513 msgid ""
23514 " int\n"
23515 " guestfs_get_network (guestfs_h *g);\n"
23516 "\n"
23517 msgstr ""
23518
23519 #. type: textblock
23520 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6344
23521 msgid "(Added in 1.5.4)"
23522 msgstr ""
23523
23524 #. type: =head2
23525 #: ../src/guestfs-actions.pod:2070
23526 msgid "guestfs_get_path"
23527 msgstr ""
23528
23529 #. type: verbatim
23530 #: ../src/guestfs-actions.pod:2072
23531 #, no-wrap
23532 msgid ""
23533 " const char *\n"
23534 " guestfs_get_path (guestfs_h *g);\n"
23535 "\n"
23536 msgstr ""
23537
23538 #. type: textblock
23539 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
23540 msgid ""
23541 "This function returns a string, or NULL on error.  The string is owned by "
23542 "the guest handle and must I<not> be freed."
23543 msgstr ""
23544
23545 #. type: =head2
23546 #: ../src/guestfs-actions.pod:2085
23547 msgid "guestfs_get_pgroup"
23548 msgstr ""
23549
23550 #. type: verbatim
23551 #: ../src/guestfs-actions.pod:2087
23552 #, no-wrap
23553 msgid ""
23554 " int\n"
23555 " guestfs_get_pgroup (guestfs_h *g);\n"
23556 "\n"
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6380 ../src/guestfs-actions.pod:7712
23561 msgid "(Added in 1.11.18)"
23562 msgstr ""
23563
23564 #. type: =head2
23565 #: ../src/guestfs-actions.pod:2096
23566 msgid "guestfs_get_pid"
23567 msgstr ""
23568
23569 #. type: verbatim
23570 #: ../src/guestfs-actions.pod:2098
23571 #, no-wrap
23572 msgid ""
23573 " int\n"
23574 " guestfs_get_pid (guestfs_h *g);\n"
23575 "\n"
23576 msgstr ""
23577
23578 #. type: textblock
23579 #: ../src/guestfs-actions.pod:2108
23580 msgid "(Added in 1.0.56)"
23581 msgstr ""
23582
23583 #. type: =head2
23584 #: ../src/guestfs-actions.pod:2110
23585 msgid "guestfs_get_qemu"
23586 msgstr ""
23587
23588 #. type: verbatim
23589 #: ../src/guestfs-actions.pod:2112
23590 #, no-wrap
23591 msgid ""
23592 " const char *\n"
23593 " guestfs_get_qemu (guestfs_h *g);\n"
23594 "\n"
23595 msgstr ""
23596
23597 #. type: textblock
23598 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6408
23599 msgid "(Added in 1.0.6)"
23600 msgstr ""
23601
23602 #. type: =head2
23603 #: ../src/guestfs-actions.pod:2125
23604 msgid "guestfs_get_recovery_proc"
23605 msgstr ""
23606
23607 #. type: verbatim
23608 #: ../src/guestfs-actions.pod:2127
23609 #, no-wrap
23610 msgid ""
23611 " int\n"
23612 " guestfs_get_recovery_proc (guestfs_h *g);\n"
23613 "\n"
23614 msgstr ""
23615
23616 #. type: textblock
23617 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3690 ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:5644 ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6432 ../src/guestfs-actions.pod:7123 ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7335
23618 msgid "(Added in 1.0.77)"
23619 msgstr ""
23620
23621 #. type: =head2
23622 #: ../src/guestfs-actions.pod:2136
23623 msgid "guestfs_get_selinux"
23624 msgstr ""
23625
23626 #. type: verbatim
23627 #: ../src/guestfs-actions.pod:2138
23628 #, no-wrap
23629 msgid ""
23630 " int\n"
23631 " guestfs_get_selinux (guestfs_h *g);\n"
23632 "\n"
23633 msgstr ""
23634
23635 #. type: textblock
23636 #: ../src/guestfs-actions.pod:2141
23637 msgid ""
23638 "This returns the current setting of the selinux flag which is passed to the "
23639 "appliance at boot time.  See C<guestfs_set_selinux>."
23640 msgstr ""
23641
23642 #. type: textblock
23643 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6509
23644 msgid "(Added in 1.0.67)"
23645 msgstr ""
23646
23647 #. type: =head2
23648 #: ../src/guestfs-actions.pod:2151
23649 msgid "guestfs_get_state"
23650 msgstr ""
23651
23652 #. type: verbatim
23653 #: ../src/guestfs-actions.pod:2153
23654 #, no-wrap
23655 msgid ""
23656 " int\n"
23657 " guestfs_get_state (guestfs_h *g);\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: =head2
23662 #: ../src/guestfs-actions.pod:2165
23663 msgid "guestfs_get_trace"
23664 msgstr ""
23665
23666 #. type: verbatim
23667 #: ../src/guestfs-actions.pod:2167
23668 #, no-wrap
23669 msgid ""
23670 " int\n"
23671 " guestfs_get_trace (guestfs_h *g);\n"
23672 "\n"
23673 msgstr ""
23674
23675 #. type: =head2
23676 #: ../src/guestfs-actions.pod:2176
23677 msgid "guestfs_get_umask"
23678 msgstr ""
23679
23680 #. type: verbatim
23681 #: ../src/guestfs-actions.pod:2178
23682 #, no-wrap
23683 msgid ""
23684 " int\n"
23685 " guestfs_get_umask (guestfs_h *g);\n"
23686 "\n"
23687 msgstr ""
23688
23689 #. type: textblock
23690 #: ../src/guestfs-actions.pod:2181
23691 msgid ""
23692 "Return the current umask.  By default the umask is C<022> unless it has been "
23693 "set by calling C<guestfs_umask>."
23694 msgstr ""
23695
23696 #. type: =head2
23697 #: ../src/guestfs-actions.pod:2188
23698 msgid "guestfs_get_verbose"
23699 msgstr ""
23700
23701 #. type: verbatim
23702 #: ../src/guestfs-actions.pod:2190
23703 #, no-wrap
23704 msgid ""
23705 " int\n"
23706 " guestfs_get_verbose (guestfs_h *g);\n"
23707 "\n"
23708 msgstr ""
23709
23710 #. type: =head2
23711 #: ../src/guestfs-actions.pod:2199
23712 msgid "guestfs_getcon"
23713 msgstr ""
23714
23715 #. type: verbatim
23716 #: ../src/guestfs-actions.pod:2201
23717 #, no-wrap
23718 msgid ""
23719 " char *\n"
23720 " guestfs_getcon (guestfs_h *g);\n"
23721 "\n"
23722 msgstr ""
23723
23724 #. type: textblock
23725 #: ../src/guestfs-actions.pod:2206
23726 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
23727 msgstr ""
23728
23729 #. type: =head2
23730 #: ../src/guestfs-actions.pod:2214
23731 msgid "guestfs_getxattr"
23732 msgstr ""
23733
23734 #. type: verbatim
23735 #: ../src/guestfs-actions.pod:2216
23736 #, no-wrap
23737 msgid ""
23738 " char *\n"
23739 " guestfs_getxattr (guestfs_h *g,\n"
23740 "                   const char *path,\n"
23741 "                   const char *name,\n"
23742 "                   size_t *size_r);\n"
23743 "\n"
23744 msgstr ""
23745
23746 #. type: textblock
23747 #: ../src/guestfs-actions.pod:2222
23748 msgid ""
23749 "Get a single extended attribute from file C<path> named C<name>.  This call "
23750 "follows symlinks.  If you want to lookup an extended attribute for the "
23751 "symlink itself, use C<guestfs_lgetxattr>."
23752 msgstr ""
23753
23754 #. type: textblock
23755 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3704
23756 msgid ""
23757 "Normally it is better to get all extended attributes from a file in one go "
23758 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
23759 "implementations are buggy and do not provide a way to list out attributes.  "
23760 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
23761 "extended attributes you want in advance and call this function."
23762 msgstr ""
23763
23764 #. type: textblock
23765 #: ../src/guestfs-actions.pod:2236
23766 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
23767 msgstr ""
23768
23769 #. type: textblock
23770 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2921 ../src/guestfs-actions.pod:3716 ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5663 ../src/guestfs-actions.pod:5844
23771 msgid ""
23772 "This function returns a buffer, or NULL on error.  The size of the returned "
23773 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
23774 "after use>."
23775 msgstr ""
23776
23777 #. type: textblock
23778 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3720
23779 msgid "(Added in 1.7.24)"
23780 msgstr ""
23781
23782 #. type: =head2
23783 #: ../src/guestfs-actions.pod:2244
23784 msgid "guestfs_getxattrs"
23785 msgstr ""
23786
23787 #. type: verbatim
23788 #: ../src/guestfs-actions.pod:2246
23789 #, no-wrap
23790 msgid ""
23791 " struct guestfs_xattr_list *\n"
23792 " guestfs_getxattrs (guestfs_h *g,\n"
23793 "                    const char *path);\n"
23794 "\n"
23795 msgstr ""
23796
23797 #. type: textblock
23798 #: ../src/guestfs-actions.pod:2256
23799 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
23800 msgstr ""
23801
23802 #. type: textblock
23803 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3732 ../src/guestfs-actions.pod:4420
23804 msgid ""
23805 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
23806 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
23807 msgstr ""
23808
23809 #. type: textblock
23810 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3935 ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:6017 ../src/guestfs-actions.pod:6528 ../src/guestfs-actions.pod:7923
23811 msgid "(Added in 1.0.59)"
23812 msgstr ""
23813
23814 #. type: =head2
23815 #: ../src/guestfs-actions.pod:2264
23816 msgid "guestfs_glob_expand"
23817 msgstr ""
23818
23819 #. type: verbatim
23820 #: ../src/guestfs-actions.pod:2266
23821 #, no-wrap
23822 msgid ""
23823 " char **\n"
23824 " guestfs_glob_expand (guestfs_h *g,\n"
23825 "                      const char *pattern);\n"
23826 "\n"
23827 msgstr ""
23828
23829 #. type: textblock
23830 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6721 ../src/guestfs-actions.pod:6738
23831 msgid "(Added in 1.0.50)"
23832 msgstr ""
23833
23834 #. type: =head2
23835 #: ../src/guestfs-actions.pod:2287
23836 msgid "guestfs_grep"
23837 msgstr ""
23838
23839 #. type: verbatim
23840 #: ../src/guestfs-actions.pod:2289
23841 #, no-wrap
23842 msgid ""
23843 " char **\n"
23844 " guestfs_grep (guestfs_h *g,\n"
23845 "               const char *regex,\n"
23846 "               const char *path);\n"
23847 "\n"
23848 msgstr ""
23849
23850 #. type: =head2
23851 #: ../src/guestfs-actions.pod:2306
23852 msgid "guestfs_grepi"
23853 msgstr ""
23854
23855 #. type: verbatim
23856 #: ../src/guestfs-actions.pod:2308
23857 #, no-wrap
23858 msgid ""
23859 " char **\n"
23860 " guestfs_grepi (guestfs_h *g,\n"
23861 "                const char *regex,\n"
23862 "                const char *path);\n"
23863 "\n"
23864 msgstr ""
23865
23866 #. type: =head2
23867 #: ../src/guestfs-actions.pod:2325
23868 msgid "guestfs_grub_install"
23869 msgstr ""
23870
23871 #. type: verbatim
23872 #: ../src/guestfs-actions.pod:2327
23873 #, no-wrap
23874 msgid ""
23875 " int\n"
23876 " guestfs_grub_install (guestfs_h *g,\n"
23877 "                       const char *root,\n"
23878 "                       const char *device);\n"
23879 "\n"
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../src/guestfs-actions.pod:2370
23884 msgid "(Added in 1.0.17)"
23885 msgstr ""
23886
23887 #. type: =head2
23888 #: ../src/guestfs-actions.pod:2372
23889 msgid "guestfs_head"
23890 msgstr ""
23891
23892 #. type: verbatim
23893 #: ../src/guestfs-actions.pod:2374
23894 #, no-wrap
23895 msgid ""
23896 " char **\n"
23897 " guestfs_head (guestfs_h *g,\n"
23898 "               const char *path);\n"
23899 "\n"
23900 msgstr ""
23901
23902 #. type: =head2
23903 #: ../src/guestfs-actions.pod:2390
23904 msgid "guestfs_head_n"
23905 msgstr ""
23906
23907 #. type: verbatim
23908 #: ../src/guestfs-actions.pod:2392
23909 #, no-wrap
23910 msgid ""
23911 " char **\n"
23912 " guestfs_head_n (guestfs_h *g,\n"
23913 "                 int nrlines,\n"
23914 "                 const char *path);\n"
23915 "\n"
23916 msgstr ""
23917
23918 #. type: =head2
23919 #: ../src/guestfs-actions.pod:2414
23920 msgid "guestfs_hexdump"
23921 msgstr ""
23922
23923 #. type: verbatim
23924 #: ../src/guestfs-actions.pod:2416
23925 #, no-wrap
23926 msgid ""
23927 " char *\n"
23928 " guestfs_hexdump (guestfs_h *g,\n"
23929 "                  const char *path);\n"
23930 "\n"
23931 msgstr ""
23932
23933 #. type: textblock
23934 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6857
23935 msgid "(Added in 1.0.22)"
23936 msgstr ""
23937
23938 #. type: =head2
23939 #: ../src/guestfs-actions.pod:2431
23940 msgid "guestfs_initrd_cat"
23941 msgstr ""
23942
23943 #. type: verbatim
23944 #: ../src/guestfs-actions.pod:2433
23945 #, no-wrap
23946 msgid ""
23947 " char *\n"
23948 " guestfs_initrd_cat (guestfs_h *g,\n"
23949 "                     const char *initrdpath,\n"
23950 "                     const char *filename,\n"
23951 "                     size_t *size_r);\n"
23952 "\n"
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../src/guestfs-actions.pod:2449
23957 msgid "See also C<guestfs_initrd_list>."
23958 msgstr ""
23959
23960 #. type: =head2
23961 #: ../src/guestfs-actions.pod:2460
23962 msgid "guestfs_initrd_list"
23963 msgstr ""
23964
23965 #. type: verbatim
23966 #: ../src/guestfs-actions.pod:2462
23967 #, no-wrap
23968 msgid ""
23969 " char **\n"
23970 " guestfs_initrd_list (guestfs_h *g,\n"
23971 "                      const char *path);\n"
23972 "\n"
23973 msgstr ""
23974
23975 #. type: =head2
23976 #: ../src/guestfs-actions.pod:2482
23977 msgid "guestfs_inotify_add_watch"
23978 msgstr ""
23979
23980 #. type: verbatim
23981 #: ../src/guestfs-actions.pod:2484
23982 #, no-wrap
23983 msgid ""
23984 " int64_t\n"
23985 " guestfs_inotify_add_watch (guestfs_h *g,\n"
23986 "                            const char *path,\n"
23987 "                            int mask);\n"
23988 "\n"
23989 msgstr ""
23990
23991 #. type: =head2
23992 #: ../src/guestfs-actions.pod:2503
23993 msgid "guestfs_inotify_close"
23994 msgstr ""
23995
23996 #. type: verbatim
23997 #: ../src/guestfs-actions.pod:2505
23998 #, no-wrap
23999 msgid ""
24000 " int\n"
24001 " guestfs_inotify_close (guestfs_h *g);\n"
24002 "\n"
24003 msgstr ""
24004
24005 #. type: =head2
24006 #: ../src/guestfs-actions.pod:2516
24007 msgid "guestfs_inotify_files"
24008 msgstr ""
24009
24010 #. type: verbatim
24011 #: ../src/guestfs-actions.pod:2518
24012 #, no-wrap
24013 msgid ""
24014 " char **\n"
24015 " guestfs_inotify_files (guestfs_h *g);\n"
24016 "\n"
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../src/guestfs-actions.pod:2521
24021 msgid ""
24022 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
24023 "returns a list of pathnames of objects that were touched.  The returned "
24024 "pathnames are sorted and deduplicated."
24025 msgstr ""
24026
24027 #. type: =head2
24028 #: ../src/guestfs-actions.pod:2531
24029 msgid "guestfs_inotify_init"
24030 msgstr ""
24031
24032 #. type: verbatim
24033 #: ../src/guestfs-actions.pod:2533
24034 #, no-wrap
24035 msgid ""
24036 " int\n"
24037 " guestfs_inotify_init (guestfs_h *g,\n"
24038 "                       int maxevents);\n"
24039 "\n"
24040 msgstr ""
24041
24042 #. type: textblock
24043 #: ../src/guestfs-actions.pod:2541
24044 msgid ""
24045 "C<maxevents> is the maximum number of events which will be queued up between "
24046 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
24047 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
24048 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
24049 "throws away events, but records the fact that it threw them away by setting "
24050 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
24051 "C<guestfs_inotify_read>)."
24052 msgstr ""
24053
24054 #. type: textblock
24055 #: ../src/guestfs-actions.pod:2551
24056 msgid ""
24057 "Before any events are generated, you have to add some watches to the "
24058 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
24059 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../src/guestfs-actions.pod:2557
24064 msgid ""
24065 "Queued up events should be read periodically by calling "
24066 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
24067 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
24068 "often enough then you risk the internal queue overflowing."
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../src/guestfs-actions.pod:2564
24073 msgid ""
24074 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
24075 "This also removes any watches automatically."
24076 msgstr ""
24077
24078 #. type: =head2
24079 #: ../src/guestfs-actions.pod:2577
24080 msgid "guestfs_inotify_read"
24081 msgstr ""
24082
24083 #. type: verbatim
24084 #: ../src/guestfs-actions.pod:2579
24085 #, no-wrap
24086 msgid ""
24087 " struct guestfs_inotify_event_list *\n"
24088 " guestfs_inotify_read (guestfs_h *g);\n"
24089 "\n"
24090 msgstr ""
24091
24092 #. type: textblock
24093 #: ../src/guestfs-actions.pod:2593
24094 msgid ""
24095 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
24096 "there was an error.  I<The caller must call "
24097 "C<guestfs_free_inotify_event_list> after use>."
24098 msgstr ""
24099
24100 #. type: =head2
24101 #: ../src/guestfs-actions.pod:2599
24102 msgid "guestfs_inotify_rm_watch"
24103 msgstr ""
24104
24105 #. type: verbatim
24106 #: ../src/guestfs-actions.pod:2601
24107 #, no-wrap
24108 msgid ""
24109 " int\n"
24110 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
24111 "                           int wd);\n"
24112 "\n"
24113 msgstr ""
24114
24115 #. type: textblock
24116 #: ../src/guestfs-actions.pod:2605
24117 msgid ""
24118 "Remove a previously defined inotify watch.  See "
24119 "C<guestfs_inotify_add_watch>."
24120 msgstr ""
24121
24122 #. type: =head2
24123 #: ../src/guestfs-actions.pod:2612
24124 msgid "guestfs_inspect_get_arch"
24125 msgstr ""
24126
24127 #. type: verbatim
24128 #: ../src/guestfs-actions.pod:2614
24129 #, no-wrap
24130 msgid ""
24131 " char *\n"
24132 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24133 "                           const char *root);\n"
24134 "\n"
24135 msgstr ""
24136
24137 #. type: textblock
24138 #: ../src/guestfs-actions.pod:2618
24139 msgid ""
24140 "This returns the architecture of the inspected operating system.  The "
24141 "possible return values are listed under C<guestfs_file_architecture>."
24142 msgstr ""
24143
24144 #. type: =head2
24145 #: ../src/guestfs-actions.pod:2632
24146 msgid "guestfs_inspect_get_distro"
24147 msgstr ""
24148
24149 #. type: verbatim
24150 #: ../src/guestfs-actions.pod:2634
24151 #, no-wrap
24152 msgid ""
24153 " char *\n"
24154 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24155 "                             const char *root);\n"
24156 "\n"
24157 msgstr ""
24158
24159 #. type: =head2
24160 #: ../src/guestfs-actions.pod:2722
24161 msgid "guestfs_inspect_get_drive_mappings"
24162 msgstr ""
24163
24164 #. type: verbatim
24165 #: ../src/guestfs-actions.pod:2724
24166 #, no-wrap
24167 msgid ""
24168 " char **\n"
24169 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24170 "                                     const char *root);\n"
24171 "\n"
24172 msgstr ""
24173
24174 #. type: textblock
24175 #: ../src/guestfs-actions.pod:2753
24176 msgid ""
24177 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24178 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24179 msgstr ""
24180
24181 #. type: textblock
24182 #: ../src/guestfs-actions.pod:2757 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:5105 ../src/guestfs-actions.pod:7159
24183 msgid ""
24184 "This function returns a NULL-terminated array of strings, or NULL if there "
24185 "was an error.  The array of strings will always have length C<2n+1>, where "
24186 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24187 "caller must free the strings and the array after use>."
24188 msgstr ""
24189
24190 #. type: textblock
24191 #: ../src/guestfs-actions.pod:2763 ../src/guestfs-actions.pod:3219
24192 msgid "(Added in 1.9.17)"
24193 msgstr ""
24194
24195 #. type: =head2
24196 #: ../src/guestfs-actions.pod:2765
24197 msgid "guestfs_inspect_get_filesystems"
24198 msgstr ""
24199
24200 #. type: verbatim
24201 #: ../src/guestfs-actions.pod:2767
24202 #, no-wrap
24203 msgid ""
24204 " char **\n"
24205 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24206 "                                  const char *root);\n"
24207 "\n"
24208 msgstr ""
24209
24210 #. type: textblock
24211 #: ../src/guestfs-actions.pod:2779
24212 msgid ""
24213 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24214 "C<guestfs_inspect_get_mountpoints>."
24215 msgstr ""
24216
24217 #. type: =head2
24218 #: ../src/guestfs-actions.pod:2788
24219 msgid "guestfs_inspect_get_format"
24220 msgstr ""
24221
24222 #. type: verbatim
24223 #: ../src/guestfs-actions.pod:2790
24224 #, no-wrap
24225 msgid ""
24226 " char *\n"
24227 " guestfs_inspect_get_format (guestfs_h *g,\n"
24228 "                             const char *root);\n"
24229 "\n"
24230 msgstr ""
24231
24232 #. type: textblock
24233 #: ../src/guestfs-actions.pod:2824 ../src/guestfs-actions.pod:3255 ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289 ../src/guestfs-actions.pod:6055
24234 msgid "(Added in 1.9.4)"
24235 msgstr ""
24236
24237 #. type: =head2
24238 #: ../src/guestfs-actions.pod:2826
24239 msgid "guestfs_inspect_get_hostname"
24240 msgstr ""
24241
24242 #. type: verbatim
24243 #: ../src/guestfs-actions.pod:2828
24244 #, no-wrap
24245 msgid ""
24246 " char *\n"
24247 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24248 "                               const char *root);\n"
24249 "\n"
24250 msgstr ""
24251
24252 #. type: textblock
24253 #: ../src/guestfs-actions.pod:2843
24254 msgid "(Added in 1.7.9)"
24255 msgstr ""
24256
24257 #. type: =head2
24258 #: ../src/guestfs-actions.pod:2845
24259 msgid "guestfs_inspect_get_icon"
24260 msgstr ""
24261
24262 #. type: verbatim
24263 #: ../src/guestfs-actions.pod:2847
24264 #, no-wrap
24265 msgid ""
24266 " char *\n"
24267 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24268 "                           const char *root,\n"
24269 "                           size_t *size_r,\n"
24270 "                           ...);\n"
24271 "\n"
24272 msgstr ""
24273
24274 #. type: verbatim
24275 #: ../src/guestfs-actions.pod:2858
24276 #, no-wrap
24277 msgid ""
24278 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24279 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24280 "\n"
24281 msgstr ""
24282
24283 #. type: textblock
24284 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3750 ../src/guestfs-actions.pod:5004
24285 msgid "(Added in 1.11.12)"
24286 msgstr ""
24287
24288 #. type: =head2
24289 #: ../src/guestfs-actions.pod:2927
24290 msgid "guestfs_inspect_get_icon_va"
24291 msgstr ""
24292
24293 #. type: verbatim
24294 #: ../src/guestfs-actions.pod:2929
24295 #, no-wrap
24296 msgid ""
24297 " char *\n"
24298 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24299 "                              const char *root,\n"
24300 "                              size_t *size_r,\n"
24301 "                              va_list args);\n"
24302 "\n"
24303 msgstr ""
24304
24305 #. type: textblock
24306 #: ../src/guestfs-actions.pod:2935
24307 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24308 msgstr ""
24309
24310 #. type: =head2
24311 #: ../src/guestfs-actions.pod:2939
24312 msgid "guestfs_inspect_get_icon_argv"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../src/guestfs-actions.pod:2941
24317 #, no-wrap
24318 msgid ""
24319 " char *\n"
24320 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24321 "                                const char *root,\n"
24322 "                                size_t *size_r,\n"
24323 "                                const struct guestfs_inspect_get_icon_argv "
24324 "*optargs);\n"
24325 "\n"
24326 msgstr ""
24327
24328 #. type: textblock
24329 #: ../src/guestfs-actions.pod:2947
24330 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24331 msgstr ""
24332
24333 #. type: =head2
24334 #: ../src/guestfs-actions.pod:2951
24335 msgid "guestfs_inspect_get_major_version"
24336 msgstr ""
24337
24338 #. type: verbatim
24339 #: ../src/guestfs-actions.pod:2953
24340 #, no-wrap
24341 msgid ""
24342 " int\n"
24343 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24344 "                                    const char *root);\n"
24345 "\n"
24346 msgstr ""
24347
24348 #. type: =head2
24349 #: ../src/guestfs-actions.pod:2975
24350 msgid "guestfs_inspect_get_minor_version"
24351 msgstr ""
24352
24353 #. type: verbatim
24354 #: ../src/guestfs-actions.pod:2977
24355 #, no-wrap
24356 msgid ""
24357 " int\n"
24358 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24359 "                                    const char *root);\n"
24360 "\n"
24361 msgstr ""
24362
24363 #. type: textblock
24364 #: ../src/guestfs-actions.pod:2986
24365 msgid ""
24366 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24367 "C<guestfs_inspect_get_major_version>."
24368 msgstr ""
24369
24370 #. type: =head2
24371 #: ../src/guestfs-actions.pod:2993
24372 msgid "guestfs_inspect_get_mountpoints"
24373 msgstr ""
24374
24375 #. type: verbatim
24376 #: ../src/guestfs-actions.pod:2995
24377 #, no-wrap
24378 msgid ""
24379 " char **\n"
24380 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24381 "                                  const char *root);\n"
24382 "\n"
24383 msgstr ""
24384
24385 #. type: textblock
24386 #: ../src/guestfs-actions.pod:3016
24387 msgid ""
24388 "For operating systems like Windows which still use drive letters, this call "
24389 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24390 "information about the mapping of drive letters to partitions, see "
24391 "C<guestfs_inspect_get_drive_mappings>."
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../src/guestfs-actions.pod:3022
24396 msgid ""
24397 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24398 "C<guestfs_inspect_get_filesystems>."
24399 msgstr ""
24400
24401 #. type: =head2
24402 #: ../src/guestfs-actions.pod:3033
24403 msgid "guestfs_inspect_get_package_format"
24404 msgstr ""
24405
24406 #. type: verbatim
24407 #: ../src/guestfs-actions.pod:3035
24408 #, no-wrap
24409 msgid ""
24410 " char *\n"
24411 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24412 "                                     const char *root);\n"
24413 "\n"
24414 msgstr ""
24415
24416 #. type: textblock
24417 #: ../src/guestfs-actions.pod:3039
24418 msgid ""
24419 "This function and C<guestfs_inspect_get_package_management> return the "
24420 "package format and package management tool used by the inspected operating "
24421 "system.  For example for Fedora these functions would return C<rpm> (package "
24422 "format) and C<yum> (package management)."
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3085
24427 msgid "(Added in 1.7.5)"
24428 msgstr ""
24429
24430 #. type: =head2
24431 #: ../src/guestfs-actions.pod:3059
24432 msgid "guestfs_inspect_get_package_management"
24433 msgstr ""
24434
24435 #. type: verbatim
24436 #: ../src/guestfs-actions.pod:3061
24437 #, no-wrap
24438 msgid ""
24439 " char *\n"
24440 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24441 "                                         const char *root);\n"
24442 "\n"
24443 msgstr ""
24444
24445 #. type: textblock
24446 #: ../src/guestfs-actions.pod:3065
24447 msgid ""
24448 "C<guestfs_inspect_get_package_format> and this function return the package "
24449 "format and package management tool used by the inspected operating system.  "
24450 "For example for Fedora these functions would return C<rpm> (package format) "
24451 "and C<yum> (package management)."
24452 msgstr ""
24453
24454 #. type: =head2
24455 #: ../src/guestfs-actions.pod:3087
24456 msgid "guestfs_inspect_get_product_name"
24457 msgstr ""
24458
24459 #. type: verbatim
24460 #: ../src/guestfs-actions.pod:3089
24461 #, no-wrap
24462 msgid ""
24463 " char *\n"
24464 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24465 "                                   const char *root);\n"
24466 "\n"
24467 msgstr ""
24468
24469 #. type: =head2
24470 #: ../src/guestfs-actions.pod:3108
24471 msgid "guestfs_inspect_get_product_variant"
24472 msgstr ""
24473
24474 #. type: verbatim
24475 #: ../src/guestfs-actions.pod:3110
24476 #, no-wrap
24477 msgid ""
24478 " char *\n"
24479 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24480 "                                      const char *root);\n"
24481 "\n"
24482 msgstr ""
24483
24484 #. type: textblock
24485 #: ../src/guestfs-actions.pod:3133
24486 msgid ""
24487 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24488 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24489 msgstr ""
24490
24491 #. type: textblock
24492 #: ../src/guestfs-actions.pod:3140
24493 msgid "(Added in 1.9.13)"
24494 msgstr ""
24495
24496 #. type: =head2
24497 #: ../src/guestfs-actions.pod:3142
24498 msgid "guestfs_inspect_get_roots"
24499 msgstr ""
24500
24501 #. type: verbatim
24502 #: ../src/guestfs-actions.pod:3144
24503 #, no-wrap
24504 msgid ""
24505 " char **\n"
24506 " guestfs_inspect_get_roots (guestfs_h *g);\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: textblock
24511 #: ../src/guestfs-actions.pod:3147
24512 msgid ""
24513 "This function is a convenient way to get the list of root devices, as "
24514 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
24515 "the whole inspection process."
24516 msgstr ""
24517
24518 #. type: textblock
24519 #: ../src/guestfs-actions.pod:3151
24520 msgid ""
24521 "This returns an empty list if either no root devices were found or the "
24522 "caller has not called C<guestfs_inspect_os>."
24523 msgstr ""
24524
24525 #. type: textblock
24526 #: ../src/guestfs-actions.pod:3160
24527 msgid "(Added in 1.7.3)"
24528 msgstr ""
24529
24530 #. type: =head2
24531 #: ../src/guestfs-actions.pod:3162
24532 msgid "guestfs_inspect_get_type"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../src/guestfs-actions.pod:3164
24537 #, no-wrap
24538 msgid ""
24539 " char *\n"
24540 " guestfs_inspect_get_type (guestfs_h *g,\n"
24541 "                           const char *root);\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: =head2
24546 #: ../src/guestfs-actions.pod:3201
24547 msgid "guestfs_inspect_get_windows_current_control_set"
24548 msgstr ""
24549
24550 #. type: verbatim
24551 #: ../src/guestfs-actions.pod:3203
24552 #, no-wrap
24553 msgid ""
24554 " char *\n"
24555 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
24556 "                                                  const char *root);\n"
24557 "\n"
24558 msgstr ""
24559
24560 #. type: =head2
24561 #: ../src/guestfs-actions.pod:3221
24562 msgid "guestfs_inspect_get_windows_systemroot"
24563 msgstr ""
24564
24565 #. type: verbatim
24566 #: ../src/guestfs-actions.pod:3223
24567 #, no-wrap
24568 msgid ""
24569 " char *\n"
24570 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
24571 "                                         const char *root);\n"
24572 "\n"
24573 msgstr ""
24574
24575 #. type: textblock
24576 #: ../src/guestfs-actions.pod:3239
24577 msgid "(Added in 1.5.25)"
24578 msgstr ""
24579
24580 #. type: =head2
24581 #: ../src/guestfs-actions.pod:3241
24582 msgid "guestfs_inspect_is_live"
24583 msgstr ""
24584
24585 #. type: verbatim
24586 #: ../src/guestfs-actions.pod:3243
24587 #, no-wrap
24588 msgid ""
24589 " int\n"
24590 " guestfs_inspect_is_live (guestfs_h *g,\n"
24591 "                          const char *root);\n"
24592 "\n"
24593 msgstr ""
24594
24595 #. type: textblock
24596 #: ../src/guestfs-actions.pod:3247
24597 msgid ""
24598 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24599 "disk), then this returns true if a live image was detected on the disk."
24600 msgstr ""
24601
24602 #. type: =head2
24603 #: ../src/guestfs-actions.pod:3257
24604 msgid "guestfs_inspect_is_multipart"
24605 msgstr ""
24606
24607 #. type: verbatim
24608 #: ../src/guestfs-actions.pod:3259
24609 #, no-wrap
24610 msgid ""
24611 " int\n"
24612 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
24613 "                               const char *root);\n"
24614 "\n"
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../src/guestfs-actions.pod:3263
24619 msgid ""
24620 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24621 "disk), then this returns true if the disk is part of a set."
24622 msgstr ""
24623
24624 #. type: =head2
24625 #: ../src/guestfs-actions.pod:3273
24626 msgid "guestfs_inspect_is_netinst"
24627 msgstr ""
24628
24629 #. type: verbatim
24630 #: ../src/guestfs-actions.pod:3275
24631 #, no-wrap
24632 msgid ""
24633 " int\n"
24634 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
24635 "                             const char *root);\n"
24636 "\n"
24637 msgstr ""
24638
24639 #. type: textblock
24640 #: ../src/guestfs-actions.pod:3279
24641 msgid ""
24642 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24643 "disk), then this returns true if the disk is a network installer, ie. not a "
24644 "self-contained install CD but one which is likely to require network access "
24645 "to complete the install."
24646 msgstr ""
24647
24648 #. type: =head2
24649 #: ../src/guestfs-actions.pod:3291
24650 msgid "guestfs_inspect_list_applications"
24651 msgstr ""
24652
24653 #. type: verbatim
24654 #: ../src/guestfs-actions.pod:3293
24655 #, no-wrap
24656 msgid ""
24657 " struct guestfs_application_list *\n"
24658 " guestfs_inspect_list_applications (guestfs_h *g,\n"
24659 "                                    const char *root);\n"
24660 "\n"
24661 msgstr ""
24662
24663 #. type: textblock
24664 #: ../src/guestfs-actions.pod:3299
24665 msgid ""
24666 "I<Note:> This call works differently from other parts of the inspection "
24667 "API.  You have to call C<guestfs_inspect_os>, then "
24668 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
24669 "this.  Listing applications is a significantly more difficult operation "
24670 "which requires access to the full filesystem.  Also note that unlike the "
24671 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
24672 "the libguestfs handle, this call actually reads parts of the mounted "
24673 "filesystems during the call."
24674 msgstr ""
24675
24676 #. type: textblock
24677 #: ../src/guestfs-actions.pod:3389
24678 msgid ""
24679 "This function returns a C<struct guestfs_application_list *>, or NULL if "
24680 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
24681 "after use>."
24682 msgstr ""
24683
24684 #. type: textblock
24685 #: ../src/guestfs-actions.pod:3393
24686 msgid "(Added in 1.7.8)"
24687 msgstr ""
24688
24689 #. type: =head2
24690 #: ../src/guestfs-actions.pod:3395
24691 msgid "guestfs_inspect_os"
24692 msgstr ""
24693
24694 #. type: verbatim
24695 #: ../src/guestfs-actions.pod:3397
24696 #, no-wrap
24697 msgid ""
24698 " char **\n"
24699 " guestfs_inspect_os (guestfs_h *g);\n"
24700 "\n"
24701 msgstr ""
24702
24703 #. type: textblock
24704 #: ../src/guestfs-actions.pod:3413
24705 msgid ""
24706 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
24707 "functions in order to query further information about each operating system, "
24708 "such as the name and version."
24709 msgstr ""
24710
24711 #. type: textblock
24712 #: ../src/guestfs-actions.pod:3418
24713 msgid ""
24714 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
24715 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
24716 "the contents.  This should be called with no disks currently mounted.  The "
24717 "function may also use Augeas, so any existing Augeas handle will be closed."
24718 msgstr ""
24719
24720 #. type: textblock
24721 #: ../src/guestfs-actions.pod:3430 ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3843
24722 msgid "See also C<guestfs_list_filesystems>."
24723 msgstr ""
24724
24725 #. type: =head2
24726 #: ../src/guestfs-actions.pod:3438
24727 msgid "guestfs_is_blockdev"
24728 msgstr ""
24729
24730 #. type: verbatim
24731 #: ../src/guestfs-actions.pod:3440
24732 #, no-wrap
24733 msgid ""
24734 " int\n"
24735 " guestfs_is_blockdev (guestfs_h *g,\n"
24736 "                      const char *path);\n"
24737 "\n"
24738 msgstr ""
24739
24740 #. type: textblock
24741 #: ../src/guestfs-actions.pod:3447 ../src/guestfs-actions.pod:3476 ../src/guestfs-actions.pod:3506 ../src/guestfs-actions.pod:3521 ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3593 ../src/guestfs-actions.pod:3608
24742 msgid "See also C<guestfs_stat>."
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480 ../src/guestfs-actions.pod:3525 ../src/guestfs-actions.pod:3597 ../src/guestfs-actions.pod:3612
24747 msgid "(Added in 1.5.10)"
24748 msgstr ""
24749
24750 #. type: =head2
24751 #: ../src/guestfs-actions.pod:3453
24752 msgid "guestfs_is_busy"
24753 msgstr ""
24754
24755 #. type: verbatim
24756 #: ../src/guestfs-actions.pod:3455
24757 #, no-wrap
24758 msgid ""
24759 " int\n"
24760 " guestfs_is_busy (guestfs_h *g);\n"
24761 "\n"
24762 msgstr ""
24763
24764 #. type: =head2
24765 #: ../src/guestfs-actions.pod:3467
24766 msgid "guestfs_is_chardev"
24767 msgstr ""
24768
24769 #. type: verbatim
24770 #: ../src/guestfs-actions.pod:3469
24771 #, no-wrap
24772 msgid ""
24773 " int\n"
24774 " guestfs_is_chardev (guestfs_h *g,\n"
24775 "                     const char *path);\n"
24776 "\n"
24777 msgstr ""
24778
24779 #. type: =head2
24780 #: ../src/guestfs-actions.pod:3482
24781 msgid "guestfs_is_config"
24782 msgstr ""
24783
24784 #. type: verbatim
24785 #: ../src/guestfs-actions.pod:3484
24786 #, no-wrap
24787 msgid ""
24788 " int\n"
24789 " guestfs_is_config (guestfs_h *g);\n"
24790 "\n"
24791 msgstr ""
24792
24793 #. type: =head2
24794 #: ../src/guestfs-actions.pod:3496
24795 msgid "guestfs_is_dir"
24796 msgstr ""
24797
24798 #. type: verbatim
24799 #: ../src/guestfs-actions.pod:3498
24800 #, no-wrap
24801 msgid ""
24802 " int\n"
24803 " guestfs_is_dir (guestfs_h *g,\n"
24804 "                 const char *path);\n"
24805 "\n"
24806 msgstr ""
24807
24808 #. type: =head2
24809 #: ../src/guestfs-actions.pod:3512
24810 msgid "guestfs_is_fifo"
24811 msgstr ""
24812
24813 #. type: verbatim
24814 #: ../src/guestfs-actions.pod:3514
24815 #, no-wrap
24816 msgid ""
24817 " int\n"
24818 " guestfs_is_fifo (guestfs_h *g,\n"
24819 "                  const char *path);\n"
24820 "\n"
24821 msgstr ""
24822
24823 #. type: =head2
24824 #: ../src/guestfs-actions.pod:3527
24825 msgid "guestfs_is_file"
24826 msgstr ""
24827
24828 #. type: verbatim
24829 #: ../src/guestfs-actions.pod:3529
24830 #, no-wrap
24831 msgid ""
24832 " int\n"
24833 " guestfs_is_file (guestfs_h *g,\n"
24834 "                  const char *path);\n"
24835 "\n"
24836 msgstr ""
24837
24838 #. type: =head2
24839 #: ../src/guestfs-actions.pod:3543
24840 msgid "guestfs_is_launching"
24841 msgstr ""
24842
24843 #. type: verbatim
24844 #: ../src/guestfs-actions.pod:3545
24845 #, no-wrap
24846 msgid ""
24847 " int\n"
24848 " guestfs_is_launching (guestfs_h *g);\n"
24849 "\n"
24850 msgstr ""
24851
24852 #. type: =head2
24853 #: ../src/guestfs-actions.pod:3557
24854 msgid "guestfs_is_lv"
24855 msgstr ""
24856
24857 #. type: verbatim
24858 #: ../src/guestfs-actions.pod:3559
24859 #, no-wrap
24860 msgid ""
24861 " int\n"
24862 " guestfs_is_lv (guestfs_h *g,\n"
24863 "                const char *device);\n"
24864 "\n"
24865 msgstr ""
24866
24867 #. type: =head2
24868 #: ../src/guestfs-actions.pod:3570
24869 msgid "guestfs_is_ready"
24870 msgstr ""
24871
24872 #. type: verbatim
24873 #: ../src/guestfs-actions.pod:3572
24874 #, no-wrap
24875 msgid ""
24876 " int\n"
24877 " guestfs_is_ready (guestfs_h *g);\n"
24878 "\n"
24879 msgstr ""
24880
24881 #. type: =head2
24882 #: ../src/guestfs-actions.pod:3584
24883 msgid "guestfs_is_socket"
24884 msgstr ""
24885
24886 #. type: verbatim
24887 #: ../src/guestfs-actions.pod:3586
24888 #, no-wrap
24889 msgid ""
24890 " int\n"
24891 " guestfs_is_socket (guestfs_h *g,\n"
24892 "                    const char *path);\n"
24893 "\n"
24894 msgstr ""
24895
24896 #. type: =head2
24897 #: ../src/guestfs-actions.pod:3599
24898 msgid "guestfs_is_symlink"
24899 msgstr ""
24900
24901 #. type: verbatim
24902 #: ../src/guestfs-actions.pod:3601
24903 #, no-wrap
24904 msgid ""
24905 " int\n"
24906 " guestfs_is_symlink (guestfs_h *g,\n"
24907 "                     const char *path);\n"
24908 "\n"
24909 msgstr ""
24910
24911 #. type: =head2
24912 #: ../src/guestfs-actions.pod:3614
24913 msgid "guestfs_is_zero"
24914 msgstr ""
24915
24916 #. type: verbatim
24917 #: ../src/guestfs-actions.pod:3616
24918 #, no-wrap
24919 msgid ""
24920 " int\n"
24921 " guestfs_is_zero (guestfs_h *g,\n"
24922 "                  const char *path);\n"
24923 "\n"
24924 msgstr ""
24925
24926 #. type: textblock
24927 #: ../src/guestfs-actions.pod:3625 ../src/guestfs-actions.pod:3639
24928 msgid "(Added in 1.11.8)"
24929 msgstr ""
24930
24931 #. type: =head2
24932 #: ../src/guestfs-actions.pod:3627
24933 msgid "guestfs_is_zero_device"
24934 msgstr ""
24935
24936 #. type: verbatim
24937 #: ../src/guestfs-actions.pod:3629
24938 #, no-wrap
24939 msgid ""
24940 " int\n"
24941 " guestfs_is_zero_device (guestfs_h *g,\n"
24942 "                         const char *device);\n"
24943 "\n"
24944 msgstr ""
24945
24946 #. type: =head2
24947 #: ../src/guestfs-actions.pod:3641
24948 msgid "guestfs_kill_subprocess"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../src/guestfs-actions.pod:3643
24953 #, no-wrap
24954 msgid ""
24955 " int\n"
24956 " guestfs_kill_subprocess (guestfs_h *g);\n"
24957 "\n"
24958 msgstr ""
24959
24960 #. type: =head2
24961 #: ../src/guestfs-actions.pod:3652
24962 msgid "guestfs_launch"
24963 msgstr ""
24964
24965 #. type: verbatim
24966 #: ../src/guestfs-actions.pod:3654
24967 #, no-wrap
24968 msgid ""
24969 " int\n"
24970 " guestfs_launch (guestfs_h *g);\n"
24971 "\n"
24972 msgstr ""
24973
24974 #. type: =head2
24975 #: ../src/guestfs-actions.pod:3672
24976 msgid "guestfs_lchown"
24977 msgstr ""
24978
24979 #. type: verbatim
24980 #: ../src/guestfs-actions.pod:3674
24981 #, no-wrap
24982 msgid ""
24983 " int\n"
24984 " guestfs_lchown (guestfs_h *g,\n"
24985 "                 int owner,\n"
24986 "                 int group,\n"
24987 "                 const char *path);\n"
24988 "\n"
24989 msgstr ""
24990
24991 #. type: textblock
24992 #: ../src/guestfs-actions.pod:3680
24993 msgid ""
24994 "Change the file owner to C<owner> and group to C<group>.  This is like "
24995 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
24996 "changed, not the target."
24997 msgstr ""
24998
24999 #. type: =head2
25000 #: ../src/guestfs-actions.pod:3692
25001 msgid "guestfs_lgetxattr"
25002 msgstr ""
25003
25004 #. type: verbatim
25005 #: ../src/guestfs-actions.pod:3694
25006 #, no-wrap
25007 msgid ""
25008 " char *\n"
25009 " guestfs_lgetxattr (guestfs_h *g,\n"
25010 "                    const char *path,\n"
25011 "                    const char *name,\n"
25012 "                    size_t *size_r);\n"
25013 "\n"
25014 msgstr ""
25015
25016 #. type: textblock
25017 #: ../src/guestfs-actions.pod:3714
25018 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
25019 msgstr ""
25020
25021 #. type: =head2
25022 #: ../src/guestfs-actions.pod:3722
25023 msgid "guestfs_lgetxattrs"
25024 msgstr ""
25025
25026 #. type: verbatim
25027 #: ../src/guestfs-actions.pod:3724
25028 #, no-wrap
25029 msgid ""
25030 " struct guestfs_xattr_list *\n"
25031 " guestfs_lgetxattrs (guestfs_h *g,\n"
25032 "                     const char *path);\n"
25033 "\n"
25034 msgstr ""
25035
25036 #. type: textblock
25037 #: ../src/guestfs-actions.pod:3728
25038 msgid ""
25039 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
25040 "then it returns the extended attributes of the link itself."
25041 msgstr ""
25042
25043 #. type: =head2
25044 #: ../src/guestfs-actions.pod:3738
25045 msgid "guestfs_list_9p"
25046 msgstr ""
25047
25048 #. type: verbatim
25049 #: ../src/guestfs-actions.pod:3740
25050 #, no-wrap
25051 msgid ""
25052 " char **\n"
25053 " guestfs_list_9p (guestfs_h *g);\n"
25054 "\n"
25055 msgstr ""
25056
25057 #. type: =head2
25058 #: ../src/guestfs-actions.pod:3752
25059 msgid "guestfs_list_devices"
25060 msgstr ""
25061
25062 #. type: verbatim
25063 #: ../src/guestfs-actions.pod:3754
25064 #, no-wrap
25065 msgid ""
25066 " char **\n"
25067 " guestfs_list_devices (guestfs_h *g);\n"
25068 "\n"
25069 msgstr ""
25070
25071 #. type: =head2
25072 #: ../src/guestfs-actions.pod:3769
25073 msgid "guestfs_list_dm_devices"
25074 msgstr ""
25075
25076 #. type: verbatim
25077 #: ../src/guestfs-actions.pod:3771
25078 #, no-wrap
25079 msgid ""
25080 " char **\n"
25081 " guestfs_list_dm_devices (guestfs_h *g);\n"
25082 "\n"
25083 msgstr ""
25084
25085 #. type: textblock
25086 #: ../src/guestfs-actions.pod:3776
25087 msgid ""
25088 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
25089 "previous call to C<guestfs_luks_open>."
25090 msgstr ""
25091
25092 #. type: textblock
25093 #: ../src/guestfs-actions.pod:3779
25094 msgid ""
25095 "Device mapper devices which correspond to logical volumes are I<not> "
25096 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
25097 "volumes."
25098 msgstr ""
25099
25100 #. type: textblock
25101 #: ../src/guestfs-actions.pod:3787 ../src/guestfs-actions.pod:5243
25102 msgid "(Added in 1.11.15)"
25103 msgstr ""
25104
25105 #. type: =head2
25106 #: ../src/guestfs-actions.pod:3789
25107 msgid "guestfs_list_filesystems"
25108 msgstr ""
25109
25110 #. type: verbatim
25111 #: ../src/guestfs-actions.pod:3791
25112 #, no-wrap
25113 msgid ""
25114 " char **\n"
25115 " guestfs_list_filesystems (guestfs_h *g);\n"
25116 "\n"
25117 msgstr ""
25118
25119 #. type: textblock
25120 #: ../src/guestfs-actions.pod:3811
25121 msgid ""
25122 "This command runs other libguestfs commands, which might include "
25123 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
25124 "soon after launch and only when nothing is mounted."
25125 msgstr ""
25126
25127 #. type: textblock
25128 #: ../src/guestfs-actions.pod:3815
25129 msgid ""
25130 "Not all of the filesystems returned will be mountable.  In particular, swap "
25131 "partitions are returned in the list.  Also this command does not check that "
25132 "each filesystem found is valid and mountable, and some filesystems might be "
25133 "mountable but require special options.  Filesystems may not all belong to a "
25134 "single logical operating system (use C<guestfs_inspect_os> to look for "
25135 "OSes)."
25136 msgstr ""
25137
25138 #. type: textblock
25139 #: ../src/guestfs-actions.pod:3829 ../src/guestfs-actions.pod:5604
25140 msgid "(Added in 1.5.15)"
25141 msgstr ""
25142
25143 #. type: =head2
25144 #: ../src/guestfs-actions.pod:3831
25145 msgid "guestfs_list_partitions"
25146 msgstr ""
25147
25148 #. type: verbatim
25149 #: ../src/guestfs-actions.pod:3833
25150 #, no-wrap
25151 msgid ""
25152 " char **\n"
25153 " guestfs_list_partitions (guestfs_h *g);\n"
25154 "\n"
25155 msgstr ""
25156
25157 #. type: textblock
25158 #: ../src/guestfs-actions.pod:3840
25159 msgid ""
25160 "This does not return logical volumes.  For that you will need to call "
25161 "C<guestfs_lvs>."
25162 msgstr ""
25163
25164 #. type: =head2
25165 #: ../src/guestfs-actions.pod:3851
25166 msgid "guestfs_ll"
25167 msgstr ""
25168
25169 #. type: verbatim
25170 #: ../src/guestfs-actions.pod:3853
25171 #, no-wrap
25172 msgid ""
25173 " char *\n"
25174 " guestfs_ll (guestfs_h *g,\n"
25175 "             const char *directory);\n"
25176 "\n"
25177 msgstr ""
25178
25179 #. type: =head2
25180 #: ../src/guestfs-actions.pod:3868
25181 msgid "guestfs_ln"
25182 msgstr ""
25183
25184 #. type: verbatim
25185 #: ../src/guestfs-actions.pod:3870
25186 #, no-wrap
25187 msgid ""
25188 " int\n"
25189 " guestfs_ln (guestfs_h *g,\n"
25190 "             const char *target,\n"
25191 "             const char *linkname);\n"
25192 "\n"
25193 msgstr ""
25194
25195 #. type: =head2
25196 #: ../src/guestfs-actions.pod:3881
25197 msgid "guestfs_ln_f"
25198 msgstr ""
25199
25200 #. type: verbatim
25201 #: ../src/guestfs-actions.pod:3883
25202 #, no-wrap
25203 msgid ""
25204 " int\n"
25205 " guestfs_ln_f (guestfs_h *g,\n"
25206 "               const char *target,\n"
25207 "               const char *linkname);\n"
25208 "\n"
25209 msgstr ""
25210
25211 #. type: =head2
25212 #: ../src/guestfs-actions.pod:3895
25213 msgid "guestfs_ln_s"
25214 msgstr ""
25215
25216 #. type: verbatim
25217 #: ../src/guestfs-actions.pod:3897
25218 #, no-wrap
25219 msgid ""
25220 " int\n"
25221 " guestfs_ln_s (guestfs_h *g,\n"
25222 "               const char *target,\n"
25223 "               const char *linkname);\n"
25224 "\n"
25225 msgstr ""
25226
25227 #. type: =head2
25228 #: ../src/guestfs-actions.pod:3908
25229 msgid "guestfs_ln_sf"
25230 msgstr ""
25231
25232 #. type: verbatim
25233 #: ../src/guestfs-actions.pod:3910
25234 #, no-wrap
25235 msgid ""
25236 " int\n"
25237 " guestfs_ln_sf (guestfs_h *g,\n"
25238 "                const char *target,\n"
25239 "                const char *linkname);\n"
25240 "\n"
25241 msgstr ""
25242
25243 #. type: =head2
25244 #: ../src/guestfs-actions.pod:3922
25245 msgid "guestfs_lremovexattr"
25246 msgstr ""
25247
25248 #. type: verbatim
25249 #: ../src/guestfs-actions.pod:3924
25250 #, no-wrap
25251 msgid ""
25252 " int\n"
25253 " guestfs_lremovexattr (guestfs_h *g,\n"
25254 "                       const char *xattr,\n"
25255 "                       const char *path);\n"
25256 "\n"
25257 msgstr ""
25258
25259 #. type: textblock
25260 #: ../src/guestfs-actions.pod:3929
25261 msgid ""
25262 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25263 "link, then it removes an extended attribute of the link itself."
25264 msgstr ""
25265
25266 #. type: =head2
25267 #: ../src/guestfs-actions.pod:3937
25268 msgid "guestfs_ls"
25269 msgstr ""
25270
25271 #. type: verbatim
25272 #: ../src/guestfs-actions.pod:3939
25273 #, no-wrap
25274 msgid ""
25275 " char **\n"
25276 " guestfs_ls (guestfs_h *g,\n"
25277 "             const char *directory);\n"
25278 "\n"
25279 msgstr ""
25280
25281 #. type: textblock
25282 #: ../src/guestfs-actions.pod:3947
25283 msgid ""
25284 "This command is mostly useful for interactive sessions.  Programs should "
25285 "probably use C<guestfs_readdir> instead."
25286 msgstr ""
25287
25288 #. type: =head2
25289 #: ../src/guestfs-actions.pod:3956
25290 msgid "guestfs_lsetxattr"
25291 msgstr ""
25292
25293 #. type: verbatim
25294 #: ../src/guestfs-actions.pod:3958
25295 #, no-wrap
25296 msgid ""
25297 " int\n"
25298 " guestfs_lsetxattr (guestfs_h *g,\n"
25299 "                    const char *xattr,\n"
25300 "                    const char *val,\n"
25301 "                    int vallen,\n"
25302 "                    const char *path);\n"
25303 "\n"
25304 msgstr ""
25305
25306 #. type: textblock
25307 #: ../src/guestfs-actions.pod:3965
25308 msgid ""
25309 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25310 "then it sets an extended attribute of the link itself."
25311 msgstr ""
25312
25313 #. type: =head2
25314 #: ../src/guestfs-actions.pod:3973
25315 msgid "guestfs_lstat"
25316 msgstr ""
25317
25318 #. type: verbatim
25319 #: ../src/guestfs-actions.pod:3975
25320 #, no-wrap
25321 msgid ""
25322 " struct guestfs_stat *\n"
25323 " guestfs_lstat (guestfs_h *g,\n"
25324 "                const char *path);\n"
25325 "\n"
25326 msgstr ""
25327
25328 #. type: textblock
25329 #: ../src/guestfs-actions.pod:3981
25330 msgid ""
25331 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25332 "link, then the link is stat-ed, not the file it refers to."
25333 msgstr ""
25334
25335 #. type: textblock
25336 #: ../src/guestfs-actions.pod:3987 ../src/guestfs-actions.pod:6762
25337 msgid ""
25338 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25339 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25340 msgstr ""
25341
25342 #. type: textblock
25343 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766 ../src/guestfs-actions.pod:6784 ../src/guestfs-actions.pod:7165
25344 msgid "(Added in 0.9.2)"
25345 msgstr ""
25346
25347 #. type: =head2
25348 #: ../src/guestfs-actions.pod:3993
25349 msgid "guestfs_lstatlist"
25350 msgstr ""
25351
25352 #. type: verbatim
25353 #: ../src/guestfs-actions.pod:3995
25354 #, no-wrap
25355 msgid ""
25356 " struct guestfs_stat_list *\n"
25357 " guestfs_lstatlist (guestfs_h *g,\n"
25358 "                    const char *path,\n"
25359 "                    char *const *names);\n"
25360 "\n"
25361 msgstr ""
25362
25363 #. type: textblock
25364 #: ../src/guestfs-actions.pod:4000
25365 msgid ""
25366 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25367 "files, where all files are in the directory C<path>.  C<names> is the list "
25368 "of files from this directory."
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../src/guestfs-actions.pod:4009
25373 msgid ""
25374 "This call is intended for programs that want to efficiently list a directory "
25375 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25376 "for a similarly efficient call for getting extended attributes.  Very long "
25377 "directory listings might cause the protocol message size to be exceeded, "
25378 "causing this call to fail.  The caller must split up such requests into "
25379 "smaller groups of names."
25380 msgstr ""
25381
25382 #. type: textblock
25383 #: ../src/guestfs-actions.pod:4017
25384 msgid ""
25385 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25386 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25387 msgstr ""
25388
25389 #. type: =head2
25390 #: ../src/guestfs-actions.pod:4023
25391 msgid "guestfs_luks_add_key"
25392 msgstr ""
25393
25394 #. type: verbatim
25395 #: ../src/guestfs-actions.pod:4025
25396 #, no-wrap
25397 msgid ""
25398 " int\n"
25399 " guestfs_luks_add_key (guestfs_h *g,\n"
25400 "                       const char *device,\n"
25401 "                       const char *key,\n"
25402 "                       const char *newkey,\n"
25403 "                       int keyslot);\n"
25404 "\n"
25405 msgstr ""
25406
25407 #. type: textblock
25408 #: ../src/guestfs-actions.pod:4037
25409 msgid ""
25410 "Note that if C<keyslot> already contains a key, then this command will "
25411 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25412 msgstr ""
25413
25414 #. type: textblock
25415 #: ../src/guestfs-actions.pod:4043 ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4106 ../src/guestfs-actions.pod:4126 ../src/guestfs-actions.pod:4161 ../src/guestfs-actions.pod:4180
25416 msgid ""
25417 "This function takes a key or passphrase parameter which could contain "
25418 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25419 "information."
25420 msgstr ""
25421
25422 #. type: textblock
25423 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087 ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
25424 msgid "(Added in 1.5.2)"
25425 msgstr ""
25426
25427 #. type: =head2
25428 #: ../src/guestfs-actions.pod:4049
25429 msgid "guestfs_luks_close"
25430 msgstr ""
25431
25432 #. type: verbatim
25433 #: ../src/guestfs-actions.pod:4051
25434 #, no-wrap
25435 msgid ""
25436 " int\n"
25437 " guestfs_luks_close (guestfs_h *g,\n"
25438 "                     const char *device);\n"
25439 "\n"
25440 msgstr ""
25441
25442 #. type: textblock
25443 #: ../src/guestfs-actions.pod:4055
25444 msgid ""
25445 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25446 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25447 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25448 "underlying block device."
25449 msgstr ""
25450
25451 #. type: textblock
25452 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4184 ../src/guestfs-actions.pod:4234 ../src/guestfs-actions.pod:4282
25453 msgid "(Added in 1.5.1)"
25454 msgstr ""
25455
25456 #. type: =head2
25457 #: ../src/guestfs-actions.pod:4065
25458 msgid "guestfs_luks_format"
25459 msgstr ""
25460
25461 #. type: verbatim
25462 #: ../src/guestfs-actions.pod:4067
25463 #, no-wrap
25464 msgid ""
25465 " int\n"
25466 " guestfs_luks_format (guestfs_h *g,\n"
25467 "                      const char *device,\n"
25468 "                      const char *key,\n"
25469 "                      int keyslot);\n"
25470 "\n"
25471 msgstr ""
25472
25473 #. type: =head2
25474 #: ../src/guestfs-actions.pod:4089
25475 msgid "guestfs_luks_format_cipher"
25476 msgstr ""
25477
25478 #. type: verbatim
25479 #: ../src/guestfs-actions.pod:4091
25480 #, no-wrap
25481 msgid ""
25482 " int\n"
25483 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25484 "                             const char *device,\n"
25485 "                             const char *key,\n"
25486 "                             int keyslot,\n"
25487 "                             const char *cipher);\n"
25488 "\n"
25489 msgstr ""
25490
25491 #. type: textblock
25492 #: ../src/guestfs-actions.pod:4098
25493 msgid ""
25494 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25495 "set the C<cipher> used."
25496 msgstr ""
25497
25498 #. type: =head2
25499 #: ../src/guestfs-actions.pod:4112
25500 msgid "guestfs_luks_kill_slot"
25501 msgstr ""
25502
25503 #. type: verbatim
25504 #: ../src/guestfs-actions.pod:4114
25505 #, no-wrap
25506 msgid ""
25507 " int\n"
25508 " guestfs_luks_kill_slot (guestfs_h *g,\n"
25509 "                         const char *device,\n"
25510 "                         const char *key,\n"
25511 "                         int keyslot);\n"
25512 "\n"
25513 msgstr ""
25514
25515 #. type: =head2
25516 #: ../src/guestfs-actions.pod:4132
25517 msgid "guestfs_luks_open"
25518 msgstr ""
25519
25520 #. type: verbatim
25521 #: ../src/guestfs-actions.pod:4134
25522 #, no-wrap
25523 msgid ""
25524 " int\n"
25525 " guestfs_luks_open (guestfs_h *g,\n"
25526 "                    const char *device,\n"
25527 "                    const char *key,\n"
25528 "                    const char *mapname);\n"
25529 "\n"
25530 msgstr ""
25531
25532 #. type: textblock
25533 #: ../src/guestfs-actions.pod:4152
25534 msgid ""
25535 "If this block device contains LVM volume groups, then calling "
25536 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
25537 "visible."
25538 msgstr ""
25539
25540 #. type: textblock
25541 #: ../src/guestfs-actions.pod:4156
25542 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
25543 msgstr ""
25544
25545 #. type: =head2
25546 #: ../src/guestfs-actions.pod:4167
25547 msgid "guestfs_luks_open_ro"
25548 msgstr ""
25549
25550 #. type: verbatim
25551 #: ../src/guestfs-actions.pod:4169
25552 #, no-wrap
25553 msgid ""
25554 " int\n"
25555 " guestfs_luks_open_ro (guestfs_h *g,\n"
25556 "                       const char *device,\n"
25557 "                       const char *key,\n"
25558 "                       const char *mapname);\n"
25559 "\n"
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../src/guestfs-actions.pod:4175
25564 msgid ""
25565 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
25566 "created."
25567 msgstr ""
25568
25569 #. type: =head2
25570 #: ../src/guestfs-actions.pod:4186
25571 msgid "guestfs_lvcreate"
25572 msgstr ""
25573
25574 #. type: verbatim
25575 #: ../src/guestfs-actions.pod:4188
25576 #, no-wrap
25577 msgid ""
25578 " int\n"
25579 " guestfs_lvcreate (guestfs_h *g,\n"
25580 "                   const char *logvol,\n"
25581 "                   const char *volgroup,\n"
25582 "                   int mbytes);\n"
25583 "\n"
25584 msgstr ""
25585
25586 #. type: =head2
25587 #: ../src/guestfs-actions.pod:4201
25588 msgid "guestfs_lvm_canonical_lv_name"
25589 msgstr ""
25590
25591 #. type: verbatim
25592 #: ../src/guestfs-actions.pod:4203
25593 #, no-wrap
25594 msgid ""
25595 " char *\n"
25596 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
25597 "                                const char *lvname);\n"
25598 "\n"
25599 msgstr ""
25600
25601 #. type: textblock
25602 #: ../src/guestfs-actions.pod:4214
25603 msgid "See also C<guestfs_is_lv>."
25604 msgstr ""
25605
25606 #. type: textblock
25607 #: ../src/guestfs-actions.pod:4219
25608 msgid "(Added in 1.5.24)"
25609 msgstr ""
25610
25611 #. type: =head2
25612 #: ../src/guestfs-actions.pod:4221
25613 msgid "guestfs_lvm_clear_filter"
25614 msgstr ""
25615
25616 #. type: verbatim
25617 #: ../src/guestfs-actions.pod:4223
25618 #, no-wrap
25619 msgid ""
25620 " int\n"
25621 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
25622 "\n"
25623 msgstr ""
25624
25625 #. type: textblock
25626 #: ../src/guestfs-actions.pod:4226
25627 msgid ""
25628 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
25629 "see every block device."
25630 msgstr ""
25631
25632 #. type: =head2
25633 #: ../src/guestfs-actions.pod:4236
25634 msgid "guestfs_lvm_remove_all"
25635 msgstr ""
25636
25637 #. type: verbatim
25638 #: ../src/guestfs-actions.pod:4238
25639 #, no-wrap
25640 msgid ""
25641 " int\n"
25642 " guestfs_lvm_remove_all (guestfs_h *g);\n"
25643 "\n"
25644 msgstr ""
25645
25646 #. type: =head2
25647 #: ../src/guestfs-actions.pod:4251
25648 msgid "guestfs_lvm_set_filter"
25649 msgstr ""
25650
25651 #. type: verbatim
25652 #: ../src/guestfs-actions.pod:4253
25653 #, no-wrap
25654 msgid ""
25655 " int\n"
25656 " guestfs_lvm_set_filter (guestfs_h *g,\n"
25657 "                         char *const *devices);\n"
25658 "\n"
25659 msgstr ""
25660
25661 #. type: =head2
25662 #: ../src/guestfs-actions.pod:4284
25663 msgid "guestfs_lvremove"
25664 msgstr ""
25665
25666 #. type: verbatim
25667 #: ../src/guestfs-actions.pod:4286
25668 #, no-wrap
25669 msgid ""
25670 " int\n"
25671 " guestfs_lvremove (guestfs_h *g,\n"
25672 "                   const char *device);\n"
25673 "\n"
25674 msgstr ""
25675
25676 #. type: textblock
25677 #: ../src/guestfs-actions.pod:4298 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:7535
25678 msgid "(Added in 1.0.13)"
25679 msgstr ""
25680
25681 #. type: =head2
25682 #: ../src/guestfs-actions.pod:4300
25683 msgid "guestfs_lvrename"
25684 msgstr ""
25685
25686 #. type: verbatim
25687 #: ../src/guestfs-actions.pod:4302
25688 #, no-wrap
25689 msgid ""
25690 " int\n"
25691 " guestfs_lvrename (guestfs_h *g,\n"
25692 "                   const char *logvol,\n"
25693 "                   const char *newlogvol);\n"
25694 "\n"
25695 msgstr ""
25696
25697 #. type: textblock
25698 #: ../src/guestfs-actions.pod:4311 ../src/guestfs-actions.pod:7548
25699 msgid "(Added in 1.0.83)"
25700 msgstr ""
25701
25702 #. type: =head2
25703 #: ../src/guestfs-actions.pod:4313
25704 msgid "guestfs_lvresize"
25705 msgstr ""
25706
25707 #. type: verbatim
25708 #: ../src/guestfs-actions.pod:4315
25709 #, no-wrap
25710 msgid ""
25711 " int\n"
25712 " guestfs_lvresize (guestfs_h *g,\n"
25713 "                   const char *device,\n"
25714 "                   int mbytes);\n"
25715 "\n"
25716 msgstr ""
25717
25718 #. type: =head2
25719 #: ../src/guestfs-actions.pod:4328
25720 msgid "guestfs_lvresize_free"
25721 msgstr ""
25722
25723 #. type: verbatim
25724 #: ../src/guestfs-actions.pod:4330
25725 #, no-wrap
25726 msgid ""
25727 " int\n"
25728 " guestfs_lvresize_free (guestfs_h *g,\n"
25729 "                        const char *lv,\n"
25730 "                        int percent);\n"
25731 "\n"
25732 msgstr ""
25733
25734 #. type: textblock
25735 #: ../src/guestfs-actions.pod:4343
25736 msgid "(Added in 1.3.3)"
25737 msgstr ""
25738
25739 #. type: =head2
25740 #: ../src/guestfs-actions.pod:4345
25741 msgid "guestfs_lvs"
25742 msgstr ""
25743
25744 #. type: verbatim
25745 #: ../src/guestfs-actions.pod:4347
25746 #, no-wrap
25747 msgid ""
25748 " char **\n"
25749 " guestfs_lvs (guestfs_h *g);\n"
25750 "\n"
25751 msgstr ""
25752
25753 #. type: textblock
25754 #: ../src/guestfs-actions.pod:4356
25755 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
25756 msgstr ""
25757
25758 #. type: =head2
25759 #: ../src/guestfs-actions.pod:4364
25760 msgid "guestfs_lvs_full"
25761 msgstr ""
25762
25763 #. type: verbatim
25764 #: ../src/guestfs-actions.pod:4366
25765 #, no-wrap
25766 msgid ""
25767 " struct guestfs_lvm_lv_list *\n"
25768 " guestfs_lvs_full (guestfs_h *g);\n"
25769 "\n"
25770 msgstr ""
25771
25772 #. type: textblock
25773 #: ../src/guestfs-actions.pod:4372
25774 msgid ""
25775 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
25776 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
25777 "use>."
25778 msgstr ""
25779
25780 #. type: =head2
25781 #: ../src/guestfs-actions.pod:4378
25782 msgid "guestfs_lvuuid"
25783 msgstr ""
25784
25785 #. type: verbatim
25786 #: ../src/guestfs-actions.pod:4380
25787 #, no-wrap
25788 msgid ""
25789 " char *\n"
25790 " guestfs_lvuuid (guestfs_h *g,\n"
25791 "                 const char *device);\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: =head2
25796 #: ../src/guestfs-actions.pod:4391
25797 msgid "guestfs_lxattrlist"
25798 msgstr ""
25799
25800 #. type: verbatim
25801 #: ../src/guestfs-actions.pod:4393
25802 #, no-wrap
25803 msgid ""
25804 " struct guestfs_xattr_list *\n"
25805 " guestfs_lxattrlist (guestfs_h *g,\n"
25806 "                     const char *path,\n"
25807 "                     char *const *names);\n"
25808 "\n"
25809 msgstr ""
25810
25811 #. type: textblock
25812 #: ../src/guestfs-actions.pod:4412
25813 msgid ""
25814 "This call is intended for programs that want to efficiently list a directory "
25815 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
25816 "a similarly efficient call for getting standard stats.  Very long directory "
25817 "listings might cause the protocol message size to be exceeded, causing this "
25818 "call to fail.  The caller must split up such requests into smaller groups of "
25819 "names."
25820 msgstr ""
25821
25822 #. type: =head2
25823 #: ../src/guestfs-actions.pod:4426
25824 msgid "guestfs_mkdir"
25825 msgstr ""
25826
25827 #. type: verbatim
25828 #: ../src/guestfs-actions.pod:4428
25829 #, no-wrap
25830 msgid ""
25831 " int\n"
25832 " guestfs_mkdir (guestfs_h *g,\n"
25833 "                const char *path);\n"
25834 "\n"
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../src/guestfs-actions.pod:4438
25839 msgid "guestfs_mkdir_mode"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:4440
25844 #, no-wrap
25845 msgid ""
25846 " int\n"
25847 " guestfs_mkdir_mode (guestfs_h *g,\n"
25848 "                     const char *path,\n"
25849 "                     int mode);\n"
25850 "\n"
25851 msgstr ""
25852
25853 #. type: textblock
25854 #: ../src/guestfs-actions.pod:4452
25855 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
25856 msgstr ""
25857
25858 #. type: =head2
25859 #: ../src/guestfs-actions.pod:4458
25860 msgid "guestfs_mkdir_p"
25861 msgstr ""
25862
25863 #. type: verbatim
25864 #: ../src/guestfs-actions.pod:4460
25865 #, no-wrap
25866 msgid ""
25867 " int\n"
25868 " guestfs_mkdir_p (guestfs_h *g,\n"
25869 "                  const char *path);\n"
25870 "\n"
25871 msgstr ""
25872
25873 #. type: =head2
25874 #: ../src/guestfs-actions.pod:4471
25875 msgid "guestfs_mkdtemp"
25876 msgstr ""
25877
25878 #. type: verbatim
25879 #: ../src/guestfs-actions.pod:4473
25880 #, no-wrap
25881 msgid ""
25882 " char *\n"
25883 " guestfs_mkdtemp (guestfs_h *g,\n"
25884 "                  const char *template);\n"
25885 "\n"
25886 msgstr ""
25887
25888 #. type: =head2
25889 #: ../src/guestfs-actions.pod:4501
25890 msgid "guestfs_mke2fs_J"
25891 msgstr ""
25892
25893 #. type: verbatim
25894 #: ../src/guestfs-actions.pod:4503
25895 #, no-wrap
25896 msgid ""
25897 " int\n"
25898 " guestfs_mke2fs_J (guestfs_h *g,\n"
25899 "                   const char *fstype,\n"
25900 "                   int blocksize,\n"
25901 "                   const char *device,\n"
25902 "                   const char *journal);\n"
25903 "\n"
25904 msgstr ""
25905
25906 #. type: textblock
25907 #: ../src/guestfs-actions.pod:4516
25908 msgid "See also C<guestfs_mke2journal>."
25909 msgstr ""
25910
25911 #. type: textblock
25912 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4538 ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4572 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4600 ../src/guestfs-actions.pod:4659 ../src/guestfs-actions.pod:4936
25913 msgid "(Added in 1.0.68)"
25914 msgstr ""
25915
25916 #. type: =head2
25917 #: ../src/guestfs-actions.pod:4522
25918 msgid "guestfs_mke2fs_JL"
25919 msgstr ""
25920
25921 #. type: verbatim
25922 #: ../src/guestfs-actions.pod:4524
25923 #, no-wrap
25924 msgid ""
25925 " int\n"
25926 " guestfs_mke2fs_JL (guestfs_h *g,\n"
25927 "                    const char *fstype,\n"
25928 "                    int blocksize,\n"
25929 "                    const char *device,\n"
25930 "                    const char *label);\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: textblock
25935 #: ../src/guestfs-actions.pod:4534
25936 msgid "See also C<guestfs_mke2journal_L>."
25937 msgstr ""
25938
25939 #. type: =head2
25940 #: ../src/guestfs-actions.pod:4540
25941 msgid "guestfs_mke2fs_JU"
25942 msgstr ""
25943
25944 #. type: verbatim
25945 #: ../src/guestfs-actions.pod:4542
25946 #, no-wrap
25947 msgid ""
25948 " int\n"
25949 " guestfs_mke2fs_JU (guestfs_h *g,\n"
25950 "                    const char *fstype,\n"
25951 "                    int blocksize,\n"
25952 "                    const char *device,\n"
25953 "                    const char *uuid);\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: textblock
25958 #: ../src/guestfs-actions.pod:4552
25959 msgid "See also C<guestfs_mke2journal_U>."
25960 msgstr ""
25961
25962 #. type: =head2
25963 #: ../src/guestfs-actions.pod:4558
25964 msgid "guestfs_mke2journal"
25965 msgstr ""
25966
25967 #. type: verbatim
25968 #: ../src/guestfs-actions.pod:4560
25969 #, no-wrap
25970 msgid ""
25971 " int\n"
25972 " guestfs_mke2journal (guestfs_h *g,\n"
25973 "                      int blocksize,\n"
25974 "                      const char *device);\n"
25975 "\n"
25976 msgstr ""
25977
25978 #. type: =head2
25979 #: ../src/guestfs-actions.pod:4574
25980 msgid "guestfs_mke2journal_L"
25981 msgstr ""
25982
25983 #. type: verbatim
25984 #: ../src/guestfs-actions.pod:4576
25985 #, no-wrap
25986 msgid ""
25987 " int\n"
25988 " guestfs_mke2journal_L (guestfs_h *g,\n"
25989 "                        int blocksize,\n"
25990 "                        const char *label,\n"
25991 "                        const char *device);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../src/guestfs-actions.pod:4588
25997 msgid "guestfs_mke2journal_U"
25998 msgstr ""
25999
26000 #. type: verbatim
26001 #: ../src/guestfs-actions.pod:4590
26002 #, no-wrap
26003 msgid ""
26004 " int\n"
26005 " guestfs_mke2journal_U (guestfs_h *g,\n"
26006 "                        int blocksize,\n"
26007 "                        const char *uuid,\n"
26008 "                        const char *device);\n"
26009 "\n"
26010 msgstr ""
26011
26012 #. type: =head2
26013 #: ../src/guestfs-actions.pod:4602
26014 msgid "guestfs_mkfifo"
26015 msgstr ""
26016
26017 #. type: verbatim
26018 #: ../src/guestfs-actions.pod:4604
26019 #, no-wrap
26020 msgid ""
26021 " int\n"
26022 " guestfs_mkfifo (guestfs_h *g,\n"
26023 "                 int mode,\n"
26024 "                 const char *path);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:4609
26030 msgid ""
26031 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
26032 "is just a convenient wrapper around C<guestfs_mknod>."
26033 msgstr ""
26034
26035 #. type: =head2
26036 #: ../src/guestfs-actions.pod:4619
26037 msgid "guestfs_mkfs"
26038 msgstr ""
26039
26040 #. type: verbatim
26041 #: ../src/guestfs-actions.pod:4621
26042 #, no-wrap
26043 msgid ""
26044 " int\n"
26045 " guestfs_mkfs (guestfs_h *g,\n"
26046 "               const char *fstype,\n"
26047 "               const char *device);\n"
26048 "\n"
26049 msgstr ""
26050
26051 #. type: =head2
26052 #: ../src/guestfs-actions.pod:4634
26053 msgid "guestfs_mkfs_b"
26054 msgstr ""
26055
26056 #. type: verbatim
26057 #: ../src/guestfs-actions.pod:4636
26058 #, no-wrap
26059 msgid ""
26060 " int\n"
26061 " guestfs_mkfs_b (guestfs_h *g,\n"
26062 "                 const char *fstype,\n"
26063 "                 int blocksize,\n"
26064 "                 const char *device);\n"
26065 "\n"
26066 msgstr ""
26067
26068 #. type: textblock
26069 #: ../src/guestfs-actions.pod:4642
26070 msgid ""
26071 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
26072 "block size of the resulting filesystem.  Supported block sizes depend on the "
26073 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
26074 msgstr ""
26075
26076 #. type: textblock
26077 #: ../src/guestfs-actions.pod:4652
26078 msgid ""
26079 "This function is deprecated.  In new code, use the L</guestfs_mkfs_opts> "
26080 "call instead."
26081 msgstr ""
26082
26083 #. type: =head2
26084 #: ../src/guestfs-actions.pod:4661
26085 msgid "guestfs_mkfs_opts"
26086 msgstr ""
26087
26088 #. type: verbatim
26089 #: ../src/guestfs-actions.pod:4663
26090 #, no-wrap
26091 msgid ""
26092 " int\n"
26093 " guestfs_mkfs_opts (guestfs_h *g,\n"
26094 "                    const char *fstype,\n"
26095 "                    const char *device,\n"
26096 "                    ...);\n"
26097 "\n"
26098 msgstr ""
26099
26100 #. type: verbatim
26101 #: ../src/guestfs-actions.pod:4674
26102 #, no-wrap
26103 msgid ""
26104 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
26105 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
26106 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
26107 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
26108 "\n"
26109 msgstr ""
26110
26111 #. type: textblock
26112 #: ../src/guestfs-actions.pod:4722
26113 msgid "(Added in 1.7.19)"
26114 msgstr ""
26115
26116 #. type: =head2
26117 #: ../src/guestfs-actions.pod:4724
26118 msgid "guestfs_mkfs_opts_va"
26119 msgstr ""
26120
26121 #. type: verbatim
26122 #: ../src/guestfs-actions.pod:4726
26123 #, no-wrap
26124 msgid ""
26125 " int\n"
26126 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26127 "                       const char *fstype,\n"
26128 "                       const char *device,\n"
26129 "                       va_list args);\n"
26130 "\n"
26131 msgstr ""
26132
26133 #. type: textblock
26134 #: ../src/guestfs-actions.pod:4732
26135 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26136 msgstr ""
26137
26138 #. type: =head2
26139 #: ../src/guestfs-actions.pod:4736
26140 msgid "guestfs_mkfs_opts_argv"
26141 msgstr ""
26142
26143 #. type: verbatim
26144 #: ../src/guestfs-actions.pod:4738
26145 #, no-wrap
26146 msgid ""
26147 " int\n"
26148 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26149 "                         const char *fstype,\n"
26150 "                         const char *device,\n"
26151 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26152 "\n"
26153 msgstr ""
26154
26155 #. type: textblock
26156 #: ../src/guestfs-actions.pod:4744
26157 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26158 msgstr ""
26159
26160 #. type: =head2
26161 #: ../src/guestfs-actions.pod:4748
26162 msgid "guestfs_mkmountpoint"
26163 msgstr ""
26164
26165 #. type: verbatim
26166 #: ../src/guestfs-actions.pod:4750
26167 #, no-wrap
26168 msgid ""
26169 " int\n"
26170 " guestfs_mkmountpoint (guestfs_h *g,\n"
26171 "                       const char *exemptpath);\n"
26172 "\n"
26173 msgstr ""
26174
26175 #. type: textblock
26176 #: ../src/guestfs-actions.pod:4754
26177 msgid ""
26178 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26179 "that can be used to create extra mountpoints before mounting the first "
26180 "filesystem."
26181 msgstr ""
26182
26183 #. type: textblock
26184 #: ../src/guestfs-actions.pod:4778
26185 msgid ""
26186 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26187 "may get unexpected errors if you try to mix these calls.  It is safest to "
26188 "manually unmount filesystems and remove mountpoints after use."
26189 msgstr ""
26190
26191 #. type: textblock
26192 #: ../src/guestfs-actions.pod:4782
26193 msgid ""
26194 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26195 "first, so for this to work for manual mountpoints, you must ensure that the "
26196 "innermost mountpoints have the longest pathnames, as in the example code "
26197 "above."
26198 msgstr ""
26199
26200 #. type: textblock
26201 #: ../src/guestfs-actions.pod:4789
26202 msgid ""
26203 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26204 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26205 "can also trigger these issues."
26206 msgstr ""
26207
26208 #. type: textblock
26209 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:6121
26210 msgid "(Added in 1.0.62)"
26211 msgstr ""
26212
26213 #. type: =head2
26214 #: ../src/guestfs-actions.pod:4797
26215 msgid "guestfs_mknod"
26216 msgstr ""
26217
26218 #. type: verbatim
26219 #: ../src/guestfs-actions.pod:4799
26220 #, no-wrap
26221 msgid ""
26222 " int\n"
26223 " guestfs_mknod (guestfs_h *g,\n"
26224 "                int mode,\n"
26225 "                int devmajor,\n"
26226 "                int devminor,\n"
26227 "                const char *path);\n"
26228 "\n"
26229 msgstr ""
26230
26231 #. type: textblock
26232 #: ../src/guestfs-actions.pod:4814
26233 msgid ""
26234 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26235 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26236 "regular file).  These constants are available in the standard Linux header "
26237 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26238 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26239 "the appropriate constant for you."
26240 msgstr ""
26241
26242 #. type: =head2
26243 #: ../src/guestfs-actions.pod:4828
26244 msgid "guestfs_mknod_b"
26245 msgstr ""
26246
26247 #. type: verbatim
26248 #: ../src/guestfs-actions.pod:4830
26249 #, no-wrap
26250 msgid ""
26251 " int\n"
26252 " guestfs_mknod_b (guestfs_h *g,\n"
26253 "                  int mode,\n"
26254 "                  int devmajor,\n"
26255 "                  int devminor,\n"
26256 "                  const char *path);\n"
26257 "\n"
26258 msgstr ""
26259
26260 #. type: textblock
26261 #: ../src/guestfs-actions.pod:4837
26262 msgid ""
26263 "This call creates a block device node called C<path> with mode C<mode> and "
26264 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26265 "wrapper around C<guestfs_mknod>."
26266 msgstr ""
26267
26268 #. type: =head2
26269 #: ../src/guestfs-actions.pod:4847
26270 msgid "guestfs_mknod_c"
26271 msgstr ""
26272
26273 #. type: verbatim
26274 #: ../src/guestfs-actions.pod:4849
26275 #, no-wrap
26276 msgid ""
26277 " int\n"
26278 " guestfs_mknod_c (guestfs_h *g,\n"
26279 "                  int mode,\n"
26280 "                  int devmajor,\n"
26281 "                  int devminor,\n"
26282 "                  const char *path);\n"
26283 "\n"
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:4856
26288 msgid ""
26289 "This call creates a char device node called C<path> with mode C<mode> and "
26290 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26291 "wrapper around C<guestfs_mknod>."
26292 msgstr ""
26293
26294 #. type: =head2
26295 #: ../src/guestfs-actions.pod:4866
26296 msgid "guestfs_mkswap"
26297 msgstr ""
26298
26299 #. type: verbatim
26300 #: ../src/guestfs-actions.pod:4868
26301 #, no-wrap
26302 msgid ""
26303 " int\n"
26304 " guestfs_mkswap (guestfs_h *g,\n"
26305 "                 const char *device);\n"
26306 "\n"
26307 msgstr ""
26308
26309 #. type: =head2
26310 #: ../src/guestfs-actions.pod:4878
26311 msgid "guestfs_mkswap_L"
26312 msgstr ""
26313
26314 #. type: verbatim
26315 #: ../src/guestfs-actions.pod:4880
26316 #, no-wrap
26317 msgid ""
26318 " int\n"
26319 " guestfs_mkswap_L (guestfs_h *g,\n"
26320 "                   const char *label,\n"
26321 "                   const char *device);\n"
26322 "\n"
26323 msgstr ""
26324
26325 #. type: =head2
26326 #: ../src/guestfs-actions.pod:4895
26327 msgid "guestfs_mkswap_U"
26328 msgstr ""
26329
26330 #. type: verbatim
26331 #: ../src/guestfs-actions.pod:4897
26332 #, no-wrap
26333 msgid ""
26334 " int\n"
26335 " guestfs_mkswap_U (guestfs_h *g,\n"
26336 "                   const char *uuid,\n"
26337 "                   const char *device);\n"
26338 "\n"
26339 msgstr ""
26340
26341 #. type: =head2
26342 #: ../src/guestfs-actions.pod:4908
26343 msgid "guestfs_mkswap_file"
26344 msgstr ""
26345
26346 #. type: verbatim
26347 #: ../src/guestfs-actions.pod:4910
26348 #, no-wrap
26349 msgid ""
26350 " int\n"
26351 " guestfs_mkswap_file (guestfs_h *g,\n"
26352 "                      const char *path);\n"
26353 "\n"
26354 msgstr ""
26355
26356 #. type: textblock
26357 #: ../src/guestfs-actions.pod:4916
26358 msgid ""
26359 "This command just writes a swap file signature to an existing file.  To "
26360 "create the file itself, use something like C<guestfs_fallocate>."
26361 msgstr ""
26362
26363 #. type: =head2
26364 #: ../src/guestfs-actions.pod:4923
26365 msgid "guestfs_modprobe"
26366 msgstr ""
26367
26368 #. type: verbatim
26369 #: ../src/guestfs-actions.pod:4925
26370 #, no-wrap
26371 msgid ""
26372 " int\n"
26373 " guestfs_modprobe (guestfs_h *g,\n"
26374 "                   const char *modulename);\n"
26375 "\n"
26376 msgstr ""
26377
26378 #. type: =head2
26379 #: ../src/guestfs-actions.pod:4938
26380 msgid "guestfs_mount"
26381 msgstr ""
26382
26383 #. type: verbatim
26384 #: ../src/guestfs-actions.pod:4940
26385 #, no-wrap
26386 msgid ""
26387 " int\n"
26388 " guestfs_mount (guestfs_h *g,\n"
26389 "                const char *device,\n"
26390 "                const char *mountpoint);\n"
26391 "\n"
26392 msgstr ""
26393
26394 #. type: textblock
26395 #: ../src/guestfs-actions.pod:4959
26396 msgid ""
26397 "B<Important note:> When you use this call, the filesystem options C<sync> "
26398 "and C<noatime> are set implicitly.  This was originally done because we "
26399 "thought it would improve reliability, but it turns out that I<-o sync> has a "
26400 "very large negative performance impact and negligible effect on "
26401 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
26402 "in any code that needs performance, and instead use C<guestfs_mount_options> "
26403 "(use an empty string for the first parameter if you don't want any options)."
26404 msgstr ""
26405
26406 #. type: textblock
26407 #: ../src/guestfs-actions.pod:4971
26408 msgid ""
26409 "This function is deprecated.  In new code, use the L</guestfs_mount_options> "
26410 "call instead."
26411 msgstr ""
26412
26413 #. type: =head2
26414 #: ../src/guestfs-actions.pod:4980
26415 msgid "guestfs_mount_9p"
26416 msgstr ""
26417
26418 #. type: verbatim
26419 #: ../src/guestfs-actions.pod:4982
26420 #, no-wrap
26421 msgid ""
26422 " int\n"
26423 " guestfs_mount_9p (guestfs_h *g,\n"
26424 "                   const char *mounttag,\n"
26425 "                   const char *mountpoint,\n"
26426 "                   ...);\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: verbatim
26431 #: ../src/guestfs-actions.pod:4993
26432 #, no-wrap
26433 msgid ""
26434 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26435 "\n"
26436 msgstr ""
26437
26438 #. type: =head2
26439 #: ../src/guestfs-actions.pod:5006
26440 msgid "guestfs_mount_9p_va"
26441 msgstr ""
26442
26443 #. type: verbatim
26444 #: ../src/guestfs-actions.pod:5008
26445 #, no-wrap
26446 msgid ""
26447 " int\n"
26448 " guestfs_mount_9p_va (guestfs_h *g,\n"
26449 "                      const char *mounttag,\n"
26450 "                      const char *mountpoint,\n"
26451 "                      va_list args);\n"
26452 "\n"
26453 msgstr ""
26454
26455 #. type: textblock
26456 #: ../src/guestfs-actions.pod:5014
26457 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26458 msgstr ""
26459
26460 #. type: =head2
26461 #: ../src/guestfs-actions.pod:5018
26462 msgid "guestfs_mount_9p_argv"
26463 msgstr ""
26464
26465 #. type: verbatim
26466 #: ../src/guestfs-actions.pod:5020
26467 #, no-wrap
26468 msgid ""
26469 " int\n"
26470 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26471 "                        const char *mounttag,\n"
26472 "                        const char *mountpoint,\n"
26473 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26474 "\n"
26475 msgstr ""
26476
26477 #. type: textblock
26478 #: ../src/guestfs-actions.pod:5026
26479 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26480 msgstr ""
26481
26482 #. type: =head2
26483 #: ../src/guestfs-actions.pod:5030
26484 msgid "guestfs_mount_loop"
26485 msgstr ""
26486
26487 #. type: verbatim
26488 #: ../src/guestfs-actions.pod:5032
26489 #, no-wrap
26490 msgid ""
26491 " int\n"
26492 " guestfs_mount_loop (guestfs_h *g,\n"
26493 "                     const char *file,\n"
26494 "                     const char *mountpoint);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: =head2
26499 #: ../src/guestfs-actions.pod:5045
26500 msgid "guestfs_mount_options"
26501 msgstr ""
26502
26503 #. type: verbatim
26504 #: ../src/guestfs-actions.pod:5047
26505 #, no-wrap
26506 msgid ""
26507 " int\n"
26508 " guestfs_mount_options (guestfs_h *g,\n"
26509 "                        const char *options,\n"
26510 "                        const char *device,\n"
26511 "                        const char *mountpoint);\n"
26512 "\n"
26513 msgstr ""
26514
26515 #. type: textblock
26516 #: ../src/guestfs-actions.pod:5053
26517 msgid ""
26518 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26519 "the mount options as for the L<mount(8)> I<-o> flag."
26520 msgstr ""
26521
26522 #. type: textblock
26523 #: ../src/guestfs-actions.pod:5063 ../src/guestfs-actions.pod:5077 ../src/guestfs-actions.pod:5094
26524 msgid "(Added in 1.0.10)"
26525 msgstr ""
26526
26527 #. type: =head2
26528 #: ../src/guestfs-actions.pod:5065
26529 msgid "guestfs_mount_ro"
26530 msgstr ""
26531
26532 #. type: verbatim
26533 #: ../src/guestfs-actions.pod:5067
26534 #, no-wrap
26535 msgid ""
26536 " int\n"
26537 " guestfs_mount_ro (guestfs_h *g,\n"
26538 "                   const char *device,\n"
26539 "                   const char *mountpoint);\n"
26540 "\n"
26541 msgstr ""
26542
26543 #. type: textblock
26544 #: ../src/guestfs-actions.pod:5072
26545 msgid ""
26546 "This is the same as the C<guestfs_mount> command, but it mounts the "
26547 "filesystem with the read-only (I<-o ro>) flag."
26548 msgstr ""
26549
26550 #. type: =head2
26551 #: ../src/guestfs-actions.pod:5079
26552 msgid "guestfs_mount_vfs"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../src/guestfs-actions.pod:5081
26557 #, no-wrap
26558 msgid ""
26559 " int\n"
26560 " guestfs_mount_vfs (guestfs_h *g,\n"
26561 "                    const char *options,\n"
26562 "                    const char *vfstype,\n"
26563 "                    const char *device,\n"
26564 "                    const char *mountpoint);\n"
26565 "\n"
26566 msgstr ""
26567
26568 #. type: textblock
26569 #: ../src/guestfs-actions.pod:5088
26570 msgid ""
26571 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26572 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
26573 "I<-t> flags."
26574 msgstr ""
26575
26576 #. type: =head2
26577 #: ../src/guestfs-actions.pod:5096
26578 msgid "guestfs_mountpoints"
26579 msgstr ""
26580
26581 #. type: verbatim
26582 #: ../src/guestfs-actions.pod:5098
26583 #, no-wrap
26584 msgid ""
26585 " char **\n"
26586 " guestfs_mountpoints (guestfs_h *g);\n"
26587 "\n"
26588 msgstr ""
26589
26590 #. type: textblock
26591 #: ../src/guestfs-actions.pod:5101
26592 msgid ""
26593 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
26594 "devices.  This one returns a hash table (map) of device name to directory "
26595 "where the device is mounted."
26596 msgstr ""
26597
26598 #. type: =head2
26599 #: ../src/guestfs-actions.pod:5113
26600 msgid "guestfs_mounts"
26601 msgstr ""
26602
26603 #. type: verbatim
26604 #: ../src/guestfs-actions.pod:5115
26605 #, no-wrap
26606 msgid ""
26607 " char **\n"
26608 " guestfs_mounts (guestfs_h *g);\n"
26609 "\n"
26610 msgstr ""
26611
26612 #. type: textblock
26613 #: ../src/guestfs-actions.pod:5123
26614 msgid "See also: C<guestfs_mountpoints>"
26615 msgstr ""
26616
26617 #. type: =head2
26618 #: ../src/guestfs-actions.pod:5131
26619 msgid "guestfs_mv"
26620 msgstr ""
26621
26622 #. type: verbatim
26623 #: ../src/guestfs-actions.pod:5133
26624 #, no-wrap
26625 msgid ""
26626 " int\n"
26627 " guestfs_mv (guestfs_h *g,\n"
26628 "             const char *src,\n"
26629 "             const char *dest);\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../src/guestfs-actions.pod:5145
26635 msgid "guestfs_ntfs_3g_probe"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../src/guestfs-actions.pod:5147
26640 #, no-wrap
26641 msgid ""
26642 " int\n"
26643 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
26644 "                        int rw,\n"
26645 "                        const char *device);\n"
26646 "\n"
26647 msgstr ""
26648
26649 #. type: textblock
26650 #: ../src/guestfs-actions.pod:5166
26651 msgid "(Added in 1.0.43)"
26652 msgstr ""
26653
26654 #. type: =head2
26655 #: ../src/guestfs-actions.pod:5168
26656 msgid "guestfs_ntfsresize"
26657 msgstr ""
26658
26659 #. type: verbatim
26660 #: ../src/guestfs-actions.pod:5170
26661 #, no-wrap
26662 msgid ""
26663 " int\n"
26664 " guestfs_ntfsresize (guestfs_h *g,\n"
26665 "                     const char *device);\n"
26666 "\n"
26667 msgstr ""
26668
26669 #. type: textblock
26670 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5279
26671 msgid ""
26672 "This function is deprecated.  In new code, use the "
26673 "L</guestfs_ntfsresize_opts> call instead."
26674 msgstr ""
26675
26676 #. type: =head2
26677 #: ../src/guestfs-actions.pod:5198
26678 msgid "guestfs_ntfsresize_opts"
26679 msgstr ""
26680
26681 #. type: verbatim
26682 #: ../src/guestfs-actions.pod:5200
26683 #, no-wrap
26684 msgid ""
26685 " int\n"
26686 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
26687 "                          const char *device,\n"
26688 "                          ...);\n"
26689 "\n"
26690 msgstr ""
26691
26692 #. type: verbatim
26693 #: ../src/guestfs-actions.pod:5210
26694 #, no-wrap
26695 msgid ""
26696 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
26697 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
26698 "\n"
26699 msgstr ""
26700
26701 #. type: textblock
26702 #: ../src/guestfs-actions.pod:5230
26703 msgid ""
26704 "After the resize operation, the filesystem is always marked as requiring a "
26705 "consistency check (for safety).  You have to boot into Windows to perform "
26706 "this check and clear this condition.  If you I<don't> set the C<force> "
26707 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
26708 "times on a single filesystem without booting into Windows between each "
26709 "resize."
26710 msgstr ""
26711
26712 #. type: =head2
26713 #: ../src/guestfs-actions.pod:5245
26714 msgid "guestfs_ntfsresize_opts_va"
26715 msgstr ""
26716
26717 #. type: verbatim
26718 #: ../src/guestfs-actions.pod:5247
26719 #, no-wrap
26720 msgid ""
26721 " int\n"
26722 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
26723 "                             const char *device,\n"
26724 "                             va_list args);\n"
26725 "\n"
26726 msgstr ""
26727
26728 #. type: textblock
26729 #: ../src/guestfs-actions.pod:5252
26730 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
26731 msgstr ""
26732
26733 #. type: =head2
26734 #: ../src/guestfs-actions.pod:5256
26735 msgid "guestfs_ntfsresize_opts_argv"
26736 msgstr ""
26737
26738 #. type: verbatim
26739 #: ../src/guestfs-actions.pod:5258
26740 #, no-wrap
26741 msgid ""
26742 " int\n"
26743 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
26744 "                               const char *device,\n"
26745 "                               const struct guestfs_ntfsresize_opts_argv "
26746 "*optargs);\n"
26747 "\n"
26748 msgstr ""
26749
26750 #. type: textblock
26751 #: ../src/guestfs-actions.pod:5263
26752 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
26753 msgstr ""
26754
26755 #. type: =head2
26756 #: ../src/guestfs-actions.pod:5267
26757 msgid "guestfs_ntfsresize_size"
26758 msgstr ""
26759
26760 #. type: verbatim
26761 #: ../src/guestfs-actions.pod:5269
26762 #, no-wrap
26763 msgid ""
26764 " int\n"
26765 " guestfs_ntfsresize_size (guestfs_h *g,\n"
26766 "                          const char *device,\n"
26767 "                          int64_t size);\n"
26768 "\n"
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:5274
26773 msgid ""
26774 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
26775 "to specify the new size (in bytes) explicitly."
26776 msgstr ""
26777
26778 #. type: textblock
26779 #: ../src/guestfs-actions.pod:5286 ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5801 ../src/guestfs-actions.pod:6069 ../src/guestfs-actions.pod:7692
26780 msgid "(Added in 1.3.14)"
26781 msgstr ""
26782
26783 #. type: =head2
26784 #: ../src/guestfs-actions.pod:5288
26785 msgid "guestfs_part_add"
26786 msgstr ""
26787
26788 #. type: verbatim
26789 #: ../src/guestfs-actions.pod:5290
26790 #, no-wrap
26791 msgid ""
26792 " int\n"
26793 " guestfs_part_add (guestfs_h *g,\n"
26794 "                   const char *device,\n"
26795 "                   const char *prlogex,\n"
26796 "                   int64_t startsect,\n"
26797 "                   int64_t endsect);\n"
26798 "\n"
26799 msgstr ""
26800
26801 #. type: textblock
26802 #: ../src/guestfs-actions.pod:5297
26803 msgid ""
26804 "This command adds a partition to C<device>.  If there is no partition table "
26805 "on the device, call C<guestfs_part_init> first."
26806 msgstr ""
26807
26808 #. type: textblock
26809 #: ../src/guestfs-actions.pod:5309
26810 msgid ""
26811 "Creating a partition which covers the whole disk is not so easy.  Use "
26812 "C<guestfs_part_disk> to do that."
26813 msgstr ""
26814
26815 #. type: textblock
26816 #: ../src/guestfs-actions.pod:5314 ../src/guestfs-actions.pod:5352 ../src/guestfs-actions.pod:5405 ../src/guestfs-actions.pod:5489 ../src/guestfs-actions.pod:5527 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:5586
26817 msgid "(Added in 1.0.78)"
26818 msgstr ""
26819
26820 #. type: =head2
26821 #: ../src/guestfs-actions.pod:5316
26822 msgid "guestfs_part_del"
26823 msgstr ""
26824
26825 #. type: verbatim
26826 #: ../src/guestfs-actions.pod:5318
26827 #, no-wrap
26828 msgid ""
26829 " int\n"
26830 " guestfs_part_del (guestfs_h *g,\n"
26831 "                   const char *device,\n"
26832 "                   int partnum);\n"
26833 "\n"
26834 msgstr ""
26835
26836 #. type: =head2
26837 #: ../src/guestfs-actions.pod:5333
26838 msgid "guestfs_part_disk"
26839 msgstr ""
26840
26841 #. type: verbatim
26842 #: ../src/guestfs-actions.pod:5335
26843 #, no-wrap
26844 msgid ""
26845 " int\n"
26846 " guestfs_part_disk (guestfs_h *g,\n"
26847 "                    const char *device,\n"
26848 "                    const char *parttype);\n"
26849 "\n"
26850 msgstr ""
26851
26852 #. type: textblock
26853 #: ../src/guestfs-actions.pod:5340
26854 msgid ""
26855 "This command is simply a combination of C<guestfs_part_init> followed by "
26856 "C<guestfs_part_add> to create a single primary partition covering the whole "
26857 "disk."
26858 msgstr ""
26859
26860 #. type: textblock
26861 #: ../src/guestfs-actions.pod:5344
26862 msgid ""
26863 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26864 "possible values are described in C<guestfs_part_init>."
26865 msgstr ""
26866
26867 #. type: =head2
26868 #: ../src/guestfs-actions.pod:5354
26869 msgid "guestfs_part_get_bootable"
26870 msgstr ""
26871
26872 #. type: verbatim
26873 #: ../src/guestfs-actions.pod:5356
26874 #, no-wrap
26875 msgid ""
26876 " int\n"
26877 " guestfs_part_get_bootable (guestfs_h *g,\n"
26878 "                            const char *device,\n"
26879 "                            int partnum);\n"
26880 "\n"
26881 msgstr ""
26882
26883 #. type: textblock
26884 #: ../src/guestfs-actions.pod:5364
26885 msgid "See also C<guestfs_part_set_bootable>."
26886 msgstr ""
26887
26888 #. type: =head2
26889 #: ../src/guestfs-actions.pod:5370
26890 msgid "guestfs_part_get_mbr_id"
26891 msgstr ""
26892
26893 #. type: verbatim
26894 #: ../src/guestfs-actions.pod:5372
26895 #, no-wrap
26896 msgid ""
26897 " int\n"
26898 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
26899 "                          const char *device,\n"
26900 "                          int partnum);\n"
26901 "\n"
26902 msgstr ""
26903
26904 #. type: textblock
26905 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5562
26906 msgid ""
26907 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26908 "undefined results for other partition table types (see "
26909 "C<guestfs_part_get_parttype>)."
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:5388
26914 msgid "guestfs_part_get_parttype"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:5390
26919 #, no-wrap
26920 msgid ""
26921 " char *\n"
26922 " guestfs_part_get_parttype (guestfs_h *g,\n"
26923 "                            const char *device);\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: textblock
26928 #: ../src/guestfs-actions.pod:5397
26929 msgid ""
26930 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26931 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26932 "possible, although unusual.  See C<guestfs_part_init> for a full list."
26933 msgstr ""
26934
26935 #. type: =head2
26936 #: ../src/guestfs-actions.pod:5407
26937 msgid "guestfs_part_init"
26938 msgstr ""
26939
26940 #. type: verbatim
26941 #: ../src/guestfs-actions.pod:5409
26942 #, no-wrap
26943 msgid ""
26944 " int\n"
26945 " guestfs_part_init (guestfs_h *g,\n"
26946 "                    const char *device,\n"
26947 "                    const char *parttype);\n"
26948 "\n"
26949 msgstr ""
26950
26951 #. type: textblock
26952 #: ../src/guestfs-actions.pod:5418
26953 msgid ""
26954 "Initially there are no partitions.  Following this, you should call "
26955 "C<guestfs_part_add> for each partition required."
26956 msgstr ""
26957
26958 #. type: =head2
26959 #: ../src/guestfs-actions.pod:5491
26960 msgid "guestfs_part_list"
26961 msgstr ""
26962
26963 #. type: verbatim
26964 #: ../src/guestfs-actions.pod:5493
26965 #, no-wrap
26966 msgid ""
26967 " struct guestfs_partition_list *\n"
26968 " guestfs_part_list (guestfs_h *g,\n"
26969 "                    const char *device);\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: textblock
26974 #: ../src/guestfs-actions.pod:5510
26975 msgid ""
26976 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26977 "the device's sector size, see C<guestfs_blockdev_getss>."
26978 msgstr ""
26979
26980 #. type: textblock
26981 #: ../src/guestfs-actions.pod:5523
26982 msgid ""
26983 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
26984 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
26985 "use>."
26986 msgstr ""
26987
26988 #. type: =head2
26989 #: ../src/guestfs-actions.pod:5529
26990 msgid "guestfs_part_set_bootable"
26991 msgstr ""
26992
26993 #. type: verbatim
26994 #: ../src/guestfs-actions.pod:5531
26995 #, no-wrap
26996 msgid ""
26997 " int\n"
26998 " guestfs_part_set_bootable (guestfs_h *g,\n"
26999 "                            const char *device,\n"
27000 "                            int partnum,\n"
27001 "                            int bootable);\n"
27002 "\n"
27003 msgstr ""
27004
27005 #. type: =head2
27006 #: ../src/guestfs-actions.pod:5548
27007 msgid "guestfs_part_set_mbr_id"
27008 msgstr ""
27009
27010 #. type: verbatim
27011 #: ../src/guestfs-actions.pod:5550
27012 #, no-wrap
27013 msgid ""
27014 " int\n"
27015 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
27016 "                          const char *device,\n"
27017 "                          int partnum,\n"
27018 "                          int idbyte);\n"
27019 "\n"
27020 msgstr ""
27021
27022 #. type: =head2
27023 #: ../src/guestfs-actions.pod:5570
27024 msgid "guestfs_part_set_name"
27025 msgstr ""
27026
27027 #. type: verbatim
27028 #: ../src/guestfs-actions.pod:5572
27029 #, no-wrap
27030 msgid ""
27031 " int\n"
27032 " guestfs_part_set_name (guestfs_h *g,\n"
27033 "                        const char *device,\n"
27034 "                        int partnum,\n"
27035 "                        const char *name);\n"
27036 "\n"
27037 msgstr ""
27038
27039 #. type: =head2
27040 #: ../src/guestfs-actions.pod:5588
27041 msgid "guestfs_part_to_dev"
27042 msgstr ""
27043
27044 #. type: verbatim
27045 #: ../src/guestfs-actions.pod:5590
27046 #, no-wrap
27047 msgid ""
27048 " char *\n"
27049 " guestfs_part_to_dev (guestfs_h *g,\n"
27050 "                      const char *partition);\n"
27051 "\n"
27052 msgstr ""
27053
27054 #. type: textblock
27055 #: ../src/guestfs-actions.pod:5598
27056 msgid ""
27057 "The named partition must exist, for example as a string returned from "
27058 "C<guestfs_list_partitions>."
27059 msgstr ""
27060
27061 #. type: =head2
27062 #: ../src/guestfs-actions.pod:5606
27063 msgid "guestfs_ping_daemon"
27064 msgstr ""
27065
27066 #. type: verbatim
27067 #: ../src/guestfs-actions.pod:5608
27068 #, no-wrap
27069 msgid ""
27070 " int\n"
27071 " guestfs_ping_daemon (guestfs_h *g);\n"
27072 "\n"
27073 msgstr ""
27074
27075 #. type: =head2
27076 #: ../src/guestfs-actions.pod:5620
27077 msgid "guestfs_pread"
27078 msgstr ""
27079
27080 #. type: verbatim
27081 #: ../src/guestfs-actions.pod:5622
27082 #, no-wrap
27083 msgid ""
27084 " char *\n"
27085 " guestfs_pread (guestfs_h *g,\n"
27086 "                const char *path,\n"
27087 "                int count,\n"
27088 "                int64_t offset,\n"
27089 "                size_t *size_r);\n"
27090 "\n"
27091 msgstr ""
27092
27093 #. type: textblock
27094 #: ../src/guestfs-actions.pod:5635
27095 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
27096 msgstr ""
27097
27098 #. type: =head2
27099 #: ../src/guestfs-actions.pod:5646
27100 msgid "guestfs_pread_device"
27101 msgstr ""
27102
27103 #. type: verbatim
27104 #: ../src/guestfs-actions.pod:5648
27105 #, no-wrap
27106 msgid ""
27107 " char *\n"
27108 " guestfs_pread_device (guestfs_h *g,\n"
27109 "                       const char *device,\n"
27110 "                       int count,\n"
27111 "                       int64_t offset,\n"
27112 "                       size_t *size_r);\n"
27113 "\n"
27114 msgstr ""
27115
27116 #. type: textblock
27117 #: ../src/guestfs-actions.pod:5661
27118 msgid "See also C<guestfs_pread>."
27119 msgstr ""
27120
27121 #. type: textblock
27122 #: ../src/guestfs-actions.pod:5670
27123 msgid "(Added in 1.5.21)"
27124 msgstr ""
27125
27126 #. type: =head2
27127 #: ../src/guestfs-actions.pod:5672
27128 msgid "guestfs_pvcreate"
27129 msgstr ""
27130
27131 #. type: verbatim
27132 #: ../src/guestfs-actions.pod:5674
27133 #, no-wrap
27134 msgid ""
27135 " int\n"
27136 " guestfs_pvcreate (guestfs_h *g,\n"
27137 "                   const char *device);\n"
27138 "\n"
27139 msgstr ""
27140
27141 #. type: =head2
27142 #: ../src/guestfs-actions.pod:5686
27143 msgid "guestfs_pvremove"
27144 msgstr ""
27145
27146 #. type: verbatim
27147 #: ../src/guestfs-actions.pod:5688
27148 #, no-wrap
27149 msgid ""
27150 " int\n"
27151 " guestfs_pvremove (guestfs_h *g,\n"
27152 "                   const char *device);\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: =head2
27157 #: ../src/guestfs-actions.pod:5703
27158 msgid "guestfs_pvresize"
27159 msgstr ""
27160
27161 #. type: verbatim
27162 #: ../src/guestfs-actions.pod:5705
27163 #, no-wrap
27164 msgid ""
27165 " int\n"
27166 " guestfs_pvresize (guestfs_h *g,\n"
27167 "                   const char *device);\n"
27168 "\n"
27169 msgstr ""
27170
27171 #. type: =head2
27172 #: ../src/guestfs-actions.pod:5716
27173 msgid "guestfs_pvresize_size"
27174 msgstr ""
27175
27176 #. type: verbatim
27177 #: ../src/guestfs-actions.pod:5718
27178 #, no-wrap
27179 msgid ""
27180 " int\n"
27181 " guestfs_pvresize_size (guestfs_h *g,\n"
27182 "                        const char *device,\n"
27183 "                        int64_t size);\n"
27184 "\n"
27185 msgstr ""
27186
27187 #. type: textblock
27188 #: ../src/guestfs-actions.pod:5723
27189 msgid ""
27190 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27191 "specify the new size (in bytes) explicitly."
27192 msgstr ""
27193
27194 #. type: =head2
27195 #: ../src/guestfs-actions.pod:5730
27196 msgid "guestfs_pvs"
27197 msgstr ""
27198
27199 #. type: verbatim
27200 #: ../src/guestfs-actions.pod:5732
27201 #, no-wrap
27202 msgid ""
27203 " char **\n"
27204 " guestfs_pvs (guestfs_h *g);\n"
27205 "\n"
27206 msgstr ""
27207
27208 #. type: textblock
27209 #: ../src/guestfs-actions.pod:5741
27210 msgid "See also C<guestfs_pvs_full>."
27211 msgstr ""
27212
27213 #. type: =head2
27214 #: ../src/guestfs-actions.pod:5749
27215 msgid "guestfs_pvs_full"
27216 msgstr ""
27217
27218 #. type: verbatim
27219 #: ../src/guestfs-actions.pod:5751
27220 #, no-wrap
27221 msgid ""
27222 " struct guestfs_lvm_pv_list *\n"
27223 " guestfs_pvs_full (guestfs_h *g);\n"
27224 "\n"
27225 msgstr ""
27226
27227 #. type: textblock
27228 #: ../src/guestfs-actions.pod:5757
27229 msgid ""
27230 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27231 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27232 "use>."
27233 msgstr ""
27234
27235 #. type: =head2
27236 #: ../src/guestfs-actions.pod:5763
27237 msgid "guestfs_pvuuid"
27238 msgstr ""
27239
27240 #. type: verbatim
27241 #: ../src/guestfs-actions.pod:5765
27242 #, no-wrap
27243 msgid ""
27244 " char *\n"
27245 " guestfs_pvuuid (guestfs_h *g,\n"
27246 "                 const char *device);\n"
27247 "\n"
27248 msgstr ""
27249
27250 #. type: =head2
27251 #: ../src/guestfs-actions.pod:5776
27252 msgid "guestfs_pwrite"
27253 msgstr ""
27254
27255 #. type: verbatim
27256 #: ../src/guestfs-actions.pod:5778
27257 #, no-wrap
27258 msgid ""
27259 " int\n"
27260 " guestfs_pwrite (guestfs_h *g,\n"
27261 "                 const char *path,\n"
27262 "                 const char *content,\n"
27263 "                 size_t content_size,\n"
27264 "                 int64_t offset);\n"
27265 "\n"
27266 msgstr ""
27267
27268 #. type: textblock
27269 #: ../src/guestfs-actions.pod:5794
27270 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27271 msgstr ""
27272
27273 #. type: =head2
27274 #: ../src/guestfs-actions.pod:5803
27275 msgid "guestfs_pwrite_device"
27276 msgstr ""
27277
27278 #. type: verbatim
27279 #: ../src/guestfs-actions.pod:5805
27280 #, no-wrap
27281 msgid ""
27282 " int\n"
27283 " guestfs_pwrite_device (guestfs_h *g,\n"
27284 "                        const char *device,\n"
27285 "                        const char *content,\n"
27286 "                        size_t content_size,\n"
27287 "                        int64_t offset);\n"
27288 "\n"
27289 msgstr ""
27290
27291 #. type: textblock
27292 #: ../src/guestfs-actions.pod:5820
27293 msgid "See also C<guestfs_pwrite>."
27294 msgstr ""
27295
27296 #. type: textblock
27297 #: ../src/guestfs-actions.pod:5827
27298 msgid "(Added in 1.5.20)"
27299 msgstr ""
27300
27301 #. type: =head2
27302 #: ../src/guestfs-actions.pod:5829
27303 msgid "guestfs_read_file"
27304 msgstr ""
27305
27306 #. type: verbatim
27307 #: ../src/guestfs-actions.pod:5831
27308 #, no-wrap
27309 msgid ""
27310 " char *\n"
27311 " guestfs_read_file (guestfs_h *g,\n"
27312 "                    const char *path,\n"
27313 "                    size_t *size_r);\n"
27314 "\n"
27315 msgstr ""
27316
27317 #. type: textblock
27318 #: ../src/guestfs-actions.pod:5839
27319 msgid ""
27320 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27321 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27322 "function is limited in the total size of file that can be handled."
27323 msgstr ""
27324
27325 #. type: textblock
27326 #: ../src/guestfs-actions.pod:5851
27327 msgid "(Added in 1.0.63)"
27328 msgstr ""
27329
27330 #. type: =head2
27331 #: ../src/guestfs-actions.pod:5853
27332 msgid "guestfs_read_lines"
27333 msgstr ""
27334
27335 #. type: verbatim
27336 #: ../src/guestfs-actions.pod:5855
27337 #, no-wrap
27338 msgid ""
27339 " char **\n"
27340 " guestfs_read_lines (guestfs_h *g,\n"
27341 "                     const char *path);\n"
27342 "\n"
27343 msgstr ""
27344
27345 #. type: textblock
27346 #: ../src/guestfs-actions.pod:5864
27347 msgid ""
27348 "Note that this function cannot correctly handle binary files (specifically, "
27349 "files containing C<\\0> character which is treated as end of line).  For "
27350 "those you need to use the C<guestfs_read_file> function which has a more "
27351 "complex interface."
27352 msgstr ""
27353
27354 #. type: =head2
27355 #: ../src/guestfs-actions.pod:5875
27356 msgid "guestfs_readdir"
27357 msgstr ""
27358
27359 #. type: verbatim
27360 #: ../src/guestfs-actions.pod:5877
27361 #, no-wrap
27362 msgid ""
27363 " struct guestfs_dirent_list *\n"
27364 " guestfs_readdir (guestfs_h *g,\n"
27365 "                  const char *dir);\n"
27366 "\n"
27367 msgstr ""
27368
27369 #. type: textblock
27370 #: ../src/guestfs-actions.pod:5931
27371 msgid ""
27372 "This function is primarily intended for use by programs.  To get a simple "
27373 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27374 "consumption, use C<guestfs_ll>."
27375 msgstr ""
27376
27377 #. type: textblock
27378 #: ../src/guestfs-actions.pod:5935
27379 msgid ""
27380 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27381 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27382 "use>."
27383 msgstr ""
27384
27385 #. type: =head2
27386 #: ../src/guestfs-actions.pod:5941
27387 msgid "guestfs_readlink"
27388 msgstr ""
27389
27390 #. type: verbatim
27391 #: ../src/guestfs-actions.pod:5943
27392 #, no-wrap
27393 msgid ""
27394 " char *\n"
27395 " guestfs_readlink (guestfs_h *g,\n"
27396 "                   const char *path);\n"
27397 "\n"
27398 msgstr ""
27399
27400 #. type: =head2
27401 #: ../src/guestfs-actions.pod:5954
27402 msgid "guestfs_readlinklist"
27403 msgstr ""
27404
27405 #. type: verbatim
27406 #: ../src/guestfs-actions.pod:5956
27407 #, no-wrap
27408 msgid ""
27409 " char **\n"
27410 " guestfs_readlinklist (guestfs_h *g,\n"
27411 "                       const char *path,\n"
27412 "                       char *const *names);\n"
27413 "\n"
27414 msgstr ""
27415
27416 #. type: =head2
27417 #: ../src/guestfs-actions.pod:5989
27418 msgid "guestfs_realpath"
27419 msgstr ""
27420
27421 #. type: verbatim
27422 #: ../src/guestfs-actions.pod:5991
27423 #, no-wrap
27424 msgid ""
27425 " char *\n"
27426 " guestfs_realpath (guestfs_h *g,\n"
27427 "                   const char *path);\n"
27428 "\n"
27429 msgstr ""
27430
27431 #. type: =head2
27432 #: ../src/guestfs-actions.pod:6003
27433 msgid "guestfs_removexattr"
27434 msgstr ""
27435
27436 #. type: verbatim
27437 #: ../src/guestfs-actions.pod:6005
27438 #, no-wrap
27439 msgid ""
27440 " int\n"
27441 " guestfs_removexattr (guestfs_h *g,\n"
27442 "                      const char *xattr,\n"
27443 "                      const char *path);\n"
27444 "\n"
27445 msgstr ""
27446
27447 #. type: textblock
27448 #: ../src/guestfs-actions.pod:6013
27449 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27450 msgstr ""
27451
27452 #. type: =head2
27453 #: ../src/guestfs-actions.pod:6019
27454 msgid "guestfs_resize2fs"
27455 msgstr ""
27456
27457 #. type: verbatim
27458 #: ../src/guestfs-actions.pod:6021
27459 #, no-wrap
27460 msgid ""
27461 " int\n"
27462 " guestfs_resize2fs (guestfs_h *g,\n"
27463 "                    const char *device);\n"
27464 "\n"
27465 msgstr ""
27466
27467 #. type: textblock
27468 #: ../src/guestfs-actions.pod:6028
27469 msgid ""
27470 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27471 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27472 "sometimes gives an error about this and sometimes not.  In any case, it is "
27473 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27474 msgstr ""
27475
27476 #. type: =head2
27477 #: ../src/guestfs-actions.pod:6038
27478 msgid "guestfs_resize2fs_M"
27479 msgstr ""
27480
27481 #. type: verbatim
27482 #: ../src/guestfs-actions.pod:6040
27483 #, no-wrap
27484 msgid ""
27485 " int\n"
27486 " guestfs_resize2fs_M (guestfs_h *g,\n"
27487 "                      const char *device);\n"
27488 "\n"
27489 msgstr ""
27490
27491 #. type: textblock
27492 #: ../src/guestfs-actions.pod:6044
27493 msgid ""
27494 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27495 "resized to its minimum size.  This works like the I<-M> option to the "
27496 "C<resize2fs> command."
27497 msgstr ""
27498
27499 #. type: textblock
27500 #: ../src/guestfs-actions.pod:6048
27501 msgid ""
27502 "To get the resulting size of the filesystem you should call "
27503 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27504 "These two numbers, multiplied together, give the resulting size of the "
27505 "minimal filesystem in bytes."
27506 msgstr ""
27507
27508 #. type: =head2
27509 #: ../src/guestfs-actions.pod:6057
27510 msgid "guestfs_resize2fs_size"
27511 msgstr ""
27512
27513 #. type: verbatim
27514 #: ../src/guestfs-actions.pod:6059
27515 #, no-wrap
27516 msgid ""
27517 " int\n"
27518 " guestfs_resize2fs_size (guestfs_h *g,\n"
27519 "                         const char *device,\n"
27520 "                         int64_t size);\n"
27521 "\n"
27522 msgstr ""
27523
27524 #. type: textblock
27525 #: ../src/guestfs-actions.pod:6064
27526 msgid ""
27527 "This command is the same as C<guestfs_resize2fs> except that it allows you "
27528 "to specify the new size (in bytes) explicitly."
27529 msgstr ""
27530
27531 #. type: =head2
27532 #: ../src/guestfs-actions.pod:6071
27533 msgid "guestfs_rm"
27534 msgstr ""
27535
27536 #. type: verbatim
27537 #: ../src/guestfs-actions.pod:6073
27538 #, no-wrap
27539 msgid ""
27540 " int\n"
27541 " guestfs_rm (guestfs_h *g,\n"
27542 "             const char *path);\n"
27543 "\n"
27544 msgstr ""
27545
27546 #. type: =head2
27547 #: ../src/guestfs-actions.pod:6083
27548 msgid "guestfs_rm_rf"
27549 msgstr ""
27550
27551 #. type: verbatim
27552 #: ../src/guestfs-actions.pod:6085
27553 #, no-wrap
27554 msgid ""
27555 " int\n"
27556 " guestfs_rm_rf (guestfs_h *g,\n"
27557 "                const char *path);\n"
27558 "\n"
27559 msgstr ""
27560
27561 #. type: =head2
27562 #: ../src/guestfs-actions.pod:6097
27563 msgid "guestfs_rmdir"
27564 msgstr ""
27565
27566 #. type: verbatim
27567 #: ../src/guestfs-actions.pod:6099
27568 #, no-wrap
27569 msgid ""
27570 " int\n"
27571 " guestfs_rmdir (guestfs_h *g,\n"
27572 "                const char *path);\n"
27573 "\n"
27574 msgstr ""
27575
27576 #. type: =head2
27577 #: ../src/guestfs-actions.pod:6109
27578 msgid "guestfs_rmmountpoint"
27579 msgstr ""
27580
27581 #. type: verbatim
27582 #: ../src/guestfs-actions.pod:6111
27583 #, no-wrap
27584 msgid ""
27585 " int\n"
27586 " guestfs_rmmountpoint (guestfs_h *g,\n"
27587 "                       const char *exemptpath);\n"
27588 "\n"
27589 msgstr ""
27590
27591 #. type: textblock
27592 #: ../src/guestfs-actions.pod:6115
27593 msgid ""
27594 "This calls removes a mountpoint that was previously created with "
27595 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
27596 msgstr ""
27597
27598 #. type: =head2
27599 #: ../src/guestfs-actions.pod:6123
27600 msgid "guestfs_scrub_device"
27601 msgstr ""
27602
27603 #. type: verbatim
27604 #: ../src/guestfs-actions.pod:6125
27605 #, no-wrap
27606 msgid ""
27607 " int\n"
27608 " guestfs_scrub_device (guestfs_h *g,\n"
27609 "                       const char *device);\n"
27610 "\n"
27611 msgstr ""
27612
27613 #. type: textblock
27614 #: ../src/guestfs-actions.pod:6140 ../src/guestfs-actions.pod:6158 ../src/guestfs-actions.pod:6177
27615 msgid "(Added in 1.0.52)"
27616 msgstr ""
27617
27618 #. type: =head2
27619 #: ../src/guestfs-actions.pod:6142
27620 msgid "guestfs_scrub_file"
27621 msgstr ""
27622
27623 #. type: verbatim
27624 #: ../src/guestfs-actions.pod:6144
27625 #, no-wrap
27626 msgid ""
27627 " int\n"
27628 " guestfs_scrub_file (guestfs_h *g,\n"
27629 "                     const char *file);\n"
27630 "\n"
27631 msgstr ""
27632
27633 #. type: =head2
27634 #: ../src/guestfs-actions.pod:6160
27635 msgid "guestfs_scrub_freespace"
27636 msgstr ""
27637
27638 #. type: verbatim
27639 #: ../src/guestfs-actions.pod:6162
27640 #, no-wrap
27641 msgid ""
27642 " int\n"
27643 " guestfs_scrub_freespace (guestfs_h *g,\n"
27644 "                          const char *dir);\n"
27645 "\n"
27646 msgstr ""
27647
27648 #. type: textblock
27649 #: ../src/guestfs-actions.pod:6166
27650 msgid ""
27651 "This command creates the directory C<dir> and then fills it with files until "
27652 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
27653 "and deletes them.  The intention is to scrub any free space on the partition "
27654 "containing C<dir>."
27655 msgstr ""
27656
27657 #. type: =head2
27658 #: ../src/guestfs-actions.pod:6179
27659 msgid "guestfs_set_append"
27660 msgstr ""
27661
27662 #. type: verbatim
27663 #: ../src/guestfs-actions.pod:6181
27664 #, no-wrap
27665 msgid ""
27666 " int\n"
27667 " guestfs_set_append (guestfs_h *g,\n"
27668 "                     const char *append);\n"
27669 "\n"
27670 msgstr ""
27671
27672 #. type: =head2
27673 #: ../src/guestfs-actions.pod:6198
27674 msgid "guestfs_set_attach_method"
27675 msgstr ""
27676
27677 #. type: verbatim
27678 #: ../src/guestfs-actions.pod:6200
27679 #, no-wrap
27680 msgid ""
27681 " int\n"
27682 " guestfs_set_attach_method (guestfs_h *g,\n"
27683 "                            const char *attachmethod);\n"
27684 "\n"
27685 msgstr ""
27686
27687 #. type: =head2
27688 #: ../src/guestfs-actions.pod:6228
27689 msgid "guestfs_set_autosync"
27690 msgstr ""
27691
27692 #. type: verbatim
27693 #: ../src/guestfs-actions.pod:6230
27694 #, no-wrap
27695 msgid ""
27696 " int\n"
27697 " guestfs_set_autosync (guestfs_h *g,\n"
27698 "                       int autosync);\n"
27699 "\n"
27700 msgstr ""
27701
27702 #. type: =head2
27703 #: ../src/guestfs-actions.pod:6246
27704 msgid "guestfs_set_direct"
27705 msgstr ""
27706
27707 #. type: verbatim
27708 #: ../src/guestfs-actions.pod:6248
27709 #, no-wrap
27710 msgid ""
27711 " int\n"
27712 " guestfs_set_direct (guestfs_h *g,\n"
27713 "                     int direct);\n"
27714 "\n"
27715 msgstr ""
27716
27717 #. type: textblock
27718 #: ../src/guestfs-actions.pod:6256
27719 msgid ""
27720 "One consequence of this is that log messages aren't caught by the library "
27721 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
27722 "stdout."
27723 msgstr ""
27724
27725 #. type: =head2
27726 #: ../src/guestfs-actions.pod:6269
27727 msgid "guestfs_set_e2label"
27728 msgstr ""
27729
27730 #. type: verbatim
27731 #: ../src/guestfs-actions.pod:6271
27732 #, no-wrap
27733 msgid ""
27734 " int\n"
27735 " guestfs_set_e2label (guestfs_h *g,\n"
27736 "                      const char *device,\n"
27737 "                      const char *label);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:6280
27743 msgid ""
27744 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
27745 "the existing label on a filesystem."
27746 msgstr ""
27747
27748 #. type: =head2
27749 #: ../src/guestfs-actions.pod:6287
27750 msgid "guestfs_set_e2uuid"
27751 msgstr ""
27752
27753 #. type: verbatim
27754 #: ../src/guestfs-actions.pod:6289
27755 #, no-wrap
27756 msgid ""
27757 " int\n"
27758 " guestfs_set_e2uuid (guestfs_h *g,\n"
27759 "                     const char *device,\n"
27760 "                     const char *uuid);\n"
27761 "\n"
27762 msgstr ""
27763
27764 #. type: textblock
27765 #: ../src/guestfs-actions.pod:6299
27766 msgid ""
27767 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
27768 "the existing UUID of a filesystem."
27769 msgstr ""
27770
27771 #. type: =head2
27772 #: ../src/guestfs-actions.pod:6306
27773 msgid "guestfs_set_memsize"
27774 msgstr ""
27775
27776 #. type: verbatim
27777 #: ../src/guestfs-actions.pod:6308
27778 #, no-wrap
27779 msgid ""
27780 " int\n"
27781 " guestfs_set_memsize (guestfs_h *g,\n"
27782 "                      int memsize);\n"
27783 "\n"
27784 msgstr ""
27785
27786 #. type: textblock
27787 #: ../src/guestfs-actions.pod:6312
27788 msgid ""
27789 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
27790 "This only has any effect if called before C<guestfs_launch>."
27791 msgstr ""
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:6327
27795 msgid "guestfs_set_network"
27796 msgstr ""
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:6329
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_set_network (guestfs_h *g,\n"
27804 "                      int network);\n"
27805 "\n"
27806 msgstr ""
27807
27808 #. type: textblock
27809 #: ../src/guestfs-actions.pod:6339
27810 msgid ""
27811 "You must call this before calling C<guestfs_launch>, otherwise it has no "
27812 "effect."
27813 msgstr ""
27814
27815 #. type: =head2
27816 #: ../src/guestfs-actions.pod:6346
27817 msgid "guestfs_set_path"
27818 msgstr ""
27819
27820 #. type: verbatim
27821 #: ../src/guestfs-actions.pod:6348
27822 #, no-wrap
27823 msgid ""
27824 " int\n"
27825 " guestfs_set_path (guestfs_h *g,\n"
27826 "                   const char *searchpath);\n"
27827 "\n"
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:6363
27832 msgid "guestfs_set_pgroup"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:6365
27837 #, no-wrap
27838 msgid ""
27839 " int\n"
27840 " guestfs_set_pgroup (guestfs_h *g,\n"
27841 "                     int pgroup);\n"
27842 "\n"
27843 msgstr ""
27844
27845 #. type: =head2
27846 #: ../src/guestfs-actions.pod:6382
27847 msgid "guestfs_set_qemu"
27848 msgstr ""
27849
27850 #. type: verbatim
27851 #: ../src/guestfs-actions.pod:6384
27852 #, no-wrap
27853 msgid ""
27854 " int\n"
27855 " guestfs_set_qemu (guestfs_h *g,\n"
27856 "                   const char *qemu);\n"
27857 "\n"
27858 msgstr ""
27859
27860 #. type: =head2
27861 #: ../src/guestfs-actions.pod:6410
27862 msgid "guestfs_set_recovery_proc"
27863 msgstr ""
27864
27865 #. type: verbatim
27866 #: ../src/guestfs-actions.pod:6412
27867 #, no-wrap
27868 msgid ""
27869 " int\n"
27870 " guestfs_set_recovery_proc (guestfs_h *g,\n"
27871 "                            int recoveryproc);\n"
27872 "\n"
27873 msgstr ""
27874
27875 #. type: textblock
27876 #: ../src/guestfs-actions.pod:6416
27877 msgid ""
27878 "If this is called with the parameter C<false> then C<guestfs_launch> does "
27879 "not create a recovery process.  The purpose of the recovery process is to "
27880 "stop runaway qemu processes in the case where the main program aborts "
27881 "abruptly."
27882 msgstr ""
27883
27884 #. type: textblock
27885 #: ../src/guestfs-actions.pod:6421
27886 msgid ""
27887 "This only has any effect if called before C<guestfs_launch>, and the default "
27888 "is true."
27889 msgstr ""
27890
27891 #. type: =head2
27892 #: ../src/guestfs-actions.pod:6434
27893 msgid "guestfs_set_selinux"
27894 msgstr ""
27895
27896 #. type: verbatim
27897 #: ../src/guestfs-actions.pod:6436
27898 #, no-wrap
27899 msgid ""
27900 " int\n"
27901 " guestfs_set_selinux (guestfs_h *g,\n"
27902 "                      int selinux);\n"
27903 "\n"
27904 msgstr ""
27905
27906 #. type: =head2
27907 #: ../src/guestfs-actions.pod:6453
27908 msgid "guestfs_set_trace"
27909 msgstr ""
27910
27911 #. type: verbatim
27912 #: ../src/guestfs-actions.pod:6455
27913 #, no-wrap
27914 msgid ""
27915 " int\n"
27916 " guestfs_set_trace (guestfs_h *g,\n"
27917 "                    int trace);\n"
27918 "\n"
27919 msgstr ""
27920
27921 #. type: textblock
27922 #: ../src/guestfs-actions.pod:6469
27923 msgid ""
27924 "Trace messages are normally sent to C<stderr>, unless you register a "
27925 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27926 msgstr ""
27927
27928 #. type: =head2
27929 #: ../src/guestfs-actions.pod:6477
27930 msgid "guestfs_set_verbose"
27931 msgstr ""
27932
27933 #. type: verbatim
27934 #: ../src/guestfs-actions.pod:6479
27935 #, no-wrap
27936 msgid ""
27937 " int\n"
27938 " guestfs_set_verbose (guestfs_h *g,\n"
27939 "                      int verbose);\n"
27940 "\n"
27941 msgstr ""
27942
27943 #. type: textblock
27944 #: ../src/guestfs-actions.pod:6488
27945 msgid ""
27946 "Verbose messages are normally sent to C<stderr>, unless you register a "
27947 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27948 msgstr ""
27949
27950 #. type: =head2
27951 #: ../src/guestfs-actions.pod:6496
27952 msgid "guestfs_setcon"
27953 msgstr ""
27954
27955 #. type: verbatim
27956 #: ../src/guestfs-actions.pod:6498
27957 #, no-wrap
27958 msgid ""
27959 " int\n"
27960 " guestfs_setcon (guestfs_h *g,\n"
27961 "                 const char *context);\n"
27962 "\n"
27963 msgstr ""
27964
27965 #. type: =head2
27966 #: ../src/guestfs-actions.pod:6511
27967 msgid "guestfs_setxattr"
27968 msgstr ""
27969
27970 #. type: verbatim
27971 #: ../src/guestfs-actions.pod:6513
27972 #, no-wrap
27973 msgid ""
27974 " int\n"
27975 " guestfs_setxattr (guestfs_h *g,\n"
27976 "                   const char *xattr,\n"
27977 "                   const char *val,\n"
27978 "                   int vallen,\n"
27979 "                   const char *path);\n"
27980 "\n"
27981 msgstr ""
27982
27983 #. type: textblock
27984 #: ../src/guestfs-actions.pod:6524
27985 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:6530
27990 msgid "guestfs_sfdisk"
27991 msgstr ""
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:6532
27995 #, no-wrap
27996 msgid ""
27997 " int\n"
27998 " guestfs_sfdisk (guestfs_h *g,\n"
27999 "                 const char *device,\n"
28000 "                 int cyls,\n"
28001 "                 int heads,\n"
28002 "                 int sectors,\n"
28003 "                 char *const *lines);\n"
28004 "\n"
28005 msgstr ""
28006
28007 #. type: textblock
28008 #: ../src/guestfs-actions.pod:6560
28009 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
28010 msgstr ""
28011
28012 #. type: textblock
28013 #: ../src/guestfs-actions.pod:6568 ../src/guestfs-actions.pod:6598 ../src/guestfs-actions.pod:6631
28014 msgid ""
28015 "This function is deprecated.  In new code, use the L</guestfs_part_add> call "
28016 "instead."
28017 msgstr ""
28018
28019 #. type: =head2
28020 #: ../src/guestfs-actions.pod:6577
28021 msgid "guestfs_sfdiskM"
28022 msgstr ""
28023
28024 #. type: verbatim
28025 #: ../src/guestfs-actions.pod:6579
28026 #, no-wrap
28027 msgid ""
28028 " int\n"
28029 " guestfs_sfdiskM (guestfs_h *g,\n"
28030 "                  const char *device,\n"
28031 "                  char *const *lines);\n"
28032 "\n"
28033 msgstr ""
28034
28035 #. type: textblock
28036 #: ../src/guestfs-actions.pod:6584
28037 msgid ""
28038 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
28039 "partition sizes are specified in megabytes only (rounded to the nearest "
28040 "cylinder) and you don't need to specify the cyls, heads and sectors "
28041 "parameters which were rarely if ever used anyway."
28042 msgstr ""
28043
28044 #. type: textblock
28045 #: ../src/guestfs-actions.pod:6590
28046 msgid ""
28047 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
28048 "C<guestfs_part_disk>"
28049 msgstr ""
28050
28051 #. type: =head2
28052 #: ../src/guestfs-actions.pod:6607
28053 msgid "guestfs_sfdisk_N"
28054 msgstr ""
28055
28056 #. type: verbatim
28057 #: ../src/guestfs-actions.pod:6609
28058 #, no-wrap
28059 msgid ""
28060 " int\n"
28061 " guestfs_sfdisk_N (guestfs_h *g,\n"
28062 "                   const char *device,\n"
28063 "                   int partnum,\n"
28064 "                   int cyls,\n"
28065 "                   int heads,\n"
28066 "                   int sectors,\n"
28067 "                   const char *line);\n"
28068 "\n"
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:6621
28073 msgid ""
28074 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
28075 "for the cyls/heads/sectors parameters."
28076 msgstr ""
28077
28078 #. type: textblock
28079 #: ../src/guestfs-actions.pod:6624
28080 msgid "See also: C<guestfs_part_add>"
28081 msgstr ""
28082
28083 #. type: =head2
28084 #: ../src/guestfs-actions.pod:6640
28085 msgid "guestfs_sfdisk_disk_geometry"
28086 msgstr ""
28087
28088 #. type: verbatim
28089 #: ../src/guestfs-actions.pod:6642
28090 #, no-wrap
28091 msgid ""
28092 " char *\n"
28093 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
28094 "                               const char *device);\n"
28095 "\n"
28096 msgstr ""
28097
28098 #. type: textblock
28099 #: ../src/guestfs-actions.pod:6646
28100 msgid ""
28101 "This displays the disk geometry of C<device> read from the partition table.  "
28102 "Especially in the case where the underlying block device has been resized, "
28103 "this can be different from the kernel's idea of the geometry (see "
28104 "C<guestfs_sfdisk_kernel_geometry>)."
28105 msgstr ""
28106
28107 #. type: =head2
28108 #: ../src/guestfs-actions.pod:6659
28109 msgid "guestfs_sfdisk_kernel_geometry"
28110 msgstr ""
28111
28112 #. type: verbatim
28113 #: ../src/guestfs-actions.pod:6661
28114 #, no-wrap
28115 msgid ""
28116 " char *\n"
28117 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
28118 "                                 const char *device);\n"
28119 "\n"
28120 msgstr ""
28121
28122 #. type: =head2
28123 #: ../src/guestfs-actions.pod:6675
28124 msgid "guestfs_sfdisk_l"
28125 msgstr ""
28126
28127 #. type: verbatim
28128 #: ../src/guestfs-actions.pod:6677
28129 #, no-wrap
28130 msgid ""
28131 " char *\n"
28132 " guestfs_sfdisk_l (guestfs_h *g,\n"
28133 "                   const char *device);\n"
28134 "\n"
28135 msgstr ""
28136
28137 #. type: textblock
28138 #: ../src/guestfs-actions.pod:6685
28139 msgid "See also: C<guestfs_part_list>"
28140 msgstr ""
28141
28142 #. type: textblock
28143 #: ../src/guestfs-actions.pod:6690
28144 msgid ""
28145 "This function is deprecated.  In new code, use the L</guestfs_part_list> "
28146 "call instead."
28147 msgstr ""
28148
28149 #. type: =head2
28150 #: ../src/guestfs-actions.pod:6699
28151 msgid "guestfs_sh"
28152 msgstr ""
28153
28154 #. type: verbatim
28155 #: ../src/guestfs-actions.pod:6701
28156 #, no-wrap
28157 msgid ""
28158 " char *\n"
28159 " guestfs_sh (guestfs_h *g,\n"
28160 "             const char *command);\n"
28161 "\n"
28162 msgstr ""
28163
28164 #. type: textblock
28165 #: ../src/guestfs-actions.pod:6708
28166 msgid "This is like C<guestfs_command>, but passes the command to:"
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:6716
28171 msgid "All the provisos about C<guestfs_command> apply to this call."
28172 msgstr ""
28173
28174 #. type: =head2
28175 #: ../src/guestfs-actions.pod:6723
28176 msgid "guestfs_sh_lines"
28177 msgstr ""
28178
28179 #. type: verbatim
28180 #: ../src/guestfs-actions.pod:6725
28181 #, no-wrap
28182 msgid ""
28183 " char **\n"
28184 " guestfs_sh_lines (guestfs_h *g,\n"
28185 "                   const char *command);\n"
28186 "\n"
28187 msgstr ""
28188
28189 #. type: textblock
28190 #: ../src/guestfs-actions.pod:6729
28191 msgid ""
28192 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28193 "lines."
28194 msgstr ""
28195
28196 #. type: textblock
28197 #: ../src/guestfs-actions.pod:6732
28198 msgid "See also: C<guestfs_command_lines>"
28199 msgstr ""
28200
28201 #. type: =head2
28202 #: ../src/guestfs-actions.pod:6740
28203 msgid "guestfs_sleep"
28204 msgstr ""
28205
28206 #. type: verbatim
28207 #: ../src/guestfs-actions.pod:6742
28208 #, no-wrap
28209 msgid ""
28210 " int\n"
28211 " guestfs_sleep (guestfs_h *g,\n"
28212 "                int secs);\n"
28213 "\n"
28214 msgstr ""
28215
28216 #. type: textblock
28217 #: ../src/guestfs-actions.pod:6750
28218 msgid "(Added in 1.0.41)"
28219 msgstr ""
28220
28221 #. type: =head2
28222 #: ../src/guestfs-actions.pod:6752 ../src/guestfs-structs.pod:109
28223 msgid "guestfs_stat"
28224 msgstr ""
28225
28226 #. type: verbatim
28227 #: ../src/guestfs-actions.pod:6754
28228 #, no-wrap
28229 msgid ""
28230 " struct guestfs_stat *\n"
28231 " guestfs_stat (guestfs_h *g,\n"
28232 "               const char *path);\n"
28233 "\n"
28234 msgstr ""
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:6768 ../src/guestfs-structs.pod:135
28238 msgid "guestfs_statvfs"
28239 msgstr ""
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:6770
28243 #, no-wrap
28244 msgid ""
28245 " struct guestfs_statvfs *\n"
28246 " guestfs_statvfs (guestfs_h *g,\n"
28247 "                  const char *path);\n"
28248 "\n"
28249 msgstr ""
28250
28251 #. type: textblock
28252 #: ../src/guestfs-actions.pod:6780
28253 msgid ""
28254 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28255 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28256 msgstr ""
28257
28258 #. type: =head2
28259 #: ../src/guestfs-actions.pod:6786
28260 msgid "guestfs_strings"
28261 msgstr ""
28262
28263 #. type: verbatim
28264 #: ../src/guestfs-actions.pod:6788
28265 #, no-wrap
28266 msgid ""
28267 " char **\n"
28268 " guestfs_strings (guestfs_h *g,\n"
28269 "                  const char *path);\n"
28270 "\n"
28271 msgstr ""
28272
28273 #. type: =head2
28274 #: ../src/guestfs-actions.pod:6804
28275 msgid "guestfs_strings_e"
28276 msgstr ""
28277
28278 #. type: verbatim
28279 #: ../src/guestfs-actions.pod:6806
28280 #, no-wrap
28281 msgid ""
28282 " char **\n"
28283 " guestfs_strings_e (guestfs_h *g,\n"
28284 "                    const char *encoding,\n"
28285 "                    const char *path);\n"
28286 "\n"
28287 msgstr ""
28288
28289 #. type: textblock
28290 #: ../src/guestfs-actions.pod:6811
28291 msgid ""
28292 "This is like the C<guestfs_strings> command, but allows you to specify the "
28293 "encoding of strings that are looked for in the source file C<path>."
28294 msgstr ""
28295
28296 #. type: textblock
28297 #: ../src/guestfs-actions.pod:6821
28298 msgid ""
28299 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28300 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28301 msgstr ""
28302
28303 #. type: =head2
28304 #: ../src/guestfs-actions.pod:6859
28305 msgid "guestfs_swapoff_device"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:6861
28310 #, no-wrap
28311 msgid ""
28312 " int\n"
28313 " guestfs_swapoff_device (guestfs_h *g,\n"
28314 "                         const char *device);\n"
28315 "\n"
28316 msgstr ""
28317
28318 #. type: textblock
28319 #: ../src/guestfs-actions.pod:6865
28320 msgid ""
28321 "This command disables the libguestfs appliance swap device or partition "
28322 "named C<device>.  See C<guestfs_swapon_device>."
28323 msgstr ""
28324
28325 #. type: =head2
28326 #: ../src/guestfs-actions.pod:6873
28327 msgid "guestfs_swapoff_file"
28328 msgstr ""
28329
28330 #. type: verbatim
28331 #: ../src/guestfs-actions.pod:6875
28332 #, no-wrap
28333 msgid ""
28334 " int\n"
28335 " guestfs_swapoff_file (guestfs_h *g,\n"
28336 "                       const char *file);\n"
28337 "\n"
28338 msgstr ""
28339
28340 #. type: =head2
28341 #: ../src/guestfs-actions.pod:6885
28342 msgid "guestfs_swapoff_label"
28343 msgstr ""
28344
28345 #. type: verbatim
28346 #: ../src/guestfs-actions.pod:6887
28347 #, no-wrap
28348 msgid ""
28349 " int\n"
28350 " guestfs_swapoff_label (guestfs_h *g,\n"
28351 "                        const char *label);\n"
28352 "\n"
28353 msgstr ""
28354
28355 #. type: =head2
28356 #: ../src/guestfs-actions.pod:6898
28357 msgid "guestfs_swapoff_uuid"
28358 msgstr ""
28359
28360 #. type: verbatim
28361 #: ../src/guestfs-actions.pod:6900
28362 #, no-wrap
28363 msgid ""
28364 " int\n"
28365 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28366 "                       const char *uuid);\n"
28367 "\n"
28368 msgstr ""
28369
28370 #. type: =head2
28371 #: ../src/guestfs-actions.pod:6911
28372 msgid "guestfs_swapon_device"
28373 msgstr ""
28374
28375 #. type: verbatim
28376 #: ../src/guestfs-actions.pod:6913
28377 #, no-wrap
28378 msgid ""
28379 " int\n"
28380 " guestfs_swapon_device (guestfs_h *g,\n"
28381 "                        const char *device);\n"
28382 "\n"
28383 msgstr ""
28384
28385 #. type: textblock
28386 #: ../src/guestfs-actions.pod:6917
28387 msgid ""
28388 "This command enables the libguestfs appliance to use the swap device or "
28389 "partition named C<device>.  The increased memory is made available for all "
28390 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28391 msgstr ""
28392
28393 #. type: =head2
28394 #: ../src/guestfs-actions.pod:6933
28395 msgid "guestfs_swapon_file"
28396 msgstr ""
28397
28398 #. type: verbatim
28399 #: ../src/guestfs-actions.pod:6935
28400 #, no-wrap
28401 msgid ""
28402 " int\n"
28403 " guestfs_swapon_file (guestfs_h *g,\n"
28404 "                      const char *file);\n"
28405 "\n"
28406 msgstr ""
28407
28408 #. type: textblock
28409 #: ../src/guestfs-actions.pod:6939
28410 msgid ""
28411 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28412 "notes."
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../src/guestfs-actions.pod:6946
28417 msgid "guestfs_swapon_label"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../src/guestfs-actions.pod:6948
28422 #, no-wrap
28423 msgid ""
28424 " int\n"
28425 " guestfs_swapon_label (guestfs_h *g,\n"
28426 "                       const char *label);\n"
28427 "\n"
28428 msgstr ""
28429
28430 #. type: textblock
28431 #: ../src/guestfs-actions.pod:6952
28432 msgid ""
28433 "This command enables swap to a labeled swap partition.  See "
28434 "C<guestfs_swapon_device> for other notes."
28435 msgstr ""
28436
28437 #. type: =head2
28438 #: ../src/guestfs-actions.pod:6959
28439 msgid "guestfs_swapon_uuid"
28440 msgstr ""
28441
28442 #. type: verbatim
28443 #: ../src/guestfs-actions.pod:6961
28444 #, no-wrap
28445 msgid ""
28446 " int\n"
28447 " guestfs_swapon_uuid (guestfs_h *g,\n"
28448 "                      const char *uuid);\n"
28449 "\n"
28450 msgstr ""
28451
28452 #. type: textblock
28453 #: ../src/guestfs-actions.pod:6965
28454 msgid ""
28455 "This command enables swap to a swap partition with the given UUID.  See "
28456 "C<guestfs_swapon_device> for other notes."
28457 msgstr ""
28458
28459 #. type: =head2
28460 #: ../src/guestfs-actions.pod:6972
28461 msgid "guestfs_sync"
28462 msgstr ""
28463
28464 #. type: verbatim
28465 #: ../src/guestfs-actions.pod:6974
28466 #, no-wrap
28467 msgid ""
28468 " int\n"
28469 " guestfs_sync (guestfs_h *g);\n"
28470 "\n"
28471 msgstr ""
28472
28473 #. type: =head2
28474 #: ../src/guestfs-actions.pod:6987
28475 msgid "guestfs_tail"
28476 msgstr ""
28477
28478 #. type: verbatim
28479 #: ../src/guestfs-actions.pod:6989
28480 #, no-wrap
28481 msgid ""
28482 " char **\n"
28483 " guestfs_tail (guestfs_h *g,\n"
28484 "               const char *path);\n"
28485 "\n"
28486 msgstr ""
28487
28488 #. type: =head2
28489 #: ../src/guestfs-actions.pod:7005
28490 msgid "guestfs_tail_n"
28491 msgstr ""
28492
28493 #. type: verbatim
28494 #: ../src/guestfs-actions.pod:7007
28495 #, no-wrap
28496 msgid ""
28497 " char **\n"
28498 " guestfs_tail_n (guestfs_h *g,\n"
28499 "                 int nrlines,\n"
28500 "                 const char *path);\n"
28501 "\n"
28502 msgstr ""
28503
28504 #. type: =head2
28505 #: ../src/guestfs-actions.pod:7029
28506 msgid "guestfs_tar_in"
28507 msgstr ""
28508
28509 #. type: verbatim
28510 #: ../src/guestfs-actions.pod:7031
28511 #, no-wrap
28512 msgid ""
28513 " int\n"
28514 " guestfs_tar_in (guestfs_h *g,\n"
28515 "                 const char *tarfile,\n"
28516 "                 const char *directory);\n"
28517 "\n"
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../src/guestfs-actions.pod:7039
28522 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:7044 ../src/guestfs-actions.pod:7061 ../src/guestfs-actions.pod:7077 ../src/guestfs-actions.pod:7093
28527 msgid "(Added in 1.0.3)"
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:7046
28532 msgid "guestfs_tar_out"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:7048
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_tar_out (guestfs_h *g,\n"
28541 "                  const char *directory,\n"
28542 "                  const char *tarfile);\n"
28543 "\n"
28544 msgstr ""
28545
28546 #. type: textblock
28547 #: ../src/guestfs-actions.pod:7056
28548 msgid ""
28549 "To download a compressed tarball, use C<guestfs_tgz_out> or "
28550 "C<guestfs_txz_out>."
28551 msgstr ""
28552
28553 #. type: =head2
28554 #: ../src/guestfs-actions.pod:7063
28555 msgid "guestfs_tgz_in"
28556 msgstr ""
28557
28558 #. type: verbatim
28559 #: ../src/guestfs-actions.pod:7065
28560 #, no-wrap
28561 msgid ""
28562 " int\n"
28563 " guestfs_tgz_in (guestfs_h *g,\n"
28564 "                 const char *tarball,\n"
28565 "                 const char *directory);\n"
28566 "\n"
28567 msgstr ""
28568
28569 #. type: textblock
28570 #: ../src/guestfs-actions.pod:7073
28571 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
28572 msgstr ""
28573
28574 #. type: =head2
28575 #: ../src/guestfs-actions.pod:7079
28576 msgid "guestfs_tgz_out"
28577 msgstr ""
28578
28579 #. type: verbatim
28580 #: ../src/guestfs-actions.pod:7081
28581 #, no-wrap
28582 msgid ""
28583 " int\n"
28584 " guestfs_tgz_out (guestfs_h *g,\n"
28585 "                  const char *directory,\n"
28586 "                  const char *tarball);\n"
28587 "\n"
28588 msgstr ""
28589
28590 #. type: textblock
28591 #: ../src/guestfs-actions.pod:7089
28592 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
28593 msgstr ""
28594
28595 #. type: =head2
28596 #: ../src/guestfs-actions.pod:7095
28597 msgid "guestfs_touch"
28598 msgstr ""
28599
28600 #. type: verbatim
28601 #: ../src/guestfs-actions.pod:7097
28602 #, no-wrap
28603 msgid ""
28604 " int\n"
28605 " guestfs_touch (guestfs_h *g,\n"
28606 "                const char *path);\n"
28607 "\n"
28608 msgstr ""
28609
28610 #. type: =head2
28611 #: ../src/guestfs-actions.pod:7112
28612 msgid "guestfs_truncate"
28613 msgstr ""
28614
28615 #. type: verbatim
28616 #: ../src/guestfs-actions.pod:7114
28617 #, no-wrap
28618 msgid ""
28619 " int\n"
28620 " guestfs_truncate (guestfs_h *g,\n"
28621 "                   const char *path);\n"
28622 "\n"
28623 msgstr ""
28624
28625 #. type: =head2
28626 #: ../src/guestfs-actions.pod:7125
28627 msgid "guestfs_truncate_size"
28628 msgstr ""
28629
28630 #. type: verbatim
28631 #: ../src/guestfs-actions.pod:7127
28632 #, no-wrap
28633 msgid ""
28634 " int\n"
28635 " guestfs_truncate_size (guestfs_h *g,\n"
28636 "                        const char *path,\n"
28637 "                        int64_t size);\n"
28638 "\n"
28639 msgstr ""
28640
28641 #. type: textblock
28642 #: ../src/guestfs-actions.pod:7135
28643 msgid ""
28644 "If the current file size is less than C<size> then the file is extended to "
28645 "the required size with zero bytes.  This creates a sparse file (ie. disk "
28646 "blocks are not allocated for the file until you write to it).  To create a "
28647 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
28648 msgstr ""
28649
28650 #. type: =head2
28651 #: ../src/guestfs-actions.pod:7145
28652 msgid "guestfs_tune2fs_l"
28653 msgstr ""
28654
28655 #. type: verbatim
28656 #: ../src/guestfs-actions.pod:7147
28657 #, no-wrap
28658 msgid ""
28659 " char **\n"
28660 " guestfs_tune2fs_l (guestfs_h *g,\n"
28661 "                    const char *device);\n"
28662 "\n"
28663 msgstr ""
28664
28665 #. type: =head2
28666 #: ../src/guestfs-actions.pod:7167
28667 msgid "guestfs_txz_in"
28668 msgstr ""
28669
28670 #. type: verbatim
28671 #: ../src/guestfs-actions.pod:7169
28672 #, no-wrap
28673 msgid ""
28674 " int\n"
28675 " guestfs_txz_in (guestfs_h *g,\n"
28676 "                 const char *tarball,\n"
28677 "                 const char *directory);\n"
28678 "\n"
28679 msgstr ""
28680
28681 #. type: =head2
28682 #: ../src/guestfs-actions.pod:7181
28683 msgid "guestfs_txz_out"
28684 msgstr ""
28685
28686 #. type: verbatim
28687 #: ../src/guestfs-actions.pod:7183
28688 #, no-wrap
28689 msgid ""
28690 " int\n"
28691 " guestfs_txz_out (guestfs_h *g,\n"
28692 "                  const char *directory,\n"
28693 "                  const char *tarball);\n"
28694 "\n"
28695 msgstr ""
28696
28697 #. type: =head2
28698 #: ../src/guestfs-actions.pod:7195
28699 msgid "guestfs_umask"
28700 msgstr ""
28701
28702 #. type: verbatim
28703 #: ../src/guestfs-actions.pod:7197
28704 #, no-wrap
28705 msgid ""
28706 " int\n"
28707 " guestfs_umask (guestfs_h *g,\n"
28708 "                int mask);\n"
28709 "\n"
28710 msgstr ""
28711
28712 #. type: textblock
28713 #: ../src/guestfs-actions.pod:7213
28714 msgid ""
28715 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
28716 "C<guestfs_mkdir>."
28717 msgstr ""
28718
28719 #. type: =head2
28720 #: ../src/guestfs-actions.pod:7222
28721 msgid "guestfs_umount"
28722 msgstr ""
28723
28724 #. type: verbatim
28725 #: ../src/guestfs-actions.pod:7224
28726 #, no-wrap
28727 msgid ""
28728 " int\n"
28729 " guestfs_umount (guestfs_h *g,\n"
28730 "                 const char *pathordevice);\n"
28731 "\n"
28732 msgstr ""
28733
28734 #. type: =head2
28735 #: ../src/guestfs-actions.pod:7236
28736 msgid "guestfs_umount_all"
28737 msgstr ""
28738
28739 #. type: verbatim
28740 #: ../src/guestfs-actions.pod:7238
28741 #, no-wrap
28742 msgid ""
28743 " int\n"
28744 " guestfs_umount_all (guestfs_h *g);\n"
28745 "\n"
28746 msgstr ""
28747
28748 #. type: =head2
28749 #: ../src/guestfs-actions.pod:7249
28750 msgid "guestfs_upload"
28751 msgstr ""
28752
28753 #. type: verbatim
28754 #: ../src/guestfs-actions.pod:7251
28755 #, no-wrap
28756 msgid ""
28757 " int\n"
28758 " guestfs_upload (guestfs_h *g,\n"
28759 "                 const char *filename,\n"
28760 "                 const char *remotefilename);\n"
28761 "\n"
28762 msgstr ""
28763
28764 #. type: textblock
28765 #: ../src/guestfs-actions.pod:7261
28766 msgid "See also C<guestfs_download>."
28767 msgstr ""
28768
28769 #. type: =head2
28770 #: ../src/guestfs-actions.pod:7272
28771 msgid "guestfs_upload_offset"
28772 msgstr ""
28773
28774 #. type: verbatim
28775 #: ../src/guestfs-actions.pod:7274
28776 #, no-wrap
28777 msgid ""
28778 " int\n"
28779 " guestfs_upload_offset (guestfs_h *g,\n"
28780 "                        const char *filename,\n"
28781 "                        const char *remotefilename,\n"
28782 "                        int64_t offset);\n"
28783 "\n"
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:7290
28788 msgid ""
28789 "Note that there is no limit on the amount of data that can be uploaded with "
28790 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
28791 "full amount unless an error occurs."
28792 msgstr ""
28793
28794 #. type: textblock
28795 #: ../src/guestfs-actions.pod:7295
28796 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
28797 msgstr ""
28798
28799 #. type: =head2
28800 #: ../src/guestfs-actions.pod:7306
28801 msgid "guestfs_utimens"
28802 msgstr ""
28803
28804 #. type: verbatim
28805 #: ../src/guestfs-actions.pod:7308
28806 #, no-wrap
28807 msgid ""
28808 " int\n"
28809 " guestfs_utimens (guestfs_h *g,\n"
28810 "                  const char *path,\n"
28811 "                  int64_t atsecs,\n"
28812 "                  int64_t atnsecs,\n"
28813 "                  int64_t mtsecs,\n"
28814 "                  int64_t mtnsecs);\n"
28815 "\n"
28816 msgstr ""
28817
28818 #. type: =head2
28819 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-structs.pod:175
28820 msgid "guestfs_version"
28821 msgstr ""
28822
28823 #. type: verbatim
28824 #: ../src/guestfs-actions.pod:7339
28825 #, no-wrap
28826 msgid ""
28827 " struct guestfs_version *\n"
28828 " guestfs_version (guestfs_h *g);\n"
28829 "\n"
28830 msgstr ""
28831
28832 #. type: textblock
28833 #: ../src/guestfs-actions.pod:7367
28834 msgid ""
28835 "I<Note:> Don't use this call to test for availability of features.  In "
28836 "enterprise distributions we backport features from later versions into "
28837 "earlier versions, making this an unreliable way to test for features.  Use "
28838 "C<guestfs_available> instead."
28839 msgstr ""
28840
28841 #. type: textblock
28842 #: ../src/guestfs-actions.pod:7373
28843 msgid ""
28844 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
28845 "error.  I<The caller must call C<guestfs_free_version> after use>."
28846 msgstr ""
28847
28848 #. type: textblock
28849 #: ../src/guestfs-actions.pod:7377
28850 msgid "(Added in 1.0.58)"
28851 msgstr ""
28852
28853 #. type: =head2
28854 #: ../src/guestfs-actions.pod:7379
28855 msgid "guestfs_vfs_label"
28856 msgstr ""
28857
28858 #. type: verbatim
28859 #: ../src/guestfs-actions.pod:7381
28860 #, no-wrap
28861 msgid ""
28862 " char *\n"
28863 " guestfs_vfs_label (guestfs_h *g,\n"
28864 "                    const char *device);\n"
28865 "\n"
28866 msgstr ""
28867
28868 #. type: textblock
28869 #: ../src/guestfs-actions.pod:7390
28870 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
28871 msgstr ""
28872
28873 #. type: textblock
28874 #: ../src/guestfs-actions.pod:7395 ../src/guestfs-actions.pod:7432
28875 msgid "(Added in 1.3.18)"
28876 msgstr ""
28877
28878 #. type: =head2
28879 #: ../src/guestfs-actions.pod:7397
28880 msgid "guestfs_vfs_type"
28881 msgstr ""
28882
28883 #. type: verbatim
28884 #: ../src/guestfs-actions.pod:7399
28885 #, no-wrap
28886 msgid ""
28887 " char *\n"
28888 " guestfs_vfs_type (guestfs_h *g,\n"
28889 "                   const char *device);\n"
28890 "\n"
28891 msgstr ""
28892
28893 #. type: =head2
28894 #: ../src/guestfs-actions.pod:7416
28895 msgid "guestfs_vfs_uuid"
28896 msgstr ""
28897
28898 #. type: verbatim
28899 #: ../src/guestfs-actions.pod:7418
28900 #, no-wrap
28901 msgid ""
28902 " char *\n"
28903 " guestfs_vfs_uuid (guestfs_h *g,\n"
28904 "                   const char *device);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:7427
28910 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
28911 msgstr ""
28912
28913 #. type: =head2
28914 #: ../src/guestfs-actions.pod:7434
28915 msgid "guestfs_vg_activate"
28916 msgstr ""
28917
28918 #. type: verbatim
28919 #: ../src/guestfs-actions.pod:7436
28920 #, no-wrap
28921 msgid ""
28922 " int\n"
28923 " guestfs_vg_activate (guestfs_h *g,\n"
28924 "                      int activate,\n"
28925 "                      char *const *volgroups);\n"
28926 "\n"
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:7453
28931 msgid "guestfs_vg_activate_all"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:7455
28936 #, no-wrap
28937 msgid ""
28938 " int\n"
28939 " guestfs_vg_activate_all (guestfs_h *g,\n"
28940 "                          int activate);\n"
28941 "\n"
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:7468
28946 msgid "guestfs_vgcreate"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:7470
28951 #, no-wrap
28952 msgid ""
28953 " int\n"
28954 " guestfs_vgcreate (guestfs_h *g,\n"
28955 "                   const char *volgroup,\n"
28956 "                   char *const *physvols);\n"
28957 "\n"
28958 msgstr ""
28959
28960 #. type: =head2
28961 #: ../src/guestfs-actions.pod:7482
28962 msgid "guestfs_vglvuuids"
28963 msgstr ""
28964
28965 #. type: verbatim
28966 #: ../src/guestfs-actions.pod:7484
28967 #, no-wrap
28968 msgid ""
28969 " char **\n"
28970 " guestfs_vglvuuids (guestfs_h *g,\n"
28971 "                    const char *vgname);\n"
28972 "\n"
28973 msgstr ""
28974
28975 #. type: textblock
28976 #: ../src/guestfs-actions.pod:7491
28977 msgid ""
28978 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
28979 "associate logical volumes and volume groups."
28980 msgstr ""
28981
28982 #. type: textblock
28983 #: ../src/guestfs-actions.pod:7494
28984 msgid "See also C<guestfs_vgpvuuids>."
28985 msgstr ""
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:7502
28989 msgid "guestfs_vgpvuuids"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:7504
28994 #, no-wrap
28995 msgid ""
28996 " char **\n"
28997 " guestfs_vgpvuuids (guestfs_h *g,\n"
28998 "                    const char *vgname);\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: textblock
29003 #: ../src/guestfs-actions.pod:7511
29004 msgid ""
29005 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
29006 "associate physical volumes and volume groups."
29007 msgstr ""
29008
29009 #. type: textblock
29010 #: ../src/guestfs-actions.pod:7514
29011 msgid "See also C<guestfs_vglvuuids>."
29012 msgstr ""
29013
29014 #. type: =head2
29015 #: ../src/guestfs-actions.pod:7522
29016 msgid "guestfs_vgremove"
29017 msgstr ""
29018
29019 #. type: verbatim
29020 #: ../src/guestfs-actions.pod:7524
29021 #, no-wrap
29022 msgid ""
29023 " int\n"
29024 " guestfs_vgremove (guestfs_h *g,\n"
29025 "                   const char *vgname);\n"
29026 "\n"
29027 msgstr ""
29028
29029 #. type: =head2
29030 #: ../src/guestfs-actions.pod:7537
29031 msgid "guestfs_vgrename"
29032 msgstr ""
29033
29034 #. type: verbatim
29035 #: ../src/guestfs-actions.pod:7539
29036 #, no-wrap
29037 msgid ""
29038 " int\n"
29039 " guestfs_vgrename (guestfs_h *g,\n"
29040 "                   const char *volgroup,\n"
29041 "                   const char *newvolgroup);\n"
29042 "\n"
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:7550
29047 msgid "guestfs_vgs"
29048 msgstr ""
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:7552
29052 #, no-wrap
29053 msgid ""
29054 " char **\n"
29055 " guestfs_vgs (guestfs_h *g);\n"
29056 "\n"
29057 msgstr ""
29058
29059 #. type: textblock
29060 #: ../src/guestfs-actions.pod:7561
29061 msgid "See also C<guestfs_vgs_full>."
29062 msgstr ""
29063
29064 #. type: =head2
29065 #: ../src/guestfs-actions.pod:7569
29066 msgid "guestfs_vgs_full"
29067 msgstr ""
29068
29069 #. type: verbatim
29070 #: ../src/guestfs-actions.pod:7571
29071 #, no-wrap
29072 msgid ""
29073 " struct guestfs_lvm_vg_list *\n"
29074 " guestfs_vgs_full (guestfs_h *g);\n"
29075 "\n"
29076 msgstr ""
29077
29078 #. type: textblock
29079 #: ../src/guestfs-actions.pod:7577
29080 msgid ""
29081 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
29082 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
29083 "use>."
29084 msgstr ""
29085
29086 #. type: =head2
29087 #: ../src/guestfs-actions.pod:7583
29088 msgid "guestfs_vgscan"
29089 msgstr ""
29090
29091 #. type: verbatim
29092 #: ../src/guestfs-actions.pod:7585
29093 #, no-wrap
29094 msgid ""
29095 " int\n"
29096 " guestfs_vgscan (guestfs_h *g);\n"
29097 "\n"
29098 msgstr ""
29099
29100 #. type: =head2
29101 #: ../src/guestfs-actions.pod:7595
29102 msgid "guestfs_vguuid"
29103 msgstr ""
29104
29105 #. type: verbatim
29106 #: ../src/guestfs-actions.pod:7597
29107 #, no-wrap
29108 msgid ""
29109 " char *\n"
29110 " guestfs_vguuid (guestfs_h *g,\n"
29111 "                 const char *vgname);\n"
29112 "\n"
29113 msgstr ""
29114
29115 #. type: =head2
29116 #: ../src/guestfs-actions.pod:7608
29117 msgid "guestfs_wait_ready"
29118 msgstr ""
29119
29120 #. type: verbatim
29121 #: ../src/guestfs-actions.pod:7610
29122 #, no-wrap
29123 msgid ""
29124 " int\n"
29125 " guestfs_wait_ready (guestfs_h *g);\n"
29126 "\n"
29127 msgstr ""
29128
29129 #. type: textblock
29130 #: ../src/guestfs-actions.pod:7613
29131 msgid "This function is a no op."
29132 msgstr ""
29133
29134 #. type: textblock
29135 #: ../src/guestfs-actions.pod:7615
29136 msgid ""
29137 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29138 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29139 "is no longer necessary because C<guestfs_launch> now does the waiting."
29140 msgstr ""
29141
29142 #. type: textblock
29143 #: ../src/guestfs-actions.pod:7620
29144 msgid ""
29145 "If you see any calls to this function in code then you can just remove them, "
29146 "unless you want to retain compatibility with older versions of the API."
29147 msgstr ""
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:7626
29151 msgid ""
29152 "This function is deprecated.  In new code, use the L</guestfs_launch> call "
29153 "instead."
29154 msgstr ""
29155
29156 #. type: =head2
29157 #: ../src/guestfs-actions.pod:7635
29158 msgid "guestfs_wc_c"
29159 msgstr ""
29160
29161 #. type: verbatim
29162 #: ../src/guestfs-actions.pod:7637
29163 #, no-wrap
29164 msgid ""
29165 " int\n"
29166 " guestfs_wc_c (guestfs_h *g,\n"
29167 "               const char *path);\n"
29168 "\n"
29169 msgstr ""
29170
29171 #. type: =head2
29172 #: ../src/guestfs-actions.pod:7648
29173 msgid "guestfs_wc_l"
29174 msgstr ""
29175
29176 #. type: verbatim
29177 #: ../src/guestfs-actions.pod:7650
29178 #, no-wrap
29179 msgid ""
29180 " int\n"
29181 " guestfs_wc_l (guestfs_h *g,\n"
29182 "               const char *path);\n"
29183 "\n"
29184 msgstr ""
29185
29186 #. type: =head2
29187 #: ../src/guestfs-actions.pod:7661
29188 msgid "guestfs_wc_w"
29189 msgstr ""
29190
29191 #. type: verbatim
29192 #: ../src/guestfs-actions.pod:7663
29193 #, no-wrap
29194 msgid ""
29195 " int\n"
29196 " guestfs_wc_w (guestfs_h *g,\n"
29197 "               const char *path);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: =head2
29202 #: ../src/guestfs-actions.pod:7674
29203 msgid "guestfs_write"
29204 msgstr ""
29205
29206 #. type: verbatim
29207 #: ../src/guestfs-actions.pod:7676
29208 #, no-wrap
29209 msgid ""
29210 " int\n"
29211 " guestfs_write (guestfs_h *g,\n"
29212 "                const char *path,\n"
29213 "                const char *content,\n"
29214 "                size_t content_size);\n"
29215 "\n"
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:7685
29220 msgid "See also C<guestfs_write_append>."
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:7694
29225 msgid "guestfs_write_append"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:7696
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_write_append (guestfs_h *g,\n"
29234 "                       const char *path,\n"
29235 "                       const char *content,\n"
29236 "                       size_t content_size);\n"
29237 "\n"
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:7705
29242 msgid "See also C<guestfs_write>."
29243 msgstr ""
29244
29245 #. type: =head2
29246 #: ../src/guestfs-actions.pod:7714
29247 msgid "guestfs_write_file"
29248 msgstr ""
29249
29250 #. type: verbatim
29251 #: ../src/guestfs-actions.pod:7716
29252 #, no-wrap
29253 msgid ""
29254 " int\n"
29255 " guestfs_write_file (guestfs_h *g,\n"
29256 "                     const char *path,\n"
29257 "                     const char *content,\n"
29258 "                     int size);\n"
29259 "\n"
29260 msgstr ""
29261
29262 #. type: textblock
29263 #: ../src/guestfs-actions.pod:7738
29264 msgid ""
29265 "This function is deprecated.  In new code, use the L</guestfs_write> call "
29266 "instead."
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:7747
29271 msgid "guestfs_zegrep"
29272 msgstr ""
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:7749
29276 #, no-wrap
29277 msgid ""
29278 " char **\n"
29279 " guestfs_zegrep (guestfs_h *g,\n"
29280 "                 const char *regex,\n"
29281 "                 const char *path);\n"
29282 "\n"
29283 msgstr ""
29284
29285 #. type: =head2
29286 #: ../src/guestfs-actions.pod:7766
29287 msgid "guestfs_zegrepi"
29288 msgstr ""
29289
29290 #. type: verbatim
29291 #: ../src/guestfs-actions.pod:7768
29292 #, no-wrap
29293 msgid ""
29294 " char **\n"
29295 " guestfs_zegrepi (guestfs_h *g,\n"
29296 "                  const char *regex,\n"
29297 "                  const char *path);\n"
29298 "\n"
29299 msgstr ""
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:7785
29303 msgid "guestfs_zero"
29304 msgstr ""
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:7787
29308 #, no-wrap
29309 msgid ""
29310 " int\n"
29311 " guestfs_zero (guestfs_h *g,\n"
29312 "               const char *device);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: textblock
29317 #: ../src/guestfs-actions.pod:7801
29318 msgid ""
29319 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29320 "C<guestfs_is_zero_device>"
29321 msgstr ""
29322
29323 #. type: =head2
29324 #: ../src/guestfs-actions.pod:7813
29325 msgid "guestfs_zero_device"
29326 msgstr ""
29327
29328 #. type: verbatim
29329 #: ../src/guestfs-actions.pod:7815
29330 #, no-wrap
29331 msgid ""
29332 " int\n"
29333 " guestfs_zero_device (guestfs_h *g,\n"
29334 "                      const char *device);\n"
29335 "\n"
29336 msgstr ""
29337
29338 #. type: textblock
29339 #: ../src/guestfs-actions.pod:7819
29340 msgid ""
29341 "This command writes zeroes over the entire C<device>.  Compare with "
29342 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29343 msgstr ""
29344
29345 #. type: textblock
29346 #: ../src/guestfs-actions.pod:7837
29347 msgid "(Added in 1.3.1)"
29348 msgstr ""
29349
29350 #. type: =head2
29351 #: ../src/guestfs-actions.pod:7839
29352 msgid "guestfs_zerofree"
29353 msgstr ""
29354
29355 #. type: verbatim
29356 #: ../src/guestfs-actions.pod:7841
29357 #, no-wrap
29358 msgid ""
29359 " int\n"
29360 " guestfs_zerofree (guestfs_h *g,\n"
29361 "                   const char *device);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:7860
29367 msgid "guestfs_zfgrep"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:7862
29372 #, no-wrap
29373 msgid ""
29374 " char **\n"
29375 " guestfs_zfgrep (guestfs_h *g,\n"
29376 "                 const char *pattern,\n"
29377 "                 const char *path);\n"
29378 "\n"
29379 msgstr ""
29380
29381 #. type: =head2
29382 #: ../src/guestfs-actions.pod:7879
29383 msgid "guestfs_zfgrepi"
29384 msgstr ""
29385
29386 #. type: verbatim
29387 #: ../src/guestfs-actions.pod:7881
29388 #, no-wrap
29389 msgid ""
29390 " char **\n"
29391 " guestfs_zfgrepi (guestfs_h *g,\n"
29392 "                  const char *pattern,\n"
29393 "                  const char *path);\n"
29394 "\n"
29395 msgstr ""
29396
29397 #. type: =head2
29398 #: ../src/guestfs-actions.pod:7898
29399 msgid "guestfs_zfile"
29400 msgstr ""
29401
29402 #. type: verbatim
29403 #: ../src/guestfs-actions.pod:7900
29404 #, no-wrap
29405 msgid ""
29406 " char *\n"
29407 " guestfs_zfile (guestfs_h *g,\n"
29408 "                const char *meth,\n"
29409 "                const char *path);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: textblock
29414 #: ../src/guestfs-actions.pod:7910
29415 msgid ""
29416 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29417 "files."
29418 msgstr ""
29419
29420 #. type: textblock
29421 #: ../src/guestfs-actions.pod:7916
29422 msgid ""
29423 "This function is deprecated.  In new code, use the L</guestfs_file> call "
29424 "instead."
29425 msgstr ""
29426
29427 #. type: =head2
29428 #: ../src/guestfs-actions.pod:7925
29429 msgid "guestfs_zgrep"
29430 msgstr ""
29431
29432 #. type: verbatim
29433 #: ../src/guestfs-actions.pod:7927
29434 #, no-wrap
29435 msgid ""
29436 " char **\n"
29437 " guestfs_zgrep (guestfs_h *g,\n"
29438 "                const char *regex,\n"
29439 "                const char *path);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:7944
29445 msgid "guestfs_zgrepi"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:7946
29450 #, no-wrap
29451 msgid ""
29452 " char **\n"
29453 " guestfs_zgrepi (guestfs_h *g,\n"
29454 "                 const char *regex,\n"
29455 "                 const char *path);\n"
29456 "\n"
29457 msgstr ""
29458
29459 #. type: =item
29460 #: ../src/guestfs-availability.pod:3
29461 msgid "B<augeas>"
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../src/guestfs-availability.pod:5
29466 msgid ""
29467 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29468 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29469 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29470 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29471 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29472 msgstr ""
29473
29474 #. type: =item
29475 #: ../src/guestfs-availability.pod:21
29476 msgid "B<btrfs>"
29477 msgstr ""
29478
29479 #. type: textblock
29480 #: ../src/guestfs-availability.pod:23
29481 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29482 msgstr ""
29483
29484 #. type: =item
29485 #: ../src/guestfs-availability.pod:26
29486 msgid "B<grub>"
29487 msgstr ""
29488
29489 #. type: textblock
29490 #: ../src/guestfs-availability.pod:28
29491 msgid "The following functions: L</guestfs_grub_install>"
29492 msgstr ""
29493
29494 #. type: =item
29495 #: ../src/guestfs-availability.pod:31
29496 msgid "B<inotify>"
29497 msgstr ""
29498
29499 #. type: textblock
29500 #: ../src/guestfs-availability.pod:33
29501 msgid ""
29502 "The following functions: L</guestfs_inotify_add_watch> "
29503 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
29504 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
29505 msgstr ""
29506
29507 #. type: =item
29508 #: ../src/guestfs-availability.pod:41
29509 msgid "B<linuxfsuuid>"
29510 msgstr ""
29511
29512 #. type: textblock
29513 #: ../src/guestfs-availability.pod:43
29514 msgid ""
29515 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
29516 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
29517 msgstr ""
29518
29519 #. type: =item
29520 #: ../src/guestfs-availability.pod:50
29521 msgid "B<linuxmodules>"
29522 msgstr ""
29523
29524 #. type: textblock
29525 #: ../src/guestfs-availability.pod:52
29526 msgid "The following functions: L</guestfs_modprobe>"
29527 msgstr ""
29528
29529 #. type: =item
29530 #: ../src/guestfs-availability.pod:55
29531 msgid "B<linuxxattrs>"
29532 msgstr ""
29533
29534 #. type: textblock
29535 #: ../src/guestfs-availability.pod:57
29536 msgid ""
29537 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
29538 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
29539 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
29540 "L</guestfs_setxattr>"
29541 msgstr ""
29542
29543 #. type: =item
29544 #: ../src/guestfs-availability.pod:68
29545 msgid "B<luks>"
29546 msgstr ""
29547
29548 #. type: textblock
29549 #: ../src/guestfs-availability.pod:70
29550 msgid ""
29551 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
29552 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
29553 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
29554 msgstr ""
29555
29556 #. type: =item
29557 #: ../src/guestfs-availability.pod:79
29558 msgid "B<lvm2>"
29559 msgstr ""
29560
29561 #. type: textblock
29562 #: ../src/guestfs-availability.pod:81
29563 msgid ""
29564 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
29565 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
29566 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
29567 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
29568 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
29569 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
29570 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
29571 "L</guestfs_vgs_full>"
29572 msgstr ""
29573
29574 #. type: =item
29575 #: ../src/guestfs-availability.pod:104
29576 msgid "B<mknod>"
29577 msgstr ""
29578
29579 #. type: textblock
29580 #: ../src/guestfs-availability.pod:106
29581 msgid ""
29582 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
29583 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
29584 msgstr ""
29585
29586 #. type: =item
29587 #: ../src/guestfs-availability.pod:112
29588 msgid "B<ntfs3g>"
29589 msgstr ""
29590
29591 #. type: textblock
29592 #: ../src/guestfs-availability.pod:114
29593 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
29594 msgstr ""
29595
29596 #. type: =item
29597 #: ../src/guestfs-availability.pod:117
29598 msgid "B<ntfsprogs>"
29599 msgstr ""
29600
29601 #. type: textblock
29602 #: ../src/guestfs-availability.pod:119
29603 msgid ""
29604 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
29605 "L</guestfs_ntfsresize_size>"
29606 msgstr ""
29607
29608 #. type: =item
29609 #: ../src/guestfs-availability.pod:124
29610 msgid "B<realpath>"
29611 msgstr ""
29612
29613 #. type: textblock
29614 #: ../src/guestfs-availability.pod:126
29615 msgid "The following functions: L</guestfs_realpath>"
29616 msgstr ""
29617
29618 #. type: =item
29619 #: ../src/guestfs-availability.pod:129
29620 msgid "B<scrub>"
29621 msgstr ""
29622
29623 #. type: textblock
29624 #: ../src/guestfs-availability.pod:131
29625 msgid ""
29626 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
29627 "L</guestfs_scrub_freespace>"
29628 msgstr ""
29629
29630 #. type: =item
29631 #: ../src/guestfs-availability.pod:136
29632 msgid "B<selinux>"
29633 msgstr ""
29634
29635 #. type: textblock
29636 #: ../src/guestfs-availability.pod:138
29637 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
29638 msgstr ""
29639
29640 #. type: =item
29641 #: ../src/guestfs-availability.pod:142
29642 msgid "B<xz>"
29643 msgstr ""
29644
29645 #. type: textblock
29646 #: ../src/guestfs-availability.pod:144
29647 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
29648 msgstr ""
29649
29650 #. type: =item
29651 #: ../src/guestfs-availability.pod:148
29652 msgid "B<zerofree>"
29653 msgstr ""
29654
29655 #. type: textblock
29656 #: ../src/guestfs-availability.pod:150
29657 msgid "The following functions: L</guestfs_zerofree>"
29658 msgstr ""
29659
29660 #. type: =head2
29661 #: ../src/guestfs-structs.pod:1
29662 msgid "guestfs_int_bool"
29663 msgstr ""
29664
29665 #. type: verbatim
29666 #: ../src/guestfs-structs.pod:3
29667 #, no-wrap
29668 msgid ""
29669 " struct guestfs_int_bool {\n"
29670 "   int32_t i;\n"
29671 "   int32_t b;\n"
29672 " };\n"
29673 " \n"
29674 msgstr ""
29675
29676 #. type: verbatim
29677 #: ../src/guestfs-structs.pod:8
29678 #, no-wrap
29679 msgid ""
29680 " struct guestfs_int_bool_list {\n"
29681 "   uint32_t len; /* Number of elements in list. */\n"
29682 "   struct guestfs_int_bool *val; /* Elements. */\n"
29683 " };\n"
29684 " \n"
29685 msgstr ""
29686
29687 #. type: verbatim
29688 #: ../src/guestfs-structs.pod:13
29689 #, no-wrap
29690 msgid ""
29691 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
29692 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
29693 "\n"
29694 msgstr ""
29695
29696 #. type: =head2
29697 #: ../src/guestfs-structs.pod:16
29698 msgid "guestfs_lvm_pv"
29699 msgstr ""
29700
29701 #. type: verbatim
29702 #: ../src/guestfs-structs.pod:18
29703 #, no-wrap
29704 msgid ""
29705 " struct guestfs_lvm_pv {\n"
29706 "   char *pv_name;\n"
29707 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29708 "*/\n"
29709 "   char pv_uuid[32];\n"
29710 "   char *pv_fmt;\n"
29711 "   uint64_t pv_size;\n"
29712 "   uint64_t dev_size;\n"
29713 "   uint64_t pv_free;\n"
29714 "   uint64_t pv_used;\n"
29715 "   char *pv_attr;\n"
29716 "   int64_t pv_pe_count;\n"
29717 "   int64_t pv_pe_alloc_count;\n"
29718 "   char *pv_tags;\n"
29719 "   uint64_t pe_start;\n"
29720 "   int64_t pv_mda_count;\n"
29721 "   uint64_t pv_mda_free;\n"
29722 " };\n"
29723 " \n"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-structs.pod:36
29728 #, no-wrap
29729 msgid ""
29730 " struct guestfs_lvm_pv_list {\n"
29731 "   uint32_t len; /* Number of elements in list. */\n"
29732 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
29733 " };\n"
29734 " \n"
29735 msgstr ""
29736
29737 #. type: verbatim
29738 #: ../src/guestfs-structs.pod:41
29739 #, no-wrap
29740 msgid ""
29741 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
29742 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
29743 "\n"
29744 msgstr ""
29745
29746 #. type: =head2
29747 #: ../src/guestfs-structs.pod:44
29748 msgid "guestfs_lvm_vg"
29749 msgstr ""
29750
29751 #. type: verbatim
29752 #: ../src/guestfs-structs.pod:46
29753 #, no-wrap
29754 msgid ""
29755 " struct guestfs_lvm_vg {\n"
29756 "   char *vg_name;\n"
29757 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29758 "*/\n"
29759 "   char vg_uuid[32];\n"
29760 "   char *vg_fmt;\n"
29761 "   char *vg_attr;\n"
29762 "   uint64_t vg_size;\n"
29763 "   uint64_t vg_free;\n"
29764 "   char *vg_sysid;\n"
29765 "   uint64_t vg_extent_size;\n"
29766 "   int64_t vg_extent_count;\n"
29767 "   int64_t vg_free_count;\n"
29768 "   int64_t max_lv;\n"
29769 "   int64_t max_pv;\n"
29770 "   int64_t pv_count;\n"
29771 "   int64_t lv_count;\n"
29772 "   int64_t snap_count;\n"
29773 "   int64_t vg_seqno;\n"
29774 "   char *vg_tags;\n"
29775 "   int64_t vg_mda_count;\n"
29776 "   uint64_t vg_mda_free;\n"
29777 " };\n"
29778 " \n"
29779 msgstr ""
29780
29781 #. type: verbatim
29782 #: ../src/guestfs-structs.pod:69
29783 #, no-wrap
29784 msgid ""
29785 " struct guestfs_lvm_vg_list {\n"
29786 "   uint32_t len; /* Number of elements in list. */\n"
29787 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
29788 " };\n"
29789 " \n"
29790 msgstr ""
29791
29792 #. type: verbatim
29793 #: ../src/guestfs-structs.pod:74
29794 #, no-wrap
29795 msgid ""
29796 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
29797 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
29798 "\n"
29799 msgstr ""
29800
29801 #. type: =head2
29802 #: ../src/guestfs-structs.pod:77
29803 msgid "guestfs_lvm_lv"
29804 msgstr ""
29805
29806 #. type: verbatim
29807 #: ../src/guestfs-structs.pod:79
29808 #, no-wrap
29809 msgid ""
29810 " struct guestfs_lvm_lv {\n"
29811 "   char *lv_name;\n"
29812 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29813 "*/\n"
29814 "   char lv_uuid[32];\n"
29815 "   char *lv_attr;\n"
29816 "   int64_t lv_major;\n"
29817 "   int64_t lv_minor;\n"
29818 "   int64_t lv_kernel_major;\n"
29819 "   int64_t lv_kernel_minor;\n"
29820 "   uint64_t lv_size;\n"
29821 "   int64_t seg_count;\n"
29822 "   char *origin;\n"
29823 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29824 "   float snap_percent;\n"
29825 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29826 "   float copy_percent;\n"
29827 "   char *move_pv;\n"
29828 "   char *lv_tags;\n"
29829 "   char *mirror_log;\n"
29830 "   char *modules;\n"
29831 " };\n"
29832 " \n"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-structs.pod:101
29837 #, no-wrap
29838 msgid ""
29839 " struct guestfs_lvm_lv_list {\n"
29840 "   uint32_t len; /* Number of elements in list. */\n"
29841 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
29842 " };\n"
29843 " \n"
29844 msgstr ""
29845
29846 #. type: verbatim
29847 #: ../src/guestfs-structs.pod:106
29848 #, no-wrap
29849 msgid ""
29850 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
29851 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
29852 "\n"
29853 msgstr ""
29854
29855 #. type: verbatim
29856 #: ../src/guestfs-structs.pod:111
29857 #, no-wrap
29858 msgid ""
29859 " struct guestfs_stat {\n"
29860 "   int64_t dev;\n"
29861 "   int64_t ino;\n"
29862 "   int64_t mode;\n"
29863 "   int64_t nlink;\n"
29864 "   int64_t uid;\n"
29865 "   int64_t gid;\n"
29866 "   int64_t rdev;\n"
29867 "   int64_t size;\n"
29868 "   int64_t blksize;\n"
29869 "   int64_t blocks;\n"
29870 "   int64_t atime;\n"
29871 "   int64_t mtime;\n"
29872 "   int64_t ctime;\n"
29873 " };\n"
29874 " \n"
29875 msgstr ""
29876
29877 #. type: verbatim
29878 #: ../src/guestfs-structs.pod:127
29879 #, no-wrap
29880 msgid ""
29881 " struct guestfs_stat_list {\n"
29882 "   uint32_t len; /* Number of elements in list. */\n"
29883 "   struct guestfs_stat *val; /* Elements. */\n"
29884 " };\n"
29885 " \n"
29886 msgstr ""
29887
29888 #. type: verbatim
29889 #: ../src/guestfs-structs.pod:132
29890 #, no-wrap
29891 msgid ""
29892 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
29893 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
29894 "\n"
29895 msgstr ""
29896
29897 #. type: verbatim
29898 #: ../src/guestfs-structs.pod:137
29899 #, no-wrap
29900 msgid ""
29901 " struct guestfs_statvfs {\n"
29902 "   int64_t bsize;\n"
29903 "   int64_t frsize;\n"
29904 "   int64_t blocks;\n"
29905 "   int64_t bfree;\n"
29906 "   int64_t bavail;\n"
29907 "   int64_t files;\n"
29908 "   int64_t ffree;\n"
29909 "   int64_t favail;\n"
29910 "   int64_t fsid;\n"
29911 "   int64_t flag;\n"
29912 "   int64_t namemax;\n"
29913 " };\n"
29914 " \n"
29915 msgstr ""
29916
29917 #. type: verbatim
29918 #: ../src/guestfs-structs.pod:151
29919 #, no-wrap
29920 msgid ""
29921 " struct guestfs_statvfs_list {\n"
29922 "   uint32_t len; /* Number of elements in list. */\n"
29923 "   struct guestfs_statvfs *val; /* Elements. */\n"
29924 " };\n"
29925 " \n"
29926 msgstr ""
29927
29928 #. type: verbatim
29929 #: ../src/guestfs-structs.pod:156
29930 #, no-wrap
29931 msgid ""
29932 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
29933 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
29934 "\n"
29935 msgstr ""
29936
29937 #. type: =head2
29938 #: ../src/guestfs-structs.pod:159
29939 msgid "guestfs_dirent"
29940 msgstr ""
29941
29942 #. type: verbatim
29943 #: ../src/guestfs-structs.pod:161
29944 #, no-wrap
29945 msgid ""
29946 " struct guestfs_dirent {\n"
29947 "   int64_t ino;\n"
29948 "   char ftyp;\n"
29949 "   char *name;\n"
29950 " };\n"
29951 " \n"
29952 msgstr ""
29953
29954 #. type: verbatim
29955 #: ../src/guestfs-structs.pod:167
29956 #, no-wrap
29957 msgid ""
29958 " struct guestfs_dirent_list {\n"
29959 "   uint32_t len; /* Number of elements in list. */\n"
29960 "   struct guestfs_dirent *val; /* Elements. */\n"
29961 " };\n"
29962 " \n"
29963 msgstr ""
29964
29965 #. type: verbatim
29966 #: ../src/guestfs-structs.pod:172
29967 #, no-wrap
29968 msgid ""
29969 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
29970 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
29971 "\n"
29972 msgstr ""
29973
29974 #. type: verbatim
29975 #: ../src/guestfs-structs.pod:177
29976 #, no-wrap
29977 msgid ""
29978 " struct guestfs_version {\n"
29979 "   int64_t major;\n"
29980 "   int64_t minor;\n"
29981 "   int64_t release;\n"
29982 "   char *extra;\n"
29983 " };\n"
29984 " \n"
29985 msgstr ""
29986
29987 #. type: verbatim
29988 #: ../src/guestfs-structs.pod:184
29989 #, no-wrap
29990 msgid ""
29991 " struct guestfs_version_list {\n"
29992 "   uint32_t len; /* Number of elements in list. */\n"
29993 "   struct guestfs_version *val; /* Elements. */\n"
29994 " };\n"
29995 " \n"
29996 msgstr ""
29997
29998 #. type: verbatim
29999 #: ../src/guestfs-structs.pod:189
30000 #, no-wrap
30001 msgid ""
30002 " void guestfs_free_version (struct guestfs_free_version *);\n"
30003 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
30004 "\n"
30005 msgstr ""
30006
30007 #. type: =head2
30008 #: ../src/guestfs-structs.pod:192
30009 msgid "guestfs_xattr"
30010 msgstr ""
30011
30012 #. type: verbatim
30013 #: ../src/guestfs-structs.pod:194
30014 #, no-wrap
30015 msgid ""
30016 " struct guestfs_xattr {\n"
30017 "   char *attrname;\n"
30018 "   /* The next two fields describe a byte array. */\n"
30019 "   uint32_t attrval_len;\n"
30020 "   char *attrval;\n"
30021 " };\n"
30022 " \n"
30023 msgstr ""
30024
30025 #. type: verbatim
30026 #: ../src/guestfs-structs.pod:201
30027 #, no-wrap
30028 msgid ""
30029 " struct guestfs_xattr_list {\n"
30030 "   uint32_t len; /* Number of elements in list. */\n"
30031 "   struct guestfs_xattr *val; /* Elements. */\n"
30032 " };\n"
30033 " \n"
30034 msgstr ""
30035
30036 #. type: verbatim
30037 #: ../src/guestfs-structs.pod:206
30038 #, no-wrap
30039 msgid ""
30040 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
30041 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
30042 "\n"
30043 msgstr ""
30044
30045 #. type: =head2
30046 #: ../src/guestfs-structs.pod:209
30047 msgid "guestfs_inotify_event"
30048 msgstr ""
30049
30050 #. type: verbatim
30051 #: ../src/guestfs-structs.pod:211
30052 #, no-wrap
30053 msgid ""
30054 " struct guestfs_inotify_event {\n"
30055 "   int64_t in_wd;\n"
30056 "   uint32_t in_mask;\n"
30057 "   uint32_t in_cookie;\n"
30058 "   char *in_name;\n"
30059 " };\n"
30060 " \n"
30061 msgstr ""
30062
30063 #. type: verbatim
30064 #: ../src/guestfs-structs.pod:218
30065 #, no-wrap
30066 msgid ""
30067 " struct guestfs_inotify_event_list {\n"
30068 "   uint32_t len; /* Number of elements in list. */\n"
30069 "   struct guestfs_inotify_event *val; /* Elements. */\n"
30070 " };\n"
30071 " \n"
30072 msgstr ""
30073
30074 #. type: verbatim
30075 #: ../src/guestfs-structs.pod:223
30076 #, no-wrap
30077 msgid ""
30078 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
30079 " void guestfs_free_inotify_event_list (struct "
30080 "guestfs_free_inotify_event_list *);\n"
30081 "\n"
30082 msgstr ""
30083
30084 #. type: =head2
30085 #: ../src/guestfs-structs.pod:226
30086 msgid "guestfs_partition"
30087 msgstr ""
30088
30089 #. type: verbatim
30090 #: ../src/guestfs-structs.pod:228
30091 #, no-wrap
30092 msgid ""
30093 " struct guestfs_partition {\n"
30094 "   int32_t part_num;\n"
30095 "   uint64_t part_start;\n"
30096 "   uint64_t part_end;\n"
30097 "   uint64_t part_size;\n"
30098 " };\n"
30099 " \n"
30100 msgstr ""
30101
30102 #. type: verbatim
30103 #: ../src/guestfs-structs.pod:235
30104 #, no-wrap
30105 msgid ""
30106 " struct guestfs_partition_list {\n"
30107 "   uint32_t len; /* Number of elements in list. */\n"
30108 "   struct guestfs_partition *val; /* Elements. */\n"
30109 " };\n"
30110 " \n"
30111 msgstr ""
30112
30113 #. type: verbatim
30114 #: ../src/guestfs-structs.pod:240
30115 #, no-wrap
30116 msgid ""
30117 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
30118 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
30119 "\n"
30120 msgstr ""
30121
30122 #. type: =head2
30123 #: ../src/guestfs-structs.pod:243
30124 msgid "guestfs_application"
30125 msgstr ""
30126
30127 #. type: verbatim
30128 #: ../src/guestfs-structs.pod:245
30129 #, no-wrap
30130 msgid ""
30131 " struct guestfs_application {\n"
30132 "   char *app_name;\n"
30133 "   char *app_display_name;\n"
30134 "   int32_t app_epoch;\n"
30135 "   char *app_version;\n"
30136 "   char *app_release;\n"
30137 "   char *app_install_path;\n"
30138 "   char *app_trans_path;\n"
30139 "   char *app_publisher;\n"
30140 "   char *app_url;\n"
30141 "   char *app_source_package;\n"
30142 "   char *app_summary;\n"
30143 "   char *app_description;\n"
30144 " };\n"
30145 " \n"
30146 msgstr ""
30147
30148 #. type: verbatim
30149 #: ../src/guestfs-structs.pod:260
30150 #, no-wrap
30151 msgid ""
30152 " struct guestfs_application_list {\n"
30153 "   uint32_t len; /* Number of elements in list. */\n"
30154 "   struct guestfs_application *val; /* Elements. */\n"
30155 " };\n"
30156 " \n"
30157 msgstr ""
30158
30159 #. type: verbatim
30160 #: ../src/guestfs-structs.pod:265
30161 #, no-wrap
30162 msgid ""
30163 " void guestfs_free_application (struct guestfs_free_application *);\n"
30164 " void guestfs_free_application_list (struct guestfs_free_application_list "
30165 "*);\n"
30166 "\n"
30167 msgstr ""
30168
30169 #. type: textblock
30170 #: ../src/guestfs.pod:5
30171 msgid "guestfs - Library for accessing and modifying virtual machine images"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs.pod:11
30176 #, no-wrap
30177 msgid ""
30178 " guestfs_h *g = guestfs_create ();\n"
30179 " guestfs_add_drive (g, \"guest.img\");\n"
30180 " guestfs_launch (g);\n"
30181 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30182 " guestfs_touch (g, \"/hello\");\n"
30183 " guestfs_umount (g, \"/\");\n"
30184 " guestfs_close (g);\n"
30185 "\n"
30186 msgstr ""
30187
30188 #. type: textblock
30189 #: ../src/guestfs.pod:25
30190 msgid ""
30191 "Libguestfs is a library for accessing and modifying guest disk images.  "
30192 "Amongst the things this is good for: making batch configuration changes to "
30193 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30194 "between virtualization systems (see also: virt-p2v), performing partial "
30195 "backups, performing partial guest clones, cloning guests and changing "
30196 "registry/UUID/hostname info, and much else besides."
30197 msgstr ""
30198
30199 #. type: textblock
30200 #: ../src/guestfs.pod:33
30201 msgid ""
30202 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30203 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30204 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30205 "qcow2, vmdk."
30206 msgstr ""
30207
30208 #. type: textblock
30209 #: ../src/guestfs.pod:38
30210 msgid ""
30211 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30212 "what filesystem is in each LV, etc.).  It can also run commands in the "
30213 "context of the guest.  Also you can access filesystems over FUSE."
30214 msgstr ""
30215
30216 #. type: textblock
30217 #: ../src/guestfs.pod:43
30218 msgid ""
30219 "Libguestfs is a library that can be linked with C and C++ management "
30220 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30221 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30222 "line."
30223 msgstr ""
30224
30225 #. type: textblock
30226 #: ../src/guestfs.pod:48
30227 msgid ""
30228 "You don't need to be root to use libguestfs, although obviously you do need "
30229 "enough permissions to access the disk images."
30230 msgstr ""
30231
30232 #. type: textblock
30233 #: ../src/guestfs.pod:51
30234 msgid ""
30235 "Libguestfs is a large API because it can do many things.  For a gentle "
30236 "introduction, please read the L</API OVERVIEW> section next."
30237 msgstr ""
30238
30239 #. type: textblock
30240 #: ../src/guestfs.pod:54
30241 msgid ""
30242 "There are also some example programs in the L<guestfs-examples(3)> manual "
30243 "page."
30244 msgstr ""
30245
30246 #. type: =head1
30247 #: ../src/guestfs.pod:57
30248 msgid "API OVERVIEW"
30249 msgstr ""
30250
30251 #. type: textblock
30252 #: ../src/guestfs.pod:59
30253 msgid ""
30254 "This section provides a gentler overview of the libguestfs API.  We also try "
30255 "to group API calls together, where that may not be obvious from reading "
30256 "about the individual calls in the main section of this manual."
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../src/guestfs.pod:64
30261 msgid "HANDLES"
30262 msgstr ""
30263
30264 #. type: textblock
30265 #: ../src/guestfs.pod:66
30266 msgid ""
30267 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30268 "must add at least one disk image to the handle, followed by launching the "
30269 "handle, then performing whatever operations you want, and finally closing "
30270 "the handle.  By convention we use the single letter C<g> for the name of the "
30271 "handle variable, although of course you can use any name you want."
30272 msgstr ""
30273
30274 #. type: textblock
30275 #: ../src/guestfs.pod:73
30276 msgid "The general structure of all libguestfs-using programs looks like this:"
30277 msgstr ""
30278
30279 #. type: verbatim
30280 #: ../src/guestfs.pod:76
30281 #, no-wrap
30282 msgid ""
30283 " guestfs_h *g = guestfs_create ();\n"
30284 " \n"
30285 msgstr ""
30286
30287 #. type: verbatim
30288 #: ../src/guestfs.pod:78
30289 #, no-wrap
30290 msgid ""
30291 " /* Call guestfs_add_drive additional times if there are\n"
30292 "  * multiple disk images.\n"
30293 "  */\n"
30294 " guestfs_add_drive (g, \"guest.img\");\n"
30295 " \n"
30296 msgstr ""
30297
30298 #. type: verbatim
30299 #: ../src/guestfs.pod:83
30300 #, no-wrap
30301 msgid ""
30302 " /* Most manipulation calls won't work until you've launched\n"
30303 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30304 "  * and _before_ other commands.\n"
30305 "  */\n"
30306 " guestfs_launch (g);\n"
30307 " \n"
30308 msgstr ""
30309
30310 #. type: verbatim
30311 #: ../src/guestfs.pod:89
30312 #, no-wrap
30313 msgid ""
30314 " /* Now you can examine what partitions, LVs etc are available.\n"
30315 "  */\n"
30316 " char **partitions = guestfs_list_partitions (g);\n"
30317 " char **logvols = guestfs_lvs (g);\n"
30318 " \n"
30319 msgstr ""
30320
30321 #. type: verbatim
30322 #: ../src/guestfs.pod:94
30323 #, no-wrap
30324 msgid ""
30325 " /* To access a filesystem in the image, you must mount it.\n"
30326 "  */\n"
30327 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30328 " \n"
30329 msgstr ""
30330
30331 #. type: verbatim
30332 #: ../src/guestfs.pod:98
30333 #, no-wrap
30334 msgid ""
30335 " /* Now you can perform filesystem actions on the guest\n"
30336 "  * disk image.\n"
30337 "  */\n"
30338 " guestfs_touch (g, \"/hello\");\n"
30339 " \n"
30340 msgstr ""
30341
30342 #. type: verbatim
30343 #: ../src/guestfs.pod:103
30344 #, no-wrap
30345 msgid ""
30346 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30347 "  * it is done automatically when you close the handle.  See\n"
30348 "  * discussion of autosync in this page.\n"
30349 "  */\n"
30350 " guestfs_sync (g);\n"
30351 " \n"
30352 msgstr ""
30353
30354 #. type: verbatim
30355 #: ../src/guestfs.pod:109
30356 #, no-wrap
30357 msgid ""
30358 " /* Close the handle 'g'. */\n"
30359 " guestfs_close (g);\n"
30360 "\n"
30361 msgstr ""
30362
30363 #. type: textblock
30364 #: ../src/guestfs.pod:112
30365 msgid ""
30366 "The code above doesn't include any error checking.  In real code you should "
30367 "check return values carefully for errors.  In general all functions that "
30368 "return integers return C<-1> on error, and all functions that return "
30369 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30370 "how to handle errors, and consult the documentation for each function call "
30371 "below to see precisely how they return error indications.  See "
30372 "L<guestfs-examples(3)> for fully worked examples."
30373 msgstr ""
30374
30375 #. type: =head2
30376 #: ../src/guestfs.pod:121
30377 msgid "DISK IMAGES"
30378 msgstr ""
30379
30380 #. type: textblock
30381 #: ../src/guestfs.pod:123
30382 msgid ""
30383 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30384 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30385 "actual block device, or simply an empty file of zeroes that you have created "
30386 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30387 "of these."
30388 msgstr ""
30389
30390 #. type: textblock
30391 #: ../src/guestfs.pod:129
30392 msgid ""
30393 "The call you should use in modern code for adding drives is "
30394 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30395 "specifying that the format is raw, do:"
30396 msgstr ""
30397
30398 #. type: verbatim
30399 #: ../src/guestfs.pod:133
30400 #, no-wrap
30401 msgid ""
30402 " guestfs_add_drive_opts (g, filename,\n"
30403 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30404 "                         -1);\n"
30405 "\n"
30406 msgstr ""
30407
30408 #. type: textblock
30409 #: ../src/guestfs.pod:137
30410 msgid "You can add a disk read-only using:"
30411 msgstr ""
30412
30413 #. type: verbatim
30414 #: ../src/guestfs.pod:139
30415 #, no-wrap
30416 msgid ""
30417 " guestfs_add_drive_opts (g, filename,\n"
30418 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30419 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30420 "                         -1);\n"
30421 "\n"
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs.pod:144
30426 msgid ""
30427 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30428 "libguestfs won't modify the file."
30429 msgstr ""
30430
30431 #. type: textblock
30432 #: ../src/guestfs.pod:147
30433 msgid ""
30434 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30435 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30436 "corruption, but adding it read-only is safe."
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../src/guestfs.pod:151
30441 msgid ""
30442 "You must add at least one disk image, and you may add multiple disk images.  "
30443 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30444 "first one you added), C</dev/sdb> (for the second one you added), etc."
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs.pod:156
30449 msgid ""
30450 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30451 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30452 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30453 msgstr ""
30454
30455 #. type: =head2
30456 #: ../src/guestfs.pod:161
30457 msgid "MOUNTING"
30458 msgstr ""
30459
30460 #. type: textblock
30461 #: ../src/guestfs.pod:163
30462 msgid ""
30463 "Before you can read or write files, create directories and so on in a disk "
30464 "image that contains filesystems, you have to mount those filesystems using "
30465 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30466 "a disk image contains (for example) one partition with a filesystem on that "
30467 "partition, then you can mount it directly:"
30468 msgstr ""
30469
30470 #. type: verbatim
30471 #: ../src/guestfs.pod:170
30472 #, no-wrap
30473 msgid ""
30474 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30475 "\n"
30476 msgstr ""
30477
30478 #. type: textblock
30479 #: ../src/guestfs.pod:172
30480 msgid ""
30481 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30482 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30483 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30484 "that these are libguestfs virtual devices, and are nothing to do with host "
30485 "devices."
30486 msgstr ""
30487
30488 #. type: textblock
30489 #: ../src/guestfs.pod:178
30490 msgid ""
30491 "If you are given a disk image and you don't know what it contains then you "
30492 "have to find out.  Libguestfs can do that too: use "
30493 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
30494 "and LVs, and either try mounting each to see what is mountable, or else "
30495 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
30496 "filesystems, use L</guestfs_list_filesystems>."
30497 msgstr ""
30498
30499 #. type: textblock
30500 #: ../src/guestfs.pod:186
30501 msgid ""
30502 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
30503 "L</INSPECTION> below).  But you might find it easier to look at higher level "
30504 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
30505 msgstr ""
30506
30507 #. type: textblock
30508 #: ../src/guestfs.pod:191
30509 msgid ""
30510 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
30511 "several other variations of the C<guestfs_mount_*> call."
30512 msgstr ""
30513
30514 #. type: =head2
30515 #: ../src/guestfs.pod:194
30516 msgid "FILESYSTEM ACCESS AND MODIFICATION"
30517 msgstr ""
30518
30519 #. type: textblock
30520 #: ../src/guestfs.pod:196
30521 msgid ""
30522 "The majority of the libguestfs API consists of fairly low-level calls for "
30523 "accessing and modifying the files, directories, symlinks etc on mounted "
30524 "filesystems.  There are over a hundred such calls which you can find listed "
30525 "in detail below in this man page, and we don't even pretend to cover them "
30526 "all in this overview."
30527 msgstr ""
30528
30529 #. type: textblock
30530 #: ../src/guestfs.pod:202
30531 msgid ""
30532 "Specify filenames as full paths, starting with C<\"/\"> and including the "
30533 "mount point."
30534 msgstr ""
30535
30536 #. type: textblock
30537 #: ../src/guestfs.pod:205
30538 msgid ""
30539 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
30540 "the file called C<\"etc/passwd\"> then you could do:"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs.pod:208
30545 #, no-wrap
30546 msgid ""
30547 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
30548 "\n"
30549 msgstr ""
30550
30551 #. type: textblock
30552 #: ../src/guestfs.pod:210
30553 msgid ""
30554 "This would return C<data> as a newly allocated buffer containing the full "
30555 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
30556 "or C<NULL> if there was an error."
30557 msgstr ""
30558
30559 #. type: textblock
30560 #: ../src/guestfs.pod:214
30561 msgid ""
30562 "As another example, to create a top-level directory on that filesystem "
30563 "called C<\"var\"> you would do:"
30564 msgstr ""
30565
30566 #. type: verbatim
30567 #: ../src/guestfs.pod:217
30568 #, no-wrap
30569 msgid ""
30570 " guestfs_mkdir (g, \"/var\");\n"
30571 "\n"
30572 msgstr ""
30573
30574 #. type: textblock
30575 #: ../src/guestfs.pod:219
30576 msgid "To create a symlink you could do:"
30577 msgstr ""
30578
30579 #. type: verbatim
30580 #: ../src/guestfs.pod:221
30581 #, no-wrap
30582 msgid ""
30583 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
30584 "               \"/etc/rc3.d/S30portmap\");\n"
30585 "\n"
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../src/guestfs.pod:224
30590 msgid ""
30591 "Libguestfs will reject attempts to use relative paths and there is no "
30592 "concept of a current working directory."
30593 msgstr ""
30594
30595 #. type: textblock
30596 #: ../src/guestfs.pod:227
30597 msgid ""
30598 "Libguestfs can return errors in many situations: for example if the "
30599 "filesystem isn't writable, or if a file or directory that you requested "
30600 "doesn't exist.  If you are using the C API (documented here)  you have to "
30601 "check for those error conditions after each call.  (Other language bindings "
30602 "turn these errors into exceptions)."
30603 msgstr ""
30604
30605 #. type: textblock
30606 #: ../src/guestfs.pod:233
30607 msgid ""
30608 "File writes are affected by the per-handle umask, set by calling "
30609 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
30610 msgstr ""
30611
30612 #. type: =head2
30613 #: ../src/guestfs.pod:236
30614 msgid "PARTITIONING"
30615 msgstr ""
30616
30617 #. type: textblock
30618 #: ../src/guestfs.pod:238
30619 msgid ""
30620 "Libguestfs contains API calls to read, create and modify partition tables on "
30621 "disk images."
30622 msgstr ""
30623
30624 #. type: textblock
30625 #: ../src/guestfs.pod:241
30626 msgid ""
30627 "In the common case where you want to create a single partition covering the "
30628 "whole disk, you should use the L</guestfs_part_disk> call:"
30629 msgstr ""
30630
30631 #. type: verbatim
30632 #: ../src/guestfs.pod:245
30633 #, no-wrap
30634 msgid ""
30635 " const char *parttype = \"mbr\";\n"
30636 " if (disk_is_larger_than_2TB)\n"
30637 "   parttype = \"gpt\";\n"
30638 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
30639 "\n"
30640 msgstr ""
30641
30642 #. type: textblock
30643 #: ../src/guestfs.pod:250
30644 msgid ""
30645 "Obviously this effectively wipes anything that was on that disk image "
30646 "before."
30647 msgstr ""
30648
30649 #. type: =head2
30650 #: ../src/guestfs.pod:253
30651 msgid "LVM2"
30652 msgstr ""
30653
30654 #. type: textblock
30655 #: ../src/guestfs.pod:255
30656 msgid ""
30657 "Libguestfs provides access to a large part of the LVM2 API, such as "
30658 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
30659 "unless you familiarize yourself with the concepts of physical volumes, "
30660 "volume groups and logical volumes."
30661 msgstr ""
30662
30663 #. type: textblock
30664 #: ../src/guestfs.pod:260
30665 msgid ""
30666 "This author strongly recommends reading the LVM HOWTO, online at "
30667 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
30668 msgstr ""
30669
30670 #. type: =head2
30671 #: ../src/guestfs.pod:263
30672 msgid "DOWNLOADING"
30673 msgstr ""
30674
30675 #. type: textblock
30676 #: ../src/guestfs.pod:265
30677 msgid ""
30678 "Use L</guestfs_cat> to download small, text only files.  This call is "
30679 "limited to files which are less than 2 MB and which cannot contain any ASCII "
30680 "NUL (C<\\0>) characters.  However the API is very simple to use."
30681 msgstr ""
30682
30683 #. type: textblock
30684 #: ../src/guestfs.pod:269
30685 msgid ""
30686 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
30687 "bit data, since it returns a (pointer, size) pair.  However it is still "
30688 "limited to \"small\" files, less than 2 MB."
30689 msgstr ""
30690
30691 #. type: textblock
30692 #: ../src/guestfs.pod:273
30693 msgid ""
30694 "L</guestfs_download> can be used to download any file, with no limits on "
30695 "content or size (even files larger than 4 GB)."
30696 msgstr ""
30697
30698 #. type: textblock
30699 #: ../src/guestfs.pod:276
30700 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
30701 msgstr ""
30702
30703 #. type: =head2
30704 #: ../src/guestfs.pod:279
30705 msgid "UPLOADING"
30706 msgstr ""
30707
30708 #. type: textblock
30709 #: ../src/guestfs.pod:281
30710 msgid ""
30711 "It's often the case that you want to write a file or files to the disk "
30712 "image."
30713 msgstr ""
30714
30715 #. type: textblock
30716 #: ../src/guestfs.pod:284
30717 msgid ""
30718 "To write a small file with fixed content, use L</guestfs_write>.  To create "
30719 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
30720 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
30721 "variety of other functions for creating test files, for example "
30722 "L</guestfs_fill> and L</guestfs_fill_pattern>."
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs.pod:290
30727 msgid ""
30728 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
30729 "file content or size (even files larger than 4 GB)."
30730 msgstr ""
30731
30732 #. type: textblock
30733 #: ../src/guestfs.pod:293
30734 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
30735 msgstr ""
30736
30737 #. type: textblock
30738 #: ../src/guestfs.pod:295
30739 msgid ""
30740 "However the fastest way to upload I<large numbers of arbitrary files> is to "
30741 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
30742 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
30743 "the drive in a predictable way (eg. adding it last after all other drives) "
30744 "then you can get the device name from L</guestfs_list_devices> and mount it "
30745 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
30746 "sometimes non-portable between kernel versions, and they don't support "
30747 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
30748 "using a label or UUID, use an ISO image instead."
30749 msgstr ""
30750
30751 #. type: =head2
30752 #: ../src/guestfs.pod:306
30753 msgid "COPYING"
30754 msgstr ""
30755
30756 #. type: textblock
30757 #: ../src/guestfs.pod:308
30758 msgid ""
30759 "There are various different commands for copying between files and devices "
30760 "and in and out of the guest filesystem.  These are summarised in the table "
30761 "below."
30762 msgstr ""
30763
30764 #. type: =item
30765 #: ../src/guestfs.pod:314
30766 msgid "B<file> to B<file>"
30767 msgstr ""
30768
30769 #. type: textblock
30770 #: ../src/guestfs.pod:316
30771 msgid ""
30772 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
30773 "directories recursively."
30774 msgstr ""
30775
30776 #. type: =item
30777 #: ../src/guestfs.pod:319
30778 msgid "B<file or device> to B<file or device>"
30779 msgstr ""
30780
30781 #. type: textblock
30782 #: ../src/guestfs.pod:321
30783 msgid ""
30784 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
30785 "devices in the guest."
30786 msgstr ""
30787
30788 #. type: textblock
30789 #: ../src/guestfs.pod:324
30790 msgid "Example: duplicate the contents of an LV:"
30791 msgstr ""
30792
30793 #. type: verbatim
30794 #: ../src/guestfs.pod:326
30795 #, no-wrap
30796 msgid ""
30797 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
30798 "\n"
30799 msgstr ""
30800
30801 #. type: textblock
30802 #: ../src/guestfs.pod:328
30803 msgid ""
30804 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
30805 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
30806 "L</guestfs_copy_size>."
30807 msgstr ""
30808
30809 #. type: =item
30810 #: ../src/guestfs.pod:332
30811 msgid "B<file on the host> to B<file or device>"
30812 msgstr ""
30813
30814 #. type: textblock
30815 #: ../src/guestfs.pod:334
30816 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
30817 msgstr ""
30818
30819 #. type: =item
30820 #: ../src/guestfs.pod:336
30821 msgid "B<file or device> to B<file on the host>"
30822 msgstr ""
30823
30824 #. type: textblock
30825 #: ../src/guestfs.pod:338
30826 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
30827 msgstr ""
30828
30829 #. type: =head2
30830 #: ../src/guestfs.pod:342
30831 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
30832 msgstr ""
30833
30834 #. type: textblock
30835 #: ../src/guestfs.pod:344
30836 msgid ""
30837 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
30838 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
30839 "appears you can only upload and download to files.  However many Un*x-like "
30840 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
30841 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
30842 "stderr, and arbitrary file descriptor N."
30843 msgstr ""
30844
30845 #. type: textblock
30846 #: ../src/guestfs.pod:352
30847 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
30848 msgstr ""
30849
30850 #. type: verbatim
30851 #: ../src/guestfs.pod:355
30852 #, no-wrap
30853 msgid ""
30854 " guestfs_download (g, filename, \"/dev/stdout\");\n"
30855 "\n"
30856 msgstr ""
30857
30858 #. type: textblock
30859 #: ../src/guestfs.pod:357
30860 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
30861 msgstr ""
30862
30863 #. type: verbatim
30864 #: ../src/guestfs.pod:359
30865 #, no-wrap
30866 msgid ""
30867 " char devfd[64];\n"
30868 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
30869 " guestfs_tar_out (g, \"/\", devfd);\n"
30870 "\n"
30871 msgstr ""
30872
30873 #. type: =head2
30874 #: ../src/guestfs.pod:363
30875 msgid "LISTING FILES"
30876 msgstr ""
30877
30878 #. type: textblock
30879 #: ../src/guestfs.pod:365
30880 msgid ""
30881 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
30882 "L<guestfish(1)>-equivalent command C<ll>)."
30883 msgstr ""
30884
30885 #. type: textblock
30886 #: ../src/guestfs.pod:368
30887 msgid ""
30888 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
30889 "programs, as a flat list of strings."
30890 msgstr ""
30891
30892 #. type: textblock
30893 #: ../src/guestfs.pod:371
30894 msgid ""
30895 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
30896 "directory, plus additional information about each one.  It is more "
30897 "equivalent to using the L<readdir(3)> call on a local filesystem."
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs.pod:375
30902 msgid ""
30903 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
30904 "files."
30905 msgstr ""
30906
30907 #. type: =head2
30908 #: ../src/guestfs.pod:378
30909 msgid "RUNNING COMMANDS"
30910 msgstr ""
30911
30912 #. type: textblock
30913 #: ../src/guestfs.pod:380
30914 msgid ""
30915 "Although libguestfs is primarily an API for manipulating files inside guest "
30916 "images, we also provide some limited facilities for running commands inside "
30917 "guests."
30918 msgstr ""
30919
30920 #. type: textblock
30921 #: ../src/guestfs.pod:384
30922 msgid "There are many limitations to this:"
30923 msgstr ""
30924
30925 #. type: textblock
30926 #: ../src/guestfs.pod:390
30927 msgid ""
30928 "The kernel version that the command runs under will be different from what "
30929 "it expects."
30930 msgstr ""
30931
30932 #. type: textblock
30933 #: ../src/guestfs.pod:395
30934 msgid ""
30935 "If the command needs to communicate with daemons, then most likely they "
30936 "won't be running."
30937 msgstr ""
30938
30939 #. type: textblock
30940 #: ../src/guestfs.pod:400
30941 msgid "The command will be running in limited memory."
30942 msgstr ""
30943
30944 #. type: textblock
30945 #: ../src/guestfs.pod:404
30946 msgid ""
30947 "The network may not be available unless you enable it (see "
30948 "L</guestfs_set_network>)."
30949 msgstr ""
30950
30951 #. type: textblock
30952 #: ../src/guestfs.pod:409
30953 msgid "Only supports Linux guests (not Windows, BSD, etc)."
30954 msgstr ""
30955
30956 #. type: textblock
30957 #: ../src/guestfs.pod:413
30958 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
30959 msgstr ""
30960
30961 #. type: textblock
30962 #: ../src/guestfs.pod:418
30963 msgid ""
30964 "For SELinux guests, you may need to enable SELinux and load policy first.  "
30965 "See L</SELINUX> in this manpage."
30966 msgstr ""
30967
30968 #. type: textblock
30969 #: ../src/guestfs.pod:423
30970 msgid ""
30971 "I<Security:> It is not safe to run commands from untrusted, possibly "
30972 "malicious guests.  These commands may attempt to exploit your program by "
30973 "sending unexpected output.  They could also try to exploit the Linux kernel "
30974 "or qemu provided by the libguestfs appliance.  They could use the network "
30975 "provided by the libguestfs appliance to bypass ordinary network partitions "
30976 "and firewalls.  They could use the elevated privileges or different SELinux "
30977 "context of your program to their advantage."
30978 msgstr ""
30979
30980 #. type: textblock
30981 #: ../src/guestfs.pod:432
30982 msgid ""
30983 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
30984 "(a script which runs when the guest next boots normally), and to have this "
30985 "script run the commands you want in the normal context of the running guest, "
30986 "network security and so on.  For information about other security issues, "
30987 "see L</SECURITY>."
30988 msgstr ""
30989
30990 #. type: textblock
30991 #: ../src/guestfs.pod:440
30992 msgid ""
30993 "The two main API calls to run commands are L</guestfs_command> and "
30994 "L</guestfs_sh> (there are also variations)."
30995 msgstr ""
30996
30997 #. type: textblock
30998 #: ../src/guestfs.pod:443
30999 msgid ""
31000 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
31001 "shell globs, redirections, etc will work."
31002 msgstr ""
31003
31004 #. type: =head2
31005 #: ../src/guestfs.pod:446
31006 msgid "CONFIGURATION FILES"
31007 msgstr ""
31008
31009 #. type: textblock
31010 #: ../src/guestfs.pod:448
31011 msgid ""
31012 "To read and write configuration files in Linux guest filesystems, we "
31013 "strongly recommend using Augeas.  For example, Augeas understands how to "
31014 "read and write, say, a Linux shadow password file or X.org configuration "
31015 "file, and so avoids you having to write that code."
31016 msgstr ""
31017
31018 #. type: textblock
31019 #: ../src/guestfs.pod:453
31020 msgid ""
31021 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
31022 "document Augeas itself here because there is excellent documentation on the "
31023 "L<http://augeas.net/> website."
31024 msgstr ""
31025
31026 #. type: textblock
31027 #: ../src/guestfs.pod:457
31028 msgid ""
31029 "If you don't want to use Augeas (you fool!) then try calling "
31030 "L</guestfs_read_lines> to get the file as a list of lines which you can "
31031 "iterate over."
31032 msgstr ""
31033
31034 #. type: =head2
31035 #: ../src/guestfs.pod:461
31036 msgid "SELINUX"
31037 msgstr ""
31038
31039 #. type: textblock
31040 #: ../src/guestfs.pod:463
31041 msgid ""
31042 "We support SELinux guests.  To ensure that labeling happens correctly in "
31043 "SELinux guests, you need to enable SELinux and load the guest's policy:"
31044 msgstr ""
31045
31046 #. type: textblock
31047 #: ../src/guestfs.pod:471
31048 msgid "Before launching, do:"
31049 msgstr ""
31050
31051 #. type: verbatim
31052 #: ../src/guestfs.pod:473
31053 #, no-wrap
31054 msgid ""
31055 " guestfs_set_selinux (g, 1);\n"
31056 "\n"
31057 msgstr ""
31058
31059 #. type: textblock
31060 #: ../src/guestfs.pod:477
31061 msgid ""
31062 "After mounting the guest's filesystem(s), load the policy.  This is best "
31063 "done by running the L<load_policy(8)> command in the guest itself:"
31064 msgstr ""
31065
31066 #. type: verbatim
31067 #: ../src/guestfs.pod:481
31068 #, no-wrap
31069 msgid ""
31070 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
31071 "\n"
31072 msgstr ""
31073
31074 #. type: textblock
31075 #: ../src/guestfs.pod:483
31076 msgid ""
31077 "(Older versions of C<load_policy> require you to specify the name of the "
31078 "policy file)."
31079 msgstr ""
31080
31081 #. type: textblock
31082 #: ../src/guestfs.pod:488
31083 msgid ""
31084 "Optionally, set the security context for the API.  The correct security "
31085 "context to use can only be known by inspecting the guest.  As an example:"
31086 msgstr ""
31087
31088 #. type: verbatim
31089 #: ../src/guestfs.pod:492
31090 #, no-wrap
31091 msgid ""
31092 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
31093 "\n"
31094 msgstr ""
31095
31096 #. type: textblock
31097 #: ../src/guestfs.pod:496
31098 msgid "This will work for running commands and editing existing files."
31099 msgstr ""
31100
31101 #. type: textblock
31102 #: ../src/guestfs.pod:498
31103 msgid ""
31104 "When new files are created, you may need to label them explicitly, for "
31105 "example by running the external command C<restorecon pathname>."
31106 msgstr ""
31107
31108 #. type: =head2
31109 #: ../src/guestfs.pod:502
31110 msgid "UMASK"
31111 msgstr ""
31112
31113 #. type: textblock
31114 #: ../src/guestfs.pod:504
31115 msgid ""
31116 "Certain calls are affected by the current file mode creation mask (the "
31117 "\"umask\").  In particular ones which create files or directories, such as "
31118 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
31119 "either the default mode that the file is created with or modifies the mode "
31120 "that you supply."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs.pod:510
31125 msgid ""
31126 "The default umask is C<022>, so files are created with modes such as C<0644> "
31127 "and directories with C<0755>."
31128 msgstr ""
31129
31130 #. type: textblock
31131 #: ../src/guestfs.pod:513
31132 msgid ""
31133 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
31134 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
31135 "L</guestfs_chmod> after creating each file or directory."
31136 msgstr ""
31137
31138 #. type: textblock
31139 #: ../src/guestfs.pod:517
31140 msgid "For more information about umask, see L<umask(2)>."
31141 msgstr ""
31142
31143 #. type: textblock
31144 #: ../src/guestfs.pod:521
31145 msgid ""
31146 "Libguestfs allows you to access Linux guests which have been encrypted using "
31147 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31148 "standard.  This includes nearly all whole disk encryption systems used by "
31149 "modern Linux guests."
31150 msgstr ""
31151
31152 #. type: textblock
31153 #: ../src/guestfs.pod:527
31154 msgid ""
31155 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31156 "returns the string C<crypto_LUKS>)."
31157 msgstr ""
31158
31159 #. type: textblock
31160 #: ../src/guestfs.pod:530
31161 msgid ""
31162 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31163 "will require the passphrase!"
31164 msgstr ""
31165
31166 #. type: textblock
31167 #: ../src/guestfs.pod:533
31168 msgid ""
31169 "Opening a LUKS device creates a new device mapper device called "
31170 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
31171 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
31172 "decrypted from and encrypted to the underlying block device respectively."
31173 msgstr ""
31174
31175 #. type: textblock
31176 #: ../src/guestfs.pod:539
31177 msgid ""
31178 "LVM volume groups on the device can be made visible by calling "
31179 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
31180 "volume(s) can now be mounted in the usual way."
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs.pod:543
31185 msgid ""
31186 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31187 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31188 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
31189 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31190 "underlying encrypted block device)."
31191 msgstr ""
31192
31193 #. type: =head2
31194 #: ../src/guestfs.pod:550
31195 msgid "INSPECTION"
31196 msgstr ""
31197
31198 #. type: textblock
31199 #: ../src/guestfs.pod:552
31200 msgid ""
31201 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31202 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31203 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31204 "version 1.5.3 the most frequently used part of this library has been "
31205 "rewritten in C and moved into the core code)."
31206 msgstr ""
31207
31208 #. type: textblock
31209 #: ../src/guestfs.pod:559
31210 msgid ""
31211 "Add all disks belonging to the unknown virtual machine and call "
31212 "L</guestfs_launch> in the usual way."
31213 msgstr ""
31214
31215 #. type: textblock
31216 #: ../src/guestfs.pod:562
31217 msgid ""
31218 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31219 "and certain heuristics, and returns a list of operating systems that were "
31220 "found.  An empty list means none were found.  A single element is the root "
31221 "filesystem of the operating system.  For dual- or multi-boot guests, "
31222 "multiple roots can be returned, each one corresponding to a separate "
31223 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31224 "world of virtualization, but since this scenario can happen, we have built "
31225 "libguestfs to deal with it.)"
31226 msgstr ""
31227
31228 #. type: textblock
31229 #: ../src/guestfs.pod:571
31230 msgid ""
31231 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31232 "to get additional details about that operating system.  For example, call "
31233 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31234 "Windows and Linux-based operating systems respectively."
31235 msgstr ""
31236
31237 #. type: textblock
31238 #: ../src/guestfs.pod:577
31239 msgid ""
31240 "Un*x-like and Linux-based operating systems usually consist of several "
31241 "filesystems which are mounted at boot time (for example, a separate boot "
31242 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31243 "filesystems correspond to mount points.  Call "
31244 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31245 "hash table like this example:"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs.pod:584
31250 #, no-wrap
31251 msgid ""
31252 " /boot => /dev/sda1\n"
31253 " /     => /dev/vg_guest/lv_root\n"
31254 " /usr  => /dev/vg_guest/lv_usr\n"
31255 "\n"
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs.pod:588
31260 msgid ""
31261 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31262 "filesystems as suggested."
31263 msgstr ""
31264
31265 #. type: textblock
31266 #: ../src/guestfs.pod:591
31267 msgid ""
31268 "Be careful to mount filesystems in the right order (eg. C</> before "
31269 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31270 "work."
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs.pod:595
31275 msgid ""
31276 "Inspection currently only works for some common operating systems.  "
31277 "Contributors are welcome to send patches for other operating systems that we "
31278 "currently cannot detect."
31279 msgstr ""
31280
31281 #. type: textblock
31282 #: ../src/guestfs.pod:599
31283 msgid ""
31284 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31285 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31286 "encrypted devices."
31287 msgstr ""
31288
31289 #. type: textblock
31290 #: ../src/guestfs.pod:603
31291 msgid ""
31292 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31293 "inspection and caches the results in the guest handle.  Subsequent calls to "
31294 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31295 "re-read the disks.  If you change the content of the guest disks, you can "
31296 "redo inspection by calling L</guestfs_inspect_os> again.  "
31297 "(L</guestfs_inspect_list_applications> works a little differently from the "
31298 "other calls and does read the disks.  See documentation for that function "
31299 "for details)."
31300 msgstr ""
31301
31302 #. type: =head3
31303 #: ../src/guestfs.pod:612
31304 msgid "INSPECTING INSTALL DISKS"
31305 msgstr ""
31306
31307 #. type: textblock
31308 #: ../src/guestfs.pod:614
31309 msgid ""
31310 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31311 "CDs and more."
31312 msgstr ""
31313
31314 #. type: textblock
31315 #: ../src/guestfs.pod:617
31316 msgid ""
31317 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31318 "system, which currently can be C<installed> (a regular operating system) or "
31319 "C<installer> (some sort of install disk)."
31320 msgstr ""
31321
31322 #. type: textblock
31323 #: ../src/guestfs.pod:621
31324 msgid ""
31325 "Further information is available about the operating system that can be "
31326 "installed using the regular inspection APIs like "
31327 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31328 "etc."
31329 msgstr ""
31330
31331 #. type: textblock
31332 #: ../src/guestfs.pod:626
31333 msgid ""
31334 "Some additional information specific to installer disks is also available "
31335 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31336 "L</guestfs_inspect_is_multipart> calls."
31337 msgstr ""
31338
31339 #. type: =head2
31340 #: ../src/guestfs.pod:631
31341 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31342 msgstr ""
31343
31344 #. type: textblock
31345 #: ../src/guestfs.pod:633
31346 msgid ""
31347 "Libguestfs can mount NTFS partitions.  It does this using the "
31348 "L<http://www.ntfs-3g.org/> driver."
31349 msgstr ""
31350
31351 #. type: =head3
31352 #: ../src/guestfs.pod:636
31353 msgid "DRIVE LETTERS AND PATHS"
31354 msgstr ""
31355
31356 #. type: textblock
31357 #: ../src/guestfs.pod:638
31358 msgid ""
31359 "DOS and Windows still use drive letters, and the filesystems are always "
31360 "treated as case insensitive by Windows itself, and therefore you might find "
31361 "a Windows configuration file referring to a path like "
31362 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31363 "that directory might be referred to as C</WINDOWS/System32>."
31364 msgstr ""
31365
31366 #. type: textblock
31367 #: ../src/guestfs.pod:644
31368 msgid ""
31369 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31370 "L</guestfs_inspect_get_drive_mappings>)"
31371 msgstr ""
31372
31373 #. type: textblock
31374 #: ../src/guestfs.pod:647
31375 msgid ""
31376 "Dealing with separator characters (backslash vs forward slash) is outside "
31377 "the scope of libguestfs, but usually a simple character replacement will "
31378 "work."
31379 msgstr ""
31380
31381 #. type: textblock
31382 #: ../src/guestfs.pod:651
31383 msgid ""
31384 "To resolve the case insensitivity of paths, call "
31385 "L</guestfs_case_sensitive_path>."
31386 msgstr ""
31387
31388 #. type: =head3
31389 #: ../src/guestfs.pod:654
31390 msgid "ACCESSING THE WINDOWS REGISTRY"
31391 msgstr ""
31392
31393 #. type: textblock
31394 #: ../src/guestfs.pod:656
31395 msgid ""
31396 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31397 "files, through the library C<hivex> which is part of the libguestfs project "
31398 "although ships as a separate tarball.  You have to locate and download the "
31399 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31400 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31401 "L<virt-win-reg(1)> for more help on this issue."
31402 msgstr ""
31403
31404 #. type: =head3
31405 #: ../src/guestfs.pod:664
31406 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31407 msgstr ""
31408
31409 #. type: textblock
31410 #: ../src/guestfs.pod:666
31411 msgid ""
31412 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31413 "provide something which looks like a Linux symlink.  The way it tries to do "
31414 "the rewriting is described here:"
31415 msgstr ""
31416
31417 #. type: textblock
31418 #: ../src/guestfs.pod:670
31419 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs.pod:672
31424 msgid ""
31425 "The essential problem is that ntfs-3g simply does not have enough "
31426 "information to do a correct job.  NTFS links can contain drive letters and "
31427 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31428 "It is almost certainly the case that libguestfs callers should ignore what "
31429 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31430 msgstr ""
31431
31432 #. type: textblock
31433 #: ../src/guestfs.pod:679
31434 msgid ""
31435 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31436 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31437 "attribute, and read the raw reparse data from that (you can find the format "
31438 "documented in various places around the web)."
31439 msgstr ""
31440
31441 #. type: =head3
31442 #: ../src/guestfs.pod:684
31443 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31444 msgstr ""
31445
31446 #. type: textblock
31447 #: ../src/guestfs.pod:686
31448 msgid ""
31449 "There are other useful extended attributes that can be read from ntfs-3g "
31450 "filesystems (using L</guestfs_getxattr>).  See:"
31451 msgstr ""
31452
31453 #. type: textblock
31454 #: ../src/guestfs.pod:689
31455 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31456 msgstr ""
31457
31458 #. type: =head2
31459 #: ../src/guestfs.pod:691
31460 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31461 msgstr ""
31462
31463 #. type: textblock
31464 #: ../src/guestfs.pod:693
31465 msgid ""
31466 "Although we don't want to discourage you from using the C API, we will "
31467 "mention here that the same API is also available in other languages."
31468 msgstr ""
31469
31470 #. type: textblock
31471 #: ../src/guestfs.pod:696
31472 msgid ""
31473 "The API is broadly identical in all supported languages.  This means that "
31474 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31475 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31476 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31477 "each language."
31478 msgstr ""
31479
31480 #. type: textblock
31481 #: ../src/guestfs.pod:702
31482 msgid ""
31483 "Error messages are automatically transformed into exceptions if the language "
31484 "supports it."
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs.pod:705
31489 msgid ""
31490 "We don't try to \"object orientify\" parts of the API in OO languages, "
31491 "although contributors are welcome to write higher level APIs above what we "
31492 "provide in their favourite languages if they wish."
31493 msgstr ""
31494
31495 #. type: =item
31496 #: ../src/guestfs.pod:711
31497 msgid "B<C++>"
31498 msgstr ""
31499
31500 #. type: textblock
31501 #: ../src/guestfs.pod:713
31502 msgid ""
31503 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
31504 "identical to the C API.  C++ classes and exceptions are not used."
31505 msgstr ""
31506
31507 #. type: =item
31508 #: ../src/guestfs.pod:717
31509 msgid "B<C#>"
31510 msgstr ""
31511
31512 #. type: textblock
31513 #: ../src/guestfs.pod:719
31514 msgid ""
31515 "The C# bindings are highly experimental.  Please read the warnings at the "
31516 "top of C<csharp/Libguestfs.cs>."
31517 msgstr ""
31518
31519 #. type: =item
31520 #: ../src/guestfs.pod:722
31521 msgid "B<Haskell>"
31522 msgstr ""
31523
31524 #. type: textblock
31525 #: ../src/guestfs.pod:724
31526 msgid ""
31527 "This is the only language binding that is working but incomplete.  Only "
31528 "calls which return simple integers have been bound in Haskell, and we are "
31529 "looking for help to complete this binding."
31530 msgstr ""
31531
31532 #. type: =item
31533 #: ../src/guestfs.pod:728
31534 msgid "B<Java>"
31535 msgstr ""
31536
31537 #. type: textblock
31538 #: ../src/guestfs.pod:730
31539 msgid ""
31540 "Full documentation is contained in the Javadoc which is distributed with "
31541 "libguestfs.  For examples, see L<guestfs-java(3)>."
31542 msgstr ""
31543
31544 #. type: =item
31545 #: ../src/guestfs.pod:733
31546 msgid "B<OCaml>"
31547 msgstr ""
31548
31549 #. type: textblock
31550 #: ../src/guestfs.pod:735
31551 msgid "See L<guestfs-ocaml(3)>."
31552 msgstr ""
31553
31554 #. type: =item
31555 #: ../src/guestfs.pod:737
31556 msgid "B<Perl>"
31557 msgstr ""
31558
31559 #. type: textblock
31560 #: ../src/guestfs.pod:739
31561 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
31562 msgstr ""
31563
31564 #. type: =item
31565 #: ../src/guestfs.pod:741
31566 msgid "B<PHP>"
31567 msgstr ""
31568
31569 #. type: textblock
31570 #: ../src/guestfs.pod:743
31571 msgid ""
31572 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
31573 "the php-libguestfs package for your distribution."
31574 msgstr ""
31575
31576 #. type: textblock
31577 #: ../src/guestfs.pod:746
31578 msgid "The PHP binding only works correctly on 64 bit machines."
31579 msgstr ""
31580
31581 #. type: =item
31582 #: ../src/guestfs.pod:748
31583 msgid "B<Python>"
31584 msgstr ""
31585
31586 #. type: textblock
31587 #: ../src/guestfs.pod:750
31588 msgid "See L<guestfs-python(3)>."
31589 msgstr ""
31590
31591 #. type: =item
31592 #: ../src/guestfs.pod:752
31593 msgid "B<Ruby>"
31594 msgstr ""
31595
31596 #. type: textblock
31597 #: ../src/guestfs.pod:754
31598 msgid "See L<guestfs-ruby(3)>."
31599 msgstr ""
31600
31601 #. type: =item
31602 #: ../src/guestfs.pod:756
31603 msgid "B<shell scripts>"
31604 msgstr ""
31605
31606 #. type: textblock
31607 #: ../src/guestfs.pod:758
31608 msgid "See L<guestfish(1)>."
31609 msgstr ""
31610
31611 #. type: =head2
31612 #: ../src/guestfs.pod:762
31613 msgid "LIBGUESTFS GOTCHAS"
31614 msgstr ""
31615
31616 #. type: textblock
31617 #: ../src/guestfs.pod:764
31618 msgid ""
31619 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
31620 "system [...] that works in the way it is documented but is counterintuitive "
31621 "and almost invites mistakes.\""
31622 msgstr ""
31623
31624 #. type: textblock
31625 #: ../src/guestfs.pod:768
31626 msgid ""
31627 "Since we developed libguestfs and the associated tools, there are several "
31628 "things we would have designed differently, but are now stuck with for "
31629 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
31630 "release, you can expect these to change.  Beware of them."
31631 msgstr ""
31632
31633 #. type: =item
31634 #: ../src/guestfs.pod:776
31635 msgid "Autosync / forgetting to sync."
31636 msgstr ""
31637
31638 #. type: textblock
31639 #: ../src/guestfs.pod:778
31640 msgid ""
31641 "I<Update:> Autosync is enabled by default for all API users starting from "
31642 "libguestfs 1.5.24.  This section only applies to older versions."
31643 msgstr ""
31644
31645 #. type: textblock
31646 #: ../src/guestfs.pod:781
31647 msgid ""
31648 "When modifying a filesystem from C or another language, you B<must> unmount "
31649 "all filesystems and call L</guestfs_sync> explicitly before you close the "
31650 "libguestfs handle.  You can also call:"
31651 msgstr ""
31652
31653 #. type: verbatim
31654 #: ../src/guestfs.pod:785
31655 #, no-wrap
31656 msgid ""
31657 " guestfs_set_autosync (g, 1);\n"
31658 "\n"
31659 msgstr ""
31660
31661 #. type: textblock
31662 #: ../src/guestfs.pod:787
31663 msgid ""
31664 "to have the unmount/sync done automatically for you when the handle 'g' is "
31665 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
31666 "q.v.)"
31667 msgstr ""
31668
31669 #. type: textblock
31670 #: ../src/guestfs.pod:791
31671 msgid ""
31672 "If you forget to do this, then it is entirely possible that your changes "
31673 "won't be written out, or will be partially written, or (very rarely) that "
31674 "you'll get disk corruption."
31675 msgstr ""
31676
31677 #. type: textblock
31678 #: ../src/guestfs.pod:795
31679 msgid ""
31680 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
31681 "guestfish scripts that forget to sync will work just fine, which can make "
31682 "this very puzzling if you are trying to debug a problem."
31683 msgstr ""
31684
31685 #. type: =item
31686 #: ../src/guestfs.pod:799
31687 msgid "Mount option C<-o sync> should not be the default."
31688 msgstr ""
31689
31690 #. type: textblock
31691 #: ../src/guestfs.pod:801
31692 msgid ""
31693 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
31694 "However C<-o sync> does not add any reliability benefit, but does have a "
31695 "very large performance impact."
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs.pod:805
31700 msgid ""
31701 "The work around is to use L</guestfs_mount_options> and set the mount "
31702 "options that you actually want to use."
31703 msgstr ""
31704
31705 #. type: =item
31706 #: ../src/guestfs.pod:808
31707 msgid "Read-only should be the default."
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs.pod:810
31712 msgid ""
31713 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
31714 "specify I<--rw> if you want to make changes to the image."
31715 msgstr ""
31716
31717 #. type: textblock
31718 #: ../src/guestfs.pod:813
31719 msgid "This would reduce the potential to corrupt live VM images."
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs.pod:815
31724 msgid ""
31725 "Note that many filesystems change the disk when you just mount and unmount, "
31726 "even if you didn't perform any writes.  You need to use "
31727 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
31728 msgstr ""
31729
31730 #. type: =item
31731 #: ../src/guestfs.pod:819
31732 msgid "guestfish command line is hard to use."
31733 msgstr ""
31734
31735 #. type: textblock
31736 #: ../src/guestfs.pod:821
31737 msgid ""
31738 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
31739 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
31740 "exist, so it fails.  In earlier versions of guestfish the error message was "
31741 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
31742 "we should have used C<guestfish -c command> to run commands."
31743 msgstr ""
31744
31745 #. type: =item
31746 #: ../src/guestfs.pod:828
31747 msgid "guestfish megabyte modifiers don't work right on all commands"
31748 msgstr ""
31749
31750 #. type: textblock
31751 #: ../src/guestfs.pod:830
31752 msgid ""
31753 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
31754 "other modifiers).  What guestfish actually does is to multiply the number "
31755 "part by the modifier part and pass the result to the C API.  However this "
31756 "doesn't work for a few APIs which aren't expecting bytes, but are already "
31757 "expecting some other unit (eg. megabytes)."
31758 msgstr ""
31759
31760 #. type: textblock
31761 #: ../src/guestfs.pod:837
31762 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
31763 msgstr ""
31764
31765 #. type: verbatim
31766 #: ../src/guestfs.pod:839
31767 #, no-wrap
31768 msgid ""
31769 " lvcreate LV VG 100M\n"
31770 "\n"
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs.pod:841
31775 msgid ""
31776 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
31777 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
31778 "megabytes * megabytes) logical volume.  The error message you get from this "
31779 "is also a little obscure."
31780 msgstr ""
31781
31782 #. type: textblock
31783 #: ../src/guestfs.pod:846
31784 msgid ""
31785 "This could be fixed in the generator by specially marking parameters and "
31786 "return values which take bytes or other units."
31787 msgstr ""
31788
31789 #. type: =item
31790 #: ../src/guestfs.pod:849
31791 msgid "Ambiguity between devices and paths"
31792 msgstr ""
31793
31794 #. type: textblock
31795 #: ../src/guestfs.pod:851
31796 msgid ""
31797 "There is a subtle ambiguity in the API between a device name "
31798 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
31799 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
31800 msgstr ""
31801
31802 #. type: textblock
31803 #: ../src/guestfs.pod:856
31804 msgid ""
31805 "In the current API we usually resolve this ambiguity by having two separate "
31806 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
31807 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
31808 "detecting if the path supplied begins with C</dev/>."
31809 msgstr ""
31810
31811 #. type: textblock
31812 #: ../src/guestfs.pod:862
31813 msgid ""
31814 "To avoid both the ambiguity and the need to duplicate some calls, we could "
31815 "make paths/devices into structured names.  One way to do this would be to "
31816 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
31817 "aspect of grub.  Another way would be to use a structured type, equivalent "
31818 "to this OCaml type:"
31819 msgstr ""
31820
31821 #. type: verbatim
31822 #: ../src/guestfs.pod:868
31823 #, no-wrap
31824 msgid ""
31825 " type path = Path of string | Device of int | Partition of int * int\n"
31826 "\n"
31827 msgstr ""
31828
31829 #. type: textblock
31830 #: ../src/guestfs.pod:870
31831 msgid "which would allow you to pass arguments like:"
31832 msgstr ""
31833
31834 #. type: verbatim
31835 #: ../src/guestfs.pod:872
31836 #, no-wrap
31837 msgid ""
31838 " Path \"/foo/bar\"\n"
31839 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
31840 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
31841 " Path \"/dev/sdb2\"    (* not a device *)\n"
31842 "\n"
31843 msgstr ""
31844
31845 #. type: textblock
31846 #: ../src/guestfs.pod:877
31847 msgid ""
31848 "As you can see there are still problems to resolve even with this "
31849 "representation.  Also consider how it might work in guestfish."
31850 msgstr ""
31851
31852 #. type: =head2
31853 #: ../src/guestfs.pod:882
31854 msgid "KEYS AND PASSPHRASES"
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs.pod:884
31859 msgid ""
31860 "Certain libguestfs calls take a parameter that contains sensitive key "
31861 "material, passed in as a C string."
31862 msgstr ""
31863
31864 #. type: textblock
31865 #: ../src/guestfs.pod:887
31866 msgid ""
31867 "In the future we would hope to change the libguestfs implementation so that "
31868 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
31869 "swap.  However this is I<not> done at the moment, because of the complexity "
31870 "of such an implementation."
31871 msgstr ""
31872
31873 #. type: textblock
31874 #: ../src/guestfs.pod:892
31875 msgid ""
31876 "Therefore you should be aware that any key parameter you pass to libguestfs "
31877 "might end up being written out to the swap partition.  If this is a concern, "
31878 "scrub the swap partition or don't use libguestfs on encrypted devices."
31879 msgstr ""
31880
31881 #. type: =head2
31882 #: ../src/guestfs.pod:897
31883 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
31884 msgstr ""
31885
31886 #. type: textblock
31887 #: ../src/guestfs.pod:899
31888 msgid ""
31889 "All high-level libguestfs actions are synchronous.  If you want to use "
31890 "libguestfs asynchronously then you must create a thread."
31891 msgstr ""
31892
31893 #. type: textblock
31894 #: ../src/guestfs.pod:902
31895 msgid ""
31896 "Only use the handle from a single thread.  Either use the handle exclusively "
31897 "from one thread, or provide your own mutex so that two threads cannot issue "
31898 "calls on the same handle at the same time."
31899 msgstr ""
31900
31901 #. type: textblock
31902 #: ../src/guestfs.pod:906
31903 msgid ""
31904 "See the graphical program guestfs-browser for one possible architecture for "
31905 "multithreaded programs using libvirt and libguestfs."
31906 msgstr ""
31907
31908 #. type: =head2
31909 #: ../src/guestfs.pod:909
31910 msgid "PATH"
31911 msgstr ""
31912
31913 #. type: textblock
31914 #: ../src/guestfs.pod:911
31915 msgid ""
31916 "Libguestfs needs a supermin appliance, which it finds by looking along an "
31917 "internal path."
31918 msgstr ""
31919
31920 #. type: textblock
31921 #: ../src/guestfs.pod:914
31922 msgid ""
31923 "By default it looks for these in the directory C<$libdir/guestfs> "
31924 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
31925 msgstr ""
31926
31927 #. type: textblock
31928 #: ../src/guestfs.pod:917
31929 msgid ""
31930 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
31931 "to change the directories that libguestfs will search in.  The value is a "
31932 "colon-separated list of paths.  The current directory is I<not> searched "
31933 "unless the path contains an empty element or C<.>.  For example "
31934 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
31935 "then C</usr/lib/guestfs>."
31936 msgstr ""
31937
31938 #. type: =head2
31939 #: ../src/guestfs.pod:924
31940 msgid "QEMU WRAPPERS"
31941 msgstr ""
31942
31943 #. type: textblock
31944 #: ../src/guestfs.pod:926
31945 msgid ""
31946 "If you want to compile your own qemu, run qemu from a non-standard location, "
31947 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
31948 "around qemu."
31949 msgstr ""
31950
31951 #. type: textblock
31952 #: ../src/guestfs.pod:930
31953 msgid ""
31954 "There is one important rule to remember: you I<must C<exec qemu>> as the "
31955 "last command in the shell script (so that qemu replaces the shell and "
31956 "becomes the direct child of the libguestfs-using program).  If you don't do "
31957 "this, then the qemu process won't be cleaned up correctly."
31958 msgstr ""
31959
31960 #. type: textblock
31961 #: ../src/guestfs.pod:935
31962 msgid ""
31963 "Here is an example of a wrapper, where I have built my own copy of qemu from "
31964 "source:"
31965 msgstr ""
31966
31967 #. type: verbatim
31968 #: ../src/guestfs.pod:938
31969 #, no-wrap
31970 msgid ""
31971 " #!/bin/sh -\n"
31972 " qemudir=/home/rjones/d/qemu\n"
31973 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
31974 "\"$@\"\n"
31975 "\n"
31976 msgstr ""
31977
31978 #. type: textblock
31979 #: ../src/guestfs.pod:942
31980 msgid ""
31981 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
31982 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
31983 "example:"
31984 msgstr ""
31985
31986 #. type: verbatim
31987 #: ../src/guestfs.pod:946
31988 #, no-wrap
31989 msgid ""
31990 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
31991 "\n"
31992 msgstr ""
31993
31994 #. type: textblock
31995 #: ../src/guestfs.pod:948
31996 msgid ""
31997 "Note that libguestfs also calls qemu with the -help and -version options in "
31998 "order to determine features."
31999 msgstr ""
32000
32001 #. type: textblock
32002 #: ../src/guestfs.pod:951
32003 msgid ""
32004 "Wrappers can also be used to edit the options passed to qemu.  In the "
32005 "following example, the C<-machine ...> option (C<-machine> and the following "
32006 "argument) are removed from the command line and replaced with C<-machine "
32007 "pc,accel=tcg>.  The while loop iterates over the options until it finds the "
32008 "right one to remove, putting the remaining options into the C<args> array."
32009 msgstr ""
32010
32011 #. type: verbatim
32012 #: ../src/guestfs.pod:960
32013 #, no-wrap
32014 msgid ""
32015 " i=0\n"
32016 " while [ $# -gt 0 ]; do\n"
32017 "     case \"$1\" in\n"
32018 "     -machine)\n"
32019 "         shift 2;;\n"
32020 "     *)\n"
32021 "         args[i]=\"$1\"\n"
32022 "         (( i++ ))\n"
32023 "         shift ;;\n"
32024 "     esac\n"
32025 " done\n"
32026 " \n"
32027 msgstr ""
32028
32029 #. type: verbatim
32030 #: ../src/guestfs.pod:972
32031 #, no-wrap
32032 msgid ""
32033 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
32034 "\n"
32035 msgstr ""
32036
32037 #. type: =head2
32038 #: ../src/guestfs.pod:974
32039 msgid "ATTACHING TO RUNNING DAEMONS"
32040 msgstr ""
32041
32042 #. type: textblock
32043 #: ../src/guestfs.pod:976
32044 msgid ""
32045 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
32046 "babies.  Use with caution."
32047 msgstr ""
32048
32049 #. type: textblock
32050 #: ../src/guestfs.pod:979
32051 msgid ""
32052 "I<Note (2):> This section explains how to attach to a running daemon from a "
32053 "low level perspective.  For most users, simply using virt tools such as "
32054 "L<guestfish(1)> with the I<--live> option will \"just work\"."
32055 msgstr ""
32056
32057 #. type: =head3
32058 #: ../src/guestfs.pod:983
32059 msgid "Using guestfs_set_attach_method"
32060 msgstr ""
32061
32062 #. type: textblock
32063 #: ../src/guestfs.pod:985
32064 msgid ""
32065 "By calling L</guestfs_set_attach_method> you can change how the library "
32066 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
32067 "L</ARCHITECTURE> for some background)."
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs.pod:989
32072 msgid ""
32073 "The normal attach method is C<appliance>, where a small appliance is created "
32074 "containing the daemon, and then the library connects to this."
32075 msgstr ""
32076
32077 #. type: textblock
32078 #: ../src/guestfs.pod:992
32079 msgid ""
32080 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
32081 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
32082 "daemon over the Unix domain socket."
32083 msgstr ""
32084
32085 #. type: textblock
32086 #: ../src/guestfs.pod:996
32087 msgid ""
32088 "The normal use for this is to connect to a running virtual machine that "
32089 "contains a C<guestfsd> daemon, and send commands so you can read and write "
32090 "files inside the live virtual machine."
32091 msgstr ""
32092
32093 #. type: =head3
32094 #: ../src/guestfs.pod:1000
32095 msgid "Using guestfs_add_domain with live flag"
32096 msgstr ""
32097
32098 #. type: textblock
32099 #: ../src/guestfs.pod:1002
32100 msgid ""
32101 "L</guestfs_add_domain> provides some help for getting the correct attach "
32102 "method.  If you pass the C<live> option to this function, then (if the "
32103 "virtual machine is running) it will examine the libvirt XML looking for a "
32104 "virtio-serial channel to connect to:"
32105 msgstr ""
32106
32107 #. type: verbatim
32108 #: ../src/guestfs.pod:1008
32109 #, no-wrap
32110 msgid ""
32111 " <domain>\n"
32112 "   ...\n"
32113 "   <devices>\n"
32114 "     ...\n"
32115 "     <channel type='unix'>\n"
32116 "       <source mode='bind' path='/path/to/socket'/>\n"
32117 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
32118 "     </channel>\n"
32119 "     ...\n"
32120 "   </devices>\n"
32121 " </domain>\n"
32122 "\n"
32123 msgstr ""
32124
32125 #. type: textblock
32126 #: ../src/guestfs.pod:1020
32127 msgid ""
32128 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
32129 "method to C<unix:/path/to/socket>."
32130 msgstr ""
32131
32132 #. type: textblock
32133 #: ../src/guestfs.pod:1023
32134 msgid ""
32135 "Some of the libguestfs tools (including guestfish) support a I<--live> "
32136 "option which is passed through to L</guestfs_add_domain> thus allowing you "
32137 "to attach to and modify live virtual machines."
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs.pod:1027
32142 msgid ""
32143 "The virtual machine needs to have been set up beforehand so that it has the "
32144 "virtio-serial channel and so that guestfsd is running inside it."
32145 msgstr ""
32146
32147 #. type: =head2
32148 #: ../src/guestfs.pod:1031
32149 msgid "ABI GUARANTEE"
32150 msgstr ""
32151
32152 #. type: textblock
32153 #: ../src/guestfs.pod:1033
32154 msgid ""
32155 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
32156 "actions as outlined in this section.  Although we will deprecate some "
32157 "actions, for example if they get replaced by newer calls, we will keep the "
32158 "old actions forever.  This allows you the developer to program in confidence "
32159 "against the libguestfs API."
32160 msgstr ""
32161
32162 #. type: =head2
32163 #: ../src/guestfs.pod:1039
32164 msgid "BLOCK DEVICE NAMING"
32165 msgstr ""
32166
32167 #. type: textblock
32168 #: ../src/guestfs.pod:1041
32169 msgid ""
32170 "In the kernel there is now quite a profusion of schemata for naming block "
32171 "devices (in this context, by I<block device> I mean a physical or virtual "
32172 "hard drive).  The original Linux IDE driver used names starting with "
32173 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
32174 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
32175 "replacement for the old IDE driver (particularly for SATA devices) those "
32176 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
32177 "machines with paravirtualized drivers.  This has created several different "
32178 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
32179 "Xen PV disks."
32180 msgstr ""
32181
32182 #. type: textblock
32183 #: ../src/guestfs.pod:1053
32184 msgid ""
32185 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32186 "Linux kernel to access block devices.  We can run a variety of appliances "
32187 "based on a variety of Linux kernels."
32188 msgstr ""
32189
32190 #. type: textblock
32191 #: ../src/guestfs.pod:1057
32192 msgid ""
32193 "This causes a problem for libguestfs because many API calls use device or "
32194 "partition names.  Working scripts and the recipe (example) scripts that we "
32195 "make available over the internet could fail if the naming scheme changes."
32196 msgstr ""
32197
32198 #. type: textblock
32199 #: ../src/guestfs.pod:1062
32200 msgid ""
32201 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32202 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32203 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32204 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32205 msgstr ""
32206
32207 #. type: textblock
32208 #: ../src/guestfs.pod:1068
32209 msgid ""
32210 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32211 "L</guestfs_list_partitions> and similar calls return the true names of the "
32212 "devices and partitions as known to the appliance."
32213 msgstr ""
32214
32215 #. type: =head3
32216 #: ../src/guestfs.pod:1073
32217 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32218 msgstr ""
32219
32220 #. type: textblock
32221 #: ../src/guestfs.pod:1075
32222 msgid ""
32223 "Usually this translation is transparent.  However in some (very rare)  cases "
32224 "you may need to know the exact algorithm.  Such cases include where you use "
32225 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
32226 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
32227 "devices."
32228 msgstr ""
32229
32230 #. type: textblock
32231 #: ../src/guestfs.pod:1081
32232 msgid ""
32233 "The algorithm is applied only to I<parameters> which are known to be either "
32234 "device or partition names.  Return values from functions such as "
32235 "L</guestfs_list_devices> are never changed."
32236 msgstr ""
32237
32238 #. type: textblock
32239 #: ../src/guestfs.pod:1089
32240 msgid "Is the string a parameter which is a device or partition name?"
32241 msgstr ""
32242
32243 #. type: textblock
32244 #: ../src/guestfs.pod:1093
32245 msgid "Does the string begin with C</dev/sd>?"
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs.pod:1097
32250 msgid ""
32251 "Does the named device exist? If so, we use that device.  However if I<not> "
32252 "then we continue with this algorithm."
32253 msgstr ""
32254
32255 #. type: textblock
32256 #: ../src/guestfs.pod:1102
32257 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32258 msgstr ""
32259
32260 #. type: textblock
32261 #: ../src/guestfs.pod:1104
32262 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32263 msgstr ""
32264
32265 #. type: textblock
32266 #: ../src/guestfs.pod:1106
32267 msgid "If that named device exists, use it.  If not, continue."
32268 msgstr ""
32269
32270 #. type: textblock
32271 #: ../src/guestfs.pod:1110
32272 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32273 msgstr ""
32274
32275 #. type: textblock
32276 #: ../src/guestfs.pod:1112
32277 msgid "If that named device exists, use it.  If not, return an error."
32278 msgstr ""
32279
32280 #. type: =head3
32281 #: ../src/guestfs.pod:1116
32282 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32283 msgstr ""
32284
32285 #. type: textblock
32286 #: ../src/guestfs.pod:1118
32287 msgid ""
32288 "Although the standard naming scheme and automatic translation is useful for "
32289 "simple programs and guestfish scripts, for larger programs it is best not to "
32290 "rely on this mechanism."
32291 msgstr ""
32292
32293 #. type: textblock
32294 #: ../src/guestfs.pod:1122
32295 msgid ""
32296 "Where possible for maximum future portability programs using libguestfs "
32297 "should use these future-proof techniques:"
32298 msgstr ""
32299
32300 #. type: textblock
32301 #: ../src/guestfs.pod:1129
32302 msgid ""
32303 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32304 "device names, and then use those names directly."
32305 msgstr ""
32306
32307 #. type: textblock
32308 #: ../src/guestfs.pod:1132
32309 msgid "Since those device names exist by definition, they will never be translated."
32310 msgstr ""
32311
32312 #. type: textblock
32313 #: ../src/guestfs.pod:1137
32314 msgid ""
32315 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32316 "filesystem labels."
32317 msgstr ""
32318
32319 #. type: =head1
32320 #: ../src/guestfs.pod:1142
32321 msgid "SECURITY"
32322 msgstr ""
32323
32324 #. type: textblock
32325 #: ../src/guestfs.pod:1144
32326 msgid ""
32327 "This section discusses security implications of using libguestfs, "
32328 "particularly with untrusted or malicious guests or disk images."
32329 msgstr ""
32330
32331 #. type: =head2
32332 #: ../src/guestfs.pod:1147
32333 msgid "GENERAL SECURITY CONSIDERATIONS"
32334 msgstr ""
32335
32336 #. type: textblock
32337 #: ../src/guestfs.pod:1149
32338 msgid ""
32339 "Be careful with any files or data that you download from a guest (by "
32340 "\"download\" we mean not just the L</guestfs_download> command but any "
32341 "command that reads files, filenames, directories or anything else from a "
32342 "disk image).  An attacker could manipulate the data to fool your program "
32343 "into doing the wrong thing.  Consider cases such as:"
32344 msgstr ""
32345
32346 #. type: textblock
32347 #: ../src/guestfs.pod:1159
32348 msgid "the data (file etc) not being present"
32349 msgstr ""
32350
32351 #. type: textblock
32352 #: ../src/guestfs.pod:1163
32353 msgid "being present but empty"
32354 msgstr ""
32355
32356 #. type: textblock
32357 #: ../src/guestfs.pod:1167
32358 msgid "being much larger than normal"
32359 msgstr ""
32360
32361 #. type: textblock
32362 #: ../src/guestfs.pod:1171
32363 msgid "containing arbitrary 8 bit data"
32364 msgstr ""
32365
32366 #. type: textblock
32367 #: ../src/guestfs.pod:1175
32368 msgid "being in an unexpected character encoding"
32369 msgstr ""
32370
32371 #. type: textblock
32372 #: ../src/guestfs.pod:1179
32373 msgid "containing homoglyphs."
32374 msgstr ""
32375
32376 #. type: =head2
32377 #: ../src/guestfs.pod:1183
32378 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32379 msgstr ""
32380
32381 #. type: textblock
32382 #: ../src/guestfs.pod:1185
32383 msgid ""
32384 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32385 "(VFS) module can sometimes be escalated into exploits by deliberately "
32386 "creating a malicious, malformed filesystem.  These exploits are very severe "
32387 "for two reasons.  Firstly there are very many filesystem drivers in the "
32388 "kernel, and many of them are infrequently used and not much developer "
32389 "attention has been paid to the code.  Linux userspace helps potential "
32390 "crackers by detecting the filesystem type and automatically choosing the "
32391 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32392 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32393 "exploit (worse in some ways), giving immediate and total access to the "
32394 "system right down to the hardware level."
32395 msgstr ""
32396
32397 #. type: textblock
32398 #: ../src/guestfs.pod:1198
32399 msgid ""
32400 "That explains why you should never mount a filesystem from an untrusted "
32401 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32402 "inside a qemu virtual machine, usually running as a non-root user.  The "
32403 "attacker would need to write a filesystem which first exploited the kernel, "
32404 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32405 "the libguestfs protocol, and finally to be as serious as the host kernel "
32406 "exploit it would need to escalate its privileges to root.  This multi-step "
32407 "escalation, performed by a static piece of data, is thought to be extremely "
32408 "hard to do, although we never say 'never' about security issues."
32409 msgstr ""
32410
32411 #. type: textblock
32412 #: ../src/guestfs.pod:1209
32413 msgid ""
32414 "In any case callers can reduce the attack surface by forcing the filesystem "
32415 "type when mounting (use L</guestfs_mount_vfs>)."
32416 msgstr ""
32417
32418 #. type: =head2
32419 #: ../src/guestfs.pod:1212
32420 msgid "PROTOCOL SECURITY"
32421 msgstr ""
32422
32423 #. type: textblock
32424 #: ../src/guestfs.pod:1214
32425 msgid ""
32426 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32427 "defined upper message size.  However a program that uses libguestfs must "
32428 "also take care - for example you can write a program that downloads a binary "
32429 "from a disk image and executes it locally, and no amount of protocol "
32430 "security will save you from the consequences."
32431 msgstr ""
32432
32433 #. type: =head2
32434 #: ../src/guestfs.pod:1220
32435 msgid "INSPECTION SECURITY"
32436 msgstr ""
32437
32438 #. type: textblock
32439 #: ../src/guestfs.pod:1222
32440 msgid ""
32441 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32442 "directly from the guest, and these could contain any 8 bit data.  Callers "
32443 "should be careful to escape these before printing them to a structured file "
32444 "(for example, use HTML escaping if creating a web page)."
32445 msgstr ""
32446
32447 #. type: textblock
32448 #: ../src/guestfs.pod:1228
32449 msgid ""
32450 "Guest configuration may be altered in unusual ways by the administrator of "
32451 "the virtual machine, and may not reflect reality (particularly for untrusted "
32452 "or actively malicious guests).  For example we parse the hostname from "
32453 "configuration files like C</etc/sysconfig/network> that we find in the "
32454 "guest, but the guest administrator can easily manipulate these files to "
32455 "provide the wrong hostname."
32456 msgstr ""
32457
32458 #. type: textblock
32459 #: ../src/guestfs.pod:1236
32460 msgid ""
32461 "The inspection API parses guest configuration using two external libraries: "
32462 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32463 "designed to be robust in the face of malicious data, although denial of "
32464 "service attacks are still possible, for example with oversized configuration "
32465 "files."
32466 msgstr ""
32467
32468 #. type: =head2
32469 #: ../src/guestfs.pod:1242
32470 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
32471 msgstr ""
32472
32473 #. type: textblock
32474 #: ../src/guestfs.pod:1244
32475 msgid ""
32476 "Be very cautious about running commands from the guest.  By running a "
32477 "command in the guest, you are giving CPU time to a binary that you do not "
32478 "control, under the same user account as the library, albeit wrapped in qemu "
32479 "virtualization.  More information and alternatives can be found in the "
32480 "section L</RUNNING COMMANDS>."
32481 msgstr ""
32482
32483 #. type: =head2
32484 #: ../src/guestfs.pod:1250
32485 msgid "CVE-2010-3851"
32486 msgstr ""
32487
32488 #. type: textblock
32489 #: ../src/guestfs.pod:1252
32490 msgid "https://bugzilla.redhat.com/642934"
32491 msgstr ""
32492
32493 #. type: textblock
32494 #: ../src/guestfs.pod:1254
32495 msgid ""
32496 "This security bug concerns the automatic disk format detection that qemu "
32497 "does on disk images."
32498 msgstr ""
32499
32500 #. type: textblock
32501 #: ../src/guestfs.pod:1257
32502 msgid ""
32503 "A raw disk image is just the raw bytes, there is no header.  Other disk "
32504 "images like qcow2 contain a special header.  Qemu deals with this by looking "
32505 "for one of the known headers, and if none is found then assuming the disk "
32506 "image must be raw."
32507 msgstr ""
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:1262
32511 msgid ""
32512 "This allows a guest which has been given a raw disk image to write some "
32513 "other header.  At next boot (or when the disk image is accessed by "
32514 "libguestfs) qemu would do autodetection and think the disk image format was, "
32515 "say, qcow2 based on the header written by the guest."
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs.pod:1267
32520 msgid ""
32521 "This in itself would not be a problem, but qcow2 offers many features, one "
32522 "of which is to allow a disk image to refer to another image (called the "
32523 "\"backing disk\").  It does this by placing the path to the backing disk "
32524 "into the qcow2 header.  This path is not validated and could point to any "
32525 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
32526 "\"holes\" in the qcow2 disk image, which of course is completely under the "
32527 "control of the attacker."
32528 msgstr ""
32529
32530 #. type: textblock
32531 #: ../src/guestfs.pod:1275
32532 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
32533 msgstr ""
32534
32535 #. type: textblock
32536 #: ../src/guestfs.pod:1282
32537 msgid "You have enabled the network or have opened the disk in write mode."
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs.pod:1286
32542 msgid ""
32543 "You are also running untrusted code from the guest (see L</RUNNING "
32544 "COMMANDS>)."
32545 msgstr ""
32546
32547 #. type: textblock
32548 #: ../src/guestfs.pod:1291
32549 msgid ""
32550 "The way to avoid this is to specify the expected disk format when adding "
32551 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
32552 "should always do this if the disk is raw format, and it's a good idea for "
32553 "other cases too."
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs.pod:1296
32558 msgid ""
32559 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
32560 "format is fetched from libvirt and passed through."
32561 msgstr ""
32562
32563 #. type: textblock
32564 #: ../src/guestfs.pod:1299
32565 msgid ""
32566 "For libguestfs tools, use the I<--format> command line parameter as "
32567 "appropriate."
32568 msgstr ""
32569
32570 #. type: =head1
32571 #: ../src/guestfs.pod:1302
32572 msgid "CONNECTION MANAGEMENT"
32573 msgstr ""
32574
32575 #. type: =head2
32576 #: ../src/guestfs.pod:1304
32577 msgid "guestfs_h *"
32578 msgstr ""
32579
32580 #. type: textblock
32581 #: ../src/guestfs.pod:1306
32582 msgid ""
32583 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
32584 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
32585 "handle and release all resources used."
32586 msgstr ""
32587
32588 #. type: textblock
32589 #: ../src/guestfs.pod:1310
32590 msgid ""
32591 "For information on using multiple handles and threads, see the section "
32592 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
32593 msgstr ""
32594
32595 #. type: =head2
32596 #: ../src/guestfs.pod:1313
32597 msgid "guestfs_create"
32598 msgstr ""
32599
32600 #. type: verbatim
32601 #: ../src/guestfs.pod:1315
32602 #, no-wrap
32603 msgid ""
32604 " guestfs_h *guestfs_create (void);\n"
32605 "\n"
32606 msgstr ""
32607
32608 #. type: textblock
32609 #: ../src/guestfs.pod:1317
32610 msgid "Create a connection handle."
32611 msgstr ""
32612
32613 #. type: textblock
32614 #: ../src/guestfs.pod:1319
32615 msgid ""
32616 "On success this returns a non-NULL pointer to a handle.  On error it returns "
32617 "NULL."
32618 msgstr ""
32619
32620 #. type: textblock
32621 #: ../src/guestfs.pod:1322
32622 msgid ""
32623 "You have to \"configure\" the handle after creating it.  This includes "
32624 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
32625 "handle at least once."
32626 msgstr ""
32627
32628 #. type: textblock
32629 #: ../src/guestfs.pod:1326
32630 msgid "After configuring the handle, you have to call L</guestfs_launch>."
32631 msgstr ""
32632
32633 #. type: textblock
32634 #: ../src/guestfs.pod:1328
32635 msgid ""
32636 "You may also want to configure error handling for the handle.  See the "
32637 "L</ERROR HANDLING> section below."
32638 msgstr ""
32639
32640 #. type: =head2
32641 #: ../src/guestfs.pod:1331
32642 msgid "guestfs_close"
32643 msgstr ""
32644
32645 #. type: verbatim
32646 #: ../src/guestfs.pod:1333
32647 #, no-wrap
32648 msgid ""
32649 " void guestfs_close (guestfs_h *g);\n"
32650 "\n"
32651 msgstr ""
32652
32653 #. type: textblock
32654 #: ../src/guestfs.pod:1335
32655 msgid "This closes the connection handle and frees up all resources used."
32656 msgstr ""
32657
32658 #. type: textblock
32659 #: ../src/guestfs.pod:1337
32660 msgid ""
32661 "If autosync was set on the handle and the handle was launched, then this "
32662 "implicitly calls various functions to unmount filesystems and sync the "
32663 "disk.  See L</guestfs_set_autosync> for more details."
32664 msgstr ""
32665
32666 #. type: textblock
32667 #: ../src/guestfs.pod:1341
32668 msgid "If a close callback was set on the handle, then it is called."
32669 msgstr ""
32670
32671 #. type: =head1
32672 #: ../src/guestfs.pod:1343
32673 msgid "ERROR HANDLING"
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs.pod:1345
32678 msgid ""
32679 "API functions can return errors.  For example, almost all functions that "
32680 "return C<int> will return C<-1> to indicate an error."
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs.pod:1348
32685 msgid ""
32686 "Additional information is available for errors: an error message string and "
32687 "optionally an error number (errno) if the thing that failed was a system "
32688 "call."
32689 msgstr ""
32690
32691 #. type: textblock
32692 #: ../src/guestfs.pod:1352
32693 msgid ""
32694 "You can get at the additional information about the last error on the handle "
32695 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
32696 "up an error handler with L</guestfs_set_error_handler>."
32697 msgstr ""
32698
32699 #. type: textblock
32700 #: ../src/guestfs.pod:1357
32701 msgid ""
32702 "When the handle is created, a default error handler is installed which "
32703 "prints the error message string to C<stderr>.  For small short-running "
32704 "command line programs it is sufficient to do:"
32705 msgstr ""
32706
32707 #. type: verbatim
32708 #: ../src/guestfs.pod:1361
32709 #, no-wrap
32710 msgid ""
32711 " if (guestfs_launch (g) == -1)\n"
32712 "   exit (EXIT_FAILURE);\n"
32713 "\n"
32714 msgstr ""
32715
32716 #. type: textblock
32717 #: ../src/guestfs.pod:1364
32718 msgid ""
32719 "since the default error handler will ensure that an error message has been "
32720 "printed to C<stderr> before the program exits."
32721 msgstr ""
32722
32723 #. type: textblock
32724 #: ../src/guestfs.pod:1367
32725 msgid ""
32726 "For other programs the caller will almost certainly want to install an "
32727 "alternate error handler or do error handling in-line like this:"
32728 msgstr ""
32729
32730 #. type: verbatim
32731 #: ../src/guestfs.pod:1370
32732 #, no-wrap
32733 msgid ""
32734 " g = guestfs_create ();\n"
32735 " \n"
32736 msgstr ""
32737
32738 #. type: verbatim
32739 #: ../src/guestfs.pod:1372
32740 #, no-wrap
32741 msgid ""
32742 " /* This disables the default behaviour of printing errors\n"
32743 "    on stderr. */\n"
32744 " guestfs_set_error_handler (g, NULL, NULL);\n"
32745 " \n"
32746 msgstr ""
32747
32748 #. type: verbatim
32749 #: ../src/guestfs.pod:1376
32750 #, no-wrap
32751 msgid ""
32752 " if (guestfs_launch (g) == -1) {\n"
32753 "   /* Examine the error message and print it etc. */\n"
32754 "   char *msg = guestfs_last_error (g);\n"
32755 "   int errnum = guestfs_last_errno (g);\n"
32756 "   fprintf (stderr, \"%s\\n\", msg);\n"
32757 "   /* ... */\n"
32758 "  }\n"
32759 "\n"
32760 msgstr ""
32761
32762 #. type: textblock
32763 #: ../src/guestfs.pod:1384
32764 msgid ""
32765 "Out of memory errors are handled differently.  The default action is to call "
32766 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
32767 "L</guestfs_set_out_of_memory_handler>."
32768 msgstr ""
32769
32770 #. type: textblock
32771 #: ../src/guestfs.pod:1388
32772 msgid ""
32773 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
32774 "because there is no handle if this happens there is no way to get additional "
32775 "error information.  However L</guestfs_create> is supposed to be a "
32776 "lightweight operation which can only fail because of insufficient memory (it "
32777 "returns NULL in this case)."
32778 msgstr ""
32779
32780 #. type: =head2
32781 #: ../src/guestfs.pod:1394
32782 msgid "guestfs_last_error"
32783 msgstr ""
32784
32785 #. type: verbatim
32786 #: ../src/guestfs.pod:1396
32787 #, no-wrap
32788 msgid ""
32789 " const char *guestfs_last_error (guestfs_h *g);\n"
32790 "\n"
32791 msgstr ""
32792
32793 #. type: textblock
32794 #: ../src/guestfs.pod:1398
32795 msgid ""
32796 "This returns the last error message that happened on C<g>.  If there has not "
32797 "been an error since the handle was created, then this returns C<NULL>."
32798 msgstr ""
32799
32800 #. type: textblock
32801 #: ../src/guestfs.pod:1402
32802 msgid ""
32803 "The lifetime of the returned string is until the next error occurs, or "
32804 "L</guestfs_close> is called."
32805 msgstr ""
32806
32807 #. type: =head2
32808 #: ../src/guestfs.pod:1405
32809 msgid "guestfs_last_errno"
32810 msgstr ""
32811
32812 #. type: verbatim
32813 #: ../src/guestfs.pod:1407
32814 #, no-wrap
32815 msgid ""
32816 " int guestfs_last_errno (guestfs_h *g);\n"
32817 "\n"
32818 msgstr ""
32819
32820 #. type: textblock
32821 #: ../src/guestfs.pod:1409
32822 msgid "This returns the last error number (errno) that happened on C<g>."
32823 msgstr ""
32824
32825 #. type: textblock
32826 #: ../src/guestfs.pod:1411
32827 msgid "If successful, an errno integer not equal to zero is returned."
32828 msgstr ""
32829
32830 #. type: textblock
32831 #: ../src/guestfs.pod:1413
32832 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../src/guestfs.pod:1420
32837 msgid "There has not been any error on the handle."
32838 msgstr ""
32839
32840 #. type: textblock
32841 #: ../src/guestfs.pod:1424
32842 msgid ""
32843 "There has been an error but the errno was meaningless.  This corresponds to "
32844 "the case where the error did not come from a failed system call, but for "
32845 "some other reason."
32846 msgstr ""
32847
32848 #. type: textblock
32849 #: ../src/guestfs.pod:1430
32850 msgid ""
32851 "There was an error from a failed system call, but for some reason the errno "
32852 "was not captured and returned.  This usually indicates a bug in libguestfs."
32853 msgstr ""
32854
32855 #. type: textblock
32856 #: ../src/guestfs.pod:1436
32857 msgid ""
32858 "Libguestfs tries to convert the errno from inside the applicance into a "
32859 "corresponding errno for the caller (not entirely trivial: the appliance "
32860 "might be running a completely different operating system from the library "
32861 "and error numbers are not standardized across Un*xen).  If this could not be "
32862 "done, then the error is translated to C<EINVAL>.  In practice this should "
32863 "only happen in very rare circumstances."
32864 msgstr ""
32865
32866 #. type: =head2
32867 #: ../src/guestfs.pod:1444
32868 msgid "guestfs_set_error_handler"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../src/guestfs.pod:1446
32873 #, no-wrap
32874 msgid ""
32875 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
32876 "                                           void *opaque,\n"
32877 "                                           const char *msg);\n"
32878 " void guestfs_set_error_handler (guestfs_h *g,\n"
32879 "                                 guestfs_error_handler_cb cb,\n"
32880 "                                 void *opaque);\n"
32881 "\n"
32882 msgstr ""
32883
32884 #. type: textblock
32885 #: ../src/guestfs.pod:1453
32886 msgid ""
32887 "The callback C<cb> will be called if there is an error.  The parameters "
32888 "passed to the callback are an opaque data pointer and the error message "
32889 "string."
32890 msgstr ""
32891
32892 #. type: textblock
32893 #: ../src/guestfs.pod:1457
32894 msgid ""
32895 "C<errno> is not passed to the callback.  To get that the callback must call "
32896 "L</guestfs_last_errno>."
32897 msgstr ""
32898
32899 #. type: textblock
32900 #: ../src/guestfs.pod:1460
32901 msgid ""
32902 "Note that the message string C<msg> is freed as soon as the callback "
32903 "function returns, so if you want to stash it somewhere you must make your "
32904 "own copy."
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs.pod:1464
32909 msgid "The default handler prints messages on C<stderr>."
32910 msgstr ""
32911
32912 #. type: textblock
32913 #: ../src/guestfs.pod:1466
32914 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
32915 msgstr ""
32916
32917 #. type: =head2
32918 #: ../src/guestfs.pod:1468
32919 msgid "guestfs_get_error_handler"
32920 msgstr ""
32921
32922 #. type: verbatim
32923 #: ../src/guestfs.pod:1470
32924 #, no-wrap
32925 msgid ""
32926 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
32927 "                                                     void **opaque_rtn);\n"
32928 "\n"
32929 msgstr ""
32930
32931 #. type: textblock
32932 #: ../src/guestfs.pod:1473
32933 msgid "Returns the current error handler callback."
32934 msgstr ""
32935
32936 #. type: =head2
32937 #: ../src/guestfs.pod:1475
32938 msgid "guestfs_set_out_of_memory_handler"
32939 msgstr ""
32940
32941 #. type: verbatim
32942 #: ../src/guestfs.pod:1477
32943 #, no-wrap
32944 msgid ""
32945 " typedef void (*guestfs_abort_cb) (void);\n"
32946 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
32947 "                                         guestfs_abort_cb);\n"
32948 "\n"
32949 msgstr ""
32950
32951 #. type: textblock
32952 #: ../src/guestfs.pod:1481
32953 msgid ""
32954 "The callback C<cb> will be called if there is an out of memory situation.  "
32955 "I<Note this callback must not return>."
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs.pod:1484
32960 msgid "The default is to call L<abort(3)>."
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs.pod:1486
32965 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
32966 msgstr ""
32967
32968 #. type: =head2
32969 #: ../src/guestfs.pod:1489
32970 msgid "guestfs_get_out_of_memory_handler"
32971 msgstr ""
32972
32973 #. type: verbatim
32974 #: ../src/guestfs.pod:1491
32975 #, no-wrap
32976 msgid ""
32977 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
32978 "\n"
32979 msgstr ""
32980
32981 #. type: textblock
32982 #: ../src/guestfs.pod:1493
32983 msgid "This returns the current out of memory handler."
32984 msgstr ""
32985
32986 #. type: =head1
32987 #: ../src/guestfs.pod:1495
32988 msgid "API CALLS"
32989 msgstr ""
32990
32991 #. type: =head1
32992 #: ../src/guestfs.pod:1499
32993 msgid "STRUCTURES"
32994 msgstr ""
32995
32996 #. type: textblock
32997 #: ../src/guestfs.pod:1501
32998 msgid "@STRUCTS@"
32999 msgstr ""
33000
33001 #. type: =head1
33002 #: ../src/guestfs.pod:1503
33003 msgid "AVAILABILITY"
33004 msgstr ""
33005
33006 #. type: =head2
33007 #: ../src/guestfs.pod:1505
33008 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
33009 msgstr ""
33010
33011 #. type: textblock
33012 #: ../src/guestfs.pod:1507
33013 msgid ""
33014 "Using L</guestfs_available> you can test availability of the following "
33015 "groups of functions.  This test queries the appliance to see if the "
33016 "appliance you are currently using supports the functionality."
33017 msgstr ""
33018
33019 #. type: textblock
33020 #: ../src/guestfs.pod:1512
33021 msgid "@AVAILABILITY@"
33022 msgstr ""
33023
33024 #. type: =head2
33025 #: ../src/guestfs.pod:1514
33026 msgid "GUESTFISH supported COMMAND"
33027 msgstr ""
33028
33029 #. type: textblock
33030 #: ../src/guestfs.pod:1516
33031 msgid ""
33032 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
33033 "prints out the available groups and whether they are supported by this build "
33034 "of libguestfs.  Note however that you have to do C<run> first."
33035 msgstr ""
33036
33037 #. type: =head2
33038 #: ../src/guestfs.pod:1521
33039 msgid "SINGLE CALLS AT COMPILE TIME"
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs.pod:1523
33044 msgid ""
33045 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
33046 "function, such as:"
33047 msgstr ""
33048
33049 #. type: verbatim
33050 #: ../src/guestfs.pod:1526
33051 #, no-wrap
33052 msgid ""
33053 " #define LIBGUESTFS_HAVE_DD 1\n"
33054 "\n"
33055 msgstr ""
33056
33057 #. type: textblock
33058 #: ../src/guestfs.pod:1528
33059 msgid "if L</guestfs_dd> is available."
33060 msgstr ""
33061
33062 #. type: textblock
33063 #: ../src/guestfs.pod:1530
33064 msgid ""
33065 "Before version 1.5.8, if you needed to test whether a single libguestfs "
33066 "function is available at compile time, we recommended using build tools such "
33067 "as autoconf or cmake.  For example in autotools you could use:"
33068 msgstr ""
33069
33070 #. type: verbatim
33071 #: ../src/guestfs.pod:1535
33072 #, no-wrap
33073 msgid ""
33074 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
33075 " AC_CHECK_FUNCS([guestfs_dd])\n"
33076 "\n"
33077 msgstr ""
33078
33079 #. type: textblock
33080 #: ../src/guestfs.pod:1538
33081 msgid ""
33082 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
33083 "in your program."
33084 msgstr ""
33085
33086 #. type: =head2
33087 #: ../src/guestfs.pod:1541
33088 msgid "SINGLE CALLS AT RUN TIME"
33089 msgstr ""
33090
33091 #. type: textblock
33092 #: ../src/guestfs.pod:1543
33093 msgid ""
33094 "Testing at compile time doesn't guarantee that a function really exists in "
33095 "the library.  The reason is that you might be dynamically linked against a "
33096 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
33097 "This situation unfortunately results in a segmentation fault, which is a "
33098 "shortcoming of the C dynamic linking system itself."
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs.pod:1550
33103 msgid ""
33104 "You can use L<dlopen(3)> to test if a function is available at run time, as "
33105 "in this example program (note that you still need the compile time check as "
33106 "well):"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs.pod:1554
33111 #, no-wrap
33112 msgid ""
33113 " #include <stdio.h>\n"
33114 " #include <stdlib.h>\n"
33115 " #include <unistd.h>\n"
33116 " #include <dlfcn.h>\n"
33117 " #include <guestfs.h>\n"
33118 " \n"
33119 msgstr ""
33120
33121 #. type: verbatim
33122 #: ../src/guestfs.pod:1560
33123 #, no-wrap
33124 msgid ""
33125 " main ()\n"
33126 " {\n"
33127 " #ifdef LIBGUESTFS_HAVE_DD\n"
33128 "   void *dl;\n"
33129 "   int has_function;\n"
33130 " \n"
33131 msgstr ""
33132
33133 #. type: verbatim
33134 #: ../src/guestfs.pod:1566
33135 #, no-wrap
33136 msgid ""
33137 "   /* Test if the function guestfs_dd is really available. */\n"
33138 "   dl = dlopen (NULL, RTLD_LAZY);\n"
33139 "   if (!dl) {\n"
33140 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
33141 "     exit (EXIT_FAILURE);\n"
33142 "   }\n"
33143 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
33144 "   dlclose (dl);\n"
33145 " \n"
33146 msgstr ""
33147
33148 #. type: verbatim
33149 #: ../src/guestfs.pod:1575
33150 #, no-wrap
33151 msgid ""
33152 "   if (!has_function)\n"
33153 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
33154 "   else {\n"
33155 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
33156 "     /* Now it's safe to call\n"
33157 "     guestfs_dd (g, \"foo\", \"bar\");\n"
33158 "     */\n"
33159 "   }\n"
33160 " #else\n"
33161 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
33162 " #endif\n"
33163 "  }\n"
33164 "\n"
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs.pod:1588
33169 msgid ""
33170 "You may think the above is an awful lot of hassle, and it is.  There are "
33171 "other ways outside of the C linking system to ensure that this kind of "
33172 "incompatibility never arises, such as using package versioning:"
33173 msgstr ""
33174
33175 #. type: verbatim
33176 #: ../src/guestfs.pod:1593
33177 #, no-wrap
33178 msgid ""
33179 " Requires: libguestfs >= 1.0.80\n"
33180 "\n"
33181 msgstr ""
33182
33183 #. type: =head1
33184 #: ../src/guestfs.pod:1595
33185 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33186 msgstr ""
33187
33188 #. type: textblock
33189 #: ../src/guestfs.pod:1597
33190 msgid ""
33191 "A recent feature of the API is the introduction of calls which take optional "
33192 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33193 "takes variable arguments (ie. C<...>), as in this example:"
33194 msgstr ""
33195
33196 #. type: verbatim
33197 #: ../src/guestfs.pod:1602
33198 #, no-wrap
33199 msgid ""
33200 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33201 "\n"
33202 msgstr ""
33203
33204 #. type: textblock
33205 #: ../src/guestfs.pod:1604
33206 msgid ""
33207 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33208 "call with no optional arguments specified:"
33209 msgstr ""
33210
33211 #. type: verbatim
33212 #: ../src/guestfs.pod:1607
33213 #, no-wrap
33214 msgid ""
33215 " guestfs_add_drive_opts (g, filename, -1);\n"
33216 "\n"
33217 msgstr ""
33218
33219 #. type: textblock
33220 #: ../src/guestfs.pod:1609
33221 msgid "With a single optional argument:"
33222 msgstr ""
33223
33224 #. type: verbatim
33225 #: ../src/guestfs.pod:1611
33226 #, no-wrap
33227 msgid ""
33228 " guestfs_add_drive_opts (g, filename,\n"
33229 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33230 "                         -1);\n"
33231 "\n"
33232 msgstr ""
33233
33234 #. type: textblock
33235 #: ../src/guestfs.pod:1615
33236 msgid "With two:"
33237 msgstr ""
33238
33239 #. type: verbatim
33240 #: ../src/guestfs.pod:1617
33241 #, no-wrap
33242 msgid ""
33243 " guestfs_add_drive_opts (g, filename,\n"
33244 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33245 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33246 "                         -1);\n"
33247 "\n"
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs.pod:1622
33252 msgid ""
33253 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33254 "happen!"
33255 msgstr ""
33256
33257 #. type: =head2
33258 #: ../src/guestfs.pod:1625
33259 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs.pod:1627
33264 msgid ""
33265 "The second variant has the same name with the suffix C<_va>, which works the "
33266 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33267 "example function, this is declared:"
33268 msgstr ""
33269
33270 #. type: verbatim
33271 #: ../src/guestfs.pod:1631
33272 #, no-wrap
33273 msgid ""
33274 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33275 "                                va_list args);\n"
33276 "\n"
33277 msgstr ""
33278
33279 #. type: =head2
33280 #: ../src/guestfs.pod:1634
33281 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33282 msgstr ""
33283
33284 #. type: textblock
33285 #: ../src/guestfs.pod:1636
33286 msgid ""
33287 "The third variant is useful where you need to construct these calls.  You "
33288 "pass in a structure where you fill in the optional fields.  The structure "
33289 "has a bitmask as the first element which you must set to indicate which "
33290 "fields you have filled in.  For our example function the structure and call "
33291 "are declared:"
33292 msgstr ""
33293
33294 #. type: verbatim
33295 #: ../src/guestfs.pod:1642
33296 #, no-wrap
33297 msgid ""
33298 " struct guestfs_add_drive_opts_argv {\n"
33299 "   uint64_t bitmask;\n"
33300 "   int readonly;\n"
33301 "   const char *format;\n"
33302 "   /* ... */\n"
33303 " };\n"
33304 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33305 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33306 "\n"
33307 msgstr ""
33308
33309 #. type: textblock
33310 #: ../src/guestfs.pod:1651
33311 msgid "You could call it like this:"
33312 msgstr ""
33313
33314 #. type: verbatim
33315 #: ../src/guestfs.pod:1653
33316 #, no-wrap
33317 msgid ""
33318 " struct guestfs_add_drive_opts_argv optargs = {\n"
33319 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33320 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33321 "   .readonly = 1,\n"
33322 "   .format = \"qcow2\"\n"
33323 " };\n"
33324 " \n"
33325 msgstr ""
33326
33327 #. type: verbatim
33328 #: ../src/guestfs.pod:1660
33329 #, no-wrap
33330 msgid ""
33331 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33332 "\n"
33333 msgstr ""
33334
33335 #. type: textblock
33336 #: ../src/guestfs.pod:1668
33337 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33338 msgstr ""
33339
33340 #. type: textblock
33341 #: ../src/guestfs.pod:1673
33342 msgid "You do not need to fill in all fields of the structure."
33343 msgstr ""
33344
33345 #. type: textblock
33346 #: ../src/guestfs.pod:1677
33347 msgid ""
33348 "There must be a one-to-one correspondence between fields of the structure "
33349 "that are filled in, and bits set in the bitmask."
33350 msgstr ""
33351
33352 #. type: =head2
33353 #: ../src/guestfs.pod:1682
33354 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs.pod:1684
33359 msgid ""
33360 "In other languages, optional arguments are expressed in the way that is "
33361 "natural for that language.  We refer you to the language-specific "
33362 "documentation for more details on that."
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs.pod:1688
33367 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33368 msgstr ""
33369
33370 #. type: =head2
33371 #: ../src/guestfs.pod:1690
33372 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33373 msgstr ""
33374
33375 #. type: textblock
33376 #: ../src/guestfs.pod:1692
33377 msgid ""
33378 "B<Note:> This section documents the generic event mechanism introduced in "
33379 "libguestfs 1.10, which you should use in new code if possible.  The old "
33380 "functions C<guestfs_set_log_message_callback>, "
33381 "C<guestfs_set_subprocess_quit_callback>, "
33382 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33383 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33384 "page.  Because of the ABI guarantee, the old functions continue to work."
33385 msgstr ""
33386
33387 #. type: textblock
33388 #: ../src/guestfs.pod:1701
33389 msgid ""
33390 "Handles generate events when certain things happen, such as log messages "
33391 "being generated, progress messages during long-running operations, or the "
33392 "handle being closed.  The API calls described below let you register a "
33393 "callback to be called when events happen.  You can register multiple "
33394 "callbacks (for the same, different or overlapping sets of events), and "
33395 "individually remove callbacks.  If callbacks are not removed, then they "
33396 "remain in force until the handle is closed."
33397 msgstr ""
33398
33399 #. type: textblock
33400 #: ../src/guestfs.pod:1709
33401 msgid ""
33402 "In the current implementation, events are only generated synchronously: that "
33403 "means that events (and hence callbacks) can only happen while you are in the "
33404 "middle of making another libguestfs call.  The callback is called in the "
33405 "same thread."
33406 msgstr ""
33407
33408 #. type: textblock
33409 #: ../src/guestfs.pod:1714
33410 msgid ""
33411 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33412 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33413 msgstr ""
33414
33415 #. type: =head3
33416 #: ../src/guestfs.pod:1718
33417 msgid "CLASSES OF EVENTS"
33418 msgstr ""
33419
33420 #. type: =item
33421 #: ../src/guestfs.pod:1722
33422 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33423 msgstr ""
33424
33425 #. type: textblock
33426 #: ../src/guestfs.pod:1725
33427 msgid ""
33428 "The callback function will be called while the handle is being closed "
33429 "(synchronously from L</guestfs_close>)."
33430 msgstr ""
33431
33432 #. type: textblock
33433 #: ../src/guestfs.pod:1728
33434 msgid ""
33435 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33436 "handles that are open when the program exits.  This means that this callback "
33437 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33438 "problems in higher-level languages (eg. if your HLL interpreter has already "
33439 "been cleaned up by the time this is called, and if your callback then jumps "
33440 "into some HLL function)."
33441 msgstr ""
33442
33443 #. type: textblock
33444 #: ../src/guestfs.pod:1735
33445 msgid ""
33446 "If no callback is registered: the handle is closed without any callback "
33447 "being invoked."
33448 msgstr ""
33449
33450 #. type: =item
33451 #: ../src/guestfs.pod:1738
33452 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33453 msgstr ""
33454
33455 #. type: textblock
33456 #: ../src/guestfs.pod:1741
33457 msgid ""
33458 "The callback function will be called when the child process quits, either "
33459 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33460 "corresponds to a transition from any state to the CONFIG state)."
33461 msgstr ""
33462
33463 #. type: textblock
33464 #: ../src/guestfs.pod:1745 ../src/guestfs.pod:1754
33465 msgid "If no callback is registered: the event is ignored."
33466 msgstr ""
33467
33468 #. type: =item
33469 #: ../src/guestfs.pod:1747
33470 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
33471 msgstr ""
33472
33473 #. type: textblock
33474 #: ../src/guestfs.pod:1750
33475 msgid ""
33476 "The callback function will be called when the child process becomes ready "
33477 "first time after it has been launched.  (This corresponds to a transition "
33478 "from LAUNCHING to the READY state)."
33479 msgstr ""
33480
33481 #. type: =item
33482 #: ../src/guestfs.pod:1756
33483 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
33484 msgstr ""
33485
33486 #. type: textblock
33487 #: ../src/guestfs.pod:1759
33488 msgid ""
33489 "Some long-running operations can generate progress messages.  If this "
33490 "callback is registered, then it will be called each time a progress message "
33491 "is generated (usually two seconds after the operation started, and three "
33492 "times per second thereafter until it completes, although the frequency may "
33493 "change in future versions)."
33494 msgstr ""
33495
33496 #. type: textblock
33497 #: ../src/guestfs.pod:1765
33498 msgid ""
33499 "The callback receives in the payload four unsigned 64 bit numbers which are "
33500 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
33501 msgstr ""
33502
33503 #. type: textblock
33504 #: ../src/guestfs.pod:1768
33505 msgid ""
33506 "The units of C<total> are not defined, although for some operations C<total> "
33507 "may relate in some way to the amount of data to be transferred (eg. in bytes "
33508 "or megabytes), and C<position> may be the portion which has been "
33509 "transferred."
33510 msgstr ""
33511
33512 #. type: textblock
33513 #: ../src/guestfs.pod:1773
33514 msgid "The only defined and stable parts of the API are:"
33515 msgstr ""
33516
33517 #. type: textblock
33518 #: ../src/guestfs.pod:1779
33519 msgid ""
33520 "The callback can display to the user some type of progress bar or indicator "
33521 "which shows the ratio of C<position>:C<total>."
33522 msgstr ""
33523
33524 #. type: textblock
33525 #: ../src/guestfs.pod:1784
33526 msgid "0 E<lt>= C<position> E<lt>= C<total>"
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:1788
33531 msgid ""
33532 "If any progress notification is sent during a call, then a final progress "
33533 "notification is always sent when C<position> = C<total> (I<unless> the call "
33534 "fails with an error)."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:1792
33539 msgid ""
33540 "This is to simplify caller code, so callers can easily set the progress "
33541 "indicator to \"100%\" at the end of the operation, without requiring special "
33542 "code to detect this case."
33543 msgstr ""
33544
33545 #. type: textblock
33546 #: ../src/guestfs.pod:1798
33547 msgid ""
33548 "For some calls we are unable to estimate the progress of the call, but we "
33549 "can still generate progress messages to indicate activity.  This is known as "
33550 "\"pulse mode\", and is directly supported by certain progress bar "
33551 "implementations (eg. GtkProgressBar)."
33552 msgstr ""
33553
33554 #. type: textblock
33555 #: ../src/guestfs.pod:1803
33556 msgid ""
33557 "For these calls, zero or more progress messages are generated with "
33558 "C<position = 0> and C<total = 1>, followed by a final message with "
33559 "C<position = total = 1>."
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:1807
33564 msgid ""
33565 "As noted above, if the call fails with an error then the final message may "
33566 "not be generated."
33567 msgstr ""
33568
33569 #. type: textblock
33570 #: ../src/guestfs.pod:1812
33571 msgid ""
33572 "The callback also receives the procedure number (C<proc_nr>) and serial "
33573 "number (C<serial>) of the call.  These are only useful for debugging "
33574 "protocol issues, and the callback can normally ignore them.  The callback "
33575 "may want to print these numbers in error messages or debugging messages."
33576 msgstr ""
33577
33578 #. type: textblock
33579 #: ../src/guestfs.pod:1818
33580 msgid "If no callback is registered: progress messages are discarded."
33581 msgstr ""
33582
33583 #. type: =item
33584 #: ../src/guestfs.pod:1820
33585 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
33586 msgstr ""
33587
33588 #. type: textblock
33589 #: ../src/guestfs.pod:1823
33590 msgid ""
33591 "The callback function is called whenever a log message is generated by qemu, "
33592 "the appliance kernel, guestfsd (daemon), or utility programs."
33593 msgstr ""
33594
33595 #. type: textblock
33596 #: ../src/guestfs.pod:1826
33597 msgid ""
33598 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
33599 "(L</guestfs_launch>) then additional debug messages are generated."
33600 msgstr ""
33601
33602 #. type: textblock
33603 #: ../src/guestfs.pod:1829 ../src/guestfs.pod:1843
33604 msgid ""
33605 "If no callback is registered: the messages are discarded unless the verbose "
33606 "flag is set in which case they are sent to stderr.  You can override the "
33607 "printing of verbose messages to stderr by setting up a callback."
33608 msgstr ""
33609
33610 #. type: =item
33611 #: ../src/guestfs.pod:1834
33612 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:1837
33617 msgid ""
33618 "The callback function is called whenever a log message is generated by the "
33619 "library part of libguestfs."
33620 msgstr ""
33621
33622 #. type: textblock
33623 #: ../src/guestfs.pod:1840
33624 msgid ""
33625 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
33626 "messages are generated."
33627 msgstr ""
33628
33629 #. type: =item
33630 #: ../src/guestfs.pod:1848
33631 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
33632 msgstr ""
33633
33634 #. type: textblock
33635 #: ../src/guestfs.pod:1851
33636 msgid ""
33637 "The callback function is called whenever a trace message is generated.  This "
33638 "only applies if the trace flag (L</guestfs_set_trace>) is set."
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:1854
33643 msgid ""
33644 "If no callback is registered: the messages are sent to stderr.  You can "
33645 "override the printing of trace messages to stderr by setting up a callback."
33646 msgstr ""
33647
33648 #. type: =head3
33649 #: ../src/guestfs.pod:1860
33650 msgid "guestfs_set_event_callback"
33651 msgstr ""
33652
33653 #. type: verbatim
33654 #: ../src/guestfs.pod:1862
33655 #, no-wrap
33656 msgid ""
33657 " int guestfs_set_event_callback (guestfs_h *g,\n"
33658 "                                 guestfs_event_callback cb,\n"
33659 "                                 uint64_t event_bitmask,\n"
33660 "                                 int flags,\n"
33661 "                                 void *opaque);\n"
33662 "\n"
33663 msgstr ""
33664
33665 #. type: textblock
33666 #: ../src/guestfs.pod:1868
33667 msgid ""
33668 "This function registers a callback (C<cb>) for all event classes in the "
33669 "C<event_bitmask>."
33670 msgstr ""
33671
33672 #. type: textblock
33673 #: ../src/guestfs.pod:1871
33674 msgid ""
33675 "For example, to register for all log message events, you could call this "
33676 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
33677 "To register a single callback for all possible classes of events, use "
33678 "C<GUESTFS_EVENT_ALL>."
33679 msgstr ""
33680
33681 #. type: textblock
33682 #: ../src/guestfs.pod:1877
33683 msgid "C<flags> should always be passed as 0."
33684 msgstr ""
33685
33686 #. type: textblock
33687 #: ../src/guestfs.pod:1879
33688 msgid ""
33689 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
33690 "it for any purpose."
33691 msgstr ""
33692
33693 #. type: textblock
33694 #: ../src/guestfs.pod:1882
33695 msgid ""
33696 "The return value is the event handle (an integer) which you can use to "
33697 "delete the callback (see below)."
33698 msgstr ""
33699
33700 #. type: textblock
33701 #: ../src/guestfs.pod:1885
33702 msgid ""
33703 "If there is an error, this function returns C<-1>, and sets the error in the "
33704 "handle in the usual way (see L</guestfs_last_error> etc.)"
33705 msgstr ""
33706
33707 #. type: textblock
33708 #: ../src/guestfs.pod:1888
33709 msgid ""
33710 "Callbacks remain in effect until they are deleted, or until the handle is "
33711 "closed."
33712 msgstr ""
33713
33714 #. type: textblock
33715 #: ../src/guestfs.pod:1891
33716 msgid ""
33717 "In the case where multiple callbacks are registered for a particular event "
33718 "class, all of the callbacks are called.  The order in which multiple "
33719 "callbacks are called is not defined."
33720 msgstr ""
33721
33722 #. type: =head3
33723 #: ../src/guestfs.pod:1895
33724 msgid "guestfs_delete_event_callback"
33725 msgstr ""
33726
33727 #. type: verbatim
33728 #: ../src/guestfs.pod:1897
33729 #, no-wrap
33730 msgid ""
33731 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
33732 "\n"
33733 msgstr ""
33734
33735 #. type: textblock
33736 #: ../src/guestfs.pod:1899
33737 msgid ""
33738 "Delete a callback that was previously registered.  C<event_handle> should be "
33739 "the integer that was returned by a previous call to "
33740 "C<guestfs_set_event_callback> on the same handle."
33741 msgstr ""
33742
33743 #. type: =head3
33744 #: ../src/guestfs.pod:1903
33745 msgid "guestfs_event_callback"
33746 msgstr ""
33747
33748 #. type: verbatim
33749 #: ../src/guestfs.pod:1905
33750 #, no-wrap
33751 msgid ""
33752 " typedef void (*guestfs_event_callback) (\n"
33753 "                  guestfs_h *g,\n"
33754 "                  void *opaque,\n"
33755 "                  uint64_t event,\n"
33756 "                  int event_handle,\n"
33757 "                  int flags,\n"
33758 "                  const char *buf, size_t buf_len,\n"
33759 "                  const uint64_t *array, size_t array_len);\n"
33760 "\n"
33761 msgstr ""
33762
33763 #. type: textblock
33764 #: ../src/guestfs.pod:1914
33765 msgid "This is the type of the event callback function that you have to provide."
33766 msgstr ""
33767
33768 #. type: textblock
33769 #: ../src/guestfs.pod:1917
33770 msgid ""
33771 "The basic parameters are: the handle (C<g>), the opaque user pointer "
33772 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
33773 "handle, and C<flags> which in the current API you should ignore."
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../src/guestfs.pod:1921
33778 msgid ""
33779 "The remaining parameters contain the event payload (if any).  Each event may "
33780 "contain a payload, which usually relates to the event class, but for future "
33781 "proofing your code should be written to handle any payload for any event "
33782 "class."
33783 msgstr ""
33784
33785 #. type: textblock
33786 #: ../src/guestfs.pod:1926
33787 msgid ""
33788 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
33789 "there is no message buffer).  Note that this message buffer can contain "
33790 "arbitrary 8 bit data, including NUL bytes."
33791 msgstr ""
33792
33793 #. type: textblock
33794 #: ../src/guestfs.pod:1930
33795 msgid ""
33796 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
33797 "moment this is only used for progress messages."
33798 msgstr ""
33799
33800 #. type: =head3
33801 #: ../src/guestfs.pod:1933
33802 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
33803 msgstr ""
33804
33805 #. type: textblock
33806 #: ../src/guestfs.pod:1935
33807 msgid ""
33808 "One motivation for the generic event API was to allow GUI programs to "
33809 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
33810 "unconditionally to C<stderr>."
33811 msgstr ""
33812
33813 #. type: textblock
33814 #: ../src/guestfs.pod:1939
33815 msgid ""
33816 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
33817 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
33818 "messages are not events; you must capture error messages separately)."
33819 msgstr ""
33820
33821 #. type: textblock
33822 #: ../src/guestfs.pod:1944
33823 msgid ""
33824 "Programs have to set up a callback to capture the classes of events of "
33825 "interest:"
33826 msgstr ""
33827
33828 #. type: verbatim
33829 #: ../src/guestfs.pod:1947
33830 #, no-wrap
33831 msgid ""
33832 " int eh =\n"
33833 "   guestfs_set_event_callback\n"
33834 "     (g, message_callback,\n"
33835 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
33836 "      GUESTFS_EVENT_TRACE,\n"
33837 "      0, NULL) == -1)\n"
33838 " if (eh == -1) {\n"
33839 "   // handle error in the usual way\n"
33840 " }\n"
33841 "\n"
33842 msgstr ""
33843
33844 #. type: textblock
33845 #: ../src/guestfs.pod:1957
33846 msgid ""
33847 "The callback can then direct messages to the appropriate place.  In this "
33848 "example, messages are directed to syslog:"
33849 msgstr ""
33850
33851 #. type: verbatim
33852 #: ../src/guestfs.pod:1960
33853 #, no-wrap
33854 msgid ""
33855 " static void\n"
33856 " message_callback (\n"
33857 "         guestfs_h *g,\n"
33858 "         void *opaque,\n"
33859 "         uint64_t event,\n"
33860 "         int event_handle,\n"
33861 "         int flags,\n"
33862 "         const char *buf, size_t buf_len,\n"
33863 "         const uint64_t *array, size_t array_len)\n"
33864 " {\n"
33865 "   const int priority = LOG_USER|LOG_INFO;\n"
33866 "   if (buf_len > 0)\n"
33867 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
33868 " }\n"
33869 "\n"
33870 msgstr ""
33871
33872 #. type: =head1
33873 #: ../src/guestfs.pod:1975
33874 msgid "CANCELLING LONG TRANSFERS"
33875 msgstr ""
33876
33877 #. type: textblock
33878 #: ../src/guestfs.pod:1977
33879 msgid ""
33880 "Some operations can be cancelled by the caller while they are in progress.  "
33881 "Currently only operations that involve uploading or downloading data can be "
33882 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
33883 "parameters in the generator)."
33884 msgstr ""
33885
33886 #. type: =head2
33887 #: ../src/guestfs.pod:1982
33888 msgid "guestfs_user_cancel"
33889 msgstr ""
33890
33891 #. type: verbatim
33892 #: ../src/guestfs.pod:1984
33893 #, no-wrap
33894 msgid ""
33895 " void guestfs_user_cancel (guestfs_h *g);\n"
33896 "\n"
33897 msgstr ""
33898
33899 #. type: textblock
33900 #: ../src/guestfs.pod:1986
33901 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
33902 msgstr ""
33903
33904 #. type: textblock
33905 #: ../src/guestfs.pod:1989
33906 msgid ""
33907 "Unlike most other libguestfs calls, this function is signal safe and thread "
33908 "safe.  You can call it from a signal handler or from another thread, without "
33909 "needing to do any locking."
33910 msgstr ""
33911
33912 #. type: textblock
33913 #: ../src/guestfs.pod:1993
33914 msgid ""
33915 "The transfer that was in progress (if there is one) will stop shortly "
33916 "afterwards, and will return an error.  The errno (see "
33917 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
33918 "out if the operation was cancelled or failed because of another error."
33919 msgstr ""
33920
33921 #. type: textblock
33922 #: ../src/guestfs.pod:1999
33923 msgid ""
33924 "No cleanup is performed: for example, if a file was being uploaded then "
33925 "after cancellation there may be a partially uploaded file.  It is the "
33926 "caller's responsibility to clean up if necessary."
33927 msgstr ""
33928
33929 #. type: textblock
33930 #: ../src/guestfs.pod:2003
33931 msgid "There are two common places that you might call C<guestfs_user_cancel>."
33932 msgstr ""
33933
33934 #. type: textblock
33935 #: ../src/guestfs.pod:2005
33936 msgid ""
33937 "In an interactive text-based program, you might call it from a C<SIGINT> "
33938 "signal handler so that pressing C<^C> cancels the current operation.  (You "
33939 "also need to call L</guestfs_set_pgroup> so that child processes don't "
33940 "receive the C<^C> signal)."
33941 msgstr ""
33942
33943 #. type: textblock
33944 #: ../src/guestfs.pod:2010
33945 msgid ""
33946 "In a graphical program, when the main thread is displaying a progress bar "
33947 "with a cancel button, wire up the cancel button to call this function."
33948 msgstr ""
33949
33950 #. type: =head1
33951 #: ../src/guestfs.pod:2014
33952 msgid "PRIVATE DATA AREA"
33953 msgstr ""
33954
33955 #. type: textblock
33956 #: ../src/guestfs.pod:2016
33957 msgid ""
33958 "You can attach named pieces of private data to the libguestfs handle, fetch "
33959 "them by name, and walk over them, for the lifetime of the handle.  This is "
33960 "called the private data area and is only available from the C API."
33961 msgstr ""
33962
33963 #. type: textblock
33964 #: ../src/guestfs.pod:2021
33965 msgid "To attach a named piece of data, use the following call:"
33966 msgstr ""
33967
33968 #. type: verbatim
33969 #: ../src/guestfs.pod:2023
33970 #, no-wrap
33971 msgid ""
33972 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
33973 "\n"
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:2025
33978 msgid ""
33979 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
33980 "pointer (which can be C<NULL>).  Any previous item with the same key is "
33981 "overwritten."
33982 msgstr ""
33983
33984 #. type: textblock
33985 #: ../src/guestfs.pod:2029
33986 msgid ""
33987 "You can use any C<key> you want, but your key should I<not> start with an "
33988 "underscore character.  Keys beginning with an underscore character are "
33989 "reserved for internal libguestfs purposes (eg. for implementing language "
33990 "bindings).  It is recommended that you prefix the key with some unique "
33991 "string to avoid collisions with other users."
33992 msgstr ""
33993
33994 #. type: textblock
33995 #: ../src/guestfs.pod:2035
33996 msgid "To retrieve the pointer, use:"
33997 msgstr ""
33998
33999 #. type: verbatim
34000 #: ../src/guestfs.pod:2037
34001 #, no-wrap
34002 msgid ""
34003 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
34004 "\n"
34005 msgstr ""
34006
34007 #. type: textblock
34008 #: ../src/guestfs.pod:2039
34009 msgid ""
34010 "This function returns C<NULL> if either no data is found associated with "
34011 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
34012 "C<NULL>."
34013 msgstr ""
34014
34015 #. type: textblock
34016 #: ../src/guestfs.pod:2043
34017 msgid ""
34018 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
34019 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
34020 "all.  In particular, libguestfs does I<not> try to free the data when the "
34021 "handle is closed.  If the data must be freed, then the caller must either "
34022 "free it before calling L</guestfs_close> or must set up a close callback to "
34023 "do it (see L</GUESTFS_EVENT_CLOSE>)."
34024 msgstr ""
34025
34026 #. type: textblock
34027 #: ../src/guestfs.pod:2050
34028 msgid "To walk over all entries, use these two functions:"
34029 msgstr ""
34030
34031 #. type: verbatim
34032 #: ../src/guestfs.pod:2052
34033 #, no-wrap
34034 msgid ""
34035 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
34036 "\n"
34037 msgstr ""
34038
34039 #. type: verbatim
34040 #: ../src/guestfs.pod:2054
34041 #, no-wrap
34042 msgid ""
34043 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
34044 "\n"
34045 msgstr ""
34046
34047 #. type: textblock
34048 #: ../src/guestfs.pod:2056
34049 msgid ""
34050 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
34051 "not have any particular meaning -- keys are not returned in any defined "
34052 "order).  A pointer to the key is returned in C<*key_rtn> and the "
34053 "corresponding data pointer is returned from the function.  C<NULL> is "
34054 "returned if there are no keys stored in the handle."
34055 msgstr ""
34056
34057 #. type: textblock
34058 #: ../src/guestfs.pod:2062
34059 msgid ""
34060 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
34061 "value of this function is also C<NULL> is there are no further entries to "
34062 "return."
34063 msgstr ""
34064
34065 #. type: textblock
34066 #: ../src/guestfs.pod:2066
34067 msgid "Notes about walking over entries:"
34068 msgstr ""
34069
34070 #. type: textblock
34071 #: ../src/guestfs.pod:2072
34072 msgid "You must not call C<guestfs_set_private> while walking over the entries."
34073 msgstr ""
34074
34075 #. type: textblock
34076 #: ../src/guestfs.pod:2077
34077 msgid ""
34078 "The handle maintains an internal iterator which is reset when you call "
34079 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
34080 "call C<guestfs_set_private>."
34081 msgstr ""
34082
34083 #. type: textblock
34084 #: ../src/guestfs.pod:2083
34085 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
34086 msgstr ""
34087
34088 #. type: verbatim
34089 #: ../src/guestfs.pod:2085
34090 #, no-wrap
34091 msgid ""
34092 " guestfs_set_private (g, key, NULL);\n"
34093 "\n"
34094 msgstr ""
34095
34096 #. type: textblock
34097 #: ../src/guestfs.pod:2087
34098 msgid "then that C<key> is not returned when walking."
34099 msgstr ""
34100
34101 #. type: textblock
34102 #: ../src/guestfs.pod:2091
34103 msgid ""
34104 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
34105 "C<guestfs_next_private> or C<guestfs_set_private>."
34106 msgstr ""
34107
34108 #. type: textblock
34109 #: ../src/guestfs.pod:2097
34110 msgid ""
34111 "The following example code shows how to print all keys and data pointers "
34112 "that are associated with the handle C<g>:"
34113 msgstr ""
34114
34115 #. type: verbatim
34116 #: ../src/guestfs.pod:2100
34117 #, no-wrap
34118 msgid ""
34119 " const char *key;\n"
34120 " void *data = guestfs_first_private (g, &key);\n"
34121 " while (data != NULL)\n"
34122 "   {\n"
34123 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
34124 "     data = guestfs_next_private (g, &key);\n"
34125 "   }\n"
34126 "\n"
34127 msgstr ""
34128
34129 #. type: textblock
34130 #: ../src/guestfs.pod:2108
34131 msgid ""
34132 "More commonly you are only interested in keys that begin with an "
34133 "application-specific prefix C<foo_>.  Modify the loop like so:"
34134 msgstr ""
34135
34136 #. type: verbatim
34137 #: ../src/guestfs.pod:2111
34138 #, no-wrap
34139 msgid ""
34140 " const char *key;\n"
34141 " void *data = guestfs_first_private (g, &key);\n"
34142 " while (data != NULL)\n"
34143 "   {\n"
34144 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34145 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
34146 "     data = guestfs_next_private (g, &key);\n"
34147 "   }\n"
34148 "\n"
34149 msgstr ""
34150
34151 #. type: textblock
34152 #: ../src/guestfs.pod:2120
34153 msgid ""
34154 "If you need to modify keys while walking, then you have to jump back to the "
34155 "beginning of the loop.  For example, to delete all keys prefixed with "
34156 "C<foo_>:"
34157 msgstr ""
34158
34159 #. type: verbatim
34160 #: ../src/guestfs.pod:2124
34161 #, no-wrap
34162 msgid ""
34163 "  const char *key;\n"
34164 "  void *data;\n"
34165 " again:\n"
34166 "  data = guestfs_first_private (g, &key);\n"
34167 "  while (data != NULL)\n"
34168 "    {\n"
34169 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
34170 "        {\n"
34171 "          guestfs_set_private (g, key, NULL);\n"
34172 "          /* note that 'key' pointer is now invalid, and so is\n"
34173 "             the internal iterator */\n"
34174 "          goto again;\n"
34175 "        }\n"
34176 "      data = guestfs_next_private (g, &key);\n"
34177 "    }\n"
34178 "\n"
34179 msgstr ""
34180
34181 #. type: textblock
34182 #: ../src/guestfs.pod:2140
34183 msgid ""
34184 "Note that the above loop is guaranteed to terminate because the keys are "
34185 "being deleted, but other manipulations of keys within the loop might not "
34186 "terminate unless you also maintain an indication of which keys have been "
34187 "visited."
34188 msgstr ""
34189
34190 #. type: =end
34191 #: ../src/guestfs.pod:2145 ../src/guestfs.pod:2150
34192 msgid "html"
34193 msgstr ""
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:2147
34197 msgid ""
34198 "<!-- old anchor for the next section --> <a "
34199 "name=\"state_machine_and_low_level_event_api\"/>"
34200 msgstr ""
34201
34202 #. type: =head1
34203 #: ../src/guestfs.pod:2152
34204 msgid "ARCHITECTURE"
34205 msgstr ""
34206
34207 #. type: textblock
34208 #: ../src/guestfs.pod:2154
34209 msgid ""
34210 "Internally, libguestfs is implemented by running an appliance (a special "
34211 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34212 "process of the main program."
34213 msgstr ""
34214
34215 #. type: verbatim
34216 #: ../src/guestfs.pod:2158
34217 #, no-wrap
34218 msgid ""
34219 "  ___________________\n"
34220 " /                   \\\n"
34221 " | main program      |\n"
34222 " |                   |\n"
34223 " |                   |           child process / appliance\n"
34224 " |                   |           __________________________\n"
34225 " |                   |          / qemu                     \\\n"
34226 " +-------------------+   RPC    |      +-----------------+ |\n"
34227 " | libguestfs     <--------------------> guestfsd        | |\n"
34228 " |                   |          |      +-----------------+ |\n"
34229 " \\___________________/          |      | Linux kernel    | |\n"
34230 "                                |      +--^--------------+ |\n"
34231 "                                \\_________|________________/\n"
34232 "                                          |\n"
34233 "                                   _______v______\n"
34234 "                                  /              \\\n"
34235 "                                  | Device or    |\n"
34236 "                                  | disk image   |\n"
34237 "                                  \\______________/\n"
34238 "\n"
34239 msgstr ""
34240
34241 #. type: textblock
34242 #: ../src/guestfs.pod:2178
34243 msgid ""
34244 "The library, linked to the main program, creates the child process and hence "
34245 "the appliance in the L</guestfs_launch> function."
34246 msgstr ""
34247
34248 #. type: textblock
34249 #: ../src/guestfs.pod:2181
34250 msgid ""
34251 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34252 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34253 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34254 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34255 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34256 "attached to the qemu process which translates device access by the "
34257 "appliance's Linux kernel into accesses to the image."
34258 msgstr ""
34259
34260 #. type: textblock
34261 #: ../src/guestfs.pod:2190
34262 msgid ""
34263 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34264 "Although the disk image you are attached to might also be used by some "
34265 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34266 "care if both libguestfs's qemu process and your virtual machine are trying "
34267 "to update the disk image at the same time, since these usually results in "
34268 "massive disk corruption)."
34269 msgstr ""
34270
34271 #. type: =head1
34272 #: ../src/guestfs.pod:2197
34273 msgid "STATE MACHINE"
34274 msgstr ""
34275
34276 #. type: textblock
34277 #: ../src/guestfs.pod:2199
34278 msgid "libguestfs uses a state machine to model the child process:"
34279 msgstr ""
34280
34281 #. type: verbatim
34282 #: ../src/guestfs.pod:2201
34283 #, no-wrap
34284 msgid ""
34285 "                         |\n"
34286 "                    guestfs_create\n"
34287 "                         |\n"
34288 "                         |\n"
34289 "                     ____V_____\n"
34290 "                    /          \\\n"
34291 "                    |  CONFIG  |\n"
34292 "                    \\__________/\n"
34293 "                     ^ ^   ^  \\\n"
34294 "                    /  |    \\  \\ guestfs_launch\n"
34295 "                   /   |    _\\__V______\n"
34296 "                  /    |   /           \\\n"
34297 "                 /     |   | LAUNCHING |\n"
34298 "                /      |   \\___________/\n"
34299 "               /       |       /\n"
34300 "              /        |  guestfs_launch\n"
34301 "             /         |     /\n"
34302 "    ______  /        __|____V\n"
34303 "   /      \\ ------> /        \\\n"
34304 "   | BUSY |         | READY  |\n"
34305 "   \\______/ <------ \\________/\n"
34306 "\n"
34307 msgstr ""
34308
34309 #. type: textblock
34310 #: ../src/guestfs.pod:2223
34311 msgid ""
34312 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34313 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34314 "(3) alternating between READY and BUSY as commands are issued to, and "
34315 "carried out by, the child process."
34316 msgstr ""
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:2228
34320 msgid ""
34321 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34322 "asynchronously at any time (eg. due to some internal error), and that causes "
34323 "the state to transition back to CONFIG."
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:2232
34328 msgid ""
34329 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34330 "issued when in the CONFIG state."
34331 msgstr ""
34332
34333 #. type: textblock
34334 #: ../src/guestfs.pod:2235
34335 msgid ""
34336 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34337 "L</guestfs_launch> blocks until the child process is READY to accept "
34338 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34339 "moves the state from CONFIG to LAUNCHING while it is running."
34340 msgstr ""
34341
34342 #. type: textblock
34343 #: ../src/guestfs.pod:2241
34344 msgid ""
34345 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34346 "state.  These API calls block waiting for the command to be carried out "
34347 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34348 "non-blocking versions, and no way to issue more than one command per handle "
34349 "at the same time."
34350 msgstr ""
34351
34352 #. type: textblock
34353 #: ../src/guestfs.pod:2247
34354 msgid ""
34355 "Finally, the child process sends asynchronous messages back to the main "
34356 "program, such as kernel log messages.  You can register a callback to "
34357 "receive these messages."
34358 msgstr ""
34359
34360 #. type: =head1
34361 #: ../src/guestfs.pod:2251
34362 msgid "INTERNALS"
34363 msgstr ""
34364
34365 #. type: =head2
34366 #: ../src/guestfs.pod:2253
34367 msgid "APPLIANCE BOOT PROCESS"
34368 msgstr ""
34369
34370 #. type: textblock
34371 #: ../src/guestfs.pod:2255
34372 msgid ""
34373 "This process has evolved and continues to evolve.  The description here "
34374 "corresponds only to the current version of libguestfs and is provided for "
34375 "information only."
34376 msgstr ""
34377
34378 #. type: textblock
34379 #: ../src/guestfs.pod:2259
34380 msgid ""
34381 "In order to follow the stages involved below, enable libguestfs debugging "
34382 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
34383 msgstr ""
34384
34385 #. type: =item
34386 #: ../src/guestfs.pod:2264
34387 msgid "Create the appliance"
34388 msgstr ""
34389
34390 #. type: textblock
34391 #: ../src/guestfs.pod:2266
34392 msgid ""
34393 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
34394 "initrd and the appliance."
34395 msgstr ""
34396
34397 #. type: textblock
34398 #: ../src/guestfs.pod:2269
34399 msgid ""
34400 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
34401 "directory if C<TMPDIR> is set)."
34402 msgstr ""
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:2272
34406 msgid ""
34407 "For a complete description of how the appliance is created and cached, read "
34408 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
34409 msgstr ""
34410
34411 #. type: =item
34412 #: ../src/guestfs.pod:2276
34413 msgid "Start qemu and boot the kernel"
34414 msgstr ""
34415
34416 #. type: textblock
34417 #: ../src/guestfs.pod:2278
34418 msgid "qemu is invoked to boot the kernel."
34419 msgstr ""
34420
34421 #. type: =item
34422 #: ../src/guestfs.pod:2280
34423 msgid "Run the initrd"
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:2282
34428 msgid ""
34429 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
34430 "appliance.  The purpose of the initrd is to load enough kernel modules in "
34431 "order that the appliance itself can be mounted and started."
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:2286
34436 msgid ""
34437 "The initrd is a cpio archive called "
34438 "C</var/tmp/.guestfs-E<lt>UIDE<gt>/initrd>."
34439 msgstr ""
34440
34441 #. type: textblock
34442 #: ../src/guestfs.pod:2289
34443 msgid ""
34444 "When the initrd has started you will see messages showing that kernel "
34445 "modules are being loaded, similar to this:"
34446 msgstr ""
34447
34448 #. type: verbatim
34449 #: ../src/guestfs.pod:2292
34450 #, no-wrap
34451 msgid ""
34452 " febootstrap: ext2 mini initrd starting up\n"
34453 " febootstrap: mounting /sys\n"
34454 " febootstrap: internal insmod libcrc32c.ko\n"
34455 " febootstrap: internal insmod crc32c-intel.ko\n"
34456 "\n"
34457 msgstr ""
34458
34459 #. type: =item
34460 #: ../src/guestfs.pod:2297
34461 msgid "Find and mount the appliance device"
34462 msgstr ""
34463
34464 #. type: textblock
34465 #: ../src/guestfs.pod:2299
34466 msgid ""
34467 "The appliance is a sparse file containing an ext2 filesystem which contains "
34468 "a familiar (although reduced in size) Linux operating system.  It would "
34469 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:2303
34474 msgid ""
34475 "The regular disks being inspected by libguestfs are the first devices "
34476 "exposed by qemu (eg. as C</dev/vda>)."
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs.pod:2306
34481 msgid ""
34482 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
34483 "there was only one regular disk)."
34484 msgstr ""
34485
34486 #. type: textblock
34487 #: ../src/guestfs.pod:2309
34488 msgid ""
34489 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
34490 "and switch root into the appliance, and run C</init> from the appliance."
34491 msgstr ""
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:2313
34495 msgid "If this works successfully you will see messages such as:"
34496 msgstr ""
34497
34498 #. type: verbatim
34499 #: ../src/guestfs.pod:2315
34500 #, no-wrap
34501 msgid ""
34502 " febootstrap: picked /sys/block/vdb/dev as root device\n"
34503 " febootstrap: creating /dev/root as block special 252:16\n"
34504 " febootstrap: mounting new root on /root\n"
34505 " febootstrap: chroot\n"
34506 " Starting /init script ...\n"
34507 "\n"
34508 msgstr ""
34509
34510 #. type: textblock
34511 #: ../src/guestfs.pod:2321
34512 msgid ""
34513 "Note that C<Starting /init script ...> indicates that the appliance's init "
34514 "script is now running."
34515 msgstr ""
34516
34517 #. type: =item
34518 #: ../src/guestfs.pod:2324
34519 msgid "Initialize the appliance"
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:2326
34524 msgid ""
34525 "The appliance itself now initializes itself.  This involves starting certain "
34526 "processes like C<udev>, possibly printing some debug information, and "
34527 "finally running the daemon (C<guestfsd>)."
34528 msgstr ""
34529
34530 #. type: =item
34531 #: ../src/guestfs.pod:2330
34532 msgid "The daemon"
34533 msgstr ""
34534
34535 #. type: textblock
34536 #: ../src/guestfs.pod:2332
34537 msgid ""
34538 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
34539 "should see:"
34540 msgstr ""
34541
34542 #. type: verbatim
34543 #: ../src/guestfs.pod:2335
34544 #, no-wrap
34545 msgid ""
34546 " verbose daemon enabled\n"
34547 "\n"
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:2337
34552 msgid ""
34553 "The daemon expects to see a named virtio-serial port exposed by qemu and "
34554 "connected on the other end to the library."
34555 msgstr ""
34556
34557 #. type: textblock
34558 #: ../src/guestfs.pod:2340
34559 msgid ""
34560 "The daemon connects to this port (and hence to the library) and sends a four "
34561 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
34562 "protocol (see below)."
34563 msgstr ""
34564
34565 #. type: =head2
34566 #: ../src/guestfs.pod:2346
34567 msgid "COMMUNICATION PROTOCOL"
34568 msgstr ""
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:2348
34572 msgid ""
34573 "Don't rely on using this protocol directly.  This section documents how it "
34574 "currently works, but it may change at any time."
34575 msgstr ""
34576
34577 #. type: textblock
34578 #: ../src/guestfs.pod:2351
34579 msgid ""
34580 "The protocol used to talk between the library and the daemon running inside "
34581 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34582 "1014, RFC 1832, RFC 4506)."
34583 msgstr ""
34584
34585 #. type: textblock
34586 #: ../src/guestfs.pod:2355
34587 msgid ""
34588 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34589 "this file is automatically generated)."
34590 msgstr ""
34591
34592 #. type: textblock
34593 #: ../src/guestfs.pod:2358
34594 msgid ""
34595 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34596 "and C<FileOut> parameters, which are handled with very simple request/reply "
34597 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34598 "parameters, which use the same request and reply messages, but they may also "
34599 "be followed by files sent using a chunked encoding."
34600 msgstr ""
34601
34602 #. type: =head3
34603 #: ../src/guestfs.pod:2365
34604 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34605 msgstr ""
34606
34607 #. type: textblock
34608 #: ../src/guestfs.pod:2367
34609 msgid "For ordinary functions, the request message is:"
34610 msgstr ""
34611
34612 #. type: verbatim
34613 #: ../src/guestfs.pod:2369
34614 #, no-wrap
34615 msgid ""
34616 " total length (header + arguments,\n"
34617 "      but not including the length word itself)\n"
34618 " struct guestfs_message_header (encoded as XDR)\n"
34619 " struct guestfs_<foo>_args (encoded as XDR)\n"
34620 "\n"
34621 msgstr ""
34622
34623 #. type: textblock
34624 #: ../src/guestfs.pod:2374
34625 msgid ""
34626 "The total length field allows the daemon to allocate a fixed size buffer "
34627 "into which it slurps the rest of the message.  As a result, the total length "
34628 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34629 "effective size of any request is limited to somewhere under this size."
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:2380
34634 msgid ""
34635 "Note also that many functions don't take any arguments, in which case the "
34636 "C<guestfs_I<foo>_args> is completely omitted."
34637 msgstr ""
34638
34639 #. type: textblock
34640 #: ../src/guestfs.pod:2383
34641 msgid ""
34642 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34643 "receiver knows what type of args structure to expect, or none at all."
34644 msgstr ""
34645
34646 #. type: textblock
34647 #: ../src/guestfs.pod:2387
34648 msgid ""
34649 "For functions that take optional arguments, the optional arguments are "
34650 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34651 "arguments.  A bitmask in the header indicates which optional arguments are "
34652 "meaningful.  The bitmask is also checked to see if it contains bits set "
34653 "which the daemon does not know about (eg. if more optional arguments were "
34654 "added in a later version of the library), and this causes the call to be "
34655 "rejected."
34656 msgstr ""
34657
34658 #. type: textblock
34659 #: ../src/guestfs.pod:2395
34660 msgid "The reply message for ordinary functions is:"
34661 msgstr ""
34662
34663 #. type: verbatim
34664 #: ../src/guestfs.pod:2397
34665 #, no-wrap
34666 msgid ""
34667 " total length (header + ret,\n"
34668 "      but not including the length word itself)\n"
34669 " struct guestfs_message_header (encoded as XDR)\n"
34670 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34671 "\n"
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:2402
34676 msgid ""
34677 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
34678 "functions that return no formal return values."
34679 msgstr ""
34680
34681 #. type: textblock
34682 #: ../src/guestfs.pod:2405
34683 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
34684 msgstr ""
34685
34686 #. type: textblock
34687 #: ../src/guestfs.pod:2408
34688 msgid ""
34689 "In the case of an error, a flag is set in the header, and the reply message "
34690 "is slightly changed:"
34691 msgstr ""
34692
34693 #. type: verbatim
34694 #: ../src/guestfs.pod:2411
34695 #, no-wrap
34696 msgid ""
34697 " total length (header + error,\n"
34698 "      but not including the length word itself)\n"
34699 " struct guestfs_message_header (encoded as XDR)\n"
34700 " struct guestfs_message_error (encoded as XDR)\n"
34701 "\n"
34702 msgstr ""
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:2416
34706 msgid ""
34707 "The C<guestfs_message_error> structure contains the error message as a "
34708 "string."
34709 msgstr ""
34710
34711 #. type: =head3
34712 #: ../src/guestfs.pod:2419
34713 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
34714 msgstr ""
34715
34716 #. type: textblock
34717 #: ../src/guestfs.pod:2421
34718 msgid ""
34719 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
34720 "The normal request message is sent (see above).  However this is followed by "
34721 "a sequence of file chunks."
34722 msgstr ""
34723
34724 #. type: verbatim
34725 #: ../src/guestfs.pod:2425
34726 #, no-wrap
34727 msgid ""
34728 " total length (header + arguments,\n"
34729 "      but not including the length word itself,\n"
34730 "      and not including the chunks)\n"
34731 " struct guestfs_message_header (encoded as XDR)\n"
34732 " struct guestfs_<foo>_args (encoded as XDR)\n"
34733 " sequence of chunks for FileIn param #0\n"
34734 " sequence of chunks for FileIn param #1 etc.\n"
34735 "\n"
34736 msgstr ""
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:2433
34740 msgid "The \"sequence of chunks\" is:"
34741 msgstr ""
34742
34743 #. type: verbatim
34744 #: ../src/guestfs.pod:2435
34745 #, no-wrap
34746 msgid ""
34747 " length of chunk (not including length word itself)\n"
34748 " struct guestfs_chunk (encoded as XDR)\n"
34749 " length of chunk\n"
34750 " struct guestfs_chunk (encoded as XDR)\n"
34751 "   ...\n"
34752 " length of chunk\n"
34753 " struct guestfs_chunk (with data.data_len == 0)\n"
34754 "\n"
34755 msgstr ""
34756
34757 #. type: textblock
34758 #: ../src/guestfs.pod:2443
34759 msgid ""
34760 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
34761 "is set in the final chunk to indicate either successful completion or early "
34762 "cancellation."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:2447
34767 msgid ""
34768 "At time of writing there are no functions that have more than one FileIn "
34769 "parameter.  However this is (theoretically) supported, by sending the "
34770 "sequence of chunks for each FileIn parameter one after another (from left to "
34771 "right)."
34772 msgstr ""
34773
34774 #. type: textblock
34775 #: ../src/guestfs.pod:2452
34776 msgid ""
34777 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
34778 "transfer.  The library does this by sending a chunk with a special flag set "
34779 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
34780 "RPC, does I<not> send any reply, and goes back to reading the next request."
34781 msgstr ""
34782
34783 #. type: textblock
34784 #: ../src/guestfs.pod:2458
34785 msgid ""
34786 "The daemon may also cancel.  It does this by writing a special word "
34787 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
34788 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
34789 "cancel chunk).  The special word is chosen so that even if cancellation "
34790 "happens right at the end of the transfer (after the library has finished "
34791 "writing and has started listening for the reply), the \"spurious\" cancel "
34792 "flag will not be confused with the reply message."
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:2467
34797 msgid ""
34798 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
34799 "limit), and also files where the size is not known in advance (eg. from "
34800 "pipes or sockets).  However the chunks are rather small "
34801 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
34802 "to keep much in memory."
34803 msgstr ""
34804
34805 #. type: =head3
34806 #: ../src/guestfs.pod:2473
34807 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs.pod:2475
34812 msgid ""
34813 "The protocol for FileOut parameters is exactly the same as for FileIn "
34814 "parameters, but with the roles of daemon and library reversed."
34815 msgstr ""
34816
34817 #. type: verbatim
34818 #: ../src/guestfs.pod:2478
34819 #, no-wrap
34820 msgid ""
34821 " total length (header + ret,\n"
34822 "      but not including the length word itself,\n"
34823 "      and not including the chunks)\n"
34824 " struct guestfs_message_header (encoded as XDR)\n"
34825 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34826 " sequence of chunks for FileOut param #0\n"
34827 " sequence of chunks for FileOut param #1 etc.\n"
34828 "\n"
34829 msgstr ""
34830
34831 #. type: =head3
34832 #: ../src/guestfs.pod:2486
34833 msgid "INITIAL MESSAGE"
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:2488
34838 msgid ""
34839 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
34840 "which indicates that the guest and daemon is alive.  This is what "
34841 "L</guestfs_launch> waits for."
34842 msgstr ""
34843
34844 #. type: =head3
34845 #: ../src/guestfs.pod:2492
34846 msgid "PROGRESS NOTIFICATION MESSAGES"
34847 msgstr ""
34848
34849 #. type: textblock
34850 #: ../src/guestfs.pod:2494
34851 msgid ""
34852 "The daemon may send progress notification messages at any time.  These are "
34853 "distinguished by the normal length word being replaced by "
34854 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
34855 msgstr ""
34856
34857 #. type: textblock
34858 #: ../src/guestfs.pod:2498
34859 msgid ""
34860 "The library turns them into progress callbacks (see "
34861 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
34862 "them if not."
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:2502
34867 msgid ""
34868 "The daemon self-limits the frequency of progress messages it sends (see "
34869 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
34870 "messages."
34871 msgstr ""
34872
34873 #. type: =head1
34874 #: ../src/guestfs.pod:2506
34875 msgid "LIBGUESTFS VERSION NUMBERS"
34876 msgstr ""
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:2508
34880 msgid ""
34881 "Since April 2010, libguestfs has started to make separate development and "
34882 "stable releases, along with corresponding branches in our git repository.  "
34883 "These separate releases can be identified by version number:"
34884 msgstr ""
34885
34886 #. type: verbatim
34887 #: ../src/guestfs.pod:2513
34888 #, no-wrap
34889 msgid ""
34890 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
34891 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
34892 "       |\n"
34893 "       v\n"
34894 " 1  .  3  .  5\n"
34895 " ^           ^\n"
34896 " |           |\n"
34897 " |           `-------- sub-version\n"
34898 " |\n"
34899 " `------ always '1' because we don't change the ABI\n"
34900 "\n"
34901 msgstr ""
34902
34903 #. type: textblock
34904 #: ../src/guestfs.pod:2524
34905 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
34906 msgstr ""
34907
34908 #. type: textblock
34909 #: ../src/guestfs.pod:2526
34910 msgid ""
34911 "As time passes we cherry pick fixes from the development branch and backport "
34912 "those into the stable branch, the effect being that the stable branch should "
34913 "get more stable and less buggy over time.  So the stable releases are ideal "
34914 "for people who don't need new features but would just like the software to "
34915 "work."
34916 msgstr ""
34917
34918 #. type: textblock
34919 #: ../src/guestfs.pod:2532
34920 msgid "Our criteria for backporting changes are:"
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:2538
34925 msgid ""
34926 "Documentation changes which don't affect any code are backported unless the "
34927 "documentation refers to a future feature which is not in stable."
34928 msgstr ""
34929
34930 #. type: textblock
34931 #: ../src/guestfs.pod:2544
34932 msgid ""
34933 "Bug fixes which are not controversial, fix obvious problems, and have been "
34934 "well tested are backported."
34935 msgstr ""
34936
34937 #. type: textblock
34938 #: ../src/guestfs.pod:2549
34939 msgid ""
34940 "Simple rearrangements of code which shouldn't affect how it works get "
34941 "backported.  This is so that the code in the two branches doesn't get too "
34942 "far out of step, allowing us to backport future fixes more easily."
34943 msgstr ""
34944
34945 #. type: textblock
34946 #: ../src/guestfs.pod:2555
34947 msgid ""
34948 "We I<don't> backport new features, new APIs, new tools etc, except in one "
34949 "exceptional case: the new feature is required in order to implement an "
34950 "important bug fix."
34951 msgstr ""
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:2561
34955 msgid ""
34956 "A new stable branch starts when we think the new features in development are "
34957 "substantial and compelling enough over the current stable branch to warrant "
34958 "it.  When that happens we create new stable and development versions 1.N.0 "
34959 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
34960 "stable at this point, but by backporting fixes from development, that branch "
34961 "will stabilize over time."
34962 msgstr ""
34963
34964 #. type: =head1
34965 #: ../src/guestfs.pod:2569
34966 msgid "EXTENDING LIBGUESTFS"
34967 msgstr ""
34968
34969 #. type: =head2
34970 #: ../src/guestfs.pod:2571
34971 msgid "ADDING A NEW API ACTION"
34972 msgstr ""
34973
34974 #. type: textblock
34975 #: ../src/guestfs.pod:2573
34976 msgid ""
34977 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
34978 "documentation) are generated, and this makes it easy to extend the "
34979 "libguestfs API."
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:2577
34984 msgid "To add a new API action there are two changes:"
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:2583
34989 msgid ""
34990 "You need to add a description of the call (name, parameters, return type, "
34991 "tests, documentation) to C<generator/generator_actions.ml>."
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:2586
34996 msgid ""
34997 "There are two sorts of API action, depending on whether the call goes "
34998 "through to the daemon in the appliance, or is serviced entirely by the "
34999 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
35000 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
35001 "an example of the latter, since a trace flag is maintained in the handle and "
35002 "all tracing is done on the library side."
35003 msgstr ""
35004
35005 #. type: textblock
35006 #: ../src/guestfs.pod:2594
35007 msgid ""
35008 "Most new actions are of the first type, and get added to the "
35009 "C<daemon_functions> list.  Each function has a unique procedure number used "
35010 "in the RPC protocol which is assigned to that action when we publish "
35011 "libguestfs and cannot be reused.  Take the latest procedure number and "
35012 "increment it."
35013 msgstr ""
35014
35015 #. type: textblock
35016 #: ../src/guestfs.pod:2600
35017 msgid ""
35018 "For library-only actions of the second type, add to the "
35019 "C<non_daemon_functions> list.  Since these functions are serviced by the "
35020 "library and do not travel over the RPC mechanism to the daemon, these "
35021 "functions do not need a procedure number, and so the procedure number is set "
35022 "to C<-1>."
35023 msgstr ""
35024
35025 #. type: textblock
35026 #: ../src/guestfs.pod:2608
35027 msgid "Implement the action (in C):"
35028 msgstr ""
35029
35030 #. type: textblock
35031 #: ../src/guestfs.pod:2610
35032 msgid ""
35033 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
35034 "C<daemon/> directory."
35035 msgstr ""
35036
35037 #. type: textblock
35038 #: ../src/guestfs.pod:2613
35039 msgid ""
35040 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
35041 "(note: double underscore) in the C<src/> directory."
35042 msgstr ""
35043
35044 #. type: textblock
35045 #: ../src/guestfs.pod:2616
35046 msgid "In either case, use another function as an example of what to do."
35047 msgstr ""
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:2620
35051 msgid "After making these changes, use C<make> to compile."
35052 msgstr ""
35053
35054 #. type: textblock
35055 #: ../src/guestfs.pod:2622
35056 msgid ""
35057 "Note that you don't need to implement the RPC, language bindings, manual "
35058 "pages or anything else.  It's all automatically generated from the OCaml "
35059 "description."
35060 msgstr ""
35061
35062 #. type: =head2
35063 #: ../src/guestfs.pod:2626
35064 msgid "ADDING TESTS FOR AN API ACTION"
35065 msgstr ""
35066
35067 #. type: textblock
35068 #: ../src/guestfs.pod:2628
35069 msgid ""
35070 "You can supply zero or as many tests as you want per API call.  The tests "
35071 "can either be added as part of the API description "
35072 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
35073 "drop a script into C<regressions/>.  Note that adding a script to "
35074 "C<regressions/> is slower, so if possible use the first method."
35075 msgstr ""
35076
35077 #. type: textblock
35078 #: ../src/guestfs.pod:2634
35079 msgid ""
35080 "The following describes the test environment used when you add an API test "
35081 "in C<generator_actions.ml>."
35082 msgstr ""
35083
35084 #. type: textblock
35085 #: ../src/guestfs.pod:2637
35086 msgid "The test environment has 4 block devices:"
35087 msgstr ""
35088
35089 #. type: =item
35090 #: ../src/guestfs.pod:2641
35091 msgid "C</dev/sda> 500MB"
35092 msgstr ""
35093
35094 #. type: textblock
35095 #: ../src/guestfs.pod:2643
35096 msgid "General block device for testing."
35097 msgstr ""
35098
35099 #. type: =item
35100 #: ../src/guestfs.pod:2645
35101 msgid "C</dev/sdb> 50MB"
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:2647
35106 msgid ""
35107 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
35108 "operations."
35109 msgstr ""
35110
35111 #. type: =item
35112 #: ../src/guestfs.pod:2650
35113 msgid "C</dev/sdc> 10MB"
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:2652
35118 msgid "Used in a few tests where two block devices are needed."
35119 msgstr ""
35120
35121 #. type: =item
35122 #: ../src/guestfs.pod:2654
35123 msgid "C</dev/sdd>"
35124 msgstr ""
35125
35126 #. type: textblock
35127 #: ../src/guestfs.pod:2656
35128 msgid "ISO with fixed content (see C<images/test.iso>)."
35129 msgstr ""
35130
35131 #. type: textblock
35132 #: ../src/guestfs.pod:2660
35133 msgid ""
35134 "To be able to run the tests in a reasonable amount of time, the libguestfs "
35135 "appliance and block devices are reused between tests.  So don't try testing "
35136 "L</guestfs_kill_subprocess> :-x"
35137 msgstr ""
35138
35139 #. type: textblock
35140 #: ../src/guestfs.pod:2664
35141 msgid ""
35142 "Each test starts with an initial scenario, selected using one of the "
35143 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
35144 "initialize the disks mentioned above in a particular way as documented in "
35145 "C<generator_types.ml>.  You should not assume anything about the previous "
35146 "contents of other disks that are not initialized."
35147 msgstr ""
35148
35149 #. type: textblock
35150 #: ../src/guestfs.pod:2670
35151 msgid ""
35152 "You can add a prerequisite clause to any individual test.  This is a "
35153 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
35154 "if testing a command which might not work on all variations of libguestfs "
35155 "builds.  A test that has prerequisite of C<Always> means to run "
35156 "unconditionally."
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:2676
35161 msgid ""
35162 "In addition, packagers can skip individual tests by setting environment "
35163 "variables before running C<make check>."
35164 msgstr ""
35165
35166 #. type: verbatim
35167 #: ../src/guestfs.pod:2679
35168 #, no-wrap
35169 msgid ""
35170 " SKIP_TEST_<CMD>_<NUM>=1\n"
35171 "\n"
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:2681
35176 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
35177 msgstr ""
35178
35179 #. type: textblock
35180 #: ../src/guestfs.pod:2683
35181 msgid "or:"
35182 msgstr ""
35183
35184 #. type: verbatim
35185 #: ../src/guestfs.pod:2685
35186 #, no-wrap
35187 msgid ""
35188 " SKIP_TEST_<CMD>=1\n"
35189 "\n"
35190 msgstr ""
35191
35192 #. type: textblock
35193 #: ../src/guestfs.pod:2687
35194 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
35195 msgstr ""
35196
35197 #. type: textblock
35198 #: ../src/guestfs.pod:2689
35199 msgid "Packagers can run only certain tests by setting for example:"
35200 msgstr ""
35201
35202 #. type: verbatim
35203 #: ../src/guestfs.pod:2691
35204 #, no-wrap
35205 msgid ""
35206 " TEST_ONLY=\"vfs_type zerofree\"\n"
35207 "\n"
35208 msgstr ""
35209
35210 #. type: textblock
35211 #: ../src/guestfs.pod:2693
35212 msgid ""
35213 "See C<capitests/tests.c> for more details of how these environment variables "
35214 "work."
35215 msgstr ""
35216
35217 #. type: =head2
35218 #: ../src/guestfs.pod:2696
35219 msgid "DEBUGGING NEW API ACTIONS"
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:2698
35224 msgid "Test new actions work before submitting them."
35225 msgstr ""
35226
35227 #. type: textblock
35228 #: ../src/guestfs.pod:2700
35229 msgid "You can use guestfish to try out new commands."
35230 msgstr ""
35231
35232 #. type: textblock
35233 #: ../src/guestfs.pod:2702
35234 msgid ""
35235 "Debugging the daemon is a problem because it runs inside a minimal "
35236 "environment.  However you can fprintf messages in the daemon to stderr, and "
35237 "they will show up if you use C<guestfish -v>."
35238 msgstr ""
35239
35240 #. type: =head2
35241 #: ../src/guestfs.pod:2706
35242 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
35243 msgstr ""
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:2708
35247 msgid ""
35248 "Our C source code generally adheres to some basic code-formatting "
35249 "conventions.  The existing code base is not totally consistent on this "
35250 "front, but we do prefer that contributed code be formatted similarly.  In "
35251 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
35252 "indentation level, and other than that, follow the K&R style."
35253 msgstr ""
35254
35255 #. type: textblock
35256 #: ../src/guestfs.pod:2714
35257 msgid ""
35258 "If you use Emacs, add the following to one of one of your start-up files "
35259 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
35260 msgstr ""
35261
35262 #. type: verbatim
35263 #: ../src/guestfs.pod:2717
35264 #, no-wrap
35265 msgid ""
35266 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
35267 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
35268 " (add-hook 'find-file-hook\n"
35269 "     '(lambda () (if (and buffer-file-name\n"
35270 "                          (string-match \"/libguestfs\\\\>\"\n"
35271 "                              (buffer-file-name))\n"
35272 "                          (not (string-equal mode-name \"Change Log\"))\n"
35273 "                          (not (string-equal mode-name \"Makefile\")))\n"
35274 "                     (setq indent-tabs-mode nil))))\n"
35275 " \n"
35276 msgstr ""
35277
35278 #. type: verbatim
35279 #: ../src/guestfs.pod:2727
35280 #, no-wrap
35281 msgid ""
35282 " ;;; When editing C sources in libguestfs, use this style.\n"
35283 " (defun libguestfs-c-mode ()\n"
35284 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
35285 "   (interactive)\n"
35286 "   (c-set-style \"K&R\")\n"
35287 "   (setq c-indent-level 2)\n"
35288 "   (setq c-basic-offset 2))\n"
35289 " (add-hook 'c-mode-hook\n"
35290 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
35291 "                               (buffer-file-name))\n"
35292 "                           (libguestfs-c-mode))))\n"
35293 "\n"
35294 msgstr ""
35295
35296 #. type: textblock
35297 #: ../src/guestfs.pod:2739
35298 msgid "Enable warnings when compiling (and fix any problems this finds):"
35299 msgstr ""
35300
35301 #. type: verbatim
35302 #: ../src/guestfs.pod:2742
35303 #, no-wrap
35304 msgid ""
35305 " ./configure --enable-gcc-warnings\n"
35306 "\n"
35307 msgstr ""
35308
35309 #. type: textblock
35310 #: ../src/guestfs.pod:2744
35311 msgid "Useful targets are:"
35312 msgstr ""
35313
35314 #. type: verbatim
35315 #: ../src/guestfs.pod:2746
35316 #, no-wrap
35317 msgid ""
35318 " make syntax-check  # checks the syntax of the C code\n"
35319 " make check         # runs the test suite\n"
35320 "\n"
35321 msgstr ""
35322
35323 #. type: =head2
35324 #: ../src/guestfs.pod:2749
35325 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:2751
35330 msgid ""
35331 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
35332 "which are used to do shell quoting."
35333 msgstr ""
35334
35335 #. type: =item
35336 #: ../src/guestfs.pod:2756
35337 msgid "%Q"
35338 msgstr ""
35339
35340 #. type: textblock
35341 #: ../src/guestfs.pod:2758
35342 msgid ""
35343 "Simple shell quoted string.  Any spaces or other shell characters are "
35344 "escaped for you."
35345 msgstr ""
35346
35347 #. type: =item
35348 #: ../src/guestfs.pod:2761
35349 msgid "%R"
35350 msgstr ""
35351
35352 #. type: textblock
35353 #: ../src/guestfs.pod:2763
35354 msgid ""
35355 "Same as C<%Q> except the string is treated as a path which is prefixed by "
35356 "the sysroot."
35357 msgstr ""
35358
35359 #. type: verbatim
35360 #: ../src/guestfs.pod:2770
35361 #, no-wrap
35362 msgid ""
35363 " asprintf (&cmd, \"cat %R\", path);\n"
35364 "\n"
35365 msgstr ""
35366
35367 #. type: textblock
35368 #: ../src/guestfs.pod:2772
35369 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
35370 msgstr ""
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:2774
35374 msgid ""
35375 "I<Note:> Do I<not> use these when you are passing parameters to the "
35376 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
35377 "because they are not passed via the shell (instead, straight to exec).  You "
35378 "probably want to use the C<sysroot_path()> function however."
35379 msgstr ""
35380
35381 #. type: =head2
35382 #: ../src/guestfs.pod:2780
35383 msgid "SUBMITTING YOUR NEW API ACTIONS"
35384 msgstr ""
35385
35386 #. type: textblock
35387 #: ../src/guestfs.pod:2782
35388 msgid ""
35389 "Submit patches to the mailing list: "
35390 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
35391 "L<rjones@redhat.com>."
35392 msgstr ""
35393
35394 #. type: =head2
35395 #: ../src/guestfs.pod:2786
35396 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:2788
35401 msgid "We support i18n (gettext anyhow) in the library."
35402 msgstr ""
35403
35404 #. type: textblock
35405 #: ../src/guestfs.pod:2790
35406 msgid ""
35407 "However many messages come from the daemon, and we don't translate those at "
35408 "the moment.  One reason is that the appliance generally has all locale files "
35409 "removed from it, because they take up a lot of space.  So we'd have to readd "
35410 "some of those, as well as copying our PO files into the appliance."
35411 msgstr ""
35412
35413 #. type: textblock
35414 #: ../src/guestfs.pod:2796
35415 msgid ""
35416 "Debugging messages are never translated, since they are intended for the "
35417 "programmers."
35418 msgstr ""
35419
35420 #. type: =head2
35421 #: ../src/guestfs.pod:2799
35422 msgid "SOURCE CODE SUBDIRECTORIES"
35423 msgstr ""
35424
35425 #. type: textblock
35426 #: ../src/guestfs.pod:2805
35427 msgid "The libguestfs appliance, build scripts and so on."
35428 msgstr ""
35429
35430 #. type: =item
35431 #: ../src/guestfs.pod:2807
35432 msgid "C<capitests>"
35433 msgstr ""
35434
35435 #. type: textblock
35436 #: ../src/guestfs.pod:2809
35437 msgid "Automated tests of the C API."
35438 msgstr ""
35439
35440 #. type: =item
35441 #: ../src/guestfs.pod:2811
35442 msgid "C<cat>"
35443 msgstr ""
35444
35445 #. type: textblock
35446 #: ../src/guestfs.pod:2813
35447 msgid ""
35448 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35449 "documentation."
35450 msgstr ""
35451
35452 #. type: =item
35453 #: ../src/guestfs.pod:2816
35454 msgid "C<caution>"
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:2818
35459 msgid ""
35460 "Safety and liveness tests of components that libguestfs depends upon (not of "
35461 "libguestfs itself).  Mainly this is for qemu and the kernel."
35462 msgstr ""
35463
35464 #. type: =item
35465 #: ../src/guestfs.pod:2821
35466 msgid "C<contrib>"
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:2823
35471 msgid "Outside contributions, experimental parts."
35472 msgstr ""
35473
35474 #. type: =item
35475 #: ../src/guestfs.pod:2825
35476 msgid "C<daemon>"
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:2827
35481 msgid ""
35482 "The daemon that runs inside the libguestfs appliance and carries out "
35483 "actions."
35484 msgstr ""
35485
35486 #. type: =item
35487 #: ../src/guestfs.pod:2830
35488 msgid "C<df>"
35489 msgstr ""
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:2832
35493 msgid "L<virt-df(1)> command and documentation."
35494 msgstr ""
35495
35496 #. type: =item
35497 #: ../src/guestfs.pod:2834
35498 msgid "C<edit>"
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:2836
35503 msgid "L<virt-edit(1)> command and documentation."
35504 msgstr ""
35505
35506 #. type: =item
35507 #: ../src/guestfs.pod:2838
35508 msgid "C<examples>"
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:2840
35513 msgid "C API example code."
35514 msgstr ""
35515
35516 #. type: =item
35517 #: ../src/guestfs.pod:2842
35518 msgid "C<fish>"
35519 msgstr ""
35520
35521 #. type: textblock
35522 #: ../src/guestfs.pod:2844
35523 msgid ""
35524 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35525 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35526 "L<virt-tar-out(1)>."
35527 msgstr ""
35528
35529 #. type: =item
35530 #: ../src/guestfs.pod:2848
35531 msgid "C<fuse>"
35532 msgstr ""
35533
35534 #. type: textblock
35535 #: ../src/guestfs.pod:2850
35536 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35537 msgstr ""
35538
35539 #. type: =item
35540 #: ../src/guestfs.pod:2852
35541 msgid "C<generator>"
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:2854
35546 msgid ""
35547 "The crucially important generator, used to automatically generate large "
35548 "amounts of boilerplate C code for things like RPC and bindings."
35549 msgstr ""
35550
35551 #. type: =item
35552 #: ../src/guestfs.pod:2857
35553 msgid "C<images>"
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs.pod:2859
35558 msgid "Files used by the test suite."
35559 msgstr ""
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:2861
35563 msgid "Some \"phony\" guest images which we test against."
35564 msgstr ""
35565
35566 #. type: =item
35567 #: ../src/guestfs.pod:2863
35568 msgid "C<inspector>"
35569 msgstr ""
35570
35571 #. type: textblock
35572 #: ../src/guestfs.pod:2865
35573 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35574 msgstr ""
35575
35576 #. type: =item
35577 #: ../src/guestfs.pod:2867
35578 msgid "C<logo>"
35579 msgstr ""
35580
35581 #. type: textblock
35582 #: ../src/guestfs.pod:2869
35583 msgid "Logo used on the website.  The fish is called Arthur by the way."
35584 msgstr ""
35585
35586 #. type: =item
35587 #: ../src/guestfs.pod:2871
35588 msgid "C<m4>"
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:2873
35593 msgid "M4 macros used by autoconf."
35594 msgstr ""
35595
35596 #. type: =item
35597 #: ../src/guestfs.pod:2875
35598 msgid "C<po>"
35599 msgstr ""
35600
35601 #. type: textblock
35602 #: ../src/guestfs.pod:2877
35603 msgid "Translations of simple gettext strings."
35604 msgstr ""
35605
35606 #. type: =item
35607 #: ../src/guestfs.pod:2879
35608 msgid "C<po-docs>"
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:2881
35613 msgid ""
35614 "The build infrastructure and PO files for translations of manpages and POD "
35615 "files.  Eventually this will be combined with the C<po> directory, but that "
35616 "is rather complicated."
35617 msgstr ""
35618
35619 #. type: =item
35620 #: ../src/guestfs.pod:2885
35621 msgid "C<regressions>"
35622 msgstr ""
35623
35624 #. type: textblock
35625 #: ../src/guestfs.pod:2887
35626 msgid "Regression tests."
35627 msgstr ""
35628
35629 #. type: =item
35630 #: ../src/guestfs.pod:2889
35631 msgid "C<rescue>"
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:2891
35636 msgid "L<virt-rescue(1)> command and documentation."
35637 msgstr ""
35638
35639 #. type: =item
35640 #: ../src/guestfs.pod:2893
35641 msgid "C<resize>"
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs.pod:2895
35646 msgid "L<virt-resize(1)> command and documentation."
35647 msgstr ""
35648
35649 #. type: =item
35650 #: ../src/guestfs.pod:2897
35651 msgid "C<src>"
35652 msgstr ""
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:2899
35656 msgid "Source code to the C library."
35657 msgstr ""
35658
35659 #. type: =item
35660 #: ../src/guestfs.pod:2901
35661 msgid "C<tools>"
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:2903
35666 msgid "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
35667 msgstr ""
35668
35669 #. type: =item
35670 #: ../src/guestfs.pod:2905
35671 msgid "C<test-tool>"
35672 msgstr ""
35673
35674 #. type: textblock
35675 #: ../src/guestfs.pod:2907
35676 msgid ""
35677 "Test tool for end users to test if their qemu/kernel combination will work "
35678 "with libguestfs."
35679 msgstr ""
35680
35681 #. type: =item
35682 #: ../src/guestfs.pod:2910
35683 msgid "C<csharp>"
35684 msgstr ""
35685
35686 #. type: =item
35687 #: ../src/guestfs.pod:2912
35688 msgid "C<haskell>"
35689 msgstr ""
35690
35691 #. type: =item
35692 #: ../src/guestfs.pod:2914
35693 msgid "C<java>"
35694 msgstr ""
35695
35696 #. type: =item
35697 #: ../src/guestfs.pod:2916
35698 msgid "C<ocaml>"
35699 msgstr ""
35700
35701 #. type: =item
35702 #: ../src/guestfs.pod:2918
35703 msgid "C<php>"
35704 msgstr ""
35705
35706 #. type: =item
35707 #: ../src/guestfs.pod:2920
35708 msgid "C<perl>"
35709 msgstr ""
35710
35711 #. type: =item
35712 #: ../src/guestfs.pod:2922
35713 msgid "C<python>"
35714 msgstr ""
35715
35716 #. type: =item
35717 #: ../src/guestfs.pod:2924
35718 msgid "C<ruby>"
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:2926
35723 msgid "Language bindings."
35724 msgstr ""
35725
35726 #. type: =head2
35727 #: ../src/guestfs.pod:2930
35728 msgid "MAKING A STABLE RELEASE"
35729 msgstr ""
35730
35731 #. type: textblock
35732 #: ../src/guestfs.pod:2932
35733 msgid ""
35734 "When we make a stable release, there are several steps documented here.  See "
35735 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
35736 "branch policy."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:2940
35741 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
35742 msgstr ""
35743
35744 #. type: textblock
35745 #: ../src/guestfs.pod:2945
35746 msgid "Finalize RELEASE-NOTES."
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:2949
35751 msgid "Update ROADMAP."
35752 msgstr ""
35753
35754 #. type: textblock
35755 #: ../src/guestfs.pod:2953
35756 msgid "Run C<src/api-support/update-from-tarballs.sh>."
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../src/guestfs.pod:2957
35761 msgid "Push and pull from Transifex."
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:2959
35766 msgid "Run:"
35767 msgstr ""
35768
35769 #. type: verbatim
35770 #: ../src/guestfs.pod:2961
35771 #, no-wrap
35772 msgid ""
35773 " tx push -s\n"
35774 "\n"
35775 msgstr ""
35776
35777 #. type: textblock
35778 #: ../src/guestfs.pod:2963
35779 msgid "to push the latest POT files to Transifex.  Then run:"
35780 msgstr ""
35781
35782 #. type: verbatim
35783 #: ../src/guestfs.pod:2965
35784 #, no-wrap
35785 msgid ""
35786 " ./tx-pull.sh\n"
35787 "\n"
35788 msgstr ""
35789
35790 #. type: textblock
35791 #: ../src/guestfs.pod:2967
35792 msgid "which is a wrapper to pull the latest translated C<*.po> files."
35793 msgstr ""
35794
35795 #. type: textblock
35796 #: ../src/guestfs.pod:2971
35797 msgid ""
35798 "Create new stable and development directories under "
35799 "L<http://libguestfs.org/download>."
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../src/guestfs.pod:2976
35804 msgid "Create the branch in git:"
35805 msgstr ""
35806
35807 #. type: verbatim
35808 #: ../src/guestfs.pod:2978
35809 #, no-wrap
35810 msgid ""
35811 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
35812 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
35813 " git branch stable-1.XX\n"
35814 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
35815 "\n"
35816 msgstr ""
35817
35818 #. type: =head1
35819 #: ../src/guestfs.pod:2985
35820 msgid "LIMITS"
35821 msgstr ""
35822
35823 #. type: =head2
35824 #: ../src/guestfs.pod:2987
35825 msgid "PROTOCOL LIMITS"
35826 msgstr ""
35827
35828 #. type: textblock
35829 #: ../src/guestfs.pod:2989
35830 msgid ""
35831 "Internally libguestfs uses a message-based protocol to pass API calls and "
35832 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
35833 "plenty more detail about this).  The maximum message size used by the "
35834 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
35835 "aware of this limit.  The API calls which may be affected are individually "
35836 "documented, with a link back to this section of the documentation."
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:2997
35841 msgid ""
35842 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
35843 "a simple string.  Because this string is at some point internally encoded as "
35844 "a message, the maximum size that it can return is slightly under 4 MB.  If "
35845 "the requested file is larger than this then you will get an error."
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:3003
35850 msgid ""
35851 "In order to transfer large files into and out of the guest filesystem, you "
35852 "need to use particular calls that support this.  The sections L</UPLOADING> "
35853 "and L</DOWNLOADING> document how to do this."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../src/guestfs.pod:3007
35858 msgid ""
35859 "You might also consider mounting the disk image using our FUSE filesystem "
35860 "support (L<guestmount(1)>)."
35861 msgstr ""
35862
35863 #. type: =head2
35864 #: ../src/guestfs.pod:3010
35865 msgid "MAXIMUM NUMBER OF DISKS"
35866 msgstr ""
35867
35868 #. type: textblock
35869 #: ../src/guestfs.pod:3012
35870 msgid "When using virtio disks (the default) the current limit is B<25> disks."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../src/guestfs.pod:3015
35875 msgid ""
35876 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
35877 "slots.  However febootstrap only understands disks with names C</dev/vda> "
35878 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
35879 "purposes."
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:3020
35884 msgid ""
35885 "We are working to substantially raise this limit in future versions but it "
35886 "requires complex changes to qemu."
35887 msgstr ""
35888
35889 #. type: textblock
35890 #: ../src/guestfs.pod:3023
35891 msgid ""
35892 "In future versions of libguestfs it should also be possible to \"hot plug\" "
35893 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
35894 "requires changes to qemu."
35895 msgstr ""
35896
35897 #. type: =head2
35898 #: ../src/guestfs.pod:3027
35899 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
35900 msgstr ""
35901
35902 #. type: textblock
35903 #: ../src/guestfs.pod:3029
35904 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
35905 msgstr ""
35906
35907 #. type: textblock
35908 #: ../src/guestfs.pod:3031
35909 msgid ""
35910 "This is because it reserves 4 bits for the minor device number (thus "
35911 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
35912 msgstr ""
35913
35914 #. type: textblock
35915 #: ../src/guestfs.pod:3034
35916 msgid ""
35917 "If you attach a disk with more than 15 partitions, the extra partitions are "
35918 "ignored by libguestfs."
35919 msgstr ""
35920
35921 #. type: =head2
35922 #: ../src/guestfs.pod:3037
35923 msgid "MAXIMUM SIZE OF A DISK"
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:3039
35928 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
35929 msgstr ""
35930
35931 #. type: textblock
35932 #: ../src/guestfs.pod:3041
35933 msgid ""
35934 "We have tested block devices up to 1 exabyte (2**60 or "
35935 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
35936 "filesystem."
35937 msgstr ""
35938
35939 #. type: textblock
35940 #: ../src/guestfs.pod:3045
35941 msgid ""
35942 "Although libguestfs probably does not impose any limit, the underlying host "
35943 "storage will.  If you store disk images on a host ext4 filesystem, then the "
35944 "maximum size will be limited by the maximum ext4 file size (currently 16 "
35945 "TB).  If you store disk images as host logical volumes then you are limited "
35946 "by the maximum size of an LV."
35947 msgstr ""
35948
35949 #. type: textblock
35950 #: ../src/guestfs.pod:3051
35951 msgid ""
35952 "For the hugest disk image files, we recommend using XFS on the host for "
35953 "storage."
35954 msgstr ""
35955
35956 #. type: =head2
35957 #: ../src/guestfs.pod:3054
35958 msgid "MAXIMUM SIZE OF A PARTITION"
35959 msgstr ""
35960
35961 #. type: textblock
35962 #: ../src/guestfs.pod:3056
35963 msgid ""
35964 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
35965 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
35966 "address a partition located beyond 2 TB on the disk."
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:3060
35971 msgid ""
35972 "It is recommended that you use GPT partitions on disks which are larger than "
35973 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
35974 "which are theoretically larger than the largest disk we could support."
35975 msgstr ""
35976
35977 #. type: =head2
35978 #: ../src/guestfs.pod:3065
35979 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:3067
35984 msgid ""
35985 "This depends on the filesystem type.  libguestfs itself does not impose any "
35986 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
35987 "what these limits are."
35988 msgstr ""
35989
35990 #. type: =head2
35991 #: ../src/guestfs.pod:3071
35992 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../src/guestfs.pod:3073
35997 msgid ""
35998 "The API functions L</guestfs_upload>, L</guestfs_download>, "
35999 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
36000 "uploads and downloads."
36001 msgstr ""
36002
36003 #. type: =head2
36004 #: ../src/guestfs.pod:3077
36005 msgid "INSPECTION LIMITS"
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../src/guestfs.pod:3079
36010 msgid ""
36011 "The inspection code has several arbitrary limits on things like the size of "
36012 "Windows Registry hive it will read, and the length of product name.  These "
36013 "are intended to stop a malicious guest from consuming arbitrary amounts of "
36014 "memory and disk space on the host, and should not be reached in practice.  "
36015 "See the source code for more information."
36016 msgstr ""
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:3105
36020 msgid ""
36021 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
36022 "effect as calling C<guestfs_set_verbose (g, 1)>."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:3117
36027 msgid ""
36028 "Set the path that libguestfs uses to search for a supermin appliance.  See "
36029 "the discussion of paths in section L</PATH> above."
36030 msgstr ""
36031
36032 #. type: textblock
36033 #: ../src/guestfs.pod:3126
36034 msgid "See also L</QEMU WRAPPERS> above."
36035 msgstr ""
36036
36037 #. type: textblock
36038 #: ../src/guestfs.pod:3130
36039 msgid ""
36040 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
36041 "effect as calling C<guestfs_set_trace (g, 1)>."
36042 msgstr ""
36043
36044 #. type: textblock
36045 #: ../src/guestfs.pod:3148
36046 msgid ""
36047 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
36048 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
36049 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
36050 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
36051 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
36052 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
36053 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
36054 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
36055 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../src/guestfs.pod:3179
36060 msgid ""
36061 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
36062 "L<lvm(8)>, L<disktype(1)>."
36063 msgstr ""
36064
36065 #. type: =head1
36066 #: ../src/guestfs.pod:3186 ../tools/virt-make-fs.pl:571 ../tools/virt-win-reg.pl:761
36067 msgid "BUGS"
36068 msgstr ""
36069
36070 #. type: textblock
36071 #: ../src/guestfs.pod:3188
36072 msgid "To get a list of bugs against libguestfs use this link:"
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs.pod:3190
36077 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:3192
36082 msgid "To report a new bug against libguestfs use this link:"
36083 msgstr ""
36084
36085 #. type: textblock
36086 #: ../src/guestfs.pod:3194
36087 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
36088 msgstr ""
36089
36090 #. type: textblock
36091 #: ../src/guestfs.pod:3196
36092 msgid "When reporting a bug, please check:"
36093 msgstr ""
36094
36095 #. type: textblock
36096 #: ../src/guestfs.pod:3202
36097 msgid "That the bug hasn't been reported already."
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs.pod:3206
36102 msgid "That you are testing a recent version."
36103 msgstr ""
36104
36105 #. type: textblock
36106 #: ../src/guestfs.pod:3210
36107 msgid "Describe the bug accurately, and give a way to reproduce it."
36108 msgstr ""
36109
36110 #. type: textblock
36111 #: ../src/guestfs.pod:3214
36112 msgid ""
36113 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
36114 "bug report."
36115 msgstr ""
36116
36117 #. type: textblock
36118 #: ../test-tool/libguestfs-test-tool.pod:5
36119 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
36120 msgstr ""
36121
36122 #. type: verbatim
36123 #: ../test-tool/libguestfs-test-tool.pod:9
36124 #, no-wrap
36125 msgid ""
36126 " libguestfs-test-tool [--options]\n"
36127 "\n"
36128 msgstr ""
36129
36130 #. type: textblock
36131 #: ../test-tool/libguestfs-test-tool.pod:13
36132 msgid ""
36133 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
36134 "to check basic libguestfs functionality is working.  This is needed because "
36135 "libguestfs occasionally breaks for reasons beyond our control: usually "
36136 "because of changes in the underlying qemu or kernel packages, or the host "
36137 "environment."
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../test-tool/libguestfs-test-tool.pod:19
36142 msgid "If you suspect a problem in libguestfs, then just run:"
36143 msgstr ""
36144
36145 #. type: verbatim
36146 #: ../test-tool/libguestfs-test-tool.pod:21
36147 #, no-wrap
36148 msgid ""
36149 " libguestfs-test-tool\n"
36150 "\n"
36151 msgstr ""
36152
36153 #. type: textblock
36154 #: ../test-tool/libguestfs-test-tool.pod:23
36155 msgid "It will print lots of diagnostic messages."
36156 msgstr ""
36157
36158 #. type: textblock
36159 #: ../test-tool/libguestfs-test-tool.pod:25
36160 msgid "If it runs to completion successfully, you will see this near the end:"
36161 msgstr ""
36162
36163 #. type: verbatim
36164 #: ../test-tool/libguestfs-test-tool.pod:27
36165 #, no-wrap
36166 msgid ""
36167 " ===== TEST FINISHED OK =====\n"
36168 "\n"
36169 msgstr ""
36170
36171 #. type: textblock
36172 #: ../test-tool/libguestfs-test-tool.pod:29
36173 msgid "and the test tool will exit with code 0."
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../test-tool/libguestfs-test-tool.pod:31
36178 msgid ""
36179 "If it fails (and/or exits with non-zero error code), please paste the "
36180 "I<complete, unedited> output of the test tool into a bug report.  More "
36181 "information about reporting bugs can be found on the "
36182 "L<http://libguestfs.org/> website."
36183 msgstr ""
36184
36185 #. type: textblock
36186 #: ../test-tool/libguestfs-test-tool.pod:42
36187 msgid "Display short usage information and exit."
36188 msgstr ""
36189
36190 #. type: =item
36191 #: ../test-tool/libguestfs-test-tool.pod:44
36192 msgid "B<--qemu qemu_binary>"
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../test-tool/libguestfs-test-tool.pod:46
36197 msgid ""
36198 "If you have downloaded another qemu binary, point this option at the full "
36199 "path of the binary to try it."
36200 msgstr ""
36201
36202 #. type: =item
36203 #: ../test-tool/libguestfs-test-tool.pod:49
36204 msgid "B<--qemudir qemu_source_dir>"
36205 msgstr ""
36206
36207 #. type: textblock
36208 #: ../test-tool/libguestfs-test-tool.pod:51
36209 msgid ""
36210 "If you have compiled qemu from source, point this option at the source "
36211 "directory to try it."
36212 msgstr ""
36213
36214 #. type: =item
36215 #: ../test-tool/libguestfs-test-tool.pod:54
36216 msgid "B<-t N>"
36217 msgstr ""
36218
36219 #. type: =item
36220 #: ../test-tool/libguestfs-test-tool.pod:56
36221 msgid "B<--timeout N>"
36222 msgstr ""
36223
36224 #. type: textblock
36225 #: ../test-tool/libguestfs-test-tool.pod:58
36226 msgid ""
36227 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
36228 "minutes) which does not usually need to be adjusted."
36229 msgstr ""
36230
36231 #. type: =head1
36232 #: ../test-tool/libguestfs-test-tool.pod:63
36233 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../test-tool/libguestfs-test-tool.pod:65
36238 msgid ""
36239 "If you have compiled another version of qemu from source and would like to "
36240 "try that, then you can use the I<--qemudir> option to point to the qemu "
36241 "source directory."
36242 msgstr ""
36243
36244 #. type: textblock
36245 #: ../test-tool/libguestfs-test-tool.pod:69
36246 msgid ""
36247 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
36248 "option to point to the binary."
36249 msgstr ""
36250
36251 #. type: textblock
36252 #: ../test-tool/libguestfs-test-tool.pod:72
36253 msgid ""
36254 "Note when using these options, you can ignore the business of qemu wrapper "
36255 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
36256 "wrapper script for you if one is needed."
36257 msgstr ""
36258
36259 #. type: =head1
36260 #: ../test-tool/libguestfs-test-tool.pod:76
36261 msgid "TRYING OUT A DIFFERENT KERNEL"
36262 msgstr ""
36263
36264 #. type: textblock
36265 #: ../test-tool/libguestfs-test-tool.pod:78
36266 msgid ""
36267 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
36268 "libguestfs tries.  You do this by setting the environment variables "
36269 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
36270 msgstr ""
36271
36272 #. type: textblock
36273 #: ../test-tool/libguestfs-test-tool.pod:82
36274 msgid ""
36275 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
36276 "information."
36277 msgstr ""
36278
36279 #. type: =head1
36280 #: ../test-tool/libguestfs-test-tool.pod:85
36281 msgid "SELF-DIAGNOSIS"
36282 msgstr ""
36283
36284 #. type: textblock
36285 #: ../test-tool/libguestfs-test-tool.pod:87
36286 msgid ""
36287 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
36288 "produced by libguestfs-test-tool and/or possible errors."
36289 msgstr ""
36290
36291 #. type: textblock
36292 #: ../test-tool/libguestfs-test-tool.pod:92
36293 msgid ""
36294 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
36295 "I<1> if there was an error."
36296 msgstr ""
36297
36298 #. type: textblock
36299 #: ../test-tool/libguestfs-test-tool.pod:97
36300 msgid ""
36301 "For the full list of environment variables which may affect libguestfs, "
36302 "please see the L<guestfs(3)> manual page."
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../test-tool/libguestfs-test-tool.pod:102
36307 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
36308 msgstr ""
36309
36310 #. type: textblock
36311 #: ../tools/virt-list-filesystems.pl:32
36312 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
36313 msgstr ""
36314
36315 #. type: verbatim
36316 #: ../tools/virt-list-filesystems.pl:36
36317 #, no-wrap
36318 msgid ""
36319 " virt-list-filesystems [--options] domname\n"
36320 "\n"
36321 msgstr ""
36322
36323 #. type: verbatim
36324 #: ../tools/virt-list-filesystems.pl:38
36325 #, no-wrap
36326 msgid ""
36327 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
36328 "\n"
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
36333 msgid ""
36334 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
36335 "replacement."
36336 msgstr ""
36337
36338 #. type: textblock
36339 #: ../tools/virt-list-filesystems.pl:45
36340 msgid ""
36341 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
36342 "are contained in a virtual machine or disk image."
36343 msgstr ""
36344
36345 #. type: textblock
36346 #: ../tools/virt-list-filesystems.pl:49
36347 msgid ""
36348 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
36349 "functionality.  For more complex cases you should look at the "
36350 "L<guestfish(1)> tool."
36351 msgstr ""
36352
36353 #. type: textblock
36354 #: ../tools/virt-list-filesystems.pl:112
36355 msgid ""
36356 "With this option, C<virt-list-filesystems> displays the type of each "
36357 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
36358 msgstr ""
36359
36360 #. type: =item
36361 #: ../tools/virt-list-filesystems.pl:119
36362 msgid "B<-a>"
36363 msgstr ""
36364
36365 #. type: textblock
36366 #: ../tools/virt-list-filesystems.pl:123
36367 msgid ""
36368 "Normally we only show mountable filesystems.  If this option is given then "
36369 "swap devices are shown too."
36370 msgstr ""
36371
36372 #. type: textblock
36373 #: ../tools/virt-list-filesystems.pl:197
36374 msgid ""
36375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
36376 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
36377 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
36382 msgid "Copyright (C) 2009 Red Hat Inc."
36383 msgstr ""
36384
36385 #. type: textblock
36386 #: ../tools/virt-list-partitions.pl:32
36387 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
36388 msgstr ""
36389
36390 #. type: verbatim
36391 #: ../tools/virt-list-partitions.pl:36
36392 #, no-wrap
36393 msgid ""
36394 " virt-list-partitions [--options] domname\n"
36395 "\n"
36396 msgstr ""
36397
36398 #. type: verbatim
36399 #: ../tools/virt-list-partitions.pl:38
36400 #, no-wrap
36401 msgid ""
36402 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
36403 "\n"
36404 msgstr ""
36405
36406 #. type: textblock
36407 #: ../tools/virt-list-partitions.pl:45
36408 msgid ""
36409 "C<virt-list-partitions> is a command line tool to list the partitions that "
36410 "are contained in a virtual machine or disk image.  It is mainly useful as a "
36411 "first step to using L<virt-resize(1)>."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../tools/virt-list-partitions.pl:50
36416 msgid ""
36417 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
36418 "functionality.  For more complex cases you should look at the "
36419 "L<guestfish(1)> tool."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../tools/virt-list-partitions.pl:113
36424 msgid "Show sizes in human-readable form (eg. \"1G\")."
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../tools/virt-list-partitions.pl:123
36429 msgid ""
36430 "With this option, C<virt-list-partitions> displays the type and size of each "
36431 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36432 msgstr ""
36433
36434 #. type: =item
36435 #: ../tools/virt-list-partitions.pl:130
36436 msgid "B<-t>"
36437 msgstr ""
36438
36439 #. type: =item
36440 #: ../tools/virt-list-partitions.pl:132
36441 msgid "B<--total>"
36442 msgstr ""
36443
36444 #. type: textblock
36445 #: ../tools/virt-list-partitions.pl:134
36446 msgid "Display the total size of each block device (as a separate row or rows)."
36447 msgstr ""
36448
36449 #. type: textblock
36450 #: ../tools/virt-list-partitions.pl:267
36451 msgid ""
36452 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
36453 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
36454 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36455 msgstr ""
36456
36457 #. type: textblock
36458 #: ../tools/virt-list-partitions.pl:283
36459 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36460 msgstr ""
36461
36462 #. type: textblock
36463 #: ../tools/virt-make-fs.pl:37
36464 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36465 msgstr ""
36466
36467 #. type: verbatim
36468 #: ../tools/virt-make-fs.pl:41
36469 #, no-wrap
36470 msgid ""
36471 " virt-make-fs [--options] input.tar output.img\n"
36472 "\n"
36473 msgstr ""
36474
36475 #. type: verbatim
36476 #: ../tools/virt-make-fs.pl:43
36477 #, no-wrap
36478 msgid ""
36479 " virt-make-fs [--options] input.tar.gz output.img\n"
36480 "\n"
36481 msgstr ""
36482
36483 #. type: verbatim
36484 #: ../tools/virt-make-fs.pl:45
36485 #, no-wrap
36486 msgid ""
36487 " virt-make-fs [--options] directory output.img\n"
36488 "\n"
36489 msgstr ""
36490
36491 #. type: textblock
36492 #: ../tools/virt-make-fs.pl:49
36493 msgid ""
36494 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36495 "archive or some files in a directory.  It is similar to tools like "
36496 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
36497 "it can create common filesystem types like ext2/3 or NTFS, which can be "
36498 "useful if you want to attach these filesystems to existing virtual machines "
36499 "(eg. to import large amounts of read-only data to a VM)."
36500 msgstr ""
36501
36502 #. type: textblock
36503 #: ../tools/virt-make-fs.pl:57
36504 msgid "Basic usage is:"
36505 msgstr ""
36506
36507 #. type: verbatim
36508 #: ../tools/virt-make-fs.pl:59
36509 #, no-wrap
36510 msgid ""
36511 " virt-make-fs input output.img\n"
36512 "\n"
36513 msgstr ""
36514
36515 #. type: textblock
36516 #: ../tools/virt-make-fs.pl:61
36517 msgid ""
36518 "where C<input> is either a directory containing files that you want to add, "
36519 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36520 "C<output.img> is a disk image.  The input type is detected automatically.  "
36521 "The output disk image defaults to a raw ext2 sparse image unless you specify "
36522 "extra flags (see L</OPTIONS> below)."
36523 msgstr ""
36524
36525 #. type: =head2
36526 #: ../tools/virt-make-fs.pl:67
36527 msgid "FILESYSTEM TYPE"
36528 msgstr ""
36529
36530 #. type: textblock
36531 #: ../tools/virt-make-fs.pl:69
36532 msgid ""
36533 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36534 "libguestfs supports can be used (but I<not> read-only formats like "
36535 "ISO9660).  Here are some of the more common choices:"
36536 msgstr ""
36537
36538 #. type: =item
36539 #: ../tools/virt-make-fs.pl:75
36540 msgid "I<ext3>"
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../tools/virt-make-fs.pl:77
36545 msgid ""
36546 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36547 "you are not going to use the filesystem in a way that requires the journal, "
36548 "then this is just wasted overhead."
36549 msgstr ""
36550
36551 #. type: =item
36552 #: ../tools/virt-make-fs.pl:81
36553 msgid "I<ntfs> or I<vfat>"
36554 msgstr ""
36555
36556 #. type: textblock
36557 #: ../tools/virt-make-fs.pl:83
36558 msgid "Useful if exporting data to a Windows guest."
36559 msgstr ""
36560
36561 #. type: textblock
36562 #: ../tools/virt-make-fs.pl:85
36563 msgid ""
36564 "I<Note for vfat>: The tar archive or local directory must only contain files "
36565 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36566 "program running within libguestfs is unable to change the ownership of "
36567 "non-root files, since vfat itself does not support this."
36568 msgstr ""
36569
36570 #. type: =item
36571 #: ../tools/virt-make-fs.pl:90
36572 msgid "I<minix>"
36573 msgstr ""
36574
36575 #. type: textblock
36576 #: ../tools/virt-make-fs.pl:92
36577 msgid ""
36578 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36579 "total filesystem size."
36580 msgstr ""
36581
36582 #. type: =head3
36583 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116 ../tools/virt-make-fs.pl:149
36584 msgid "EXAMPLE"
36585 msgstr ""
36586
36587 #. type: verbatim
36588 #: ../tools/virt-make-fs.pl:99
36589 #, no-wrap
36590 msgid ""
36591 " virt-make-fs --type=minix input minixfs.img\n"
36592 "\n"
36593 msgstr ""
36594
36595 #. type: =head2
36596 #: ../tools/virt-make-fs.pl:101
36597 msgid "TO PARTITION OR NOT TO PARTITION"
36598 msgstr ""
36599
36600 #. type: textblock
36601 #: ../tools/virt-make-fs.pl:103
36602 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36603 msgstr ""
36604
36605 #. type: textblock
36606 #: ../tools/virt-make-fs.pl:105
36607 msgid ""
36608 "Adding a partition can make the disk image more compatible with certain "
36609 "virtualized operating systems which don't expect to see a filesystem "
36610 "directly located on a block device (Linux doesn't care and will happily "
36611 "handle both types)."
36612 msgstr ""
36613
36614 #. type: textblock
36615 #: ../tools/virt-make-fs.pl:110
36616 msgid ""
36617 "On the other hand, if you have a partition table then the output image is no "
36618 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36619 "directly on a partitioned disk image.  (However libguestfs tools such as "
36620 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../tools/virt-make-fs.pl:118
36625 msgid "Add an MBR partition:"
36626 msgstr ""
36627
36628 #. type: verbatim
36629 #: ../tools/virt-make-fs.pl:120
36630 #, no-wrap
36631 msgid ""
36632 " virt-make-fs --partition -- input disk.img\n"
36633 "\n"
36634 msgstr ""
36635
36636 #. type: textblock
36637 #: ../tools/virt-make-fs.pl:122
36638 msgid ""
36639 "If the output disk image could be terabyte-sized or larger, it's better to "
36640 "use an EFI/GPT-compatible partition table:"
36641 msgstr ""
36642
36643 #. type: verbatim
36644 #: ../tools/virt-make-fs.pl:125
36645 #, no-wrap
36646 msgid ""
36647 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36648 "\n"
36649 msgstr ""
36650
36651 #. type: =head2
36652 #: ../tools/virt-make-fs.pl:127
36653 msgid "EXTRA SPACE"
36654 msgstr ""
36655
36656 #. type: textblock
36657 #: ../tools/virt-make-fs.pl:129
36658 msgid ""
36659 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36660 "the files that it contains, but might have extra space.  Depending on how "
36661 "you are going to use the output, you might think this extra space is wasted "
36662 "and want to minimize it, or you might want to leave space so that more files "
36663 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36664 "but you can use the I<--size> flag to leave space in the filesystem if you "
36665 "want it."
36666 msgstr ""
36667
36668 #. type: textblock
36669 #: ../tools/virt-make-fs.pl:137
36670 msgid ""
36671 "An alternative way to leave extra space but not make the output image any "
36672 "bigger is to use an alternative disk image format (instead of the default "
36673 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36674 "image format (check your hypervisor supports this before using it).  This "
36675 "allows you to choose a large I<--size> but the extra space won't actually be "
36676 "allocated in the image until you try to store something in it."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../tools/virt-make-fs.pl:145
36681 msgid ""
36682 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36683 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36684 "to build another image from scratch."
36685 msgstr ""
36686
36687 #. type: verbatim
36688 #: ../tools/virt-make-fs.pl:151
36689 #, no-wrap
36690 msgid ""
36691 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36692 "\n"
36693 msgstr ""
36694
36695 #. type: textblock
36696 #: ../tools/virt-make-fs.pl:179
36697 msgid "Enable debugging information."
36698 msgstr ""
36699
36700 #. type: =item
36701 #: ../tools/virt-make-fs.pl:185
36702 msgid "B<--size=E<lt>NE<gt>>"
36703 msgstr ""
36704
36705 #. type: =item
36706 #: ../tools/virt-make-fs.pl:187
36707 msgid "B<--size=+E<lt>NE<gt>>"
36708 msgstr ""
36709
36710 #. type: =item
36711 #: ../tools/virt-make-fs.pl:189
36712 msgid "B<-s E<lt>NE<gt>>"
36713 msgstr ""
36714
36715 #. type: =item
36716 #: ../tools/virt-make-fs.pl:191
36717 msgid "B<-s +E<lt>NE<gt>>"
36718 msgstr ""
36719
36720 #. type: textblock
36721 #: ../tools/virt-make-fs.pl:193
36722 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
36723 msgstr ""
36724
36725 #. type: textblock
36726 #: ../tools/virt-make-fs.pl:196
36727 msgid ""
36728 "If this option is I<not> given, then the output image will be just large "
36729 "enough to contain all the files, with not much wasted space."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../tools/virt-make-fs.pl:199
36734 msgid ""
36735 "To choose a fixed size output disk, specify an absolute number followed by "
36736 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36737 "Petabytes or Exabytes.  This must be large enough to contain all the input "
36738 "files, else you will get an error."
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../tools/virt-make-fs.pl:204
36743 msgid ""
36744 "To leave extra space, specify C<+> (plus sign) and a number followed by "
36745 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36746 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
36747 "the input files, and (approximately) an extra 200 MB free space."
36748 msgstr ""
36749
36750 #. type: textblock
36751 #: ../tools/virt-make-fs.pl:210
36752 msgid ""
36753 "Note that virt-make-fs estimates free space, and therefore will not produce "
36754 "filesystems containing precisely the free space requested.  (It is much more "
36755 "expensive and time-consuming to produce a filesystem which has precisely the "
36756 "desired free space)."
36757 msgstr ""
36758
36759 #. type: =item
36760 #: ../tools/virt-make-fs.pl:219
36761 msgid "B<--format=E<lt>fmtE<gt>>"
36762 msgstr ""
36763
36764 #. type: =item
36765 #: ../tools/virt-make-fs.pl:221
36766 msgid "B<-F E<lt>fmtE<gt>>"
36767 msgstr ""
36768
36769 #. type: textblock
36770 #: ../tools/virt-make-fs.pl:223
36771 msgid "Choose the output disk image format."
36772 msgstr ""
36773
36774 #. type: textblock
36775 #: ../tools/virt-make-fs.pl:225
36776 msgid "The default is C<raw> (raw sparse disk image)."
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../tools/virt-make-fs.pl:227
36781 msgid ""
36782 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
36783 "that would really make sense here is C<qcow2>."
36784 msgstr ""
36785
36786 #. type: =item
36787 #: ../tools/virt-make-fs.pl:234
36788 msgid "B<--type=E<lt>fsE<gt>>"
36789 msgstr ""
36790
36791 #. type: =item
36792 #: ../tools/virt-make-fs.pl:236
36793 msgid "B<-t E<lt>fsE<gt>>"
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../tools/virt-make-fs.pl:238
36798 msgid "Choose the output filesystem type."
36799 msgstr ""
36800
36801 #. type: textblock
36802 #: ../tools/virt-make-fs.pl:240
36803 msgid "The default is C<ext2>."
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../tools/virt-make-fs.pl:242
36808 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
36809 msgstr ""
36810
36811 #. type: =item
36812 #: ../tools/virt-make-fs.pl:249
36813 msgid "B<--partition>"
36814 msgstr ""
36815
36816 #. type: =item
36817 #: ../tools/virt-make-fs.pl:251
36818 msgid "B<--partition=E<lt>parttypeE<gt>>"
36819 msgstr ""
36820
36821 #. type: textblock
36822 #: ../tools/virt-make-fs.pl:253
36823 msgid ""
36824 "If specified, this flag adds an MBR partition table to the output disk "
36825 "image."
36826 msgstr ""
36827
36828 #. type: textblock
36829 #: ../tools/virt-make-fs.pl:256
36830 msgid ""
36831 "You can change the partition table type, eg. I<--partition=gpt> for large "
36832 "disks."
36833 msgstr ""
36834
36835 #. type: textblock
36836 #: ../tools/virt-make-fs.pl:259
36837 msgid ""
36838 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
36839 "might consider the next parameter to be the partition type.  For example:"
36840 msgstr ""
36841
36842 #. type: verbatim
36843 #: ../tools/virt-make-fs.pl:263
36844 #, no-wrap
36845 msgid ""
36846 " virt-make-fs --partition input.tar output.img\n"
36847 "\n"
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../tools/virt-make-fs.pl:265
36852 msgid ""
36853 "would cause virt-make-fs to think you wanted to use a partition type of "
36854 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
36855 "dash) between options and the input and output arguments:"
36856 msgstr ""
36857
36858 #. type: verbatim
36859 #: ../tools/virt-make-fs.pl:269
36860 #, no-wrap
36861 msgid ""
36862 " virt-make-fs --partition -- input.tar output.img\n"
36863 "\n"
36864 msgstr ""
36865
36866 #. type: textblock
36867 #: ../tools/virt-make-fs.pl:271
36868 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../tools/virt-make-fs.pl:559
36873 msgid ""
36874 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
36875 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
36876 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:763
36881 msgid ""
36882 "When reporting bugs, please enable debugging and capture the I<complete> "
36883 "output:"
36884 msgstr ""
36885
36886 #. type: verbatim
36887 #: ../tools/virt-make-fs.pl:576
36888 #, no-wrap
36889 msgid ""
36890 " export LIBGUESTFS_DEBUG=1\n"
36891 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
36892 "\n"
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../tools/virt-make-fs.pl:579
36897 msgid ""
36898 "Attach /tmp/virt-make-fs.log to a new bug report at "
36899 "L<https://bugzilla.redhat.com/>"
36900 msgstr ""
36901
36902 #. type: textblock
36903 #: ../tools/virt-tar.pl:33
36904 msgid "virt-tar - Extract or upload files to a virtual machine"
36905 msgstr ""
36906
36907 #. type: verbatim
36908 #: ../tools/virt-tar.pl:37
36909 #, no-wrap
36910 msgid ""
36911 " virt-tar [--options] -x domname directory tarball\n"
36912 "\n"
36913 msgstr ""
36914
36915 #. type: verbatim
36916 #: ../tools/virt-tar.pl:39
36917 #, no-wrap
36918 msgid ""
36919 " virt-tar [--options] -u domname tarball directory\n"
36920 "\n"
36921 msgstr ""
36922
36923 #. type: verbatim
36924 #: ../tools/virt-tar.pl:41
36925 #, no-wrap
36926 msgid ""
36927 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
36928 "\n"
36929 msgstr ""
36930
36931 #. type: verbatim
36932 #: ../tools/virt-tar.pl:43
36933 #, no-wrap
36934 msgid ""
36935 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
36936 "\n"
36937 msgstr ""
36938
36939 #. type: =head2
36940 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
36941 msgid "NOTE"
36942 msgstr ""
36943
36944 #. type: textblock
36945 #: ../tools/virt-tar.pl:47
36946 msgid ""
36947 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36948 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
36949 msgstr ""
36950
36951 #. type: textblock
36952 #: ../tools/virt-tar.pl:52
36953 msgid "Download C</home> from the VM into a local tarball:"
36954 msgstr ""
36955
36956 #. type: verbatim
36957 #: ../tools/virt-tar.pl:54
36958 #, no-wrap
36959 msgid ""
36960 " virt-tar -x domname /home home.tar\n"
36961 "\n"
36962 msgstr ""
36963
36964 #. type: verbatim
36965 #: ../tools/virt-tar.pl:56
36966 #, no-wrap
36967 msgid ""
36968 " virt-tar -zx domname /home home.tar.gz\n"
36969 "\n"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../tools/virt-tar.pl:58
36974 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
36975 msgstr ""
36976
36977 #. type: verbatim
36978 #: ../tools/virt-tar.pl:60
36979 #, no-wrap
36980 msgid ""
36981 " virt-tar -u domname uploadstuff.tar /tmp\n"
36982 "\n"
36983 msgstr ""
36984
36985 #. type: verbatim
36986 #: ../tools/virt-tar.pl:62
36987 #, no-wrap
36988 msgid ""
36989 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
36990 "\n"
36991 msgstr ""
36992
36993 #. type: textblock
36994 #: ../tools/virt-tar.pl:66
36995 msgid ""
36996 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
36997 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
36998 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
36999 msgstr ""
37000
37001 #. type: textblock
37002 #: ../tools/virt-tar.pl:71
37003 msgid ""
37004 "You can use I<-x> (extract) on live virtual machines, but you might get "
37005 "inconsistent results or errors if there is filesystem activity inside the "
37006 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
37007 "work, but the only way to guarantee consistent results is if the virtual "
37008 "machine is shut down."
37009 msgstr ""
37010
37011 #. type: textblock
37012 #: ../tools/virt-tar.pl:79
37013 msgid ""
37014 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
37015 "parts of a guest filesystem.  There are many possibilities: making backups, "
37016 "uploading data files, snooping on guest activity, fixing or customizing "
37017 "guests, etc."
37018 msgstr ""
37019
37020 #. type: textblock
37021 #: ../tools/virt-tar.pl:84
37022 msgid ""
37023 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
37024 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
37025 "should look at the L<guestfish(1)> tool."
37026 msgstr ""
37027
37028 #. type: textblock
37029 #: ../tools/virt-tar.pl:88
37030 msgid ""
37031 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
37032 "its contents (recursively) from the virtual machine into a local tarball.  "
37033 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
37034 "virtual machine.  You cannot use these two options together."
37035 msgstr ""
37036
37037 #. type: textblock
37038 #: ../tools/virt-tar.pl:94
37039 msgid ""
37040 "In addition, you may need to use the I<-z> (gZip) option to enable "
37041 "compression.  When uploading, you have to specify I<-z> if the upload file "
37042 "is compressed because virt-tar won't detect this on its own."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../tools/virt-tar.pl:98
37047 msgid ""
37048 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
37049 "example it cannot do PKZip files or bzip2 compression.  If you want that "
37050 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
37051 "the L<libguestfs(3)> API)."
37052 msgstr ""
37053
37054 #. type: =item
37055 #: ../tools/virt-tar.pl:160
37056 msgid "B<--extract>"
37057 msgstr ""
37058
37059 #. type: =item
37060 #: ../tools/virt-tar.pl:162
37061 msgid "B<--download>"
37062 msgstr ""
37063
37064 #. type: =item
37065 #: ../tools/virt-tar.pl:164
37066 msgid "B<-u>"
37067 msgstr ""
37068
37069 #. type: =item
37070 #: ../tools/virt-tar.pl:166
37071 msgid "B<--upload>"
37072 msgstr ""
37073
37074 #. type: textblock
37075 #: ../tools/virt-tar.pl:168
37076 msgid ""
37077 "Use I<-x> to extract (download) a directory from a virtual machine to a "
37078 "local tarball."
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../tools/virt-tar.pl:171
37083 msgid ""
37084 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
37085 "Please read the L</WARNING> section above before using this option."
37086 msgstr ""
37087
37088 #. type: textblock
37089 #: ../tools/virt-tar.pl:175
37090 msgid "You must specify exactly one of these options."
37091 msgstr ""
37092
37093 #. type: =item
37094 #: ../tools/virt-tar.pl:181
37095 msgid "B<-z>"
37096 msgstr ""
37097
37098 #. type: =item
37099 #: ../tools/virt-tar.pl:183
37100 msgid "B<--gzip>"
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../tools/virt-tar.pl:185
37105 msgid "Specify that the input or output tarball is gzip-compressed."
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../tools/virt-tar.pl:298
37110 msgid ""
37111 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
37112 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37113 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
37114 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37115 msgstr ""
37116
37117 #. type: textblock
37118 #: ../tools/virt-win-reg.pl:37
37119 msgid ""
37120 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
37121 "guest"
37122 msgstr ""
37123
37124 #. type: verbatim
37125 #: ../tools/virt-win-reg.pl:41
37126 #, no-wrap
37127 msgid ""
37128 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
37129 "\n"
37130 msgstr ""
37131
37132 #. type: verbatim
37133 #: ../tools/virt-win-reg.pl:43
37134 #, no-wrap
37135 msgid ""
37136 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
37137 "\n"
37138 msgstr ""
37139
37140 #. type: verbatim
37141 #: ../tools/virt-win-reg.pl:45
37142 #, no-wrap
37143 msgid ""
37144 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
37145 "\n"
37146 msgstr ""
37147
37148 #. type: verbatim
37149 #: ../tools/virt-win-reg.pl:47
37150 #, no-wrap
37151 msgid ""
37152 " virt-win-reg --merge domname [input.reg ...]\n"
37153 "\n"
37154 msgstr ""
37155
37156 #. type: verbatim
37157 #: ../tools/virt-win-reg.pl:49
37158 #, no-wrap
37159 msgid ""
37160 " virt-win-reg [--options] disk.img ... # instead of domname\n"
37161 "\n"
37162 msgstr ""
37163
37164 #. type: textblock
37165 #: ../tools/virt-win-reg.pl:53
37166 msgid ""
37167 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
37168 "virtual machines.  If you do this, you I<will> get irreversible disk "
37169 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
37170 "but doesn't catch all cases."
37171 msgstr ""
37172
37173 #. type: textblock
37174 #: ../tools/virt-win-reg.pl:58
37175 msgid ""
37176 "Modifying the Windows Registry is an inherently risky operation.  The format "
37177 "is deliberately obscure and undocumented, and Registry changes can leave the "
37178 "system unbootable.  Therefore when using the I<--merge> option, make sure "
37179 "you have a reliable backup first."
37180 msgstr ""
37181
37182 #. type: textblock
37183 #: ../tools/virt-win-reg.pl:65
37184 msgid ""
37185 "This program can export and merge Windows Registry entries from a Windows "
37186 "guest."
37187 msgstr ""
37188
37189 #. type: textblock
37190 #: ../tools/virt-win-reg.pl:68
37191 msgid ""
37192 "The first parameter is the libvirt guest name or the raw disk image of a "
37193 "Windows guest."
37194 msgstr ""
37195
37196 #. type: textblock
37197 #: ../tools/virt-win-reg.pl:71
37198 msgid ""
37199 "If I<--merge> is I<not> specified, then the chosen registry key is "
37200 "displayed/exported (recursively).  For example:"
37201 msgstr ""
37202
37203 #. type: verbatim
37204 #: ../tools/virt-win-reg.pl:74
37205 #, no-wrap
37206 msgid ""
37207 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
37208 "\n"
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../tools/virt-win-reg.pl:76
37213 msgid "You can also display single values from within registry keys, for example:"
37214 msgstr ""
37215
37216 #. type: verbatim
37217 #: ../tools/virt-win-reg.pl:79
37218 #, no-wrap
37219 msgid ""
37220 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
37221 " $ virt-win-reg Windows7 $cvkey ProductName\n"
37222 " Windows 7 Enterprise\n"
37223 "\n"
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../tools/virt-win-reg.pl:83
37228 msgid ""
37229 "With I<--merge>, you can merge a textual regedit file into the Windows "
37230 "Registry:"
37231 msgstr ""
37232
37233 #. type: verbatim
37234 #: ../tools/virt-win-reg.pl:86
37235 #, no-wrap
37236 msgid ""
37237 " $ virt-win-reg --merge Windows7 changes.reg\n"
37238 "\n"
37239 msgstr ""
37240
37241 #. type: textblock
37242 #: ../tools/virt-win-reg.pl:90
37243 msgid ""
37244 "This program is only meant for simple access to the registry.  If you want "
37245 "to do complicated things with the registry, we suggest you download the "
37246 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
37247 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
37248 "L<hivexregedit(1)>."
37249 msgstr ""
37250
37251 #. type: =item
37252 #: ../tools/virt-win-reg.pl:159
37253 msgid "B<--merge>"
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../tools/virt-win-reg.pl:161
37258 msgid ""
37259 "In merge mode, this merges a textual regedit file into the Windows Registry "
37260 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
37261 "displays or exports Registry entries instead."
37262 msgstr ""
37263
37264 #. type: textblock
37265 #: ../tools/virt-win-reg.pl:165
37266 msgid ""
37267 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
37268 "result in disk corruption.  However exporting (without this flag)  is always "
37269 "safe."
37270 msgstr ""
37271
37272 #. type: =item
37273 #: ../tools/virt-win-reg.pl:173
37274 msgid "B<--encoding> UTF-16LE|ASCII"
37275 msgstr ""
37276
37277 #. type: textblock
37278 #: ../tools/virt-win-reg.pl:175
37279 msgid ""
37280 "When merging (only), you may need to specify the encoding for strings to be "
37281 "used in the hive file.  This is explained in detail in "
37282 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
37283 msgstr ""
37284
37285 #. type: textblock
37286 #: ../tools/virt-win-reg.pl:179
37287 msgid ""
37288 "The default is to use UTF-16LE, which should work with recent versions of "
37289 "Windows."
37290 msgstr ""
37291
37292 #. type: =item
37293 #: ../tools/virt-win-reg.pl:186
37294 msgid "B<--unsafe-printable-strings>"
37295 msgstr ""
37296
37297 #. type: textblock
37298 #: ../tools/virt-win-reg.pl:188
37299 msgid ""
37300 "When exporting (only), assume strings are UTF-16LE and print them as strings "
37301 "instead of hex sequences.  Remove the final zero codepoint from strings if "
37302 "present."
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../tools/virt-win-reg.pl:192
37307 msgid ""
37308 "This is unsafe and does not preserve the fidelity of strings in the original "
37309 "Registry for various reasons:"
37310 msgstr ""
37311
37312 #. type: textblock
37313 #: ../tools/virt-win-reg.pl:199
37314 msgid ""
37315 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
37316 "other encodings will be corrupted by this transformation."
37317 msgstr ""
37318
37319 #. type: textblock
37320 #: ../tools/virt-win-reg.pl:204
37321 msgid ""
37322 "Assumes that everything which has type 1 or 2 is really a string and that "
37323 "everything else is not a string, but the type field in real Registries is "
37324 "not reliable."
37325 msgstr ""
37326
37327 #. type: textblock
37328 #: ../tools/virt-win-reg.pl:210
37329 msgid ""
37330 "Loses information about whether a zero codepoint followed the string in the "
37331 "Registry or not."
37332 msgstr ""
37333
37334 #. type: textblock
37335 #: ../tools/virt-win-reg.pl:215
37336 msgid ""
37337 "This all happens because the Registry itself contains no information about "
37338 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
37339 msgstr ""
37340
37341 #. type: textblock
37342 #: ../tools/virt-win-reg.pl:219
37343 msgid ""
37344 "You should only use this option for quick hacking and debugging of the "
37345 "Registry contents, and I<never> use it if the output is going to be passed "
37346 "into another program or stored in another Registry."
37347 msgstr ""
37348
37349 #. type: =head1
37350 #: ../tools/virt-win-reg.pl:556
37351 msgid "SUPPORTED SYSTEMS"
37352 msgstr ""
37353
37354 #. type: textblock
37355 #: ../tools/virt-win-reg.pl:558
37356 msgid ""
37357 "The program currently supports Windows NT-derived guests starting with "
37358 "Windows XP through to at least Windows 7."
37359 msgstr ""
37360
37361 #. type: textblock
37362 #: ../tools/virt-win-reg.pl:561
37363 msgid "The following Registry keys are supported:"
37364 msgstr ""
37365
37366 #. type: =item
37367 #: ../tools/virt-win-reg.pl:565
37368 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
37369 msgstr ""
37370
37371 #. type: =item
37372 #: ../tools/virt-win-reg.pl:567
37373 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
37374 msgstr ""
37375
37376 #. type: =item
37377 #: ../tools/virt-win-reg.pl:569
37378 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
37379 msgstr ""
37380
37381 #. type: =item
37382 #: ../tools/virt-win-reg.pl:571
37383 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
37384 msgstr ""
37385
37386 #. type: =item
37387 #: ../tools/virt-win-reg.pl:573
37388 msgid "C<HKEY_USERS\\.DEFAULT>"
37389 msgstr ""
37390
37391 #. type: =item
37392 #: ../tools/virt-win-reg.pl:575
37393 msgid "C<HKEY_USERS\\I<SID>>"
37394 msgstr ""
37395
37396 #. type: textblock
37397 #: ../tools/virt-win-reg.pl:577
37398 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
37399 msgstr ""
37400
37401 #. type: =item
37402 #: ../tools/virt-win-reg.pl:579
37403 msgid "C<HKEY_USERS\\I<username>>"
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../tools/virt-win-reg.pl:581
37408 msgid "where I<username> is a local user name (this is a libguestfs extension)."
37409 msgstr ""
37410
37411 #. type: textblock
37412 #: ../tools/virt-win-reg.pl:585
37413 msgid ""
37414 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
37415 "C<HKEY_USERS>."
37416 msgstr ""
37417
37418 #. type: textblock
37419 #: ../tools/virt-win-reg.pl:588
37420 msgid ""
37421 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
37422 "supported (there is no \"current user\")."
37423 msgstr ""
37424
37425 #. type: =head1
37426 #: ../tools/virt-win-reg.pl:591
37427 msgid "ENCODING"
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../tools/virt-win-reg.pl:593
37432 msgid ""
37433 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37434 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
37435 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
37436 "with Windows-style line endings, you may need to reencode the whole file "
37437 "before or after processing."
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../tools/virt-win-reg.pl:599
37442 msgid ""
37443 "To reencode a file from Windows format to Linux (before processing it with "
37444 "the I<--merge> option), you would do something like this:"
37445 msgstr ""
37446
37447 #. type: verbatim
37448 #: ../tools/virt-win-reg.pl:602
37449 #, no-wrap
37450 msgid ""
37451 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37452 "\n"
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../tools/virt-win-reg.pl:604
37457 msgid ""
37458 "To go in the opposite direction, after exporting and before sending the file "
37459 "to a Windows user, do something like this:"
37460 msgstr ""
37461
37462 #. type: verbatim
37463 #: ../tools/virt-win-reg.pl:607
37464 #, no-wrap
37465 msgid ""
37466 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37467 "\n"
37468 msgstr ""
37469
37470 #. type: textblock
37471 #: ../tools/virt-win-reg.pl:609
37472 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../tools/virt-win-reg.pl:611
37477 msgid ""
37478 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37479 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
37480 "Windows-style (CRLF) line endings, like this:"
37481 msgstr ""
37482
37483 #. type: verbatim
37484 #: ../tools/virt-win-reg.pl:615
37485 #, no-wrap
37486 msgid ""
37487 " $ file software.reg\n"
37488 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37489 " with CRLF line terminators\n"
37490 "\n"
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../tools/virt-win-reg.pl:619
37495 msgid "This file would need conversion before you could I<--merge> it."
37496 msgstr ""
37497
37498 #. type: =head1
37499 #: ../tools/virt-win-reg.pl:621
37500 msgid "CurrentControlSet etc."
37501 msgstr ""
37502
37503 #. type: textblock
37504 #: ../tools/virt-win-reg.pl:623
37505 msgid ""
37506 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37507 "Registry at the level of the hive file, and therefore you cannot modify "
37508 "these."
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../tools/virt-win-reg.pl:627
37513 msgid ""
37514 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37515 "circumstances it might refer to another control set.  The way to find out is "
37516 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37517 msgstr ""
37518
37519 #. type: verbatim
37520 #: ../tools/virt-win-reg.pl:631
37521 #, no-wrap
37522 msgid ""
37523 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37524 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37525 " \"Current\"=dword:00000001\n"
37526 " \"Default\"=dword:00000001\n"
37527 " \"Failed\"=dword:00000000\n"
37528 " \"LastKnownGood\"=dword:00000002\n"
37529 "\n"
37530 msgstr ""
37531
37532 #. type: textblock
37533 #: ../tools/virt-win-reg.pl:638
37534 msgid "\"Current\" is the one which Windows will choose when it boots."
37535 msgstr ""
37536
37537 #. type: textblock
37538 #: ../tools/virt-win-reg.pl:640
37539 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
37540 msgstr ""
37541
37542 #. type: =head1
37543 #: ../tools/virt-win-reg.pl:643
37544 msgid "WINDOWS TIPS"
37545 msgstr ""
37546
37547 #. type: textblock
37548 #: ../tools/virt-win-reg.pl:645
37549 msgid ""
37550 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37551 "be shut off, else you will get disk corruption."
37552 msgstr ""
37553
37554 #. type: =head2
37555 #: ../tools/virt-win-reg.pl:648
37556 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../tools/virt-win-reg.pl:650
37561 msgid ""
37562 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37563 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37564 "is uploaded into C<C:\\>:"
37565 msgstr ""
37566
37567 #. type: verbatim
37568 #: ../tools/virt-win-reg.pl:654
37569 #, no-wrap
37570 msgid ""
37571 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37572 "\n"
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../tools/virt-win-reg.pl:656
37577 msgid "Prepare a regedit file containing the registry change:"
37578 msgstr ""
37579
37580 #. type: verbatim
37581 #: ../tools/virt-win-reg.pl:658
37582 #, no-wrap
37583 msgid ""
37584 " cat > test.reg <<'EOF'\n"
37585 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37586 " \"Test\"=\"c:\\\\test.bat\"\n"
37587 " EOF\n"
37588 "\n"
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../tools/virt-win-reg.pl:663
37593 msgid ""
37594 "In this example we use the key C<RunOnce> which means that the script will "
37595 "run precisely once when the first user logs in.  If you want it to run every "
37596 "time a user logs in, replace C<RunOnce> with C<Run>."
37597 msgstr ""
37598
37599 #. type: textblock
37600 #: ../tools/virt-win-reg.pl:667
37601 msgid "Now update the registry:"
37602 msgstr ""
37603
37604 #. type: verbatim
37605 #: ../tools/virt-win-reg.pl:669
37606 #, no-wrap
37607 msgid ""
37608 " virt-win-reg --merge WindowsGuest test.reg\n"
37609 "\n"
37610 msgstr ""
37611
37612 #. type: =head2
37613 #: ../tools/virt-win-reg.pl:671
37614 msgid "INSTALLING A SERVICE"
37615 msgstr ""
37616
37617 #. type: textblock
37618 #: ../tools/virt-win-reg.pl:673
37619 msgid ""
37620 "This section assumes you are familiar with Windows services, and you either "
37621 "have a program which handles the Windows Service Control Protocol directly "
37622 "or you want to run any program using a service wrapper like SrvAny or the "
37623 "free RHSrvAny."
37624 msgstr ""
37625
37626 #. type: textblock
37627 #: ../tools/virt-win-reg.pl:678
37628 msgid ""
37629 "First upload the program and optionally the service wrapper.  In this case "
37630 "the test program is called C<test.exe> and we are using the RHSrvAny "
37631 "wrapper:"
37632 msgstr ""
37633
37634 #. type: verbatim
37635 #: ../tools/virt-win-reg.pl:682
37636 #, no-wrap
37637 msgid ""
37638 " guestfish -i -d WindowsGuest <<EOF\n"
37639 "   upload rhsrvany.exe /rhsrvany.exe\n"
37640 "   upload test.exe /test.exe\n"
37641 " EOF\n"
37642 "\n"
37643 msgstr ""
37644
37645 #. type: textblock
37646 #: ../tools/virt-win-reg.pl:687
37647 msgid ""
37648 "Prepare a regedit file containing the registry changes.  In this example, "
37649 "the first registry change is needed for the service itself or the service "
37650 "wrapper (if used).  The second registry change is only needed because I am "
37651 "using the RHSrvAny service wrapper."
37652 msgstr ""
37653
37654 #. type: verbatim
37655 #: ../tools/virt-win-reg.pl:692
37656 #, no-wrap
37657 msgid ""
37658 " cat > service.reg <<'EOF'\n"
37659 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37660 " \"Type\"=dword:00000010\n"
37661 " \"Start\"=dword:00000002\n"
37662 " \"ErrorControl\"=dword:00000001\n"
37663 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37664 " \"DisplayName\"=\"RHSrvAny\"\n"
37665 " \"ObjectName\"=\"NetworkService\"\n"
37666 " \n"
37667 msgstr ""
37668
37669 #. type: verbatim
37670 #: ../tools/virt-win-reg.pl:701
37671 #, no-wrap
37672 msgid ""
37673 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37674 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37675 " \"PWD\"=\"c:\\\\Temp\"\n"
37676 " EOF\n"
37677 "\n"
37678 msgstr ""
37679
37680 #. type: textblock
37681 #: ../tools/virt-win-reg.pl:712
37682 msgid ""
37683 "For use of C<ControlSet001> see the section above in this manual page.  You "
37684 "may need to adjust this according to the control set that is in use by the "
37685 "guest."
37686 msgstr ""
37687
37688 #. type: textblock
37689 #: ../tools/virt-win-reg.pl:718
37690 msgid ""
37691 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37692 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37693 "privileged account."
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../tools/virt-win-reg.pl:724
37698 msgid ""
37699 "For the meaning of the magic numbers, see this Microsoft KB article: "
37700 "L<http://support.microsoft.com/kb/103000>."
37701 msgstr ""
37702
37703 #. type: textblock
37704 #: ../tools/virt-win-reg.pl:729
37705 msgid "Update the registry:"
37706 msgstr ""
37707
37708 #. type: verbatim
37709 #: ../tools/virt-win-reg.pl:731
37710 #, no-wrap
37711 msgid ""
37712 " virt-win-reg --merge WindowsGuest service.reg\n"
37713 "\n"
37714 msgstr ""
37715
37716 #. type: textblock
37717 #: ../tools/virt-win-reg.pl:735
37718 msgid ""
37719 "Be careful when passing parameters containing C<\\> (backslash) in the "
37720 "shell.  Usually you will have to use 'single quotes' or double backslashes "
37721 "(but not both) to protect them from the shell."
37722 msgstr ""
37723
37724 #. type: textblock
37725 #: ../tools/virt-win-reg.pl:739
37726 msgid "Paths and value names are case-insensitive."
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../tools/virt-win-reg.pl:748
37731 msgid ""
37732 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
37733 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
37734 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
37735 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37736 msgstr ""
37737
37738 #. type: verbatim
37739 #: ../tools/virt-win-reg.pl:766
37740 #, no-wrap
37741 msgid ""
37742 " export LIBGUESTFS_DEBUG=1\n"
37743 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
37744 "\n"
37745 msgstr ""
37746
37747 #. type: textblock
37748 #: ../tools/virt-win-reg.pl:769
37749 msgid ""
37750 "Attach /tmp/virt-win-reg.log to a new bug report at "
37751 "L<https://bugzilla.redhat.com/>"
37752 msgstr ""