Version 1.13.7.
[libguestfs.git] / po-docs / libguestfs-docs.pot
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs 1.13.7\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-08-23 20:36+0200\n"
12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14 "Language-Team: LANGUAGE <LL@li.org>\n"
15 "Language: \n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19
20 #. type: =head1
21 #: ../cat/virt-cat.pod:3 ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3 ../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:1018 ../fish/virt-copy-in.pod:29 ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30 ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39 ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
102 msgid "EXAMPLES"
103 msgstr ""
104
105 #. type: textblock
106 #: ../cat/virt-cat.pod:34
107 msgid "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
108 msgstr ""
109
110 #. type: verbatim
111 #: ../cat/virt-cat.pod:37
112 #, no-wrap
113 msgid ""
114 " virt-cat -d mydomain /etc/fstab\n"
115 "\n"
116 msgstr ""
117
118 #. type: textblock
119 #: ../cat/virt-cat.pod:39
120 msgid "List syslog messages from a VM disk image file:"
121 msgstr ""
122
123 #. type: verbatim
124 #: ../cat/virt-cat.pod:41
125 #, no-wrap
126 msgid ""
127 " virt-cat -a disk.img /var/log/messages | tail\n"
128 "\n"
129 msgstr ""
130
131 #. type: textblock
132 #: ../cat/virt-cat.pod:43
133 msgid "Find out what DHCP IP address a VM acquired:"
134 msgstr ""
135
136 #. type: verbatim
137 #: ../cat/virt-cat.pod:45
138 #, no-wrap
139 msgid ""
140 " virt-cat -d mydomain /var/log/messages | \\\n"
141 "   grep 'dhclient: bound to' | tail\n"
142 "\n"
143 msgstr ""
144
145 #. type: textblock
146 #: ../cat/virt-cat.pod:48
147 msgid "Find out what packages were recently installed:"
148 msgstr ""
149
150 #. type: verbatim
151 #: ../cat/virt-cat.pod:50
152 #, no-wrap
153 msgid ""
154 " virt-cat -d mydomain /var/log/yum.log | tail\n"
155 "\n"
156 msgstr ""
157
158 #. type: textblock
159 #: ../cat/virt-cat.pod:52
160 msgid "Find out who is logged on inside a virtual machine:"
161 msgstr ""
162
163 #. type: verbatim
164 #: ../cat/virt-cat.pod:54
165 #, no-wrap
166 msgid ""
167 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
168 " who /tmp/utmp\n"
169 "\n"
170 msgstr ""
171
172 #. type: textblock
173 #: ../cat/virt-cat.pod:57
174 msgid "or who was logged on:"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../cat/virt-cat.pod:59
179 #, no-wrap
180 msgid ""
181 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
182 " last -f /tmp/wtmp\n"
183 "\n"
184 msgstr ""
185
186 #. type: =head1
187 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:37 ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54 ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103 ../tools/virt-win-reg.pl:96
188 msgid "OPTIONS"
189 msgstr ""
190
191 #. type: =item
192 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245 ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62 ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111 ../tools/virt-win-reg.pl:104
193 msgid "B<--help>"
194 msgstr ""
195
196 #. type: textblock
197 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
198 msgid "Display brief help."
199 msgstr ""
200
201 #. type: =item
202 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
203 msgid "B<-a> file"
204 msgstr ""
205
206 #. type: =item
207 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
208 msgid "B<--add> file"
209 msgstr ""
210
211 #. type: textblock
212 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103 ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74 ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
213 msgid ""
214 "Add I<file> which should be a disk image from a virtual machine.  If the "
215 "virtual machine has multiple block devices, you must supply all of them with "
216 "separate I<-a> options."
217 msgstr ""
218
219 #. type: textblock
220 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
221 msgid ""
222 "The format of the disk image is auto-detected.  To override this and force a "
223 "particular format use the I<--format=..> option."
224 msgstr ""
225
226 #. type: =item
227 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
228 msgid "B<-c> URI"
229 msgstr ""
230
231 #. type: =item
232 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
233 msgid "B<--connect> URI"
234 msgstr ""
235
236 #. type: textblock
237 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
238 msgid ""
239 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
240 "to the default libvirt hypervisor."
241 msgstr ""
242
243 #. type: textblock
244 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
245 msgid ""
246 "If you specify guest block devices directly (I<-a>), then libvirt is not "
247 "used at all."
248 msgstr ""
249
250 #. type: =item
251 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
252 msgid "B<-d> guest"
253 msgstr ""
254
255 #. type: =item
256 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
257 msgid "B<--domain> guest"
258 msgstr ""
259
260 #. type: textblock
261 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
262 msgid ""
263 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
264 "instead of names."
265 msgstr ""
266
267 #. type: =item
268 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148 ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217 ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
269 msgid "B<--echo-keys>"
270 msgstr ""
271
272 #. type: textblock
273 #: ../cat/virt-cat.pod:100
274 msgid ""
275 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
276 "so you cannot see what you are typing.  If you are not worried about Tempest "
277 "attacks and there is no one else in the room you can specify this flag to "
278 "see what you are typing."
279 msgstr ""
280
281 #. type: =item
282 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
283 msgid "B<--format=raw|qcow2|..>"
284 msgstr ""
285
286 #. type: =item
287 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
288 msgid "B<--format>"
289 msgstr ""
290
291 #. type: textblock
292 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
293 msgid ""
294 "The default for the I<-a> option is to auto-detect the format of the disk "
295 "image.  Using this forces the disk format for I<-a> options which follow on "
296 "the command line.  Using I<--format> with no argument switches back to "
297 "auto-detection for subsequent I<-a> options."
298 msgstr ""
299
300 #. type: textblock
301 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242 ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:335 ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2653
302 msgid "For example:"
303 msgstr ""
304
305 #. type: verbatim
306 #: ../cat/virt-cat.pod:116
307 #, no-wrap
308 msgid ""
309 " virt-cat --format=raw -a disk.img file\n"
310 "\n"
311 msgstr ""
312
313 #. type: textblock
314 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
315 msgid "forces raw format (no auto-detection) for C<disk.img>."
316 msgstr ""
317
318 #. type: verbatim
319 #: ../cat/virt-cat.pod:120
320 #, no-wrap
321 msgid ""
322 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
323 "\n"
324 msgstr ""
325
326 #. type: textblock
327 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
328 msgid ""
329 "forces raw format (no auto-detection) for C<disk.img> and reverts to "
330 "auto-detection for C<another.img>."
331 msgstr ""
332
333 #. type: textblock
334 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
335 msgid ""
336 "If you have untrusted raw-format guest disk images, you should use this "
337 "option to specify the disk format.  This avoids a possible security problem "
338 "with malicious guests (CVE-2010-3851)."
339 msgstr ""
340
341 #. type: =item
342 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200 ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289 ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
343 msgid "B<--keys-from-stdin>"
344 msgstr ""
345
346 #. type: textblock
347 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202 ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291 ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
348 msgid ""
349 "Read key or passphrase parameters from stdin.  The default is to try to read "
350 "passphrases from the user by opening C</dev/tty>."
351 msgstr ""
352
353 #. type: =item
354 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:178
355 msgid "B<-v>"
356 msgstr ""
357
358 #. type: =item
359 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:180
360 msgid "B<--verbose>"
361 msgstr ""
362
363 #. type: textblock
364 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:182
365 msgid "Enable verbose messages for debugging."
366 msgstr ""
367
368 #. type: =item
369 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:184 ../resize/virt-resize.pod:478
370 msgid "B<-V>"
371 msgstr ""
372
373 #. type: =item
374 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:186 ../resize/virt-resize.pod:480 ../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:482 ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
380 msgid "Display version number and exit."
381 msgstr ""
382
383 #. type: =item
384 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:199 ../tools/virt-tar.pl:158
385 msgid "B<-x>"
386 msgstr ""
387
388 #. type: textblock
389 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:201
390 msgid "Enable tracing of libguestfs API calls."
391 msgstr ""
392
393 #. type: =head1
394 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179 ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:205
395 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
396 msgstr ""
397
398 #. type: textblock
399 #: ../cat/virt-cat.pod:154
400 msgid "Previous versions of virt-cat allowed you to write either:"
401 msgstr ""
402
403 #. type: verbatim
404 #: ../cat/virt-cat.pod:156
405 #, no-wrap
406 msgid ""
407 " virt-cat disk.img [disk.img ...] file\n"
408 "\n"
409 msgstr ""
410
411 #. type: textblock
412 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185 ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:211
413 msgid "or"
414 msgstr ""
415
416 #. type: verbatim
417 #: ../cat/virt-cat.pod:160
418 #, no-wrap
419 msgid ""
420 " virt-cat guestname file\n"
421 "\n"
422 msgstr ""
423
424 #. type: textblock
425 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189 ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:215
426 msgid ""
427 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
428 "the confusing case where a disk image might have the same name as a guest."
429 msgstr ""
430
431 #. type: textblock
432 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193 ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:219
433 msgid "For compatibility the old style is still supported."
434 msgstr ""
435
436 #. type: =head1
437 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
438 msgid "USING GUESTFISH"
439 msgstr ""
440
441 #. type: textblock
442 #: ../cat/virt-cat.pod:170
443 msgid ""
444 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
445 "C<virt-cat> doesn't work."
446 msgstr ""
447
448 #. type: textblock
449 #: ../cat/virt-cat.pod:173
450 msgid "Using C<virt-cat> is approximately equivalent to doing:"
451 msgstr ""
452
453 #. type: verbatim
454 #: ../cat/virt-cat.pod:175
455 #, no-wrap
456 msgid ""
457 " guestfish --ro -i -d domname download file -\n"
458 "\n"
459 msgstr ""
460
461 #. type: textblock
462 #: ../cat/virt-cat.pod:177
463 msgid ""
464 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
465 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
466 msgstr ""
467
468 #. type: textblock
469 #: ../cat/virt-cat.pod:181
470 msgid ""
471 "The command above uses libguestfs's guest inspection feature and so does not "
472 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
473 "disk images that don't contain guests.  To display a file from a disk image "
474 "directly, use:"
475 msgstr ""
476
477 #. type: verbatim
478 #: ../cat/virt-cat.pod:186
479 #, no-wrap
480 msgid ""
481 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
482 "\n"
483 msgstr ""
484
485 #. type: textblock
486 #: ../cat/virt-cat.pod:188
487 msgid ""
488 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
489 "the disk image to edit, and C<file> is the full path to the file."
490 msgstr ""
491
492 #. type: =head1
493 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262 ../resize/virt-resize.pod:543 ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
494 msgid "SHELL QUOTING"
495 msgstr ""
496
497 #. type: textblock
498 #: ../cat/virt-cat.pod:194 ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264 ../resize/virt-resize.pod:545 ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
499 msgid ""
500 "Libvirt guest names can contain arbitrary characters, some of which have "
501 "meaning to the shell such as C<#> and space.  You may need to quote or "
502 "escape these characters on the command line.  See the shell manual page "
503 "L<sh(1)> for details."
504 msgstr ""
505
506 #. type: =head1
507 #: ../cat/virt-cat.pod:199 ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384 ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:372 ../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:550 ../ruby/examples/guestfs-ruby.pod:36 ../src/guestfs.pod:3027 ../test-tool/libguestfs-test-tool.pod:87 ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265 ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296 ../tools/virt-win-reg.pl:746
508 msgid "SEE ALSO"
509 msgstr ""
510
511 #. type: textblock
512 #: ../cat/virt-cat.pod:201
513 msgid ""
514 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
515 "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
516 msgstr ""
517
518 #. type: =head1
519 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383 ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363 ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:571 ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
520 msgid "AUTHOR"
521 msgstr ""
522
523 #. type: textblock
524 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365 ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294 ../resize/virt-resize.pod:573 ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
525 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
526 msgstr ""
527
528 #. type: =head1
529 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387 ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367 ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400 ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318 ../inspector/virt-inspector.pod:394 ../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:575 ../ruby/examples/guestfs-ruby.pod:51 ../src/guestfs.pod:3103 ../test-tool/libguestfs-test-tool.pod:97 ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281 ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315 ../tools/virt-win-reg.pl:776
530 msgid "COPYRIGHT"
531 msgstr ""
532
533 #. type: textblock
534 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396 ../resize/virt-resize.pod:577
535 msgid "Copyright (C) 2010-2011 Red Hat Inc."
536 msgstr ""
537
538 #. type: textblock
539 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391 ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371 ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323 ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300 ../resize/virt-resize.pod:579 ../test-tool/libguestfs-test-tool.pod:102 ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285 ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319 ../tools/virt-win-reg.pl:780
540 msgid ""
541 "This program is free software; you can redistribute it and/or modify it "
542 "under the terms of the GNU General Public License as published by the Free "
543 "Software Foundation; either version 2 of the License, or (at your option) "
544 "any later version."
545 msgstr ""
546
547 #. type: textblock
548 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:584 ../test-tool/libguestfs-test-tool.pod:107 ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290 ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324 ../tools/virt-win-reg.pl:785
549 msgid ""
550 "This program is distributed in the hope that it will be useful, but WITHOUT "
551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
552 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
553 "more details."
554 msgstr ""
555
556 #. type: textblock
557 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310 ../resize/virt-resize.pod:589 ../test-tool/libguestfs-test-tool.pod:112 ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295 ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329 ../tools/virt-win-reg.pl:790
558 msgid ""
559 "You should have received a copy of the GNU General Public License along with "
560 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
561 "Ave, Cambridge, MA 02139, USA."
562 msgstr ""
563
564 #. type: textblock
565 #: ../cat/virt-filesystems.pod:5
566 msgid ""
567 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
568 "virtual machine or disk image"
569 msgstr ""
570
571 #. type: verbatim
572 #: ../cat/virt-filesystems.pod:9
573 #, no-wrap
574 msgid ""
575 " virt-filesystems [--options] -d domname\n"
576 "\n"
577 msgstr ""
578
579 #. type: verbatim
580 #: ../cat/virt-filesystems.pod:11
581 #, no-wrap
582 msgid ""
583 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
584 "\n"
585 msgstr ""
586
587 #. type: textblock
588 #: ../cat/virt-filesystems.pod:15
589 msgid ""
590 "This tool allows you to discover filesystems, partitions, logical volumes, "
591 "and their sizes in a disk image or virtual machine.  It is a replacement for "
592 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
593 msgstr ""
594
595 #. type: textblock
596 #: ../cat/virt-filesystems.pod:20
597 msgid ""
598 "One use for this tool is from shell scripts to iterate over all filesystems "
599 "from a disk image:"
600 msgstr ""
601
602 #. type: verbatim
603 #: ../cat/virt-filesystems.pod:23
604 #, no-wrap
605 msgid ""
606 " for fs in $(virt-filesystems -a disk.img); do\n"
607 "   # ...\n"
608 " done\n"
609 "\n"
610 msgstr ""
611
612 #. type: textblock
613 #: ../cat/virt-filesystems.pod:27
614 msgid ""
615 "Another use is to list partitions before using another tool to modify those "
616 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
617 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
618 msgstr ""
619
620 #. type: textblock
621 #: ../cat/virt-filesystems.pod:32
622 msgid ""
623 "Various command line options control what this program displays.  You need "
624 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
625 "guest respectively.  If you just specify that then the program shows "
626 "filesystems found, one per line, like this:"
627 msgstr ""
628
629 #. type: verbatim
630 #: ../cat/virt-filesystems.pod:37
631 #, no-wrap
632 msgid ""
633 " $ virt-filesystems -a disk.img\n"
634 " /dev/sda1\n"
635 " /dev/vg_guest/lv_root\n"
636 "\n"
637 msgstr ""
638
639 #. type: textblock
640 #: ../cat/virt-filesystems.pod:41
641 msgid "If you add I<-l> or I<--long> then the output includes extra information:"
642 msgstr ""
643
644 #. type: verbatim
645 #: ../cat/virt-filesystems.pod:44
646 #, no-wrap
647 msgid ""
648 " $ virt-filesystems -a disk.img -l\n"
649 " Name                   Type         VFS   Label  Size\n"
650 " /dev/sda1              filesystem   ext4  boot   524288000\n"
651 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
652 "\n"
653 msgstr ""
654
655 #. type: textblock
656 #: ../cat/virt-filesystems.pod:49
657 msgid ""
658 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
659 "shown as well:"
660 msgstr ""
661
662 #. type: verbatim
663 #: ../cat/virt-filesystems.pod:52
664 #, no-wrap
665 msgid ""
666 " $ virt-filesystems -a disk.img --extra\n"
667 " /dev/sda1\n"
668 " /dev/vg_guest/lv_root\n"
669 " /dev/vg_guest/lv_swap\n"
670 " /dev/vg_guest/lv_data\n"
671 "\n"
672 msgstr ""
673
674 #. type: textblock
675 #: ../cat/virt-filesystems.pod:58
676 msgid "If you add I<--partitions> then partitions are shown instead of filesystems:"
677 msgstr ""
678
679 #. type: verbatim
680 #: ../cat/virt-filesystems.pod:60
681 #, no-wrap
682 msgid ""
683 " $ virt-filesystems -a disk.img --partitions\n"
684 " /dev/sda1\n"
685 " /dev/sda2\n"
686 "\n"
687 msgstr ""
688
689 #. type: textblock
690 #: ../cat/virt-filesystems.pod:64
691 msgid ""
692 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, "
693 "I<--physical-volumes>, I<--block-devices> to list those items."
694 msgstr ""
695
696 #. type: textblock
697 #: ../cat/virt-filesystems.pod:67
698 msgid ""
699 "You can use these options in combination as well (if you want a combination "
700 "including filesystems, you have to add I<--filesystems>).  Notice that some "
701 "items fall into several categories (eg. C</dev/sda1> might be both a "
702 "partition and a filesystem).  These items are listed several times.  To get "
703 "a list which includes absolutely everything that virt-filesystems knows "
704 "about, use the I<--all> option."
705 msgstr ""
706
707 #. type: textblock
708 #: ../cat/virt-filesystems.pod:74
709 msgid ""
710 "UUIDs (because they are quite long) are not shown by default.  Add the "
711 "I<--uuid> option to display device and filesystem UUIDs in the long output."
712 msgstr ""
713
714 #. type: textblock
715 #: ../cat/virt-filesystems.pod:78
716 msgid ""
717 "I<--all --long --uuid> is a useful combination to display all possible "
718 "information about everything."
719 msgstr ""
720
721 #. type: verbatim
722 #: ../cat/virt-filesystems.pod:81
723 #, no-wrap
724 msgid ""
725 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
726 " Name      Type       VFS  Label           Size Parent   UUID\n"
727 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
728 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
729 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
730 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
731 " /dev/sda  device     -    -               20G  -        -\n"
732 "\n"
733 msgstr ""
734
735 #. type: textblock
736 #: ../cat/virt-filesystems.pod:89
737 msgid "For machine-readable output, use I<--csv> to get Comma-Separated Values."
738 msgstr ""
739
740 #. type: =item
741 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
742 msgid "B<--all>"
743 msgstr ""
744
745 #. type: textblock
746 #: ../cat/virt-filesystems.pod:112
747 msgid ""
748 "Display everything.  This is currently the same as specifying these options: "
749 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, "
750 "I<--logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may "
751 "be added to this list in future)."
752 msgstr ""
753
754 #. type: textblock
755 #: ../cat/virt-filesystems.pod:117
756 msgid "See also I<--long>."
757 msgstr ""
758
759 #. type: =item
760 #: ../cat/virt-filesystems.pod:119
761 msgid "B<--blkdevs>"
762 msgstr ""
763
764 #. type: =item
765 #: ../cat/virt-filesystems.pod:121
766 msgid "B<--block-devices>"
767 msgstr ""
768
769 #. type: textblock
770 #: ../cat/virt-filesystems.pod:123
771 msgid "Display block devices."
772 msgstr ""
773
774 #. type: =item
775 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
776 msgid "B<--csv>"
777 msgstr ""
778
779 #. type: textblock
780 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
781 msgid ""
782 "Write out the results in CSV format (comma-separated values).  This format "
783 "can be imported easily into databases and spreadsheets, but read L</NOTE "
784 "ABOUT CSV FORMAT> below."
785 msgstr ""
786
787 #. type: textblock
788 #: ../cat/virt-filesystems.pod:150
789 msgid ""
790 "When prompting for keys and passphrases, virt-filesystems normally turns "
791 "echoing off so you cannot see what you are typing.  If you are not worried "
792 "about Tempest attacks and there is no one else in the room you can specify "
793 "this flag to see what you are typing."
794 msgstr ""
795
796 #. type: =item
797 #: ../cat/virt-filesystems.pod:155
798 msgid "B<--extra>"
799 msgstr ""
800
801 #. type: textblock
802 #: ../cat/virt-filesystems.pod:157
803 msgid ""
804 "This causes filesystems that are not ordinary, mountable filesystems to be "
805 "displayed.  This category includes swapspace, and filesystems that are empty "
806 "or contain unknown data."
807 msgstr ""
808
809 #. type: textblock
810 #: ../cat/virt-filesystems.pod:161
811 msgid "This option implies I<--filesystems>."
812 msgstr ""
813
814 #. type: =item
815 #: ../cat/virt-filesystems.pod:163
816 msgid "B<--filesystems>"
817 msgstr ""
818
819 #. type: textblock
820 #: ../cat/virt-filesystems.pod:165
821 msgid ""
822 "Display mountable filesystems.  If no display option was selected then this "
823 "option is implied."
824 msgstr ""
825
826 #. type: textblock
827 #: ../cat/virt-filesystems.pod:168
828 msgid "With I<--extra>, non-mountable filesystems are shown too."
829 msgstr ""
830
831 #. type: verbatim
832 #: ../cat/virt-filesystems.pod:181
833 #, no-wrap
834 msgid ""
835 " virt-filesystems --format=raw -a disk.img\n"
836 "\n"
837 msgstr ""
838
839 #. type: verbatim
840 #: ../cat/virt-filesystems.pod:185
841 #, no-wrap
842 msgid ""
843 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
844 "\n"
845 msgstr ""
846
847 #. type: =item
848 #: ../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
849 msgid "B<-h>"
850 msgstr ""
851
852 #. type: =item
853 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354 ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
854 msgid "B<--human-readable>"
855 msgstr ""
856
857 #. type: textblock
858 #: ../cat/virt-filesystems.pod:198
859 msgid "In I<--long> mode, display sizes in human-readable format."
860 msgstr ""
861
862 #. type: =item
863 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366 ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
864 msgid "B<-l>"
865 msgstr ""
866
867 #. type: =item
868 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368 ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
869 msgid "B<--long>"
870 msgstr ""
871
872 #. type: textblock
873 #: ../cat/virt-filesystems.pod:209
874 msgid "Display extra columns of data (\"long format\")."
875 msgstr ""
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:211
879 msgid "A title row is added unless you also specify I<--no-title>."
880 msgstr ""
881
882 #. type: textblock
883 #: ../cat/virt-filesystems.pod:213
884 msgid ""
885 "The extra columns displayed depend on what output you select, and the "
886 "ordering of columns may change in future versions.  Use the title row, "
887 "I<--csv> output and/or L<csvtool(1)> to match columns to data in external "
888 "programs."
889 msgstr ""
890
891 #. type: textblock
892 #: ../cat/virt-filesystems.pod:218
893 msgid ""
894 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
895 "default is to show raw numbers of I<bytes>."
896 msgstr ""
897
898 #. type: textblock
899 #: ../cat/virt-filesystems.pod:221
900 msgid "Use I<--uuid> to display UUIDs too."
901 msgstr ""
902
903 #. type: =item
904 #: ../cat/virt-filesystems.pod:223
905 msgid "B<--lvs>"
906 msgstr ""
907
908 #. type: =item
909 #: ../cat/virt-filesystems.pod:225
910 msgid "B<--logvols>"
911 msgstr ""
912
913 #. type: =item
914 #: ../cat/virt-filesystems.pod:227
915 msgid "B<--logical-volumes>"
916 msgstr ""
917
918 #. type: textblock
919 #: ../cat/virt-filesystems.pod:229
920 msgid ""
921 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
922 "of whether the LVs contain filesystems."
923 msgstr ""
924
925 #. type: =item
926 #: ../cat/virt-filesystems.pod:232
927 msgid "B<--no-title>"
928 msgstr ""
929
930 #. type: textblock
931 #: ../cat/virt-filesystems.pod:234
932 msgid "In I<--long> mode, don't add a title row."
933 msgstr ""
934
935 #. type: textblock
936 #: ../cat/virt-filesystems.pod:236
937 msgid ""
938 "Note that the order of the columns is not fixed, and may change in future "
939 "versions of virt-filesystems, so using this option may give you unexpected "
940 "surprises."
941 msgstr ""
942
943 #. type: =item
944 #: ../cat/virt-filesystems.pod:240
945 msgid "B<--parts>"
946 msgstr ""
947
948 #. type: =item
949 #: ../cat/virt-filesystems.pod:242
950 msgid "B<--partitions>"
951 msgstr ""
952
953 #. type: textblock
954 #: ../cat/virt-filesystems.pod:244
955 msgid ""
956 "Display partitions.  In this mode, these are displayed irrespective of "
957 "whether the partitions contain filesystems."
958 msgstr ""
959
960 #. type: =item
961 #: ../cat/virt-filesystems.pod:247
962 msgid "B<--pvs>"
963 msgstr ""
964
965 #. type: =item
966 #: ../cat/virt-filesystems.pod:249
967 msgid "B<--physvols>"
968 msgstr ""
969
970 #. type: =item
971 #: ../cat/virt-filesystems.pod:251
972 msgid "B<--physical-volumes>"
973 msgstr ""
974
975 #. type: textblock
976 #: ../cat/virt-filesystems.pod:253
977 msgid "Display LVM physical volumes."
978 msgstr ""
979
980 #. type: =item
981 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
982 msgid "B<--uuid>"
983 msgstr ""
984
985 #. type: =item
986 #: ../cat/virt-filesystems.pod:257
987 msgid "B<--uuids>"
988 msgstr ""
989
990 #. type: textblock
991 #: ../cat/virt-filesystems.pod:259
992 msgid "In I<--long> mode, display UUIDs as well."
993 msgstr ""
994
995 #. type: =item
996 #: ../cat/virt-filesystems.pod:273
997 msgid "B<--vgs>"
998 msgstr ""
999
1000 #. type: =item
1001 #: ../cat/virt-filesystems.pod:275
1002 msgid "B<--volgroups>"
1003 msgstr ""
1004
1005 #. type: =item
1006 #: ../cat/virt-filesystems.pod:277
1007 msgid "B<--volume-groups>"
1008 msgstr ""
1009
1010 #. type: textblock
1011 #: ../cat/virt-filesystems.pod:279
1012 msgid "Display LVM volume groups."
1013 msgstr ""
1014
1015 #. type: =head1
1016 #: ../cat/virt-filesystems.pod:287
1017 msgid "COLUMNS"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../cat/virt-filesystems.pod:289
1022 msgid ""
1023 "Note that columns in the output are subject to reordering and change in "
1024 "future versions of this tool."
1025 msgstr ""
1026
1027 #. type: =item
1028 #: ../cat/virt-filesystems.pod:294
1029 msgid "B<Name>"
1030 msgstr ""
1031
1032 #. type: textblock
1033 #: ../cat/virt-filesystems.pod:296
1034 msgid "The filesystem, partition, block device or LVM name."
1035 msgstr ""
1036
1037 #. type: textblock
1038 #: ../cat/virt-filesystems.pod:298
1039 msgid ""
1040 "For device and partition names these are displayed as canonical libguestfs "
1041 "names, so that for example C</dev/sda2> is the second partition on the first "
1042 "device."
1043 msgstr ""
1044
1045 #. type: textblock
1046 #: ../cat/virt-filesystems.pod:302
1047 msgid ""
1048 "If the I<--long> option is B<not> specified, then only the name column is "
1049 "shown in the output."
1050 msgstr ""
1051
1052 #. type: =item
1053 #: ../cat/virt-filesystems.pod:305
1054 msgid "B<Type>"
1055 msgstr ""
1056
1057 #. type: textblock
1058 #: ../cat/virt-filesystems.pod:307
1059 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1060 msgstr ""
1061
1062 #. type: =item
1063 #: ../cat/virt-filesystems.pod:309
1064 msgid "B<VFS>"
1065 msgstr ""
1066
1067 #. type: textblock
1068 #: ../cat/virt-filesystems.pod:311
1069 msgid ""
1070 "If there is a filesystem, then this column displays the filesystem type if "
1071 "one could be detected, eg. C<ext4>."
1072 msgstr ""
1073
1074 #. type: =item
1075 #: ../cat/virt-filesystems.pod:314
1076 msgid "B<Label>"
1077 msgstr ""
1078
1079 #. type: textblock
1080 #: ../cat/virt-filesystems.pod:316
1081 msgid ""
1082 "If the object has a label (used for identifying and mounting filesystems) "
1083 "then this column contains the label."
1084 msgstr ""
1085
1086 #. type: =item
1087 #: ../cat/virt-filesystems.pod:319
1088 msgid "B<Size>"
1089 msgstr ""
1090
1091 #. type: textblock
1092 #: ../cat/virt-filesystems.pod:321
1093 msgid ""
1094 "The size of the object in bytes.  If the I<--human> option is used then the "
1095 "size is displayed in a human-readable form."
1096 msgstr ""
1097
1098 #. type: =item
1099 #: ../cat/virt-filesystems.pod:324
1100 msgid "B<Parent>"
1101 msgstr ""
1102
1103 #. type: textblock
1104 #: ../cat/virt-filesystems.pod:326
1105 msgid ""
1106 "The parent column records the parent relationship between objects.  For "
1107 "example, if the object is a partition, then this column contains the name of "
1108 "the containing device.  If the object is a logical volume, then this column "
1109 "is the name of the volume group."
1110 msgstr ""
1111
1112 #. type: =item
1113 #: ../cat/virt-filesystems.pod:331
1114 msgid "B<UUID>"
1115 msgstr ""
1116
1117 #. type: textblock
1118 #: ../cat/virt-filesystems.pod:333
1119 msgid ""
1120 "If the object has a UUID (used for identifying and mounting filesystems and "
1121 "block devices) then this column contains the UUID as a string."
1122 msgstr ""
1123
1124 #. type: textblock
1125 #: ../cat/virt-filesystems.pod:337
1126 msgid "The UUID is only displayed if the I<--uuid> option is given."
1127 msgstr ""
1128
1129 #. type: =head1
1130 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459 ../df/virt-df.pod:191
1131 msgid "NOTE ABOUT CSV FORMAT"
1132 msgstr ""
1133
1134 #. type: textblock
1135 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461 ../df/virt-df.pod:193
1136 msgid ""
1137 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1138 "should be easy to parse, but it is definitely not easy to parse."
1139 msgstr ""
1140
1141 #. type: textblock
1142 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464 ../df/virt-df.pod:196
1143 msgid ""
1144 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1145 "reliably.  This example has two columns:"
1146 msgstr ""
1147
1148 #. type: verbatim
1149 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467 ../df/virt-df.pod:199
1150 #, no-wrap
1151 msgid ""
1152 " \"foo,bar\",baz\n"
1153 "\n"
1154 msgstr ""
1155
1156 #. type: textblock
1157 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469 ../df/virt-df.pod:201
1158 msgid ""
1159 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1160 "reliably.  This example has one row:"
1161 msgstr ""
1162
1163 #. type: verbatim
1164 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472 ../df/virt-df.pod:204
1165 #, no-wrap
1166 msgid ""
1167 " \"foo\n"
1168 " bar\",baz\n"
1169 "\n"
1170 msgstr ""
1171
1172 #. type: textblock
1173 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475 ../df/virt-df.pod:207
1174 msgid ""
1175 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1176 "packaged in major Linux distributions)."
1177 msgstr ""
1178
1179 #. type: textblock
1180 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478 ../df/virt-df.pod:210
1181 msgid ""
1182 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1183 "or Python's built-in csv library)."
1184 msgstr ""
1185
1186 #. type: textblock
1187 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481 ../df/virt-df.pod:213
1188 msgid "Most spreadsheets and databases can import CSV directly."
1189 msgstr ""
1190
1191 #. type: textblock
1192 #: ../cat/virt-filesystems.pod:374
1193 msgid ""
1194 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, "
1195 "L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, "
1196 "L<http://libguestfs.org/>."
1197 msgstr ""
1198
1199 #. type: textblock
1200 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570 ../tools/virt-win-reg.pl:778
1201 msgid "Copyright (C) 2010 Red Hat Inc."
1202 msgstr ""
1203
1204 #. type: textblock
1205 #: ../cat/virt-ls.pod:5
1206 msgid "virt-ls - List files in a virtual machine"
1207 msgstr ""
1208
1209 #. type: verbatim
1210 #: ../cat/virt-ls.pod:9
1211 #, no-wrap
1212 msgid ""
1213 " virt-ls [--options] -d domname directory [directory ...]\n"
1214 "\n"
1215 msgstr ""
1216
1217 #. type: verbatim
1218 #: ../cat/virt-ls.pod:11
1219 #, no-wrap
1220 msgid ""
1221 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory "
1222 "...]\n"
1223 "\n"
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1228 msgid "Old style:"
1229 msgstr ""
1230
1231 #. type: verbatim
1232 #: ../cat/virt-ls.pod:15
1233 #, no-wrap
1234 msgid ""
1235 " virt-ls [--options] domname directory\n"
1236 "\n"
1237 msgstr ""
1238
1239 #. type: verbatim
1240 #: ../cat/virt-ls.pod:17
1241 #, no-wrap
1242 msgid ""
1243 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1244 "\n"
1245 msgstr ""
1246
1247 #. type: textblock
1248 #: ../cat/virt-ls.pod:21
1249 msgid ""
1250 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1251 "more from a virtual machine or disk image."
1252 msgstr ""
1253
1254 #. type: textblock
1255 #: ../cat/virt-ls.pod:24
1256 msgid ""
1257 "Multiple directory names can be given, in which case the output from each is "
1258 "concatenated."
1259 msgstr ""
1260
1261 #. type: textblock
1262 #: ../cat/virt-ls.pod:27
1263 msgid ""
1264 "To list directories from a libvirt guest use the I<-d> option to specify the "
1265 "name of the guest.  For a disk image, use the I<-a> option."
1266 msgstr ""
1267
1268 #. type: textblock
1269 #: ../cat/virt-ls.pod:31
1270 msgid ""
1271 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1272 "may need to use L<guestfish(1)>, or write a program directly to the "
1273 "L<guestfs(3)> API."
1274 msgstr ""
1275
1276 #. type: textblock
1277 #: ../cat/virt-ls.pod:37
1278 msgid "Get a list of all files and directories in a virtual machine:"
1279 msgstr ""
1280
1281 #. type: verbatim
1282 #: ../cat/virt-ls.pod:39
1283 #, no-wrap
1284 msgid ""
1285 " virt-ls -R -d guest /\n"
1286 "\n"
1287 msgstr ""
1288
1289 #. type: textblock
1290 #: ../cat/virt-ls.pod:41
1291 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1292 msgstr ""
1293
1294 #. type: verbatim
1295 #: ../cat/virt-ls.pod:43
1296 #, no-wrap
1297 msgid ""
1298 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1299 "\n"
1300 msgstr ""
1301
1302 #. type: textblock
1303 #: ../cat/virt-ls.pod:45
1304 msgid "List all public-writable directories in a Linux virtual machine:"
1305 msgstr ""
1306
1307 #. type: verbatim
1308 #: ../cat/virt-ls.pod:47
1309 #, no-wrap
1310 msgid ""
1311 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1312 "\n"
1313 msgstr ""
1314
1315 #. type: textblock
1316 #: ../cat/virt-ls.pod:49
1317 msgid "List all Unix domain sockets in a Linux virtual machine:"
1318 msgstr ""
1319
1320 #. type: verbatim
1321 #: ../cat/virt-ls.pod:51
1322 #, no-wrap
1323 msgid ""
1324 " virt-ls -lR -d guest / | grep '^s'\n"
1325 "\n"
1326 msgstr ""
1327
1328 #. type: textblock
1329 #: ../cat/virt-ls.pod:53
1330 msgid "List all regular files with filenames ending in '.png':"
1331 msgstr ""
1332
1333 #. type: verbatim
1334 #: ../cat/virt-ls.pod:55
1335 #, no-wrap
1336 msgid ""
1337 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1338 "\n"
1339 msgstr ""
1340
1341 #. type: textblock
1342 #: ../cat/virt-ls.pod:57
1343 msgid "To display files larger than 10MB in home directories:"
1344 msgstr ""
1345
1346 #. type: verbatim
1347 #: ../cat/virt-ls.pod:59
1348 #, no-wrap
1349 msgid ""
1350 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1351 "\n"
1352 msgstr ""
1353
1354 #. type: textblock
1355 #: ../cat/virt-ls.pod:61
1356 msgid "Find everything modified in the last 7 days:"
1357 msgstr ""
1358
1359 #. type: verbatim
1360 #: ../cat/virt-ls.pod:63
1361 #, no-wrap
1362 msgid ""
1363 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1364 "\n"
1365 msgstr ""
1366
1367 #. type: textblock
1368 #: ../cat/virt-ls.pod:65
1369 msgid "Find regular files modified in the last 24 hours:"
1370 msgstr ""
1371
1372 #. type: verbatim
1373 #: ../cat/virt-ls.pod:67
1374 #, no-wrap
1375 msgid ""
1376 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1377 "\n"
1378 msgstr ""
1379
1380 #. type: =head2
1381 #: ../cat/virt-ls.pod:69
1382 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1383 msgstr ""
1384
1385 #. type: textblock
1386 #: ../cat/virt-ls.pod:71
1387 msgid ""
1388 "Find the differences between files in a guest and an earlier snapshot of the "
1389 "same guest."
1390 msgstr ""
1391
1392 #. type: verbatim
1393 #: ../cat/virt-ls.pod:74
1394 #, no-wrap
1395 msgid ""
1396 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1397 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1398 " diff -u old new | less\n"
1399 "\n"
1400 msgstr ""
1401
1402 #. type: textblock
1403 #: ../cat/virt-ls.pod:78
1404 msgid ""
1405 "The commands above won't find files where the content has changed but the "
1406 "metadata (eg. file size and modification date) is the same.  To do that, you "
1407 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  "
1408 "I<--checksum> can be quite slow since it has to read and compute a checksum "
1409 "of every regular file in the virtual machine."
1410 msgstr ""
1411
1412 #. type: =head1
1413 #: ../cat/virt-ls.pod:84
1414 msgid "OUTPUT MODES"
1415 msgstr ""
1416
1417 #. type: textblock
1418 #: ../cat/virt-ls.pod:86
1419 msgid ""
1420 "C<virt-ls> has four output modes, controlled by different combinations of "
1421 "the I<-l> and I<-R> options."
1422 msgstr ""
1423
1424 #. type: =head2
1425 #: ../cat/virt-ls.pod:89
1426 msgid "SIMPLE LISTING"
1427 msgstr ""
1428
1429 #. type: textblock
1430 #: ../cat/virt-ls.pod:91
1431 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1432 msgstr ""
1433
1434 #. type: verbatim
1435 #: ../cat/virt-ls.pod:93
1436 #, no-wrap
1437 msgid ""
1438 " $ virt-ls -d guest /\n"
1439 " bin\n"
1440 " boot\n"
1441 " [etc.]\n"
1442 "\n"
1443 msgstr ""
1444
1445 #. type: =head2
1446 #: ../cat/virt-ls.pod:98
1447 msgid "LONG LISTING"
1448 msgstr ""
1449
1450 #. type: textblock
1451 #: ../cat/virt-ls.pod:100
1452 msgid ""
1453 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1454 "(more specifically, like the C<guestfs_ll> function)."
1455 msgstr ""
1456
1457 #. type: verbatim
1458 #: ../cat/virt-ls.pod:103
1459 #, no-wrap
1460 msgid ""
1461 " $ virt-ls -l -d guest /\n"
1462 " total 204\n"
1463 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1464 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1465 " [etc.]\n"
1466 "\n"
1467 msgstr ""
1468
1469 #. type: textblock
1470 #: ../cat/virt-ls.pod:109
1471 msgid ""
1472 "Note that while this is useful for displaying a directory, do not try "
1473 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1474 "instead."
1475 msgstr ""
1476
1477 #. type: =head2
1478 #: ../cat/virt-ls.pod:113
1479 msgid "RECURSIVE LISTING"
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-ls.pod:115
1484 msgid ""
1485 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1486 "and directories recursively:"
1487 msgstr ""
1488
1489 #. type: verbatim
1490 #: ../cat/virt-ls.pod:118
1491 #, no-wrap
1492 msgid ""
1493 " $ virt-ls -R -d guest /tmp\n"
1494 " foo\n"
1495 " foo/bar\n"
1496 " [etc.]\n"
1497 "\n"
1498 msgstr ""
1499
1500 #. type: textblock
1501 #: ../cat/virt-ls.pod:123
1502 msgid ""
1503 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1504 "converts C<\\0> characters to C<\\n>."
1505 msgstr ""
1506
1507 #. type: =head2
1508 #: ../cat/virt-ls.pod:126
1509 msgid "RECURSIVE LONG LISTING"
1510 msgstr ""
1511
1512 #. type: textblock
1513 #: ../cat/virt-ls.pod:128
1514 msgid ""
1515 "Using I<-lR> options together changes the output to display directories "
1516 "recursively, with file stats, and optionally other features such as "
1517 "checksums and extended attributes."
1518 msgstr ""
1519
1520 #. type: textblock
1521 #: ../cat/virt-ls.pod:132
1522 msgid ""
1523 "Most of the interesting features of C<virt-ls> are only available when using "
1524 "I<-lR> mode."
1525 msgstr ""
1526
1527 #. type: textblock
1528 #: ../cat/virt-ls.pod:135
1529 msgid ""
1530 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1531 "you cannot use the output in another program (because filenames can contain "
1532 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1533 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1534 "on you by creating filenames with embedded newline characters.  To B<safely> "
1535 "parse the output in another program, use the I<--csv> (Comma-Separated "
1536 "Values) option."
1537 msgstr ""
1538
1539 #. type: textblock
1540 #: ../cat/virt-ls.pod:143
1541 msgid ""
1542 "Note that this output format is completely unrelated to the C<ls -lR> "
1543 "command."
1544 msgstr ""
1545
1546 #. type: verbatim
1547 #: ../cat/virt-ls.pod:146
1548 #, no-wrap
1549 msgid ""
1550 " $ virt-ls -lR -d guest /bin\n"
1551 " d 0555       4096 /bin\n"
1552 " - 0755        123 /bin/alsaunmute\n"
1553 " - 0755      28328 /bin/arch\n"
1554 " l 0777          4 /bin/awk -> gawk\n"
1555 " - 0755      27216 /bin/basename\n"
1556 " - 0755     943360 /bin/bash\n"
1557 " [etc.]\n"
1558 "\n"
1559 msgstr ""
1560
1561 #. type: textblock
1562 #: ../cat/virt-ls.pod:155
1563 msgid "These basic fields are always shown:"
1564 msgstr ""
1565
1566 #. type: =item
1567 #: ../cat/virt-ls.pod:159
1568 msgid "type"
1569 msgstr ""
1570
1571 #. type: textblock
1572 #: ../cat/virt-ls.pod:161
1573 msgid ""
1574 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1575 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1576 "link), C<s> (socket) or C<u> (unknown)."
1577 msgstr ""
1578
1579 #. type: =item
1580 #: ../cat/virt-ls.pod:171
1581 msgid "permissions"
1582 msgstr ""
1583
1584 #. type: textblock
1585 #: ../cat/virt-ls.pod:173
1586 msgid "The Unix permissions, displayed as a 4 digit octal number."
1587 msgstr ""
1588
1589 #. type: =item
1590 #: ../cat/virt-ls.pod:175
1591 msgid "size"
1592 msgstr ""
1593
1594 #. type: textblock
1595 #: ../cat/virt-ls.pod:177
1596 msgid ""
1597 "The size of the file.  This is shown in bytes unless I<-h> or "
1598 "I<--human-readable> option is given, in which case this is shown as a "
1599 "human-readable number."
1600 msgstr ""
1601
1602 #. type: =head2
1603 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
1604 msgid "path"
1605 msgstr ""
1606
1607 #. type: textblock
1608 #: ../cat/virt-ls.pod:183
1609 msgid "The full path of the file or directory."
1610 msgstr ""
1611
1612 #. type: =item
1613 #: ../cat/virt-ls.pod:185
1614 msgid "link"
1615 msgstr ""
1616
1617 #. type: textblock
1618 #: ../cat/virt-ls.pod:187
1619 msgid "For symbolic links only, the link target."
1620 msgstr ""
1621
1622 #. type: textblock
1623 #: ../cat/virt-ls.pod:191
1624 msgid ""
1625 "In I<-lR> mode, additional command line options enable the display of more "
1626 "fields."
1627 msgstr ""
1628
1629 #. type: textblock
1630 #: ../cat/virt-ls.pod:194
1631 msgid ""
1632 "With the I<--uids> flag, these additional fields are displayed before the "
1633 "path:"
1634 msgstr ""
1635
1636 #. type: =item
1637 #: ../cat/virt-ls.pod:199
1638 msgid "uid"
1639 msgstr ""
1640
1641 #. type: =item
1642 #: ../cat/virt-ls.pod:201
1643 msgid "gid"
1644 msgstr ""
1645
1646 #. type: textblock
1647 #: ../cat/virt-ls.pod:203
1648 msgid ""
1649 "The UID and GID of the owner of the file (displayed numerically).  Note "
1650 "these only make sense in the context of a Unix-like guest."
1651 msgstr ""
1652
1653 #. type: textblock
1654 #: ../cat/virt-ls.pod:208
1655 msgid "With the I<--times> flag, these additional fields are displayed:"
1656 msgstr ""
1657
1658 #. type: =item
1659 #: ../cat/virt-ls.pod:212
1660 msgid "atime"
1661 msgstr ""
1662
1663 #. type: textblock
1664 #: ../cat/virt-ls.pod:214
1665 msgid "The time of last access."
1666 msgstr ""
1667
1668 #. type: =item
1669 #: ../cat/virt-ls.pod:216
1670 msgid "mtime"
1671 msgstr ""
1672
1673 #. type: textblock
1674 #: ../cat/virt-ls.pod:218
1675 msgid "The time of last modification."
1676 msgstr ""
1677
1678 #. type: =item
1679 #: ../cat/virt-ls.pod:220
1680 msgid "ctime"
1681 msgstr ""
1682
1683 #. type: textblock
1684 #: ../cat/virt-ls.pod:222
1685 msgid "The time of last status change."
1686 msgstr ""
1687
1688 #. type: textblock
1689 #: ../cat/virt-ls.pod:226
1690 msgid ""
1691 "The time fields are displayed as string dates and times, unless one of the "
1692 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../cat/virt-ls.pod:229
1697 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
1698 msgstr ""
1699
1700 #. type: =item
1701 #: ../cat/virt-ls.pod:233
1702 msgid "device"
1703 msgstr ""
1704
1705 #. type: textblock
1706 #: ../cat/virt-ls.pod:235
1707 msgid ""
1708 "The device containing the file (displayed as major:minor).  This may not "
1709 "match devices as known to the guest."
1710 msgstr ""
1711
1712 #. type: =item
1713 #: ../cat/virt-ls.pod:238
1714 msgid "inode"
1715 msgstr ""
1716
1717 #. type: textblock
1718 #: ../cat/virt-ls.pod:240
1719 msgid "The inode number."
1720 msgstr ""
1721
1722 #. type: =item
1723 #: ../cat/virt-ls.pod:242
1724 msgid "nlink"
1725 msgstr ""
1726
1727 #. type: textblock
1728 #: ../cat/virt-ls.pod:244
1729 msgid "The number of hard links."
1730 msgstr ""
1731
1732 #. type: =item
1733 #: ../cat/virt-ls.pod:246
1734 msgid "rdev"
1735 msgstr ""
1736
1737 #. type: textblock
1738 #: ../cat/virt-ls.pod:248
1739 msgid "For block and char special files, the device (displayed as major:minor)."
1740 msgstr ""
1741
1742 #. type: =item
1743 #: ../cat/virt-ls.pod:251
1744 msgid "blocks"
1745 msgstr ""
1746
1747 #. type: textblock
1748 #: ../cat/virt-ls.pod:253
1749 msgid "The number of 512 byte blocks allocated to the file."
1750 msgstr ""
1751
1752 #. type: textblock
1753 #: ../cat/virt-ls.pod:257
1754 msgid ""
1755 "With the I<--checksum> flag, the checksum of the file contents is shown "
1756 "(only for regular files).  Computing file checksums can take a considerable "
1757 "amount of time."
1758 msgstr ""
1759
1760 #. type: =item
1761 #: ../cat/virt-ls.pod:280
1762 msgid "B<--checksum>"
1763 msgstr ""
1764
1765 #. type: =item
1766 #: ../cat/virt-ls.pod:282
1767 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
1768 msgstr ""
1769
1770 #. type: textblock
1771 #: ../cat/virt-ls.pod:284
1772 msgid ""
1773 "Display checksum over file contents for regular files.  With no argument, "
1774 "this defaults to using I<md5>.  Using an argument, you can select the "
1775 "checksum type to use."
1776 msgstr ""
1777
1778 #. type: textblock
1779 #: ../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
1780 msgid ""
1781 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
1782 "LISTING> above."
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-ls.pod:316
1787 msgid ""
1788 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
1789 "so you cannot see what you are typing.  If you are not worried about Tempest "
1790 "attacks and there is no one else in the room you can specify this flag to "
1791 "see what you are typing."
1792 msgstr ""
1793
1794 #. type: =item
1795 #: ../cat/virt-ls.pod:321
1796 msgid "B<--extra-stats>"
1797 msgstr ""
1798
1799 #. type: textblock
1800 #: ../cat/virt-ls.pod:323
1801 msgid "Display extra stats."
1802 msgstr ""
1803
1804 #. type: verbatim
1805 #: ../cat/virt-ls.pod:339
1806 #, no-wrap
1807 msgid ""
1808 " virt-ls --format=raw -a disk.img /dir\n"
1809 "\n"
1810 msgstr ""
1811
1812 #. type: verbatim
1813 #: ../cat/virt-ls.pod:343
1814 #, no-wrap
1815 msgid ""
1816 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
1817 "\n"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-ls.pod:356
1822 msgid "Display file sizes in human-readable format."
1823 msgstr ""
1824
1825 #. type: =item
1826 #: ../cat/virt-ls.pod:370
1827 msgid "B<-R>"
1828 msgstr ""
1829
1830 #. type: =item
1831 #: ../cat/virt-ls.pod:372
1832 msgid "B<--recursive>"
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../cat/virt-ls.pod:374
1837 msgid ""
1838 "Select the mode.  With neither of these options, C<virt-ls> produces a "
1839 "simple, flat list of the files in the named directory.  See L</SIMPLE "
1840 "LISTING>."
1841 msgstr ""
1842
1843 #. type: textblock
1844 #: ../cat/virt-ls.pod:378
1845 msgid ""
1846 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See "
1847 "L</LONG LISTING>."
1848 msgstr ""
1849
1850 #. type: textblock
1851 #: ../cat/virt-ls.pod:381
1852 msgid ""
1853 "C<virt-ls -R> produces a recursive list of files starting at the named "
1854 "directory.  See L</RECURSIVE LISTING>."
1855 msgstr ""
1856
1857 #. type: textblock
1858 #: ../cat/virt-ls.pod:384
1859 msgid ""
1860 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
1861 "parsed.  See L</RECURSIVE LONG LISTING>."
1862 msgstr ""
1863
1864 #. type: =item
1865 #: ../cat/virt-ls.pod:387
1866 msgid "B<--times>"
1867 msgstr ""
1868
1869 #. type: textblock
1870 #: ../cat/virt-ls.pod:389
1871 msgid "Display time fields."
1872 msgstr ""
1873
1874 #. type: =item
1875 #: ../cat/virt-ls.pod:394
1876 msgid "B<--time-days>"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:396
1881 msgid "Display time fields as days before now (negative if in the future)."
1882 msgstr ""
1883
1884 #. type: textblock
1885 #: ../cat/virt-ls.pod:398
1886 msgid ""
1887 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
1888 "of the file is between 0 and 86399 seconds."
1889 msgstr ""
1890
1891 #. type: =item
1892 #: ../cat/virt-ls.pod:404
1893 msgid "B<--time-relative>"
1894 msgstr ""
1895
1896 #. type: textblock
1897 #: ../cat/virt-ls.pod:406
1898 msgid "Display time fields as seconds before now (negative if in the future)."
1899 msgstr ""
1900
1901 #. type: =item
1902 #: ../cat/virt-ls.pod:411
1903 msgid "B<--time-t>"
1904 msgstr ""
1905
1906 #. type: textblock
1907 #: ../cat/virt-ls.pod:413
1908 msgid "Display time fields as seconds since the Unix epoch."
1909 msgstr ""
1910
1911 #. type: =item
1912 #: ../cat/virt-ls.pod:418
1913 msgid "B<--uids>"
1914 msgstr ""
1915
1916 #. type: textblock
1917 #: ../cat/virt-ls.pod:420
1918 msgid "Display UID and GID fields."
1919 msgstr ""
1920
1921 #. type: textblock
1922 #: ../cat/virt-ls.pod:445
1923 msgid "Previous versions of virt-ls allowed you to write either:"
1924 msgstr ""
1925
1926 #. type: verbatim
1927 #: ../cat/virt-ls.pod:447
1928 #, no-wrap
1929 msgid ""
1930 " virt-ls disk.img [disk.img ...] /dir\n"
1931 "\n"
1932 msgstr ""
1933
1934 #. type: verbatim
1935 #: ../cat/virt-ls.pod:451
1936 #, no-wrap
1937 msgid ""
1938 " virt-ls guestname /dir\n"
1939 "\n"
1940 msgstr ""
1941
1942 #. type: textblock
1943 #: ../cat/virt-ls.pod:492
1944 msgid ""
1945 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, "
1946 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
1947 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1948 msgstr ""
1949
1950 #. type: textblock
1951 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369 ../rescue/virt-rescue.pod:298
1952 msgid "Copyright (C) 2009-2011 Red Hat Inc."
1953 msgstr ""
1954
1955 #. type: textblock
1956 #: ../df/virt-df.pod:5
1957 msgid "virt-df - Display free space on virtual filesystems"
1958 msgstr ""
1959
1960 #. type: verbatim
1961 #: ../df/virt-df.pod:9
1962 #, no-wrap
1963 msgid ""
1964 " virt-df [--options]\n"
1965 "\n"
1966 msgstr ""
1967
1968 #. type: verbatim
1969 #: ../df/virt-df.pod:11
1970 #, no-wrap
1971 msgid ""
1972 " virt-df [--options] -d domname\n"
1973 "\n"
1974 msgstr ""
1975
1976 #. type: verbatim
1977 #: ../df/virt-df.pod:13
1978 #, no-wrap
1979 msgid ""
1980 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
1981 "\n"
1982 msgstr ""
1983
1984 #. type: verbatim
1985 #: ../df/virt-df.pod:17
1986 #, no-wrap
1987 msgid ""
1988 " virt-df [--options] domname\n"
1989 "\n"
1990 msgstr ""
1991
1992 #. type: verbatim
1993 #: ../df/virt-df.pod:19
1994 #, no-wrap
1995 msgid ""
1996 " virt-df [--options] disk.img [disk.img ...]\n"
1997 "\n"
1998 msgstr ""
1999
2000 #. type: textblock
2001 #: ../df/virt-df.pod:23
2002 msgid ""
2003 "C<virt-df> is a command line tool to display free space on virtual machine "
2004 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2005 "allocated to a virtual machine, but can look inside disk images to see how "
2006 "much space is really being used."
2007 msgstr ""
2008
2009 #. type: textblock
2010 #: ../df/virt-df.pod:28
2011 msgid ""
2012 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2013 "to get a list of all active and inactive guests, and performs a C<df>-type "
2014 "operation on each one in turn, printing out the results."
2015 msgstr ""
2016
2017 #. type: textblock
2018 #: ../df/virt-df.pod:32
2019 msgid ""
2020 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a "
2021 "C<df>-type operation on either the single named libvirt domain, or on the "
2022 "disk image(s) listed on the command line (which must all belong to a single "
2023 "VM).  In this mode (with arguments), C<virt-df> will I<only work for a "
2024 "single guest>.  If you want to run on multiple guests, then you have to "
2025 "invoke C<virt-df> multiple times."
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../df/virt-df.pod:39
2030 msgid ""
2031 "Use the I<--csv> option to get a format which can be easily parsed by other "
2032 "programs.  Other options are similar to the standard L<df(1)> command."
2033 msgstr ""
2034
2035 #. type: textblock
2036 #: ../df/virt-df.pod:45
2037 msgid ""
2038 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2039 "output human-readable:"
2040 msgstr ""
2041
2042 #. type: verbatim
2043 #: ../df/virt-df.pod:48
2044 #, no-wrap
2045 msgid ""
2046 " # virt-df -d F14x64 -h\n"
2047 " Filesystem                       Size     Used  Available  Use%\n"
2048 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2049 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2050 "\n"
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../df/virt-df.pod:53
2055 msgid "Show disk usage for a disk image file called C<test.img>:"
2056 msgstr ""
2057
2058 #. type: verbatim
2059 #: ../df/virt-df.pod:55
2060 #, no-wrap
2061 msgid ""
2062 " $ virt-df -a test1.img\n"
2063 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2064 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2065 "\n"
2066 msgstr ""
2067
2068 #. type: verbatim
2069 #: ../df/virt-df.pod:112
2070 #, no-wrap
2071 msgid ""
2072 " virt-df --format=raw -a disk.img\n"
2073 "\n"
2074 msgstr ""
2075
2076 #. type: verbatim
2077 #: ../df/virt-df.pod:116
2078 #, no-wrap
2079 msgid ""
2080 " virt-df --format=raw -a disk.img --format -a another.img\n"
2081 "\n"
2082 msgstr ""
2083
2084 #. type: textblock
2085 #: ../df/virt-df.pod:129
2086 msgid "Print sizes in human-readable format."
2087 msgstr ""
2088
2089 #. type: textblock
2090 #: ../df/virt-df.pod:131
2091 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2092 msgstr ""
2093
2094 #. type: =item
2095 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2096 msgid "B<-i>"
2097 msgstr ""
2098
2099 #. type: =item
2100 #: ../df/virt-df.pod:135
2101 msgid "B<--inodes>"
2102 msgstr ""
2103
2104 #. type: textblock
2105 #: ../df/virt-df.pod:137
2106 msgid "Print inodes instead of blocks."
2107 msgstr ""
2108
2109 #. type: =item
2110 #: ../df/virt-df.pod:139
2111 msgid "B<--one-per-guest>"
2112 msgstr ""
2113
2114 #. type: textblock
2115 #: ../df/virt-df.pod:141
2116 msgid ""
2117 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2118 "disks from several guests to a single libguestfs appliance."
2119 msgstr ""
2120
2121 #. type: textblock
2122 #: ../df/virt-df.pod:144
2123 msgid "You might use this option in the following circumstances:"
2124 msgstr ""
2125
2126 #. type: =item
2127 #: ../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:1938 ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952 ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966 ../fish/guestfish.pod:445 ../fish/guestfish.pod:449 ../fish/guestfish.pod:453 ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388 ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864 ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878 ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892 ../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:1064 ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077 ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112 ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653 ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764 ../src/guestfs.pod:1774 ../src/guestfs.pod:2048 ../src/guestfs.pod:2053 ../src/guestfs.pod:2059 ../src/guestfs.pod:2067 ../src/guestfs.pod:2421 ../src/guestfs.pod:2427 ../src/guestfs.pod:2432 ../src/guestfs.pod:2438 ../src/guestfs.pod:2819 ../src/guestfs.pod:2824 ../src/guestfs.pod:2828 ../src/guestfs.pod:2832 ../src/guestfs.pod:2836 ../src/guestfs.pod:2850 ../src/guestfs.pod:2855 ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3088 ../src/guestfs.pod:3092 ../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
2128 msgid "*"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../df/virt-df.pod:150
2133 msgid ""
2134 "If you think an untrusted guest might actively try to exploit the libguestfs "
2135 "appliance kernel, then this prevents one guest from interfering with the "
2136 "stats printed for another guest."
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../df/virt-df.pod:156
2141 msgid ""
2142 "If the kernel has a bug which stops it from accessing a filesystem in one "
2143 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2144 "and report stats for further guests."
2145 msgstr ""
2146
2147 #. type: textblock
2148 #: ../df/virt-df.pod:165
2149 msgid ""
2150 "Print UUIDs instead of names.  This is useful for following a guest even "
2151 "when the guest is migrated or renamed, or when two guests happen to have the "
2152 "same name."
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../df/virt-df.pod:169
2157 msgid ""
2158 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2159 "images, we still print the disk image name even when this option is "
2160 "specified."
2161 msgstr ""
2162
2163 #. type: textblock
2164 #: ../df/virt-df.pod:224
2165 msgid ""
2166 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
2167 "L<http://libguestfs.org/>."
2168 msgstr ""
2169
2170 #. type: textblock
2171 #: ../edit/virt-edit.pod:5
2172 msgid "virt-edit - Edit a file in a virtual machine"
2173 msgstr ""
2174
2175 #. type: verbatim
2176 #: ../edit/virt-edit.pod:9
2177 #, no-wrap
2178 msgid ""
2179 " virt-edit [--options] -d domname file [file ...]\n"
2180 "\n"
2181 msgstr ""
2182
2183 #. type: verbatim
2184 #: ../edit/virt-edit.pod:11
2185 #, no-wrap
2186 msgid ""
2187 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2188 "\n"
2189 msgstr ""
2190
2191 #. type: verbatim
2192 #: ../edit/virt-edit.pod:13
2193 #, no-wrap
2194 msgid ""
2195 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2196 "\n"
2197 msgstr ""
2198
2199 #. type: verbatim
2200 #: ../edit/virt-edit.pod:17
2201 #, no-wrap
2202 msgid ""
2203 " virt-edit domname file\n"
2204 "\n"
2205 msgstr ""
2206
2207 #. type: verbatim
2208 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2209 #, no-wrap
2210 msgid ""
2211 " virt-edit disk.img [disk.img ...] file\n"
2212 "\n"
2213 msgstr ""
2214
2215 #. type: =head1
2216 #: ../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
2217 msgid "WARNING"
2218 msgstr ""
2219
2220 #. type: textblock
2221 #: ../edit/virt-edit.pod:23
2222 msgid ""
2223 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2224 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2225 "doing this, but doesn't catch all cases."
2226 msgstr ""
2227
2228 #. type: textblock
2229 #: ../edit/virt-edit.pod:29
2230 msgid ""
2231 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2232 "exists in the named virtual machine (or disk image)."
2233 msgstr ""
2234
2235 #. type: textblock
2236 #: ../edit/virt-edit.pod:32
2237 msgid ""
2238 "Multiple filenames can be given, in which case they are each edited in "
2239 "turn.  Each filename must be a full path, starting at the root directory "
2240 "(starting with '/')."
2241 msgstr ""
2242
2243 #. type: textblock
2244 #: ../edit/virt-edit.pod:36
2245 msgid "If you want to just view a file, use L<virt-cat(1)>."
2246 msgstr ""
2247
2248 #. type: textblock
2249 #: ../edit/virt-edit.pod:38
2250 msgid ""
2251 "For more complex cases you should look at the L<guestfish(1)> tool (see "
2252 "L</USING GUESTFISH> below)."
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../edit/virt-edit.pod:41
2257 msgid ""
2258 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2259 "that and much more."
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../edit/virt-edit.pod:46
2264 msgid "Edit the named files interactively:"
2265 msgstr ""
2266
2267 #. type: verbatim
2268 #: ../edit/virt-edit.pod:48
2269 #, no-wrap
2270 msgid ""
2271 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2272 "\n"
2273 msgstr ""
2274
2275 #. type: verbatim
2276 #: ../edit/virt-edit.pod:50
2277 #, no-wrap
2278 msgid ""
2279 " virt-edit -d mydomain /etc/passwd\n"
2280 "\n"
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../edit/virt-edit.pod:52
2285 msgid "For Windows guests, some Windows paths are understood:"
2286 msgstr ""
2287
2288 #. type: verbatim
2289 #: ../edit/virt-edit.pod:54
2290 #, no-wrap
2291 msgid ""
2292 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2293 "\n"
2294 msgstr ""
2295
2296 #. type: textblock
2297 #: ../edit/virt-edit.pod:56
2298 msgid ""
2299 "If Perl is installed, you can also edit files non-interactively (see "
2300 "L</NON-INTERACTIVE EDITING> below).  To change the init default level to 5:"
2301 msgstr ""
2302
2303 #. type: verbatim
2304 #: ../edit/virt-edit.pod:60
2305 #, no-wrap
2306 msgid ""
2307 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2308 "\n"
2309 msgstr ""
2310
2311 #. type: =item
2312 #: ../edit/virt-edit.pod:81
2313 msgid "B<-b> extension"
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../edit/virt-edit.pod:83
2318 msgid "B<--backup> extension"
2319 msgstr ""
2320
2321 #. type: textblock
2322 #: ../edit/virt-edit.pod:85
2323 msgid ""
2324 "Create a backup of the original file I<in the guest disk image>.  The backup "
2325 "has the original filename with C<extension> added."
2326 msgstr ""
2327
2328 #. type: textblock
2329 #: ../edit/virt-edit.pod:88
2330 msgid ""
2331 "Usually the first character of C<extension> would be a dot C<.> so you would "
2332 "write:"
2333 msgstr ""
2334
2335 #. type: verbatim
2336 #: ../edit/virt-edit.pod:91
2337 #, no-wrap
2338 msgid ""
2339 " virt-edit -b .orig [etc]\n"
2340 "\n"
2341 msgstr ""
2342
2343 #. type: textblock
2344 #: ../edit/virt-edit.pod:93
2345 msgid "By default, no backup file is made."
2346 msgstr ""
2347
2348 #. type: =item
2349 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181 ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74 ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78 ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2350 msgid "B<-c URI>"
2351 msgstr ""
2352
2353 #. type: =item
2354 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183 ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76 ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80 ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2355 msgid "B<--connect URI>"
2356 msgstr ""
2357
2358 #. type: textblock
2359 #: ../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
2360 msgid ""
2361 "If you specify guest block devices directly, then libvirt is not used at "
2362 "all."
2363 msgstr ""
2364
2365 #. type: textblock
2366 #: ../edit/virt-edit.pod:114
2367 msgid ""
2368 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2369 "off so you cannot see what you are typing.  If you are not worried about "
2370 "Tempest attacks and there is no one else in the room you can specify this "
2371 "flag to see what you are typing."
2372 msgstr ""
2373
2374 #. type: =item
2375 #: ../edit/virt-edit.pod:119
2376 msgid "B<-e> EXPR"
2377 msgstr ""
2378
2379 #. type: =item
2380 #: ../edit/virt-edit.pod:121
2381 msgid "B<--expr> EXPR"
2382 msgstr ""
2383
2384 #. type: textblock
2385 #: ../edit/virt-edit.pod:123
2386 msgid ""
2387 "Instead of launching the external editor, non-interactively apply the Perl "
2388 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2389 "EDITING> below."
2390 msgstr ""
2391
2392 #. type: textblock
2393 #: ../edit/virt-edit.pod:127
2394 msgid ""
2395 "Be careful to properly quote the expression to prevent it from being altered "
2396 "by the shell."
2397 msgstr ""
2398
2399 #. type: textblock
2400 #: ../edit/virt-edit.pod:130
2401 msgid "Note that this option is only available when Perl 5 is installed."
2402 msgstr ""
2403
2404 #. type: =item
2405 #: ../edit/virt-edit.pod:132
2406 msgid "B<--format> raw|qcow2|..."
2407 msgstr ""
2408
2409 #. type: verbatim
2410 #: ../edit/virt-edit.pod:143
2411 #, no-wrap
2412 msgid ""
2413 " virt-edit --format=raw -a disk.img file\n"
2414 "\n"
2415 msgstr ""
2416
2417 #. type: verbatim
2418 #: ../edit/virt-edit.pod:147
2419 #, no-wrap
2420 msgid ""
2421 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
2422 "\n"
2423 msgstr ""
2424
2425 #. type: textblock
2426 #: ../edit/virt-edit.pod:181
2427 msgid "Previous versions of virt-edit allowed you to write either:"
2428 msgstr ""
2429
2430 #. type: verbatim
2431 #: ../edit/virt-edit.pod:187
2432 #, no-wrap
2433 msgid ""
2434 " virt-edit guestname file\n"
2435 "\n"
2436 msgstr ""
2437
2438 #. type: =head1
2439 #: ../edit/virt-edit.pod:195
2440 msgid "NON-INTERACTIVE EDITING"
2441 msgstr ""
2442
2443 #. type: textblock
2444 #: ../edit/virt-edit.pod:197
2445 msgid ""
2446 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
2447 "administrator can interactively edit the file."
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../edit/virt-edit.pod:200
2452 msgid ""
2453 "There are two ways also to use C<virt-edit> from scripts in order to make "
2454 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
2455 "like this, it's less error-prone to write scripts directly using the "
2456 "libguestfs API and Augeas for configuration file editing.)"
2457 msgstr ""
2458
2459 #. type: textblock
2460 #: ../edit/virt-edit.pod:206
2461 msgid ""
2462 "The first method is to temporarily set C<$EDITOR> to any script or program "
2463 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
2464 "update C<tmpfile> in place however it likes."
2465 msgstr ""
2466
2467 #. type: textblock
2468 #: ../edit/virt-edit.pod:210
2469 msgid ""
2470 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
2471 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
2472 "instances of C<foo> with C<bar> in a file:"
2473 msgstr ""
2474
2475 #. type: verbatim
2476 #: ../edit/virt-edit.pod:214
2477 #, no-wrap
2478 msgid ""
2479 " virt-edit -d domname filename -e 's/foo/bar/'\n"
2480 "\n"
2481 msgstr ""
2482
2483 #. type: textblock
2484 #: ../edit/virt-edit.pod:216
2485 msgid ""
2486 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
2487 "For example to delete root's password you could do:"
2488 msgstr ""
2489
2490 #. type: verbatim
2491 #: ../edit/virt-edit.pod:219
2492 #, no-wrap
2493 msgid ""
2494 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
2495 "\n"
2496 msgstr ""
2497
2498 #. type: textblock
2499 #: ../edit/virt-edit.pod:221
2500 msgid ""
2501 "What really happens is that the snippet is evaluated as a Perl expression "
2502 "for each line of the file.  The line, including the final C<\\n>, is passed "
2503 "in C<$_> and the expression should update C<$_> or leave it unchanged."
2504 msgstr ""
2505
2506 #. type: textblock
2507 #: ../edit/virt-edit.pod:226
2508 msgid ""
2509 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
2510 "C<apache> user account from the password file you can do:"
2511 msgstr ""
2512
2513 #. type: verbatim
2514 #: ../edit/virt-edit.pod:229
2515 #, no-wrap
2516 msgid ""
2517 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
2518 "\n"
2519 msgstr ""
2520
2521 #. type: textblock
2522 #: ../edit/virt-edit.pod:231
2523 msgid ""
2524 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
2525 "the end of the file is rather difficult this way since there is no concept "
2526 "of \"last line of the file\" - your expression just doesn't get called "
2527 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
2528 "want to do this."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../edit/virt-edit.pod:237
2533 msgid ""
2534 "The variable C<$lineno> contains the current line number.  As is "
2535 "traditional, the first line in the file is number C<1>."
2536 msgstr ""
2537
2538 #. type: textblock
2539 #: ../edit/virt-edit.pod:240
2540 msgid ""
2541 "The return value from the expression is ignored, but the expression may call "
2542 "C<die> in order to abort the whole program, leaving the original file "
2543 "untouched."
2544 msgstr ""
2545
2546 #. type: textblock
2547 #: ../edit/virt-edit.pod:244
2548 msgid ""
2549 "Remember when matching the end of a line that C<$_> may contain the final "
2550 "C<\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
2551 "newline then neither of these.  Thus to match or substitute some text at the "
2552 "end of a line, use this regular expression:"
2553 msgstr ""
2554
2555 #. type: verbatim
2556 #: ../edit/virt-edit.pod:249
2557 #, no-wrap
2558 msgid ""
2559 " /some text(\\r?\\n)?$/\n"
2560 "\n"
2561 msgstr ""
2562
2563 #. type: textblock
2564 #: ../edit/virt-edit.pod:251
2565 msgid ""
2566 "Alternately, use the perl C<chomp> function, being careful not to chomp "
2567 "C<$_> itself (since that would remove all newlines from the file):"
2568 msgstr ""
2569
2570 #. type: verbatim
2571 #: ../edit/virt-edit.pod:255
2572 #, no-wrap
2573 msgid ""
2574 " my $m = $_; chomp $m; $m =~ /some text$/\n"
2575 "\n"
2576 msgstr ""
2577
2578 #. type: =head1
2579 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
2580 msgid "WINDOWS PATHS"
2581 msgstr ""
2582
2583 #. type: textblock
2584 #: ../edit/virt-edit.pod:259
2585 msgid ""
2586 "C<virt-edit> has a limited ability to understand Windows drive letters and "
2587 "paths (eg. C<E:\\foo\\bar.txt>)."
2588 msgstr ""
2589
2590 #. type: textblock
2591 #: ../edit/virt-edit.pod:262
2592 msgid "If and only if the guest is running Windows then:"
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../edit/virt-edit.pod:268
2597 msgid ""
2598 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
2599 "to the correct filesystem."
2600 msgstr ""
2601
2602 #. type: textblock
2603 #: ../edit/virt-edit.pod:273
2604 msgid ""
2605 "Any backslash (C<\\>) characters in the path are replaced with forward "
2606 "slashes so that libguestfs can process it."
2607 msgstr ""
2608
2609 #. type: textblock
2610 #: ../edit/virt-edit.pod:278
2611 msgid ""
2612 "The path is resolved case insensitively to locate the file that should be "
2613 "edited."
2614 msgstr ""
2615
2616 #. type: textblock
2617 #: ../edit/virt-edit.pod:283
2618 msgid "There are some known shortcomings:"
2619 msgstr ""
2620
2621 #. type: textblock
2622 #: ../edit/virt-edit.pod:289
2623 msgid "Some NTFS symbolic links may not be followed correctly."
2624 msgstr ""
2625
2626 #. type: textblock
2627 #: ../edit/virt-edit.pod:293
2628 msgid "NTFS junction points that cross filesystems are not followed."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../edit/virt-edit.pod:299
2633 msgid ""
2634 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
2635 "C<virt-edit> doesn't work."
2636 msgstr ""
2637
2638 #. type: textblock
2639 #: ../edit/virt-edit.pod:302
2640 msgid "Using C<virt-edit> is approximately equivalent to doing:"
2641 msgstr ""
2642
2643 #. type: verbatim
2644 #: ../edit/virt-edit.pod:304
2645 #, no-wrap
2646 msgid ""
2647 " guestfish --rw -i -d domname edit /file\n"
2648 "\n"
2649 msgstr ""
2650
2651 #. type: textblock
2652 #: ../edit/virt-edit.pod:306
2653 msgid ""
2654 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
2655 "path to the file."
2656 msgstr ""
2657
2658 #. type: textblock
2659 #: ../edit/virt-edit.pod:309
2660 msgid ""
2661 "The command above uses libguestfs's guest inspection feature and so does not "
2662 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
2663 "disk images that don't contain guests.  To edit a file on a disk image "
2664 "directly, use:"
2665 msgstr ""
2666
2667 #. type: verbatim
2668 #: ../edit/virt-edit.pod:314
2669 #, no-wrap
2670 msgid ""
2671 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
2672 "\n"
2673 msgstr ""
2674
2675 #. type: textblock
2676 #: ../edit/virt-edit.pod:316
2677 msgid ""
2678 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
2679 "the disk image to edit, and C</file> is the full path to the file."
2680 msgstr ""
2681
2682 #. type: textblock
2683 #: ../edit/virt-edit.pod:320
2684 msgid ""
2685 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
2686 "C<write> or C<upload> instead:"
2687 msgstr ""
2688
2689 #. type: verbatim
2690 #: ../edit/virt-edit.pod:323
2691 #, no-wrap
2692 msgid ""
2693 " guestfish --rw -i -d domname touch /newfile\n"
2694 "\n"
2695 msgstr ""
2696
2697 #. type: verbatim
2698 #: ../edit/virt-edit.pod:325
2699 #, no-wrap
2700 msgid ""
2701 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
2702 "\n"
2703 msgstr ""
2704
2705 #. type: verbatim
2706 #: ../edit/virt-edit.pod:327
2707 #, no-wrap
2708 msgid ""
2709 " guestfish --rw -i -d domname upload localfile /newfile\n"
2710 "\n"
2711 msgstr ""
2712
2713 #. type: =head1
2714 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086 ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2966 ../test-tool/libguestfs-test-tool.pod:82
2715 msgid "ENVIRONMENT VARIABLES"
2716 msgstr ""
2717
2718 #. type: =item
2719 #: ../edit/virt-edit.pod:333
2720 msgid "C<EDITOR>"
2721 msgstr ""
2722
2723 #. type: textblock
2724 #: ../edit/virt-edit.pod:335
2725 msgid ""
2726 "If set, this string is used as the editor.  It may contain arguments, "
2727 "eg. C<\"emacs -nw\">"
2728 msgstr ""
2729
2730 #. type: textblock
2731 #: ../edit/virt-edit.pod:338
2732 msgid "If not set, C<vi> is used."
2733 msgstr ""
2734
2735 #. type: textblock
2736 #: ../edit/virt-edit.pod:351
2737 msgid ""
2738 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
2739 "L<virt-tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
2740 "L<Sys::Virt(3)>, L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
2741 msgstr ""
2742
2743 #. type: textblock
2744 #: ../examples/guestfs-examples.pod:5
2745 msgid "guestfs-examples - Examples of using libguestfs from C"
2746 msgstr ""
2747
2748 #. type: verbatim
2749 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
2750 #, no-wrap
2751 msgid ""
2752 " #include <guestfs.h>\n"
2753 " \n"
2754 msgstr ""
2755
2756 #. type: verbatim
2757 #: ../examples/guestfs-examples.pod:11
2758 #, no-wrap
2759 msgid ""
2760 " guestfs_h *g = guestfs_create ();\n"
2761 " guestfs_add_drive_ro (g, \"disk.img\");\n"
2762 " guestfs_launch (g);\n"
2763 "\n"
2764 msgstr ""
2765
2766 #. type: verbatim
2767 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
2768 #, no-wrap
2769 msgid ""
2770 " cc prog.c -o prog -lguestfs\n"
2771 "or:\n"
2772 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
2773 "\n"
2774 msgstr ""
2775
2776 #. type: textblock
2777 #: ../examples/guestfs-examples.pod:21
2778 msgid ""
2779 "This manual page contains examples of calling libguestfs from the C "
2780 "programming language.  If you are not familiar with using libguestfs, you "
2781 "also need to read L<guestfs(3)>."
2782 msgstr ""
2783
2784 #. type: =head1
2785 #: ../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
2786 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
2787 msgstr ""
2788
2789 #. type: textblock
2790 #: ../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
2791 msgid "@EXAMPLE1@"
2792 msgstr ""
2793
2794 #. type: =head1
2795 #: ../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
2796 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
2797 msgstr ""
2798
2799 #. type: textblock
2800 #: ../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
2801 msgid "@EXAMPLE2@"
2802 msgstr ""
2803
2804 #. type: textblock
2805 #: ../examples/guestfs-examples.pod:35
2806 msgid ""
2807 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
2808 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, "
2809 "L<http://libguestfs.org/>."
2810 msgstr ""
2811
2812 #. type: =head1
2813 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396 ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:380 ../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:3099 ../test-tool/libguestfs-test-tool.pod:93
2814 msgid "AUTHORS"
2815 msgstr ""
2816
2817 #. type: textblock
2818 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398 ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316 ../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:3101 ../test-tool/libguestfs-test-tool.pod:95
2819 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96 ../python/examples/guestfs-python.pod:59 ../ruby/examples/guestfs-ruby.pod:53
2824 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
2825 msgstr ""
2826
2827 #. type: textblock
2828 #: ../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
2829 msgid ""
2830 "The examples in this manual page may be freely copied, modified and "
2831 "distributed without any restrictions."
2832 msgstr ""
2833
2834 #. type: textblock
2835 #: ../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:3108
2836 msgid ""
2837 "This library is free software; you can redistribute it and/or modify it "
2838 "under the terms of the GNU Lesser General Public License as published by the "
2839 "Free Software Foundation; either version 2 of the License, or (at your "
2840 "option) any later version."
2841 msgstr ""
2842
2843 #. type: textblock
2844 #: ../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:3113
2845 msgid ""
2846 "This library is distributed in the hope that it will be useful, but WITHOUT "
2847 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
2848 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
2849 "for more details."
2850 msgstr ""
2851
2852 #. type: textblock
2853 #: ../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:3118
2854 msgid ""
2855 "You should have received a copy of the GNU Lesser General Public License "
2856 "along with this library; if not, write to the Free Software Foundation, "
2857 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
2858 msgstr ""
2859
2860 #. type: =end
2861 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
2862 msgid "comment"
2863 msgstr ""
2864
2865 #. type: textblock
2866 #: ../examples/guestfs-recipes.pod:5
2867 msgid ""
2868 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
2869 "here.  The only way which works for both sorts of output is to just write "
2870 "the URL directly.  Do NOT use L<...> for URLs."
2871 msgstr ""
2872
2873 #. type: textblock
2874 #: ../examples/guestfs-recipes.pod:9
2875 msgid ""
2876 "We break with tradition here and don't use ALL CAPS for the section "
2877 "headings, as this makes them much easier to read."
2878 msgstr ""
2879
2880 #. type: textblock
2881 #: ../examples/guestfs-recipes.pod:16
2882 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
2883 msgstr ""
2884
2885 #. type: textblock
2886 #: ../examples/guestfs-recipes.pod:20
2887 msgid ""
2888 "This page contains recipes for and links to things you can do using "
2889 "libguestfs, L<guestfish(1)> and the virt tools."
2890 msgstr ""
2891
2892 #. type: =head1
2893 #: ../examples/guestfs-recipes.pod:23
2894 msgid "Audit a virtual machine for setuid files"
2895 msgstr ""
2896
2897 #. type: textblock
2898 #: ../examples/guestfs-recipes.pod:25
2899 msgid ""
2900 "The link below contains a small program which can be used to audit a Linux "
2901 "virtual machine to see what setuid and setgid files it contains."
2902 msgstr ""
2903
2904 #. type: textblock
2905 #: ../examples/guestfs-recipes.pod:28
2906 msgid "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-files/#content"
2907 msgstr ""
2908
2909 #. type: =head1
2910 #: ../examples/guestfs-recipes.pod:30
2911 msgid "Change the background image in a Windows XP VM"
2912 msgstr ""
2913
2914 #. type: textblock
2915 #: ../examples/guestfs-recipes.pod:32
2916 msgid ""
2917 "The links below explain how to use L<guestfish(1)> to change the background "
2918 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
2919 "be substantially different for each version of Windows."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../examples/guestfs-recipes.pod:37
2924 msgid ""
2925 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html "
2926 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
2927 msgstr ""
2928
2929 #. type: =head1
2930 #: ../examples/guestfs-recipes.pod:40
2931 msgid "Cloning a virtual machine (Linux)"
2932 msgstr ""
2933
2934 #. type: textblock
2935 #: ../examples/guestfs-recipes.pod:42
2936 msgid ""
2937 "The guestfish technique described in the link below works well for most "
2938 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
2939 "slightly."
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../examples/guestfs-recipes.pod:46
2944 msgid "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content"
2945 msgstr ""
2946
2947 #. type: textblock
2948 #: ../examples/guestfs-recipes.pod:48
2949 msgid ""
2950 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
2951 "discussion."
2952 msgstr ""
2953
2954 #. type: textblock
2955 #: ../examples/guestfs-recipes.pod:51
2956 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2957 msgstr ""
2958
2959 #. type: =head1
2960 #: ../examples/guestfs-recipes.pod:53
2961 msgid "Cloning a virtual machine (Windows)"
2962 msgstr ""
2963
2964 #. type: textblock
2965 #: ../examples/guestfs-recipes.pod:55
2966 msgid ""
2967 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
2968 "straightforward.  Currently there is code in the Aeolus Oz project which "
2969 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
2970 "we may add sysprepping ability."
2971 msgstr ""
2972
2973 #. type: textblock
2974 #: ../examples/guestfs-recipes.pod:60
2975 msgid ""
2976 "https://github.com/clalancette/oz "
2977 "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
2978 msgstr ""
2979
2980 #. type: =head1
2981 #: ../examples/guestfs-recipes.pod:63
2982 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../examples/guestfs-recipes.pod:65
2987 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
2988 msgstr ""
2989
2990 #. type: verbatim
2991 #: ../examples/guestfs-recipes.pod:67
2992 #, no-wrap
2993 msgid ""
2994 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
2995 "\n"
2996 msgstr ""
2997
2998 #. type: textblock
2999 #: ../examples/guestfs-recipes.pod:69
3000 msgid "To export just a subdirectory, eg. C</files>, do:"
3001 msgstr ""
3002
3003 #. type: verbatim
3004 #: ../examples/guestfs-recipes.pod:71
3005 #, no-wrap
3006 msgid ""
3007 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3008 "\n"
3009 msgstr ""
3010
3011 #. type: =head1
3012 #: ../examples/guestfs-recipes.pod:73
3013 msgid "Create empty disk images"
3014 msgstr ""
3015
3016 #. type: textblock
3017 #: ../examples/guestfs-recipes.pod:75
3018 msgid ""
3019 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3020 "The useful guide below explains the options available."
3021 msgstr ""
3022
3023 #. type: textblock
3024 #: ../examples/guestfs-recipes.pod:78
3025 msgid "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/#content"
3026 msgstr ""
3027
3028 #. type: =head1
3029 #: ../examples/guestfs-recipes.pod:80
3030 msgid "Dump raw filesystem content from inside a disk image or VM"
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../examples/guestfs-recipes.pod:82
3035 msgid ""
3036 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3037 "filesystem content from any filesystem in a disk image or a VM (even one "
3038 "which is encrypted or buried inside an LV):"
3039 msgstr ""
3040
3041 #. type: verbatim
3042 #: ../examples/guestfs-recipes.pod:86
3043 #, no-wrap
3044 msgid ""
3045 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3046 "\n"
3047 msgstr ""
3048
3049 #. type: verbatim
3050 #: ../examples/guestfs-recipes.pod:88
3051 #, no-wrap
3052 msgid ""
3053 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3054 "\n"
3055 msgstr ""
3056
3057 #. type: textblock
3058 #: ../examples/guestfs-recipes.pod:90
3059 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3060 msgstr ""
3061
3062 #. type: =head1
3063 #: ../examples/guestfs-recipes.pod:92
3064 msgid "Edit grub configuration in a VM"
3065 msgstr ""
3066
3067 #. type: textblock
3068 #: ../examples/guestfs-recipes.pod:94
3069 msgid "You can use this to:"
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../examples/guestfs-recipes.pod:100
3074 msgid "Fix a virtual machine that does not boot."
3075 msgstr ""
3076
3077 #. type: textblock
3078 #: ../examples/guestfs-recipes.pod:104
3079 msgid "Change which kernel is used to boot the VM."
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../examples/guestfs-recipes.pod:108
3084 msgid "Change kernel command line options."
3085 msgstr ""
3086
3087 #. type: textblock
3088 #: ../examples/guestfs-recipes.pod:112
3089 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3090 msgstr ""
3091
3092 #. type: verbatim
3093 #: ../examples/guestfs-recipes.pod:114
3094 #, no-wrap
3095 msgid ""
3096 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3097 "\n"
3098 msgstr ""
3099
3100 #. type: textblock
3101 #: ../examples/guestfs-recipes.pod:116
3102 msgid ""
3103 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3104 "this:"
3105 msgstr ""
3106
3107 #. type: verbatim
3108 #: ../examples/guestfs-recipes.pod:119
3109 #, no-wrap
3110 msgid ""
3111 " virt-rescue -d BrokenGuest\n"
3112 "\n"
3113 msgstr ""
3114
3115 #. type: =head1
3116 #: ../examples/guestfs-recipes.pod:121
3117 msgid "Export any directory from a VM"
3118 msgstr ""
3119
3120 #. type: textblock
3121 #: ../examples/guestfs-recipes.pod:123
3122 msgid "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3123 msgstr ""
3124
3125 #. type: verbatim
3126 #: ../examples/guestfs-recipes.pod:126
3127 #, no-wrap
3128 msgid ""
3129 " virt-copy-out -d Guest /home .\n"
3130 "\n"
3131 msgstr ""
3132
3133 #. type: textblock
3134 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9 ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640 ../tools/virt-win-reg.pl:706
3135 msgid "Notes:"
3136 msgstr ""
3137
3138 #. type: textblock
3139 #: ../examples/guestfs-recipes.pod:134
3140 msgid ""
3141 "The final dot of the command is not a printing error.  It means we want to "
3142 "copy out to the current directory."
3143 msgstr ""
3144
3145 #. type: textblock
3146 #: ../examples/guestfs-recipes.pod:139
3147 msgid "This creates a directory called C<home> under the current directory."
3148 msgstr ""
3149
3150 #. type: textblock
3151 #: ../examples/guestfs-recipes.pod:143
3152 msgid ""
3153 "If the guest is a Windows guest then you can use drive letters and "
3154 "backslashes, but you must prefix the path with C<win:> and quote it to "
3155 "protect it from the shell, like this:"
3156 msgstr ""
3157
3158 #. type: verbatim
3159 #: ../examples/guestfs-recipes.pod:147
3160 #, no-wrap
3161 msgid ""
3162 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3163 "\n"
3164 msgstr ""
3165
3166 #. type: textblock
3167 #: ../examples/guestfs-recipes.pod:149
3168 msgid "To get the output as a compressed tarball, do:"
3169 msgstr ""
3170
3171 #. type: verbatim
3172 #: ../examples/guestfs-recipes.pod:151
3173 #, no-wrap
3174 msgid ""
3175 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3176 "\n"
3177 msgstr ""
3178
3179 #. type: textblock
3180 #: ../examples/guestfs-recipes.pod:153
3181 msgid ""
3182 "Although it sounds tempting, this is usually not a reliable way to get a "
3183 "backup from a running guest.  See the entry in the FAQ: "
3184 "http://libguestfs.org/FAQ.html#backup"
3185 msgstr ""
3186
3187 #. type: =head1
3188 #: ../examples/guestfs-recipes.pod:157
3189 msgid "Find out which user is using the most space"
3190 msgstr ""
3191
3192 #. type: textblock
3193 #: ../examples/guestfs-recipes.pod:159
3194 msgid ""
3195 "This simple script examines a Linux guest to find out which user is using "
3196 "the most space in their home directory:"
3197 msgstr ""
3198
3199 #. type: verbatim
3200 #: ../examples/guestfs-recipes.pod:162
3201 #, no-wrap
3202 msgid ""
3203 " #!/bin/sh -\n"
3204 " \n"
3205 msgstr ""
3206
3207 #. type: verbatim
3208 #: ../examples/guestfs-recipes.pod:164
3209 #, no-wrap
3210 msgid ""
3211 " set -e\n"
3212 " \n"
3213 msgstr ""
3214
3215 #. type: verbatim
3216 #: ../examples/guestfs-recipes.pod:166
3217 #, no-wrap
3218 msgid ""
3219 " vm=\"$1\"\n"
3220 " dir=/home\n"
3221 " \n"
3222 msgstr ""
3223
3224 #. type: verbatim
3225 #: ../examples/guestfs-recipes.pod:169
3226 #, no-wrap
3227 msgid ""
3228 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3229 " \n"
3230 msgstr ""
3231
3232 #. type: verbatim
3233 #: ../examples/guestfs-recipes.pod:171
3234 #, no-wrap
3235 msgid ""
3236 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3237 "     echo -n \"$dir/$d\"\n"
3238 "     echo -ne '\\t'\n"
3239 "     guestfish --remote du \"$dir/$d\";\n"
3240 " done | sort -nr -k 2\n"
3241 " \n"
3242 msgstr ""
3243
3244 #. type: verbatim
3245 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3246 #, no-wrap
3247 msgid ""
3248 " guestfish --remote exit\n"
3249 "\n"
3250 msgstr ""
3251
3252 #. type: =head1
3253 #: ../examples/guestfs-recipes.pod:179
3254 msgid "Get DHCP address from a VM"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../examples/guestfs-recipes.pod:181
3259 msgid ""
3260 "The link below explains the many different possible techniques for getting "
3261 "the last assigned DHCP address of a virtual machine."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../examples/guestfs-recipes.pod:184
3266 msgid "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-a-virtual-machine-disk-image/#content"
3267 msgstr ""
3268
3269 #. type: textblock
3270 #: ../examples/guestfs-recipes.pod:186
3271 msgid ""
3272 "In the libguestfs source examples directory you will find the latest version "
3273 "of the C<virt-dhcp-address.c> program."
3274 msgstr ""
3275
3276 #. type: =head1
3277 #: ../examples/guestfs-recipes.pod:189
3278 msgid "Get the operating system product name string"
3279 msgstr ""
3280
3281 #. type: textblock
3282 #: ../examples/guestfs-recipes.pod:191
3283 msgid "Save the following script into a file called C<product-name.sh>:"
3284 msgstr ""
3285
3286 #. type: verbatim
3287 #: ../examples/guestfs-recipes.pod:193
3288 #, no-wrap
3289 msgid ""
3290 " #!/bin/sh -\n"
3291 " set -e\n"
3292 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3293 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3294 " guestfish --remote inspect-get-product-name \"$root\"\n"
3295 " guestfish --remote exit\n"
3296 "\n"
3297 msgstr ""
3298
3299 #. type: textblock
3300 #: ../examples/guestfs-recipes.pod:200
3301 msgid "Make the script executable and run it on a named guest:"
3302 msgstr ""
3303
3304 #. type: verbatim
3305 #: ../examples/guestfs-recipes.pod:202
3306 #, no-wrap
3307 msgid ""
3308 " # product-name.sh RHEL60x64\n"
3309 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
3310 "\n"
3311 msgstr ""
3312
3313 #. type: textblock
3314 #: ../examples/guestfs-recipes.pod:205
3315 msgid ""
3316 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
3317 "C<xpath> command line tool or from your favourite programming language:"
3318 msgstr ""
3319
3320 #. type: verbatim
3321 #: ../examples/guestfs-recipes.pod:209
3322 #, no-wrap
3323 msgid ""
3324 " # virt-inspector RHEL60x64 > xml\n"
3325 " # xpath '//product_name' < xml\n"
3326 " Found 1 nodes:\n"
3327 " -- NODE --\n"
3328 " <product_name>Red Hat Enterprise Linux Server release 6.0 "
3329 "(Santiago)</product_name>\n"
3330 "\n"
3331 msgstr ""
3332
3333 #. type: =head1
3334 #: ../examples/guestfs-recipes.pod:215
3335 msgid "Get the default boot kernel for a Linux VM"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../examples/guestfs-recipes.pod:217
3340 msgid ""
3341 "The link below contains a program to print the default boot kernel for a "
3342 "Linux VM."
3343 msgstr ""
3344
3345 #. type: textblock
3346 #: ../examples/guestfs-recipes.pod:220
3347 msgid "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-kernel-for-a-vm/#content"
3348 msgstr ""
3349
3350 #. type: textblock
3351 #: ../examples/guestfs-recipes.pod:222
3352 msgid ""
3353 "It uses Augeas, and the technique is generally applicable for many different "
3354 "tasks, such as:"
3355 msgstr ""
3356
3357 #. type: textblock
3358 #: ../examples/guestfs-recipes.pod:229
3359 msgid "listing the user accounts in the guest"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../examples/guestfs-recipes.pod:233
3364 msgid "what repositories is it configured to use"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../examples/guestfs-recipes.pod:237
3369 msgid "what NTP servers does it connect to"
3370 msgstr ""
3371
3372 #. type: textblock
3373 #: ../examples/guestfs-recipes.pod:241
3374 msgid "what were the boot messages last time it booted"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../examples/guestfs-recipes.pod:245
3379 msgid "listing who was logged in recently"
3380 msgstr ""
3381
3382 #. type: textblock
3383 #: ../examples/guestfs-recipes.pod:249
3384 msgid "http://augeas.net/"
3385 msgstr ""
3386
3387 #. type: =head1
3388 #: ../examples/guestfs-recipes.pod:251
3389 msgid "Install RPMs in a guest"
3390 msgstr ""
3391
3392 #. type: textblock
3393 #: ../examples/guestfs-recipes.pod:253
3394 msgid ""
3395 "The link below contains a method to install RPMs in a guest.  In fact the "
3396 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
3397 "installs them next time the guest is booted.  You could use this technique "
3398 "to install vital security updates in an offline guest."
3399 msgstr ""
3400
3401 #. type: textblock
3402 #: ../examples/guestfs-recipes.pod:259
3403 msgid "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
3404 msgstr ""
3405
3406 #. type: =head1
3407 #: ../examples/guestfs-recipes.pod:261
3408 msgid "List applications installed in a VM"
3409 msgstr ""
3410
3411 #. type: textblock
3412 #: ../examples/guestfs-recipes.pod:263
3413 msgid "Save the following to a file C<list-apps.sh>:"
3414 msgstr ""
3415
3416 #. type: verbatim
3417 #: ../examples/guestfs-recipes.pod:265
3418 #, no-wrap
3419 msgid ""
3420 " #!/bin/sh -\n"
3421 " set -e\n"
3422 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
3423 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
3424 " guestfish --remote inspect-list-applications \"$root\"\n"
3425 " guestfish --remote exit\n"
3426 "\n"
3427 msgstr ""
3428
3429 #. type: textblock
3430 #: ../examples/guestfs-recipes.pod:272
3431 msgid ""
3432 "Make the file executable and then you can run it on any named virtual "
3433 "machine:"
3434 msgstr ""
3435
3436 #. type: verbatim
3437 #: ../examples/guestfs-recipes.pod:275
3438 #, no-wrap
3439 msgid ""
3440 " # list-apps.sh WinGuest\n"
3441 " [0] = {\n"
3442 "   app_name: Mozilla Firefox (3.6.12)\n"
3443 "   app_display_name: Mozilla Firefox (3.6.12)\n"
3444 "   app_epoch: 0\n"
3445 "   app_version: 3.6.12 (en-GB)\n"
3446 "   app_release:\n"
3447 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
3448 "   app_trans_path:\n"
3449 "   app_publisher: Mozilla\n"
3450 "   app_url: http://www.mozilla.com/en-GB/\n"
3451 "   app_source_package:\n"
3452 "   app_summary:\n"
3453 "   app_description: Mozilla Firefox\n"
3454 " }\n"
3455 " [1] = {\n"
3456 "   app_name: VLC media player\n"
3457 "   app_display_name: VLC media player 1.1.5\n"
3458 "   app_epoch: 0\n"
3459 "   app_version: 1.1.5\n"
3460 "   app_release:\n"
3461 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
3462 "   app_trans_path:\n"
3463 "   app_publisher: VideoLAN\n"
3464 "   app_url: http://www.videolan.org/\n"
3465 "   app_source_package:\n"
3466 "   app_summary:\n"
3467 "   app_description:\n"
3468 " }\n"
3469 "\n"
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../examples/guestfs-recipes.pod:305
3474 msgid ""
3475 "If you want to run the script on disk images (instead of libvirt virtual "
3476 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also "
3477 "L<virt-inspector(1)>."
3478 msgstr ""
3479
3480 #. type: =head1
3481 #: ../examples/guestfs-recipes.pod:309
3482 msgid "List files and directories in a VM"
3483 msgstr ""
3484
3485 #. type: textblock
3486 #: ../examples/guestfs-recipes.pod:311
3487 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
3488 msgstr ""
3489
3490 #. type: verbatim
3491 #: ../examples/guestfs-recipes.pod:313
3492 #, no-wrap
3493 msgid ""
3494 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
3495 "\n"
3496 msgstr ""
3497
3498 #. type: =head1
3499 #: ../examples/guestfs-recipes.pod:315
3500 msgid "List services in a Windows VM"
3501 msgstr ""
3502
3503 #. type: textblock
3504 #: ../examples/guestfs-recipes.pod:317
3505 msgid ""
3506 "The link below contains a script that can be used to list out the services "
3507 "from a Windows VM, and whether those services run at boot time or are loaded "
3508 "on demand."
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../examples/guestfs-recipes.pod:321
3513 msgid "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/#content"
3514 msgstr ""
3515
3516 #. type: =head1
3517 #: ../examples/guestfs-recipes.pod:323
3518 msgid "Make a disk image sparse"
3519 msgstr ""
3520
3521 #. type: textblock
3522 #: ../examples/guestfs-recipes.pod:325
3523 msgid ""
3524 "The link below contains some guides for making a disk image sparse (or "
3525 "reintroducing sparseness)."
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../examples/guestfs-recipes.pod:328
3530 msgid "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
3531 msgstr ""
3532
3533 #. type: =head1
3534 #: ../examples/guestfs-recipes.pod:330
3535 msgid "Monitor disk usage over time"
3536 msgstr ""
3537
3538 #. type: textblock
3539 #: ../examples/guestfs-recipes.pod:332
3540 msgid ""
3541 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
3542 "The link below contains a guide."
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../examples/guestfs-recipes.pod:335
3547 msgid "http://virt-tools.org/learning/advanced-virt-df/"
3548 msgstr ""
3549
3550 #. type: =head1
3551 #: ../examples/guestfs-recipes.pod:337
3552 msgid "Reading the Windows Event Log from Windows Vista (or later)"
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../examples/guestfs-recipes.pod:339
3557 msgid ""
3558 "L<guestfish(1)> plus the tools described in the link below can be used to "
3559 "read out the Windows Event Log from any virtual machine running Windows "
3560 "Vista or a later version."
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../examples/guestfs-recipes.pod:343
3565 msgid "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-guestfish/#content"
3566 msgstr ""
3567
3568 #. type: =head1
3569 #: ../examples/guestfs-recipes.pod:345
3570 msgid "Remove root password (Linux)"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../examples/guestfs-recipes.pod:347
3575 msgid ""
3576 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
3577 "files.  One use is to remove the root password from a Linux guest:"
3578 msgstr ""
3579
3580 #. type: verbatim
3581 #: ../examples/guestfs-recipes.pod:350
3582 #, no-wrap
3583 msgid ""
3584 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3585 "\n"
3586 msgstr ""
3587
3588 #. type: =head1
3589 #: ../examples/guestfs-recipes.pod:352
3590 msgid "Remove Administrator password (Windows)"
3591 msgstr ""
3592
3593 #. type: textblock
3594 #: ../examples/guestfs-recipes.pod:354
3595 msgid ""
3596 "The link below contains one technique for removing the Administrator "
3597 "password from a Windows VM, or to be more precise, it gives you a command "
3598 "prompt the next time you log in which you can use to bypass any security:"
3599 msgstr ""
3600
3601 #. type: textblock
3602 #: ../examples/guestfs-recipes.pod:359
3603 msgid "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-administrator-password-with-guestfish/"
3604 msgstr ""
3605
3606 #. type: =head1
3607 #: ../examples/guestfs-recipes.pod:361
3608 msgid "Unpack a live CD"
3609 msgstr ""
3610
3611 #. type: textblock
3612 #: ../examples/guestfs-recipes.pod:363
3613 msgid ""
3614 "Linux live CDs often contain multiple layers of disk images wrapped like a "
3615 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
3616 "layers, as outlined in the guide below."
3617 msgstr ""
3618
3619 #. type: textblock
3620 #: ../examples/guestfs-recipes.pod:367
3621 msgid "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-cd/#content"
3622 msgstr ""
3623
3624 #. type: =head1
3625 #: ../examples/guestfs-recipes.pod:369
3626 msgid "Uploading and downloading files"
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../examples/guestfs-recipes.pod:371
3631 msgid ""
3632 "The link below contains general tips on uploading (copying in)  and "
3633 "downloading (copying out) files from VMs."
3634 msgstr ""
3635
3636 #. type: textblock
3637 #: ../examples/guestfs-recipes.pod:374
3638 msgid "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
3639 msgstr ""
3640
3641 #. type: =head1
3642 #: ../examples/guestfs-recipes.pod:376
3643 msgid "Use libguestfs tools on VMware ESX guests"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../examples/guestfs-recipes.pod:378
3648 msgid ""
3649 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
3650 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../examples/guestfs-recipes.pod:382
3655 msgid "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-guests/#content"
3656 msgstr ""
3657
3658 #. type: textblock
3659 #: ../examples/guestfs-recipes.pod:386
3660 msgid ""
3661 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
3662 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
3663 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3664 msgstr ""
3665
3666 #. type: textblock
3667 #: ../examples/guestfs-recipes.pod:402
3668 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
3669 msgstr ""
3670
3671 #. type: =head2
3672 #: ../fish/guestfish-actions.pod:1
3673 msgid "add-cdrom"
3674 msgstr ""
3675
3676 #. type: verbatim
3677 #: ../fish/guestfish-actions.pod:3
3678 #, no-wrap
3679 msgid ""
3680 " add-cdrom filename\n"
3681 "\n"
3682 msgstr ""
3683
3684 #. type: textblock
3685 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
3686 msgid "This function adds a virtual CD-ROM disk image to the guest."
3687 msgstr ""
3688
3689 #. type: textblock
3690 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
3691 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
3692 msgstr ""
3693
3694 #. type: textblock
3695 #: ../fish/guestfish-actions.pod:15
3696 msgid ""
3697 "This call checks for the existence of C<filename>.  This stops you from "
3698 "specifying other types of drive which are supported by qemu such as C<nbd:> "
3699 "and C<http:> URLs.  To specify those, use the general L</config> call "
3700 "instead."
3701 msgstr ""
3702
3703 #. type: textblock
3704 #: ../fish/guestfish-actions.pod:22
3705 msgid ""
3706 "If you just want to add an ISO file (often you use this as an efficient way "
3707 "to transfer large files into the guest), then you should probably use "
3708 "L</add-drive-ro> instead."
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163 ../fish/guestfish-actions.pod:177
3713 msgid ""
3714 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
3715 "instead."
3716 msgstr ""
3717
3718 #. type: textblock
3719 #: ../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:3090 ../fish/guestfish-actions.pod:3297 ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459 ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383 ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443 ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508 ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028 ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926 ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255 ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662 ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703 ../src/guestfs-actions.pod:7886
3720 msgid ""
3721 "Deprecated functions will not be removed from the API, but the fact that "
3722 "they are deprecated indicates that there are problems with correct use of "
3723 "these functions."
3724 msgstr ""
3725
3726 #. type: =head2
3727 #: ../fish/guestfish-actions.pod:35
3728 msgid "add-domain"
3729 msgstr ""
3730
3731 #. type: =head2
3732 #: ../fish/guestfish-actions.pod:37
3733 msgid "domain"
3734 msgstr ""
3735
3736 #. type: verbatim
3737 #: ../fish/guestfish-actions.pod:39
3738 #, no-wrap
3739 msgid ""
3740 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] "
3741 "[allowuuid:..]\n"
3742 "\n"
3743 msgstr ""
3744
3745 #. type: textblock
3746 #: ../fish/guestfish-actions.pod:41
3747 msgid ""
3748 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
3749 "It works by connecting to libvirt, requesting the domain and domain XML from "
3750 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
3755 msgid ""
3756 "The number of disks added is returned.  This operation is atomic: if an "
3757 "error is returned, then no disks are added."
3758 msgstr ""
3759
3760 #. type: textblock
3761 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
3762 msgid ""
3763 "This function does some minimal checks to make sure the libvirt domain is "
3764 "not running (unless C<readonly> is true).  In a future version we will try "
3765 "to acquire the libvirt lock on each disk."
3766 msgstr ""
3767
3768 #. type: textblock
3769 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
3770 msgid ""
3771 "Disks must be accessible locally.  This often means that adding disks from a "
3772 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
3773 "unless those disks are accessible via the same device path locally too."
3774 msgstr ""
3775
3776 #. type: textblock
3777 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
3778 msgid ""
3779 "The optional C<libvirturi> parameter sets the libvirt URI (see "
3780 "L<http://libvirt.org/uri.html>).  If this is not set then we connect to the "
3781 "default libvirt URI (or one set through an environment variable, see the "
3782 "libvirt documentation for full details)."
3783 msgstr ""
3784
3785 #. type: textblock
3786 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
3787 msgid ""
3788 "The optional C<live> flag controls whether this call will try to connect to "
3789 "a running virtual machine C<guestfsd> process if it sees a suitable "
3790 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
3791 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
3792 "DAEMONS> for more information."
3793 msgstr ""
3794
3795 #. type: textblock
3796 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
3797 msgid ""
3798 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
3799 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
3800 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
3801 "as usual."
3802 msgstr ""
3803
3804 #. type: textblock
3805 #: ../fish/guestfish-actions.pod:76
3806 msgid ""
3807 "The other optional parameters are passed directly through to "
3808 "L</add-drive-opts>."
3809 msgstr ""
3810
3811 #. type: textblock
3812 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143 ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973 ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312 ../fish/guestfish-actions.pod:3447
3813 msgid ""
3814 "This command has one or more optional arguments.  See L</OPTIONAL "
3815 "ARGUMENTS>."
3816 msgstr ""
3817
3818 #. type: =head2
3819 #: ../fish/guestfish-actions.pod:81
3820 msgid "add-drive"
3821 msgstr ""
3822
3823 #. type: verbatim
3824 #: ../fish/guestfish-actions.pod:83
3825 #, no-wrap
3826 msgid ""
3827 " add-drive filename\n"
3828 "\n"
3829 msgstr ""
3830
3831 #. type: textblock
3832 #: ../fish/guestfish-actions.pod:85
3833 msgid ""
3834 "This function is the equivalent of calling L</add-drive-opts> with no "
3835 "optional parameters, so the disk is added writable, with the format being "
3836 "detected automatically."
3837 msgstr ""
3838
3839 #. type: textblock
3840 #: ../fish/guestfish-actions.pod:89
3841 msgid ""
3842 "Automatic detection of the format opens you up to a potential security hole "
3843 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3844 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
3845 "you should think about replacing calls to this function with calls to "
3846 "L</add-drive-opts>, and specifying the format."
3847 msgstr ""
3848
3849 #. type: =head2
3850 #: ../fish/guestfish-actions.pod:96
3851 msgid "add-drive-opts"
3852 msgstr ""
3853
3854 #. type: =head2
3855 #: ../fish/guestfish-actions.pod:98
3856 msgid "add"
3857 msgstr ""
3858
3859 #. type: verbatim
3860 #: ../fish/guestfish-actions.pod:100
3861 #, no-wrap
3862 msgid ""
3863 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
3864 "\n"
3865 msgstr ""
3866
3867 #. type: textblock
3868 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
3869 msgid ""
3870 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
3871 "The first time you call this function, the disk appears as C</dev/sda>, the "
3872 "second time as C</dev/sdb>, and so on."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
3877 msgid ""
3878 "You don't necessarily need to be root when using libguestfs.  However you "
3879 "obviously do need sufficient permissions to access the filename for whatever "
3880 "operations you want to perform (ie. read access if you just want to read the "
3881 "image or write access if you want to modify the image)."
3882 msgstr ""
3883
3884 #. type: textblock
3885 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
3886 msgid "This call checks that C<filename> exists."
3887 msgstr ""
3888
3889 #. type: textblock
3890 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
3891 msgid "The optional arguments are:"
3892 msgstr ""
3893
3894 #. type: =item
3895 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
3896 msgid "C<readonly>"
3897 msgstr ""
3898
3899 #. type: textblock
3900 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
3901 msgid ""
3902 "If true then the image is treated as read-only.  Writes are still allowed, "
3903 "but they are stored in a temporary snapshot overlay which is discarded at "
3904 "the end.  The disk that you add is not modified."
3905 msgstr ""
3906
3907 #. type: =item
3908 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
3909 msgid "C<format>"
3910 msgstr ""
3911
3912 #. type: textblock
3913 #: ../fish/guestfish-actions.pod:127
3914 msgid ""
3915 "This forces the image format.  If you omit this (or use L</add-drive> or "
3916 "L</add-drive-ro>) then the format is automatically detected.  Possible "
3917 "formats include C<raw> and C<qcow2>."
3918 msgstr ""
3919
3920 #. type: textblock
3921 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
3922 msgid ""
3923 "Automatic detection of the format opens you up to a potential security hole "
3924 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
3925 "RHBZ#642934.  Specifying the format closes this security hole."
3926 msgstr ""
3927
3928 #. type: =item
3929 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
3930 msgid "C<iface>"
3931 msgstr ""
3932
3933 #. type: textblock
3934 #: ../fish/guestfish-actions.pod:138
3935 msgid ""
3936 "This rarely-used option lets you emulate the behaviour of the deprecated "
3937 "L</add-drive-with-if> call (q.v.)"
3938 msgstr ""
3939
3940 #. type: =head2
3941 #: ../fish/guestfish-actions.pod:145
3942 msgid "add-drive-ro"
3943 msgstr ""
3944
3945 #. type: =head2
3946 #: ../fish/guestfish-actions.pod:147
3947 msgid "add-ro"
3948 msgstr ""
3949
3950 #. type: verbatim
3951 #: ../fish/guestfish-actions.pod:149
3952 #, no-wrap
3953 msgid ""
3954 " add-drive-ro filename\n"
3955 "\n"
3956 msgstr ""
3957
3958 #. type: textblock
3959 #: ../fish/guestfish-actions.pod:151
3960 msgid ""
3961 "This function is the equivalent of calling L</add-drive-opts> with the "
3962 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
3963 "is added read-only, with the format being detected automatically."
3964 msgstr ""
3965
3966 #. type: =head2
3967 #: ../fish/guestfish-actions.pod:156
3968 msgid "add-drive-ro-with-if"
3969 msgstr ""
3970
3971 #. type: verbatim
3972 #: ../fish/guestfish-actions.pod:158
3973 #, no-wrap
3974 msgid ""
3975 " add-drive-ro-with-if filename iface\n"
3976 "\n"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../fish/guestfish-actions.pod:160
3981 msgid ""
3982 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
3983 "interface emulation to use at run time."
3984 msgstr ""
3985
3986 #. type: =head2
3987 #: ../fish/guestfish-actions.pod:170
3988 msgid "add-drive-with-if"
3989 msgstr ""
3990
3991 #. type: verbatim
3992 #: ../fish/guestfish-actions.pod:172
3993 #, no-wrap
3994 msgid ""
3995 " add-drive-with-if filename iface\n"
3996 "\n"
3997 msgstr ""
3998
3999 #. type: textblock
4000 #: ../fish/guestfish-actions.pod:174
4001 msgid ""
4002 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4003 "interface emulation to use at run time."
4004 msgstr ""
4005
4006 #. type: =head2
4007 #: ../fish/guestfish-actions.pod:184
4008 msgid "aug-clear"
4009 msgstr ""
4010
4011 #. type: verbatim
4012 #: ../fish/guestfish-actions.pod:186
4013 #, no-wrap
4014 msgid ""
4015 " aug-clear augpath\n"
4016 "\n"
4017 msgstr ""
4018
4019 #. type: textblock
4020 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4021 msgid ""
4022 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4023 "L<augtool(1)> C<clear> command."
4024 msgstr ""
4025
4026 #. type: =head2
4027 #: ../fish/guestfish-actions.pod:191
4028 msgid "aug-close"
4029 msgstr ""
4030
4031 #. type: verbatim
4032 #: ../fish/guestfish-actions.pod:193
4033 #, no-wrap
4034 msgid ""
4035 " aug-close\n"
4036 "\n"
4037 msgstr ""
4038
4039 #. type: textblock
4040 #: ../fish/guestfish-actions.pod:195
4041 msgid ""
4042 "Close the current Augeas handle and free up any resources used by it.  After "
4043 "calling this, you have to call L</aug-init> again before you can use any "
4044 "other Augeas functions."
4045 msgstr ""
4046
4047 #. type: =head2
4048 #: ../fish/guestfish-actions.pod:200
4049 msgid "aug-defnode"
4050 msgstr ""
4051
4052 #. type: verbatim
4053 #: ../fish/guestfish-actions.pod:202
4054 #, no-wrap
4055 msgid ""
4056 " aug-defnode name expr val\n"
4057 "\n"
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4062 msgid "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4063 msgstr ""
4064
4065 #. type: textblock
4066 #: ../fish/guestfish-actions.pod:207
4067 msgid ""
4068 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4069 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4070 "containing that single node."
4071 msgstr ""
4072
4073 #. type: textblock
4074 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4075 msgid ""
4076 "On success this returns a pair containing the number of nodes in the "
4077 "nodeset, and a boolean flag if a node was created."
4078 msgstr ""
4079
4080 #. type: =head2
4081 #: ../fish/guestfish-actions.pod:215
4082 msgid "aug-defvar"
4083 msgstr ""
4084
4085 #. type: verbatim
4086 #: ../fish/guestfish-actions.pod:217
4087 #, no-wrap
4088 msgid ""
4089 " aug-defvar name expr\n"
4090 "\n"
4091 msgstr ""
4092
4093 #. type: textblock
4094 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4095 msgid ""
4096 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4097 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4098 msgstr ""
4099
4100 #. type: textblock
4101 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4102 msgid ""
4103 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4104 "evaluates to something which is not a nodeset."
4105 msgstr ""
4106
4107 #. type: =head2
4108 #: ../fish/guestfish-actions.pod:226
4109 msgid "aug-get"
4110 msgstr ""
4111
4112 #. type: verbatim
4113 #: ../fish/guestfish-actions.pod:228
4114 #, no-wrap
4115 msgid ""
4116 " aug-get augpath\n"
4117 "\n"
4118 msgstr ""
4119
4120 #. type: textblock
4121 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4122 msgid ""
4123 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4124 "node, the C<value> is returned."
4125 msgstr ""
4126
4127 #. type: =head2
4128 #: ../fish/guestfish-actions.pod:233
4129 msgid "aug-init"
4130 msgstr ""
4131
4132 #. type: verbatim
4133 #: ../fish/guestfish-actions.pod:235
4134 #, no-wrap
4135 msgid ""
4136 " aug-init root flags\n"
4137 "\n"
4138 msgstr ""
4139
4140 #. type: textblock
4141 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4142 msgid ""
4143 "Create a new Augeas handle for editing configuration files.  If there was "
4144 "any previous Augeas handle associated with this guestfs session, then it is "
4145 "closed."
4146 msgstr ""
4147
4148 #. type: textblock
4149 #: ../fish/guestfish-actions.pod:241
4150 msgid "You must call this before using any other L</aug-*> commands."
4151 msgstr ""
4152
4153 #. type: textblock
4154 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4155 msgid "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4156 msgstr ""
4157
4158 #. type: textblock
4159 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4160 msgid ""
4161 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4162 "logical I<or> of the following integers:"
4163 msgstr ""
4164
4165 #. type: =item
4166 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4167 msgid "C<AUG_SAVE_BACKUP> = 1"
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4172 msgid "Keep the original file with a C<.augsave> extension."
4173 msgstr ""
4174
4175 #. type: =item
4176 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4177 msgid "C<AUG_SAVE_NEWFILE> = 2"
4178 msgstr ""
4179
4180 #. type: textblock
4181 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
4182 msgid ""
4183 "Save changes into a file with extension C<.augnew>, and do not overwrite "
4184 "original.  Overrides C<AUG_SAVE_BACKUP>."
4185 msgstr ""
4186
4187 #. type: =item
4188 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
4189 msgid "C<AUG_TYPE_CHECK> = 4"
4190 msgstr ""
4191
4192 #. type: textblock
4193 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
4194 msgid "Typecheck lenses."
4195 msgstr ""
4196
4197 #. type: textblock
4198 #: ../fish/guestfish-actions.pod:266
4199 msgid ""
4200 "This option is only useful when debugging Augeas lenses.  Use of this option "
4201 "may require additional memory for the libguestfs appliance.  You may need to "
4202 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
4203 msgstr ""
4204
4205 #. type: =item
4206 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
4207 msgid "C<AUG_NO_STDINC> = 8"
4208 msgstr ""
4209
4210 #. type: textblock
4211 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
4212 msgid "Do not use standard load path for modules."
4213 msgstr ""
4214
4215 #. type: =item
4216 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
4217 msgid "C<AUG_SAVE_NOOP> = 16"
4218 msgstr ""
4219
4220 #. type: textblock
4221 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
4222 msgid "Make save a no-op, just record what would have been changed."
4223 msgstr ""
4224
4225 #. type: =item
4226 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
4227 msgid "C<AUG_NO_LOAD> = 32"
4228 msgstr ""
4229
4230 #. type: textblock
4231 #: ../fish/guestfish-actions.pod:281
4232 msgid "Do not load the tree in L</aug-init>."
4233 msgstr ""
4234
4235 #. type: textblock
4236 #: ../fish/guestfish-actions.pod:285
4237 msgid "To close the handle, you can call L</aug-close>."
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
4242 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4243 msgstr ""
4244
4245 #. type: =head2
4246 #: ../fish/guestfish-actions.pod:289
4247 msgid "aug-insert"
4248 msgstr ""
4249
4250 #. type: verbatim
4251 #: ../fish/guestfish-actions.pod:291
4252 #, no-wrap
4253 msgid ""
4254 " aug-insert augpath label true|false\n"
4255 "\n"
4256 msgstr ""
4257
4258 #. type: textblock
4259 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
4260 msgid ""
4261 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4262 "or after C<path> (depending on the boolean flag C<before>)."
4263 msgstr ""
4264
4265 #. type: textblock
4266 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
4267 msgid ""
4268 "C<path> must match exactly one existing node in the tree, and C<label> must "
4269 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4270 msgstr ""
4271
4272 #. type: =head2
4273 #: ../fish/guestfish-actions.pod:301
4274 msgid "aug-load"
4275 msgstr ""
4276
4277 #. type: verbatim
4278 #: ../fish/guestfish-actions.pod:303
4279 #, no-wrap
4280 msgid ""
4281 " aug-load\n"
4282 "\n"
4283 msgstr ""
4284
4285 #. type: textblock
4286 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
4287 msgid "Load files into the tree."
4288 msgstr ""
4289
4290 #. type: textblock
4291 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
4292 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4293 msgstr ""
4294
4295 #. type: =head2
4296 #: ../fish/guestfish-actions.pod:310
4297 msgid "aug-ls"
4298 msgstr ""
4299
4300 #. type: verbatim
4301 #: ../fish/guestfish-actions.pod:312
4302 #, no-wrap
4303 msgid ""
4304 " aug-ls augpath\n"
4305 "\n"
4306 msgstr ""
4307
4308 #. type: textblock
4309 #: ../fish/guestfish-actions.pod:314
4310 msgid ""
4311 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4312 "resulting nodes into alphabetical order."
4313 msgstr ""
4314
4315 #. type: =head2
4316 #: ../fish/guestfish-actions.pod:317
4317 msgid "aug-match"
4318 msgstr ""
4319
4320 #. type: verbatim
4321 #: ../fish/guestfish-actions.pod:319
4322 #, no-wrap
4323 msgid ""
4324 " aug-match augpath\n"
4325 "\n"
4326 msgstr ""
4327
4328 #. type: textblock
4329 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
4330 msgid ""
4331 "Returns a list of paths which match the path expression C<path>.  The "
4332 "returned paths are sufficiently qualified so that they match exactly one "
4333 "node in the current tree."
4334 msgstr ""
4335
4336 #. type: =head2
4337 #: ../fish/guestfish-actions.pod:325
4338 msgid "aug-mv"
4339 msgstr ""
4340
4341 #. type: verbatim
4342 #: ../fish/guestfish-actions.pod:327
4343 #, no-wrap
4344 msgid ""
4345 " aug-mv src dest\n"
4346 "\n"
4347 msgstr ""
4348
4349 #. type: textblock
4350 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
4351 msgid ""
4352 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4353 "C<dest> is overwritten if it exists."
4354 msgstr ""
4355
4356 #. type: =head2
4357 #: ../fish/guestfish-actions.pod:332
4358 msgid "aug-rm"
4359 msgstr ""
4360
4361 #. type: verbatim
4362 #: ../fish/guestfish-actions.pod:334
4363 #, no-wrap
4364 msgid ""
4365 " aug-rm augpath\n"
4366 "\n"
4367 msgstr ""
4368
4369 #. type: textblock
4370 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
4371 msgid "Remove C<path> and all of its children."
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
4376 msgid "On success this returns the number of entries which were removed."
4377 msgstr ""
4378
4379 #. type: =head2
4380 #: ../fish/guestfish-actions.pod:340
4381 msgid "aug-save"
4382 msgstr ""
4383
4384 #. type: verbatim
4385 #: ../fish/guestfish-actions.pod:342
4386 #, no-wrap
4387 msgid ""
4388 " aug-save\n"
4389 "\n"
4390 msgstr ""
4391
4392 #. type: textblock
4393 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
4394 msgid "This writes all pending changes to disk."
4395 msgstr ""
4396
4397 #. type: textblock
4398 #: ../fish/guestfish-actions.pod:346
4399 msgid ""
4400 "The flags which were passed to L</aug-init> affect exactly how files are "
4401 "saved."
4402 msgstr ""
4403
4404 #. type: =head2
4405 #: ../fish/guestfish-actions.pod:349
4406 msgid "aug-set"
4407 msgstr ""
4408
4409 #. type: verbatim
4410 #: ../fish/guestfish-actions.pod:351
4411 #, no-wrap
4412 msgid ""
4413 " aug-set augpath val\n"
4414 "\n"
4415 msgstr ""
4416
4417 #. type: textblock
4418 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
4419 msgid "Set the value associated with C<path> to C<val>."
4420 msgstr ""
4421
4422 #. type: textblock
4423 #: ../fish/guestfish-actions.pod:355
4424 msgid ""
4425 "In the Augeas API, it is possible to clear a node by setting the value to "
4426 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4427 "this call.  Instead you must use the L</aug-clear> call."
4428 msgstr ""
4429
4430 #. type: =head2
4431 #: ../fish/guestfish-actions.pod:360
4432 msgid "available"
4433 msgstr ""
4434
4435 #. type: verbatim
4436 #: ../fish/guestfish-actions.pod:362
4437 #, no-wrap
4438 msgid ""
4439 " available 'groups ...'\n"
4440 "\n"
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
4445 msgid ""
4446 "This command is used to check the availability of some groups of "
4447 "functionality in the appliance, which not all builds of the libguestfs "
4448 "appliance will be able to provide."
4449 msgstr ""
4450
4451 #. type: textblock
4452 #: ../fish/guestfish-actions.pod:368
4453 msgid ""
4454 "The libguestfs groups, and the functions that those groups correspond to, "
4455 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4456 "runtime by calling L</available-all-groups>."
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4461 msgid ""
4462 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4463 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4464 "and Augeas (configuration file editing) functions."
4465 msgstr ""
4466
4467 #. type: textblock
4468 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4469 msgid "The command returns no error if I<all> requested groups are available."
4470 msgstr ""
4471
4472 #. type: textblock
4473 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
4474 msgid ""
4475 "It fails with an error if one or more of the requested groups is unavailable "
4476 "in the appliance."
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
4481 msgid ""
4482 "If an unknown group name is included in the list of groups then an error is "
4483 "always returned."
4484 msgstr ""
4485
4486 #. type: textblock
4487 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
4488 msgid "I<Notes:>"
4489 msgstr ""
4490
4491 #. type: textblock
4492 #: ../fish/guestfish-actions.pod:392
4493 msgid "You must call L</launch> before calling this function."
4494 msgstr ""
4495
4496 #. type: textblock
4497 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
4498 msgid ""
4499 "The reason is because we don't know what groups are supported by the "
4500 "appliance/daemon until it is running and can be queried."
4501 msgstr ""
4502
4503 #. type: textblock
4504 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
4505 msgid ""
4506 "If a group of functions is available, this does not necessarily mean that "
4507 "they will work.  You still have to check for errors when calling individual "
4508 "API functions even if they are available."
4509 msgstr ""
4510
4511 #. type: textblock
4512 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
4513 msgid ""
4514 "It is usually the job of distro packagers to build complete functionality "
4515 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4516 "with all requirements satisfied, will support everything."
4517 msgstr ""
4518
4519 #. type: textblock
4520 #: ../fish/guestfish-actions.pod:414
4521 msgid ""
4522 "This call was added in version C<1.0.80>.  In previous versions of "
4523 "libguestfs all you could do would be to speculatively execute a command to "
4524 "find out if the daemon implemented it.  See also L</version>."
4525 msgstr ""
4526
4527 #. type: =head2
4528 #: ../fish/guestfish-actions.pod:421
4529 msgid "available-all-groups"
4530 msgstr ""
4531
4532 #. type: verbatim
4533 #: ../fish/guestfish-actions.pod:423
4534 #, no-wrap
4535 msgid ""
4536 " available-all-groups\n"
4537 "\n"
4538 msgstr ""
4539
4540 #. type: textblock
4541 #: ../fish/guestfish-actions.pod:425
4542 msgid ""
4543 "This command returns a list of all optional groups that this daemon knows "
4544 "about.  Note this returns both supported and unsupported groups.  To find "
4545 "out which ones the daemon can actually support you have to call "
4546 "L</available> on each member of the returned list."
4547 msgstr ""
4548
4549 #. type: textblock
4550 #: ../fish/guestfish-actions.pod:431
4551 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4552 msgstr ""
4553
4554 #. type: =head2
4555 #: ../fish/guestfish-actions.pod:433
4556 msgid "base64-in"
4557 msgstr ""
4558
4559 #. type: verbatim
4560 #: ../fish/guestfish-actions.pod:435
4561 #, no-wrap
4562 msgid ""
4563 " base64-in (base64file|-) filename\n"
4564 "\n"
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
4569 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4570 msgstr ""
4571
4572 #. type: textblock
4573 #: ../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:4663 ../fish/guestfish-actions.pod:4675 ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697 ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758 ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
4574 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4575 msgstr ""
4576
4577 #. type: =head2
4578 #: ../fish/guestfish-actions.pod:442
4579 msgid "base64-out"
4580 msgstr ""
4581
4582 #. type: verbatim
4583 #: ../fish/guestfish-actions.pod:444
4584 #, no-wrap
4585 msgid ""
4586 " base64-out filename (base64file|-)\n"
4587 "\n"
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
4592 msgid ""
4593 "This command downloads the contents of C<filename>, writing it out to local "
4594 "file C<base64file> encoded as base64."
4595 msgstr ""
4596
4597 #. type: =head2
4598 #: ../fish/guestfish-actions.pod:451
4599 msgid "blockdev-flushbufs"
4600 msgstr ""
4601
4602 #. type: verbatim
4603 #: ../fish/guestfish-actions.pod:453
4604 #, no-wrap
4605 msgid ""
4606 " blockdev-flushbufs device\n"
4607 "\n"
4608 msgstr ""
4609
4610 #. type: textblock
4611 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
4612 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4613 msgstr ""
4614
4615 #. type: textblock
4616 #: ../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
4617 msgid "This uses the L<blockdev(8)> command."
4618 msgstr ""
4619
4620 #. type: =head2
4621 #: ../fish/guestfish-actions.pod:460
4622 msgid "blockdev-getbsz"
4623 msgstr ""
4624
4625 #. type: verbatim
4626 #: ../fish/guestfish-actions.pod:462
4627 #, no-wrap
4628 msgid ""
4629 " blockdev-getbsz device\n"
4630 "\n"
4631 msgstr ""
4632
4633 #. type: textblock
4634 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
4635 msgid "This returns the block size of a device."
4636 msgstr ""
4637
4638 #. type: textblock
4639 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
4640 msgid ""
4641 "(Note this is different from both I<size in blocks> and I<filesystem block "
4642 "size>)."
4643 msgstr ""
4644
4645 #. type: =head2
4646 #: ../fish/guestfish-actions.pod:471
4647 msgid "blockdev-getro"
4648 msgstr ""
4649
4650 #. type: verbatim
4651 #: ../fish/guestfish-actions.pod:473
4652 #, no-wrap
4653 msgid ""
4654 " blockdev-getro device\n"
4655 "\n"
4656 msgstr ""
4657
4658 #. type: textblock
4659 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
4660 msgid ""
4661 "Returns a boolean indicating if the block device is read-only (true if "
4662 "read-only, false if not)."
4663 msgstr ""
4664
4665 #. type: =head2
4666 #: ../fish/guestfish-actions.pod:480
4667 msgid "blockdev-getsize64"
4668 msgstr ""
4669
4670 #. type: verbatim
4671 #: ../fish/guestfish-actions.pod:482
4672 #, no-wrap
4673 msgid ""
4674 " blockdev-getsize64 device\n"
4675 "\n"
4676 msgstr ""
4677
4678 #. type: textblock
4679 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
4680 msgid "This returns the size of the device in bytes."
4681 msgstr ""
4682
4683 #. type: textblock
4684 #: ../fish/guestfish-actions.pod:486
4685 msgid "See also L</blockdev-getsz>."
4686 msgstr ""
4687
4688 #. type: =head2
4689 #: ../fish/guestfish-actions.pod:490
4690 msgid "blockdev-getss"
4691 msgstr ""
4692
4693 #. type: verbatim
4694 #: ../fish/guestfish-actions.pod:492
4695 #, no-wrap
4696 msgid ""
4697 " blockdev-getss device\n"
4698 "\n"
4699 msgstr ""
4700
4701 #. type: textblock
4702 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
4703 msgid ""
4704 "This returns the size of sectors on a block device.  Usually 512, but can be "
4705 "larger for modern devices."
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../fish/guestfish-actions.pod:497
4710 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
4711 msgstr ""
4712
4713 #. type: =head2
4714 #: ../fish/guestfish-actions.pod:502
4715 msgid "blockdev-getsz"
4716 msgstr ""
4717
4718 #. type: verbatim
4719 #: ../fish/guestfish-actions.pod:504
4720 #, no-wrap
4721 msgid ""
4722 " blockdev-getsz device\n"
4723 "\n"
4724 msgstr ""
4725
4726 #. type: textblock
4727 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
4728 msgid ""
4729 "This returns the size of the device in units of 512-byte sectors (even if "
4730 "the sectorsize isn't 512 bytes ... weird)."
4731 msgstr ""
4732
4733 #. type: textblock
4734 #: ../fish/guestfish-actions.pod:509
4735 msgid ""
4736 "See also L</blockdev-getss> for the real sector size of the device, and "
4737 "L</blockdev-getsize64> for the more useful I<size in bytes>."
4738 msgstr ""
4739
4740 #. type: =head2
4741 #: ../fish/guestfish-actions.pod:515
4742 msgid "blockdev-rereadpt"
4743 msgstr ""
4744
4745 #. type: verbatim
4746 #: ../fish/guestfish-actions.pod:517
4747 #, no-wrap
4748 msgid ""
4749 " blockdev-rereadpt device\n"
4750 "\n"
4751 msgstr ""
4752
4753 #. type: textblock
4754 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
4755 msgid "Reread the partition table on C<device>."
4756 msgstr ""
4757
4758 #. type: =head2
4759 #: ../fish/guestfish-actions.pod:523
4760 msgid "blockdev-setbsz"
4761 msgstr ""
4762
4763 #. type: verbatim
4764 #: ../fish/guestfish-actions.pod:525
4765 #, no-wrap
4766 msgid ""
4767 " blockdev-setbsz device blocksize\n"
4768 "\n"
4769 msgstr ""
4770
4771 #. type: textblock
4772 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
4773 msgid "This sets the block size of a device."
4774 msgstr ""
4775
4776 #. type: =head2
4777 #: ../fish/guestfish-actions.pod:534
4778 msgid "blockdev-setro"
4779 msgstr ""
4780
4781 #. type: verbatim
4782 #: ../fish/guestfish-actions.pod:536
4783 #, no-wrap
4784 msgid ""
4785 " blockdev-setro device\n"
4786 "\n"
4787 msgstr ""
4788
4789 #. type: textblock
4790 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
4791 msgid "Sets the block device named C<device> to read-only."
4792 msgstr ""
4793
4794 #. type: =head2
4795 #: ../fish/guestfish-actions.pod:542
4796 msgid "blockdev-setrw"
4797 msgstr ""
4798
4799 #. type: verbatim
4800 #: ../fish/guestfish-actions.pod:544
4801 #, no-wrap
4802 msgid ""
4803 " blockdev-setrw device\n"
4804 "\n"
4805 msgstr ""
4806
4807 #. type: textblock
4808 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
4809 msgid "Sets the block device named C<device> to read-write."
4810 msgstr ""
4811
4812 #. type: =head2
4813 #: ../fish/guestfish-actions.pod:550
4814 msgid "btrfs-filesystem-resize"
4815 msgstr ""
4816
4817 #. type: verbatim
4818 #: ../fish/guestfish-actions.pod:552
4819 #, no-wrap
4820 msgid ""
4821 " btrfs-filesystem-resize mountpoint [size:..]\n"
4822 "\n"
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
4827 msgid "This command resizes a btrfs filesystem."
4828 msgstr ""
4829
4830 #. type: textblock
4831 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
4832 msgid ""
4833 "Note that unlike other resize calls, the filesystem has to be mounted and "
4834 "the parameter is the mountpoint not the device (this is a requirement of "
4835 "btrfs itself)."
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
4840 msgid "The optional parameters are:"
4841 msgstr ""
4842
4843 #. type: =item
4844 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
4845 msgid "C<size>"
4846 msgstr ""
4847
4848 #. type: textblock
4849 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
4850 msgid ""
4851 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
4852 "resized to the maximum size."
4853 msgstr ""
4854
4855 #. type: textblock
4856 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
4857 msgid "See also L<btrfs(8)>."
4858 msgstr ""
4859
4860 #. type: =head2
4861 #: ../fish/guestfish-actions.pod:575
4862 msgid "case-sensitive-path"
4863 msgstr ""
4864
4865 #. type: verbatim
4866 #: ../fish/guestfish-actions.pod:577
4867 #, no-wrap
4868 msgid ""
4869 " case-sensitive-path path\n"
4870 "\n"
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
4875 msgid ""
4876 "This can be used to resolve case insensitive paths on a filesystem which is "
4877 "case sensitive.  The use case is to resolve paths which you have read from "
4878 "Windows configuration files or the Windows Registry, to the true path."
4879 msgstr ""
4880
4881 #. type: textblock
4882 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
4883 msgid ""
4884 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4885 "(and probably others), which is that although the underlying filesystem is "
4886 "case-insensitive, the driver exports the filesystem to Linux as "
4887 "case-sensitive."
4888 msgstr ""
4889
4890 #. type: textblock
4891 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
4892 msgid ""
4893 "One consequence of this is that special directories such as C<c:\\windows> "
4894 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4895 "precise details of how they were created.  In Windows itself this would not "
4896 "be a problem."
4897 msgstr ""
4898
4899 #. type: textblock
4900 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
4901 msgid ""
4902 "Bug or feature? You decide: "
4903 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4904 msgstr ""
4905
4906 #. type: textblock
4907 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
4908 msgid ""
4909 "This function resolves the true case of each element in the path and returns "
4910 "the case-sensitive path."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:601
4915 msgid ""
4916 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
4917 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4918 "how the directories were originally created under Windows)."
4919 msgstr ""
4920
4921 #. type: textblock
4922 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
4923 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../fish/guestfish-actions.pod:609
4928 msgid "See also L</realpath>."
4929 msgstr ""
4930
4931 #. type: =head2
4932 #: ../fish/guestfish-actions.pod:611
4933 msgid "cat"
4934 msgstr ""
4935
4936 #. type: verbatim
4937 #: ../fish/guestfish-actions.pod:613
4938 #, no-wrap
4939 msgid ""
4940 " cat path\n"
4941 "\n"
4942 msgstr ""
4943
4944 #. type: textblock
4945 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
4946 msgid "Return the contents of the file named C<path>."
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../fish/guestfish-actions.pod:617
4951 msgid ""
4952 "Note that this function cannot correctly handle binary files (specifically, "
4953 "files containing C<\\0> character which is treated as end of string).  For "
4954 "those you need to use the L</read-file> or L</download> functions which have "
4955 "a more complex interface."
4956 msgstr ""
4957
4958 #. type: textblock
4959 #: ../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:1569 ../fish/guestfish-actions.pod:1584 ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613 ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727 ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820 ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504 ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635 ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056 ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086 ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113 ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180 ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219 ../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:2363 ../src/guestfs-actions.pod:2387 ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433 ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777 ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978 ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667 ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720 ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758 ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871 ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
4960 msgid ""
4961 "Because of the message protocol, there is a transfer limit of somewhere "
4962 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4963 msgstr ""
4964
4965 #. type: =head2
4966 #: ../fish/guestfish-actions.pod:625
4967 msgid "checksum"
4968 msgstr ""
4969
4970 #. type: verbatim
4971 #: ../fish/guestfish-actions.pod:627
4972 #, no-wrap
4973 msgid ""
4974 " checksum csumtype path\n"
4975 "\n"
4976 msgstr ""
4977
4978 #. type: textblock
4979 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
4980 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4981 msgstr ""
4982
4983 #. type: textblock
4984 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
4985 msgid ""
4986 "The type of checksum to compute is given by the C<csumtype> parameter which "
4987 "must have one of the following values:"
4988 msgstr ""
4989
4990 #. type: =item
4991 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
4992 msgid "C<crc>"
4993 msgstr ""
4994
4995 #. type: textblock
4996 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
4997 msgid ""
4998 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4999 "C<cksum> command."
5000 msgstr ""
5001
5002 #. type: =item
5003 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5004 msgid "C<md5>"
5005 msgstr ""
5006
5007 #. type: textblock
5008 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5009 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5010 msgstr ""
5011
5012 #. type: =item
5013 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5014 msgid "C<sha1>"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5019 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5020 msgstr ""
5021
5022 #. type: =item
5023 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5024 msgid "C<sha224>"
5025 msgstr ""
5026
5027 #. type: textblock
5028 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5029 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5030 msgstr ""
5031
5032 #. type: =item
5033 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5034 msgid "C<sha256>"
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5039 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5040 msgstr ""
5041
5042 #. type: =item
5043 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5044 msgid "C<sha384>"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5049 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5050 msgstr ""
5051
5052 #. type: =item
5053 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5054 msgid "C<sha512>"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5059 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5060 msgstr ""
5061
5062 #. type: textblock
5063 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5064 msgid "The checksum is returned as a printable string."
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:670
5069 msgid "To get the checksum for a device, use L</checksum-device>."
5070 msgstr ""
5071
5072 #. type: textblock
5073 #: ../fish/guestfish-actions.pod:672
5074 msgid "To get the checksums for many files, use L</checksums-out>."
5075 msgstr ""
5076
5077 #. type: =head2
5078 #: ../fish/guestfish-actions.pod:674
5079 msgid "checksum-device"
5080 msgstr ""
5081
5082 #. type: verbatim
5083 #: ../fish/guestfish-actions.pod:676
5084 #, no-wrap
5085 msgid ""
5086 " checksum-device csumtype device\n"
5087 "\n"
5088 msgstr ""
5089
5090 #. type: textblock
5091 #: ../fish/guestfish-actions.pod:678
5092 msgid ""
5093 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5094 "device named C<device>.  For the types of checksums supported see the "
5095 "L</checksum> command."
5096 msgstr ""
5097
5098 #. type: =head2
5099 #: ../fish/guestfish-actions.pod:682
5100 msgid "checksums-out"
5101 msgstr ""
5102
5103 #. type: verbatim
5104 #: ../fish/guestfish-actions.pod:684
5105 #, no-wrap
5106 msgid ""
5107 " checksums-out csumtype directory (sumsfile|-)\n"
5108 "\n"
5109 msgstr ""
5110
5111 #. type: textblock
5112 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5113 msgid ""
5114 "This command computes the checksums of all regular files in C<directory> and "
5115 "then emits a list of those checksums to the local output file C<sumsfile>."
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5120 msgid ""
5121 "This can be used for verifying the integrity of a virtual machine.  However "
5122 "to be properly secure you should pay attention to the output of the checksum "
5123 "command (it uses the ones from GNU coreutils).  In particular when the "
5124 "filename is not printable, coreutils uses a special backslash syntax.  For "
5125 "more information, see the GNU coreutils info file."
5126 msgstr ""
5127
5128 #. type: =head2
5129 #: ../fish/guestfish-actions.pod:700
5130 msgid "chmod"
5131 msgstr ""
5132
5133 #. type: verbatim
5134 #: ../fish/guestfish-actions.pod:702
5135 #, no-wrap
5136 msgid ""
5137 " chmod mode path\n"
5138 "\n"
5139 msgstr ""
5140
5141 #. type: textblock
5142 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
5143 msgid ""
5144 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5145 "supported."
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
5150 msgid ""
5151 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5152 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5153 "C<700>."
5154 msgstr ""
5155
5156 #. type: textblock
5157 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065 ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214 ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064 ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800 ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
5158 msgid "The mode actually set is affected by the umask."
5159 msgstr ""
5160
5161 #. type: =head2
5162 #: ../fish/guestfish-actions.pod:713
5163 msgid "chown"
5164 msgstr ""
5165
5166 #. type: verbatim
5167 #: ../fish/guestfish-actions.pod:715
5168 #, no-wrap
5169 msgid ""
5170 " chown owner group path\n"
5171 "\n"
5172 msgstr ""
5173
5174 #. type: textblock
5175 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
5176 msgid "Change the file owner to C<owner> and group to C<group>."
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
5181 msgid ""
5182 "Only numeric uid and gid are supported.  If you want to use names, you will "
5183 "need to locate and parse the password file yourself (Augeas support makes "
5184 "this relatively easy)."
5185 msgstr ""
5186
5187 #. type: =head2
5188 #: ../fish/guestfish-actions.pod:723
5189 msgid "command"
5190 msgstr ""
5191
5192 #. type: verbatim
5193 #: ../fish/guestfish-actions.pod:725
5194 #, no-wrap
5195 msgid ""
5196 " command 'arguments ...'\n"
5197 "\n"
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
5202 msgid ""
5203 "This call runs a command from the guest filesystem.  The filesystem must be "
5204 "mounted, and must contain a compatible operating system (ie. something "
5205 "Linux, with the same or compatible processor architecture)."
5206 msgstr ""
5207
5208 #. type: textblock
5209 #: ../fish/guestfish-actions.pod:732
5210 msgid ""
5211 "The single parameter is an argv-style list of arguments.  The first element "
5212 "is the name of the program to run.  Subsequent elements are parameters.  The "
5213 "list must be non-empty (ie. must contain a program name).  Note that the "
5214 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
5219 msgid "The return value is anything printed to I<stdout> by the command."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
5224 msgid ""
5225 "If the command returns a non-zero exit status, then this function returns an "
5226 "error message.  The error message string is the content of I<stderr> from "
5227 "the command."
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5232 msgid ""
5233 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5234 "C</bin>.  If you require a program from another location, you should provide "
5235 "the full path in the first parameter."
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
5240 msgid ""
5241 "Shared libraries and data files required by the program must be available on "
5242 "filesystems which are mounted in the correct places.  It is the caller's "
5243 "responsibility to ensure all filesystems that are needed are mounted at the "
5244 "right locations."
5245 msgstr ""
5246
5247 #. type: =head2
5248 #: ../fish/guestfish-actions.pod:760
5249 msgid "command-lines"
5250 msgstr ""
5251
5252 #. type: verbatim
5253 #: ../fish/guestfish-actions.pod:762
5254 #, no-wrap
5255 msgid ""
5256 " command-lines 'arguments ...'\n"
5257 "\n"
5258 msgstr ""
5259
5260 #. type: textblock
5261 #: ../fish/guestfish-actions.pod:764
5262 msgid "This is the same as L</command>, but splits the result into a list of lines."
5263 msgstr ""
5264
5265 #. type: textblock
5266 #: ../fish/guestfish-actions.pod:767
5267 msgid "See also: L</sh-lines>"
5268 msgstr ""
5269
5270 #. type: =head2
5271 #: ../fish/guestfish-actions.pod:772
5272 msgid "config"
5273 msgstr ""
5274
5275 #. type: verbatim
5276 #: ../fish/guestfish-actions.pod:774
5277 #, no-wrap
5278 msgid ""
5279 " config qemuparam qemuvalue\n"
5280 "\n"
5281 msgstr ""
5282
5283 #. type: textblock
5284 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5285 msgid ""
5286 "This can be used to add arbitrary qemu command line parameters of the form "
5287 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5288 "setting some parameters which would interfere with parameters that we use."
5289 msgstr ""
5290
5291 #. type: textblock
5292 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
5293 msgid "The first character of C<param> string must be a C<-> (dash)."
5294 msgstr ""
5295
5296 #. type: textblock
5297 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
5298 msgid "C<value> can be NULL."
5299 msgstr ""
5300
5301 #. type: =head2
5302 #: ../fish/guestfish-actions.pod:785
5303 msgid "copy-size"
5304 msgstr ""
5305
5306 #. type: verbatim
5307 #: ../fish/guestfish-actions.pod:787
5308 #, no-wrap
5309 msgid ""
5310 " copy-size src dest size\n"
5311 "\n"
5312 msgstr ""
5313
5314 #. type: textblock
5315 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
5316 msgid ""
5317 "This command copies exactly C<size> bytes from one source device or file "
5318 "C<src> to another destination device or file C<dest>."
5319 msgstr ""
5320
5321 #. type: textblock
5322 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
5323 msgid ""
5324 "Note this will fail if the source is too short or if the destination is not "
5325 "large enough."
5326 msgstr ""
5327
5328 #. type: =head2
5329 #: ../fish/guestfish-actions.pod:795
5330 msgid "cp"
5331 msgstr ""
5332
5333 #. type: verbatim
5334 #: ../fish/guestfish-actions.pod:797
5335 #, no-wrap
5336 msgid ""
5337 " cp src dest\n"
5338 "\n"
5339 msgstr ""
5340
5341 #. type: textblock
5342 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
5343 msgid ""
5344 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5345 "destination filename or destination directory."
5346 msgstr ""
5347
5348 #. type: =head2
5349 #: ../fish/guestfish-actions.pod:802
5350 msgid "cp-a"
5351 msgstr ""
5352
5353 #. type: verbatim
5354 #: ../fish/guestfish-actions.pod:804
5355 #, no-wrap
5356 msgid ""
5357 " cp-a src dest\n"
5358 "\n"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
5363 msgid ""
5364 "This copies a file or directory from C<src> to C<dest> recursively using the "
5365 "C<cp -a> command."
5366 msgstr ""
5367
5368 #. type: =head2
5369 #: ../fish/guestfish-actions.pod:809
5370 msgid "dd"
5371 msgstr ""
5372
5373 #. type: verbatim
5374 #: ../fish/guestfish-actions.pod:811
5375 #, no-wrap
5376 msgid ""
5377 " dd src dest\n"
5378 "\n"
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
5383 msgid ""
5384 "This command copies from one source device or file C<src> to another "
5385 "destination device or file C<dest>.  Normally you would use this to copy to "
5386 "or from a device or partition, for example to duplicate a filesystem."
5387 msgstr ""
5388
5389 #. type: textblock
5390 #: ../fish/guestfish-actions.pod:818
5391 msgid ""
5392 "If the destination is a device, it must be as large or larger than the "
5393 "source file or device, otherwise the copy will fail.  This command cannot do "
5394 "partial copies (see L</copy-size>)."
5395 msgstr ""
5396
5397 #. type: =head2
5398 #: ../fish/guestfish-actions.pod:822
5399 msgid "df"
5400 msgstr ""
5401
5402 #. type: verbatim
5403 #: ../fish/guestfish-actions.pod:824
5404 #, no-wrap
5405 msgid ""
5406 " df\n"
5407 "\n"
5408 msgstr ""
5409
5410 #. type: textblock
5411 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
5412 msgid "This command runs the C<df> command to report disk space used."
5413 msgstr ""
5414
5415 #. type: textblock
5416 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
5417 msgid ""
5418 "This command is mostly useful for interactive sessions.  It is I<not> "
5419 "intended that you try to parse the output string.  Use L</statvfs> from "
5420 "programs."
5421 msgstr ""
5422
5423 #. type: =head2
5424 #: ../fish/guestfish-actions.pod:832
5425 msgid "df-h"
5426 msgstr ""
5427
5428 #. type: verbatim
5429 #: ../fish/guestfish-actions.pod:834
5430 #, no-wrap
5431 msgid ""
5432 " df-h\n"
5433 "\n"
5434 msgstr ""
5435
5436 #. type: textblock
5437 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
5438 msgid ""
5439 "This command runs the C<df -h> command to report disk space used in "
5440 "human-readable format."
5441 msgstr ""
5442
5443 #. type: =head2
5444 #: ../fish/guestfish-actions.pod:843
5445 msgid "dmesg"
5446 msgstr ""
5447
5448 #. type: verbatim
5449 #: ../fish/guestfish-actions.pod:845
5450 #, no-wrap
5451 msgid ""
5452 " dmesg\n"
5453 "\n"
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
5458 msgid ""
5459 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5460 "This is sometimes useful for extended debugging of problems."
5461 msgstr ""
5462
5463 #. type: textblock
5464 #: ../fish/guestfish-actions.pod:851
5465 msgid ""
5466 "Another way to get the same information is to enable verbose messages with "
5467 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5468 "before running the program."
5469 msgstr ""
5470
5471 #. type: =head2
5472 #: ../fish/guestfish-actions.pod:856
5473 msgid "download"
5474 msgstr ""
5475
5476 #. type: verbatim
5477 #: ../fish/guestfish-actions.pod:858
5478 #, no-wrap
5479 msgid ""
5480 " download remotefilename (filename|-)\n"
5481 "\n"
5482 msgstr ""
5483
5484 #. type: textblock
5485 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873 ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
5486 msgid ""
5487 "Download file C<remotefilename> and save it as C<filename> on the local "
5488 "machine."
5489 msgstr ""
5490
5491 #. type: textblock
5492 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
5493 msgid "C<filename> can also be a named pipe."
5494 msgstr ""
5495
5496 #. type: textblock
5497 #: ../fish/guestfish-actions.pod:865
5498 msgid "See also L</upload>, L</cat>."
5499 msgstr ""
5500
5501 #. type: =head2
5502 #: ../fish/guestfish-actions.pod:869
5503 msgid "download-offset"
5504 msgstr ""
5505
5506 #. type: verbatim
5507 #: ../fish/guestfish-actions.pod:871
5508 #, no-wrap
5509 msgid ""
5510 " download-offset remotefilename (filename|-) offset size\n"
5511 "\n"
5512 msgstr ""
5513
5514 #. type: textblock
5515 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
5516 msgid ""
5517 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5518 "region must be within the file or device)."
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../fish/guestfish-actions.pod:879
5523 msgid ""
5524 "Note that there is no limit on the amount of data that can be downloaded "
5525 "with this call, unlike with L</pread>, and this call always reads the full "
5526 "amount unless an error occurs."
5527 msgstr ""
5528
5529 #. type: textblock
5530 #: ../fish/guestfish-actions.pod:884
5531 msgid "See also L</download>, L</pread>."
5532 msgstr ""
5533
5534 #. type: =head2
5535 #: ../fish/guestfish-actions.pod:888
5536 msgid "drop-caches"
5537 msgstr ""
5538
5539 #. type: verbatim
5540 #: ../fish/guestfish-actions.pod:890
5541 #, no-wrap
5542 msgid ""
5543 " drop-caches whattodrop\n"
5544 "\n"
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
5549 msgid ""
5550 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5551 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5552 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5553 msgstr ""
5554
5555 #. type: textblock
5556 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
5557 msgid "Setting C<whattodrop> to 3 should drop everything."
5558 msgstr ""
5559
5560 #. type: textblock
5561 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
5562 msgid ""
5563 "This automatically calls L<sync(2)> before the operation, so that the "
5564 "maximum guest memory is freed."
5565 msgstr ""
5566
5567 #. type: =head2
5568 #: ../fish/guestfish-actions.pod:902
5569 msgid "du"
5570 msgstr ""
5571
5572 #. type: verbatim
5573 #: ../fish/guestfish-actions.pod:904
5574 #, no-wrap
5575 msgid ""
5576 " du path\n"
5577 "\n"
5578 msgstr ""
5579
5580 #. type: textblock
5581 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
5582 msgid ""
5583 "This command runs the C<du -s> command to estimate file space usage for "
5584 "C<path>."
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
5589 msgid ""
5590 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5591 "estimate includes the contents of the directory and all subdirectories "
5592 "(recursively)."
5593 msgstr ""
5594
5595 #. type: textblock
5596 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
5597 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5598 msgstr ""
5599
5600 #. type: =head2
5601 #: ../fish/guestfish-actions.pod:916
5602 msgid "e2fsck-f"
5603 msgstr ""
5604
5605 #. type: verbatim
5606 #: ../fish/guestfish-actions.pod:918
5607 #, no-wrap
5608 msgid ""
5609 " e2fsck-f device\n"
5610 "\n"
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
5615 msgid ""
5616 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5617 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5618 "clean (I<-f>)."
5619 msgstr ""
5620
5621 #. type: textblock
5622 #: ../fish/guestfish-actions.pod:924
5623 msgid ""
5624 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5625 "should use L</fsck>."
5626 msgstr ""
5627
5628 #. type: =head2
5629 #: ../fish/guestfish-actions.pod:927
5630 msgid "echo-daemon"
5631 msgstr ""
5632
5633 #. type: verbatim
5634 #: ../fish/guestfish-actions.pod:929
5635 #, no-wrap
5636 msgid ""
5637 " echo-daemon 'words ...'\n"
5638 "\n"
5639 msgstr ""
5640
5641 #. type: textblock
5642 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
5643 msgid ""
5644 "This command concatenates the list of C<words> passed with single spaces "
5645 "between them and returns the resulting string."
5646 msgstr ""
5647
5648 #. type: textblock
5649 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
5650 msgid "You can use this command to test the connection through to the daemon."
5651 msgstr ""
5652
5653 #. type: textblock
5654 #: ../fish/guestfish-actions.pod:936
5655 msgid "See also L</ping-daemon>."
5656 msgstr ""
5657
5658 #. type: =head2
5659 #: ../fish/guestfish-actions.pod:938
5660 msgid "egrep"
5661 msgstr ""
5662
5663 #. type: verbatim
5664 #: ../fish/guestfish-actions.pod:940
5665 #, no-wrap
5666 msgid ""
5667 " egrep regex path\n"
5668 "\n"
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
5673 msgid "This calls the external C<egrep> program and returns the matching lines."
5674 msgstr ""
5675
5676 #. type: =head2
5677 #: ../fish/guestfish-actions.pod:948
5678 msgid "egrepi"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../fish/guestfish-actions.pod:950
5683 #, no-wrap
5684 msgid ""
5685 " egrepi regex path\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
5691 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../fish/guestfish-actions.pod:958
5696 msgid "equal"
5697 msgstr ""
5698
5699 #. type: verbatim
5700 #: ../fish/guestfish-actions.pod:960
5701 #, no-wrap
5702 msgid ""
5703 " equal file1 file2\n"
5704 "\n"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
5709 msgid ""
5710 "This compares the two files C<file1> and C<file2> and returns true if their "
5711 "content is exactly equal, or false otherwise."
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
5716 msgid "The external L<cmp(1)> program is used for the comparison."
5717 msgstr ""
5718
5719 #. type: =head2
5720 #: ../fish/guestfish-actions.pod:967
5721 msgid "exists"
5722 msgstr ""
5723
5724 #. type: verbatim
5725 #: ../fish/guestfish-actions.pod:969
5726 #, no-wrap
5727 msgid ""
5728 " exists path\n"
5729 "\n"
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
5734 msgid ""
5735 "This returns C<true> if and only if there is a file, directory (or anything) "
5736 "with the given C<path> name."
5737 msgstr ""
5738
5739 #. type: textblock
5740 #: ../fish/guestfish-actions.pod:974
5741 msgid "See also L</is-file>, L</is-dir>, L</stat>."
5742 msgstr ""
5743
5744 #. type: =head2
5745 #: ../fish/guestfish-actions.pod:976
5746 msgid "fallocate"
5747 msgstr ""
5748
5749 #. type: verbatim
5750 #: ../fish/guestfish-actions.pod:978
5751 #, no-wrap
5752 msgid ""
5753 " fallocate path len\n"
5754 "\n"
5755 msgstr ""
5756
5757 #. type: textblock
5758 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999 ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
5759 msgid ""
5760 "This command preallocates a file (containing zero bytes) named C<path> of "
5761 "size C<len> bytes.  If the file exists already, it is overwritten."
5762 msgstr ""
5763
5764 #. type: textblock
5765 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
5766 msgid ""
5767 "Do not confuse this with the guestfish-specific C<alloc> command which "
5768 "allocates a file in the host and attaches it as a device."
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../fish/guestfish-actions.pod:988
5773 msgid ""
5774 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
5775 "instead."
5776 msgstr ""
5777
5778 #. type: =head2
5779 #: ../fish/guestfish-actions.pod:995
5780 msgid "fallocate64"
5781 msgstr ""
5782
5783 #. type: verbatim
5784 #: ../fish/guestfish-actions.pod:997
5785 #, no-wrap
5786 msgid ""
5787 " fallocate64 path len\n"
5788 "\n"
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../fish/guestfish-actions.pod:1003
5793 msgid ""
5794 "Note that this call allocates disk blocks for the file.  To create a sparse "
5795 "file use L</truncate-size> instead."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:1006
5800 msgid ""
5801 "The deprecated call L</fallocate> does the same, but owing to an oversight "
5802 "it only allowed 30 bit lengths to be specified, effectively limiting the "
5803 "maximum size of files created through that call to 1GB."
5804 msgstr ""
5805
5806 #. type: textblock
5807 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
5808 msgid ""
5809 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5810 "commands which create a file in the host and attach it as a device."
5811 msgstr ""
5812
5813 #. type: =head2
5814 #: ../fish/guestfish-actions.pod:1015
5815 msgid "fgrep"
5816 msgstr ""
5817
5818 #. type: verbatim
5819 #: ../fish/guestfish-actions.pod:1017
5820 #, no-wrap
5821 msgid ""
5822 " fgrep pattern path\n"
5823 "\n"
5824 msgstr ""
5825
5826 #. type: textblock
5827 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
5828 msgid "This calls the external C<fgrep> program and returns the matching lines."
5829 msgstr ""
5830
5831 #. type: =head2
5832 #: ../fish/guestfish-actions.pod:1025
5833 msgid "fgrepi"
5834 msgstr ""
5835
5836 #. type: verbatim
5837 #: ../fish/guestfish-actions.pod:1027
5838 #, no-wrap
5839 msgid ""
5840 " fgrepi pattern path\n"
5841 "\n"
5842 msgstr ""
5843
5844 #. type: textblock
5845 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
5846 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5847 msgstr ""
5848
5849 #. type: =head2
5850 #: ../fish/guestfish-actions.pod:1035
5851 msgid "file"
5852 msgstr ""
5853
5854 #. type: verbatim
5855 #: ../fish/guestfish-actions.pod:1037
5856 #, no-wrap
5857 msgid ""
5858 " file path\n"
5859 "\n"
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
5864 msgid ""
5865 "This call uses the standard L<file(1)> command to determine the type or "
5866 "contents of the file."
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
5871 msgid ""
5872 "This call will also transparently look inside various types of compressed "
5873 "file."
5874 msgstr ""
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
5878 msgid ""
5879 "The exact command which runs is C<file -zb path>.  Note in particular that "
5880 "the filename is not prepended to the output (the I<-b> option)."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
5885 msgid ""
5886 "The output depends on the output of the underlying L<file(1)> command and it "
5887 "can change in future in ways beyond our control.  In other words, the output "
5888 "is not guaranteed by the ABI."
5889 msgstr ""
5890
5891 #. type: textblock
5892 #: ../fish/guestfish-actions.pod:1053
5893 msgid ""
5894 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
5895 "(etc), L</is-zero>."
5896 msgstr ""
5897
5898 #. type: =head2
5899 #: ../fish/guestfish-actions.pod:1056
5900 msgid "file-architecture"
5901 msgstr ""
5902
5903 #. type: verbatim
5904 #: ../fish/guestfish-actions.pod:1058
5905 #, no-wrap
5906 msgid ""
5907 " file-architecture filename\n"
5908 "\n"
5909 msgstr ""
5910
5911 #. type: textblock
5912 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
5913 msgid ""
5914 "This detects the architecture of the binary C<filename>, and returns it if "
5915 "known."
5916 msgstr ""
5917
5918 #. type: textblock
5919 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
5920 msgid "Currently defined architectures are:"
5921 msgstr ""
5922
5923 #. type: =item
5924 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
5925 msgid "\"i386\""
5926 msgstr ""
5927
5928 #. type: textblock
5929 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
5930 msgid ""
5931 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5932 "irrespective of the precise processor requirements of the binary."
5933 msgstr ""
5934
5935 #. type: =item
5936 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
5937 msgid "\"x86_64\""
5938 msgstr ""
5939
5940 #. type: textblock
5941 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
5942 msgid "64 bit x86-64."
5943 msgstr ""
5944
5945 #. type: =item
5946 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
5947 msgid "\"sparc\""
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
5952 msgid "32 bit SPARC."
5953 msgstr ""
5954
5955 #. type: =item
5956 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
5957 msgid "\"sparc64\""
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
5962 msgid "64 bit SPARC V9 and above."
5963 msgstr ""
5964
5965 #. type: =item
5966 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
5967 msgid "\"ia64\""
5968 msgstr ""
5969
5970 #. type: textblock
5971 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
5972 msgid "Intel Itanium."
5973 msgstr ""
5974
5975 #. type: =item
5976 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
5977 msgid "\"ppc\""
5978 msgstr ""
5979
5980 #. type: textblock
5981 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
5982 msgid "32 bit Power PC."
5983 msgstr ""
5984
5985 #. type: =item
5986 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
5987 msgid "\"ppc64\""
5988 msgstr ""
5989
5990 #. type: textblock
5991 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
5992 msgid "64 bit Power PC."
5993 msgstr ""
5994
5995 #. type: textblock
5996 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
5997 msgid "Libguestfs may return other architecture strings in future."
5998 msgstr ""
5999
6000 #. type: textblock
6001 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6002 msgid "The function works on at least the following types of files:"
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6007 msgid "many types of Un*x and Linux binary"
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6012 msgid "many types of Un*x and Linux shared library"
6013 msgstr ""
6014
6015 #. type: textblock
6016 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6017 msgid "Windows Win32 and Win64 binaries"
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6022 msgid "Windows Win32 and Win64 DLLs"
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6027 msgid "Win32 binaries and DLLs return C<i386>."
6028 msgstr ""
6029
6030 #. type: textblock
6031 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6032 msgid "Win64 binaries and DLLs return C<x86_64>."
6033 msgstr ""
6034
6035 #. type: textblock
6036 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6037 msgid "Linux kernel modules"
6038 msgstr ""
6039
6040 #. type: textblock
6041 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6042 msgid "Linux new-style initrd images"
6043 msgstr ""
6044
6045 #. type: textblock
6046 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6047 msgid "some non-x86 Linux vmlinuz kernels"
6048 msgstr ""
6049
6050 #. type: textblock
6051 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6052 msgid "What it can't do currently:"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6057 msgid "static libraries (libfoo.a)"
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6062 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6067 msgid "x86 Linux vmlinuz kernels"
6068 msgstr ""
6069
6070 #. type: textblock
6071 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6072 msgid ""
6073 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6074 "compressed code, and are horribly hard to unpack.  If you want to find the "
6075 "architecture of a kernel, use the architecture of the associated initrd or "
6076 "kernel module(s) instead."
6077 msgstr ""
6078
6079 #. type: =head2
6080 #: ../fish/guestfish-actions.pod:1161
6081 msgid "filesize"
6082 msgstr ""
6083
6084 #. type: verbatim
6085 #: ../fish/guestfish-actions.pod:1163
6086 #, no-wrap
6087 msgid ""
6088 " filesize file\n"
6089 "\n"
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
6094 msgid "This command returns the size of C<file> in bytes."
6095 msgstr ""
6096
6097 #. type: textblock
6098 #: ../fish/guestfish-actions.pod:1167
6099 msgid ""
6100 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6101 "L</is-file> etc.  To get the size of block devices, use "
6102 "L</blockdev-getsize64>."
6103 msgstr ""
6104
6105 #. type: =head2
6106 #: ../fish/guestfish-actions.pod:1171
6107 msgid "fill"
6108 msgstr ""
6109
6110 #. type: verbatim
6111 #: ../fish/guestfish-actions.pod:1173
6112 #, no-wrap
6113 msgid ""
6114 " fill c len path\n"
6115 "\n"
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
6120 msgid ""
6121 "This command creates a new file called C<path>.  The initial content of the "
6122 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6123 "C<[0..255]>."
6124 msgstr ""
6125
6126 #. type: textblock
6127 #: ../fish/guestfish-actions.pod:1179
6128 msgid ""
6129 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6130 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6131 "L</fill-pattern>."
6132 msgstr ""
6133
6134 #. type: =head2
6135 #: ../fish/guestfish-actions.pod:1184
6136 msgid "fill-pattern"
6137 msgstr ""
6138
6139 #. type: verbatim
6140 #: ../fish/guestfish-actions.pod:1186
6141 #, no-wrap
6142 msgid ""
6143 " fill-pattern pattern len path\n"
6144 "\n"
6145 msgstr ""
6146
6147 #. type: textblock
6148 #: ../fish/guestfish-actions.pod:1188
6149 msgid ""
6150 "This function is like L</fill> except that it creates a new file of length "
6151 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6152 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6153 "bytes."
6154 msgstr ""
6155
6156 #. type: =head2
6157 #: ../fish/guestfish-actions.pod:1193
6158 msgid "find"
6159 msgstr ""
6160
6161 #. type: verbatim
6162 #: ../fish/guestfish-actions.pod:1195
6163 #, no-wrap
6164 msgid ""
6165 " find directory\n"
6166 "\n"
6167 msgstr ""
6168
6169 #. type: textblock
6170 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6171 msgid ""
6172 "This command lists out all files and directories, recursively, starting at "
6173 "C<directory>.  It is essentially equivalent to running the shell command "
6174 "C<find directory -print> but some post-processing happens on the output, "
6175 "described below."
6176 msgstr ""
6177
6178 #. type: textblock
6179 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
6180 msgid ""
6181 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6182 "structure was:"
6183 msgstr ""
6184
6185 #. type: verbatim
6186 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
6187 #, no-wrap
6188 msgid ""
6189 " /tmp/a\n"
6190 " /tmp/b\n"
6191 " /tmp/c/d\n"
6192 "\n"
6193 msgstr ""
6194
6195 #. type: textblock
6196 #: ../fish/guestfish-actions.pod:1209
6197 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6198 msgstr ""
6199
6200 #. type: verbatim
6201 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6202 #, no-wrap
6203 msgid ""
6204 " a\n"
6205 " b\n"
6206 " c\n"
6207 " c/d\n"
6208 "\n"
6209 msgstr ""
6210
6211 #. type: textblock
6212 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
6213 msgid "If C<directory> is not a directory, then this command returns an error."
6214 msgstr ""
6215
6216 #. type: textblock
6217 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
6218 msgid "The returned list is sorted."
6219 msgstr ""
6220
6221 #. type: textblock
6222 #: ../fish/guestfish-actions.pod:1222
6223 msgid "See also L</find0>."
6224 msgstr ""
6225
6226 #. type: =head2
6227 #: ../fish/guestfish-actions.pod:1227
6228 msgid "find0"
6229 msgstr ""
6230
6231 #. type: verbatim
6232 #: ../fish/guestfish-actions.pod:1229
6233 #, no-wrap
6234 msgid ""
6235 " find0 directory (files|-)\n"
6236 "\n"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
6241 msgid ""
6242 "This command lists out all files and directories, recursively, starting at "
6243 "C<directory>, placing the resulting list in the external file called "
6244 "C<files>."
6245 msgstr ""
6246
6247 #. type: textblock
6248 #: ../fish/guestfish-actions.pod:1235
6249 msgid "This command works the same way as L</find> with the following exceptions:"
6250 msgstr ""
6251
6252 #. type: textblock
6253 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
6254 msgid "The resulting list is written to an external file."
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6259 msgid ""
6260 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6261 "L<find(1)> option I<-print0>."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6266 msgid "This command is not limited in the number of names that it can return."
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
6271 msgid "The result list is not sorted."
6272 msgstr ""
6273
6274 #. type: =head2
6275 #: ../fish/guestfish-actions.pod:1262
6276 msgid "findfs-label"
6277 msgstr ""
6278
6279 #. type: verbatim
6280 #: ../fish/guestfish-actions.pod:1264
6281 #, no-wrap
6282 msgid ""
6283 " findfs-label label\n"
6284 "\n"
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
6289 msgid ""
6290 "This command searches the filesystems and returns the one which has the "
6291 "given label.  An error is returned if no such filesystem can be found."
6292 msgstr ""
6293
6294 #. type: textblock
6295 #: ../fish/guestfish-actions.pod:1270
6296 msgid "To find the label of a filesystem, use L</vfs-label>."
6297 msgstr ""
6298
6299 #. type: =head2
6300 #: ../fish/guestfish-actions.pod:1272
6301 msgid "findfs-uuid"
6302 msgstr ""
6303
6304 #. type: verbatim
6305 #: ../fish/guestfish-actions.pod:1274
6306 #, no-wrap
6307 msgid ""
6308 " findfs-uuid uuid\n"
6309 "\n"
6310 msgstr ""
6311
6312 #. type: textblock
6313 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
6314 msgid ""
6315 "This command searches the filesystems and returns the one which has the "
6316 "given UUID.  An error is returned if no such filesystem can be found."
6317 msgstr ""
6318
6319 #. type: textblock
6320 #: ../fish/guestfish-actions.pod:1280
6321 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6322 msgstr ""
6323
6324 #. type: =head2
6325 #: ../fish/guestfish-actions.pod:1282
6326 msgid "fsck"
6327 msgstr ""
6328
6329 #. type: verbatim
6330 #: ../fish/guestfish-actions.pod:1284
6331 #, no-wrap
6332 msgid ""
6333 " fsck fstype device\n"
6334 "\n"
6335 msgstr ""
6336
6337 #. type: textblock
6338 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
6339 msgid ""
6340 "This runs the filesystem checker (fsck) on C<device> which should have "
6341 "filesystem type C<fstype>."
6342 msgstr ""
6343
6344 #. type: textblock
6345 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
6346 msgid ""
6347 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6348 "codes from C<fsck>."
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
6353 msgid "Multiple status codes can be summed together."
6354 msgstr ""
6355
6356 #. type: textblock
6357 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6358 msgid ""
6359 "A non-zero return code can mean \"success\", for example if errors have been "
6360 "corrected on the filesystem."
6361 msgstr ""
6362
6363 #. type: textblock
6364 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6365 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6366 msgstr ""
6367
6368 #. type: textblock
6369 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
6370 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6371 msgstr ""
6372
6373 #. type: =head2
6374 #: ../fish/guestfish-actions.pod:1314
6375 msgid "get-append"
6376 msgstr ""
6377
6378 #. type: verbatim
6379 #: ../fish/guestfish-actions.pod:1316
6380 #, no-wrap
6381 msgid ""
6382 " get-append\n"
6383 "\n"
6384 msgstr ""
6385
6386 #. type: textblock
6387 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
6388 msgid ""
6389 "Return the additional kernel options which are added to the guest kernel "
6390 "command line."
6391 msgstr ""
6392
6393 #. type: textblock
6394 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
6395 msgid "If C<NULL> then no options are added."
6396 msgstr ""
6397
6398 #. type: =head2
6399 #: ../fish/guestfish-actions.pod:1323
6400 msgid "get-attach-method"
6401 msgstr ""
6402
6403 #. type: verbatim
6404 #: ../fish/guestfish-actions.pod:1325
6405 #, no-wrap
6406 msgid ""
6407 " get-attach-method\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../fish/guestfish-actions.pod:1327
6413 msgid "Return the current attach method.  See L</set-attach-method>."
6414 msgstr ""
6415
6416 #. type: =head2
6417 #: ../fish/guestfish-actions.pod:1329
6418 msgid "get-autosync"
6419 msgstr ""
6420
6421 #. type: verbatim
6422 #: ../fish/guestfish-actions.pod:1331
6423 #, no-wrap
6424 msgid ""
6425 " get-autosync\n"
6426 "\n"
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
6431 msgid "Get the autosync flag."
6432 msgstr ""
6433
6434 #. type: =head2
6435 #: ../fish/guestfish-actions.pod:1335
6436 msgid "get-direct"
6437 msgstr ""
6438
6439 #. type: verbatim
6440 #: ../fish/guestfish-actions.pod:1337
6441 #, no-wrap
6442 msgid ""
6443 " get-direct\n"
6444 "\n"
6445 msgstr ""
6446
6447 #. type: textblock
6448 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
6449 msgid "Return the direct appliance mode flag."
6450 msgstr ""
6451
6452 #. type: =head2
6453 #: ../fish/guestfish-actions.pod:1341
6454 msgid "get-e2label"
6455 msgstr ""
6456
6457 #. type: verbatim
6458 #: ../fish/guestfish-actions.pod:1343
6459 #, no-wrap
6460 msgid ""
6461 " get-e2label device\n"
6462 "\n"
6463 msgstr ""
6464
6465 #. type: textblock
6466 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
6467 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6468 msgstr ""
6469
6470 #. type: textblock
6471 #: ../fish/guestfish-actions.pod:1348
6472 msgid ""
6473 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6474 "instead."
6475 msgstr ""
6476
6477 #. type: =head2
6478 #: ../fish/guestfish-actions.pod:1355
6479 msgid "get-e2uuid"
6480 msgstr ""
6481
6482 #. type: verbatim
6483 #: ../fish/guestfish-actions.pod:1357
6484 #, no-wrap
6485 msgid ""
6486 " get-e2uuid device\n"
6487 "\n"
6488 msgstr ""
6489
6490 #. type: textblock
6491 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
6492 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6493 msgstr ""
6494
6495 #. type: textblock
6496 #: ../fish/guestfish-actions.pod:1362
6497 msgid ""
6498 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6499 "instead."
6500 msgstr ""
6501
6502 #. type: =head2
6503 #: ../fish/guestfish-actions.pod:1369
6504 msgid "get-memsize"
6505 msgstr ""
6506
6507 #. type: verbatim
6508 #: ../fish/guestfish-actions.pod:1371
6509 #, no-wrap
6510 msgid ""
6511 " get-memsize\n"
6512 "\n"
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
6517 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1376
6522 msgid ""
6523 "If L</set-memsize> was not called on this handle, and if "
6524 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6525 "value for memsize."
6526 msgstr ""
6527
6528 #. type: textblock
6529 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437 ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270 ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
6530 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6531 msgstr ""
6532
6533 #. type: =head2
6534 #: ../fish/guestfish-actions.pod:1383
6535 msgid "get-network"
6536 msgstr ""
6537
6538 #. type: verbatim
6539 #: ../fish/guestfish-actions.pod:1385
6540 #, no-wrap
6541 msgid ""
6542 " get-network\n"
6543 "\n"
6544 msgstr ""
6545
6546 #. type: textblock
6547 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
6548 msgid "This returns the enable network flag."
6549 msgstr ""
6550
6551 #. type: =head2
6552 #: ../fish/guestfish-actions.pod:1389
6553 msgid "get-path"
6554 msgstr ""
6555
6556 #. type: verbatim
6557 #: ../fish/guestfish-actions.pod:1391
6558 #, no-wrap
6559 msgid ""
6560 " get-path\n"
6561 "\n"
6562 msgstr ""
6563
6564 #. type: textblock
6565 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
6566 msgid "Return the current search path."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
6571 msgid ""
6572 "This is always non-NULL.  If it wasn't set already, then this will return "
6573 "the default path."
6574 msgstr ""
6575
6576 #. type: =head2
6577 #: ../fish/guestfish-actions.pod:1398
6578 msgid "get-pgroup"
6579 msgstr ""
6580
6581 #. type: verbatim
6582 #: ../fish/guestfish-actions.pod:1400
6583 #, no-wrap
6584 msgid ""
6585 " get-pgroup\n"
6586 "\n"
6587 msgstr ""
6588
6589 #. type: textblock
6590 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
6591 msgid "This returns the process group flag."
6592 msgstr ""
6593
6594 #. type: =head2
6595 #: ../fish/guestfish-actions.pod:1404
6596 msgid "get-pid"
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../fish/guestfish-actions.pod:1406
6601 msgid "pid"
6602 msgstr ""
6603
6604 #. type: verbatim
6605 #: ../fish/guestfish-actions.pod:1408
6606 #, no-wrap
6607 msgid ""
6608 " get-pid\n"
6609 "\n"
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
6614 msgid ""
6615 "Return the process ID of the qemu subprocess.  If there is no qemu "
6616 "subprocess, then this will return an error."
6617 msgstr ""
6618
6619 #. type: textblock
6620 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
6621 msgid "This is an internal call used for debugging and testing."
6622 msgstr ""
6623
6624 #. type: =head2
6625 #: ../fish/guestfish-actions.pod:1415
6626 msgid "get-qemu"
6627 msgstr ""
6628
6629 #. type: verbatim
6630 #: ../fish/guestfish-actions.pod:1417
6631 #, no-wrap
6632 msgid ""
6633 " get-qemu\n"
6634 "\n"
6635 msgstr ""
6636
6637 #. type: textblock
6638 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
6639 msgid "Return the current qemu binary."
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
6644 msgid ""
6645 "This is always non-NULL.  If it wasn't set already, then this will return "
6646 "the default qemu binary name."
6647 msgstr ""
6648
6649 #. type: =head2
6650 #: ../fish/guestfish-actions.pod:1424
6651 msgid "get-recovery-proc"
6652 msgstr ""
6653
6654 #. type: verbatim
6655 #: ../fish/guestfish-actions.pod:1426
6656 #, no-wrap
6657 msgid ""
6658 " get-recovery-proc\n"
6659 "\n"
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
6664 msgid "Return the recovery process enabled flag."
6665 msgstr ""
6666
6667 #. type: =head2
6668 #: ../fish/guestfish-actions.pod:1430
6669 msgid "get-selinux"
6670 msgstr ""
6671
6672 #. type: verbatim
6673 #: ../fish/guestfish-actions.pod:1432
6674 #, no-wrap
6675 msgid ""
6676 " get-selinux\n"
6677 "\n"
6678 msgstr ""
6679
6680 #. type: textblock
6681 #: ../fish/guestfish-actions.pod:1434
6682 msgid ""
6683 "This returns the current setting of the selinux flag which is passed to the "
6684 "appliance at boot time.  See L</set-selinux>."
6685 msgstr ""
6686
6687 #. type: =head2
6688 #: ../fish/guestfish-actions.pod:1440
6689 msgid "get-state"
6690 msgstr ""
6691
6692 #. type: verbatim
6693 #: ../fish/guestfish-actions.pod:1442
6694 #, no-wrap
6695 msgid ""
6696 " get-state\n"
6697 "\n"
6698 msgstr ""
6699
6700 #. type: textblock
6701 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
6702 msgid ""
6703 "This returns the current state as an opaque integer.  This is only useful "
6704 "for printing debug and internal error messages."
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367 ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423 ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468 ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
6709 msgid "For more information on states, see L<guestfs(3)>."
6710 msgstr ""
6711
6712 #. type: =head2
6713 #: ../fish/guestfish-actions.pod:1449
6714 msgid "get-trace"
6715 msgstr ""
6716
6717 #. type: verbatim
6718 #: ../fish/guestfish-actions.pod:1451
6719 #, no-wrap
6720 msgid ""
6721 " get-trace\n"
6722 "\n"
6723 msgstr ""
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
6727 msgid "Return the command trace flag."
6728 msgstr ""
6729
6730 #. type: =head2
6731 #: ../fish/guestfish-actions.pod:1455
6732 msgid "get-umask"
6733 msgstr ""
6734
6735 #. type: verbatim
6736 #: ../fish/guestfish-actions.pod:1457
6737 #, no-wrap
6738 msgid ""
6739 " get-umask\n"
6740 "\n"
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:1459
6745 msgid ""
6746 "Return the current umask.  By default the umask is C<022> unless it has been "
6747 "set by calling L</umask>."
6748 msgstr ""
6749
6750 #. type: =head2
6751 #: ../fish/guestfish-actions.pod:1462
6752 msgid "get-verbose"
6753 msgstr ""
6754
6755 #. type: verbatim
6756 #: ../fish/guestfish-actions.pod:1464
6757 #, no-wrap
6758 msgid ""
6759 " get-verbose\n"
6760 "\n"
6761 msgstr ""
6762
6763 #. type: textblock
6764 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
6765 msgid "This returns the verbose messages flag."
6766 msgstr ""
6767
6768 #. type: =head2
6769 #: ../fish/guestfish-actions.pod:1468
6770 msgid "getcon"
6771 msgstr ""
6772
6773 #. type: verbatim
6774 #: ../fish/guestfish-actions.pod:1470
6775 #, no-wrap
6776 msgid ""
6777 " getcon\n"
6778 "\n"
6779 msgstr ""
6780
6781 #. type: textblock
6782 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
6783 msgid "This gets the SELinux security context of the daemon."
6784 msgstr ""
6785
6786 #. type: textblock
6787 #: ../fish/guestfish-actions.pod:1474
6788 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
6789 msgstr ""
6790
6791 #. type: =head2
6792 #: ../fish/guestfish-actions.pod:1477
6793 msgid "getxattr"
6794 msgstr ""
6795
6796 #. type: verbatim
6797 #: ../fish/guestfish-actions.pod:1479
6798 #, no-wrap
6799 msgid ""
6800 " getxattr path name\n"
6801 "\n"
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1481
6806 msgid ""
6807 "Get a single extended attribute from file C<path> named C<name>.  This call "
6808 "follows symlinks.  If you want to lookup an extended attribute for the "
6809 "symlink itself, use L</lgetxattr>."
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
6814 msgid ""
6815 "Normally it is better to get all extended attributes from a file in one go "
6816 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
6817 "buggy and do not provide a way to list out attributes.  For these "
6818 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
6819 "attributes you want in advance and call this function."
6820 msgstr ""
6821
6822 #. type: textblock
6823 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519 ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
6824 msgid ""
6825 "Extended attribute values are blobs of binary data.  If there is no extended "
6826 "attribute named C<name>, this returns an error."
6827 msgstr ""
6828
6829 #. type: textblock
6830 #: ../fish/guestfish-actions.pod:1495
6831 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
6832 msgstr ""
6833
6834 #. type: =head2
6835 #: ../fish/guestfish-actions.pod:1497
6836 msgid "getxattrs"
6837 msgstr ""
6838
6839 #. type: verbatim
6840 #: ../fish/guestfish-actions.pod:1499
6841 #, no-wrap
6842 msgid ""
6843 " getxattrs path\n"
6844 "\n"
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
6849 msgid "This call lists the extended attributes of the file or directory C<path>."
6850 msgstr ""
6851
6852 #. type: textblock
6853 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
6854 msgid ""
6855 "At the system call level, this is a combination of the L<listxattr(2)> and "
6856 "L<getxattr(2)> calls."
6857 msgstr ""
6858
6859 #. type: textblock
6860 #: ../fish/guestfish-actions.pod:1507
6861 msgid "See also: L</lgetxattrs>, L<attr(5)>."
6862 msgstr ""
6863
6864 #. type: =head2
6865 #: ../fish/guestfish-actions.pod:1509
6866 msgid "glob-expand"
6867 msgstr ""
6868
6869 #. type: verbatim
6870 #: ../fish/guestfish-actions.pod:1511
6871 #, no-wrap
6872 msgid ""
6873 " glob-expand pattern\n"
6874 "\n"
6875 msgstr ""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
6879 msgid ""
6880 "This command searches for all the pathnames matching C<pattern> according to "
6881 "the wildcard expansion rules used by the shell."
6882 msgstr ""
6883
6884 #. type: textblock
6885 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
6886 msgid "If no paths match, then this returns an empty list (note: not an error)."
6887 msgstr ""
6888
6889 #. type: textblock
6890 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
6891 msgid ""
6892 "It is just a wrapper around the C L<glob(3)> function with flags "
6893 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6894 msgstr ""
6895
6896 #. type: =head2
6897 #: ../fish/guestfish-actions.pod:1524
6898 msgid "grep"
6899 msgstr ""
6900
6901 #. type: verbatim
6902 #: ../fish/guestfish-actions.pod:1526
6903 #, no-wrap
6904 msgid ""
6905 " grep regex path\n"
6906 "\n"
6907 msgstr ""
6908
6909 #. type: textblock
6910 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
6911 msgid "This calls the external C<grep> program and returns the matching lines."
6912 msgstr ""
6913
6914 #. type: =head2
6915 #: ../fish/guestfish-actions.pod:1534
6916 msgid "grepi"
6917 msgstr ""
6918
6919 #. type: verbatim
6920 #: ../fish/guestfish-actions.pod:1536
6921 #, no-wrap
6922 msgid ""
6923 " grepi regex path\n"
6924 "\n"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
6929 msgid "This calls the external C<grep -i> program and returns the matching lines."
6930 msgstr ""
6931
6932 #. type: =head2
6933 #: ../fish/guestfish-actions.pod:1544
6934 msgid "grub-install"
6935 msgstr ""
6936
6937 #. type: verbatim
6938 #: ../fish/guestfish-actions.pod:1546
6939 #, no-wrap
6940 msgid ""
6941 " grub-install root device\n"
6942 "\n"
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
6947 msgid ""
6948 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6949 "the root directory being C<root>."
6950 msgstr ""
6951
6952 #. type: textblock
6953 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
6954 msgid ""
6955 "Note: If grub-install reports the error \"No suitable drive was found in the "
6956 "generated device map.\" it may be that you need to create a "
6957 "C</boot/grub/device.map> file first that contains the mapping between grub "
6958 "device names and Linux device names.  It is usually sufficient to create a "
6959 "file containing:"
6960 msgstr ""
6961
6962 #. type: verbatim
6963 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
6964 #, no-wrap
6965 msgid ""
6966 " (hd0) /dev/vda\n"
6967 "\n"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
6972 msgid "replacing C</dev/vda> with the name of the installation device."
6973 msgstr ""
6974
6975 #. type: =head2
6976 #: ../fish/guestfish-actions.pod:1562
6977 msgid "head"
6978 msgstr ""
6979
6980 #. type: verbatim
6981 #: ../fish/guestfish-actions.pod:1564
6982 #, no-wrap
6983 msgid ""
6984 " head path\n"
6985 "\n"
6986 msgstr ""
6987
6988 #. type: textblock
6989 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
6990 msgid ""
6991 "This command returns up to the first 10 lines of a file as a list of "
6992 "strings."
6993 msgstr ""
6994
6995 #. type: =head2
6996 #: ../fish/guestfish-actions.pod:1572
6997 msgid "head-n"
6998 msgstr ""
6999
7000 #. type: verbatim
7001 #: ../fish/guestfish-actions.pod:1574
7002 #, no-wrap
7003 msgid ""
7004 " head-n nrlines path\n"
7005 "\n"
7006 msgstr ""
7007
7008 #. type: textblock
7009 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
7010 msgid ""
7011 "If the parameter C<nrlines> is a positive number, this returns the first "
7012 "C<nrlines> lines of the file C<path>."
7013 msgstr ""
7014
7015 #. type: textblock
7016 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
7017 msgid ""
7018 "If the parameter C<nrlines> is a negative number, this returns lines from "
7019 "the file C<path>, excluding the last C<nrlines> lines."
7020 msgstr ""
7021
7022 #. type: textblock
7023 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
7024 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7025 msgstr ""
7026
7027 #. type: =head2
7028 #: ../fish/guestfish-actions.pod:1587
7029 msgid "hexdump"
7030 msgstr ""
7031
7032 #. type: verbatim
7033 #: ../fish/guestfish-actions.pod:1589
7034 #, no-wrap
7035 msgid ""
7036 " hexdump path\n"
7037 "\n"
7038 msgstr ""
7039
7040 #. type: textblock
7041 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
7042 msgid ""
7043 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7044 "human-readable, canonical hex dump of the file."
7045 msgstr ""
7046
7047 #. type: =head2
7048 #: ../fish/guestfish-actions.pod:1597
7049 msgid "initrd-cat"
7050 msgstr ""
7051
7052 #. type: verbatim
7053 #: ../fish/guestfish-actions.pod:1599
7054 #, no-wrap
7055 msgid ""
7056 " initrd-cat initrdpath filename\n"
7057 "\n"
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
7062 msgid ""
7063 "This command unpacks the file C<filename> from the initrd file called "
7064 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7065 "character."
7066 msgstr ""
7067
7068 #. type: textblock
7069 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
7070 msgid ""
7071 "For example, in guestfish you could use the following command to examine the "
7072 "boot script (usually called C</init>)  contained in a Linux initrd or "
7073 "initramfs image:"
7074 msgstr ""
7075
7076 #. type: verbatim
7077 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
7078 #, no-wrap
7079 msgid ""
7080 " initrd-cat /boot/initrd-<version>.img init\n"
7081 "\n"
7082 msgstr ""
7083
7084 #. type: textblock
7085 #: ../fish/guestfish-actions.pod:1611
7086 msgid "See also L</initrd-list>."
7087 msgstr ""
7088
7089 #. type: =head2
7090 #: ../fish/guestfish-actions.pod:1616
7091 msgid "initrd-list"
7092 msgstr ""
7093
7094 #. type: verbatim
7095 #: ../fish/guestfish-actions.pod:1618
7096 #, no-wrap
7097 msgid ""
7098 " initrd-list path\n"
7099 "\n"
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
7104 msgid "This command lists out files contained in an initrd."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
7109 msgid ""
7110 "The files are listed without any initial C</> character.  The files are "
7111 "listed in the order they appear (not necessarily alphabetical).  Directory "
7112 "names are listed as separate items."
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
7117 msgid ""
7118 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7119 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7120 "files)."
7121 msgstr ""
7122
7123 #. type: =head2
7124 #: ../fish/guestfish-actions.pod:1630
7125 msgid "inotify-add-watch"
7126 msgstr ""
7127
7128 #. type: verbatim
7129 #: ../fish/guestfish-actions.pod:1632
7130 #, no-wrap
7131 msgid ""
7132 " inotify-add-watch path mask\n"
7133 "\n"
7134 msgstr ""
7135
7136 #. type: textblock
7137 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
7138 msgid "Watch C<path> for the events listed in C<mask>."
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
7143 msgid ""
7144 "Note that if C<path> is a directory then events within that directory are "
7145 "watched, but this does I<not> happen recursively (in subdirectories)."
7146 msgstr ""
7147
7148 #. type: textblock
7149 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
7150 msgid ""
7151 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7152 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7153 msgstr ""
7154
7155 #. type: =head2
7156 #: ../fish/guestfish-actions.pod:1644
7157 msgid "inotify-close"
7158 msgstr ""
7159
7160 #. type: verbatim
7161 #: ../fish/guestfish-actions.pod:1646
7162 #, no-wrap
7163 msgid ""
7164 " inotify-close\n"
7165 "\n"
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
7170 msgid ""
7171 "This closes the inotify handle which was previously opened by inotify_init.  "
7172 "It removes all watches, throws away any pending events, and deallocates all "
7173 "resources."
7174 msgstr ""
7175
7176 #. type: =head2
7177 #: ../fish/guestfish-actions.pod:1652
7178 msgid "inotify-files"
7179 msgstr ""
7180
7181 #. type: verbatim
7182 #: ../fish/guestfish-actions.pod:1654
7183 #, no-wrap
7184 msgid ""
7185 " inotify-files\n"
7186 "\n"
7187 msgstr ""
7188
7189 #. type: textblock
7190 #: ../fish/guestfish-actions.pod:1656
7191 msgid ""
7192 "This function is a helpful wrapper around L</inotify-read> which just "
7193 "returns a list of pathnames of objects that were touched.  The returned "
7194 "pathnames are sorted and deduplicated."
7195 msgstr ""
7196
7197 #. type: =head2
7198 #: ../fish/guestfish-actions.pod:1660
7199 msgid "inotify-init"
7200 msgstr ""
7201
7202 #. type: verbatim
7203 #: ../fish/guestfish-actions.pod:1662
7204 #, no-wrap
7205 msgid ""
7206 " inotify-init maxevents\n"
7207 "\n"
7208 msgstr ""
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
7212 msgid ""
7213 "This command creates a new inotify handle.  The inotify subsystem can be "
7214 "used to notify events which happen to objects in the guest filesystem."
7215 msgstr ""
7216
7217 #. type: textblock
7218 #: ../fish/guestfish-actions.pod:1668
7219 msgid ""
7220 "C<maxevents> is the maximum number of events which will be queued up between "
7221 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7222 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7223 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7224 "but records the fact that it threw them away by setting a flag "
7225 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:1678
7230 msgid ""
7231 "Before any events are generated, you have to add some watches to the "
7232 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7233 "L</inotify-watch-all>."
7234 msgstr ""
7235
7236 #. type: textblock
7237 #: ../fish/guestfish-actions.pod:1684
7238 msgid ""
7239 "Queued up events should be read periodically by calling L</inotify-read> (or "
7240 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7241 "If you don't read the events out often enough then you risk the internal "
7242 "queue overflowing."
7243 msgstr ""
7244
7245 #. type: textblock
7246 #: ../fish/guestfish-actions.pod:1691
7247 msgid ""
7248 "The handle should be closed after use by calling L</inotify-close>.  This "
7249 "also removes any watches automatically."
7250 msgstr ""
7251
7252 #. type: textblock
7253 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
7254 msgid ""
7255 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7256 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7257 "that there is one global inotify handle per libguestfs instance."
7258 msgstr ""
7259
7260 #. type: =head2
7261 #: ../fish/guestfish-actions.pod:1700
7262 msgid "inotify-read"
7263 msgstr ""
7264
7265 #. type: verbatim
7266 #: ../fish/guestfish-actions.pod:1702
7267 #, no-wrap
7268 msgid ""
7269 " inotify-read\n"
7270 "\n"
7271 msgstr ""
7272
7273 #. type: textblock
7274 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7275 msgid ""
7276 "Return the complete queue of events that have happened since the previous "
7277 "read call."
7278 msgstr ""
7279
7280 #. type: textblock
7281 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
7282 msgid "If no events have happened, this returns an empty list."
7283 msgstr ""
7284
7285 #. type: textblock
7286 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
7287 msgid ""
7288 "I<Note>: In order to make sure that all events have been read, you must call "
7289 "this function repeatedly until it returns an empty list.  The reason is that "
7290 "the call will read events up to the maximum appliance-to-host message size "
7291 "and leave remaining events in the queue."
7292 msgstr ""
7293
7294 #. type: =head2
7295 #: ../fish/guestfish-actions.pod:1715
7296 msgid "inotify-rm-watch"
7297 msgstr ""
7298
7299 #. type: verbatim
7300 #: ../fish/guestfish-actions.pod:1717
7301 #, no-wrap
7302 msgid ""
7303 " inotify-rm-watch wd\n"
7304 "\n"
7305 msgstr ""
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:1719
7309 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7310 msgstr ""
7311
7312 #. type: =head2
7313 #: ../fish/guestfish-actions.pod:1722
7314 msgid "inspect-get-arch"
7315 msgstr ""
7316
7317 #. type: verbatim
7318 #: ../fish/guestfish-actions.pod:1724
7319 #, no-wrap
7320 msgid ""
7321 " inspect-get-arch root\n"
7322 "\n"
7323 msgstr ""
7324
7325 #. type: textblock
7326 #: ../fish/guestfish-actions.pod:1726
7327 msgid ""
7328 "This returns the architecture of the inspected operating system.  The "
7329 "possible return values are listed under L</file-architecture>."
7330 msgstr ""
7331
7332 #. type: textblock
7333 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
7334 msgid ""
7335 "If the architecture could not be determined, then the string C<unknown> is "
7336 "returned."
7337 msgstr ""
7338
7339 #. type: textblock
7340 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816 ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907 ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052 ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087 ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159 ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185 ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205 ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313 ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947 ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132 ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229 ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
7341 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7342 msgstr ""
7343
7344 #. type: =head2
7345 #: ../fish/guestfish-actions.pod:1735
7346 msgid "inspect-get-distro"
7347 msgstr ""
7348
7349 #. type: verbatim
7350 #: ../fish/guestfish-actions.pod:1737
7351 #, no-wrap
7352 msgid ""
7353 " inspect-get-distro root\n"
7354 "\n"
7355 msgstr ""
7356
7357 #. type: textblock
7358 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
7359 msgid "This returns the distro (distribution) of the inspected operating system."
7360 msgstr ""
7361
7362 #. type: textblock
7363 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
7364 msgid "Currently defined distros are:"
7365 msgstr ""
7366
7367 #. type: =item
7368 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
7369 msgid "\"archlinux\""
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
7374 msgid "Arch Linux."
7375 msgstr ""
7376
7377 #. type: =item
7378 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
7379 msgid "\"centos\""
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
7384 msgid "CentOS."
7385 msgstr ""
7386
7387 #. type: =item
7388 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
7389 msgid "\"debian\""
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
7394 msgid "Debian."
7395 msgstr ""
7396
7397 #. type: =item
7398 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
7399 msgid "\"fedora\""
7400 msgstr ""
7401
7402 #. type: textblock
7403 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
7404 msgid "Fedora."
7405 msgstr ""
7406
7407 #. type: =item
7408 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
7409 msgid "\"gentoo\""
7410 msgstr ""
7411
7412 #. type: textblock
7413 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
7414 msgid "Gentoo."
7415 msgstr ""
7416
7417 #. type: =item
7418 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
7419 msgid "\"linuxmint\""
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
7424 msgid "Linux Mint."
7425 msgstr ""
7426
7427 #. type: =item
7428 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
7429 msgid "\"mandriva\""
7430 msgstr ""
7431
7432 #. type: textblock
7433 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
7434 msgid "Mandriva."
7435 msgstr ""
7436
7437 #. type: =item
7438 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
7439 msgid "\"meego\""
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
7444 msgid "MeeGo."
7445 msgstr ""
7446
7447 #. type: =item
7448 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
7449 msgid "\"pardus\""
7450 msgstr ""
7451
7452 #. type: textblock
7453 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
7454 msgid "Pardus."
7455 msgstr ""
7456
7457 #. type: =item
7458 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
7459 msgid "\"redhat-based\""
7460 msgstr ""
7461
7462 #. type: textblock
7463 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
7464 msgid "Some Red Hat-derived distro."
7465 msgstr ""
7466
7467 #. type: =item
7468 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
7469 msgid "\"rhel\""
7470 msgstr ""
7471
7472 #. type: textblock
7473 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
7474 msgid "Red Hat Enterprise Linux."
7475 msgstr ""
7476
7477 #. type: =item
7478 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
7479 msgid "\"scientificlinux\""
7480 msgstr ""
7481
7482 #. type: textblock
7483 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
7484 msgid "Scientific Linux."
7485 msgstr ""
7486
7487 #. type: =item
7488 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
7489 msgid "\"slackware\""
7490 msgstr ""
7491
7492 #. type: textblock
7493 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
7494 msgid "Slackware."
7495 msgstr ""
7496
7497 #. type: =item
7498 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
7499 msgid "\"ubuntu\""
7500 msgstr ""
7501
7502 #. type: textblock
7503 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
7504 msgid "Ubuntu."
7505 msgstr ""
7506
7507 #. type: =item
7508 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679 ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
7509 msgid "\"unknown\""
7510 msgstr ""
7511
7512 #. type: textblock
7513 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
7514 msgid "The distro could not be determined."
7515 msgstr ""
7516
7517 #. type: =item
7518 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142 ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
7519 msgid "\"windows\""
7520 msgstr ""
7521
7522 #. type: textblock
7523 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
7524 msgid ""
7525 "Windows does not have distributions.  This string is returned if the OS type "
7526 "is Windows."
7527 msgstr ""
7528
7529 #. type: textblock
7530 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892 ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
7531 msgid ""
7532 "Future versions of libguestfs may return other strings here.  The caller "
7533 "should be prepared to handle any string."
7534 msgstr ""
7535
7536 #. type: =head2
7537 #: ../fish/guestfish-actions.pod:1818
7538 msgid "inspect-get-drive-mappings"
7539 msgstr ""
7540
7541 #. type: verbatim
7542 #: ../fish/guestfish-actions.pod:1820
7543 #, no-wrap
7544 msgid ""
7545 " inspect-get-drive-mappings root\n"
7546 "\n"
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
7551 msgid ""
7552 "This call is useful for Windows which uses a primitive system of assigning "
7553 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7554 "Windows Registry to find out how disks/partitions are mapped to drive "
7555 "letters, and returns a hash table as in the example below:"
7556 msgstr ""
7557
7558 #. type: verbatim
7559 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
7560 #, no-wrap
7561 msgid ""
7562 " C      =>     /dev/vda2\n"
7563 " E      =>     /dev/vdb1\n"
7564 " F      =>     /dev/vdc1\n"
7565 "\n"
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
7570 msgid ""
7571 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7572 "and just contains the drive letter, without the customary colon separator "
7573 "character."
7574 msgstr ""
7575
7576 #. type: textblock
7577 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
7578 msgid ""
7579 "In future we may support other operating systems that also used drive "
7580 "letters, but the keys for those might not be case insensitive and might be "
7581 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7582 "C<h1> etc."
7583 msgstr ""
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
7587 msgid ""
7588 "For Windows guests, currently only hard drive mappings are returned.  "
7589 "Removable disks (eg. DVD-ROMs) are ignored."
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
7594 msgid ""
7595 "For guests that do not use drive mappings, or if the drive mappings could "
7596 "not be determined, this returns an empty hash table."
7597 msgstr ""
7598
7599 #. type: textblock
7600 #: ../fish/guestfish-actions.pod:1847
7601 msgid ""
7602 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7603 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7604 msgstr ""
7605
7606 #. type: =head2
7607 #: ../fish/guestfish-actions.pod:1851
7608 msgid "inspect-get-filesystems"
7609 msgstr ""
7610
7611 #. type: verbatim
7612 #: ../fish/guestfish-actions.pod:1853
7613 #, no-wrap
7614 msgid ""
7615 " inspect-get-filesystems root\n"
7616 "\n"
7617 msgstr ""
7618
7619 #. type: textblock
7620 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
7621 msgid ""
7622 "This returns a list of all the filesystems that we think are associated with "
7623 "this operating system.  This includes the root filesystem, other ordinary "
7624 "filesystems, and non-mounted devices like swap partitions."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
7629 msgid ""
7630 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7631 "to be shared between operating systems."
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:1863
7636 msgid ""
7637 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7638 "L</inspect-get-mountpoints>."
7639 msgstr ""
7640
7641 #. type: =head2
7642 #: ../fish/guestfish-actions.pod:1866
7643 msgid "inspect-get-format"
7644 msgstr ""
7645
7646 #. type: verbatim
7647 #: ../fish/guestfish-actions.pod:1868
7648 #, no-wrap
7649 msgid ""
7650 " inspect-get-format root\n"
7651 "\n"
7652 msgstr ""
7653
7654 #. type: textblock
7655 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
7656 msgid ""
7657 "This returns the format of the inspected operating system.  You can use it "
7658 "to detect install images, live CDs and similar."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
7663 msgid "Currently defined formats are:"
7664 msgstr ""
7665
7666 #. type: =item
7667 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
7668 msgid "\"installed\""
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
7673 msgid "This is an installed operating system."
7674 msgstr ""
7675
7676 #. type: =item
7677 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
7678 msgid "\"installer\""
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
7683 msgid ""
7684 "The disk image being inspected is not an installed operating system, but a "
7685 "I<bootable> install disk, live CD, or similar."
7686 msgstr ""
7687
7688 #. type: textblock
7689 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
7690 msgid "The format of this disk image is not known."
7691 msgstr ""
7692
7693 #. type: =head2
7694 #: ../fish/guestfish-actions.pod:1897
7695 msgid "inspect-get-hostname"
7696 msgstr ""
7697
7698 #. type: verbatim
7699 #: ../fish/guestfish-actions.pod:1899
7700 #, no-wrap
7701 msgid ""
7702 " inspect-get-hostname root\n"
7703 "\n"
7704 msgstr ""
7705
7706 #. type: textblock
7707 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
7708 msgid ""
7709 "This function returns the hostname of the operating system as found by "
7710 "inspection of the guest's configuration files."
7711 msgstr ""
7712
7713 #. type: textblock
7714 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
7715 msgid ""
7716 "If the hostname could not be determined, then the string C<unknown> is "
7717 "returned."
7718 msgstr ""
7719
7720 #. type: =head2
7721 #: ../fish/guestfish-actions.pod:1909
7722 msgid "inspect-get-icon"
7723 msgstr ""
7724
7725 #. type: verbatim
7726 #: ../fish/guestfish-actions.pod:1911
7727 #, no-wrap
7728 msgid ""
7729 " inspect-get-icon root [favicon:..] [highquality:..]\n"
7730 "\n"
7731 msgstr ""
7732
7733 #. type: textblock
7734 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
7735 msgid ""
7736 "This function returns an icon corresponding to the inspected operating "
7737 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
7738 "to PNG if necessary)."
7739 msgstr ""
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
7743 msgid ""
7744 "If it was not possible to get an icon this function returns a zero-length "
7745 "(non-NULL) buffer.  I<Callers must check for this case>."
7746 msgstr ""
7747
7748 #. type: textblock
7749 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
7750 msgid ""
7751 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
7752 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
7753 "this file will be returned.  You can disable favicons by passing the "
7754 "optional C<favicon> boolean as false (default is true)."
7755 msgstr ""
7756
7757 #. type: textblock
7758 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
7759 msgid ""
7760 "If finding the favicon fails, then we look in other places in the guest for "
7761 "a suitable icon."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
7766 msgid ""
7767 "If the optional C<highquality> boolean is true then only high quality icons "
7768 "are returned, which means only icons of high resolution with an alpha "
7769 "channel.  The default (false) is to return any icon we can, even if it is of "
7770 "substandard quality."
7771 msgstr ""
7772
7773 #. type: textblock
7774 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
7775 msgid ""
7776 "Unlike most other inspection API calls, the guest's disks must be mounted up "
7777 "before you call this, since it needs to read information from the guest "
7778 "filesystem during the call."
7779 msgstr ""
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
7783 msgid ""
7784 "B<Security:> The icon data comes from the untrusted guest, and should be "
7785 "treated with caution.  PNG files have been known to contain exploits.  "
7786 "Ensure that libpng (or other relevant libraries) are fully up to date before "
7787 "trying to process or display the icon."
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
7792 msgid ""
7793 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
7794 "tries to return the largest, highest quality icon available.  The "
7795 "application must scale the icon to the required size."
7796 msgstr ""
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
7800 msgid ""
7801 "Extracting icons from Windows guests requires the external C<wrestool> "
7802 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
7803 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
7804 "installed separately."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
7809 msgid ""
7810 "Operating system icons are usually trademarks.  Seek legal advice before "
7811 "using trademarks in applications."
7812 msgstr ""
7813
7814 #. type: =head2
7815 #: ../fish/guestfish-actions.pod:1975
7816 msgid "inspect-get-major-version"
7817 msgstr ""
7818
7819 #. type: verbatim
7820 #: ../fish/guestfish-actions.pod:1977
7821 #, no-wrap
7822 msgid ""
7823 " inspect-get-major-version root\n"
7824 "\n"
7825 msgstr ""
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
7829 msgid "This returns the major version number of the inspected operating system."
7830 msgstr ""
7831
7832 #. type: textblock
7833 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
7834 msgid ""
7835 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7836 "popular public names used by the operating system.  Notably the operating "
7837 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7838 "1).  You can find out the real versions corresponding to releases of Windows "
7839 "by consulting Wikipedia or MSDN."
7840 msgstr ""
7841
7842 #. type: textblock
7843 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
7844 msgid "If the version could not be determined, then C<0> is returned."
7845 msgstr ""
7846
7847 #. type: =head2
7848 #: ../fish/guestfish-actions.pod:1993
7849 msgid "inspect-get-minor-version"
7850 msgstr ""
7851
7852 #. type: verbatim
7853 #: ../fish/guestfish-actions.pod:1995
7854 #, no-wrap
7855 msgid ""
7856 " inspect-get-minor-version root\n"
7857 "\n"
7858 msgstr ""
7859
7860 #. type: textblock
7861 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
7862 msgid "This returns the minor version number of the inspected operating system."
7863 msgstr ""
7864
7865 #. type: textblock
7866 #: ../fish/guestfish-actions.pod:2002
7867 msgid ""
7868 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7869 "L</inspect-get-major-version>."
7870 msgstr ""
7871
7872 #. type: =head2
7873 #: ../fish/guestfish-actions.pod:2005
7874 msgid "inspect-get-mountpoints"
7875 msgstr ""
7876
7877 #. type: verbatim
7878 #: ../fish/guestfish-actions.pod:2007
7879 #, no-wrap
7880 msgid ""
7881 " inspect-get-mountpoints root\n"
7882 "\n"
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
7887 msgid ""
7888 "This returns a hash of where we think the filesystems associated with this "
7889 "operating system should be mounted.  Callers should note that this is at "
7890 "best an educated guess made by reading configuration files such as "
7891 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
7892 "are non-existent or not mountable and callers should be prepared to handle "
7893 "or ignore failures if they try to mount them."
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
7898 msgid ""
7899 "Each element in the returned hashtable has a key which is the path of the "
7900 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7901 "mounted there (eg. C</dev/sda1>)."
7902 msgstr ""
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
7906 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7907 msgstr ""
7908
7909 #. type: textblock
7910 #: ../fish/guestfish-actions.pod:2026
7911 msgid ""
7912 "For operating systems like Windows which still use drive letters, this call "
7913 "will only return an entry for the first drive \"mounted on\" C</>.  For "
7914 "information about the mapping of drive letters to partitions, see "
7915 "L</inspect-get-drive-mappings>."
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../fish/guestfish-actions.pod:2032
7920 msgid ""
7921 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7922 "L</inspect-get-filesystems>."
7923 msgstr ""
7924
7925 #. type: =head2
7926 #: ../fish/guestfish-actions.pod:2035
7927 msgid "inspect-get-package-format"
7928 msgstr ""
7929
7930 #. type: verbatim
7931 #: ../fish/guestfish-actions.pod:2037
7932 #, no-wrap
7933 msgid ""
7934 " inspect-get-package-format root\n"
7935 "\n"
7936 msgstr ""
7937
7938 #. type: textblock
7939 #: ../fish/guestfish-actions.pod:2039
7940 msgid ""
7941 "This function and L</inspect-get-package-management> return the package "
7942 "format and package management tool used by the inspected operating system.  "
7943 "For example for Fedora these functions would return C<rpm> (package format) "
7944 "and C<yum> (package management)."
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
7949 msgid ""
7950 "This returns the string C<unknown> if we could not determine the package "
7951 "format I<or> if the operating system does not have a real packaging system "
7952 "(eg. Windows)."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
7957 msgid ""
7958 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
7959 "Future versions of libguestfs may return other strings."
7960 msgstr ""
7961
7962 #. type: =head2
7963 #: ../fish/guestfish-actions.pod:2054
7964 msgid "inspect-get-package-management"
7965 msgstr ""
7966
7967 #. type: verbatim
7968 #: ../fish/guestfish-actions.pod:2056
7969 #, no-wrap
7970 msgid ""
7971 " inspect-get-package-management root\n"
7972 "\n"
7973 msgstr ""
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:2058
7977 msgid ""
7978 "L</inspect-get-package-format> and this function return the package format "
7979 "and package management tool used by the inspected operating system.  For "
7980 "example for Fedora these functions would return C<rpm> (package format) and "
7981 "C<yum> (package management)."
7982 msgstr ""
7983
7984 #. type: textblock
7985 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
7986 msgid ""
7987 "This returns the string C<unknown> if we could not determine the package "
7988 "management tool I<or> if the operating system does not have a real packaging "
7989 "system (eg. Windows)."
7990 msgstr ""
7991
7992 #. type: textblock
7993 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
7994 msgid ""
7995 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
7996 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
7997 "libguestfs may return other strings."
7998 msgstr ""
7999
8000 #. type: =head2
8001 #: ../fish/guestfish-actions.pod:2075
8002 msgid "inspect-get-product-name"
8003 msgstr ""
8004
8005 #. type: verbatim
8006 #: ../fish/guestfish-actions.pod:2077
8007 #, no-wrap
8008 msgid ""
8009 " inspect-get-product-name root\n"
8010 "\n"
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8015 msgid ""
8016 "This returns the product name of the inspected operating system.  The "
8017 "product name is generally some freeform string which can be displayed to the "
8018 "user, but should not be parsed by programs."
8019 msgstr ""
8020
8021 #. type: textblock
8022 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
8023 msgid ""
8024 "If the product name could not be determined, then the string C<unknown> is "
8025 "returned."
8026 msgstr ""
8027
8028 #. type: =head2
8029 #: ../fish/guestfish-actions.pod:2089
8030 msgid "inspect-get-product-variant"
8031 msgstr ""
8032
8033 #. type: verbatim
8034 #: ../fish/guestfish-actions.pod:2091
8035 #, no-wrap
8036 msgid ""
8037 " inspect-get-product-variant root\n"
8038 "\n"
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
8043 msgid "This returns the product variant of the inspected operating system."
8044 msgstr ""
8045
8046 #. type: textblock
8047 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
8048 msgid ""
8049 "For Windows guests, this returns the contents of the Registry key "
8050 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8051 "which is usually a string such as C<Client> or C<Server> (other values are "
8052 "possible).  This can be used to distinguish consumer and enterprise versions "
8053 "of Windows that have the same version number (for example, Windows 7 and "
8054 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8055 "the latter is C<Server>)."
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
8060 msgid ""
8061 "For enterprise Linux guests, in future we intend this to return the product "
8062 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8063 "implemented at present."
8064 msgstr ""
8065
8066 #. type: textblock
8067 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
8068 msgid ""
8069 "If the product variant could not be determined, then the string C<unknown> "
8070 "is returned."
8071 msgstr ""
8072
8073 #. type: textblock
8074 #: ../fish/guestfish-actions.pod:2112
8075 msgid ""
8076 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8077 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8078 msgstr ""
8079
8080 #. type: =head2
8081 #: ../fish/guestfish-actions.pod:2116
8082 msgid "inspect-get-roots"
8083 msgstr ""
8084
8085 #. type: verbatim
8086 #: ../fish/guestfish-actions.pod:2118
8087 #, no-wrap
8088 msgid ""
8089 " inspect-get-roots\n"
8090 "\n"
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:2120
8095 msgid ""
8096 "This function is a convenient way to get the list of root devices, as "
8097 "returned from a previous call to L</inspect-os>, but without redoing the "
8098 "whole inspection process."
8099 msgstr ""
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:2124
8103 msgid ""
8104 "This returns an empty list if either no root devices were found or the "
8105 "caller has not called L</inspect-os>."
8106 msgstr ""
8107
8108 #. type: =head2
8109 #: ../fish/guestfish-actions.pod:2129
8110 msgid "inspect-get-type"
8111 msgstr ""
8112
8113 #. type: verbatim
8114 #: ../fish/guestfish-actions.pod:2131
8115 #, no-wrap
8116 msgid ""
8117 " inspect-get-type root\n"
8118 "\n"
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8123 msgid ""
8124 "This returns the type of the inspected operating system.  Currently defined "
8125 "types are:"
8126 msgstr ""
8127
8128 #. type: =item
8129 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
8130 msgid "\"linux\""
8131 msgstr ""
8132
8133 #. type: textblock
8134 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
8135 msgid "Any Linux-based operating system."
8136 msgstr ""
8137
8138 #. type: textblock
8139 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
8140 msgid "Any Microsoft Windows operating system."
8141 msgstr ""
8142
8143 #. type: =item
8144 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
8145 msgid "\"freebsd\""
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
8150 msgid "FreeBSD."
8151 msgstr ""
8152
8153 #. type: textblock
8154 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
8155 msgid "The operating system type could not be determined."
8156 msgstr ""
8157
8158 #. type: =head2
8159 #: ../fish/guestfish-actions.pod:2161
8160 msgid "inspect-get-windows-current-control-set"
8161 msgstr ""
8162
8163 #. type: verbatim
8164 #: ../fish/guestfish-actions.pod:2163
8165 #, no-wrap
8166 msgid ""
8167 " inspect-get-windows-current-control-set root\n"
8168 "\n"
8169 msgstr ""
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
8173 msgid ""
8174 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8175 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8176 msgstr ""
8177
8178 #. type: textblock
8179 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
8180 msgid ""
8181 "This call assumes that the guest is Windows and that the Registry could be "
8182 "examined by inspection.  If this is not the case then an error is returned."
8183 msgstr ""
8184
8185 #. type: =head2
8186 #: ../fish/guestfish-actions.pod:2174
8187 msgid "inspect-get-windows-systemroot"
8188 msgstr ""
8189
8190 #. type: verbatim
8191 #: ../fish/guestfish-actions.pod:2176
8192 #, no-wrap
8193 msgid ""
8194 " inspect-get-windows-systemroot root\n"
8195 "\n"
8196 msgstr ""
8197
8198 #. type: textblock
8199 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
8200 msgid ""
8201 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8202 "is a directory path such as C</WINDOWS>."
8203 msgstr ""
8204
8205 #. type: textblock
8206 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
8207 msgid ""
8208 "This call assumes that the guest is Windows and that the systemroot could be "
8209 "determined by inspection.  If this is not the case then an error is "
8210 "returned."
8211 msgstr ""
8212
8213 #. type: =head2
8214 #: ../fish/guestfish-actions.pod:2187
8215 msgid "inspect-is-live"
8216 msgstr ""
8217
8218 #. type: verbatim
8219 #: ../fish/guestfish-actions.pod:2189
8220 #, no-wrap
8221 msgid ""
8222 " inspect-is-live root\n"
8223 "\n"
8224 msgstr ""
8225
8226 #. type: textblock
8227 #: ../fish/guestfish-actions.pod:2191
8228 msgid ""
8229 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8230 "then this returns true if a live image was detected on the disk."
8231 msgstr ""
8232
8233 #. type: =head2
8234 #: ../fish/guestfish-actions.pod:2197
8235 msgid "inspect-is-multipart"
8236 msgstr ""
8237
8238 #. type: verbatim
8239 #: ../fish/guestfish-actions.pod:2199
8240 #, no-wrap
8241 msgid ""
8242 " inspect-is-multipart root\n"
8243 "\n"
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:2201
8248 msgid ""
8249 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8250 "then this returns true if the disk is part of a set."
8251 msgstr ""
8252
8253 #. type: =head2
8254 #: ../fish/guestfish-actions.pod:2207
8255 msgid "inspect-is-netinst"
8256 msgstr ""
8257
8258 #. type: verbatim
8259 #: ../fish/guestfish-actions.pod:2209
8260 #, no-wrap
8261 msgid ""
8262 " inspect-is-netinst root\n"
8263 "\n"
8264 msgstr ""
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:2211
8268 msgid ""
8269 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8270 "then this returns true if the disk is a network installer, ie. not a "
8271 "self-contained install CD but one which is likely to require network access "
8272 "to complete the install."
8273 msgstr ""
8274
8275 #. type: =head2
8276 #: ../fish/guestfish-actions.pod:2219
8277 msgid "inspect-list-applications"
8278 msgstr ""
8279
8280 #. type: verbatim
8281 #: ../fish/guestfish-actions.pod:2221
8282 #, no-wrap
8283 msgid ""
8284 " inspect-list-applications root\n"
8285 "\n"
8286 msgstr ""
8287
8288 #. type: textblock
8289 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
8290 msgid "Return the list of applications installed in the operating system."
8291 msgstr ""
8292
8293 #. type: textblock
8294 #: ../fish/guestfish-actions.pod:2225
8295 msgid ""
8296 "I<Note:> This call works differently from other parts of the inspection "
8297 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8298 "then mount up the disks, before calling this.  Listing applications is a "
8299 "significantly more difficult operation which requires access to the full "
8300 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8301 "are just returning data cached in the libguestfs handle, this call actually "
8302 "reads parts of the mounted filesystems during the call."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
8307 msgid ""
8308 "This returns an empty list if the inspection code was not able to determine "
8309 "the list of applications."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
8314 msgid "The application structure contains the following fields:"
8315 msgstr ""
8316
8317 #. type: =item
8318 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8319 msgid "C<app_name>"
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8324 msgid ""
8325 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8326 "guests, this is the package name."
8327 msgstr ""
8328
8329 #. type: =item
8330 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8331 msgid "C<app_display_name>"
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
8336 msgid ""
8337 "The display name of the application, sometimes localized to the install "
8338 "language of the guest operating system."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8343 msgid ""
8344 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8345 "to display something can use C<app_name> instead."
8346 msgstr ""
8347
8348 #. type: =item
8349 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8350 msgid "C<app_epoch>"
8351 msgstr ""
8352
8353 #. type: textblock
8354 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8355 msgid ""
8356 "For package managers which use epochs, this contains the epoch of the "
8357 "package (an integer).  If unavailable, this is returned as C<0>."
8358 msgstr ""
8359
8360 #. type: =item
8361 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8362 msgid "C<app_version>"
8363 msgstr ""
8364
8365 #. type: textblock
8366 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8367 msgid ""
8368 "The version string of the application or package.  If unavailable this is "
8369 "returned as an empty string C<\"\">."
8370 msgstr ""
8371
8372 #. type: =item
8373 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
8374 msgid "C<app_release>"
8375 msgstr ""
8376
8377 #. type: textblock
8378 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
8379 msgid ""
8380 "The release string of the application or package, for package managers that "
8381 "use this.  If unavailable this is returned as an empty string C<\"\">."
8382 msgstr ""
8383
8384 #. type: =item
8385 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
8386 msgid "C<app_install_path>"
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8391 msgid ""
8392 "The installation path of the application (on operating systems such as "
8393 "Windows which use installation paths).  This path is in the format used by "
8394 "the guest operating system, it is not a libguestfs path."
8395 msgstr ""
8396
8397 #. type: textblock
8398 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
8399 msgid "If unavailable this is returned as an empty string C<\"\">."
8400 msgstr ""
8401
8402 #. type: =item
8403 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8404 msgid "C<app_trans_path>"
8405 msgstr ""
8406
8407 #. type: textblock
8408 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8409 msgid ""
8410 "The install path translated into a libguestfs path.  If unavailable this is "
8411 "returned as an empty string C<\"\">."
8412 msgstr ""
8413
8414 #. type: =item
8415 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
8416 msgid "C<app_publisher>"
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
8421 msgid ""
8422 "The name of the publisher of the application, for package managers that use "
8423 "this.  If unavailable this is returned as an empty string C<\"\">."
8424 msgstr ""
8425
8426 #. type: =item
8427 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8428 msgid "C<app_url>"
8429 msgstr ""
8430
8431 #. type: textblock
8432 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8433 msgid ""
8434 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8435 "returned as an empty string C<\"\">."
8436 msgstr ""
8437
8438 #. type: =item
8439 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8440 msgid "C<app_source_package>"
8441 msgstr ""
8442
8443 #. type: textblock
8444 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8445 msgid ""
8446 "For packaging systems which support this, the name of the source package.  "
8447 "If unavailable this is returned as an empty string C<\"\">."
8448 msgstr ""
8449
8450 #. type: =item
8451 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8452 msgid "C<app_summary>"
8453 msgstr ""
8454
8455 #. type: textblock
8456 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8457 msgid ""
8458 "A short (usually one line) description of the application or package.  If "
8459 "unavailable this is returned as an empty string C<\"\">."
8460 msgstr ""
8461
8462 #. type: =item
8463 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
8464 msgid "C<app_description>"
8465 msgstr ""
8466
8467 #. type: textblock
8468 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
8469 msgid ""
8470 "A longer description of the application or package.  If unavailable this is "
8471 "returned as an empty string C<\"\">."
8472 msgstr ""
8473
8474 #. type: =head2
8475 #: ../fish/guestfish-actions.pod:2315
8476 msgid "inspect-os"
8477 msgstr ""
8478
8479 #. type: verbatim
8480 #: ../fish/guestfish-actions.pod:2317
8481 #, no-wrap
8482 msgid ""
8483 " inspect-os\n"
8484 "\n"
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
8489 msgid ""
8490 "This function uses other libguestfs functions and certain heuristics to "
8491 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8492 "for operating systems."
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
8497 msgid "The list returned is empty if no operating systems were found."
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
8502 msgid ""
8503 "If one operating system was found, then this returns a list with a single "
8504 "element, which is the name of the root filesystem of this operating system.  "
8505 "It is also possible for this function to return a list containing more than "
8506 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8507 "element being the root filesystem of one of the operating systems."
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:2332
8512 msgid ""
8513 "You can pass the root string(s) returned to other L</inspect-get-*> "
8514 "functions in order to query further information about each operating system, "
8515 "such as the name and version."
8516 msgstr ""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:2337
8520 msgid ""
8521 "This function uses other libguestfs features such as L</mount-ro> and "
8522 "L</umount-all> in order to mount and unmount filesystems and look at the "
8523 "contents.  This should be called with no disks currently mounted.  The "
8524 "function may also use Augeas, so any existing Augeas handle will be closed."
8525 msgstr ""
8526
8527 #. type: textblock
8528 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
8529 msgid ""
8530 "This function cannot decrypt encrypted disks.  The caller must do that first "
8531 "(supplying the necessary keys) if the disk is encrypted."
8532 msgstr ""
8533
8534 #. type: textblock
8535 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547 ../fish/guestfish-actions.pod:2606
8536 msgid "See also L</list-filesystems>."
8537 msgstr ""
8538
8539 #. type: =head2
8540 #: ../fish/guestfish-actions.pod:2351
8541 msgid "is-blockdev"
8542 msgstr ""
8543
8544 #. type: verbatim
8545 #: ../fish/guestfish-actions.pod:2353
8546 #, no-wrap
8547 msgid ""
8548 " is-blockdev path\n"
8549 "\n"
8550 msgstr ""
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
8554 msgid ""
8555 "This returns C<true> if and only if there is a block device with the given "
8556 "C<path> name."
8557 msgstr ""
8558
8559 #. type: textblock
8560 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376 ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404 ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448 ../fish/guestfish-actions.pod:2457
8561 msgid "See also L</stat>."
8562 msgstr ""
8563
8564 #. type: =head2
8565 #: ../fish/guestfish-actions.pod:2360
8566 msgid "is-busy"
8567 msgstr ""
8568
8569 #. type: verbatim
8570 #: ../fish/guestfish-actions.pod:2362
8571 #, no-wrap
8572 msgid ""
8573 " is-busy\n"
8574 "\n"
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
8579 msgid ""
8580 "This returns true iff this handle is busy processing a command (in the "
8581 "C<BUSY> state)."
8582 msgstr ""
8583
8584 #. type: =head2
8585 #: ../fish/guestfish-actions.pod:2369
8586 msgid "is-chardev"
8587 msgstr ""
8588
8589 #. type: verbatim
8590 #: ../fish/guestfish-actions.pod:2371
8591 #, no-wrap
8592 msgid ""
8593 " is-chardev path\n"
8594 "\n"
8595 msgstr ""
8596
8597 #. type: textblock
8598 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
8599 msgid ""
8600 "This returns C<true> if and only if there is a character device with the "
8601 "given C<path> name."
8602 msgstr ""
8603
8604 #. type: =head2
8605 #: ../fish/guestfish-actions.pod:2378
8606 msgid "is-config"
8607 msgstr ""
8608
8609 #. type: verbatim
8610 #: ../fish/guestfish-actions.pod:2380
8611 #, no-wrap
8612 msgid ""
8613 " is-config\n"
8614 "\n"
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
8619 msgid ""
8620 "This returns true iff this handle is being configured (in the C<CONFIG> "
8621 "state)."
8622 msgstr ""
8623
8624 #. type: =head2
8625 #: ../fish/guestfish-actions.pod:2387
8626 msgid "is-dir"
8627 msgstr ""
8628
8629 #. type: verbatim
8630 #: ../fish/guestfish-actions.pod:2389
8631 #, no-wrap
8632 msgid ""
8633 " is-dir path\n"
8634 "\n"
8635 msgstr ""
8636
8637 #. type: textblock
8638 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
8639 msgid ""
8640 "This returns C<true> if and only if there is a directory with the given "
8641 "C<path> name.  Note that it returns false for other objects like files."
8642 msgstr ""
8643
8644 #. type: =head2
8645 #: ../fish/guestfish-actions.pod:2397
8646 msgid "is-fifo"
8647 msgstr ""
8648
8649 #. type: verbatim
8650 #: ../fish/guestfish-actions.pod:2399
8651 #, no-wrap
8652 msgid ""
8653 " is-fifo path\n"
8654 "\n"
8655 msgstr ""
8656
8657 #. type: textblock
8658 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
8659 msgid ""
8660 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8661 "given C<path> name."
8662 msgstr ""
8663
8664 #. type: =head2
8665 #: ../fish/guestfish-actions.pod:2406
8666 msgid "is-file"
8667 msgstr ""
8668
8669 #. type: verbatim
8670 #: ../fish/guestfish-actions.pod:2408
8671 #, no-wrap
8672 msgid ""
8673 " is-file path\n"
8674 "\n"
8675 msgstr ""
8676
8677 #. type: textblock
8678 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
8679 msgid ""
8680 "This returns C<true> if and only if there is a regular file with the given "
8681 "C<path> name.  Note that it returns false for other objects like "
8682 "directories."
8683 msgstr ""
8684
8685 #. type: =head2
8686 #: ../fish/guestfish-actions.pod:2416
8687 msgid "is-launching"
8688 msgstr ""
8689
8690 #. type: verbatim
8691 #: ../fish/guestfish-actions.pod:2418
8692 #, no-wrap
8693 msgid ""
8694 " is-launching\n"
8695 "\n"
8696 msgstr ""
8697
8698 #. type: textblock
8699 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
8700 msgid ""
8701 "This returns true iff this handle is launching the subprocess (in the "
8702 "C<LAUNCHING> state)."
8703 msgstr ""
8704
8705 #. type: =head2
8706 #: ../fish/guestfish-actions.pod:2425
8707 msgid "is-lv"
8708 msgstr ""
8709
8710 #. type: verbatim
8711 #: ../fish/guestfish-actions.pod:2427
8712 #, no-wrap
8713 msgid ""
8714 " is-lv device\n"
8715 "\n"
8716 msgstr ""
8717
8718 #. type: textblock
8719 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
8720 msgid ""
8721 "This command tests whether C<device> is a logical volume, and returns true "
8722 "iff this is the case."
8723 msgstr ""
8724
8725 #. type: =head2
8726 #: ../fish/guestfish-actions.pod:2432
8727 msgid "is-ready"
8728 msgstr ""
8729
8730 #. type: verbatim
8731 #: ../fish/guestfish-actions.pod:2434
8732 #, no-wrap
8733 msgid ""
8734 " is-ready\n"
8735 "\n"
8736 msgstr ""
8737
8738 #. type: textblock
8739 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
8740 msgid ""
8741 "This returns true iff this handle is ready to accept commands (in the "
8742 "C<READY> state)."
8743 msgstr ""
8744
8745 #. type: =head2
8746 #: ../fish/guestfish-actions.pod:2441
8747 msgid "is-socket"
8748 msgstr ""
8749
8750 #. type: verbatim
8751 #: ../fish/guestfish-actions.pod:2443
8752 #, no-wrap
8753 msgid ""
8754 " is-socket path\n"
8755 "\n"
8756 msgstr ""
8757
8758 #. type: textblock
8759 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
8760 msgid ""
8761 "This returns C<true> if and only if there is a Unix domain socket with the "
8762 "given C<path> name."
8763 msgstr ""
8764
8765 #. type: =head2
8766 #: ../fish/guestfish-actions.pod:2450
8767 msgid "is-symlink"
8768 msgstr ""
8769
8770 #. type: verbatim
8771 #: ../fish/guestfish-actions.pod:2452
8772 #, no-wrap
8773 msgid ""
8774 " is-symlink path\n"
8775 "\n"
8776 msgstr ""
8777
8778 #. type: textblock
8779 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
8780 msgid ""
8781 "This returns C<true> if and only if there is a symbolic link with the given "
8782 "C<path> name."
8783 msgstr ""
8784
8785 #. type: =head2
8786 #: ../fish/guestfish-actions.pod:2459
8787 msgid "is-zero"
8788 msgstr ""
8789
8790 #. type: verbatim
8791 #: ../fish/guestfish-actions.pod:2461
8792 #, no-wrap
8793 msgid ""
8794 " is-zero path\n"
8795 "\n"
8796 msgstr ""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
8800 msgid ""
8801 "This returns true iff the file exists and the file is empty or it contains "
8802 "all zero bytes."
8803 msgstr ""
8804
8805 #. type: =head2
8806 #: ../fish/guestfish-actions.pod:2466
8807 msgid "is-zero-device"
8808 msgstr ""
8809
8810 #. type: verbatim
8811 #: ../fish/guestfish-actions.pod:2468
8812 #, no-wrap
8813 msgid ""
8814 " is-zero-device device\n"
8815 "\n"
8816 msgstr ""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
8820 msgid "This returns true iff the device exists and contains all zero bytes."
8821 msgstr ""
8822
8823 #. type: textblock
8824 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
8825 msgid "Note that for large devices this can take a long time to run."
8826 msgstr ""
8827
8828 #. type: =head2
8829 #: ../fish/guestfish-actions.pod:2474
8830 msgid "kill-subprocess"
8831 msgstr ""
8832
8833 #. type: verbatim
8834 #: ../fish/guestfish-actions.pod:2476
8835 #, no-wrap
8836 msgid ""
8837 " kill-subprocess\n"
8838 "\n"
8839 msgstr ""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
8843 msgid "This kills the qemu subprocess.  You should never need to call this."
8844 msgstr ""
8845
8846 #. type: =head2
8847 #: ../fish/guestfish-actions.pod:2480
8848 msgid "launch"
8849 msgstr ""
8850
8851 #. type: =head2
8852 #: ../fish/guestfish-actions.pod:2482
8853 msgid "run"
8854 msgstr ""
8855
8856 #. type: verbatim
8857 #: ../fish/guestfish-actions.pod:2484
8858 #, no-wrap
8859 msgid ""
8860 " launch\n"
8861 "\n"
8862 msgstr ""
8863
8864 #. type: textblock
8865 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
8866 msgid ""
8867 "Internally libguestfs is implemented by running a virtual machine using "
8868 "L<qemu(1)>."
8869 msgstr ""
8870
8871 #. type: textblock
8872 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
8873 msgid ""
8874 "You should call this after configuring the handle (eg. adding drives) but "
8875 "before performing any actions."
8876 msgstr ""
8877
8878 #. type: =head2
8879 #: ../fish/guestfish-actions.pod:2492
8880 msgid "lchown"
8881 msgstr ""
8882
8883 #. type: verbatim
8884 #: ../fish/guestfish-actions.pod:2494
8885 #, no-wrap
8886 msgid ""
8887 " lchown owner group path\n"
8888 "\n"
8889 msgstr ""
8890
8891 #. type: textblock
8892 #: ../fish/guestfish-actions.pod:2496
8893 msgid ""
8894 "Change the file owner to C<owner> and group to C<group>.  This is like "
8895 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
8896 "the target."
8897 msgstr ""
8898
8899 #. type: =head2
8900 #: ../fish/guestfish-actions.pod:2504
8901 msgid "lgetxattr"
8902 msgstr ""
8903
8904 #. type: verbatim
8905 #: ../fish/guestfish-actions.pod:2506
8906 #, no-wrap
8907 msgid ""
8908 " lgetxattr path name\n"
8909 "\n"
8910 msgstr ""
8911
8912 #. type: textblock
8913 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
8914 msgid ""
8915 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
8916 "is a symlink, then this call returns an extended attribute from the symlink."
8917 msgstr ""
8918
8919 #. type: textblock
8920 #: ../fish/guestfish-actions.pod:2522
8921 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
8922 msgstr ""
8923
8924 #. type: =head2
8925 #: ../fish/guestfish-actions.pod:2524
8926 msgid "lgetxattrs"
8927 msgstr ""
8928
8929 #. type: verbatim
8930 #: ../fish/guestfish-actions.pod:2526
8931 #, no-wrap
8932 msgid ""
8933 " lgetxattrs path\n"
8934 "\n"
8935 msgstr ""
8936
8937 #. type: textblock
8938 #: ../fish/guestfish-actions.pod:2528
8939 msgid ""
8940 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
8941 "it returns the extended attributes of the link itself."
8942 msgstr ""
8943
8944 #. type: =head2
8945 #: ../fish/guestfish-actions.pod:2532
8946 msgid "list-9p"
8947 msgstr ""
8948
8949 #. type: verbatim
8950 #: ../fish/guestfish-actions.pod:2534
8951 #, no-wrap
8952 msgid ""
8953 " list-9p\n"
8954 "\n"
8955 msgstr ""
8956
8957 #. type: textblock
8958 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
8959 msgid ""
8960 "List all 9p filesystems attached to the guest.  A list of mount tags is "
8961 "returned."
8962 msgstr ""
8963
8964 #. type: =head2
8965 #: ../fish/guestfish-actions.pod:2539
8966 msgid "list-devices"
8967 msgstr ""
8968
8969 #. type: verbatim
8970 #: ../fish/guestfish-actions.pod:2541
8971 #, no-wrap
8972 msgid ""
8973 " list-devices\n"
8974 "\n"
8975 msgstr ""
8976
8977 #. type: textblock
8978 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
8979 msgid "List all the block devices."
8980 msgstr ""
8981
8982 #. type: textblock
8983 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
8984 msgid "The full block device names are returned, eg. C</dev/sda>."
8985 msgstr ""
8986
8987 #. type: =head2
8988 #: ../fish/guestfish-actions.pod:2549
8989 msgid "list-dm-devices"
8990 msgstr ""
8991
8992 #. type: verbatim
8993 #: ../fish/guestfish-actions.pod:2551
8994 #, no-wrap
8995 msgid ""
8996 " list-dm-devices\n"
8997 "\n"
8998 msgstr ""
8999
9000 #. type: textblock
9001 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
9002 msgid "List all device mapper devices."
9003 msgstr ""
9004
9005 #. type: textblock
9006 #: ../fish/guestfish-actions.pod:2555
9007 msgid ""
9008 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9009 "previous call to L</luks-open>."
9010 msgstr ""
9011
9012 #. type: textblock
9013 #: ../fish/guestfish-actions.pod:2558
9014 msgid ""
9015 "Device mapper devices which correspond to logical volumes are I<not> "
9016 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9017 msgstr ""
9018
9019 #. type: =head2
9020 #: ../fish/guestfish-actions.pod:2562
9021 msgid "list-filesystems"
9022 msgstr ""
9023
9024 #. type: verbatim
9025 #: ../fish/guestfish-actions.pod:2564
9026 #, no-wrap
9027 msgid ""
9028 " list-filesystems\n"
9029 "\n"
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
9034 msgid ""
9035 "This inspection command looks for filesystems on partitions, block devices "
9036 "and logical volumes, returning a list of devices containing filesystems and "
9037 "their type."
9038 msgstr ""
9039
9040 #. type: textblock
9041 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
9042 msgid ""
9043 "The return value is a hash, where the keys are the devices containing "
9044 "filesystems, and the values are the filesystem types.  For example:"
9045 msgstr ""
9046
9047 #. type: verbatim
9048 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9049 #, no-wrap
9050 msgid ""
9051 " \"/dev/sda1\" => \"ntfs\"\n"
9052 " \"/dev/sda2\" => \"ext2\"\n"
9053 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9054 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9055 "\n"
9056 msgstr ""
9057
9058 #. type: textblock
9059 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
9060 msgid ""
9061 "The value can have the special value \"unknown\", meaning the content of the "
9062 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:2583
9067 msgid ""
9068 "This command runs other libguestfs commands, which might include L</mount> "
9069 "and L</umount>, and therefore you should use this soon after launch and only "
9070 "when nothing is mounted."
9071 msgstr ""
9072
9073 #. type: textblock
9074 #: ../fish/guestfish-actions.pod:2587
9075 msgid ""
9076 "Not all of the filesystems returned will be mountable.  In particular, swap "
9077 "partitions are returned in the list.  Also this command does not check that "
9078 "each filesystem found is valid and mountable, and some filesystems might be "
9079 "mountable but require special options.  Filesystems may not all belong to a "
9080 "single logical operating system (use L</inspect-os> to look for OSes)."
9081 msgstr ""
9082
9083 #. type: =head2
9084 #: ../fish/guestfish-actions.pod:2595
9085 msgid "list-partitions"
9086 msgstr ""
9087
9088 #. type: verbatim
9089 #: ../fish/guestfish-actions.pod:2597
9090 #, no-wrap
9091 msgid ""
9092 " list-partitions\n"
9093 "\n"
9094 msgstr ""
9095
9096 #. type: textblock
9097 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
9098 msgid "List all the partitions detected on all block devices."
9099 msgstr ""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
9103 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9104 msgstr ""
9105
9106 #. type: textblock
9107 #: ../fish/guestfish-actions.pod:2603
9108 msgid ""
9109 "This does not return logical volumes.  For that you will need to call "
9110 "L</lvs>."
9111 msgstr ""
9112
9113 #. type: =head2
9114 #: ../fish/guestfish-actions.pod:2608
9115 msgid "ll"
9116 msgstr ""
9117
9118 #. type: verbatim
9119 #: ../fish/guestfish-actions.pod:2610
9120 #, no-wrap
9121 msgid ""
9122 " ll directory\n"
9123 "\n"
9124 msgstr ""
9125
9126 #. type: textblock
9127 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
9128 msgid ""
9129 "List the files in C<directory> (relative to the root directory, there is no "
9130 "cwd) in the format of 'ls -la'."
9131 msgstr ""
9132
9133 #. type: textblock
9134 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
9135 msgid ""
9136 "This command is mostly useful for interactive sessions.  It is I<not> "
9137 "intended that you try to parse the output string."
9138 msgstr ""
9139
9140 #. type: =head2
9141 #: ../fish/guestfish-actions.pod:2618
9142 msgid "ln"
9143 msgstr ""
9144
9145 #. type: verbatim
9146 #: ../fish/guestfish-actions.pod:2620
9147 #, no-wrap
9148 msgid ""
9149 " ln target linkname\n"
9150 "\n"
9151 msgstr ""
9152
9153 #. type: textblock
9154 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
9155 msgid "This command creates a hard link using the C<ln> command."
9156 msgstr ""
9157
9158 #. type: =head2
9159 #: ../fish/guestfish-actions.pod:2624
9160 msgid "ln-f"
9161 msgstr ""
9162
9163 #. type: verbatim
9164 #: ../fish/guestfish-actions.pod:2626
9165 #, no-wrap
9166 msgid ""
9167 " ln-f target linkname\n"
9168 "\n"
9169 msgstr ""
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
9173 msgid ""
9174 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9175 "option removes the link (C<linkname>) if it exists already."
9176 msgstr ""
9177
9178 #. type: =head2
9179 #: ../fish/guestfish-actions.pod:2631
9180 msgid "ln-s"
9181 msgstr ""
9182
9183 #. type: verbatim
9184 #: ../fish/guestfish-actions.pod:2633
9185 #, no-wrap
9186 msgid ""
9187 " ln-s target linkname\n"
9188 "\n"
9189 msgstr ""
9190
9191 #. type: textblock
9192 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
9193 msgid "This command creates a symbolic link using the C<ln -s> command."
9194 msgstr ""
9195
9196 #. type: =head2
9197 #: ../fish/guestfish-actions.pod:2637
9198 msgid "ln-sf"
9199 msgstr ""
9200
9201 #. type: verbatim
9202 #: ../fish/guestfish-actions.pod:2639
9203 #, no-wrap
9204 msgid ""
9205 " ln-sf target linkname\n"
9206 "\n"
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
9211 msgid ""
9212 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9213 "option removes the link (C<linkname>) if it exists already."
9214 msgstr ""
9215
9216 #. type: =head2
9217 #: ../fish/guestfish-actions.pod:2644
9218 msgid "lremovexattr"
9219 msgstr ""
9220
9221 #. type: verbatim
9222 #: ../fish/guestfish-actions.pod:2646
9223 #, no-wrap
9224 msgid ""
9225 " lremovexattr xattr path\n"
9226 "\n"
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2648
9231 msgid ""
9232 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9233 "it removes an extended attribute of the link itself."
9234 msgstr ""
9235
9236 #. type: =head2
9237 #: ../fish/guestfish-actions.pod:2652
9238 msgid "ls"
9239 msgstr ""
9240
9241 #. type: verbatim
9242 #: ../fish/guestfish-actions.pod:2654
9243 #, no-wrap
9244 msgid ""
9245 " ls directory\n"
9246 "\n"
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
9251 msgid ""
9252 "List the files in C<directory> (relative to the root directory, there is no "
9253 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9254 "shown."
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:2660
9259 msgid ""
9260 "This command is mostly useful for interactive sessions.  Programs should "
9261 "probably use L</readdir> instead."
9262 msgstr ""
9263
9264 #. type: =head2
9265 #: ../fish/guestfish-actions.pod:2663
9266 msgid "lsetxattr"
9267 msgstr ""
9268
9269 #. type: verbatim
9270 #: ../fish/guestfish-actions.pod:2665
9271 #, no-wrap
9272 msgid ""
9273 " lsetxattr xattr val vallen path\n"
9274 "\n"
9275 msgstr ""
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:2667
9279 msgid ""
9280 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9281 "sets an extended attribute of the link itself."
9282 msgstr ""
9283
9284 #. type: =head2
9285 #: ../fish/guestfish-actions.pod:2671
9286 msgid "lstat"
9287 msgstr ""
9288
9289 #. type: verbatim
9290 #: ../fish/guestfish-actions.pod:2673
9291 #, no-wrap
9292 msgid ""
9293 " lstat path\n"
9294 "\n"
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
9299 msgid "Returns file information for the given C<path>."
9300 msgstr ""
9301
9302 #. type: textblock
9303 #: ../fish/guestfish-actions.pod:2677
9304 msgid ""
9305 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9306 "the link is stat-ed, not the file it refers to."
9307 msgstr ""
9308
9309 #. type: textblock
9310 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
9311 msgid "This is the same as the C<lstat(2)> system call."
9312 msgstr ""
9313
9314 #. type: =head2
9315 #: ../fish/guestfish-actions.pod:2683
9316 msgid "lstatlist"
9317 msgstr ""
9318
9319 #. type: verbatim
9320 #: ../fish/guestfish-actions.pod:2685
9321 #, no-wrap
9322 msgid ""
9323 " lstatlist path 'names ...'\n"
9324 "\n"
9325 msgstr ""
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:2687
9329 msgid ""
9330 "This call allows you to perform the L</lstat> operation on multiple files, "
9331 "where all files are in the directory C<path>.  C<names> is the list of files "
9332 "from this directory."
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
9337 msgid ""
9338 "On return you get a list of stat structs, with a one-to-one correspondence "
9339 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9340 "then the C<ino> field of that structure is set to C<-1>."
9341 msgstr ""
9342
9343 #. type: textblock
9344 #: ../fish/guestfish-actions.pod:2696
9345 msgid ""
9346 "This call is intended for programs that want to efficiently list a directory "
9347 "contents without making many round-trips.  See also L</lxattrlist> for a "
9348 "similarly efficient call for getting extended attributes.  Very long "
9349 "directory listings might cause the protocol message size to be exceeded, "
9350 "causing this call to fail.  The caller must split up such requests into "
9351 "smaller groups of names."
9352 msgstr ""
9353
9354 #. type: =head2
9355 #: ../fish/guestfish-actions.pod:2704
9356 msgid "luks-add-key"
9357 msgstr ""
9358
9359 #. type: verbatim
9360 #: ../fish/guestfish-actions.pod:2706
9361 #, no-wrap
9362 msgid ""
9363 " luks-add-key device keyslot\n"
9364 "\n"
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
9369 msgid ""
9370 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9371 "existing key, and is used to access the device.  C<newkey> is the new key to "
9372 "add.  C<keyslot> is the key slot that will be replaced."
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:2713
9377 msgid ""
9378 "Note that if C<keyslot> already contains a key, then this command will "
9379 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9380 msgstr ""
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739 ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766 ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
9384 msgid ""
9385 "This command has one or more key or passphrase parameters.  Guestfish will "
9386 "prompt for these separately."
9387 msgstr ""
9388
9389 #. type: =head2
9390 #: ../fish/guestfish-actions.pod:2720
9391 msgid "luks-close"
9392 msgstr ""
9393
9394 #. type: verbatim
9395 #: ../fish/guestfish-actions.pod:2722
9396 #, no-wrap
9397 msgid ""
9398 " luks-close device\n"
9399 "\n"
9400 msgstr ""
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:2724
9404 msgid ""
9405 "This closes a LUKS device that was created earlier by L</luks-open> or "
9406 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9407 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9408 "underlying block device."
9409 msgstr ""
9410
9411 #. type: =head2
9412 #: ../fish/guestfish-actions.pod:2730
9413 msgid "luks-format"
9414 msgstr ""
9415
9416 #. type: verbatim
9417 #: ../fish/guestfish-actions.pod:2732
9418 #, no-wrap
9419 msgid ""
9420 " luks-format device keyslot\n"
9421 "\n"
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
9426 msgid ""
9427 "This command erases existing data on C<device> and formats the device as a "
9428 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9429 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9430 msgstr ""
9431
9432 #. type: textblock
9433 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755 ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503 ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354 ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399 ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058 ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224 ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115 ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580 ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
9434 msgid ""
9435 "B<This command is dangerous.  Without careful use you can easily destroy all "
9436 "your data>."
9437 msgstr ""
9438
9439 #. type: =head2
9440 #: ../fish/guestfish-actions.pod:2745
9441 msgid "luks-format-cipher"
9442 msgstr ""
9443
9444 #. type: verbatim
9445 #: ../fish/guestfish-actions.pod:2747
9446 #, no-wrap
9447 msgid ""
9448 " luks-format-cipher device keyslot cipher\n"
9449 "\n"
9450 msgstr ""
9451
9452 #. type: textblock
9453 #: ../fish/guestfish-actions.pod:2749
9454 msgid ""
9455 "This command is the same as L</luks-format> but it also allows you to set "
9456 "the C<cipher> used."
9457 msgstr ""
9458
9459 #. type: =head2
9460 #: ../fish/guestfish-actions.pod:2758
9461 msgid "luks-kill-slot"
9462 msgstr ""
9463
9464 #. type: verbatim
9465 #: ../fish/guestfish-actions.pod:2760
9466 #, no-wrap
9467 msgid ""
9468 " luks-kill-slot device keyslot\n"
9469 "\n"
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
9474 msgid ""
9475 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9476 "device C<device>.  C<key> must be one of the I<other> keys."
9477 msgstr ""
9478
9479 #. type: =head2
9480 #: ../fish/guestfish-actions.pod:2769
9481 msgid "luks-open"
9482 msgstr ""
9483
9484 #. type: verbatim
9485 #: ../fish/guestfish-actions.pod:2771
9486 #, no-wrap
9487 msgid ""
9488 " luks-open device mapname\n"
9489 "\n"
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
9494 msgid ""
9495 "This command opens a block device which has been encrypted according to the "
9496 "Linux Unified Key Setup (LUKS) standard."
9497 msgstr ""
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
9501 msgid "C<device> is the encrypted block device or partition."
9502 msgstr ""
9503
9504 #. type: textblock
9505 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
9506 msgid ""
9507 "The caller must supply one of the keys associated with the LUKS block "
9508 "device, in the C<key> parameter."
9509 msgstr ""
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
9513 msgid ""
9514 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9515 "writes to this block device are decrypted from and encrypted to the "
9516 "underlying C<device> respectively."
9517 msgstr ""
9518
9519 #. type: textblock
9520 #: ../fish/guestfish-actions.pod:2785
9521 msgid ""
9522 "If this block device contains LVM volume groups, then calling L</vgscan> "
9523 "followed by L</vg-activate-all> will make them visible."
9524 msgstr ""
9525
9526 #. type: textblock
9527 #: ../fish/guestfish-actions.pod:2789
9528 msgid "Use L</list-dm-devices> to list all device mapper devices."
9529 msgstr ""
9530
9531 #. type: =head2
9532 #: ../fish/guestfish-actions.pod:2795
9533 msgid "luks-open-ro"
9534 msgstr ""
9535
9536 #. type: verbatim
9537 #: ../fish/guestfish-actions.pod:2797
9538 #, no-wrap
9539 msgid ""
9540 " luks-open-ro device mapname\n"
9541 "\n"
9542 msgstr ""
9543
9544 #. type: textblock
9545 #: ../fish/guestfish-actions.pod:2799
9546 msgid ""
9547 "This is the same as L</luks-open> except that a read-only mapping is "
9548 "created."
9549 msgstr ""
9550
9551 #. type: =head2
9552 #: ../fish/guestfish-actions.pod:2805
9553 msgid "lvcreate"
9554 msgstr ""
9555
9556 #. type: verbatim
9557 #: ../fish/guestfish-actions.pod:2807
9558 #, no-wrap
9559 msgid ""
9560 " lvcreate logvol volgroup mbytes\n"
9561 "\n"
9562 msgstr ""
9563
9564 #. type: textblock
9565 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
9566 msgid ""
9567 "This creates an LVM logical volume called C<logvol> on the volume group "
9568 "C<volgroup>, with C<size> megabytes."
9569 msgstr ""
9570
9571 #. type: =head2
9572 #: ../fish/guestfish-actions.pod:2812
9573 msgid "lvm-canonical-lv-name"
9574 msgstr ""
9575
9576 #. type: verbatim
9577 #: ../fish/guestfish-actions.pod:2814
9578 #, no-wrap
9579 msgid ""
9580 " lvm-canonical-lv-name lvname\n"
9581 "\n"
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
9586 msgid ""
9587 "This converts alternative naming schemes for LVs that you might find to the "
9588 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9589 "C</dev/VG/LV>."
9590 msgstr ""
9591
9592 #. type: textblock
9593 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
9594 msgid ""
9595 "This command returns an error if the C<lvname> parameter does not refer to a "
9596 "logical volume."
9597 msgstr ""
9598
9599 #. type: textblock
9600 #: ../fish/guestfish-actions.pod:2823
9601 msgid "See also L</is-lv>."
9602 msgstr ""
9603
9604 #. type: =head2
9605 #: ../fish/guestfish-actions.pod:2825
9606 msgid "lvm-clear-filter"
9607 msgstr ""
9608
9609 #. type: verbatim
9610 #: ../fish/guestfish-actions.pod:2827
9611 #, no-wrap
9612 msgid ""
9613 " lvm-clear-filter\n"
9614 "\n"
9615 msgstr ""
9616
9617 #. type: textblock
9618 #: ../fish/guestfish-actions.pod:2829
9619 msgid ""
9620 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9621 "block device."
9622 msgstr ""
9623
9624 #. type: textblock
9625 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
9626 msgid "This command also clears the LVM cache and performs a volume group scan."
9627 msgstr ""
9628
9629 #. type: =head2
9630 #: ../fish/guestfish-actions.pod:2835
9631 msgid "lvm-remove-all"
9632 msgstr ""
9633
9634 #. type: verbatim
9635 #: ../fish/guestfish-actions.pod:2837
9636 #, no-wrap
9637 msgid ""
9638 " lvm-remove-all\n"
9639 "\n"
9640 msgstr ""
9641
9642 #. type: textblock
9643 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
9644 msgid ""
9645 "This command removes all LVM logical volumes, volume groups and physical "
9646 "volumes."
9647 msgstr ""
9648
9649 #. type: =head2
9650 #: ../fish/guestfish-actions.pod:2845
9651 msgid "lvm-set-filter"
9652 msgstr ""
9653
9654 #. type: verbatim
9655 #: ../fish/guestfish-actions.pod:2847
9656 #, no-wrap
9657 msgid ""
9658 " lvm-set-filter 'devices ...'\n"
9659 "\n"
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
9664 msgid ""
9665 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9666 "block devices in the list C<devices>, and will ignore all other attached "
9667 "block devices."
9668 msgstr ""
9669
9670 #. type: textblock
9671 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
9672 msgid ""
9673 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9674 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9675 "there are two types of duplication possible: either cloned PVs/VGs which "
9676 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9677 "same name.  In normal operation you cannot create this situation, but you "
9678 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9679 "inside the LVM metadata."
9680 msgstr ""
9681
9682 #. type: textblock
9683 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
9684 msgid "You can filter whole block devices or individual partitions."
9685 msgstr ""
9686
9687 #. type: textblock
9688 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
9689 msgid ""
9690 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9691 "filesystem), even if you are not filtering out that VG."
9692 msgstr ""
9693
9694 #. type: =head2
9695 #: ../fish/guestfish-actions.pod:2872
9696 msgid "lvremove"
9697 msgstr ""
9698
9699 #. type: verbatim
9700 #: ../fish/guestfish-actions.pod:2874
9701 #, no-wrap
9702 msgid ""
9703 " lvremove device\n"
9704 "\n"
9705 msgstr ""
9706
9707 #. type: textblock
9708 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
9709 msgid ""
9710 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9711 "LV, such as C</dev/VG/LV>."
9712 msgstr ""
9713
9714 #. type: textblock
9715 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
9716 msgid ""
9717 "You can also remove all LVs in a volume group by specifying the VG name, "
9718 "C</dev/VG>."
9719 msgstr ""
9720
9721 #. type: =head2
9722 #: ../fish/guestfish-actions.pod:2882
9723 msgid "lvrename"
9724 msgstr ""
9725
9726 #. type: verbatim
9727 #: ../fish/guestfish-actions.pod:2884
9728 #, no-wrap
9729 msgid ""
9730 " lvrename logvol newlogvol\n"
9731 "\n"
9732 msgstr ""
9733
9734 #. type: textblock
9735 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
9736 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9737 msgstr ""
9738
9739 #. type: =head2
9740 #: ../fish/guestfish-actions.pod:2888
9741 msgid "lvresize"
9742 msgstr ""
9743
9744 #. type: verbatim
9745 #: ../fish/guestfish-actions.pod:2890
9746 #, no-wrap
9747 msgid ""
9748 " lvresize device mbytes\n"
9749 "\n"
9750 msgstr ""
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
9754 msgid ""
9755 "This resizes (expands or shrinks) an existing LVM logical volume to "
9756 "C<mbytes>.  When reducing, data in the reduced part is lost."
9757 msgstr ""
9758
9759 #. type: =head2
9760 #: ../fish/guestfish-actions.pod:2896
9761 msgid "lvresize-free"
9762 msgstr ""
9763
9764 #. type: verbatim
9765 #: ../fish/guestfish-actions.pod:2898
9766 #, no-wrap
9767 msgid ""
9768 " lvresize-free lv percent\n"
9769 "\n"
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
9774 msgid ""
9775 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9776 "remaining free space in the volume group.  Commonly you would call this with "
9777 "pc = 100 which expands the logical volume as much as possible, using all "
9778 "remaining free space in the volume group."
9779 msgstr ""
9780
9781 #. type: =head2
9782 #: ../fish/guestfish-actions.pod:2906
9783 msgid "lvs"
9784 msgstr ""
9785
9786 #. type: verbatim
9787 #: ../fish/guestfish-actions.pod:2908
9788 #, no-wrap
9789 msgid ""
9790 " lvs\n"
9791 "\n"
9792 msgstr ""
9793
9794 #. type: textblock
9795 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
9796 msgid ""
9797 "List all the logical volumes detected.  This is the equivalent of the "
9798 "L<lvs(8)> command."
9799 msgstr ""
9800
9801 #. type: textblock
9802 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
9803 msgid ""
9804 "This returns a list of the logical volume device names "
9805 "(eg. C</dev/VolGroup00/LogVol00>)."
9806 msgstr ""
9807
9808 #. type: textblock
9809 #: ../fish/guestfish-actions.pod:2916
9810 msgid "See also L</lvs-full>, L</list-filesystems>."
9811 msgstr ""
9812
9813 #. type: =head2
9814 #: ../fish/guestfish-actions.pod:2918
9815 msgid "lvs-full"
9816 msgstr ""
9817
9818 #. type: verbatim
9819 #: ../fish/guestfish-actions.pod:2920
9820 #, no-wrap
9821 msgid ""
9822 " lvs-full\n"
9823 "\n"
9824 msgstr ""
9825
9826 #. type: textblock
9827 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
9828 msgid ""
9829 "List all the logical volumes detected.  This is the equivalent of the "
9830 "L<lvs(8)> command.  The \"full\" version includes all fields."
9831 msgstr ""
9832
9833 #. type: =head2
9834 #: ../fish/guestfish-actions.pod:2925
9835 msgid "lvuuid"
9836 msgstr ""
9837
9838 #. type: verbatim
9839 #: ../fish/guestfish-actions.pod:2927
9840 #, no-wrap
9841 msgid ""
9842 " lvuuid device\n"
9843 "\n"
9844 msgstr ""
9845
9846 #. type: textblock
9847 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
9848 msgid "This command returns the UUID of the LVM LV C<device>."
9849 msgstr ""
9850
9851 #. type: =head2
9852 #: ../fish/guestfish-actions.pod:2931
9853 msgid "lxattrlist"
9854 msgstr ""
9855
9856 #. type: verbatim
9857 #: ../fish/guestfish-actions.pod:2933
9858 #, no-wrap
9859 msgid ""
9860 " lxattrlist path 'names ...'\n"
9861 "\n"
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
9866 msgid ""
9867 "This call allows you to get the extended attributes of multiple files, where "
9868 "all files are in the directory C<path>.  C<names> is the list of files from "
9869 "this directory."
9870 msgstr ""
9871
9872 #. type: textblock
9873 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
9874 msgid ""
9875 "On return you get a flat list of xattr structs which must be interpreted "
9876 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9877 "C<attrval> in this struct is zero-length to indicate there was an error "
9878 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9879 "number (the number of following attributes for this file, which could be "
9880 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9881 "attributes for the first named file.  This repeats for the second and "
9882 "subsequent files."
9883 msgstr ""
9884
9885 #. type: textblock
9886 #: ../fish/guestfish-actions.pod:2949
9887 msgid ""
9888 "This call is intended for programs that want to efficiently list a directory "
9889 "contents without making many round-trips.  See also L</lstatlist> for a "
9890 "similarly efficient call for getting standard stats.  Very long directory "
9891 "listings might cause the protocol message size to be exceeded, causing this "
9892 "call to fail.  The caller must split up such requests into smaller groups of "
9893 "names."
9894 msgstr ""
9895
9896 #. type: =head2
9897 #: ../fish/guestfish-actions.pod:2957
9898 msgid "mkdir"
9899 msgstr ""
9900
9901 #. type: verbatim
9902 #: ../fish/guestfish-actions.pod:2959
9903 #, no-wrap
9904 msgid ""
9905 " mkdir path\n"
9906 "\n"
9907 msgstr ""
9908
9909 #. type: textblock
9910 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
9911 msgid "Create a directory named C<path>."
9912 msgstr ""
9913
9914 #. type: =head2
9915 #: ../fish/guestfish-actions.pod:2963
9916 msgid "mkdir-mode"
9917 msgstr ""
9918
9919 #. type: verbatim
9920 #: ../fish/guestfish-actions.pod:2965
9921 #, no-wrap
9922 msgid ""
9923 " mkdir-mode path mode\n"
9924 "\n"
9925 msgstr ""
9926
9927 #. type: textblock
9928 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
9929 msgid ""
9930 "This command creates a directory, setting the initial permissions of the "
9931 "directory to C<mode>."
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
9936 msgid ""
9937 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9938 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9939 "other ways."
9940 msgstr ""
9941
9942 #. type: textblock
9943 #: ../fish/guestfish-actions.pod:2974
9944 msgid "See also L</mkdir>, L</umask>"
9945 msgstr ""
9946
9947 #. type: =head2
9948 #: ../fish/guestfish-actions.pod:2976
9949 msgid "mkdir-p"
9950 msgstr ""
9951
9952 #. type: verbatim
9953 #: ../fish/guestfish-actions.pod:2978
9954 #, no-wrap
9955 msgid ""
9956 " mkdir-p path\n"
9957 "\n"
9958 msgstr ""
9959
9960 #. type: textblock
9961 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
9962 msgid ""
9963 "Create a directory named C<path>, creating any parent directories as "
9964 "necessary.  This is like the C<mkdir -p> shell command."
9965 msgstr ""
9966
9967 #. type: =head2
9968 #: ../fish/guestfish-actions.pod:2983
9969 msgid "mkdtemp"
9970 msgstr ""
9971
9972 #. type: verbatim
9973 #: ../fish/guestfish-actions.pod:2985
9974 #, no-wrap
9975 msgid ""
9976 " mkdtemp template\n"
9977 "\n"
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
9982 msgid ""
9983 "This command creates a temporary directory.  The C<template> parameter "
9984 "should be a full pathname for the temporary directory name with the final "
9985 "six characters being \"XXXXXX\"."
9986 msgstr ""
9987
9988 #. type: textblock
9989 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
9990 msgid ""
9991 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9992 "being suitable for Windows filesystems."
9993 msgstr ""
9994
9995 #. type: textblock
9996 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
9997 msgid "The name of the temporary directory that was created is returned."
9998 msgstr ""
9999
10000 #. type: textblock
10001 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
10002 msgid "The temporary directory is created with mode 0700 and is owned by root."
10003 msgstr ""
10004
10005 #. type: textblock
10006 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
10007 msgid ""
10008 "The caller is responsible for deleting the temporary directory and its "
10009 "contents after use."
10010 msgstr ""
10011
10012 #. type: textblock
10013 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
10014 msgid "See also: L<mkdtemp(3)>"
10015 msgstr ""
10016
10017 #. type: =head2
10018 #: ../fish/guestfish-actions.pod:3006
10019 msgid "mke2fs-J"
10020 msgstr ""
10021
10022 #. type: verbatim
10023 #: ../fish/guestfish-actions.pod:3008
10024 #, no-wrap
10025 msgid ""
10026 " mke2fs-J fstype blocksize device journal\n"
10027 "\n"
10028 msgstr ""
10029
10030 #. type: textblock
10031 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
10032 msgid ""
10033 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10034 "C<journal>.  It is equivalent to the command:"
10035 msgstr ""
10036
10037 #. type: verbatim
10038 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
10039 #, no-wrap
10040 msgid ""
10041 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10042 "\n"
10043 msgstr ""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:3016
10047 msgid "See also L</mke2journal>."
10048 msgstr ""
10049
10050 #. type: =head2
10051 #: ../fish/guestfish-actions.pod:3018
10052 msgid "mke2fs-JL"
10053 msgstr ""
10054
10055 #. type: verbatim
10056 #: ../fish/guestfish-actions.pod:3020
10057 #, no-wrap
10058 msgid ""
10059 " mke2fs-JL fstype blocksize device label\n"
10060 "\n"
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
10065 msgid ""
10066 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10067 "the journal labeled C<label>."
10068 msgstr ""
10069
10070 #. type: textblock
10071 #: ../fish/guestfish-actions.pod:3025
10072 msgid "See also L</mke2journal-L>."
10073 msgstr ""
10074
10075 #. type: =head2
10076 #: ../fish/guestfish-actions.pod:3027
10077 msgid "mke2fs-JU"
10078 msgstr ""
10079
10080 #. type: verbatim
10081 #: ../fish/guestfish-actions.pod:3029
10082 #, no-wrap
10083 msgid ""
10084 " mke2fs-JU fstype blocksize device uuid\n"
10085 "\n"
10086 msgstr ""
10087
10088 #. type: textblock
10089 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
10090 msgid ""
10091 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10092 "the journal with UUID C<uuid>."
10093 msgstr ""
10094
10095 #. type: textblock
10096 #: ../fish/guestfish-actions.pod:3034
10097 msgid "See also L</mke2journal-U>."
10098 msgstr ""
10099
10100 #. type: =head2
10101 #: ../fish/guestfish-actions.pod:3036
10102 msgid "mke2journal"
10103 msgstr ""
10104
10105 #. type: verbatim
10106 #: ../fish/guestfish-actions.pod:3038
10107 #, no-wrap
10108 msgid ""
10109 " mke2journal blocksize device\n"
10110 "\n"
10111 msgstr ""
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
10115 msgid ""
10116 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10117 "command:"
10118 msgstr ""
10119
10120 #. type: verbatim
10121 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
10122 #, no-wrap
10123 msgid ""
10124 " mke2fs -O journal_dev -b blocksize device\n"
10125 "\n"
10126 msgstr ""
10127
10128 #. type: =head2
10129 #: ../fish/guestfish-actions.pod:3045
10130 msgid "mke2journal-L"
10131 msgstr ""
10132
10133 #. type: verbatim
10134 #: ../fish/guestfish-actions.pod:3047
10135 #, no-wrap
10136 msgid ""
10137 " mke2journal-L blocksize label device\n"
10138 "\n"
10139 msgstr ""
10140
10141 #. type: textblock
10142 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
10143 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10144 msgstr ""
10145
10146 #. type: =head2
10147 #: ../fish/guestfish-actions.pod:3051
10148 msgid "mke2journal-U"
10149 msgstr ""
10150
10151 #. type: verbatim
10152 #: ../fish/guestfish-actions.pod:3053
10153 #, no-wrap
10154 msgid ""
10155 " mke2journal-U blocksize uuid device\n"
10156 "\n"
10157 msgstr ""
10158
10159 #. type: textblock
10160 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
10161 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10162 msgstr ""
10163
10164 #. type: =head2
10165 #: ../fish/guestfish-actions.pod:3057
10166 msgid "mkfifo"
10167 msgstr ""
10168
10169 #. type: verbatim
10170 #: ../fish/guestfish-actions.pod:3059
10171 #, no-wrap
10172 msgid ""
10173 " mkfifo mode path\n"
10174 "\n"
10175 msgstr ""
10176
10177 #. type: textblock
10178 #: ../fish/guestfish-actions.pod:3061
10179 msgid ""
10180 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10181 "is just a convenient wrapper around L</mknod>."
10182 msgstr ""
10183
10184 #. type: =head2
10185 #: ../fish/guestfish-actions.pod:3067
10186 msgid "mkfs"
10187 msgstr ""
10188
10189 #. type: verbatim
10190 #: ../fish/guestfish-actions.pod:3069
10191 #, no-wrap
10192 msgid ""
10193 " mkfs fstype device\n"
10194 "\n"
10195 msgstr ""
10196
10197 #. type: textblock
10198 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
10199 msgid ""
10200 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10201 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10202 msgstr ""
10203
10204 #. type: =head2
10205 #: ../fish/guestfish-actions.pod:3075
10206 msgid "mkfs-b"
10207 msgstr ""
10208
10209 #. type: verbatim
10210 #: ../fish/guestfish-actions.pod:3077
10211 #, no-wrap
10212 msgid ""
10213 " mkfs-b fstype blocksize device\n"
10214 "\n"
10215 msgstr ""
10216
10217 #. type: textblock
10218 #: ../fish/guestfish-actions.pod:3079
10219 msgid ""
10220 "This call is similar to L</mkfs>, but it allows you to control the block "
10221 "size of the resulting filesystem.  Supported block sizes depend on the "
10222 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10223 msgstr ""
10224
10225 #. type: textblock
10226 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
10227 msgid ""
10228 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10229 "cluster size."
10230 msgstr ""
10231
10232 #. type: textblock
10233 #: ../fish/guestfish-actions.pod:3087
10234 msgid ""
10235 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10236 "instead."
10237 msgstr ""
10238
10239 #. type: =head2
10240 #: ../fish/guestfish-actions.pod:3094
10241 msgid "mkfs-opts"
10242 msgstr ""
10243
10244 #. type: verbatim
10245 #: ../fish/guestfish-actions.pod:3096
10246 #, no-wrap
10247 msgid ""
10248 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10249 "[sectorsize:..]\n"
10250 "\n"
10251 msgstr ""
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
10255 msgid ""
10256 "This function creates a filesystem on C<device>.  The filesystem type is "
10257 "C<fstype>, for example C<ext3>."
10258 msgstr ""
10259
10260 #. type: =item
10261 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
10262 msgid "C<blocksize>"
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
10267 msgid ""
10268 "The filesystem block size.  Supported block sizes depend on the filesystem "
10269 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10270 "filesystems."
10271 msgstr ""
10272
10273 #. type: textblock
10274 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
10275 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10276 msgstr ""
10277
10278 #. type: =item
10279 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
10280 msgid "C<features>"
10281 msgstr ""
10282
10283 #. type: textblock
10284 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
10285 msgid "This passes the I<-O> parameter to the external mkfs program."
10286 msgstr ""
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
10290 msgid ""
10291 "For certain filesystem types, this allows extra filesystem features to be "
10292 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10293 msgstr ""
10294
10295 #. type: textblock
10296 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10297 msgid ""
10298 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10299 "type."
10300 msgstr ""
10301
10302 #. type: =item
10303 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10304 msgid "C<inode>"
10305 msgstr ""
10306
10307 #. type: textblock
10308 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10309 msgid ""
10310 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10311 "sets the inode size (only for ext2/3/4 filesystems at present)."
10312 msgstr ""
10313
10314 #. type: =item
10315 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
10316 msgid "C<sectorsize>"
10317 msgstr ""
10318
10319 #. type: textblock
10320 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
10321 msgid ""
10322 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10323 "sets sector size for ufs filesystem."
10324 msgstr ""
10325
10326 #. type: =head2
10327 #: ../fish/guestfish-actions.pod:3141
10328 msgid "mkmountpoint"
10329 msgstr ""
10330
10331 #. type: verbatim
10332 #: ../fish/guestfish-actions.pod:3143
10333 #, no-wrap
10334 msgid ""
10335 " mkmountpoint exemptpath\n"
10336 "\n"
10337 msgstr ""
10338
10339 #. type: textblock
10340 #: ../fish/guestfish-actions.pod:3145
10341 msgid ""
10342 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10343 "to create extra mountpoints before mounting the first filesystem."
10344 msgstr ""
10345
10346 #. type: textblock
10347 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
10348 msgid ""
10349 "These calls are I<only> necessary in some very limited circumstances, mainly "
10350 "the case where you want to mount a mix of unrelated and/or read-only "
10351 "filesystems together."
10352 msgstr ""
10353
10354 #. type: textblock
10355 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10356 msgid ""
10357 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10358 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10359 "inside that.  You can unpack this as follows in guestfish:"
10360 msgstr ""
10361
10362 #. type: verbatim
10363 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
10364 #, no-wrap
10365 msgid ""
10366 " add-ro Fedora-11-i686-Live.iso\n"
10367 " run\n"
10368 " mkmountpoint /cd\n"
10369 " mkmountpoint /sqsh\n"
10370 " mkmountpoint /ext3fs\n"
10371 " mount /dev/sda /cd\n"
10372 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10373 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10374 "\n"
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
10379 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10380 msgstr ""
10381
10382 #. type: textblock
10383 #: ../fish/guestfish-actions.pod:3169
10384 msgid ""
10385 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10386 "unexpected errors if you try to mix these calls.  It is safest to manually "
10387 "unmount filesystems and remove mountpoints after use."
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:3173
10392 msgid ""
10393 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10394 "for this to work for manual mountpoints, you must ensure that the innermost "
10395 "mountpoints have the longest pathnames, as in the example code above."
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
10400 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10401 msgstr ""
10402
10403 #. type: textblock
10404 #: ../fish/guestfish-actions.pod:3180
10405 msgid ""
10406 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10407 "L</umount-all> to be called when the handle is closed which can also trigger "
10408 "these issues."
10409 msgstr ""
10410
10411 #. type: =head2
10412 #: ../fish/guestfish-actions.pod:3184
10413 msgid "mknod"
10414 msgstr ""
10415
10416 #. type: verbatim
10417 #: ../fish/guestfish-actions.pod:3186
10418 #, no-wrap
10419 msgid ""
10420 " mknod mode devmajor devminor path\n"
10421 "\n"
10422 msgstr ""
10423
10424 #. type: textblock
10425 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
10426 msgid ""
10427 "This call creates block or character special devices, or named pipes "
10428 "(FIFOs)."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
10433 msgid ""
10434 "The C<mode> parameter should be the mode, using the standard constants.  "
10435 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10436 "used when creating block and character special devices."
10437 msgstr ""
10438
10439 #. type: textblock
10440 #: ../fish/guestfish-actions.pod:3196
10441 msgid ""
10442 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10443 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10444 "regular file).  These constants are available in the standard Linux header "
10445 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10446 "wrappers around this command which bitwise OR in the appropriate constant "
10447 "for you."
10448 msgstr ""
10449
10450 #. type: =head2
10451 #: ../fish/guestfish-actions.pod:3206
10452 msgid "mknod-b"
10453 msgstr ""
10454
10455 #. type: verbatim
10456 #: ../fish/guestfish-actions.pod:3208
10457 #, no-wrap
10458 msgid ""
10459 " mknod-b mode devmajor devminor path\n"
10460 "\n"
10461 msgstr ""
10462
10463 #. type: textblock
10464 #: ../fish/guestfish-actions.pod:3210
10465 msgid ""
10466 "This call creates a block device node called C<path> with mode C<mode> and "
10467 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10468 "wrapper around L</mknod>."
10469 msgstr ""
10470
10471 #. type: =head2
10472 #: ../fish/guestfish-actions.pod:3216
10473 msgid "mknod-c"
10474 msgstr ""
10475
10476 #. type: verbatim
10477 #: ../fish/guestfish-actions.pod:3218
10478 #, no-wrap
10479 msgid ""
10480 " mknod-c mode devmajor devminor path\n"
10481 "\n"
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:3220
10486 msgid ""
10487 "This call creates a char device node called C<path> with mode C<mode> and "
10488 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10489 "wrapper around L</mknod>."
10490 msgstr ""
10491
10492 #. type: =head2
10493 #: ../fish/guestfish-actions.pod:3226
10494 msgid "mkswap"
10495 msgstr ""
10496
10497 #. type: verbatim
10498 #: ../fish/guestfish-actions.pod:3228
10499 #, no-wrap
10500 msgid ""
10501 " mkswap device\n"
10502 "\n"
10503 msgstr ""
10504
10505 #. type: textblock
10506 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
10507 msgid "Create a swap partition on C<device>."
10508 msgstr ""
10509
10510 #. type: =head2
10511 #: ../fish/guestfish-actions.pod:3232
10512 msgid "mkswap-L"
10513 msgstr ""
10514
10515 #. type: verbatim
10516 #: ../fish/guestfish-actions.pod:3234
10517 #, no-wrap
10518 msgid ""
10519 " mkswap-L label device\n"
10520 "\n"
10521 msgstr ""
10522
10523 #. type: textblock
10524 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
10525 msgid "Create a swap partition on C<device> with label C<label>."
10526 msgstr ""
10527
10528 #. type: textblock
10529 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
10530 msgid ""
10531 "Note that you cannot attach a swap label to a block device "
10532 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10533 "the kernel or swap tools."
10534 msgstr ""
10535
10536 #. type: =head2
10537 #: ../fish/guestfish-actions.pod:3242
10538 msgid "mkswap-U"
10539 msgstr ""
10540
10541 #. type: verbatim
10542 #: ../fish/guestfish-actions.pod:3244
10543 #, no-wrap
10544 msgid ""
10545 " mkswap-U uuid device\n"
10546 "\n"
10547 msgstr ""
10548
10549 #. type: textblock
10550 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
10551 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10552 msgstr ""
10553
10554 #. type: =head2
10555 #: ../fish/guestfish-actions.pod:3248
10556 msgid "mkswap-file"
10557 msgstr ""
10558
10559 #. type: verbatim
10560 #: ../fish/guestfish-actions.pod:3250
10561 #, no-wrap
10562 msgid ""
10563 " mkswap-file path\n"
10564 "\n"
10565 msgstr ""
10566
10567 #. type: textblock
10568 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
10569 msgid "Create a swap file."
10570 msgstr ""
10571
10572 #. type: textblock
10573 #: ../fish/guestfish-actions.pod:3254
10574 msgid ""
10575 "This command just writes a swap file signature to an existing file.  To "
10576 "create the file itself, use something like L</fallocate>."
10577 msgstr ""
10578
10579 #. type: =head2
10580 #: ../fish/guestfish-actions.pod:3257
10581 msgid "modprobe"
10582 msgstr ""
10583
10584 #. type: verbatim
10585 #: ../fish/guestfish-actions.pod:3259
10586 #, no-wrap
10587 msgid ""
10588 " modprobe modulename\n"
10589 "\n"
10590 msgstr ""
10591
10592 #. type: textblock
10593 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
10594 msgid "This loads a kernel module in the appliance."
10595 msgstr ""
10596
10597 #. type: textblock
10598 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
10599 msgid ""
10600 "The kernel module must have been whitelisted when libguestfs was built (see "
10601 "C<appliance/kmod.whitelist.in> in the source)."
10602 msgstr ""
10603
10604 #. type: =head2
10605 #: ../fish/guestfish-actions.pod:3266
10606 msgid "mount"
10607 msgstr ""
10608
10609 #. type: verbatim
10610 #: ../fish/guestfish-actions.pod:3268
10611 #, no-wrap
10612 msgid ""
10613 " mount device mountpoint\n"
10614 "\n"
10615 msgstr ""
10616
10617 #. type: textblock
10618 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
10619 msgid ""
10620 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10621 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10622 "those block devices contain partitions, they will have the usual names "
10623 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10624 msgstr ""
10625
10626 #. type: textblock
10627 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
10628 msgid ""
10629 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10630 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10631 "mounted on directories which already exist."
10632 msgstr ""
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
10636 msgid ""
10637 "The mounted filesystem is writable, if we have sufficient permissions on the "
10638 "underlying device."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:3284
10643 msgid ""
10644 "B<Important note:> When you use this call, the filesystem options C<sync> "
10645 "and C<noatime> are set implicitly.  This was originally done because we "
10646 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10647 "very large negative performance impact and negligible effect on "
10648 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
10649 "code that needs performance, and instead use L</mount-options> (use an empty "
10650 "string for the first parameter if you don't want any options)."
10651 msgstr ""
10652
10653 #. type: textblock
10654 #: ../fish/guestfish-actions.pod:3294
10655 msgid ""
10656 "I<This function is deprecated.> In new code, use the L</mount_options> call "
10657 "instead."
10658 msgstr ""
10659
10660 #. type: =head2
10661 #: ../fish/guestfish-actions.pod:3301
10662 msgid "mount-9p"
10663 msgstr ""
10664
10665 #. type: verbatim
10666 #: ../fish/guestfish-actions.pod:3303
10667 #, no-wrap
10668 msgid ""
10669 " mount-9p mounttag mountpoint [options:..]\n"
10670 "\n"
10671 msgstr ""
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
10675 msgid ""
10676 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10677 "C<mountpoint>."
10678 msgstr ""
10679
10680 #. type: textblock
10681 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
10682 msgid ""
10683 "If required, C<trans=virtio> will be automatically added to the options.  "
10684 "Any other options required can be passed in the optional C<options> "
10685 "parameter."
10686 msgstr ""
10687
10688 #. type: =head2
10689 #: ../fish/guestfish-actions.pod:3314
10690 msgid "mount-loop"
10691 msgstr ""
10692
10693 #. type: verbatim
10694 #: ../fish/guestfish-actions.pod:3316
10695 #, no-wrap
10696 msgid ""
10697 " mount-loop file mountpoint\n"
10698 "\n"
10699 msgstr ""
10700
10701 #. type: textblock
10702 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
10703 msgid ""
10704 "This command lets you mount C<file> (a filesystem image in a file) on a "
10705 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10706 "mountpoint>."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:3322
10711 msgid "mount-options"
10712 msgstr ""
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:3324
10716 #, no-wrap
10717 msgid ""
10718 " mount-options options device mountpoint\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:3326
10724 msgid ""
10725 "This is the same as the L</mount> command, but it allows you to set the "
10726 "mount options as for the L<mount(8)> I<-o> flag."
10727 msgstr ""
10728
10729 #. type: textblock
10730 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
10731 msgid ""
10732 "If the C<options> parameter is an empty string, then no options are passed "
10733 "(all options default to whatever the filesystem uses)."
10734 msgstr ""
10735
10736 #. type: =head2
10737 #: ../fish/guestfish-actions.pod:3334
10738 msgid "mount-ro"
10739 msgstr ""
10740
10741 #. type: verbatim
10742 #: ../fish/guestfish-actions.pod:3336
10743 #, no-wrap
10744 msgid ""
10745 " mount-ro device mountpoint\n"
10746 "\n"
10747 msgstr ""
10748
10749 #. type: textblock
10750 #: ../fish/guestfish-actions.pod:3338
10751 msgid ""
10752 "This is the same as the L</mount> command, but it mounts the filesystem with "
10753 "the read-only (I<-o ro>) flag."
10754 msgstr ""
10755
10756 #. type: =head2
10757 #: ../fish/guestfish-actions.pod:3341
10758 msgid "mount-vfs"
10759 msgstr ""
10760
10761 #. type: verbatim
10762 #: ../fish/guestfish-actions.pod:3343
10763 #, no-wrap
10764 msgid ""
10765 " mount-vfs options vfstype device mountpoint\n"
10766 "\n"
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:3345
10771 msgid ""
10772 "This is the same as the L</mount> command, but it allows you to set both the "
10773 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
10774 msgstr ""
10775
10776 #. type: =head2
10777 #: ../fish/guestfish-actions.pod:3349
10778 msgid "mountpoints"
10779 msgstr ""
10780
10781 #. type: verbatim
10782 #: ../fish/guestfish-actions.pod:3351
10783 #, no-wrap
10784 msgid ""
10785 " mountpoints\n"
10786 "\n"
10787 msgstr ""
10788
10789 #. type: textblock
10790 #: ../fish/guestfish-actions.pod:3353
10791 msgid ""
10792 "This call is similar to L</mounts>.  That call returns a list of devices.  "
10793 "This one returns a hash table (map) of device name to directory where the "
10794 "device is mounted."
10795 msgstr ""
10796
10797 #. type: =head2
10798 #: ../fish/guestfish-actions.pod:3357
10799 msgid "mounts"
10800 msgstr ""
10801
10802 #. type: verbatim
10803 #: ../fish/guestfish-actions.pod:3359
10804 #, no-wrap
10805 msgid ""
10806 " mounts\n"
10807 "\n"
10808 msgstr ""
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
10812 msgid ""
10813 "This returns the list of currently mounted filesystems.  It returns the list "
10814 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10815 msgstr ""
10816
10817 #. type: textblock
10818 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
10819 msgid "Some internal mounts are not shown."
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:3366
10824 msgid "See also: L</mountpoints>"
10825 msgstr ""
10826
10827 #. type: =head2
10828 #: ../fish/guestfish-actions.pod:3368
10829 msgid "mv"
10830 msgstr ""
10831
10832 #. type: verbatim
10833 #: ../fish/guestfish-actions.pod:3370
10834 #, no-wrap
10835 msgid ""
10836 " mv src dest\n"
10837 "\n"
10838 msgstr ""
10839
10840 #. type: textblock
10841 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
10842 msgid ""
10843 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10844 "destination filename or destination directory."
10845 msgstr ""
10846
10847 #. type: =head2
10848 #: ../fish/guestfish-actions.pod:3375
10849 msgid "ntfs-3g-probe"
10850 msgstr ""
10851
10852 #. type: verbatim
10853 #: ../fish/guestfish-actions.pod:3377
10854 #, no-wrap
10855 msgid ""
10856 " ntfs-3g-probe true|false device\n"
10857 "\n"
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
10862 msgid ""
10863 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10864 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10865 "read-write, and some cannot be mounted at all)."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
10870 msgid ""
10871 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10872 "can be mounted read-write.  Set it to false if you want to test if the "
10873 "volume can be mounted read-only."
10874 msgstr ""
10875
10876 #. type: textblock
10877 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
10878 msgid ""
10879 "The return value is an integer which C<0> if the operation would succeed, or "
10880 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10881 msgstr ""
10882
10883 #. type: =head2
10884 #: ../fish/guestfish-actions.pod:3391
10885 msgid "ntfsresize"
10886 msgstr ""
10887
10888 #. type: verbatim
10889 #: ../fish/guestfish-actions.pod:3393
10890 #, no-wrap
10891 msgid ""
10892 " ntfsresize device\n"
10893 "\n"
10894 msgstr ""
10895
10896 #. type: textblock
10897 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419 ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
10898 msgid ""
10899 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10900 "size of the underlying device."
10901 msgstr ""
10902
10903 #. type: textblock
10904 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
10905 msgid ""
10906 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
10907 "consistency check (for safety).  You have to boot into Windows to perform "
10908 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
10909 "resize filesystems which have been marked in this way.  So in effect it is "
10910 "not possible to call ntfsresize multiple times on a single filesystem "
10911 "without booting into Windows between each resize."
10912 msgstr ""
10913
10914 #. type: textblock
10915 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445 ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
10916 msgid "See also L<ntfsresize(8)>."
10917 msgstr ""
10918
10919 #. type: textblock
10920 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
10921 msgid ""
10922 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
10923 "call instead."
10924 msgstr ""
10925
10926 #. type: =head2
10927 #: ../fish/guestfish-actions.pod:3415
10928 msgid "ntfsresize-opts"
10929 msgstr ""
10930
10931 #. type: verbatim
10932 #: ../fish/guestfish-actions.pod:3417
10933 #, no-wrap
10934 msgid ""
10935 " ntfsresize-opts device [size:..] [force:..]\n"
10936 "\n"
10937 msgstr ""
10938
10939 #. type: textblock
10940 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
10941 msgid ""
10942 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
10943 "resized to fit the container (eg. partition)."
10944 msgstr ""
10945
10946 #. type: =item
10947 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
10948 msgid "C<force>"
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
10953 msgid ""
10954 "If this option is true, then force the resize of the filesystem even if the "
10955 "filesystem is marked as requiring a consistency check."
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:3436
10960 msgid ""
10961 "After the resize operation, the filesystem is always marked as requiring a "
10962 "consistency check (for safety).  You have to boot into Windows to perform "
10963 "this check and clear this condition.  If you I<don't> set the C<force> "
10964 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
10965 "a single filesystem without booting into Windows between each resize."
10966 msgstr ""
10967
10968 #. type: =head2
10969 #: ../fish/guestfish-actions.pod:3449
10970 msgid "ntfsresize-size"
10971 msgstr ""
10972
10973 #. type: verbatim
10974 #: ../fish/guestfish-actions.pod:3451
10975 #, no-wrap
10976 msgid ""
10977 " ntfsresize-size device size\n"
10978 "\n"
10979 msgstr ""
10980
10981 #. type: textblock
10982 #: ../fish/guestfish-actions.pod:3453
10983 msgid ""
10984 "This command is the same as L</ntfsresize> except that it allows you to "
10985 "specify the new size (in bytes) explicitly."
10986 msgstr ""
10987
10988 #. type: =head2
10989 #: ../fish/guestfish-actions.pod:3463
10990 msgid "part-add"
10991 msgstr ""
10992
10993 #. type: verbatim
10994 #: ../fish/guestfish-actions.pod:3465
10995 #, no-wrap
10996 msgid ""
10997 " part-add device prlogex startsect endsect\n"
10998 "\n"
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:3467
11003 msgid ""
11004 "This command adds a partition to C<device>.  If there is no partition table "
11005 "on the device, call L</part-init> first."
11006 msgstr ""
11007
11008 #. type: textblock
11009 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11010 msgid ""
11011 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11012 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11013 "C<logical>) and C<e> (or C<extended>) partition types."
11014 msgstr ""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
11018 msgid ""
11019 "C<startsect> and C<endsect> are the start and end of the partition in "
11020 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11021 "from the end of the disk (C<-1> is the last sector)."
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:3479
11026 msgid ""
11027 "Creating a partition which covers the whole disk is not so easy.  Use "
11028 "L</part-disk> to do that."
11029 msgstr ""
11030
11031 #. type: =head2
11032 #: ../fish/guestfish-actions.pod:3482
11033 msgid "part-del"
11034 msgstr ""
11035
11036 #. type: verbatim
11037 #: ../fish/guestfish-actions.pod:3484
11038 #, no-wrap
11039 msgid ""
11040 " part-del device partnum\n"
11041 "\n"
11042 msgstr ""
11043
11044 #. type: textblock
11045 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
11046 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11047 msgstr ""
11048
11049 #. type: textblock
11050 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
11051 msgid ""
11052 "Note that in the case of MBR partitioning, deleting an extended partition "
11053 "also deletes any logical partitions it contains."
11054 msgstr ""
11055
11056 #. type: =head2
11057 #: ../fish/guestfish-actions.pod:3492
11058 msgid "part-disk"
11059 msgstr ""
11060
11061 #. type: verbatim
11062 #: ../fish/guestfish-actions.pod:3494
11063 #, no-wrap
11064 msgid ""
11065 " part-disk device parttype\n"
11066 "\n"
11067 msgstr ""
11068
11069 #. type: textblock
11070 #: ../fish/guestfish-actions.pod:3496
11071 msgid ""
11072 "This command is simply a combination of L</part-init> followed by "
11073 "L</part-add> to create a single primary partition covering the whole disk."
11074 msgstr ""
11075
11076 #. type: textblock
11077 #: ../fish/guestfish-actions.pod:3500
11078 msgid ""
11079 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11080 "possible values are described in L</part-init>."
11081 msgstr ""
11082
11083 #. type: =head2
11084 #: ../fish/guestfish-actions.pod:3506
11085 msgid "part-get-bootable"
11086 msgstr ""
11087
11088 #. type: verbatim
11089 #: ../fish/guestfish-actions.pod:3508
11090 #, no-wrap
11091 msgid ""
11092 " part-get-bootable device partnum\n"
11093 "\n"
11094 msgstr ""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
11098 msgid ""
11099 "This command returns true if the partition C<partnum> on C<device> has the "
11100 "bootable flag set."
11101 msgstr ""
11102
11103 #. type: textblock
11104 #: ../fish/guestfish-actions.pod:3513
11105 msgid "See also L</part-set-bootable>."
11106 msgstr ""
11107
11108 #. type: =head2
11109 #: ../fish/guestfish-actions.pod:3515
11110 msgid "part-get-mbr-id"
11111 msgstr ""
11112
11113 #. type: verbatim
11114 #: ../fish/guestfish-actions.pod:3517
11115 #, no-wrap
11116 msgid ""
11117 " part-get-mbr-id device partnum\n"
11118 "\n"
11119 msgstr ""
11120
11121 #. type: textblock
11122 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
11123 msgid ""
11124 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11125 "partition C<partnum>."
11126 msgstr ""
11127
11128 #. type: textblock
11129 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
11130 msgid ""
11131 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11132 "undefined results for other partition table types (see "
11133 "L</part-get-parttype>)."
11134 msgstr ""
11135
11136 #. type: =head2
11137 #: ../fish/guestfish-actions.pod:3526
11138 msgid "part-get-parttype"
11139 msgstr ""
11140
11141 #. type: verbatim
11142 #: ../fish/guestfish-actions.pod:3528
11143 #, no-wrap
11144 msgid ""
11145 " part-get-parttype device\n"
11146 "\n"
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
11151 msgid ""
11152 "This command examines the partition table on C<device> and returns the "
11153 "partition table type (format) being used."
11154 msgstr ""
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:3533
11158 msgid ""
11159 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11160 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11161 "possible, although unusual.  See L</part-init> for a full list."
11162 msgstr ""
11163
11164 #. type: =head2
11165 #: ../fish/guestfish-actions.pod:3538
11166 msgid "part-init"
11167 msgstr ""
11168
11169 #. type: verbatim
11170 #: ../fish/guestfish-actions.pod:3540
11171 #, no-wrap
11172 msgid ""
11173 " part-init device parttype\n"
11174 "\n"
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
11179 msgid ""
11180 "This creates an empty partition table on C<device> of one of the partition "
11181 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11182 "(for large disks)."
11183 msgstr ""
11184
11185 #. type: textblock
11186 #: ../fish/guestfish-actions.pod:3546
11187 msgid ""
11188 "Initially there are no partitions.  Following this, you should call "
11189 "L</part-add> for each partition required."
11190 msgstr ""
11191
11192 #. type: textblock
11193 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
11194 msgid "Possible values for C<parttype> are:"
11195 msgstr ""
11196
11197 #. type: =item
11198 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
11199 msgid "B<efi>"
11200 msgstr ""
11201
11202 #. type: =item
11203 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
11204 msgid "B<gpt>"
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
11209 msgid "Intel EFI / GPT partition table."
11210 msgstr ""
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
11214 msgid ""
11215 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11216 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11217 "the C<mbr> format."
11218 msgstr ""
11219
11220 #. type: =item
11221 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
11222 msgid "B<mbr>"
11223 msgstr ""
11224
11225 #. type: =item
11226 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
11227 msgid "B<msdos>"
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
11232 msgid ""
11233 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11234 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11235 "TB.  For large disks we recommend using C<gpt>."
11236 msgstr ""
11237
11238 #. type: textblock
11239 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11240 msgid "Other partition table types that may work but are not supported include:"
11241 msgstr ""
11242
11243 #. type: =item
11244 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
11245 msgid "B<aix>"
11246 msgstr ""
11247
11248 #. type: textblock
11249 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
11250 msgid "AIX disk labels."
11251 msgstr ""
11252
11253 #. type: =item
11254 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
11255 msgid "B<amiga>"
11256 msgstr ""
11257
11258 #. type: =item
11259 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
11260 msgid "B<rdb>"
11261 msgstr ""
11262
11263 #. type: textblock
11264 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
11265 msgid "Amiga \"Rigid Disk Block\" format."
11266 msgstr ""
11267
11268 #. type: =item
11269 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
11270 msgid "B<bsd>"
11271 msgstr ""
11272
11273 #. type: textblock
11274 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
11275 msgid "BSD disk labels."
11276 msgstr ""
11277
11278 #. type: =item
11279 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
11280 msgid "B<dasd>"
11281 msgstr ""
11282
11283 #. type: textblock
11284 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
11285 msgid "DASD, used on IBM mainframes."
11286 msgstr ""
11287
11288 #. type: =item
11289 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
11290 msgid "B<dvh>"
11291 msgstr ""
11292
11293 #. type: textblock
11294 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
11295 msgid "MIPS/SGI volumes."
11296 msgstr ""
11297
11298 #. type: =item
11299 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
11300 msgid "B<mac>"
11301 msgstr ""
11302
11303 #. type: textblock
11304 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
11305 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11306 msgstr ""
11307
11308 #. type: =item
11309 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
11310 msgid "B<pc98>"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
11315 msgid "NEC PC-98 format, common in Japan apparently."
11316 msgstr ""
11317
11318 #. type: =item
11319 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
11320 msgid "B<sun>"
11321 msgstr ""
11322
11323 #. type: textblock
11324 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
11325 msgid "Sun disk labels."
11326 msgstr ""
11327
11328 #. type: =head2
11329 #: ../fish/guestfish-actions.pod:3615
11330 msgid "part-list"
11331 msgstr ""
11332
11333 #. type: verbatim
11334 #: ../fish/guestfish-actions.pod:3617
11335 #, no-wrap
11336 msgid ""
11337 " part-list device\n"
11338 "\n"
11339 msgstr ""
11340
11341 #. type: textblock
11342 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
11343 msgid ""
11344 "This command parses the partition table on C<device> and returns the list of "
11345 "partitions found."
11346 msgstr ""
11347
11348 #. type: textblock
11349 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
11350 msgid "The fields in the returned structure are:"
11351 msgstr ""
11352
11353 #. type: =item
11354 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
11355 msgid "B<part_num>"
11356 msgstr ""
11357
11358 #. type: textblock
11359 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
11360 msgid "Partition number, counting from 1."
11361 msgstr ""
11362
11363 #. type: =item
11364 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11365 msgid "B<part_start>"
11366 msgstr ""
11367
11368 #. type: textblock
11369 #: ../fish/guestfish-actions.pod:3632
11370 msgid ""
11371 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11372 "the device's sector size, see L</blockdev-getss>."
11373 msgstr ""
11374
11375 #. type: =item
11376 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
11377 msgid "B<part_end>"
11378 msgstr ""
11379
11380 #. type: textblock
11381 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
11382 msgid "End of the partition in bytes."
11383 msgstr ""
11384
11385 #. type: =item
11386 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
11387 msgid "B<part_size>"
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
11392 msgid "Size of the partition in bytes."
11393 msgstr ""
11394
11395 #. type: =head2
11396 #: ../fish/guestfish-actions.pod:3645
11397 msgid "part-set-bootable"
11398 msgstr ""
11399
11400 #. type: verbatim
11401 #: ../fish/guestfish-actions.pod:3647
11402 #, no-wrap
11403 msgid ""
11404 " part-set-bootable device partnum true|false\n"
11405 "\n"
11406 msgstr ""
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
11410 msgid ""
11411 "This sets the bootable flag on partition numbered C<partnum> on device "
11412 "C<device>.  Note that partitions are numbered from 1."
11413 msgstr ""
11414
11415 #. type: textblock
11416 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
11417 msgid ""
11418 "The bootable flag is used by some operating systems (notably Windows) to "
11419 "determine which partition to boot from.  It is by no means universally "
11420 "recognized."
11421 msgstr ""
11422
11423 #. type: =head2
11424 #: ../fish/guestfish-actions.pod:3656
11425 msgid "part-set-mbr-id"
11426 msgstr ""
11427
11428 #. type: verbatim
11429 #: ../fish/guestfish-actions.pod:3658
11430 #, no-wrap
11431 msgid ""
11432 " part-set-mbr-id device partnum idbyte\n"
11433 "\n"
11434 msgstr ""
11435
11436 #. type: textblock
11437 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
11438 msgid ""
11439 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11440 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11441 "documentation are in fact hexadecimal numbers, but usually documented "
11442 "without any leading \"0x\" which might be confusing."
11443 msgstr ""
11444
11445 #. type: =head2
11446 #: ../fish/guestfish-actions.pod:3670
11447 msgid "part-set-name"
11448 msgstr ""
11449
11450 #. type: verbatim
11451 #: ../fish/guestfish-actions.pod:3672
11452 #, no-wrap
11453 msgid ""
11454 " part-set-name device partnum name\n"
11455 "\n"
11456 msgstr ""
11457
11458 #. type: textblock
11459 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
11460 msgid ""
11461 "This sets the partition name on partition numbered C<partnum> on device "
11462 "C<device>.  Note that partitions are numbered from 1."
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
11467 msgid ""
11468 "The partition name can only be set on certain types of partition table.  "
11469 "This works on C<gpt> but not on C<mbr> partitions."
11470 msgstr ""
11471
11472 #. type: =head2
11473 #: ../fish/guestfish-actions.pod:3680
11474 msgid "part-to-dev"
11475 msgstr ""
11476
11477 #. type: verbatim
11478 #: ../fish/guestfish-actions.pod:3682
11479 #, no-wrap
11480 msgid ""
11481 " part-to-dev partition\n"
11482 "\n"
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
11487 msgid ""
11488 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11489 "partition number, returning the device name (eg. \"/dev/sdb\")."
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:3688
11494 msgid ""
11495 "The named partition must exist, for example as a string returned from "
11496 "L</list-partitions>."
11497 msgstr ""
11498
11499 #. type: =head2
11500 #: ../fish/guestfish-actions.pod:3691
11501 msgid "ping-daemon"
11502 msgstr ""
11503
11504 #. type: verbatim
11505 #: ../fish/guestfish-actions.pod:3693
11506 #, no-wrap
11507 msgid ""
11508 " ping-daemon\n"
11509 "\n"
11510 msgstr ""
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
11514 msgid ""
11515 "This is a test probe into the guestfs daemon running inside the qemu "
11516 "subprocess.  Calling this function checks that the daemon responds to the "
11517 "ping message, without affecting the daemon or attached block device(s) in "
11518 "any other way."
11519 msgstr ""
11520
11521 #. type: =head2
11522 #: ../fish/guestfish-actions.pod:3700
11523 msgid "pread"
11524 msgstr ""
11525
11526 #. type: verbatim
11527 #: ../fish/guestfish-actions.pod:3702
11528 #, no-wrap
11529 msgid ""
11530 " pread path count offset\n"
11531 "\n"
11532 msgstr ""
11533
11534 #. type: textblock
11535 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
11536 msgid ""
11537 "This command lets you read part of a file.  It reads C<count> bytes of the "
11538 "file, starting at C<offset>, from file C<path>."
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722 ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
11543 msgid ""
11544 "This may read fewer bytes than requested.  For further details see the "
11545 "L<pread(2)> system call."
11546 msgstr ""
11547
11548 #. type: textblock
11549 #: ../fish/guestfish-actions.pod:3710
11550 msgid "See also L</pwrite>, L</pread-device>."
11551 msgstr ""
11552
11553 #. type: =head2
11554 #: ../fish/guestfish-actions.pod:3715
11555 msgid "pread-device"
11556 msgstr ""
11557
11558 #. type: verbatim
11559 #: ../fish/guestfish-actions.pod:3717
11560 #, no-wrap
11561 msgid ""
11562 " pread-device device count offset\n"
11563 "\n"
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
11568 msgid ""
11569 "This command lets you read part of a file.  It reads C<count> bytes of "
11570 "C<device>, starting at C<offset>."
11571 msgstr ""
11572
11573 #. type: textblock
11574 #: ../fish/guestfish-actions.pod:3725
11575 msgid "See also L</pread>."
11576 msgstr ""
11577
11578 #. type: =head2
11579 #: ../fish/guestfish-actions.pod:3730
11580 msgid "pvcreate"
11581 msgstr ""
11582
11583 #. type: verbatim
11584 #: ../fish/guestfish-actions.pod:3732
11585 #, no-wrap
11586 msgid ""
11587 " pvcreate device\n"
11588 "\n"
11589 msgstr ""
11590
11591 #. type: textblock
11592 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
11593 msgid ""
11594 "This creates an LVM physical volume on the named C<device>, where C<device> "
11595 "should usually be a partition name such as C</dev/sda1>."
11596 msgstr ""
11597
11598 #. type: =head2
11599 #: ../fish/guestfish-actions.pod:3738
11600 msgid "pvremove"
11601 msgstr ""
11602
11603 #. type: verbatim
11604 #: ../fish/guestfish-actions.pod:3740
11605 #, no-wrap
11606 msgid ""
11607 " pvremove device\n"
11608 "\n"
11609 msgstr ""
11610
11611 #. type: textblock
11612 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
11613 msgid ""
11614 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11615 "it."
11616 msgstr ""
11617
11618 #. type: textblock
11619 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
11620 msgid ""
11621 "The implementation uses the C<pvremove> command which refuses to wipe "
11622 "physical volumes that contain any volume groups, so you have to remove those "
11623 "first."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3749
11628 msgid "pvresize"
11629 msgstr ""
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3751
11633 #, no-wrap
11634 msgid ""
11635 " pvresize device\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
11641 msgid ""
11642 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11643 "the new size of the underlying device."
11644 msgstr ""
11645
11646 #. type: =head2
11647 #: ../fish/guestfish-actions.pod:3756
11648 msgid "pvresize-size"
11649 msgstr ""
11650
11651 #. type: verbatim
11652 #: ../fish/guestfish-actions.pod:3758
11653 #, no-wrap
11654 msgid ""
11655 " pvresize-size device size\n"
11656 "\n"
11657 msgstr ""
11658
11659 #. type: textblock
11660 #: ../fish/guestfish-actions.pod:3760
11661 msgid ""
11662 "This command is the same as L</pvresize> except that it allows you to "
11663 "specify the new size (in bytes) explicitly."
11664 msgstr ""
11665
11666 #. type: =head2
11667 #: ../fish/guestfish-actions.pod:3763
11668 msgid "pvs"
11669 msgstr ""
11670
11671 #. type: verbatim
11672 #: ../fish/guestfish-actions.pod:3765
11673 #, no-wrap
11674 msgid ""
11675 " pvs\n"
11676 "\n"
11677 msgstr ""
11678
11679 #. type: textblock
11680 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
11681 msgid ""
11682 "List all the physical volumes detected.  This is the equivalent of the "
11683 "L<pvs(8)> command."
11684 msgstr ""
11685
11686 #. type: textblock
11687 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
11688 msgid ""
11689 "This returns a list of just the device names that contain PVs "
11690 "(eg. C</dev/sda2>)."
11691 msgstr ""
11692
11693 #. type: textblock
11694 #: ../fish/guestfish-actions.pod:3773
11695 msgid "See also L</pvs-full>."
11696 msgstr ""
11697
11698 #. type: =head2
11699 #: ../fish/guestfish-actions.pod:3775
11700 msgid "pvs-full"
11701 msgstr ""
11702
11703 #. type: verbatim
11704 #: ../fish/guestfish-actions.pod:3777
11705 #, no-wrap
11706 msgid ""
11707 " pvs-full\n"
11708 "\n"
11709 msgstr ""
11710
11711 #. type: textblock
11712 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
11713 msgid ""
11714 "List all the physical volumes detected.  This is the equivalent of the "
11715 "L<pvs(8)> command.  The \"full\" version includes all fields."
11716 msgstr ""
11717
11718 #. type: =head2
11719 #: ../fish/guestfish-actions.pod:3782
11720 msgid "pvuuid"
11721 msgstr ""
11722
11723 #. type: verbatim
11724 #: ../fish/guestfish-actions.pod:3784
11725 #, no-wrap
11726 msgid ""
11727 " pvuuid device\n"
11728 "\n"
11729 msgstr ""
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
11733 msgid "This command returns the UUID of the LVM PV C<device>."
11734 msgstr ""
11735
11736 #. type: =head2
11737 #: ../fish/guestfish-actions.pod:3788
11738 msgid "pwrite"
11739 msgstr ""
11740
11741 #. type: verbatim
11742 #: ../fish/guestfish-actions.pod:3790
11743 #, no-wrap
11744 msgid ""
11745 " pwrite path content offset\n"
11746 "\n"
11747 msgstr ""
11748
11749 #. type: textblock
11750 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
11751 msgid ""
11752 "This command writes to part of a file.  It writes the data buffer C<content> "
11753 "to the file C<path> starting at offset C<offset>."
11754 msgstr ""
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
11758 msgid ""
11759 "This command implements the L<pwrite(2)> system call, and like that system "
11760 "call it may not write the full data requested.  The return value is the "
11761 "number of bytes that were actually written to the file.  This could even be "
11762 "0, although short writes are unlikely for regular files in ordinary "
11763 "circumstances."
11764 msgstr ""
11765
11766 #. type: textblock
11767 #: ../fish/guestfish-actions.pod:3801
11768 msgid "See also L</pread>, L</pwrite-device>."
11769 msgstr ""
11770
11771 #. type: =head2
11772 #: ../fish/guestfish-actions.pod:3806
11773 msgid "pwrite-device"
11774 msgstr ""
11775
11776 #. type: verbatim
11777 #: ../fish/guestfish-actions.pod:3808
11778 #, no-wrap
11779 msgid ""
11780 " pwrite-device device content offset\n"
11781 "\n"
11782 msgstr ""
11783
11784 #. type: textblock
11785 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
11786 msgid ""
11787 "This command writes to part of a device.  It writes the data buffer "
11788 "C<content> to C<device> starting at offset C<offset>."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
11793 msgid ""
11794 "This command implements the L<pwrite(2)> system call, and like that system "
11795 "call it may not write the full data requested (although short writes to disk "
11796 "devices and partitions are probably impossible with standard Linux kernels)."
11797 msgstr ""
11798
11799 #. type: textblock
11800 #: ../fish/guestfish-actions.pod:3818
11801 msgid "See also L</pwrite>."
11802 msgstr ""
11803
11804 #. type: =head2
11805 #: ../fish/guestfish-actions.pod:3823
11806 msgid "read-file"
11807 msgstr ""
11808
11809 #. type: verbatim
11810 #: ../fish/guestfish-actions.pod:3825
11811 #, no-wrap
11812 msgid ""
11813 " read-file path\n"
11814 "\n"
11815 msgstr ""
11816
11817 #. type: textblock
11818 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
11819 msgid "This calls returns the contents of the file C<path> as a buffer."
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../fish/guestfish-actions.pod:3830
11824 msgid ""
11825 "Unlike L</cat>, this function can correctly handle files that contain "
11826 "embedded ASCII NUL characters.  However unlike L</download>, this function "
11827 "is limited in the total size of file that can be handled."
11828 msgstr ""
11829
11830 #. type: =head2
11831 #: ../fish/guestfish-actions.pod:3838
11832 msgid "read-lines"
11833 msgstr ""
11834
11835 #. type: verbatim
11836 #: ../fish/guestfish-actions.pod:3840
11837 #, no-wrap
11838 msgid ""
11839 " read-lines path\n"
11840 "\n"
11841 msgstr ""
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
11845 msgid ""
11846 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11847 "C<CRLF> character sequences are I<not> returned."
11848 msgstr ""
11849
11850 #. type: textblock
11851 #: ../fish/guestfish-actions.pod:3847
11852 msgid ""
11853 "Note that this function cannot correctly handle binary files (specifically, "
11854 "files containing C<\\0> character which is treated as end of line).  For "
11855 "those you need to use the L</read-file> function which has a more complex "
11856 "interface."
11857 msgstr ""
11858
11859 #. type: =head2
11860 #: ../fish/guestfish-actions.pod:3852
11861 msgid "readdir"
11862 msgstr ""
11863
11864 #. type: verbatim
11865 #: ../fish/guestfish-actions.pod:3854
11866 #, no-wrap
11867 msgid ""
11868 " readdir dir\n"
11869 "\n"
11870 msgstr ""
11871
11872 #. type: textblock
11873 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
11874 msgid "This returns the list of directory entries in directory C<dir>."
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
11879 msgid ""
11880 "All entries in the directory are returned, including C<.> and C<..>.  The "
11881 "entries are I<not> sorted, but returned in the same order as the underlying "
11882 "filesystem."
11883 msgstr ""
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
11887 msgid ""
11888 "Also this call returns basic file type information about each file.  The "
11889 "C<ftyp> field will contain one of the following characters:"
11890 msgstr ""
11891
11892 #. type: =item
11893 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
11894 msgid "'b'"
11895 msgstr ""
11896
11897 #. type: textblock
11898 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
11899 msgid "Block special"
11900 msgstr ""
11901
11902 #. type: =item
11903 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
11904 msgid "'c'"
11905 msgstr ""
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
11909 msgid "Char special"
11910 msgstr ""
11911
11912 #. type: =item
11913 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
11914 msgid "'d'"
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
11919 msgid "Directory"
11920 msgstr ""
11921
11922 #. type: =item
11923 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
11924 msgid "'f'"
11925 msgstr ""
11926
11927 #. type: textblock
11928 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
11929 msgid "FIFO (named pipe)"
11930 msgstr ""
11931
11932 #. type: =item
11933 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
11934 msgid "'l'"
11935 msgstr ""
11936
11937 #. type: textblock
11938 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
11939 msgid "Symbolic link"
11940 msgstr ""
11941
11942 #. type: =item
11943 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
11944 msgid "'r'"
11945 msgstr ""
11946
11947 #. type: textblock
11948 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
11949 msgid "Regular file"
11950 msgstr ""
11951
11952 #. type: =item
11953 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
11954 msgid "'s'"
11955 msgstr ""
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
11959 msgid "Socket"
11960 msgstr ""
11961
11962 #. type: =item
11963 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
11964 msgid "'u'"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
11969 msgid "Unknown file type"
11970 msgstr ""
11971
11972 #. type: =item
11973 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
11974 msgid "'?'"
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
11979 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11980 msgstr ""
11981
11982 #. type: textblock
11983 #: ../fish/guestfish-actions.pod:3906
11984 msgid ""
11985 "This function is primarily intended for use by programs.  To get a simple "
11986 "list of names, use L</ls>.  To get a printable directory for human "
11987 "consumption, use L</ll>."
11988 msgstr ""
11989
11990 #. type: =head2
11991 #: ../fish/guestfish-actions.pod:3910
11992 msgid "readlink"
11993 msgstr ""
11994
11995 #. type: verbatim
11996 #: ../fish/guestfish-actions.pod:3912
11997 #, no-wrap
11998 msgid ""
11999 " readlink path\n"
12000 "\n"
12001 msgstr ""
12002
12003 #. type: textblock
12004 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
12005 msgid "This command reads the target of a symbolic link."
12006 msgstr ""
12007
12008 #. type: =head2
12009 #: ../fish/guestfish-actions.pod:3916
12010 msgid "readlinklist"
12011 msgstr ""
12012
12013 #. type: verbatim
12014 #: ../fish/guestfish-actions.pod:3918
12015 #, no-wrap
12016 msgid ""
12017 " readlinklist path 'names ...'\n"
12018 "\n"
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
12023 msgid ""
12024 "This call allows you to do a C<readlink> operation on multiple files, where "
12025 "all files are in the directory C<path>.  C<names> is the list of files from "
12026 "this directory."
12027 msgstr ""
12028
12029 #. type: textblock
12030 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
12031 msgid ""
12032 "On return you get a list of strings, with a one-to-one correspondence to the "
12033 "C<names> list.  Each string is the value of the symbolic link."
12034 msgstr ""
12035
12036 #. type: textblock
12037 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
12038 msgid ""
12039 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12040 "result string is the empty string C<\"\">.  However the whole operation is "
12041 "completed even if there were C<readlink(2)> errors, and so you can call this "
12042 "function with names where you don't know if they are symbolic links already "
12043 "(albeit slightly less efficient)."
12044 msgstr ""
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
12048 msgid ""
12049 "This call is intended for programs that want to efficiently list a directory "
12050 "contents without making many round-trips.  Very long directory listings "
12051 "might cause the protocol message size to be exceeded, causing this call to "
12052 "fail.  The caller must split up such requests into smaller groups of names."
12053 msgstr ""
12054
12055 #. type: =head2
12056 #: ../fish/guestfish-actions.pod:3942
12057 msgid "realpath"
12058 msgstr ""
12059
12060 #. type: verbatim
12061 #: ../fish/guestfish-actions.pod:3944
12062 #, no-wrap
12063 msgid ""
12064 " realpath path\n"
12065 "\n"
12066 msgstr ""
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
12070 msgid ""
12071 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12072 "has no C<.>, C<..> or symbolic link path elements."
12073 msgstr ""
12074
12075 #. type: =head2
12076 #: ../fish/guestfish-actions.pod:3949
12077 msgid "removexattr"
12078 msgstr ""
12079
12080 #. type: verbatim
12081 #: ../fish/guestfish-actions.pod:3951
12082 #, no-wrap
12083 msgid ""
12084 " removexattr xattr path\n"
12085 "\n"
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
12090 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12091 msgstr ""
12092
12093 #. type: textblock
12094 #: ../fish/guestfish-actions.pod:3956
12095 msgid "See also: L</lremovexattr>, L<attr(5)>."
12096 msgstr ""
12097
12098 #. type: =head2
12099 #: ../fish/guestfish-actions.pod:3958
12100 msgid "resize2fs"
12101 msgstr ""
12102
12103 #. type: verbatim
12104 #: ../fish/guestfish-actions.pod:3960
12105 #, no-wrap
12106 msgid ""
12107 " resize2fs device\n"
12108 "\n"
12109 msgstr ""
12110
12111 #. type: textblock
12112 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
12113 msgid ""
12114 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12115 "underlying device."
12116 msgstr ""
12117
12118 #. type: textblock
12119 #: ../fish/guestfish-actions.pod:3965
12120 msgid ""
12121 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12122 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12123 "gives an error about this and sometimes not.  In any case, it is always safe "
12124 "to call L</e2fsck-f> before calling this function."
12125 msgstr ""
12126
12127 #. type: =head2
12128 #: ../fish/guestfish-actions.pod:3971
12129 msgid "resize2fs-M"
12130 msgstr ""
12131
12132 #. type: verbatim
12133 #: ../fish/guestfish-actions.pod:3973
12134 #, no-wrap
12135 msgid ""
12136 " resize2fs-M device\n"
12137 "\n"
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3975
12142 msgid ""
12143 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12144 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12145 "command."
12146 msgstr ""
12147
12148 #. type: textblock
12149 #: ../fish/guestfish-actions.pod:3979
12150 msgid ""
12151 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12152 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12153 "multiplied together, give the resulting size of the minimal filesystem in "
12154 "bytes."
12155 msgstr ""
12156
12157 #. type: =head2
12158 #: ../fish/guestfish-actions.pod:3984
12159 msgid "resize2fs-size"
12160 msgstr ""
12161
12162 #. type: verbatim
12163 #: ../fish/guestfish-actions.pod:3986
12164 #, no-wrap
12165 msgid ""
12166 " resize2fs-size device size\n"
12167 "\n"
12168 msgstr ""
12169
12170 #. type: textblock
12171 #: ../fish/guestfish-actions.pod:3988
12172 msgid ""
12173 "This command is the same as L</resize2fs> except that it allows you to "
12174 "specify the new size (in bytes) explicitly."
12175 msgstr ""
12176
12177 #. type: =head2
12178 #: ../fish/guestfish-actions.pod:3991
12179 msgid "rm"
12180 msgstr ""
12181
12182 #. type: verbatim
12183 #: ../fish/guestfish-actions.pod:3993
12184 #, no-wrap
12185 msgid ""
12186 " rm path\n"
12187 "\n"
12188 msgstr ""
12189
12190 #. type: textblock
12191 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
12192 msgid "Remove the single file C<path>."
12193 msgstr ""
12194
12195 #. type: =head2
12196 #: ../fish/guestfish-actions.pod:3997
12197 msgid "rm-rf"
12198 msgstr ""
12199
12200 #. type: verbatim
12201 #: ../fish/guestfish-actions.pod:3999
12202 #, no-wrap
12203 msgid ""
12204 " rm-rf path\n"
12205 "\n"
12206 msgstr ""
12207
12208 #. type: textblock
12209 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
12210 msgid ""
12211 "Remove the file or directory C<path>, recursively removing the contents if "
12212 "its a directory.  This is like the C<rm -rf> shell command."
12213 msgstr ""
12214
12215 #. type: =head2
12216 #: ../fish/guestfish-actions.pod:4005
12217 msgid "rmdir"
12218 msgstr ""
12219
12220 #. type: verbatim
12221 #: ../fish/guestfish-actions.pod:4007
12222 #, no-wrap
12223 msgid ""
12224 " rmdir path\n"
12225 "\n"
12226 msgstr ""
12227
12228 #. type: textblock
12229 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
12230 msgid "Remove the single directory C<path>."
12231 msgstr ""
12232
12233 #. type: =head2
12234 #: ../fish/guestfish-actions.pod:4011
12235 msgid "rmmountpoint"
12236 msgstr ""
12237
12238 #. type: verbatim
12239 #: ../fish/guestfish-actions.pod:4013
12240 #, no-wrap
12241 msgid ""
12242 " rmmountpoint exemptpath\n"
12243 "\n"
12244 msgstr ""
12245
12246 #. type: textblock
12247 #: ../fish/guestfish-actions.pod:4015
12248 msgid ""
12249 "This calls removes a mountpoint that was previously created with "
12250 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12251 msgstr ""
12252
12253 #. type: =head2
12254 #: ../fish/guestfish-actions.pod:4019
12255 msgid "scrub-device"
12256 msgstr ""
12257
12258 #. type: verbatim
12259 #: ../fish/guestfish-actions.pod:4021
12260 #, no-wrap
12261 msgid ""
12262 " scrub-device device\n"
12263 "\n"
12264 msgstr ""
12265
12266 #. type: textblock
12267 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
12268 msgid ""
12269 "This command writes patterns over C<device> to make data retrieval more "
12270 "difficult."
12271 msgstr ""
12272
12273 #. type: textblock
12274 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041 ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
12275 msgid ""
12276 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12277 "more details."
12278 msgstr ""
12279
12280 #. type: =head2
12281 #: ../fish/guestfish-actions.pod:4032
12282 msgid "scrub-file"
12283 msgstr ""
12284
12285 #. type: verbatim
12286 #: ../fish/guestfish-actions.pod:4034
12287 #, no-wrap
12288 msgid ""
12289 " scrub-file file\n"
12290 "\n"
12291 msgstr ""
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
12295 msgid ""
12296 "This command writes patterns over a file to make data retrieval more "
12297 "difficult."
12298 msgstr ""
12299
12300 #. type: textblock
12301 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
12302 msgid "The file is I<removed> after scrubbing."
12303 msgstr ""
12304
12305 #. type: =head2
12306 #: ../fish/guestfish-actions.pod:4044
12307 msgid "scrub-freespace"
12308 msgstr ""
12309
12310 #. type: verbatim
12311 #: ../fish/guestfish-actions.pod:4046
12312 #, no-wrap
12313 msgid ""
12314 " scrub-freespace dir\n"
12315 "\n"
12316 msgstr ""
12317
12318 #. type: textblock
12319 #: ../fish/guestfish-actions.pod:4048
12320 msgid ""
12321 "This command creates the directory C<dir> and then fills it with files until "
12322 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12323 "deletes them.  The intention is to scrub any free space on the partition "
12324 "containing C<dir>."
12325 msgstr ""
12326
12327 #. type: =head2
12328 #: ../fish/guestfish-actions.pod:4057
12329 msgid "set-append"
12330 msgstr ""
12331
12332 #. type: =head2
12333 #: ../fish/guestfish-actions.pod:4059
12334 msgid "append"
12335 msgstr ""
12336
12337 #. type: verbatim
12338 #: ../fish/guestfish-actions.pod:4061
12339 #, no-wrap
12340 msgid ""
12341 " set-append append\n"
12342 "\n"
12343 msgstr ""
12344
12345 #. type: textblock
12346 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
12347 msgid ""
12348 "This function is used to add additional options to the guest kernel command "
12349 "line."
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
12354 msgid ""
12355 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12356 "environment variable."
12357 msgstr ""
12358
12359 #. type: textblock
12360 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
12361 msgid ""
12362 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12363 "(libguestfs always adds a few of its own)."
12364 msgstr ""
12365
12366 #. type: =head2
12367 #: ../fish/guestfish-actions.pod:4072
12368 msgid "set-attach-method"
12369 msgstr ""
12370
12371 #. type: =head2
12372 #: ../fish/guestfish-actions.pod:4074
12373 msgid "attach-method"
12374 msgstr ""
12375
12376 #. type: verbatim
12377 #: ../fish/guestfish-actions.pod:4076
12378 #, no-wrap
12379 msgid ""
12380 " set-attach-method attachmethod\n"
12381 "\n"
12382 msgstr ""
12383
12384 #. type: textblock
12385 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
12386 msgid ""
12387 "Set the method that libguestfs uses to connect to the back end guestfsd "
12388 "daemon.  Possible methods are:"
12389 msgstr ""
12390
12391 #. type: =item
12392 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187 ../src/guestfs.pod:2688
12393 msgid "C<appliance>"
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12398 msgid ""
12399 "Launch an appliance and connect to it.  This is the ordinary method and the "
12400 "default."
12401 msgstr ""
12402
12403 #. type: =item
12404 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
12405 msgid "C<unix:I<path>>"
12406 msgstr ""
12407
12408 #. type: textblock
12409 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
12410 msgid "Connect to the Unix domain socket I<path>."
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
12415 msgid ""
12416 "This method lets you connect to an existing daemon or (using virtio-serial) "
12417 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12418 "RUNNING DAEMONS>."
12419 msgstr ""
12420
12421 #. type: =head2
12422 #: ../fish/guestfish-actions.pod:4098
12423 msgid "set-autosync"
12424 msgstr ""
12425
12426 #. type: =head2
12427 #: ../fish/guestfish-actions.pod:4100
12428 msgid "autosync"
12429 msgstr ""
12430
12431 #. type: verbatim
12432 #: ../fish/guestfish-actions.pod:4102
12433 #, no-wrap
12434 msgid ""
12435 " set-autosync true|false\n"
12436 "\n"
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12441 msgid ""
12442 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12443 "effort attempt to make filesystems consistent and synchronized when the "
12444 "handle is closed (also if the program exits without closing handles)."
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
12449 msgid ""
12450 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12451 "disabled by default)."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:4112
12456 msgid "set-direct"
12457 msgstr ""
12458
12459 #. type: =head2
12460 #: ../fish/guestfish-actions.pod:4114
12461 msgid "direct"
12462 msgstr ""
12463
12464 #. type: verbatim
12465 #: ../fish/guestfish-actions.pod:4116
12466 #, no-wrap
12467 msgid ""
12468 " set-direct true|false\n"
12469 "\n"
12470 msgstr ""
12471
12472 #. type: textblock
12473 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
12474 msgid ""
12475 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12476 "passed directly through to the appliance once it is launched."
12477 msgstr ""
12478
12479 #. type: textblock
12480 #: ../fish/guestfish-actions.pod:4122
12481 msgid ""
12482 "One consequence of this is that log messages aren't caught by the library "
12483 "and handled by L</set-log-message-callback>, but go straight to stdout."
12484 msgstr ""
12485
12486 #. type: textblock
12487 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
12488 msgid "You probably don't want to use this unless you know what you are doing."
12489 msgstr ""
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
12493 msgid "The default is disabled."
12494 msgstr ""
12495
12496 #. type: =head2
12497 #: ../fish/guestfish-actions.pod:4131
12498 msgid "set-e2label"
12499 msgstr ""
12500
12501 #. type: verbatim
12502 #: ../fish/guestfish-actions.pod:4133
12503 #, no-wrap
12504 msgid ""
12505 " set-e2label device label\n"
12506 "\n"
12507 msgstr ""
12508
12509 #. type: textblock
12510 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
12511 msgid ""
12512 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12513 "C<label>.  Filesystem labels are limited to 16 characters."
12514 msgstr ""
12515
12516 #. type: textblock
12517 #: ../fish/guestfish-actions.pod:4139
12518 msgid ""
12519 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12520 "label on a filesystem."
12521 msgstr ""
12522
12523 #. type: =head2
12524 #: ../fish/guestfish-actions.pod:4142
12525 msgid "set-e2uuid"
12526 msgstr ""
12527
12528 #. type: verbatim
12529 #: ../fish/guestfish-actions.pod:4144
12530 #, no-wrap
12531 msgid ""
12532 " set-e2uuid device uuid\n"
12533 "\n"
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
12538 msgid ""
12539 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12540 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12541 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12542 msgstr ""
12543
12544 #. type: textblock
12545 #: ../fish/guestfish-actions.pod:4151
12546 msgid ""
12547 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12548 "UUID of a filesystem."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:4154
12553 msgid "set-memsize"
12554 msgstr ""
12555
12556 #. type: =head2
12557 #: ../fish/guestfish-actions.pod:4156
12558 msgid "memsize"
12559 msgstr ""
12560
12561 #. type: verbatim
12562 #: ../fish/guestfish-actions.pod:4158
12563 #, no-wrap
12564 msgid ""
12565 " set-memsize memsize\n"
12566 "\n"
12567 msgstr ""
12568
12569 #. type: textblock
12570 #: ../fish/guestfish-actions.pod:4160
12571 msgid ""
12572 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12573 "This only has any effect if called before L</launch>."
12574 msgstr ""
12575
12576 #. type: textblock
12577 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
12578 msgid ""
12579 "You can also change this by setting the environment variable "
12580 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12581 msgstr ""
12582
12583 #. type: =head2
12584 #: ../fish/guestfish-actions.pod:4171
12585 msgid "set-network"
12586 msgstr ""
12587
12588 #. type: =head2
12589 #: ../fish/guestfish-actions.pod:4173
12590 msgid "network"
12591 msgstr ""
12592
12593 #. type: verbatim
12594 #: ../fish/guestfish-actions.pod:4175
12595 #, no-wrap
12596 msgid ""
12597 " set-network true|false\n"
12598 "\n"
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
12603 msgid ""
12604 "If C<network> is true, then the network is enabled in the libguestfs "
12605 "appliance.  The default is false."
12606 msgstr ""
12607
12608 #. type: textblock
12609 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
12610 msgid ""
12611 "This affects whether commands are able to access the network (see "
12612 "L<guestfs(3)/RUNNING COMMANDS>)."
12613 msgstr ""
12614
12615 #. type: textblock
12616 #: ../fish/guestfish-actions.pod:4183
12617 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12618 msgstr ""
12619
12620 #. type: =head2
12621 #: ../fish/guestfish-actions.pod:4186
12622 msgid "set-path"
12623 msgstr ""
12624
12625 #. type: verbatim
12626 #: ../fish/guestfish-actions.pod:4190
12627 #, no-wrap
12628 msgid ""
12629 " set-path searchpath\n"
12630 "\n"
12631 msgstr ""
12632
12633 #. type: textblock
12634 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
12635 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12636 msgstr ""
12637
12638 #. type: textblock
12639 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
12640 msgid ""
12641 "The default is C<$libdir/guestfs> unless overridden by setting "
12642 "C<LIBGUESTFS_PATH> environment variable."
12643 msgstr ""
12644
12645 #. type: textblock
12646 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
12647 msgid "Setting C<path> to C<NULL> restores the default path."
12648 msgstr ""
12649
12650 #. type: =head2
12651 #: ../fish/guestfish-actions.pod:4199
12652 msgid "set-pgroup"
12653 msgstr ""
12654
12655 #. type: =head2
12656 #: ../fish/guestfish-actions.pod:4201
12657 msgid "pgroup"
12658 msgstr ""
12659
12660 #. type: verbatim
12661 #: ../fish/guestfish-actions.pod:4203
12662 #, no-wrap
12663 msgid ""
12664 " set-pgroup true|false\n"
12665 "\n"
12666 msgstr ""
12667
12668 #. type: textblock
12669 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
12670 msgid ""
12671 "If C<pgroup> is true, child processes are placed into their own process "
12672 "group."
12673 msgstr ""
12674
12675 #. type: textblock
12676 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
12677 msgid ""
12678 "The practical upshot of this is that signals like C<SIGINT> (from users "
12679 "pressing C<^C>) won't be received by the child process."
12680 msgstr ""
12681
12682 #. type: textblock
12683 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
12684 msgid ""
12685 "The default for this flag is false, because usually you want C<^C> to kill "
12686 "the subprocess."
12687 msgstr ""
12688
12689 #. type: =head2
12690 #: ../fish/guestfish-actions.pod:4214
12691 msgid "set-qemu"
12692 msgstr ""
12693
12694 #. type: =head2
12695 #: ../fish/guestfish-actions.pod:4216
12696 msgid "qemu"
12697 msgstr ""
12698
12699 #. type: verbatim
12700 #: ../fish/guestfish-actions.pod:4218
12701 #, no-wrap
12702 msgid ""
12703 " set-qemu qemu\n"
12704 "\n"
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
12709 msgid "Set the qemu binary that we will use."
12710 msgstr ""
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
12714 msgid "The default is chosen when the library was compiled by the configure script."
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
12719 msgid ""
12720 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12721 "variable."
12722 msgstr ""
12723
12724 #. type: textblock
12725 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
12726 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12727 msgstr ""
12728
12729 #. type: textblock
12730 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
12731 msgid ""
12732 "Note that you should call this function as early as possible after creating "
12733 "the handle.  This is because some pre-launch operations depend on testing "
12734 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12735 "don't retest features, and so you might see inconsistent results.  Using the "
12736 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12737 "the qemu binary at the same time as the handle is created."
12738 msgstr ""
12739
12740 #. type: =head2
12741 #: ../fish/guestfish-actions.pod:4238
12742 msgid "set-recovery-proc"
12743 msgstr ""
12744
12745 #. type: =head2
12746 #: ../fish/guestfish-actions.pod:4240
12747 msgid "recovery-proc"
12748 msgstr ""
12749
12750 #. type: verbatim
12751 #: ../fish/guestfish-actions.pod:4242
12752 #, no-wrap
12753 msgid ""
12754 " set-recovery-proc true|false\n"
12755 "\n"
12756 msgstr ""
12757
12758 #. type: textblock
12759 #: ../fish/guestfish-actions.pod:4244
12760 msgid ""
12761 "If this is called with the parameter C<false> then L</launch> does not "
12762 "create a recovery process.  The purpose of the recovery process is to stop "
12763 "runaway qemu processes in the case where the main program aborts abruptly."
12764 msgstr ""
12765
12766 #. type: textblock
12767 #: ../fish/guestfish-actions.pod:4249
12768 msgid ""
12769 "This only has any effect if called before L</launch>, and the default is "
12770 "true."
12771 msgstr ""
12772
12773 #. type: textblock
12774 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
12775 msgid ""
12776 "About the only time when you would want to disable this is if the main "
12777 "process will fork itself into the background (\"daemonize\" itself).  In "
12778 "this case the recovery process thinks that the main program has disappeared "
12779 "and so kills qemu, which is not very helpful."
12780 msgstr ""
12781
12782 #. type: =head2
12783 #: ../fish/guestfish-actions.pod:4258
12784 msgid "set-selinux"
12785 msgstr ""
12786
12787 #. type: =head2
12788 #: ../fish/guestfish-actions.pod:4260
12789 msgid "selinux"
12790 msgstr ""
12791
12792 #. type: verbatim
12793 #: ../fish/guestfish-actions.pod:4262
12794 #, no-wrap
12795 msgid ""
12796 " set-selinux true|false\n"
12797 "\n"
12798 msgstr ""
12799
12800 #. type: textblock
12801 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
12802 msgid ""
12803 "This sets the selinux flag that is passed to the appliance at boot time.  "
12804 "The default is C<selinux=0> (disabled)."
12805 msgstr ""
12806
12807 #. type: textblock
12808 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
12809 msgid ""
12810 "Note that if SELinux is enabled, it is always in Permissive mode "
12811 "(C<enforcing=0>)."
12812 msgstr ""
12813
12814 #. type: =head2
12815 #: ../fish/guestfish-actions.pod:4273
12816 msgid "set-trace"
12817 msgstr ""
12818
12819 #. type: =head2
12820 #: ../fish/guestfish-actions.pod:4275
12821 msgid "trace"
12822 msgstr ""
12823
12824 #. type: verbatim
12825 #: ../fish/guestfish-actions.pod:4277
12826 #, no-wrap
12827 msgid ""
12828 " set-trace true|false\n"
12829 "\n"
12830 msgstr ""
12831
12832 #. type: textblock
12833 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
12834 msgid ""
12835 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
12836 "return values are traced."
12837 msgstr ""
12838
12839 #. type: textblock
12840 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
12841 msgid ""
12842 "If you want to trace C API calls into libguestfs (and other libraries) then "
12843 "possibly a better way is to use the external ltrace(1) command."
12844 msgstr ""
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
12848 msgid ""
12849 "Command traces are disabled unless the environment variable "
12850 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:4289
12855 msgid ""
12856 "Trace messages are normally sent to C<stderr>, unless you register a "
12857 "callback to send them somewhere else (see L</set-event-callback>)."
12858 msgstr ""
12859
12860 #. type: =head2
12861 #: ../fish/guestfish-actions.pod:4293
12862 msgid "set-verbose"
12863 msgstr ""
12864
12865 #. type: =head2
12866 #: ../fish/guestfish-actions.pod:4295
12867 msgid "verbose"
12868 msgstr ""
12869
12870 #. type: verbatim
12871 #: ../fish/guestfish-actions.pod:4297
12872 #, no-wrap
12873 msgid ""
12874 " set-verbose true|false\n"
12875 "\n"
12876 msgstr ""
12877
12878 #. type: textblock
12879 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
12880 msgid "If C<verbose> is true, this turns on verbose messages."
12881 msgstr ""
12882
12883 #. type: textblock
12884 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
12885 msgid ""
12886 "Verbose messages are disabled unless the environment variable "
12887 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12888 msgstr ""
12889
12890 #. type: textblock
12891 #: ../fish/guestfish-actions.pod:4304
12892 msgid ""
12893 "Verbose messages are normally sent to C<stderr>, unless you register a "
12894 "callback to send them somewhere else (see L</set-event-callback>)."
12895 msgstr ""
12896
12897 #. type: =head2
12898 #: ../fish/guestfish-actions.pod:4308
12899 msgid "setcon"
12900 msgstr ""
12901
12902 #. type: verbatim
12903 #: ../fish/guestfish-actions.pod:4310
12904 #, no-wrap
12905 msgid ""
12906 " setcon context\n"
12907 "\n"
12908 msgstr ""
12909
12910 #. type: textblock
12911 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
12912 msgid ""
12913 "This sets the SELinux security context of the daemon to the string "
12914 "C<context>."
12915 msgstr ""
12916
12917 #. type: textblock
12918 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
12919 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12920 msgstr ""
12921
12922 #. type: =head2
12923 #: ../fish/guestfish-actions.pod:4317
12924 msgid "setxattr"
12925 msgstr ""
12926
12927 #. type: verbatim
12928 #: ../fish/guestfish-actions.pod:4319
12929 #, no-wrap
12930 msgid ""
12931 " setxattr xattr val vallen path\n"
12932 "\n"
12933 msgstr ""
12934
12935 #. type: textblock
12936 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
12937 msgid ""
12938 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12939 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12940 msgstr ""
12941
12942 #. type: textblock
12943 #: ../fish/guestfish-actions.pod:4325
12944 msgid "See also: L</lsetxattr>, L<attr(5)>."
12945 msgstr ""
12946
12947 #. type: =head2
12948 #: ../fish/guestfish-actions.pod:4327
12949 msgid "sfdisk"
12950 msgstr ""
12951
12952 #. type: verbatim
12953 #: ../fish/guestfish-actions.pod:4329
12954 #, no-wrap
12955 msgid ""
12956 " sfdisk device cyls heads sectors 'lines ...'\n"
12957 "\n"
12958 msgstr ""
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
12962 msgid ""
12963 "This is a direct interface to the L<sfdisk(8)> program for creating "
12964 "partitions on block devices."
12965 msgstr ""
12966
12967 #. type: textblock
12968 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
12969 msgid "C<device> should be a block device, for example C</dev/sda>."
12970 msgstr ""
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
12974 msgid ""
12975 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12976 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12977 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12978 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12979 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12980 "the kernel) cannot work out the right geometry and you will need to tell it."
12981 msgstr ""
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
12985 msgid ""
12986 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12987 "refer to the L<sfdisk(8)> manpage."
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
12992 msgid ""
12993 "To create a single partition occupying the whole disk, you would pass "
12994 "C<lines> as a single element list, when the single element being the string "
12995 "C<,> (comma)."
12996 msgstr ""
12997
12998 #. type: textblock
12999 #: ../fish/guestfish-actions.pod:4351
13000 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
13001 msgstr ""
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380 ../fish/guestfish-actions.pod:4402
13005 msgid ""
13006 "I<This function is deprecated.> In new code, use the L</part_add> call "
13007 "instead."
13008 msgstr ""
13009
13010 #. type: =head2
13011 #: ../fish/guestfish-actions.pod:4364
13012 msgid "sfdiskM"
13013 msgstr ""
13014
13015 #. type: verbatim
13016 #: ../fish/guestfish-actions.pod:4366
13017 #, no-wrap
13018 msgid ""
13019 " sfdiskM device 'lines ...'\n"
13020 "\n"
13021 msgstr ""
13022
13023 #. type: textblock
13024 #: ../fish/guestfish-actions.pod:4368
13025 msgid ""
13026 "This is a simplified interface to the L</sfdisk> command, where partition "
13027 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13028 "you don't need to specify the cyls, heads and sectors parameters which were "
13029 "rarely if ever used anyway."
13030 msgstr ""
13031
13032 #. type: textblock
13033 #: ../fish/guestfish-actions.pod:4374
13034 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13035 msgstr ""
13036
13037 #. type: =head2
13038 #: ../fish/guestfish-actions.pod:4387
13039 msgid "sfdisk-N"
13040 msgstr ""
13041
13042 #. type: verbatim
13043 #: ../fish/guestfish-actions.pod:4389
13044 #, no-wrap
13045 msgid ""
13046 " sfdisk-N device partnum cyls heads sectors line\n"
13047 "\n"
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
13052 msgid ""
13053 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13054 "(note: C<n> counts from 1)."
13055 msgstr ""
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:4394
13059 msgid ""
13060 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13061 "cyls/heads/sectors parameters."
13062 msgstr ""
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:4397
13066 msgid "See also: L</part-add>"
13067 msgstr ""
13068
13069 #. type: =head2
13070 #: ../fish/guestfish-actions.pod:4409
13071 msgid "sfdisk-disk-geometry"
13072 msgstr ""
13073
13074 #. type: verbatim
13075 #: ../fish/guestfish-actions.pod:4411
13076 #, no-wrap
13077 msgid ""
13078 " sfdisk-disk-geometry device\n"
13079 "\n"
13080 msgstr ""
13081
13082 #. type: textblock
13083 #: ../fish/guestfish-actions.pod:4413
13084 msgid ""
13085 "This displays the disk geometry of C<device> read from the partition table.  "
13086 "Especially in the case where the underlying block device has been resized, "
13087 "this can be different from the kernel's idea of the geometry (see "
13088 "L</sfdisk-kernel-geometry>)."
13089 msgstr ""
13090
13091 #. type: textblock
13092 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427 ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
13093 msgid "The result is in human-readable format, and not designed to be parsed."
13094 msgstr ""
13095
13096 #. type: =head2
13097 #: ../fish/guestfish-actions.pod:4421
13098 msgid "sfdisk-kernel-geometry"
13099 msgstr ""
13100
13101 #. type: verbatim
13102 #: ../fish/guestfish-actions.pod:4423
13103 #, no-wrap
13104 msgid ""
13105 " sfdisk-kernel-geometry device\n"
13106 "\n"
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
13111 msgid "This displays the kernel's idea of the geometry of C<device>."
13112 msgstr ""
13113
13114 #. type: =head2
13115 #: ../fish/guestfish-actions.pod:4430
13116 msgid "sfdisk-l"
13117 msgstr ""
13118
13119 #. type: verbatim
13120 #: ../fish/guestfish-actions.pod:4432
13121 #, no-wrap
13122 msgid ""
13123 " sfdisk-l device\n"
13124 "\n"
13125 msgstr ""
13126
13127 #. type: textblock
13128 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
13129 msgid ""
13130 "This displays the partition table on C<device>, in the human-readable output "
13131 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13132 msgstr ""
13133
13134 #. type: textblock
13135 #: ../fish/guestfish-actions.pod:4438
13136 msgid "See also: L</part-list>"
13137 msgstr ""
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:4440
13141 msgid ""
13142 "I<This function is deprecated.> In new code, use the L</part_list> call "
13143 "instead."
13144 msgstr ""
13145
13146 #. type: =head2
13147 #: ../fish/guestfish-actions.pod:4447
13148 msgid "sh"
13149 msgstr ""
13150
13151 #. type: verbatim
13152 #: ../fish/guestfish-actions.pod:4449
13153 #, no-wrap
13154 msgid ""
13155 " sh command\n"
13156 "\n"
13157 msgstr ""
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13161 msgid ""
13162 "This call runs a command from the guest filesystem via the guest's "
13163 "C</bin/sh>."
13164 msgstr ""
13165
13166 #. type: textblock
13167 #: ../fish/guestfish-actions.pod:4454
13168 msgid "This is like L</command>, but passes the command to:"
13169 msgstr ""
13170
13171 #. type: verbatim
13172 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
13173 #, no-wrap
13174 msgid ""
13175 " /bin/sh -c \"command\"\n"
13176 "\n"
13177 msgstr ""
13178
13179 #. type: textblock
13180 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
13181 msgid ""
13182 "Depending on the guest's shell, this usually results in wildcards being "
13183 "expanded, shell expressions being interpolated and so on."
13184 msgstr ""
13185
13186 #. type: textblock
13187 #: ../fish/guestfish-actions.pod:4462
13188 msgid "All the provisos about L</command> apply to this call."
13189 msgstr ""
13190
13191 #. type: =head2
13192 #: ../fish/guestfish-actions.pod:4464
13193 msgid "sh-lines"
13194 msgstr ""
13195
13196 #. type: verbatim
13197 #: ../fish/guestfish-actions.pod:4466
13198 #, no-wrap
13199 msgid ""
13200 " sh-lines command\n"
13201 "\n"
13202 msgstr ""
13203
13204 #. type: textblock
13205 #: ../fish/guestfish-actions.pod:4468
13206 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../fish/guestfish-actions.pod:4471
13211 msgid "See also: L</command-lines>"
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:4473
13216 msgid "sleep"
13217 msgstr ""
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:4475
13221 #, no-wrap
13222 msgid ""
13223 " sleep secs\n"
13224 "\n"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
13229 msgid "Sleep for C<secs> seconds."
13230 msgstr ""
13231
13232 #. type: =head2
13233 #: ../fish/guestfish-actions.pod:4479
13234 msgid "stat"
13235 msgstr ""
13236
13237 #. type: verbatim
13238 #: ../fish/guestfish-actions.pod:4481
13239 #, no-wrap
13240 msgid ""
13241 " stat path\n"
13242 "\n"
13243 msgstr ""
13244
13245 #. type: textblock
13246 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
13247 msgid "This is the same as the C<stat(2)> system call."
13248 msgstr ""
13249
13250 #. type: =head2
13251 #: ../fish/guestfish-actions.pod:4487
13252 msgid "statvfs"
13253 msgstr ""
13254
13255 #. type: verbatim
13256 #: ../fish/guestfish-actions.pod:4489
13257 #, no-wrap
13258 msgid ""
13259 " statvfs path\n"
13260 "\n"
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
13265 msgid ""
13266 "Returns file system statistics for any mounted file system.  C<path> should "
13267 "be a file or directory in the mounted file system (typically it is the mount "
13268 "point itself, but it doesn't need to be)."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
13273 msgid "This is the same as the C<statvfs(2)> system call."
13274 msgstr ""
13275
13276 #. type: =head2
13277 #: ../fish/guestfish-actions.pod:4497
13278 msgid "strings"
13279 msgstr ""
13280
13281 #. type: verbatim
13282 #: ../fish/guestfish-actions.pod:4499
13283 #, no-wrap
13284 msgid ""
13285 " strings path\n"
13286 "\n"
13287 msgstr ""
13288
13289 #. type: textblock
13290 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
13291 msgid ""
13292 "This runs the L<strings(1)> command on a file and returns the list of "
13293 "printable strings found."
13294 msgstr ""
13295
13296 #. type: =head2
13297 #: ../fish/guestfish-actions.pod:4507
13298 msgid "strings-e"
13299 msgstr ""
13300
13301 #. type: verbatim
13302 #: ../fish/guestfish-actions.pod:4509
13303 #, no-wrap
13304 msgid ""
13305 " strings-e encoding path\n"
13306 "\n"
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:4511
13311 msgid ""
13312 "This is like the L</strings> command, but allows you to specify the encoding "
13313 "of strings that are looked for in the source file C<path>."
13314 msgstr ""
13315
13316 #. type: textblock
13317 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
13318 msgid "Allowed encodings are:"
13319 msgstr ""
13320
13321 #. type: =item
13322 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13323 msgid "s"
13324 msgstr ""
13325
13326 #. type: textblock
13327 #: ../fish/guestfish-actions.pod:4521
13328 msgid ""
13329 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13330 "ISO-8859-X (this is what L</strings> uses)."
13331 msgstr ""
13332
13333 #. type: =item
13334 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
13335 msgid "S"
13336 msgstr ""
13337
13338 #. type: textblock
13339 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
13340 msgid "Single 8-bit-byte characters."
13341 msgstr ""
13342
13343 #. type: =item
13344 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13345 msgid "b"
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13350 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13351 msgstr ""
13352
13353 #. type: =item
13354 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13355 msgid "l (lower case letter L)"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13360 msgid ""
13361 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13362 "examining binaries in Windows guests."
13363 msgstr ""
13364
13365 #. type: =item
13366 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
13367 msgid "B"
13368 msgstr ""
13369
13370 #. type: textblock
13371 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
13372 msgid "32-bit big endian such as UCS-4BE."
13373 msgstr ""
13374
13375 #. type: =item
13376 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
13377 msgid "L"
13378 msgstr ""
13379
13380 #. type: textblock
13381 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
13382 msgid "32-bit little endian such as UCS-4LE."
13383 msgstr ""
13384
13385 #. type: textblock
13386 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
13387 msgid "The returned strings are transcoded to UTF-8."
13388 msgstr ""
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:4553
13392 msgid "swapoff-device"
13393 msgstr ""
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:4555
13397 #, no-wrap
13398 msgid ""
13399 " swapoff-device device\n"
13400 "\n"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:4557
13405 msgid ""
13406 "This command disables the libguestfs appliance swap device or partition "
13407 "named C<device>.  See L</swapon-device>."
13408 msgstr ""
13409
13410 #. type: =head2
13411 #: ../fish/guestfish-actions.pod:4561
13412 msgid "swapoff-file"
13413 msgstr ""
13414
13415 #. type: verbatim
13416 #: ../fish/guestfish-actions.pod:4563
13417 #, no-wrap
13418 msgid ""
13419 " swapoff-file file\n"
13420 "\n"
13421 msgstr ""
13422
13423 #. type: textblock
13424 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
13425 msgid "This command disables the libguestfs appliance swap on file."
13426 msgstr ""
13427
13428 #. type: =head2
13429 #: ../fish/guestfish-actions.pod:4567
13430 msgid "swapoff-label"
13431 msgstr ""
13432
13433 #. type: verbatim
13434 #: ../fish/guestfish-actions.pod:4569
13435 #, no-wrap
13436 msgid ""
13437 " swapoff-label label\n"
13438 "\n"
13439 msgstr ""
13440
13441 #. type: textblock
13442 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
13443 msgid ""
13444 "This command disables the libguestfs appliance swap on labeled swap "
13445 "partition."
13446 msgstr ""
13447
13448 #. type: =head2
13449 #: ../fish/guestfish-actions.pod:4574
13450 msgid "swapoff-uuid"
13451 msgstr ""
13452
13453 #. type: verbatim
13454 #: ../fish/guestfish-actions.pod:4576
13455 #, no-wrap
13456 msgid ""
13457 " swapoff-uuid uuid\n"
13458 "\n"
13459 msgstr ""
13460
13461 #. type: textblock
13462 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
13463 msgid ""
13464 "This command disables the libguestfs appliance swap partition with the given "
13465 "UUID."
13466 msgstr ""
13467
13468 #. type: =head2
13469 #: ../fish/guestfish-actions.pod:4581
13470 msgid "swapon-device"
13471 msgstr ""
13472
13473 #. type: verbatim
13474 #: ../fish/guestfish-actions.pod:4583
13475 #, no-wrap
13476 msgid ""
13477 " swapon-device device\n"
13478 "\n"
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:4585
13483 msgid ""
13484 "This command enables the libguestfs appliance to use the swap device or "
13485 "partition named C<device>.  The increased memory is made available for all "
13486 "commands, for example those run using L</command> or L</sh>."
13487 msgstr ""
13488
13489 #. type: textblock
13490 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
13491 msgid ""
13492 "Note that you should not swap to existing guest swap partitions unless you "
13493 "know what you are doing.  They may contain hibernation information, or other "
13494 "information that the guest doesn't want you to trash.  You also risk leaking "
13495 "information about the host to the guest this way.  Instead, attach a new "
13496 "host device to the guest and swap on that."
13497 msgstr ""
13498
13499 #. type: =head2
13500 #: ../fish/guestfish-actions.pod:4597
13501 msgid "swapon-file"
13502 msgstr ""
13503
13504 #. type: verbatim
13505 #: ../fish/guestfish-actions.pod:4599
13506 #, no-wrap
13507 msgid ""
13508 " swapon-file file\n"
13509 "\n"
13510 msgstr ""
13511
13512 #. type: textblock
13513 #: ../fish/guestfish-actions.pod:4601
13514 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13515 msgstr ""
13516
13517 #. type: =head2
13518 #: ../fish/guestfish-actions.pod:4604
13519 msgid "swapon-label"
13520 msgstr ""
13521
13522 #. type: verbatim
13523 #: ../fish/guestfish-actions.pod:4606
13524 #, no-wrap
13525 msgid ""
13526 " swapon-label label\n"
13527 "\n"
13528 msgstr ""
13529
13530 #. type: textblock
13531 #: ../fish/guestfish-actions.pod:4608
13532 msgid ""
13533 "This command enables swap to a labeled swap partition.  See "
13534 "L</swapon-device> for other notes."
13535 msgstr ""
13536
13537 #. type: =head2
13538 #: ../fish/guestfish-actions.pod:4611
13539 msgid "swapon-uuid"
13540 msgstr ""
13541
13542 #. type: verbatim
13543 #: ../fish/guestfish-actions.pod:4613
13544 #, no-wrap
13545 msgid ""
13546 " swapon-uuid uuid\n"
13547 "\n"
13548 msgstr ""
13549
13550 #. type: textblock
13551 #: ../fish/guestfish-actions.pod:4615
13552 msgid ""
13553 "This command enables swap to a swap partition with the given UUID.  See "
13554 "L</swapon-device> for other notes."
13555 msgstr ""
13556
13557 #. type: =head2
13558 #: ../fish/guestfish-actions.pod:4618
13559 msgid "sync"
13560 msgstr ""
13561
13562 #. type: verbatim
13563 #: ../fish/guestfish-actions.pod:4620
13564 #, no-wrap
13565 msgid ""
13566 " sync\n"
13567 "\n"
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
13572 msgid ""
13573 "This syncs the disk, so that any writes are flushed through to the "
13574 "underlying disk image."
13575 msgstr ""
13576
13577 #. type: textblock
13578 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
13579 msgid ""
13580 "You should always call this if you have modified a disk image, before "
13581 "closing the handle."
13582 msgstr ""
13583
13584 #. type: =head2
13585 #: ../fish/guestfish-actions.pod:4628
13586 msgid "tail"
13587 msgstr ""
13588
13589 #. type: verbatim
13590 #: ../fish/guestfish-actions.pod:4630
13591 #, no-wrap
13592 msgid ""
13593 " tail path\n"
13594 "\n"
13595 msgstr ""
13596
13597 #. type: textblock
13598 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
13599 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13600 msgstr ""
13601
13602 #. type: =head2
13603 #: ../fish/guestfish-actions.pod:4638
13604 msgid "tail-n"
13605 msgstr ""
13606
13607 #. type: verbatim
13608 #: ../fish/guestfish-actions.pod:4640
13609 #, no-wrap
13610 msgid ""
13611 " tail-n nrlines path\n"
13612 "\n"
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
13617 msgid ""
13618 "If the parameter C<nrlines> is a positive number, this returns the last "
13619 "C<nrlines> lines of the file C<path>."
13620 msgstr ""
13621
13622 #. type: textblock
13623 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
13624 msgid ""
13625 "If the parameter C<nrlines> is a negative number, this returns lines from "
13626 "the file C<path>, starting with the C<-nrlines>th line."
13627 msgstr ""
13628
13629 #. type: =head2
13630 #: ../fish/guestfish-actions.pod:4653
13631 msgid "tar-in"
13632 msgstr ""
13633
13634 #. type: verbatim
13635 #: ../fish/guestfish-actions.pod:4655
13636 #, no-wrap
13637 msgid ""
13638 " tar-in (tarfile|-) directory\n"
13639 "\n"
13640 msgstr ""
13641
13642 #. type: textblock
13643 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
13644 msgid ""
13645 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13646 "tar file) into C<directory>."
13647 msgstr ""
13648
13649 #. type: textblock
13650 #: ../fish/guestfish-actions.pod:4660
13651 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13652 msgstr ""
13653
13654 #. type: =head2
13655 #: ../fish/guestfish-actions.pod:4665
13656 msgid "tar-out"
13657 msgstr ""
13658
13659 #. type: verbatim
13660 #: ../fish/guestfish-actions.pod:4667
13661 #, no-wrap
13662 msgid ""
13663 " tar-out directory (tarfile|-)\n"
13664 "\n"
13665 msgstr ""
13666
13667 #. type: textblock
13668 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
13669 msgid ""
13670 "This command packs the contents of C<directory> and downloads it to local "
13671 "file C<tarfile>."
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:4672
13676 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
13677 msgstr ""
13678
13679 #. type: =head2
13680 #: ../fish/guestfish-actions.pod:4677
13681 msgid "tgz-in"
13682 msgstr ""
13683
13684 #. type: verbatim
13685 #: ../fish/guestfish-actions.pod:4679
13686 #, no-wrap
13687 msgid ""
13688 " tgz-in (tarball|-) directory\n"
13689 "\n"
13690 msgstr ""
13691
13692 #. type: textblock
13693 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
13694 msgid ""
13695 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13696 "tar file) into C<directory>."
13697 msgstr ""
13698
13699 #. type: textblock
13700 #: ../fish/guestfish-actions.pod:4684
13701 msgid "To upload an uncompressed tarball, use L</tar-in>."
13702 msgstr ""
13703
13704 #. type: =head2
13705 #: ../fish/guestfish-actions.pod:4688
13706 msgid "tgz-out"
13707 msgstr ""
13708
13709 #. type: verbatim
13710 #: ../fish/guestfish-actions.pod:4690
13711 #, no-wrap
13712 msgid ""
13713 " tgz-out directory (tarball|-)\n"
13714 "\n"
13715 msgstr ""
13716
13717 #. type: textblock
13718 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
13719 msgid ""
13720 "This command packs the contents of C<directory> and downloads it to local "
13721 "file C<tarball>."
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4695
13726 msgid "To download an uncompressed tarball, use L</tar-out>."
13727 msgstr ""
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:4699
13731 msgid "touch"
13732 msgstr ""
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:4701
13736 #, no-wrap
13737 msgid ""
13738 " touch path\n"
13739 "\n"
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
13744 msgid ""
13745 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13746 "timestamps on a file, or, if the file does not exist, to create a new "
13747 "zero-length file."
13748 msgstr ""
13749
13750 #. type: textblock
13751 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
13752 msgid ""
13753 "This command only works on regular files, and will fail on other file types "
13754 "such as directories, symbolic links, block special etc."
13755 msgstr ""
13756
13757 #. type: =head2
13758 #: ../fish/guestfish-actions.pod:4710
13759 msgid "truncate"
13760 msgstr ""
13761
13762 #. type: verbatim
13763 #: ../fish/guestfish-actions.pod:4712
13764 #, no-wrap
13765 msgid ""
13766 " truncate path\n"
13767 "\n"
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
13772 msgid ""
13773 "This command truncates C<path> to a zero-length file.  The file must exist "
13774 "already."
13775 msgstr ""
13776
13777 #. type: =head2
13778 #: ../fish/guestfish-actions.pod:4717
13779 msgid "truncate-size"
13780 msgstr ""
13781
13782 #. type: verbatim
13783 #: ../fish/guestfish-actions.pod:4719
13784 #, no-wrap
13785 msgid ""
13786 " truncate-size path size\n"
13787 "\n"
13788 msgstr ""
13789
13790 #. type: textblock
13791 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
13792 msgid ""
13793 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13794 "already."
13795 msgstr ""
13796
13797 #. type: textblock
13798 #: ../fish/guestfish-actions.pod:4724
13799 msgid ""
13800 "If the current file size is less than C<size> then the file is extended to "
13801 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13802 "blocks are not allocated for the file until you write to it).  To create a "
13803 "non-sparse file of zeroes, use L</fallocate64> instead."
13804 msgstr ""
13805
13806 #. type: =head2
13807 #: ../fish/guestfish-actions.pod:4730
13808 msgid "tune2fs-l"
13809 msgstr ""
13810
13811 #. type: verbatim
13812 #: ../fish/guestfish-actions.pod:4732
13813 #, no-wrap
13814 msgid ""
13815 " tune2fs-l device\n"
13816 "\n"
13817 msgstr ""
13818
13819 #. type: textblock
13820 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
13821 msgid ""
13822 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13823 "C<device>."
13824 msgstr ""
13825
13826 #. type: textblock
13827 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
13828 msgid ""
13829 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13830 "for more details.  The list of fields returned isn't clearly defined, and "
13831 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13832 "and the filesystem itself."
13833 msgstr ""
13834
13835 #. type: =head2
13836 #: ../fish/guestfish-actions.pod:4742
13837 msgid "txz-in"
13838 msgstr ""
13839
13840 #. type: verbatim
13841 #: ../fish/guestfish-actions.pod:4744
13842 #, no-wrap
13843 msgid ""
13844 " txz-in (tarball|-) directory\n"
13845 "\n"
13846 msgstr ""
13847
13848 #. type: textblock
13849 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
13850 msgid ""
13851 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13852 "tar file) into C<directory>."
13853 msgstr ""
13854
13855 #. type: =head2
13856 #: ../fish/guestfish-actions.pod:4751
13857 msgid "txz-out"
13858 msgstr ""
13859
13860 #. type: verbatim
13861 #: ../fish/guestfish-actions.pod:4753
13862 #, no-wrap
13863 msgid ""
13864 " txz-out directory (tarball|-)\n"
13865 "\n"
13866 msgstr ""
13867
13868 #. type: textblock
13869 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
13870 msgid ""
13871 "This command packs the contents of C<directory> and downloads it to local "
13872 "file C<tarball> (as an xz compressed tar archive)."
13873 msgstr ""
13874
13875 #. type: =head2
13876 #: ../fish/guestfish-actions.pod:4760
13877 msgid "umask"
13878 msgstr ""
13879
13880 #. type: verbatim
13881 #: ../fish/guestfish-actions.pod:4762
13882 #, no-wrap
13883 msgid ""
13884 " umask mask\n"
13885 "\n"
13886 msgstr ""
13887
13888 #. type: textblock
13889 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
13890 msgid ""
13891 "This function sets the mask used for creating new files and device nodes to "
13892 "C<mask & 0777>."
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
13897 msgid ""
13898 "Typical umask values would be C<022> which creates new files with "
13899 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13900 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13901 msgstr ""
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
13905 msgid ""
13906 "The default umask is C<022>.  This is important because it means that "
13907 "directories and device nodes will be created with C<0644> or C<0755> mode "
13908 "even if you specify C<0777>."
13909 msgstr ""
13910
13911 #. type: textblock
13912 #: ../fish/guestfish-actions.pod:4776
13913 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
13918 msgid "This call returns the previous umask."
13919 msgstr ""
13920
13921 #. type: =head2
13922 #: ../fish/guestfish-actions.pod:4781
13923 msgid "umount"
13924 msgstr ""
13925
13926 #. type: =head2
13927 #: ../fish/guestfish-actions.pod:4783
13928 msgid "unmount"
13929 msgstr ""
13930
13931 #. type: verbatim
13932 #: ../fish/guestfish-actions.pod:4785
13933 #, no-wrap
13934 msgid ""
13935 " umount pathordevice\n"
13936 "\n"
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
13941 msgid ""
13942 "This unmounts the given filesystem.  The filesystem may be specified either "
13943 "by its mountpoint (path) or the device which contains the filesystem."
13944 msgstr ""
13945
13946 #. type: =head2
13947 #: ../fish/guestfish-actions.pod:4791
13948 msgid "umount-all"
13949 msgstr ""
13950
13951 #. type: =head2
13952 #: ../fish/guestfish-actions.pod:4793
13953 msgid "unmount-all"
13954 msgstr ""
13955
13956 #. type: verbatim
13957 #: ../fish/guestfish-actions.pod:4795
13958 #, no-wrap
13959 msgid ""
13960 " umount-all\n"
13961 "\n"
13962 msgstr ""
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
13966 msgid "This unmounts all mounted filesystems."
13967 msgstr ""
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
13971 msgid "Some internal mounts are not unmounted by this call."
13972 msgstr ""
13973
13974 #. type: =head2
13975 #: ../fish/guestfish-actions.pod:4801
13976 msgid "upload"
13977 msgstr ""
13978
13979 #. type: verbatim
13980 #: ../fish/guestfish-actions.pod:4803
13981 #, no-wrap
13982 msgid ""
13983 " upload (filename|-) remotefilename\n"
13984 "\n"
13985 msgstr ""
13986
13987 #. type: textblock
13988 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
13989 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13990 msgstr ""
13991
13992 #. type: textblock
13993 #: ../fish/guestfish-actions.pod:4810
13994 msgid "See also L</download>."
13995 msgstr ""
13996
13997 #. type: =head2
13998 #: ../fish/guestfish-actions.pod:4814
13999 msgid "upload-offset"
14000 msgstr ""
14001
14002 #. type: verbatim
14003 #: ../fish/guestfish-actions.pod:4816
14004 #, no-wrap
14005 msgid ""
14006 " upload-offset (filename|-) remotefilename offset\n"
14007 "\n"
14008 msgstr ""
14009
14010 #. type: textblock
14011 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
14012 msgid ""
14013 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14014 "The intention is to overwrite parts of existing files or devices, although "
14015 "if a non-existant file is specified then it is created with a \"hole\" "
14016 "before C<offset>.  The size of the data written is implicit in the size of "
14017 "the source C<filename>."
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:4828
14022 msgid ""
14023 "Note that there is no limit on the amount of data that can be uploaded with "
14024 "this call, unlike with L</pwrite>, and this call always writes the full "
14025 "amount unless an error occurs."
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:4833
14030 msgid "See also L</upload>, L</pwrite>."
14031 msgstr ""
14032
14033 #. type: =head2
14034 #: ../fish/guestfish-actions.pod:4837
14035 msgid "utimens"
14036 msgstr ""
14037
14038 #. type: verbatim
14039 #: ../fish/guestfish-actions.pod:4839
14040 #, no-wrap
14041 msgid ""
14042 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14043 "\n"
14044 msgstr ""
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
14048 msgid "This command sets the timestamps of a file with nanosecond precision."
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
14053 msgid ""
14054 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14055 "from the epoch."
14056 msgstr ""
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
14060 msgid ""
14061 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14062 "nanoseconds from the epoch."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
14067 msgid ""
14068 "If the C<*nsecs> field contains the special value C<-1> then the "
14069 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14070 "ignored in this case)."
14071 msgstr ""
14072
14073 #. type: textblock
14074 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
14075 msgid ""
14076 "If the C<*nsecs> field contains the special value C<-2> then the "
14077 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14078 "in this case)."
14079 msgstr ""
14080
14081 #. type: =head2
14082 #: ../fish/guestfish-actions.pod:4858
14083 msgid "version"
14084 msgstr ""
14085
14086 #. type: verbatim
14087 #: ../fish/guestfish-actions.pod:4860
14088 #, no-wrap
14089 msgid ""
14090 " version\n"
14091 "\n"
14092 msgstr ""
14093
14094 #. type: textblock
14095 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
14096 msgid "Return the libguestfs version number that the program is linked against."
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14101 msgid ""
14102 "Note that because of dynamic linking this is not necessarily the version of "
14103 "libguestfs that you compiled against.  You can compile the program, and then "
14104 "at runtime dynamically link against a completely different C<libguestfs.so> "
14105 "library."
14106 msgstr ""
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
14110 msgid ""
14111 "This call was added in version C<1.0.58>.  In previous versions of "
14112 "libguestfs there was no way to get the version number.  From C code you can "
14113 "use dynamic linker functions to find out if this symbol exists (if it "
14114 "doesn't, then it's an earlier version)."
14115 msgstr ""
14116
14117 #. type: textblock
14118 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
14119 msgid ""
14120 "The call returns a structure with four elements.  The first three (C<major>, "
14121 "C<minor> and C<release>) are numbers and correspond to the usual version "
14122 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14123 "but may be used for distro-specific information."
14124 msgstr ""
14125
14126 #. type: textblock
14127 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
14128 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14129 msgstr ""
14130
14131 #. type: textblock
14132 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
14133 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:4887
14138 msgid ""
14139 "I<Note:> Don't use this call to test for availability of features.  In "
14140 "enterprise distributions we backport features from later versions into "
14141 "earlier versions, making this an unreliable way to test for features.  Use "
14142 "L</available> instead."
14143 msgstr ""
14144
14145 #. type: =head2
14146 #: ../fish/guestfish-actions.pod:4893
14147 msgid "vfs-label"
14148 msgstr ""
14149
14150 #. type: verbatim
14151 #: ../fish/guestfish-actions.pod:4895
14152 #, no-wrap
14153 msgid ""
14154 " vfs-label device\n"
14155 "\n"
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
14160 msgid "This returns the filesystem label of the filesystem on C<device>."
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
14165 msgid "If the filesystem is unlabeled, this returns the empty string."
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../fish/guestfish-actions.pod:4902
14170 msgid "To find a filesystem from the label, use L</findfs-label>."
14171 msgstr ""
14172
14173 #. type: =head2
14174 #: ../fish/guestfish-actions.pod:4904
14175 msgid "vfs-type"
14176 msgstr ""
14177
14178 #. type: verbatim
14179 #: ../fish/guestfish-actions.pod:4906
14180 #, no-wrap
14181 msgid ""
14182 " vfs-type device\n"
14183 "\n"
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
14188 msgid ""
14189 "This command gets the filesystem type corresponding to the filesystem on "
14190 "C<device>."
14191 msgstr ""
14192
14193 #. type: textblock
14194 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
14195 msgid ""
14196 "For most filesystems, the result is the name of the Linux VFS module which "
14197 "would be used to mount this filesystem if you mounted it without specifying "
14198 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14199 msgstr ""
14200
14201 #. type: =head2
14202 #: ../fish/guestfish-actions.pod:4916
14203 msgid "vfs-uuid"
14204 msgstr ""
14205
14206 #. type: verbatim
14207 #: ../fish/guestfish-actions.pod:4918
14208 #, no-wrap
14209 msgid ""
14210 " vfs-uuid device\n"
14211 "\n"
14212 msgstr ""
14213
14214 #. type: textblock
14215 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
14216 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
14221 msgid "If the filesystem does not have a UUID, this returns the empty string."
14222 msgstr ""
14223
14224 #. type: textblock
14225 #: ../fish/guestfish-actions.pod:4925
14226 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14227 msgstr ""
14228
14229 #. type: =head2
14230 #: ../fish/guestfish-actions.pod:4927
14231 msgid "vg-activate"
14232 msgstr ""
14233
14234 #. type: verbatim
14235 #: ../fish/guestfish-actions.pod:4929
14236 #, no-wrap
14237 msgid ""
14238 " vg-activate true|false 'volgroups ...'\n"
14239 "\n"
14240 msgstr ""
14241
14242 #. type: textblock
14243 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14244 msgid ""
14245 "This command activates or (if C<activate> is false) deactivates all logical "
14246 "volumes in the listed volume groups C<volgroups>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
14251 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
14256 msgid ""
14257 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14258 "activated or deactivated."
14259 msgstr ""
14260
14261 #. type: =head2
14262 #: ../fish/guestfish-actions.pod:4939
14263 msgid "vg-activate-all"
14264 msgstr ""
14265
14266 #. type: verbatim
14267 #: ../fish/guestfish-actions.pod:4941
14268 #, no-wrap
14269 msgid ""
14270 " vg-activate-all true|false\n"
14271 "\n"
14272 msgstr ""
14273
14274 #. type: textblock
14275 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
14276 msgid ""
14277 "This command activates or (if C<activate> is false) deactivates all logical "
14278 "volumes in all volume groups."
14279 msgstr ""
14280
14281 #. type: textblock
14282 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
14283 msgid "This command is the same as running C<vgchange -a y|n>"
14284 msgstr ""
14285
14286 #. type: =head2
14287 #: ../fish/guestfish-actions.pod:4948
14288 msgid "vgcreate"
14289 msgstr ""
14290
14291 #. type: verbatim
14292 #: ../fish/guestfish-actions.pod:4950
14293 #, no-wrap
14294 msgid ""
14295 " vgcreate volgroup 'physvols ...'\n"
14296 "\n"
14297 msgstr ""
14298
14299 #. type: textblock
14300 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
14301 msgid ""
14302 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14303 "of physical volumes C<physvols>."
14304 msgstr ""
14305
14306 #. type: =head2
14307 #: ../fish/guestfish-actions.pod:4955
14308 msgid "vglvuuids"
14309 msgstr ""
14310
14311 #. type: verbatim
14312 #: ../fish/guestfish-actions.pod:4957
14313 #, no-wrap
14314 msgid ""
14315 " vglvuuids vgname\n"
14316 "\n"
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
14321 msgid ""
14322 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14323 "volumes created in this volume group."
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4962
14328 msgid ""
14329 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14330 "logical volumes and volume groups."
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:4965
14335 msgid "See also L</vgpvuuids>."
14336 msgstr ""
14337
14338 #. type: =head2
14339 #: ../fish/guestfish-actions.pod:4967
14340 msgid "vgpvuuids"
14341 msgstr ""
14342
14343 #. type: verbatim
14344 #: ../fish/guestfish-actions.pod:4969
14345 #, no-wrap
14346 msgid ""
14347 " vgpvuuids vgname\n"
14348 "\n"
14349 msgstr ""
14350
14351 #. type: textblock
14352 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
14353 msgid ""
14354 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14355 "volumes that this volume group resides on."
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:4974
14360 msgid ""
14361 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14362 "physical volumes and volume groups."
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4977
14367 msgid "See also L</vglvuuids>."
14368 msgstr ""
14369
14370 #. type: =head2
14371 #: ../fish/guestfish-actions.pod:4979
14372 msgid "vgremove"
14373 msgstr ""
14374
14375 #. type: verbatim
14376 #: ../fish/guestfish-actions.pod:4981
14377 #, no-wrap
14378 msgid ""
14379 " vgremove vgname\n"
14380 "\n"
14381 msgstr ""
14382
14383 #. type: textblock
14384 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
14385 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14386 msgstr ""
14387
14388 #. type: textblock
14389 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
14390 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14391 msgstr ""
14392
14393 #. type: =head2
14394 #: ../fish/guestfish-actions.pod:4988
14395 msgid "vgrename"
14396 msgstr ""
14397
14398 #. type: verbatim
14399 #: ../fish/guestfish-actions.pod:4990
14400 #, no-wrap
14401 msgid ""
14402 " vgrename volgroup newvolgroup\n"
14403 "\n"
14404 msgstr ""
14405
14406 #. type: textblock
14407 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
14408 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14409 msgstr ""
14410
14411 #. type: =head2
14412 #: ../fish/guestfish-actions.pod:4994
14413 msgid "vgs"
14414 msgstr ""
14415
14416 #. type: verbatim
14417 #: ../fish/guestfish-actions.pod:4996
14418 #, no-wrap
14419 msgid ""
14420 " vgs\n"
14421 "\n"
14422 msgstr ""
14423
14424 #. type: textblock
14425 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
14426 msgid ""
14427 "List all the volumes groups detected.  This is the equivalent of the "
14428 "L<vgs(8)> command."
14429 msgstr ""
14430
14431 #. type: textblock
14432 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
14433 msgid ""
14434 "This returns a list of just the volume group names that were detected "
14435 "(eg. C<VolGroup00>)."
14436 msgstr ""
14437
14438 #. type: textblock
14439 #: ../fish/guestfish-actions.pod:5004
14440 msgid "See also L</vgs-full>."
14441 msgstr ""
14442
14443 #. type: =head2
14444 #: ../fish/guestfish-actions.pod:5006
14445 msgid "vgs-full"
14446 msgstr ""
14447
14448 #. type: verbatim
14449 #: ../fish/guestfish-actions.pod:5008
14450 #, no-wrap
14451 msgid ""
14452 " vgs-full\n"
14453 "\n"
14454 msgstr ""
14455
14456 #. type: textblock
14457 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
14458 msgid ""
14459 "List all the volumes groups detected.  This is the equivalent of the "
14460 "L<vgs(8)> command.  The \"full\" version includes all fields."
14461 msgstr ""
14462
14463 #. type: =head2
14464 #: ../fish/guestfish-actions.pod:5013
14465 msgid "vgscan"
14466 msgstr ""
14467
14468 #. type: verbatim
14469 #: ../fish/guestfish-actions.pod:5015
14470 #, no-wrap
14471 msgid ""
14472 " vgscan\n"
14473 "\n"
14474 msgstr ""
14475
14476 #. type: textblock
14477 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
14478 msgid ""
14479 "This rescans all block devices and rebuilds the list of LVM physical "
14480 "volumes, volume groups and logical volumes."
14481 msgstr ""
14482
14483 #. type: =head2
14484 #: ../fish/guestfish-actions.pod:5020
14485 msgid "vguuid"
14486 msgstr ""
14487
14488 #. type: verbatim
14489 #: ../fish/guestfish-actions.pod:5022
14490 #, no-wrap
14491 msgid ""
14492 " vguuid vgname\n"
14493 "\n"
14494 msgstr ""
14495
14496 #. type: textblock
14497 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
14498 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14499 msgstr ""
14500
14501 #. type: =head2
14502 #: ../fish/guestfish-actions.pod:5026
14503 msgid "wc-c"
14504 msgstr ""
14505
14506 #. type: verbatim
14507 #: ../fish/guestfish-actions.pod:5028
14508 #, no-wrap
14509 msgid ""
14510 " wc-c path\n"
14511 "\n"
14512 msgstr ""
14513
14514 #. type: textblock
14515 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
14516 msgid ""
14517 "This command counts the characters in a file, using the C<wc -c> external "
14518 "command."
14519 msgstr ""
14520
14521 #. type: =head2
14522 #: ../fish/guestfish-actions.pod:5033
14523 msgid "wc-l"
14524 msgstr ""
14525
14526 #. type: verbatim
14527 #: ../fish/guestfish-actions.pod:5035
14528 #, no-wrap
14529 msgid ""
14530 " wc-l path\n"
14531 "\n"
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
14536 msgid ""
14537 "This command counts the lines in a file, using the C<wc -l> external "
14538 "command."
14539 msgstr ""
14540
14541 #. type: =head2
14542 #: ../fish/guestfish-actions.pod:5040
14543 msgid "wc-w"
14544 msgstr ""
14545
14546 #. type: verbatim
14547 #: ../fish/guestfish-actions.pod:5042
14548 #, no-wrap
14549 msgid ""
14550 " wc-w path\n"
14551 "\n"
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
14556 msgid ""
14557 "This command counts the words in a file, using the C<wc -w> external "
14558 "command."
14559 msgstr ""
14560
14561 #. type: =head2
14562 #: ../fish/guestfish-actions.pod:5047
14563 msgid "write"
14564 msgstr ""
14565
14566 #. type: verbatim
14567 #: ../fish/guestfish-actions.pod:5049
14568 #, no-wrap
14569 msgid ""
14570 " write path content\n"
14571 "\n"
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
14576 msgid ""
14577 "This call creates a file called C<path>.  The content of the file is the "
14578 "string C<content> (which can contain any 8 bit data)."
14579 msgstr ""
14580
14581 #. type: textblock
14582 #: ../fish/guestfish-actions.pod:5054
14583 msgid "See also L</write-append>."
14584 msgstr ""
14585
14586 #. type: =head2
14587 #: ../fish/guestfish-actions.pod:5059
14588 msgid "write-append"
14589 msgstr ""
14590
14591 #. type: verbatim
14592 #: ../fish/guestfish-actions.pod:5061
14593 #, no-wrap
14594 msgid ""
14595 " write-append path content\n"
14596 "\n"
14597 msgstr ""
14598
14599 #. type: textblock
14600 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
14601 msgid ""
14602 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14603 "not exist, then a new file is created."
14604 msgstr ""
14605
14606 #. type: textblock
14607 #: ../fish/guestfish-actions.pod:5066
14608 msgid "See also L</write>."
14609 msgstr ""
14610
14611 #. type: =head2
14612 #: ../fish/guestfish-actions.pod:5071
14613 msgid "write-file"
14614 msgstr ""
14615
14616 #. type: verbatim
14617 #: ../fish/guestfish-actions.pod:5073
14618 #, no-wrap
14619 msgid ""
14620 " write-file path content size\n"
14621 "\n"
14622 msgstr ""
14623
14624 #. type: textblock
14625 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
14626 msgid ""
14627 "This call creates a file called C<path>.  The contents of the file is the "
14628 "string C<content> (which can contain any 8 bit data), with length C<size>."
14629 msgstr ""
14630
14631 #. type: textblock
14632 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
14633 msgid ""
14634 "As a special case, if C<size> is C<0> then the length is calculated using "
14635 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14636 msgstr ""
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
14640 msgid ""
14641 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14642 "I<not> work, even if the length is specified."
14643 msgstr ""
14644
14645 #. type: textblock
14646 #: ../fish/guestfish-actions.pod:5089
14647 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
14648 msgstr ""
14649
14650 #. type: =head2
14651 #: ../fish/guestfish-actions.pod:5096
14652 msgid "zegrep"
14653 msgstr ""
14654
14655 #. type: verbatim
14656 #: ../fish/guestfish-actions.pod:5098
14657 #, no-wrap
14658 msgid ""
14659 " zegrep regex path\n"
14660 "\n"
14661 msgstr ""
14662
14663 #. type: textblock
14664 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
14665 msgid "This calls the external C<zegrep> program and returns the matching lines."
14666 msgstr ""
14667
14668 #. type: =head2
14669 #: ../fish/guestfish-actions.pod:5106
14670 msgid "zegrepi"
14671 msgstr ""
14672
14673 #. type: verbatim
14674 #: ../fish/guestfish-actions.pod:5108
14675 #, no-wrap
14676 msgid ""
14677 " zegrepi regex path\n"
14678 "\n"
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
14683 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14684 msgstr ""
14685
14686 #. type: =head2
14687 #: ../fish/guestfish-actions.pod:5116
14688 msgid "zero"
14689 msgstr ""
14690
14691 #. type: verbatim
14692 #: ../fish/guestfish-actions.pod:5118
14693 #, no-wrap
14694 msgid ""
14695 " zero device\n"
14696 "\n"
14697 msgstr ""
14698
14699 #. type: textblock
14700 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
14701 msgid "This command writes zeroes over the first few blocks of C<device>."
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
14706 msgid ""
14707 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14708 "securely wipe the device).  It should be sufficient to remove any partition "
14709 "tables, filesystem superblocks and so on."
14710 msgstr ""
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141 ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
14714 msgid ""
14715 "If blocks are already zero, then this command avoids writing zeroes.  This "
14716 "prevents the underlying device from becoming non-sparse or growing "
14717 "unnecessarily."
14718 msgstr ""
14719
14720 #. type: textblock
14721 #: ../fish/guestfish-actions.pod:5130
14722 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
14723 msgstr ""
14724
14725 #. type: =head2
14726 #: ../fish/guestfish-actions.pod:5133
14727 msgid "zero-device"
14728 msgstr ""
14729
14730 #. type: verbatim
14731 #: ../fish/guestfish-actions.pod:5135
14732 #, no-wrap
14733 msgid ""
14734 " zero-device device\n"
14735 "\n"
14736 msgstr ""
14737
14738 #. type: textblock
14739 #: ../fish/guestfish-actions.pod:5137
14740 msgid ""
14741 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
14742 "which just zeroes the first few blocks of a device."
14743 msgstr ""
14744
14745 #. type: =head2
14746 #: ../fish/guestfish-actions.pod:5148
14747 msgid "zerofree"
14748 msgstr ""
14749
14750 #. type: verbatim
14751 #: ../fish/guestfish-actions.pod:5150
14752 #, no-wrap
14753 msgid ""
14754 " zerofree device\n"
14755 "\n"
14756 msgstr ""
14757
14758 #. type: textblock
14759 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
14760 msgid ""
14761 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14762 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14763 "possible to compress the filesystem more effectively."
14764 msgstr ""
14765
14766 #. type: textblock
14767 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
14768 msgid "You should B<not> run this program if the filesystem is mounted."
14769 msgstr ""
14770
14771 #. type: textblock
14772 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
14773 msgid ""
14774 "It is possible that using this program can damage the filesystem or data on "
14775 "the filesystem."
14776 msgstr ""
14777
14778 #. type: =head2
14779 #: ../fish/guestfish-actions.pod:5163
14780 msgid "zfgrep"
14781 msgstr ""
14782
14783 #. type: verbatim
14784 #: ../fish/guestfish-actions.pod:5165
14785 #, no-wrap
14786 msgid ""
14787 " zfgrep pattern path\n"
14788 "\n"
14789 msgstr ""
14790
14791 #. type: textblock
14792 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
14793 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14794 msgstr ""
14795
14796 #. type: =head2
14797 #: ../fish/guestfish-actions.pod:5173
14798 msgid "zfgrepi"
14799 msgstr ""
14800
14801 #. type: verbatim
14802 #: ../fish/guestfish-actions.pod:5175
14803 #, no-wrap
14804 msgid ""
14805 " zfgrepi pattern path\n"
14806 "\n"
14807 msgstr ""
14808
14809 #. type: textblock
14810 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
14811 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14812 msgstr ""
14813
14814 #. type: =head2
14815 #: ../fish/guestfish-actions.pod:5183
14816 msgid "zfile"
14817 msgstr ""
14818
14819 #. type: verbatim
14820 #: ../fish/guestfish-actions.pod:5185
14821 #, no-wrap
14822 msgid ""
14823 " zfile meth path\n"
14824 "\n"
14825 msgstr ""
14826
14827 #. type: textblock
14828 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
14829 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14830 msgstr ""
14831
14832 #. type: textblock
14833 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
14834 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14835 msgstr ""
14836
14837 #. type: textblock
14838 #: ../fish/guestfish-actions.pod:5192
14839 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
14840 msgstr ""
14841
14842 #. type: textblock
14843 #: ../fish/guestfish-actions.pod:5195
14844 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
14845 msgstr ""
14846
14847 #. type: =head2
14848 #: ../fish/guestfish-actions.pod:5202
14849 msgid "zgrep"
14850 msgstr ""
14851
14852 #. type: verbatim
14853 #: ../fish/guestfish-actions.pod:5204
14854 #, no-wrap
14855 msgid ""
14856 " zgrep regex path\n"
14857 "\n"
14858 msgstr ""
14859
14860 #. type: textblock
14861 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
14862 msgid "This calls the external C<zgrep> program and returns the matching lines."
14863 msgstr ""
14864
14865 #. type: =head2
14866 #: ../fish/guestfish-actions.pod:5212
14867 msgid "zgrepi"
14868 msgstr ""
14869
14870 #. type: verbatim
14871 #: ../fish/guestfish-actions.pod:5214
14872 #, no-wrap
14873 msgid ""
14874 " zgrepi regex path\n"
14875 "\n"
14876 msgstr ""
14877
14878 #. type: textblock
14879 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
14880 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14881 msgstr ""
14882
14883 #. type: =head2
14884 #: ../fish/guestfish-commands.pod:1
14885 msgid "alloc"
14886 msgstr ""
14887
14888 #. type: =head2
14889 #: ../fish/guestfish-commands.pod:3
14890 msgid "allocate"
14891 msgstr ""
14892
14893 #. type: verbatim
14894 #: ../fish/guestfish-commands.pod:5
14895 #, no-wrap
14896 msgid ""
14897 " alloc filename size\n"
14898 "\n"
14899 msgstr ""
14900
14901 #. type: textblock
14902 #: ../fish/guestfish-commands.pod:7
14903 msgid ""
14904 "This creates an empty (zeroed) file of the given size, and then adds so it "
14905 "can be further examined."
14906 msgstr ""
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
14910 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
14911 msgstr ""
14912
14913 #. type: textblock
14914 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
14915 msgid "Size can be specified using standard suffixes, eg. C<1M>."
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-commands.pod:14
14920 msgid ""
14921 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
14922 "image, see L</PREPARED DISK IMAGES>."
14923 msgstr ""
14924
14925 #. type: =head2
14926 #: ../fish/guestfish-commands.pod:17
14927 msgid "copy-in"
14928 msgstr ""
14929
14930 #. type: verbatim
14931 #: ../fish/guestfish-commands.pod:19
14932 #, no-wrap
14933 msgid ""
14934 " copy-in local [local ...] /remotedir\n"
14935 "\n"
14936 msgstr ""
14937
14938 #. type: textblock
14939 #: ../fish/guestfish-commands.pod:21
14940 msgid ""
14941 "C<copy-in> copies local files or directories recursively into the disk "
14942 "image, placing them in the directory called C</remotedir> (which must "
14943 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
14944 "other commands as necessary."
14945 msgstr ""
14946
14947 #. type: textblock
14948 #: ../fish/guestfish-commands.pod:26
14949 msgid ""
14950 "Multiple local files and directories can be specified, but the last "
14951 "parameter must always be a remote directory.  Wildcards cannot be used."
14952 msgstr ""
14953
14954 #. type: =head2
14955 #: ../fish/guestfish-commands.pod:30
14956 msgid "copy-out"
14957 msgstr ""
14958
14959 #. type: verbatim
14960 #: ../fish/guestfish-commands.pod:32
14961 #, no-wrap
14962 msgid ""
14963 " copy-out remote [remote ...] localdir\n"
14964 "\n"
14965 msgstr ""
14966
14967 #. type: textblock
14968 #: ../fish/guestfish-commands.pod:34
14969 msgid ""
14970 "C<copy-out> copies remote files or directories recursively out of the disk "
14971 "image, placing them on the host disk in a local directory called C<localdir> "
14972 "(which must exist).  This guestfish meta-command turns into a sequence of "
14973 "L</download>, L</tar-out> and other commands as necessary."
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-commands.pod:40
14978 msgid ""
14979 "Multiple remote files and directories can be specified, but the last "
14980 "parameter must always be a local directory.  To download to the current "
14981 "directory, use C<.> as in:"
14982 msgstr ""
14983
14984 #. type: verbatim
14985 #: ../fish/guestfish-commands.pod:44
14986 #, no-wrap
14987 msgid ""
14988 " copy-out /home .\n"
14989 "\n"
14990 msgstr ""
14991
14992 #. type: textblock
14993 #: ../fish/guestfish-commands.pod:46
14994 msgid ""
14995 "Wildcards cannot be used in the ordinary command, but you can use them with "
14996 "the help of L</glob> like this:"
14997 msgstr ""
14998
14999 #. type: verbatim
15000 #: ../fish/guestfish-commands.pod:49
15001 #, no-wrap
15002 msgid ""
15003 " glob copy-out /home/* .\n"
15004 "\n"
15005 msgstr ""
15006
15007 #. type: =head2
15008 #: ../fish/guestfish-commands.pod:51
15009 msgid "display"
15010 msgstr ""
15011
15012 #. type: verbatim
15013 #: ../fish/guestfish-commands.pod:53
15014 #, no-wrap
15015 msgid ""
15016 " display filename\n"
15017 "\n"
15018 msgstr ""
15019
15020 #. type: textblock
15021 #: ../fish/guestfish-commands.pod:55
15022 msgid ""
15023 "Use C<display> (a graphical display program) to display an image file.  It "
15024 "downloads the file, and runs C<display> on it."
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-commands.pod:58
15029 msgid ""
15030 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15031 "environment variable.  For example to use the GNOME display program:"
15032 msgstr ""
15033
15034 #. type: verbatim
15035 #: ../fish/guestfish-commands.pod:61
15036 #, no-wrap
15037 msgid ""
15038 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15039 "\n"
15040 msgstr ""
15041
15042 #. type: textblock
15043 #: ../fish/guestfish-commands.pod:63
15044 msgid "See also L<display(1)>."
15045 msgstr ""
15046
15047 #. type: =head2
15048 #: ../fish/guestfish-commands.pod:65
15049 msgid "echo"
15050 msgstr ""
15051
15052 #. type: verbatim
15053 #: ../fish/guestfish-commands.pod:67
15054 #, no-wrap
15055 msgid ""
15056 " echo [params ...]\n"
15057 "\n"
15058 msgstr ""
15059
15060 #. type: textblock
15061 #: ../fish/guestfish-commands.pod:69
15062 msgid "This echos the parameters to the terminal."
15063 msgstr ""
15064
15065 #. type: =head2
15066 #: ../fish/guestfish-commands.pod:71
15067 msgid "edit"
15068 msgstr ""
15069
15070 #. type: =head2
15071 #: ../fish/guestfish-commands.pod:73
15072 msgid "vi"
15073 msgstr ""
15074
15075 #. type: =head2
15076 #: ../fish/guestfish-commands.pod:75
15077 msgid "emacs"
15078 msgstr ""
15079
15080 #. type: verbatim
15081 #: ../fish/guestfish-commands.pod:77
15082 #, no-wrap
15083 msgid ""
15084 " edit filename\n"
15085 "\n"
15086 msgstr ""
15087
15088 #. type: textblock
15089 #: ../fish/guestfish-commands.pod:79
15090 msgid ""
15091 "This is used to edit a file.  It downloads the file, edits it locally using "
15092 "your editor, then uploads the result."
15093 msgstr ""
15094
15095 #. type: textblock
15096 #: ../fish/guestfish-commands.pod:82
15097 msgid ""
15098 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15099 "or C<emacs> you will get those corresponding editors."
15100 msgstr ""
15101
15102 #. type: =head2
15103 #: ../fish/guestfish-commands.pod:86
15104 msgid "glob"
15105 msgstr ""
15106
15107 #. type: verbatim
15108 #: ../fish/guestfish-commands.pod:88
15109 #, no-wrap
15110 msgid ""
15111 " glob command args...\n"
15112 "\n"
15113 msgstr ""
15114
15115 #. type: textblock
15116 #: ../fish/guestfish-commands.pod:90
15117 msgid ""
15118 "Expand wildcards in any paths in the args list, and run C<command> "
15119 "repeatedly on each matching path."
15120 msgstr ""
15121
15122 #. type: textblock
15123 #: ../fish/guestfish-commands.pod:93
15124 msgid "See L</WILDCARDS AND GLOBBING>."
15125 msgstr ""
15126
15127 #. type: =head2
15128 #: ../fish/guestfish-commands.pod:95
15129 msgid "hexedit"
15130 msgstr ""
15131
15132 #. type: verbatim
15133 #: ../fish/guestfish-commands.pod:97
15134 #, no-wrap
15135 msgid ""
15136 " hexedit <filename|device>\n"
15137 " hexedit <filename|device> <max>\n"
15138 " hexedit <filename|device> <start> <max>\n"
15139 "\n"
15140 msgstr ""
15141
15142 #. type: textblock
15143 #: ../fish/guestfish-commands.pod:101
15144 msgid ""
15145 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15146 "device."
15147 msgstr ""
15148
15149 #. type: textblock
15150 #: ../fish/guestfish-commands.pod:104
15151 msgid ""
15152 "This command works by downloading potentially the whole file or device, "
15153 "editing it locally, then uploading it.  If the file or device is large, you "
15154 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15155 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15156 "usual modifiers allowed such as C<1M> (1 megabyte)."
15157 msgstr ""
15158
15159 #. type: textblock
15160 #: ../fish/guestfish-commands.pod:111
15161 msgid "For example to edit the first few sectors of a disk you might do:"
15162 msgstr ""
15163
15164 #. type: verbatim
15165 #: ../fish/guestfish-commands.pod:114
15166 #, no-wrap
15167 msgid ""
15168 " hexedit /dev/sda 1M\n"
15169 "\n"
15170 msgstr ""
15171
15172 #. type: textblock
15173 #: ../fish/guestfish-commands.pod:116
15174 msgid ""
15175 "which would allow you to edit anywhere within the first megabyte of the "
15176 "disk."
15177 msgstr ""
15178
15179 #. type: textblock
15180 #: ../fish/guestfish-commands.pod:119
15181 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15182 msgstr ""
15183
15184 #. type: verbatim
15185 #: ../fish/guestfish-commands.pod:121
15186 #, no-wrap
15187 msgid ""
15188 " hexedit /dev/sda1 0x400 0x400\n"
15189 "\n"
15190 msgstr ""
15191
15192 #. type: textblock
15193 #: ../fish/guestfish-commands.pod:123
15194 msgid "(assuming the superblock is in the standard location)."
15195 msgstr ""
15196
15197 #. type: textblock
15198 #: ../fish/guestfish-commands.pod:125
15199 msgid ""
15200 "This command requires the external L<hexedit(1)> program.  You can specify "
15201 "another program to use by setting the C<HEXEDITOR> environment variable."
15202 msgstr ""
15203
15204 #. type: textblock
15205 #: ../fish/guestfish-commands.pod:129
15206 msgid "See also L</hexdump>."
15207 msgstr ""
15208
15209 #. type: =head2
15210 #: ../fish/guestfish-commands.pod:131
15211 msgid "lcd"
15212 msgstr ""
15213
15214 #. type: verbatim
15215 #: ../fish/guestfish-commands.pod:133
15216 #, no-wrap
15217 msgid ""
15218 " lcd directory\n"
15219 "\n"
15220 msgstr ""
15221
15222 #. type: textblock
15223 #: ../fish/guestfish-commands.pod:135
15224 msgid "Change the local directory, ie. the current directory of guestfish itself."
15225 msgstr ""
15226
15227 #. type: textblock
15228 #: ../fish/guestfish-commands.pod:138
15229 msgid "Note that C<!cd> won't do what you might expect."
15230 msgstr ""
15231
15232 #. type: =head2
15233 #: ../fish/guestfish-commands.pod:140
15234 msgid "man"
15235 msgstr ""
15236
15237 #. type: =head2
15238 #: ../fish/guestfish-commands.pod:142
15239 msgid "manual"
15240 msgstr ""
15241
15242 #. type: verbatim
15243 #: ../fish/guestfish-commands.pod:144
15244 #, no-wrap
15245 msgid ""
15246 "  man\n"
15247 "\n"
15248 msgstr ""
15249
15250 #. type: textblock
15251 #: ../fish/guestfish-commands.pod:146
15252 msgid "Opens the manual page for guestfish."
15253 msgstr ""
15254
15255 #. type: =head2
15256 #: ../fish/guestfish-commands.pod:148
15257 msgid "more"
15258 msgstr ""
15259
15260 #. type: =head2
15261 #: ../fish/guestfish-commands.pod:150
15262 msgid "less"
15263 msgstr ""
15264
15265 #. type: verbatim
15266 #: ../fish/guestfish-commands.pod:152
15267 #, no-wrap
15268 msgid ""
15269 " more filename\n"
15270 "\n"
15271 msgstr ""
15272
15273 #. type: verbatim
15274 #: ../fish/guestfish-commands.pod:154
15275 #, no-wrap
15276 msgid ""
15277 " less filename\n"
15278 "\n"
15279 msgstr ""
15280
15281 #. type: textblock
15282 #: ../fish/guestfish-commands.pod:156
15283 msgid "This is used to view a file."
15284 msgstr ""
15285
15286 #. type: textblock
15287 #: ../fish/guestfish-commands.pod:158
15288 msgid ""
15289 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15290 "C<less> you will get the C<less> command specifically."
15291 msgstr ""
15292
15293 #. type: =head2
15294 #: ../fish/guestfish-commands.pod:161
15295 msgid "reopen"
15296 msgstr ""
15297
15298 #. type: verbatim
15299 #: ../fish/guestfish-commands.pod:163
15300 #, no-wrap
15301 msgid ""
15302 "  reopen\n"
15303 "\n"
15304 msgstr ""
15305
15306 #. type: textblock
15307 #: ../fish/guestfish-commands.pod:165
15308 msgid ""
15309 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15310 "normally, because the handle is closed properly when guestfish exits.  "
15311 "However this is occasionally useful for testing."
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../fish/guestfish-commands.pod:169
15316 msgid "setenv"
15317 msgstr ""
15318
15319 #. type: verbatim
15320 #: ../fish/guestfish-commands.pod:171
15321 #, no-wrap
15322 msgid ""
15323 "  setenv VAR value\n"
15324 "\n"
15325 msgstr ""
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-commands.pod:173
15329 msgid "Set the environment variable C<VAR> to the string C<value>."
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-commands.pod:175
15334 msgid "To print the value of an environment variable use a shell command such as:"
15335 msgstr ""
15336
15337 #. type: verbatim
15338 #: ../fish/guestfish-commands.pod:178
15339 #, no-wrap
15340 msgid ""
15341 " !echo $VAR\n"
15342 "\n"
15343 msgstr ""
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-commands.pod:180
15347 msgid "sparse"
15348 msgstr ""
15349
15350 #. type: verbatim
15351 #: ../fish/guestfish-commands.pod:182
15352 #, no-wrap
15353 msgid ""
15354 " sparse filename size\n"
15355 "\n"
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../fish/guestfish-commands.pod:184
15360 msgid ""
15361 "This creates an empty sparse file of the given size, and then adds so it can "
15362 "be further examined."
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-commands.pod:187
15367 msgid ""
15368 "In all respects it works the same as the L</alloc> command, except that the "
15369 "image file is allocated sparsely, which means that disk blocks are not "
15370 "assigned to the file until they are needed.  Sparse disk files only use "
15371 "space when written to, but they are slower and there is a danger you could "
15372 "run out of real disk space during a write operation."
15373 msgstr ""
15374
15375 #. type: =head2
15376 #: ../fish/guestfish-commands.pod:197
15377 msgid "supported"
15378 msgstr ""
15379
15380 #. type: verbatim
15381 #: ../fish/guestfish-commands.pod:199
15382 #, no-wrap
15383 msgid ""
15384 " supported\n"
15385 "\n"
15386 msgstr ""
15387
15388 #. type: textblock
15389 #: ../fish/guestfish-commands.pod:201
15390 msgid ""
15391 "This command returns a list of the optional groups known to the daemon, and "
15392 "indicates which ones are supported by this build of the libguestfs "
15393 "appliance."
15394 msgstr ""
15395
15396 #. type: textblock
15397 #: ../fish/guestfish-commands.pod:205
15398 msgid "See also L<guestfs(3)/AVAILABILITY>."
15399 msgstr ""
15400
15401 #. type: =head2
15402 #: ../fish/guestfish-commands.pod:207
15403 msgid "time"
15404 msgstr ""
15405
15406 #. type: verbatim
15407 #: ../fish/guestfish-commands.pod:209
15408 #, no-wrap
15409 msgid ""
15410 " time command args...\n"
15411 "\n"
15412 msgstr ""
15413
15414 #. type: textblock
15415 #: ../fish/guestfish-commands.pod:211
15416 msgid ""
15417 "Run the command as usual, but print the elapsed time afterwards.  This can "
15418 "be useful for benchmarking operations."
15419 msgstr ""
15420
15421 #. type: =head2
15422 #: ../fish/guestfish-commands.pod:214
15423 msgid "unsetenv"
15424 msgstr ""
15425
15426 #. type: verbatim
15427 #: ../fish/guestfish-commands.pod:216
15428 #, no-wrap
15429 msgid ""
15430 "  unsetenv VAR\n"
15431 "\n"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-commands.pod:218
15436 msgid "Remove C<VAR> from the environment."
15437 msgstr ""
15438
15439 #. type: textblock
15440 #: ../fish/guestfish.pod:5
15441 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15442 msgstr ""
15443
15444 #. type: verbatim
15445 #: ../fish/guestfish.pod:9
15446 #, no-wrap
15447 msgid ""
15448 " guestfish [--options] [commands]\n"
15449 "\n"
15450 msgstr ""
15451
15452 #. type: verbatim
15453 #: ../fish/guestfish.pod:11
15454 #, no-wrap
15455 msgid ""
15456 " guestfish\n"
15457 "\n"
15458 msgstr ""
15459
15460 #. type: verbatim
15461 #: ../fish/guestfish.pod:13
15462 #, no-wrap
15463 msgid ""
15464 " guestfish [--ro|--rw] -a disk.img\n"
15465 "\n"
15466 msgstr ""
15467
15468 #. type: verbatim
15469 #: ../fish/guestfish.pod:15
15470 #, no-wrap
15471 msgid ""
15472 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15473 "\n"
15474 msgstr ""
15475
15476 #. type: verbatim
15477 #: ../fish/guestfish.pod:17
15478 #, no-wrap
15479 msgid ""
15480 " guestfish -d libvirt-domain\n"
15481 "\n"
15482 msgstr ""
15483
15484 #. type: verbatim
15485 #: ../fish/guestfish.pod:19
15486 #, no-wrap
15487 msgid ""
15488 " guestfish [--ro|--rw] -a disk.img -i\n"
15489 "\n"
15490 msgstr ""
15491
15492 #. type: verbatim
15493 #: ../fish/guestfish.pod:21
15494 #, no-wrap
15495 msgid ""
15496 " guestfish -d libvirt-domain -i\n"
15497 "\n"
15498 msgstr ""
15499
15500 #. type: textblock
15501 #: ../fish/guestfish.pod:25
15502 msgid ""
15503 "Using guestfish in read/write mode on live virtual machines can be "
15504 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15505 "option to use guestfish safely if the disk image or virtual machine might be "
15506 "live."
15507 msgstr ""
15508
15509 #. type: textblock
15510 #: ../fish/guestfish.pod:32
15511 msgid ""
15512 "Guestfish is a shell and command-line tool for examining and modifying "
15513 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15514 "functionality of the guestfs API, see L<guestfs(3)>."
15515 msgstr ""
15516
15517 #. type: textblock
15518 #: ../fish/guestfish.pod:36
15519 msgid ""
15520 "Guestfish gives you structured access to the libguestfs API, from shell "
15521 "scripts or the command line or interactively.  If you want to rescue a "
15522 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15523 "command."
15524 msgstr ""
15525
15526 #. type: =head2
15527 #: ../fish/guestfish.pod:43
15528 msgid "As an interactive shell"
15529 msgstr ""
15530
15531 #. type: verbatim
15532 #: ../fish/guestfish.pod:45
15533 #, no-wrap
15534 msgid ""
15535 " $ guestfish\n"
15536 " \n"
15537 msgstr ""
15538
15539 #. type: verbatim
15540 #: ../fish/guestfish.pod:47
15541 #, no-wrap
15542 msgid ""
15543 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15544 " editing virtual machine filesystems.\n"
15545 " \n"
15546 msgstr ""
15547
15548 #. type: verbatim
15549 #: ../fish/guestfish.pod:50
15550 #, no-wrap
15551 msgid ""
15552 " Type: 'help' for a list of commands\n"
15553 "       'man' to read the manual\n"
15554 "       'quit' to quit the shell\n"
15555 " \n"
15556 msgstr ""
15557
15558 #. type: verbatim
15559 #: ../fish/guestfish.pod:54
15560 #, no-wrap
15561 msgid ""
15562 " ><fs> add-ro disk.img\n"
15563 " ><fs> run\n"
15564 " ><fs> list-filesystems\n"
15565 " /dev/sda1: ext4\n"
15566 " /dev/vg_guest/lv_root: ext4\n"
15567 " /dev/vg_guest/lv_swap: swap\n"
15568 " ><fs> mount /dev/vg_guest/lv_root /\n"
15569 " ><fs> cat /etc/fstab\n"
15570 " # /etc/fstab\n"
15571 " # Created by anaconda\n"
15572 " [...]\n"
15573 " ><fs> exit\n"
15574 "\n"
15575 msgstr ""
15576
15577 #. type: =head2
15578 #: ../fish/guestfish.pod:67
15579 msgid "From shell scripts"
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish.pod:69
15584 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15585 msgstr ""
15586
15587 #. type: verbatim
15588 #: ../fish/guestfish.pod:71
15589 #, no-wrap
15590 msgid ""
15591 " guestfish <<_EOF_\n"
15592 " add disk.img\n"
15593 " run\n"
15594 " mount /dev/vg_guest/lv_root /\n"
15595 " write /etc/motd \"Welcome, new users\"\n"
15596 " _EOF_\n"
15597 "\n"
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish.pod:78
15602 msgid "List the LVM logical volumes in a disk image:"
15603 msgstr ""
15604
15605 #. type: verbatim
15606 #: ../fish/guestfish.pod:80
15607 #, no-wrap
15608 msgid ""
15609 " guestfish -a disk.img --ro <<_EOF_\n"
15610 " run\n"
15611 " lvs\n"
15612 " _EOF_\n"
15613 "\n"
15614 msgstr ""
15615
15616 #. type: textblock
15617 #: ../fish/guestfish.pod:85
15618 msgid "List all the filesystems in a disk image:"
15619 msgstr ""
15620
15621 #. type: verbatim
15622 #: ../fish/guestfish.pod:87
15623 #, no-wrap
15624 msgid ""
15625 " guestfish -a disk.img --ro <<_EOF_\n"
15626 " run\n"
15627 " list-filesystems\n"
15628 " _EOF_\n"
15629 "\n"
15630 msgstr ""
15631
15632 #. type: =head2
15633 #: ../fish/guestfish.pod:92
15634 msgid "On one command line"
15635 msgstr ""
15636
15637 #. type: textblock
15638 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15639 msgid "Update C</etc/resolv.conf> in a guest:"
15640 msgstr ""
15641
15642 #. type: verbatim
15643 #: ../fish/guestfish.pod:96
15644 #, no-wrap
15645 msgid ""
15646 " guestfish \\\n"
15647 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15648 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15649 "\n"
15650 msgstr ""
15651
15652 #. type: textblock
15653 #: ../fish/guestfish.pod:100
15654 msgid "Edit C</boot/grub/grub.conf> interactively:"
15655 msgstr ""
15656
15657 #. type: verbatim
15658 #: ../fish/guestfish.pod:102
15659 #, no-wrap
15660 msgid ""
15661 " guestfish --rw --add disk.img \\\n"
15662 "   --mount /dev/vg_guest/lv_root \\\n"
15663 "   --mount /dev/sda1:/boot \\\n"
15664 "   edit /boot/grub/grub.conf\n"
15665 "\n"
15666 msgstr ""
15667
15668 #. type: =head2
15669 #: ../fish/guestfish.pod:107
15670 msgid "Mount disks automatically"
15671 msgstr ""
15672
15673 #. type: textblock
15674 #: ../fish/guestfish.pod:109
15675 msgid ""
15676 "Use the I<-i> option to automatically mount the disks from a virtual "
15677 "machine:"
15678 msgstr ""
15679
15680 #. type: verbatim
15681 #: ../fish/guestfish.pod:112
15682 #, no-wrap
15683 msgid ""
15684 " guestfish --ro -a disk.img -i cat /etc/group\n"
15685 "\n"
15686 msgstr ""
15687
15688 #. type: verbatim
15689 #: ../fish/guestfish.pod:114
15690 #, no-wrap
15691 msgid ""
15692 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15693 "\n"
15694 msgstr ""
15695
15696 #. type: textblock
15697 #: ../fish/guestfish.pod:116
15698 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15699 msgstr ""
15700
15701 #. type: verbatim
15702 #: ../fish/guestfish.pod:118
15703 #, no-wrap
15704 msgid ""
15705 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15706 "\n"
15707 msgstr ""
15708
15709 #. type: =head2
15710 #: ../fish/guestfish.pod:120
15711 msgid "As a script interpreter"
15712 msgstr ""
15713
15714 #. type: textblock
15715 #: ../fish/guestfish.pod:122
15716 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15717 msgstr ""
15718
15719 #. type: verbatim
15720 #: ../fish/guestfish.pod:124
15721 #, no-wrap
15722 msgid ""
15723 " #!/usr/bin/guestfish -f\n"
15724 " sparse test1.img 100M\n"
15725 " run\n"
15726 " part-disk /dev/sda mbr\n"
15727 " mkfs ext2 /dev/sda1\n"
15728 "\n"
15729 msgstr ""
15730
15731 #. type: =head2
15732 #: ../fish/guestfish.pod:130
15733 msgid "Start with a prepared disk"
15734 msgstr ""
15735
15736 #. type: textblock
15737 #: ../fish/guestfish.pod:132
15738 msgid ""
15739 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15740 "single ext2-formatted partition:"
15741 msgstr ""
15742
15743 #. type: verbatim
15744 #: ../fish/guestfish.pod:135
15745 #, no-wrap
15746 msgid ""
15747 " guestfish -N fs\n"
15748 "\n"
15749 msgstr ""
15750
15751 #. type: textblock
15752 #: ../fish/guestfish.pod:137
15753 msgid "To list what is available do:"
15754 msgstr ""
15755
15756 #. type: verbatim
15757 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
15758 #, no-wrap
15759 msgid ""
15760 " guestfish -N help | less\n"
15761 "\n"
15762 msgstr ""
15763
15764 #. type: =head2
15765 #: ../fish/guestfish.pod:141
15766 msgid "Remote control"
15767 msgstr ""
15768
15769 #. type: verbatim
15770 #: ../fish/guestfish.pod:143
15771 #, no-wrap
15772 msgid ""
15773 " eval \"`guestfish --listen`\"\n"
15774 " guestfish --remote add-ro disk.img\n"
15775 " guestfish --remote run\n"
15776 " guestfish --remote lvs\n"
15777 "\n"
15778 msgstr ""
15779
15780 #. type: textblock
15781 #: ../fish/guestfish.pod:154
15782 msgid "Displays general help on options."
15783 msgstr ""
15784
15785 #. type: =item
15786 #: ../fish/guestfish.pod:158
15787 msgid "B<--cmd-help>"
15788 msgstr ""
15789
15790 #. type: textblock
15791 #: ../fish/guestfish.pod:160
15792 msgid "Lists all available guestfish commands."
15793 msgstr ""
15794
15795 #. type: =item
15796 #: ../fish/guestfish.pod:162
15797 msgid "B<-h cmd>"
15798 msgstr ""
15799
15800 #. type: =item
15801 #: ../fish/guestfish.pod:164
15802 msgid "B<--cmd-help cmd>"
15803 msgstr ""
15804
15805 #. type: textblock
15806 #: ../fish/guestfish.pod:166
15807 msgid "Displays detailed help on a single command C<cmd>."
15808 msgstr ""
15809
15810 #. type: =item
15811 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
15812 msgid "B<-a image>"
15813 msgstr ""
15814
15815 #. type: =item
15816 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
15817 msgid "B<--add image>"
15818 msgstr ""
15819
15820 #. type: textblock
15821 #: ../fish/guestfish.pod:172
15822 msgid "Add a block device or virtual machine image to the shell."
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../fish/guestfish.pod:177
15827 msgid ""
15828 "Using this flag is mostly equivalent to using the C<add> command, with "
15829 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
15830 "the I<--format=...> flag was given."
15831 msgstr ""
15832
15833 #. type: textblock
15834 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
15835 msgid ""
15836 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15837 "URI to use.  The default is to use the default libvirt connection."
15838 msgstr ""
15839
15840 #. type: =item
15841 #: ../fish/guestfish.pod:189
15842 msgid "B<--csh>"
15843 msgstr ""
15844
15845 #. type: textblock
15846 #: ../fish/guestfish.pod:191
15847 msgid ""
15848 "If using the I<--listen> option and a csh-like shell, use this option.  See "
15849 "section L</REMOTE CONTROL AND CSH> below."
15850 msgstr ""
15851
15852 #. type: =item
15853 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
15854 msgid "B<-d libvirt-domain>"
15855 msgstr ""
15856
15857 #. type: =item
15858 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
15859 msgid "B<--domain libvirt-domain>"
15860 msgstr ""
15861
15862 #. type: textblock
15863 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
15864 msgid ""
15865 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15866 "used, then any libvirt domain can be used.  However in write mode, only "
15867 "libvirt domains which are shut down can be named here."
15868 msgstr ""
15869
15870 #. type: textblock
15871 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
15872 msgid "Domain UUIDs can be used instead of names."
15873 msgstr ""
15874
15875 #. type: textblock
15876 #: ../fish/guestfish.pod:204
15877 msgid ""
15878 "Using this flag is mostly equivalent to using the C<add-domain> command, "
15879 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
15880 "if the I<--format:...> flag was given."
15881 msgstr ""
15882
15883 #. type: =item
15884 #: ../fish/guestfish.pod:208
15885 msgid "B<-D>"
15886 msgstr ""
15887
15888 #. type: =item
15889 #: ../fish/guestfish.pod:210
15890 msgid "B<--no-dest-paths>"
15891 msgstr ""
15892
15893 #. type: textblock
15894 #: ../fish/guestfish.pod:212
15895 msgid ""
15896 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15897 "to hit the tab key to complete paths on the guest filesystem, but this "
15898 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15899 "allow this feature to be disabled."
15900 msgstr ""
15901
15902 #. type: textblock
15903 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
15904 msgid ""
15905 "When prompting for keys and passphrases, guestfish normally turns echoing "
15906 "off so you cannot see what you are typing.  If you are not worried about "
15907 "Tempest attacks and there is no one else in the room you can specify this "
15908 "flag to see what you are typing."
15909 msgstr ""
15910
15911 #. type: =item
15912 #: ../fish/guestfish.pod:224
15913 msgid "B<-f file>"
15914 msgstr ""
15915
15916 #. type: =item
15917 #: ../fish/guestfish.pod:226
15918 msgid "B<--file file>"
15919 msgstr ""
15920
15921 #. type: textblock
15922 #: ../fish/guestfish.pod:228
15923 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15924 msgstr ""
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish.pod:231
15928 #, no-wrap
15929 msgid ""
15930 " #!/usr/bin/guestfish -f\n"
15931 "\n"
15932 msgstr ""
15933
15934 #. type: verbatim
15935 #: ../fish/guestfish.pod:244
15936 #, no-wrap
15937 msgid ""
15938 " guestfish --format=raw -a disk.img\n"
15939 "\n"
15940 msgstr ""
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish.pod:248
15944 #, no-wrap
15945 msgid ""
15946 " guestfish --format=raw -a disk.img --format -a another.img\n"
15947 "\n"
15948 msgstr ""
15949
15950 #. type: textblock
15951 #: ../fish/guestfish.pod:253
15952 msgid ""
15953 "If you have untrusted raw-format guest disk images, you should use this "
15954 "option to specify the disk format.  This avoids a possible security problem "
15955 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15956 msgstr ""
15957
15958 #. type: =item
15959 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
15960 msgid "B<--inspector>"
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
15965 msgid ""
15966 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15967 "system and mount filesystems as they would be mounted on the real virtual "
15968 "machine."
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish.pod:266
15973 msgid "Typical usage is either:"
15974 msgstr ""
15975
15976 #. type: verbatim
15977 #: ../fish/guestfish.pod:268
15978 #, no-wrap
15979 msgid ""
15980 " guestfish -d myguest -i\n"
15981 "\n"
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish.pod:270
15986 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15987 msgstr ""
15988
15989 #. type: verbatim
15990 #: ../fish/guestfish.pod:272
15991 #, no-wrap
15992 msgid ""
15993 " guestfish --ro -d myguest -i\n"
15994 "\n"
15995 msgstr ""
15996
15997 #. type: textblock
15998 #: ../fish/guestfish.pod:274
15999 msgid "(for active domains, readonly), or specify the block device directly:"
16000 msgstr ""
16001
16002 #. type: verbatim
16003 #: ../fish/guestfish.pod:276
16004 #, no-wrap
16005 msgid ""
16006 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
16007 "\n"
16008 msgstr ""
16009
16010 #. type: textblock
16011 #: ../fish/guestfish.pod:278
16012 msgid ""
16013 "Note that the command line syntax changed slightly over older versions of "
16014 "guestfish.  You can still use the old syntax:"
16015 msgstr ""
16016
16017 #. type: verbatim
16018 #: ../fish/guestfish.pod:281
16019 #, no-wrap
16020 msgid ""
16021 " guestfish [--ro] -i disk.img\n"
16022 "\n"
16023 msgstr ""
16024
16025 #. type: verbatim
16026 #: ../fish/guestfish.pod:283
16027 #, no-wrap
16028 msgid ""
16029 " guestfish [--ro] -i libvirt-domain\n"
16030 "\n"
16031 msgstr ""
16032
16033 #. type: textblock
16034 #: ../fish/guestfish.pod:285
16035 msgid ""
16036 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16037 "then using other commands to mount the filesystems that were found."
16038 msgstr ""
16039
16040 #. type: =item
16041 #: ../fish/guestfish.pod:294
16042 msgid "B<--listen>"
16043 msgstr ""
16044
16045 #. type: textblock
16046 #: ../fish/guestfish.pod:296
16047 msgid ""
16048 "Fork into the background and listen for remote commands.  See section "
16049 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16050 msgstr ""
16051
16052 #. type: =item
16053 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16054 msgid "B<--live>"
16055 msgstr ""
16056
16057 #. type: textblock
16058 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16059 msgid ""
16060 "Connect to a live virtual machine.  (Experimental, see "
16061 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16062 msgstr ""
16063
16064 #. type: =item
16065 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16066 msgid "B<-m dev[:mountpoint[:options]]>"
16067 msgstr ""
16068
16069 #. type: =item
16070 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16071 msgid "B<--mount dev[:mountpoint[:options]]>"
16072 msgstr ""
16073
16074 #. type: textblock
16075 #: ../fish/guestfish.pod:308
16076 msgid "Mount the named partition or logical volume on the given mountpoint."
16077 msgstr ""
16078
16079 #. type: textblock
16080 #: ../fish/guestfish.pod:310
16081 msgid "If the mountpoint is omitted, it defaults to C</>."
16082 msgstr ""
16083
16084 #. type: textblock
16085 #: ../fish/guestfish.pod:312
16086 msgid "You have to mount something on C</> before most commands will work."
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../fish/guestfish.pod:314
16091 msgid ""
16092 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16093 "launched."
16094 msgstr ""
16095
16096 #. type: textblock
16097 #: ../fish/guestfish.pod:317
16098 msgid ""
16099 "If you don't know what filesystems a disk image contains, you can either run "
16100 "guestfish without this option, then list the partitions, filesystems and LVs "
16101 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16102 "commands), or you can use the L<virt-filesystems(1)> program."
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16107 msgid ""
16108 "The third (and rarely used) part of the mount parameter is the list of mount "
16109 "options used to mount the underlying filesystem.  If this is not given, then "
16110 "the mount options are either the empty string or C<ro> (the latter if the "
16111 "I<--ro> flag is used).  By specifying the mount options, you override this "
16112 "default choice.  Probably the only time you would use this is to enable ACLs "
16113 "and/or extended attributes if the filesystem can support them:"
16114 msgstr ""
16115
16116 #. type: verbatim
16117 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16118 #, no-wrap
16119 msgid ""
16120 " -m /dev/sda1:/:acl,user_xattr\n"
16121 "\n"
16122 msgstr ""
16123
16124 #. type: textblock
16125 #: ../fish/guestfish.pod:333
16126 msgid "Using this flag is equivalent to using the C<mount-options> command."
16127 msgstr ""
16128
16129 #. type: =item
16130 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:352
16131 msgid "B<-n>"
16132 msgstr ""
16133
16134 #. type: =item
16135 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16136 msgid "B<--no-sync>"
16137 msgstr ""
16138
16139 #. type: textblock
16140 #: ../fish/guestfish.pod:339
16141 msgid ""
16142 "Disable autosync.  This is enabled by default.  See the discussion of "
16143 "autosync in the L<guestfs(3)> manpage."
16144 msgstr ""
16145
16146 #. type: =item
16147 #: ../fish/guestfish.pod:342
16148 msgid "B<-N type>"
16149 msgstr ""
16150
16151 #. type: =item
16152 #: ../fish/guestfish.pod:344
16153 msgid "B<--new type>"
16154 msgstr ""
16155
16156 #. type: =item
16157 #: ../fish/guestfish.pod:346
16158 msgid "B<-N help>"
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish.pod:348
16163 msgid ""
16164 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16165 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16166 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16167 "IMAGES> below."
16168 msgstr ""
16169
16170 #. type: =item
16171 #: ../fish/guestfish.pod:353
16172 msgid "B<--progress-bars>"
16173 msgstr ""
16174
16175 #. type: textblock
16176 #: ../fish/guestfish.pod:355
16177 msgid "Enable progress bars, even when guestfish is used non-interactively."
16178 msgstr ""
16179
16180 #. type: textblock
16181 #: ../fish/guestfish.pod:357
16182 msgid ""
16183 "Progress bars are enabled by default when guestfish is used as an "
16184 "interactive shell."
16185 msgstr ""
16186
16187 #. type: =item
16188 #: ../fish/guestfish.pod:360
16189 msgid "B<--no-progress-bars>"
16190 msgstr ""
16191
16192 #. type: textblock
16193 #: ../fish/guestfish.pod:362
16194 msgid "Disable progress bars."
16195 msgstr ""
16196
16197 #. type: =item
16198 #: ../fish/guestfish.pod:364
16199 msgid "B<--remote[=pid]>"
16200 msgstr ""
16201
16202 #. type: textblock
16203 #: ../fish/guestfish.pod:366
16204 msgid ""
16205 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16206 "CONTROL GUESTFISH OVER A SOCKET> below."
16207 msgstr ""
16208
16209 #. type: =item
16210 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16211 msgid "B<-r>"
16212 msgstr ""
16213
16214 #. type: =item
16215 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16216 msgid "B<--ro>"
16217 msgstr ""
16218
16219 #. type: textblock
16220 #: ../fish/guestfish.pod:373
16221 msgid ""
16222 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16223 "mounts are done read-only."
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16228 msgid ""
16229 "The option must always be used if the disk image or virtual machine might be "
16230 "running, and is generally recommended in cases where you don't need write "
16231 "access to the disk."
16232 msgstr ""
16233
16234 #. type: textblock
16235 #: ../fish/guestfish.pod:380
16236 msgid ""
16237 "Note that prepared disk images created with I<-N> are not affected by this "
16238 "option.  Also commands like C<add> are not affected - you have to specify "
16239 "the C<readonly:true> option explicitly if you need it."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish.pod:384
16244 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16245 msgstr ""
16246
16247 #. type: =item
16248 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16249 msgid "B<--selinux>"
16250 msgstr ""
16251
16252 #. type: textblock
16253 #: ../fish/guestfish.pod:388
16254 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16255 msgstr ""
16256
16257 #. type: textblock
16258 #: ../fish/guestfish.pod:394
16259 msgid ""
16260 "Enable very verbose messages.  This is particularly useful if you find a "
16261 "bug."
16262 msgstr ""
16263
16264 #. type: textblock
16265 #: ../fish/guestfish.pod:401
16266 msgid "Display the guestfish / libguestfs version number and exit."
16267 msgstr ""
16268
16269 #. type: =item
16270 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:190
16271 msgid "B<-w>"
16272 msgstr ""
16273
16274 #. type: =item
16275 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:192
16276 msgid "B<--rw>"
16277 msgstr ""
16278
16279 #. type: textblock
16280 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16281 msgid ""
16282 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16283 "mounts are done read-write."
16284 msgstr ""
16285
16286 #. type: textblock
16287 #: ../fish/guestfish.pod:410
16288 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16289 msgstr ""
16290
16291 #. type: textblock
16292 #: ../fish/guestfish.pod:414
16293 msgid "Echo each command before executing it."
16294 msgstr ""
16295
16296 #. type: =head1
16297 #: ../fish/guestfish.pod:418
16298 msgid "COMMANDS ON COMMAND LINE"
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish.pod:420
16303 msgid "Any additional (non-option) arguments are treated as commands to execute."
16304 msgstr ""
16305
16306 #. type: textblock
16307 #: ../fish/guestfish.pod:423
16308 msgid ""
16309 "Commands to execute should be separated by a colon (C<:>), where the colon "
16310 "is a separate parameter.  Thus:"
16311 msgstr ""
16312
16313 #. type: verbatim
16314 #: ../fish/guestfish.pod:426
16315 #, no-wrap
16316 msgid ""
16317 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16318 "\n"
16319 msgstr ""
16320
16321 #. type: textblock
16322 #: ../fish/guestfish.pod:428
16323 msgid ""
16324 "If there are no additional arguments, then we enter a shell, either an "
16325 "interactive shell with a prompt (if the input is a terminal) or a "
16326 "non-interactive shell."
16327 msgstr ""
16328
16329 #. type: textblock
16330 #: ../fish/guestfish.pod:432
16331 msgid ""
16332 "In either command line mode or non-interactive shell, the first command that "
16333 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16334 "prompt) if a command fails, you can continue to enter commands."
16335 msgstr ""
16336
16337 #. type: =head1
16338 #: ../fish/guestfish.pod:437
16339 msgid "USING launch (OR run)"
16340 msgstr ""
16341
16342 #. type: textblock
16343 #: ../fish/guestfish.pod:439
16344 msgid ""
16345 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16346 "then launch it, then mount any disks you need, and finally issue "
16347 "actions/commands.  So the general order of the day is:"
16348 msgstr ""
16349
16350 #. type: textblock
16351 #: ../fish/guestfish.pod:447
16352 msgid "add or -a/--add"
16353 msgstr ""
16354
16355 #. type: textblock
16356 #: ../fish/guestfish.pod:451
16357 msgid "launch (aka run)"
16358 msgstr ""
16359
16360 #. type: textblock
16361 #: ../fish/guestfish.pod:455
16362 msgid "mount or -m/--mount"
16363 msgstr ""
16364
16365 #. type: textblock
16366 #: ../fish/guestfish.pod:459
16367 msgid "any other commands"
16368 msgstr ""
16369
16370 #. type: textblock
16371 #: ../fish/guestfish.pod:463
16372 msgid ""
16373 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16374 "guest before mounting or performing any other commands."
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../fish/guestfish.pod:466
16379 msgid ""
16380 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16381 "I<--new> options were given then C<run> is done automatically, simply "
16382 "because guestfish can't perform the action you asked for without doing this."
16383 msgstr ""
16384
16385 #. type: =head1
16386 #: ../fish/guestfish.pod:471
16387 msgid "OPENING DISKS FOR READ AND WRITE"
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish.pod:473
16392 msgid ""
16393 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16394 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16395 "I<-i> and I<-m> open disk images read-only or for writing."
16396 msgstr ""
16397
16398 #. type: textblock
16399 #: ../fish/guestfish.pod:478
16400 msgid ""
16401 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16402 "opening disk images supplied on the command line for write.  To open a disk "
16403 "image read-only you have to do I<-a image --ro>."
16404 msgstr ""
16405
16406 #. type: textblock
16407 #: ../fish/guestfish.pod:482
16408 msgid ""
16409 "This matters: If you accidentally open a live VM disk image writable then "
16410 "you will cause irreversible disk corruption."
16411 msgstr ""
16412
16413 #. type: textblock
16414 #: ../fish/guestfish.pod:485
16415 msgid ""
16416 "In a future libguestfs we intend to change the default the other way.  Disk "
16417 "images will be opened read-only.  You will have to either specify "
16418 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16419 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16420 "access for disk images specified by those other command line options."
16421 msgstr ""
16422
16423 #. type: textblock
16424 #: ../fish/guestfish.pod:492
16425 msgid ""
16426 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16427 "which does nothing (it is already the default).  However it is highly "
16428 "recommended that you use this option to indicate that you need write access, "
16429 "and prepare your scripts for the day when this option will be required for "
16430 "write access."
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../fish/guestfish.pod:498
16435 msgid ""
16436 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16437 "other libguestfs program apart from guestfish and guestmount."
16438 msgstr ""
16439
16440 #. type: =head1
16441 #: ../fish/guestfish.pod:501
16442 msgid "QUOTING"
16443 msgstr ""
16444
16445 #. type: textblock
16446 #: ../fish/guestfish.pod:503
16447 msgid ""
16448 "You can quote ordinary parameters using either single or double quotes.  For "
16449 "example:"
16450 msgstr ""
16451
16452 #. type: verbatim
16453 #: ../fish/guestfish.pod:506
16454 #, no-wrap
16455 msgid ""
16456 " add \"file with a space.img\"\n"
16457 "\n"
16458 msgstr ""
16459
16460 #. type: verbatim
16461 #: ../fish/guestfish.pod:508
16462 #, no-wrap
16463 msgid ""
16464 " rm '/file name'\n"
16465 "\n"
16466 msgstr ""
16467
16468 #. type: verbatim
16469 #: ../fish/guestfish.pod:510
16470 #, no-wrap
16471 msgid ""
16472 " rm '/\"'\n"
16473 "\n"
16474 msgstr ""
16475
16476 #. type: textblock
16477 #: ../fish/guestfish.pod:512
16478 msgid ""
16479 "A few commands require a list of strings to be passed.  For these, use a "
16480 "whitespace-separated list, enclosed in quotes.  Strings containing "
16481 "whitespace to be passed through must be enclosed in single quotes.  A "
16482 "literal single quote must be escaped with a backslash."
16483 msgstr ""
16484
16485 #. type: verbatim
16486 #: ../fish/guestfish.pod:517
16487 #, no-wrap
16488 msgid ""
16489 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16490 " command \"/bin/echo 'foo      bar'\"\n"
16491 " command \"/bin/echo \\'foo\\'\"\n"
16492 "\n"
16493 msgstr ""
16494
16495 #. type: =head2
16496 #: ../fish/guestfish.pod:521
16497 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16498 msgstr ""
16499
16500 #. type: textblock
16501 #: ../fish/guestfish.pod:523
16502 msgid ""
16503 "In double-quoted arguments (only) use backslash to insert special "
16504 "characters:"
16505 msgstr ""
16506
16507 #. type: =item
16508 #: ../fish/guestfish.pod:528
16509 msgid "C<\\a>"
16510 msgstr ""
16511
16512 #. type: textblock
16513 #: ../fish/guestfish.pod:530
16514 msgid "Alert (bell) character."
16515 msgstr ""
16516
16517 #. type: =item
16518 #: ../fish/guestfish.pod:532
16519 msgid "C<\\b>"
16520 msgstr ""
16521
16522 #. type: textblock
16523 #: ../fish/guestfish.pod:534
16524 msgid "Backspace character."
16525 msgstr ""
16526
16527 #. type: =item
16528 #: ../fish/guestfish.pod:536
16529 msgid "C<\\f>"
16530 msgstr ""
16531
16532 #. type: textblock
16533 #: ../fish/guestfish.pod:538
16534 msgid "Form feed character."
16535 msgstr ""
16536
16537 #. type: =item
16538 #: ../fish/guestfish.pod:540
16539 msgid "C<\\n>"
16540 msgstr ""
16541
16542 #. type: textblock
16543 #: ../fish/guestfish.pod:542
16544 msgid "Newline character."
16545 msgstr ""
16546
16547 #. type: =item
16548 #: ../fish/guestfish.pod:544
16549 msgid "C<\\r>"
16550 msgstr ""
16551
16552 #. type: textblock
16553 #: ../fish/guestfish.pod:546
16554 msgid "Carriage return character."
16555 msgstr ""
16556
16557 #. type: =item
16558 #: ../fish/guestfish.pod:548
16559 msgid "C<\\t>"
16560 msgstr ""
16561
16562 #. type: textblock
16563 #: ../fish/guestfish.pod:550
16564 msgid "Horizontal tab character."
16565 msgstr ""
16566
16567 #. type: =item
16568 #: ../fish/guestfish.pod:552
16569 msgid "C<\\v>"
16570 msgstr ""
16571
16572 #. type: textblock
16573 #: ../fish/guestfish.pod:554
16574 msgid "Vertical tab character."
16575 msgstr ""
16576
16577 #. type: =item
16578 #: ../fish/guestfish.pod:556
16579 msgid "C<\\\">"
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish.pod:558
16584 msgid "A literal double quote character."
16585 msgstr ""
16586
16587 #. type: =item
16588 #: ../fish/guestfish.pod:560
16589 msgid "C<\\ooo>"
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish.pod:562
16594 msgid ""
16595 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16596 "(unlike C)."
16597 msgstr ""
16598
16599 #. type: =item
16600 #: ../fish/guestfish.pod:565
16601 msgid "C<\\xhh>"
16602 msgstr ""
16603
16604 #. type: textblock
16605 #: ../fish/guestfish.pod:567
16606 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16607 msgstr ""
16608
16609 #. type: textblock
16610 #: ../fish/guestfish.pod:570
16611 msgid ""
16612 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16613 "strings."
16614 msgstr ""
16615
16616 #. type: =item
16617 #: ../fish/guestfish.pod:573
16618 msgid "C<\\\\>"
16619 msgstr ""
16620
16621 #. type: textblock
16622 #: ../fish/guestfish.pod:575
16623 msgid "A literal backslash character."
16624 msgstr ""
16625
16626 #. type: =head1
16627 #: ../fish/guestfish.pod:579
16628 msgid "OPTIONAL ARGUMENTS"
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish.pod:581
16633 msgid ""
16634 "Some commands take optional arguments.  These arguments appear in this "
16635 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../fish/guestfish.pod:585
16640 #, no-wrap
16641 msgid ""
16642 " add-drive-opts filename\n"
16643 "\n"
16644 msgstr ""
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish.pod:587
16648 #, no-wrap
16649 msgid ""
16650 " add-drive-opts filename readonly:true\n"
16651 "\n"
16652 msgstr ""
16653
16654 #. type: verbatim
16655 #: ../fish/guestfish.pod:589
16656 #, no-wrap
16657 msgid ""
16658 " add-drive-opts filename format:qcow2 readonly:false\n"
16659 "\n"
16660 msgstr ""
16661
16662 #. type: textblock
16663 #: ../fish/guestfish.pod:591
16664 msgid ""
16665 "Each optional argument can appear at most once.  All optional arguments must "
16666 "appear after the required ones."
16667 msgstr ""
16668
16669 #. type: =head1
16670 #: ../fish/guestfish.pod:594
16671 msgid "NUMBERS"
16672 msgstr ""
16673
16674 #. type: textblock
16675 #: ../fish/guestfish.pod:596
16676 msgid "This section applies to all commands which can take integers as parameters."
16677 msgstr ""
16678
16679 #. type: =head2
16680 #: ../fish/guestfish.pod:599
16681 msgid "SIZE SUFFIX"
16682 msgstr ""
16683
16684 #. type: textblock
16685 #: ../fish/guestfish.pod:601
16686 msgid ""
16687 "When the command takes a parameter measured in bytes, you can use one of the "
16688 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16689 msgstr ""
16690
16691 #. type: =item
16692 #: ../fish/guestfish.pod:607
16693 msgid "B<k> or B<K> or B<KiB>"
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish.pod:609
16698 msgid "The size in kilobytes (multiplied by 1024)."
16699 msgstr ""
16700
16701 #. type: =item
16702 #: ../fish/guestfish.pod:611
16703 msgid "B<KB>"
16704 msgstr ""
16705
16706 #. type: textblock
16707 #: ../fish/guestfish.pod:613
16708 msgid "The size in SI 1000 byte units."
16709 msgstr ""
16710
16711 #. type: =item
16712 #: ../fish/guestfish.pod:615
16713 msgid "B<M> or B<MiB>"
16714 msgstr ""
16715
16716 #. type: textblock
16717 #: ../fish/guestfish.pod:617
16718 msgid "The size in megabytes (multiplied by 1048576)."
16719 msgstr ""
16720
16721 #. type: =item
16722 #: ../fish/guestfish.pod:619
16723 msgid "B<MB>"
16724 msgstr ""
16725
16726 #. type: textblock
16727 #: ../fish/guestfish.pod:621
16728 msgid "The size in SI 1000000 byte units."
16729 msgstr ""
16730
16731 #. type: =item
16732 #: ../fish/guestfish.pod:623
16733 msgid "B<G> or B<GiB>"
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish.pod:625
16738 msgid "The size in gigabytes (multiplied by 2**30)."
16739 msgstr ""
16740
16741 #. type: =item
16742 #: ../fish/guestfish.pod:627
16743 msgid "B<GB>"
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish.pod:629
16748 msgid "The size in SI 10**9 byte units."
16749 msgstr ""
16750
16751 #. type: =item
16752 #: ../fish/guestfish.pod:631
16753 msgid "B<T> or B<TiB>"
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish.pod:633
16758 msgid "The size in terabytes (multiplied by 2**40)."
16759 msgstr ""
16760
16761 #. type: =item
16762 #: ../fish/guestfish.pod:635
16763 msgid "B<TB>"
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../fish/guestfish.pod:637
16768 msgid "The size in SI 10**12 byte units."
16769 msgstr ""
16770
16771 #. type: =item
16772 #: ../fish/guestfish.pod:639
16773 msgid "B<P> or B<PiB>"
16774 msgstr ""
16775
16776 #. type: textblock
16777 #: ../fish/guestfish.pod:641
16778 msgid "The size in petabytes (multiplied by 2**50)."
16779 msgstr ""
16780
16781 #. type: =item
16782 #: ../fish/guestfish.pod:643
16783 msgid "B<PB>"
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish.pod:645
16788 msgid "The size in SI 10**15 byte units."
16789 msgstr ""
16790
16791 #. type: =item
16792 #: ../fish/guestfish.pod:647
16793 msgid "B<E> or B<EiB>"
16794 msgstr ""
16795
16796 #. type: textblock
16797 #: ../fish/guestfish.pod:649
16798 msgid "The size in exabytes (multiplied by 2**60)."
16799 msgstr ""
16800
16801 #. type: =item
16802 #: ../fish/guestfish.pod:651
16803 msgid "B<EB>"
16804 msgstr ""
16805
16806 #. type: textblock
16807 #: ../fish/guestfish.pod:653
16808 msgid "The size in SI 10**18 byte units."
16809 msgstr ""
16810
16811 #. type: =item
16812 #: ../fish/guestfish.pod:655
16813 msgid "B<Z> or B<ZiB>"
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish.pod:657
16818 msgid "The size in zettabytes (multiplied by 2**70)."
16819 msgstr ""
16820
16821 #. type: =item
16822 #: ../fish/guestfish.pod:659
16823 msgid "B<ZB>"
16824 msgstr ""
16825
16826 #. type: textblock
16827 #: ../fish/guestfish.pod:661
16828 msgid "The size in SI 10**21 byte units."
16829 msgstr ""
16830
16831 #. type: =item
16832 #: ../fish/guestfish.pod:663
16833 msgid "B<Y> or B<YiB>"
16834 msgstr ""
16835
16836 #. type: textblock
16837 #: ../fish/guestfish.pod:665
16838 msgid "The size in yottabytes (multiplied by 2**80)."
16839 msgstr ""
16840
16841 #. type: =item
16842 #: ../fish/guestfish.pod:667
16843 msgid "B<YB>"
16844 msgstr ""
16845
16846 #. type: textblock
16847 #: ../fish/guestfish.pod:669
16848 msgid "The size in SI 10**24 byte units."
16849 msgstr ""
16850
16851 #. type: verbatim
16852 #: ../fish/guestfish.pod:675
16853 #, no-wrap
16854 msgid ""
16855 " truncate-size /file 1G\n"
16856 "\n"
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish.pod:677
16861 msgid "would truncate the file to 1 gigabyte."
16862 msgstr ""
16863
16864 #. type: textblock
16865 #: ../fish/guestfish.pod:679
16866 msgid ""
16867 "Be careful because a few commands take sizes in kilobytes or megabytes "
16868 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16869 "Adding a suffix will probably not do what you expect."
16870 msgstr ""
16871
16872 #. type: =head2
16873 #: ../fish/guestfish.pod:683
16874 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16875 msgstr ""
16876
16877 #. type: textblock
16878 #: ../fish/guestfish.pod:685
16879 msgid ""
16880 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16881 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16882 msgstr ""
16883
16884 #. type: verbatim
16885 #: ../fish/guestfish.pod:688
16886 #, no-wrap
16887 msgid ""
16888 " 1234      decimal number 1234\n"
16889 " 02322     octal number, equivalent to decimal 1234\n"
16890 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16891 "\n"
16892 msgstr ""
16893
16894 #. type: textblock
16895 #: ../fish/guestfish.pod:692
16896 msgid ""
16897 "When using the C<chmod> command, you almost always want to specify an octal "
16898 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16899 "L<chmod(1)> program):"
16900 msgstr ""
16901
16902 #. type: verbatim
16903 #: ../fish/guestfish.pod:696
16904 #, no-wrap
16905 msgid ""
16906 " chmod 0777 /public  # OK\n"
16907 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16908 "\n"
16909 msgstr ""
16910
16911 #. type: textblock
16912 #: ../fish/guestfish.pod:699
16913 msgid ""
16914 "Commands that return numbers usually print them in decimal, but some "
16915 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16916 "octal, preceeded by C<0>)."
16917 msgstr ""
16918
16919 #. type: =head1
16920 #: ../fish/guestfish.pod:703
16921 msgid "WILDCARDS AND GLOBBING"
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../fish/guestfish.pod:705
16926 msgid ""
16927 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16928 "(globbing) by default.  So for example the following will not do what you "
16929 "expect:"
16930 msgstr ""
16931
16932 #. type: verbatim
16933 #: ../fish/guestfish.pod:709
16934 #, no-wrap
16935 msgid ""
16936 " rm-rf /home/*\n"
16937 "\n"
16938 msgstr ""
16939
16940 #. type: textblock
16941 #: ../fish/guestfish.pod:711
16942 msgid ""
16943 "Assuming you don't have a directory called literally C</home/*> then the "
16944 "above command will return an error."
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish.pod:714
16949 msgid "To perform wildcard expansion, use the C<glob> command."
16950 msgstr ""
16951
16952 #. type: verbatim
16953 #: ../fish/guestfish.pod:716
16954 #, no-wrap
16955 msgid ""
16956 " glob rm-rf /home/*\n"
16957 "\n"
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish.pod:718
16962 msgid ""
16963 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16964 "many times), equivalent to:"
16965 msgstr ""
16966
16967 #. type: verbatim
16968 #: ../fish/guestfish.pod:721
16969 #, no-wrap
16970 msgid ""
16971 " rm-rf /home/jim\n"
16972 " rm-rf /home/joe\n"
16973 " rm-rf /home/mary\n"
16974 "\n"
16975 msgstr ""
16976
16977 #. type: textblock
16978 #: ../fish/guestfish.pod:725
16979 msgid "C<glob> only works on simple guest paths and not on device names."
16980 msgstr ""
16981
16982 #. type: textblock
16983 #: ../fish/guestfish.pod:727
16984 msgid ""
16985 "If you have several parameters, each containing a wildcard, then glob will "
16986 "perform a Cartesian product."
16987 msgstr ""
16988
16989 #. type: =head1
16990 #: ../fish/guestfish.pod:730
16991 msgid "COMMENTS"
16992 msgstr ""
16993
16994 #. type: textblock
16995 #: ../fish/guestfish.pod:732
16996 msgid ""
16997 "Any line which starts with a I<#> character is treated as a comment and "
16998 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16999 "a command.  For example:"
17000 msgstr ""
17001
17002 #. type: verbatim
17003 #: ../fish/guestfish.pod:736
17004 #, no-wrap
17005 msgid ""
17006 " # this is a comment\n"
17007 "         # this is a comment\n"
17008 " foo # NOT a comment\n"
17009 "\n"
17010 msgstr ""
17011
17012 #. type: textblock
17013 #: ../fish/guestfish.pod:740
17014 msgid "Blank lines are also ignored."
17015 msgstr ""
17016
17017 #. type: =head1
17018 #: ../fish/guestfish.pod:742
17019 msgid "RUNNING COMMANDS LOCALLY"
17020 msgstr ""
17021
17022 #. type: textblock
17023 #: ../fish/guestfish.pod:744
17024 msgid ""
17025 "Any line which starts with a I<!> character is treated as a command sent to "
17026 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17027 msgstr ""
17028
17029 #. type: verbatim
17030 #: ../fish/guestfish.pod:748
17031 #, no-wrap
17032 msgid ""
17033 " !mkdir local\n"
17034 " tgz-out /remote local/remote-data.tar.gz\n"
17035 "\n"
17036 msgstr ""
17037
17038 #. type: textblock
17039 #: ../fish/guestfish.pod:751
17040 msgid ""
17041 "will create a directory C<local> on the host, and then export the contents "
17042 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17043 "(See C<tgz-out>)."
17044 msgstr ""
17045
17046 #. type: textblock
17047 #: ../fish/guestfish.pod:755
17048 msgid ""
17049 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17050 "effect, due to the way that subprocesses work in Unix."
17051 msgstr ""
17052
17053 #. type: =head2
17054 #: ../fish/guestfish.pod:758
17055 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17056 msgstr ""
17057
17058 #. type: textblock
17059 #: ../fish/guestfish.pod:760
17060 msgid ""
17061 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17062 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17063 "and executed as guestfish commands."
17064 msgstr ""
17065
17066 #. type: textblock
17067 #: ../fish/guestfish.pod:764
17068 msgid ""
17069 "Thus you can use shell script to construct arbitrary guestfish commands "
17070 "which are then parsed by guestfish."
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../fish/guestfish.pod:767
17075 msgid ""
17076 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17077 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17078 "if we use a shell script to create the guestfish commands for us:"
17079 msgstr ""
17080
17081 #. type: verbatim
17082 #: ../fish/guestfish.pod:772
17083 #, no-wrap
17084 msgid ""
17085 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17086 "\n"
17087 msgstr ""
17088
17089 #. type: textblock
17090 #: ../fish/guestfish.pod:774
17091 msgid "or with names like C</foo.001>:"
17092 msgstr ""
17093
17094 #. type: verbatim
17095 #: ../fish/guestfish.pod:776
17096 #, no-wrap
17097 msgid ""
17098 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17099 "\n"
17100 msgstr ""
17101
17102 #. type: textblock
17103 #: ../fish/guestfish.pod:778
17104 msgid ""
17105 "When using guestfish interactively it can be helpful to just run the shell "
17106 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17107 "ordinary I<!> local command), see what guestfish commands it would run, and "
17108 "when you are happy with those prepend the C<E<lt>> character to run the "
17109 "guestfish commands for real."
17110 msgstr ""
17111
17112 #. type: =head1
17113 #: ../fish/guestfish.pod:784
17114 msgid "PIPES"
17115 msgstr ""
17116
17117 #. type: textblock
17118 #: ../fish/guestfish.pod:786
17119 msgid ""
17120 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17121 "command (a guestfish command) to the second command (any host command).  For "
17122 "example:"
17123 msgstr ""
17124
17125 #. type: verbatim
17126 #: ../fish/guestfish.pod:790
17127 #, no-wrap
17128 msgid ""
17129 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17130 "\n"
17131 msgstr ""
17132
17133 #. type: textblock
17134 #: ../fish/guestfish.pod:792
17135 msgid ""
17136 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17137 "program).  The above command would list all accounts in the guest filesystem "
17138 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17139 msgstr ""
17140
17141 #. type: verbatim
17142 #: ../fish/guestfish.pod:797
17143 #, no-wrap
17144 msgid ""
17145 " hexdump /bin/ls | head\n"
17146 " list-devices | tail -1\n"
17147 " tgz-out / - | tar ztf -\n"
17148 "\n"
17149 msgstr ""
17150
17151 #. type: textblock
17152 #: ../fish/guestfish.pod:801
17153 msgid ""
17154 "The space before the pipe symbol is required, any space after the pipe "
17155 "symbol is optional.  Everything after the pipe symbol is just passed "
17156 "straight to the host shell, so it can contain redirections, globs and "
17157 "anything else that makes sense on the host side."
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish.pod:806
17162 msgid ""
17163 "To use a literal argument which begins with a pipe symbol, you have to quote "
17164 "it, eg:"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish.pod:809
17169 #, no-wrap
17170 msgid ""
17171 " echo \"|\"\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: =head1
17176 #: ../fish/guestfish.pod:811
17177 msgid "HOME DIRECTORIES"
17178 msgstr ""
17179
17180 #. type: textblock
17181 #: ../fish/guestfish.pod:813
17182 msgid ""
17183 "If a parameter starts with the character C<~> then the tilde may be expanded "
17184 "as a home directory path (either C<~> for the current user's home directory, "
17185 "or C<~user> for another user)."
17186 msgstr ""
17187
17188 #. type: textblock
17189 #: ../fish/guestfish.pod:817
17190 msgid ""
17191 "Note that home directory expansion happens for users known I<on the host>, "
17192 "not in the guest filesystem."
17193 msgstr ""
17194
17195 #. type: textblock
17196 #: ../fish/guestfish.pod:820
17197 msgid ""
17198 "To use a literal argument which begins with a tilde, you have to quote it, "
17199 "eg:"
17200 msgstr ""
17201
17202 #. type: verbatim
17203 #: ../fish/guestfish.pod:823
17204 #, no-wrap
17205 msgid ""
17206 " echo \"~\"\n"
17207 "\n"
17208 msgstr ""
17209
17210 #. type: =head2
17211 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17212 msgid "ENCRYPTED DISKS"
17213 msgstr ""
17214
17215 #. type: textblock
17216 #: ../fish/guestfish.pod:827
17217 msgid ""
17218 "Libguestfs has some support for Linux guests encrypted according to the "
17219 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17220 "disk encryption systems used by modern Linux guests.  Currently only "
17221 "LVM-on-LUKS is supported."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish.pod:832
17226 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17227 msgstr ""
17228
17229 #. type: verbatim
17230 #: ../fish/guestfish.pod:834
17231 #, no-wrap
17232 msgid ""
17233 " ><fs> vfs-type /dev/sda2\n"
17234 " crypto_LUKS\n"
17235 "\n"
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish.pod:837
17240 msgid ""
17241 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17242 "device called C</dev/mapper/luksdev>."
17243 msgstr ""
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish.pod:840
17247 #, no-wrap
17248 msgid ""
17249 " ><fs> luks-open /dev/sda2 luksdev\n"
17250 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17251 "\n"
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish.pod:843
17256 msgid ""
17257 "Finally you have to tell LVM to scan for volume groups on the newly created "
17258 "mapper device:"
17259 msgstr ""
17260
17261 #. type: verbatim
17262 #: ../fish/guestfish.pod:846
17263 #, no-wrap
17264 msgid ""
17265 " vgscan\n"
17266 " vg-activate-all true\n"
17267 "\n"
17268 msgstr ""
17269
17270 #. type: textblock
17271 #: ../fish/guestfish.pod:849
17272 msgid "The logical volume(s) can now be mounted in the usual way."
17273 msgstr ""
17274
17275 #. type: textblock
17276 #: ../fish/guestfish.pod:851
17277 msgid ""
17278 "Before closing a LUKS device you must unmount any logical volumes on it and "
17279 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17280 "one.  Then you can close the mapper device:"
17281 msgstr ""
17282
17283 #. type: verbatim
17284 #: ../fish/guestfish.pod:855
17285 #, no-wrap
17286 msgid ""
17287 " vg-activate false /dev/VG\n"
17288 " luks-close /dev/mapper/luksdev\n"
17289 "\n"
17290 msgstr ""
17291
17292 #. type: textblock
17293 #: ../fish/guestfish.pod:860
17294 msgid ""
17295 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17296 "letters and paths (with some limitations).  The following commands are "
17297 "equivalent:"
17298 msgstr ""
17299
17300 #. type: verbatim
17301 #: ../fish/guestfish.pod:864
17302 #, no-wrap
17303 msgid ""
17304 " file /WINDOWS/system32/config/system.LOG\n"
17305 "\n"
17306 msgstr ""
17307
17308 #. type: verbatim
17309 #: ../fish/guestfish.pod:866
17310 #, no-wrap
17311 msgid ""
17312 " file win:\\windows\\system32\\config\\system.log\n"
17313 "\n"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../fish/guestfish.pod:868
17318 #, no-wrap
17319 msgid ""
17320 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish.pod:870
17326 msgid ""
17327 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17328 "where the drive is mounted, prepending that to the path, changing all "
17329 "backslash characters to forward slash, then resolving the result using "
17330 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17331 "then the parameter might be rewritten like this:"
17332 msgstr ""
17333
17334 #. type: verbatim
17335 #: ../fish/guestfish.pod:876
17336 #, no-wrap
17337 msgid ""
17338 " win:e:\\foo\\bar => /e/FOO/bar\n"
17339 "\n"
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish.pod:878
17344 msgid "This only works in argument positions that expect a path."
17345 msgstr ""
17346
17347 #. type: =head1
17348 #: ../fish/guestfish.pod:880
17349 msgid "UPLOADING AND DOWNLOADING FILES"
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish.pod:882
17354 msgid ""
17355 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17356 "others which upload from or download to a local file, you can use the "
17357 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17358 msgstr ""
17359
17360 #. type: verbatim
17361 #: ../fish/guestfish.pod:886
17362 #, no-wrap
17363 msgid ""
17364 " upload - /foo\n"
17365 "\n"
17366 msgstr ""
17367
17368 #. type: textblock
17369 #: ../fish/guestfish.pod:888
17370 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17371 msgstr ""
17372
17373 #. type: verbatim
17374 #: ../fish/guestfish.pod:891
17375 #, no-wrap
17376 msgid ""
17377 " tar-out /etc - | tar tf -\n"
17378 "\n"
17379 msgstr ""
17380
17381 #. type: textblock
17382 #: ../fish/guestfish.pod:893
17383 msgid ""
17384 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17385 "command (see L</PIPES>)."
17386 msgstr ""
17387
17388 #. type: textblock
17389 #: ../fish/guestfish.pod:896
17390 msgid ""
17391 "When using C<-> to read from stdin, the input is read up to the end of "
17392 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17393 "some arbitrary end marker:"
17394 msgstr ""
17395
17396 #. type: verbatim
17397 #: ../fish/guestfish.pod:900
17398 #, no-wrap
17399 msgid ""
17400 " upload -<<END /foo\n"
17401 " input line 1\n"
17402 " input line 2\n"
17403 " input line 3\n"
17404 " END\n"
17405 "\n"
17406 msgstr ""
17407
17408 #. type: textblock
17409 #: ../fish/guestfish.pod:906
17410 msgid ""
17411 "Any string of characters can be used instead of C<END>.  The end marker must "
17412 "appear on a line of its own, without any preceeding or following characters "
17413 "(not even spaces)."
17414 msgstr ""
17415
17416 #. type: textblock
17417 #: ../fish/guestfish.pod:910
17418 msgid ""
17419 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17420 "upload local files (so-called \"FileIn\" parameters in the generator)."
17421 msgstr ""
17422
17423 #. type: =head1
17424 #: ../fish/guestfish.pod:913
17425 msgid "EXIT ON ERROR BEHAVIOUR"
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish.pod:915
17430 msgid ""
17431 "By default, guestfish will ignore any errors when in interactive mode "
17432 "(ie. taking commands from a human over a tty), and will exit on the first "
17433 "error in non-interactive mode (scripts, commands given on the command line)."
17434 msgstr ""
17435
17436 #. type: textblock
17437 #: ../fish/guestfish.pod:920
17438 msgid ""
17439 "If you prefix a command with a I<-> character, then that command will not "
17440 "cause guestfish to exit, even if that (one) command returns an error."
17441 msgstr ""
17442
17443 #. type: =head1
17444 #: ../fish/guestfish.pod:924
17445 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17446 msgstr ""
17447
17448 #. type: textblock
17449 #: ../fish/guestfish.pod:926
17450 msgid ""
17451 "Guestfish can be remote-controlled over a socket.  This is useful "
17452 "particularly in shell scripts where you want to make several different "
17453 "changes to a filesystem, but you don't want the overhead of starting up a "
17454 "guestfish process each time."
17455 msgstr ""
17456
17457 #. type: textblock
17458 #: ../fish/guestfish.pod:931
17459 msgid "Start a guestfish server process using:"
17460 msgstr ""
17461
17462 #. type: verbatim
17463 #: ../fish/guestfish.pod:933
17464 #, no-wrap
17465 msgid ""
17466 " eval \"`guestfish --listen`\"\n"
17467 "\n"
17468 msgstr ""
17469
17470 #. type: textblock
17471 #: ../fish/guestfish.pod:935
17472 msgid "and then send it commands by doing:"
17473 msgstr ""
17474
17475 #. type: verbatim
17476 #: ../fish/guestfish.pod:937
17477 #, no-wrap
17478 msgid ""
17479 " guestfish --remote cmd [...]\n"
17480 "\n"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:939
17485 msgid "To cause the server to exit, send it the exit command:"
17486 msgstr ""
17487
17488 #. type: textblock
17489 #: ../fish/guestfish.pod:943
17490 msgid ""
17491 "Note that the server will normally exit if there is an error in a command.  "
17492 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17493 "BEHAVIOUR>."
17494 msgstr ""
17495
17496 #. type: =head2
17497 #: ../fish/guestfish.pod:947
17498 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17499 msgstr ""
17500
17501 #. type: textblock
17502 #: ../fish/guestfish.pod:949
17503 msgid ""
17504 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17505 "is how the I<--remote> option knows where to send the commands.  You can "
17506 "have several guestfish listener processes running using:"
17507 msgstr ""
17508
17509 #. type: verbatim
17510 #: ../fish/guestfish.pod:953
17511 #, no-wrap
17512 msgid ""
17513 " eval \"`guestfish --listen`\"\n"
17514 " pid1=$GUESTFISH_PID\n"
17515 " eval \"`guestfish --listen`\"\n"
17516 " pid2=$GUESTFISH_PID\n"
17517 " ...\n"
17518 " guestfish --remote=$pid1 cmd\n"
17519 " guestfish --remote=$pid2 cmd\n"
17520 "\n"
17521 msgstr ""
17522
17523 #. type: =head2
17524 #: ../fish/guestfish.pod:961
17525 msgid "REMOTE CONTROL AND CSH"
17526 msgstr ""
17527
17528 #. type: textblock
17529 #: ../fish/guestfish.pod:963
17530 msgid ""
17531 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17532 "option:"
17533 msgstr ""
17534
17535 #. type: verbatim
17536 #: ../fish/guestfish.pod:966
17537 #, no-wrap
17538 msgid ""
17539 " eval \"`guestfish --listen --csh`\"\n"
17540 "\n"
17541 msgstr ""
17542
17543 #. type: =head2
17544 #: ../fish/guestfish.pod:968
17545 msgid "REMOTE CONTROL DETAILS"
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../fish/guestfish.pod:970
17550 msgid ""
17551 "Remote control happens over a Unix domain socket called "
17552 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17553 "of the process, and C<$PID> is the process ID of the server."
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish.pod:974
17558 msgid "Guestfish client and server versions must match exactly."
17559 msgstr ""
17560
17561 #. type: =head2
17562 #: ../fish/guestfish.pod:976
17563 msgid "REMOTE CONTROL RUN COMMAND HANGING"
17564 msgstr ""
17565
17566 #. type: textblock
17567 #: ../fish/guestfish.pod:978
17568 msgid ""
17569 "Using the C<run> (or C<launch>) command remotely in a command substitution "
17570 "context hangs, ie. don't do (note the backquotes):"
17571 msgstr ""
17572
17573 #. type: verbatim
17574 #: ../fish/guestfish.pod:981
17575 #, no-wrap
17576 msgid ""
17577 " a=`guestfish --remote run`\n"
17578 "\n"
17579 msgstr ""
17580
17581 #. type: textblock
17582 #: ../fish/guestfish.pod:983
17583 msgid ""
17584 "Since the C<run> command produces no output on stdout, this is not useful "
17585 "anyway.  For further information see "
17586 "L<https://bugzilla.redhat.com/show_bug.cgi?id=592910>."
17587 msgstr ""
17588
17589 #. type: =head1
17590 #: ../fish/guestfish.pod:987
17591 msgid "PREPARED DISK IMAGES"
17592 msgstr ""
17593
17594 #. type: textblock
17595 #: ../fish/guestfish.pod:989
17596 msgid ""
17597 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17598 "preformatted disk images that guestfish can make for you to save typing.  "
17599 "This is particularly useful for testing purposes.  This option is used "
17600 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17601 "can be mixed with I<-a>)."
17602 msgstr ""
17603
17604 #. type: textblock
17605 #: ../fish/guestfish.pod:995
17606 msgid ""
17607 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17608 "the second and so on.  Existing files in the current directory are "
17609 "I<overwritten>."
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish.pod:999
17614 msgid ""
17615 "The type briefly describes how the disk should be sized, partitioned, how "
17616 "filesystem(s) should be created, and how content should be added.  "
17617 "Optionally the type can be followed by extra parameters, separated by C<:> "
17618 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17619 "sparsely-allocated disk, containing a single partition, with the partition "
17620 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17621 "on a 1GB disk instead."
17622 msgstr ""
17623
17624 #. type: textblock
17625 #: ../fish/guestfish.pod:1007
17626 msgid "To list the available types and any extra parameters they take, run:"
17627 msgstr ""
17628
17629 #. type: textblock
17630 #: ../fish/guestfish.pod:1011
17631 msgid ""
17632 "Note that the prepared filesystem is not mounted.  You would usually have to "
17633 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17634 msgstr ""
17635
17636 #. type: textblock
17637 #: ../fish/guestfish.pod:1015
17638 msgid ""
17639 "If any I<-N> or I<--new> options are given, the guest is automatically "
17640 "launched."
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../fish/guestfish.pod:1020
17645 msgid "Create a 100MB disk with an ext4-formatted partition:"
17646 msgstr ""
17647
17648 #. type: verbatim
17649 #: ../fish/guestfish.pod:1022
17650 #, no-wrap
17651 msgid ""
17652 " guestfish -N fs:ext4\n"
17653 "\n"
17654 msgstr ""
17655
17656 #. type: textblock
17657 #: ../fish/guestfish.pod:1024
17658 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17659 msgstr ""
17660
17661 #. type: verbatim
17662 #: ../fish/guestfish.pod:1026
17663 #, no-wrap
17664 msgid ""
17665 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17666 "\n"
17667 msgstr ""
17668
17669 #. type: textblock
17670 #: ../fish/guestfish.pod:1028
17671 msgid "Create a blank 200MB disk:"
17672 msgstr ""
17673
17674 #. type: verbatim
17675 #: ../fish/guestfish.pod:1030
17676 #, no-wrap
17677 msgid ""
17678 " guestfish -N disk:200M\n"
17679 "\n"
17680 msgstr ""
17681
17682 #. type: =head1
17683 #: ../fish/guestfish.pod:1032
17684 msgid "PROGRESS BARS"
17685 msgstr ""
17686
17687 #. type: textblock
17688 #: ../fish/guestfish.pod:1034
17689 msgid ""
17690 "Some (not all) long-running commands send progress notification messages as "
17691 "they are running.  Guestfish turns these messages into progress bars."
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish.pod:1038
17696 msgid ""
17697 "When a command that supports progress bars takes longer than two seconds to "
17698 "run, and if progress bars are enabled, then you will see one appearing below "
17699 "the command:"
17700 msgstr ""
17701
17702 #. type: verbatim
17703 #: ../fish/guestfish.pod:1042
17704 #, no-wrap
17705 msgid ""
17706 " ><fs> copy-size /large-file /another-file 2048M\n"
17707 " / 10% [#####-----------------------------------------] 00:30\n"
17708 "\n"
17709 msgstr ""
17710
17711 #. type: textblock
17712 #: ../fish/guestfish.pod:1045
17713 msgid ""
17714 "The spinner on the left hand side moves round once for every progress "
17715 "notification received from the backend.  This is a (reasonably) golden "
17716 "assurance that the command is \"doing something\" even if the progress bar "
17717 "is not moving, because the command is able to send the progress "
17718 "notifications.  When the bar reaches 100% and the command finishes, the "
17719 "spinner disappears."
17720 msgstr ""
17721
17722 #. type: textblock
17723 #: ../fish/guestfish.pod:1052
17724 msgid ""
17725 "Progress bars are enabled by default when guestfish is used interactively.  "
17726 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17727 "and you can disable them completely using I<--no-progress-bars>."
17728 msgstr ""
17729
17730 #. type: =head1
17731 #: ../fish/guestfish.pod:1057
17732 msgid "GUESTFISH COMMANDS"
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:1059
17737 msgid ""
17738 "The commands in this section are guestfish convenience commands, in other "
17739 "words, they are not part of the L<guestfs(3)> API."
17740 msgstr ""
17741
17742 #. type: =head2
17743 #: ../fish/guestfish.pod:1062
17744 msgid "help"
17745 msgstr ""
17746
17747 #. type: verbatim
17748 #: ../fish/guestfish.pod:1064
17749 #, no-wrap
17750 msgid ""
17751 " help\n"
17752 " help cmd\n"
17753 "\n"
17754 msgstr ""
17755
17756 #. type: textblock
17757 #: ../fish/guestfish.pod:1067
17758 msgid "Without any parameter, this provides general help."
17759 msgstr ""
17760
17761 #. type: textblock
17762 #: ../fish/guestfish.pod:1069
17763 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17764 msgstr ""
17765
17766 #. type: =head2
17767 #: ../fish/guestfish.pod:1071
17768 msgid "quit | exit"
17769 msgstr ""
17770
17771 #. type: textblock
17772 #: ../fish/guestfish.pod:1073
17773 msgid "This exits guestfish.  You can also use C<^D> key."
17774 msgstr ""
17775
17776 #. type: textblock
17777 #: ../fish/guestfish.pod:1075
17778 msgid "@FISH_COMMANDS@"
17779 msgstr ""
17780
17781 #. type: =head1
17782 #: ../fish/guestfish.pod:1077
17783 msgid "COMMANDS"
17784 msgstr ""
17785
17786 #. type: textblock
17787 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
17788 msgid "@ACTIONS@"
17789 msgstr ""
17790
17791 #. type: =head1
17792 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
17793 msgid "EXIT CODE"
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish.pod:1083
17798 msgid ""
17799 "guestfish returns 0 if the commands completed without error, or 1 if there "
17800 "was an error."
17801 msgstr ""
17802
17803 #. type: =item
17804 #: ../fish/guestfish.pod:1090
17805 msgid "EDITOR"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish.pod:1092
17810 msgid ""
17811 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17812 "C<vi>."
17813 msgstr ""
17814
17815 #. type: =item
17816 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2970
17817 msgid "FEBOOTSTRAP_KERNEL"
17818 msgstr ""
17819
17820 #. type: =item
17821 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2972
17822 msgid "FEBOOTSTRAP_MODULES"
17823 msgstr ""
17824
17825 #. type: textblock
17826 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2974
17827 msgid ""
17828 "These two environment variables allow the kernel that libguestfs uses in the "
17829 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
17830 "most recent host kernel is chosen.  For more information about kernel "
17831 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
17832 "available in febootstrap E<ge> 3.8."
17833 msgstr ""
17834
17835 #. type: =item
17836 #: ../fish/guestfish.pod:1105
17837 msgid "GUESTFISH_DISPLAY_IMAGE"
17838 msgstr ""
17839
17840 #. type: textblock
17841 #: ../fish/guestfish.pod:1107
17842 msgid ""
17843 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
17844 "If not set, it uses L<display(1)>."
17845 msgstr ""
17846
17847 #. type: =item
17848 #: ../fish/guestfish.pod:1110
17849 msgid "GUESTFISH_PID"
17850 msgstr ""
17851
17852 #. type: textblock
17853 #: ../fish/guestfish.pod:1112
17854 msgid ""
17855 "Used with the I<--remote> option to specify the remote guestfish process to "
17856 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17857 msgstr ""
17858
17859 #. type: =item
17860 #: ../fish/guestfish.pod:1116
17861 msgid "HEXEDITOR"
17862 msgstr ""
17863
17864 #. type: textblock
17865 #: ../fish/guestfish.pod:1118
17866 msgid ""
17867 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17868 "not specified, the external L<hexedit(1)> program is used."
17869 msgstr ""
17870
17871 #. type: =item
17872 #: ../fish/guestfish.pod:1122
17873 msgid "HOME"
17874 msgstr ""
17875
17876 #. type: textblock
17877 #: ../fish/guestfish.pod:1124
17878 msgid ""
17879 "If compiled with GNU readline support, various files in the home directory "
17880 "can be used.  See L</FILES>."
17881 msgstr ""
17882
17883 #. type: =item
17884 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2980
17885 msgid "LIBGUESTFS_APPEND"
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2982
17890 msgid "Pass additional options to the guest kernel."
17891 msgstr ""
17892
17893 #. type: =item
17894 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2984
17895 msgid "LIBGUESTFS_DEBUG"
17896 msgstr ""
17897
17898 #. type: textblock
17899 #: ../fish/guestfish.pod:1133
17900 msgid ""
17901 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17902 "effect as using the B<-v> option."
17903 msgstr ""
17904
17905 #. type: =item
17906 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:2989
17907 msgid "LIBGUESTFS_MEMSIZE"
17908 msgstr ""
17909
17910 #. type: textblock
17911 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:2991
17912 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
17913 msgstr ""
17914
17915 #. type: verbatim
17916 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:2994
17917 #, no-wrap
17918 msgid ""
17919 " LIBGUESTFS_MEMSIZE=700\n"
17920 "\n"
17921 msgstr ""
17922
17923 #. type: =item
17924 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:2996
17925 msgid "LIBGUESTFS_PATH"
17926 msgstr ""
17927
17928 #. type: textblock
17929 #: ../fish/guestfish.pod:1145
17930 msgid ""
17931 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17932 "the discussion of paths in L<guestfs(3)>."
17933 msgstr ""
17934
17935 #. type: =item
17936 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3001
17937 msgid "LIBGUESTFS_QEMU"
17938 msgstr ""
17939
17940 #. type: textblock
17941 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3003
17942 msgid ""
17943 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
17944 "which was found at compile time by the configure script is used."
17945 msgstr ""
17946
17947 #. type: =item
17948 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3009
17949 msgid "LIBGUESTFS_TRACE"
17950 msgstr ""
17951
17952 #. type: textblock
17953 #: ../fish/guestfish.pod:1156
17954 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17955 msgstr ""
17956
17957 #. type: =item
17958 #: ../fish/guestfish.pod:1158
17959 msgid "PAGER"
17960 msgstr ""
17961
17962 #. type: textblock
17963 #: ../fish/guestfish.pod:1160
17964 msgid ""
17965 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17966 "C<more>."
17967 msgstr ""
17968
17969 #. type: =item
17970 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3014
17971 msgid "TMPDIR"
17972 msgstr ""
17973
17974 #. type: textblock
17975 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3016
17976 msgid ""
17977 "Location of temporary directory, defaults to C</tmp> except for the cached "
17978 "supermin appliance which defaults to C</var/tmp>."
17979 msgstr ""
17980
17981 #. type: textblock
17982 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3019
17983 msgid ""
17984 "If libguestfs was compiled to use the supermin appliance then the real "
17985 "appliance is cached in this directory, shared between all handles belonging "
17986 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
17987 "use in case C</var/tmp> is not large enough."
17988 msgstr ""
17989
17990 #. type: =head1
17991 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:269
17992 msgid "FILES"
17993 msgstr ""
17994
17995 #. type: =item
17996 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:273
17997 msgid "$HOME/.libguestfs-tools.rc"
17998 msgstr ""
17999
18000 #. type: =item
18001 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:275
18002 msgid "/etc/libguestfs-tools.conf"
18003 msgstr ""
18004
18005 #. type: textblock
18006 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:277
18007 msgid ""
18008 "This configuration file controls the default read-only or read-write mode "
18009 "(I<--ro> or I<--rw>)."
18010 msgstr ""
18011
18012 #. type: textblock
18013 #: ../fish/guestfish.pod:1187
18014 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
18015 msgstr ""
18016
18017 #. type: =item
18018 #: ../fish/guestfish.pod:1189
18019 msgid "$HOME/.guestfish"
18020 msgstr ""
18021
18022 #. type: textblock
18023 #: ../fish/guestfish.pod:1191
18024 msgid ""
18025 "If compiled with GNU readline support, then the command history is saved in "
18026 "this file."
18027 msgstr ""
18028
18029 #. type: =item
18030 #: ../fish/guestfish.pod:1194
18031 msgid "$HOME/.inputrc"
18032 msgstr ""
18033
18034 #. type: =item
18035 #: ../fish/guestfish.pod:1196
18036 msgid "/etc/inputrc"
18037 msgstr ""
18038
18039 #. type: textblock
18040 #: ../fish/guestfish.pod:1198
18041 msgid ""
18042 "If compiled with GNU readline support, then these files can be used to "
18043 "configure readline.  For further information, please see "
18044 "L<readline(3)/INITIALIZATION FILE>."
18045 msgstr ""
18046
18047 #. type: textblock
18048 #: ../fish/guestfish.pod:1202
18049 msgid "To write rules which only apply to guestfish, use:"
18050 msgstr ""
18051
18052 #. type: verbatim
18053 #: ../fish/guestfish.pod:1204
18054 #, no-wrap
18055 msgid ""
18056 " $if guestfish\n"
18057 " ...\n"
18058 " $endif\n"
18059 "\n"
18060 msgstr ""
18061
18062 #. type: textblock
18063 #: ../fish/guestfish.pod:1208
18064 msgid ""
18065 "Variables that you can set in inputrc that change the behaviour of guestfish "
18066 "in useful ways include:"
18067 msgstr ""
18068
18069 #. type: =item
18070 #: ../fish/guestfish.pod:1213
18071 msgid "completion-ignore-case (default: on)"
18072 msgstr ""
18073
18074 #. type: textblock
18075 #: ../fish/guestfish.pod:1215
18076 msgid ""
18077 "By default, guestfish will ignore case when tab-completing paths on the "
18078 "disk.  Use:"
18079 msgstr ""
18080
18081 #. type: verbatim
18082 #: ../fish/guestfish.pod:1218
18083 #, no-wrap
18084 msgid ""
18085 " set completion-ignore-case off\n"
18086 "\n"
18087 msgstr ""
18088
18089 #. type: textblock
18090 #: ../fish/guestfish.pod:1220
18091 msgid "to make guestfish case sensitive."
18092 msgstr ""
18093
18094 #. type: =item
18095 #: ../fish/guestfish.pod:1224
18096 msgid "test1.img"
18097 msgstr ""
18098
18099 #. type: =item
18100 #: ../fish/guestfish.pod:1226
18101 msgid "test2.img (etc)"
18102 msgstr ""
18103
18104 #. type: textblock
18105 #: ../fish/guestfish.pod:1228
18106 msgid ""
18107 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18108 "will be created in the file C<test1.img> in the current directory.  The "
18109 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18110 "the same name will be overwritten."
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish.pod:1237
18115 msgid ""
18116 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
18117 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
18118 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
18119 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
18120 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
18121 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18122 "L<febootstrap-supermin-helper(8)>."
18123 msgstr ""
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3105 ../test-tool/libguestfs-test-tool.pod:99
18127 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/virt-copy-in.pod:5
18132 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18133 msgstr ""
18134
18135 #. type: verbatim
18136 #: ../fish/virt-copy-in.pod:9
18137 #, no-wrap
18138 msgid ""
18139 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18140 "\n"
18141 msgstr ""
18142
18143 #. type: verbatim
18144 #: ../fish/virt-copy-in.pod:11
18145 #, no-wrap
18146 msgid ""
18147 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18148 "\n"
18149 msgstr ""
18150
18151 #. type: textblock
18152 #: ../fish/virt-copy-in.pod:15
18153 msgid ""
18154 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18155 "causing disk corruption.  The virtual machine must be shut down before you "
18156 "use this command."
18157 msgstr ""
18158
18159 #. type: textblock
18160 #: ../fish/virt-copy-in.pod:21
18161 msgid ""
18162 "C<virt-copy-in> copies files and directories from the local disk into a "
18163 "virtual machine disk image or named libvirt domain."
18164 msgstr ""
18165
18166 #. type: textblock
18167 #: ../fish/virt-copy-in.pod:24
18168 msgid ""
18169 "You can give one of more filenames and directories on the command line.  "
18170 "Directories are copied in recursively.  The final parameter must be the "
18171 "destination directory in the disk image which must be an absolute path "
18172 "starting with a C</> character."
18173 msgstr ""
18174
18175 #. type: verbatim
18176 #: ../fish/virt-copy-in.pod:33
18177 #, no-wrap
18178 msgid ""
18179 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18180 "\n"
18181 msgstr ""
18182
18183 #. type: textblock
18184 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18185 msgid "Upload a home directory to a guest:"
18186 msgstr ""
18187
18188 #. type: verbatim
18189 #: ../fish/virt-copy-in.pod:37
18190 #, no-wrap
18191 msgid ""
18192 " virt-copy-in -d MyGuest skel /home\n"
18193 "\n"
18194 msgstr ""
18195
18196 #. type: =head1
18197 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18198 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/virt-copy-in.pod:41
18203 msgid ""
18204 "This command is just a simple shell script wrapper around the "
18205 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18206 "trivial copy, you are probably better off using guestfish directly."
18207 msgstr ""
18208
18209 #. type: textblock
18210 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18211 msgid ""
18212 "Since the shell script just passes options straight to guestfish, read "
18213 "L<guestfish(1)> to see the full list of options."
18214 msgstr ""
18215
18216 #. type: textblock
18217 #: ../fish/virt-copy-in.pod:52
18218 msgid ""
18219 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18220 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18221 msgstr ""
18222
18223 #. type: textblock
18224 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18225 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18226 msgstr ""
18227
18228 #. type: textblock
18229 #: ../fish/virt-copy-out.pod:5
18230 msgid ""
18231 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18232 "image."
18233 msgstr ""
18234
18235 #. type: verbatim
18236 #: ../fish/virt-copy-out.pod:9
18237 #, no-wrap
18238 msgid ""
18239 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18240 "\n"
18241 msgstr ""
18242
18243 #. type: verbatim
18244 #: ../fish/virt-copy-out.pod:11
18245 #, no-wrap
18246 msgid ""
18247 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18248 "\n"
18249 msgstr ""
18250
18251 #. type: textblock
18252 #: ../fish/virt-copy-out.pod:15
18253 msgid ""
18254 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18255 "image or named libvirt domain."
18256 msgstr ""
18257
18258 #. type: textblock
18259 #: ../fish/virt-copy-out.pod:18
18260 msgid ""
18261 "You can give one of more filenames and directories on the command line.  "
18262 "Directories are copied out recursively."
18263 msgstr ""
18264
18265 #. type: textblock
18266 #: ../fish/virt-copy-out.pod:23
18267 msgid "Download the home directories from a virtual machine:"
18268 msgstr ""
18269
18270 #. type: verbatim
18271 #: ../fish/virt-copy-out.pod:25
18272 #, no-wrap
18273 msgid ""
18274 " mkdir homes\n"
18275 " virt-copy-out -d MyGuest /home homes\n"
18276 "\n"
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/virt-copy-out.pod:30
18281 msgid ""
18282 "This command is just a simple shell script wrapper around the "
18283 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18284 "trivial copy, you are probably better off using guestfish directly."
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/virt-copy-out.pod:41
18289 msgid ""
18290 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18291 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18292 msgstr ""
18293
18294 #. type: textblock
18295 #: ../fish/virt-tar-in.pod:5
18296 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18297 msgstr ""
18298
18299 #. type: verbatim
18300 #: ../fish/virt-tar-in.pod:9
18301 #, no-wrap
18302 msgid ""
18303 " virt-tar-in -a disk.img data.tar /destination\n"
18304 "\n"
18305 msgstr ""
18306
18307 #. type: verbatim
18308 #: ../fish/virt-tar-in.pod:11
18309 #, no-wrap
18310 msgid ""
18311 " virt-tar-in -d domain data.tar /destination\n"
18312 "\n"
18313 msgstr ""
18314
18315 #. type: verbatim
18316 #: ../fish/virt-tar-in.pod:13
18317 #, no-wrap
18318 msgid ""
18319 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18320 "\n"
18321 msgstr ""
18322
18323 #. type: textblock
18324 #: ../fish/virt-tar-in.pod:17
18325 msgid ""
18326 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18327 "causing disk corruption.  The virtual machine must be shut down before you "
18328 "use this command."
18329 msgstr ""
18330
18331 #. type: textblock
18332 #: ../fish/virt-tar-in.pod:23
18333 msgid ""
18334 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18335 "image or named libvirt domain."
18336 msgstr ""
18337
18338 #. type: textblock
18339 #: ../fish/virt-tar-in.pod:26
18340 msgid ""
18341 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18342 "standard input.  The second parameter is the absolute target directory to "
18343 "unpack into."
18344 msgstr ""
18345
18346 #. type: verbatim
18347 #: ../fish/virt-tar-in.pod:34
18348 #, no-wrap
18349 msgid ""
18350 " virt-tar-in -d MyGuest homes.tar /home\n"
18351 "\n"
18352 msgstr ""
18353
18354 #. type: textblock
18355 #: ../fish/virt-tar-in.pod:38
18356 msgid ""
18357 "This command is just a simple shell script wrapper around the "
18358 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18359 "copy, you are probably better off using guestfish directly."
18360 msgstr ""
18361
18362 #. type: textblock
18363 #: ../fish/virt-tar-in.pod:49
18364 msgid ""
18365 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18366 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18367 "L<http://libguestfs.org/>."
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/virt-tar-out.pod:5
18372 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18373 msgstr ""
18374
18375 #. type: verbatim
18376 #: ../fish/virt-tar-out.pod:9
18377 #, no-wrap
18378 msgid ""
18379 " virt-tar-out -a disk.img /dir files.tar\n"
18380 "\n"
18381 msgstr ""
18382
18383 #. type: verbatim
18384 #: ../fish/virt-tar-out.pod:11
18385 #, no-wrap
18386 msgid ""
18387 " virt-tar-out -d domain /dir files.tar\n"
18388 "\n"
18389 msgstr ""
18390
18391 #. type: verbatim
18392 #: ../fish/virt-tar-out.pod:13
18393 #, no-wrap
18394 msgid ""
18395 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18396 "\n"
18397 msgstr ""
18398
18399 #. type: textblock
18400 #: ../fish/virt-tar-out.pod:17
18401 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18402 msgstr ""
18403
18404 #. type: textblock
18405 #: ../fish/virt-tar-out.pod:20
18406 msgid ""
18407 "The first parameter is the absolute path of the virtual machine directory.  "
18408 "The second parameter is the tar file to write.  Use C<-> to write to "
18409 "standard output."
18410 msgstr ""
18411
18412 #. type: textblock
18413 #: ../fish/virt-tar-out.pod:26
18414 msgid "Download the home directories from a guest:"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fish/virt-tar-out.pod:28
18419 #, no-wrap
18420 msgid ""
18421 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18422 "\n"
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../fish/virt-tar-out.pod:32
18427 msgid ""
18428 "This command is just a simple shell script wrapper around the "
18429 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
18430 "trivial copy, you are probably better off using guestfish directly."
18431 msgstr ""
18432
18433 #. type: textblock
18434 #: ../fish/virt-tar-out.pod:43
18435 msgid ""
18436 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18437 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18438 msgstr ""
18439
18440 #. type: textblock
18441 #: ../fuse/guestmount.pod:5
18442 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18443 msgstr ""
18444
18445 #. type: verbatim
18446 #: ../fuse/guestmount.pod:9
18447 #, no-wrap
18448 msgid ""
18449 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18450 "\n"
18451 msgstr ""
18452
18453 #. type: verbatim
18454 #: ../fuse/guestmount.pod:11
18455 #, no-wrap
18456 msgid ""
18457 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18458 "\n"
18459 msgstr ""
18460
18461 #. type: verbatim
18462 #: ../fuse/guestmount.pod:13
18463 #, no-wrap
18464 msgid ""
18465 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18466 "\n"
18467 msgstr ""
18468
18469 #. type: textblock
18470 #: ../fuse/guestmount.pod:17
18471 msgid ""
18472 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18473 "machines.  If you do this, you risk disk corruption in the VM."
18474 msgstr ""
18475
18476 #. type: textblock
18477 #: ../fuse/guestmount.pod:22
18478 msgid ""
18479 "The guestmount program can be used to mount virtual machine filesystems and "
18480 "other disk images on the host.  It uses libguestfs for access to the guest "
18481 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18482 "a mountable device."
18483 msgstr ""
18484
18485 #. type: textblock
18486 #: ../fuse/guestmount.pod:27
18487 msgid ""
18488 "Along with other options, you have to give at least one device (I<-a> "
18489 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18490 "option) or use the I<-i> inspection option.  How this works is better "
18491 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18492 "below."
18493 msgstr ""
18494
18495 #. type: textblock
18496 #: ../fuse/guestmount.pod:33
18497 msgid ""
18498 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18499 "by you, and the filesystem will not be visible to any other users unless you "
18500 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18501 "the filesystem, use the C<fusermount -u> command."
18502 msgstr ""
18503
18504 #. type: textblock
18505 #: ../fuse/guestmount.pod:41
18506 msgid ""
18507 "For a typical Windows guest which has its main filesystem on the first "
18508 "partition:"
18509 msgstr ""
18510
18511 #. type: verbatim
18512 #: ../fuse/guestmount.pod:44
18513 #, no-wrap
18514 msgid ""
18515 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18516 "\n"
18517 msgstr ""
18518
18519 #. type: textblock
18520 #: ../fuse/guestmount.pod:46
18521 msgid ""
18522 "For a typical Linux guest which has a /boot filesystem on the first "
18523 "partition, and the root filesystem on a logical volume:"
18524 msgstr ""
18525
18526 #. type: verbatim
18527 #: ../fuse/guestmount.pod:49
18528 #, no-wrap
18529 msgid ""
18530 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
18531 "\n"
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fuse/guestmount.pod:51
18536 msgid "To get libguestfs to detect guest mountpoints for you:"
18537 msgstr ""
18538
18539 #. type: verbatim
18540 #: ../fuse/guestmount.pod:53
18541 #, no-wrap
18542 msgid ""
18543 " guestmount -a guest.img -i --ro /mnt\n"
18544 "\n"
18545 msgstr ""
18546
18547 #. type: textblock
18548 #: ../fuse/guestmount.pod:55
18549 msgid "For a libvirt guest called \"Guest\" you could do:"
18550 msgstr ""
18551
18552 #. type: verbatim
18553 #: ../fuse/guestmount.pod:57
18554 #, no-wrap
18555 msgid ""
18556 " guestmount -d Guest -i --ro /mnt\n"
18557 "\n"
18558 msgstr ""
18559
18560 #. type: textblock
18561 #: ../fuse/guestmount.pod:59
18562 msgid ""
18563 "If you don't know what filesystems are contained in a guest or disk image, "
18564 "use L<virt-filesystems(1)> first:"
18565 msgstr ""
18566
18567 #. type: verbatim
18568 #: ../fuse/guestmount.pod:62
18569 #, no-wrap
18570 msgid ""
18571 " virt-filesystems MyGuest\n"
18572 "\n"
18573 msgstr ""
18574
18575 #. type: textblock
18576 #: ../fuse/guestmount.pod:64
18577 msgid ""
18578 "If you want to trace the libguestfs calls but without excessive debugging "
18579 "information, we recommend:"
18580 msgstr ""
18581
18582 #. type: verbatim
18583 #: ../fuse/guestmount.pod:67
18584 #, no-wrap
18585 msgid ""
18586 " guestmount [...] --trace /mnt\n"
18587 "\n"
18588 msgstr ""
18589
18590 #. type: textblock
18591 #: ../fuse/guestmount.pod:69
18592 msgid "If you want to debug the program, we recommend:"
18593 msgstr ""
18594
18595 #. type: verbatim
18596 #: ../fuse/guestmount.pod:71
18597 #, no-wrap
18598 msgid ""
18599 " guestmount [...] --trace --verbose /mnt\n"
18600 "\n"
18601 msgstr ""
18602
18603 #. type: =head1
18604 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:486
18605 msgid "NOTES"
18606 msgstr ""
18607
18608 #. type: =head2
18609 #: ../fuse/guestmount.pod:75
18610 msgid "Other users cannot see the filesystem by default"
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fuse/guestmount.pod:77
18615 msgid ""
18616 "If you mount a filesystem as one user (eg. root), then other users will not "
18617 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
18618 "option when mounting:"
18619 msgstr ""
18620
18621 #. type: verbatim
18622 #: ../fuse/guestmount.pod:81
18623 #, no-wrap
18624 msgid ""
18625 " sudo guestmount [...] -o allow_other /mnt\n"
18626 "\n"
18627 msgstr ""
18628
18629 #. type: textblock
18630 #: ../fuse/guestmount.pod:91
18631 msgid "Add a block device or virtual machine image."
18632 msgstr ""
18633
18634 #. type: =item
18635 #: ../fuse/guestmount.pod:114
18636 msgid "B<--dir-cache-timeout N>"
18637 msgstr ""
18638
18639 #. type: textblock
18640 #: ../fuse/guestmount.pod:116
18641 msgid ""
18642 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
18643 "seconds.  The readdir cache [actually, there are several semi-independent "
18644 "caches] is populated after a readdir(2) call with the stat and extended "
18645 "attributes of the files in the directory, in anticipation that they will be "
18646 "requested soon after."
18647 msgstr ""
18648
18649 #. type: textblock
18650 #: ../fuse/guestmount.pod:122
18651 msgid ""
18652 "There is also a different attribute cache implemented by FUSE (see the FUSE "
18653 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
18654 "requests, only cache existing ones."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fuse/guestmount.pod:142
18659 msgid ""
18660 "If you have untrusted raw-format guest disk images, you should use this "
18661 "option to specify the disk format.  This avoids a possible security problem "
18662 "with malicious guests (CVE-2010-3851).  See also "
18663 "L<guestfs(3)/guestfs_add_drive_opts>."
18664 msgstr ""
18665
18666 #. type: =item
18667 #: ../fuse/guestmount.pod:147
18668 msgid "B<--fuse-help>"
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fuse/guestmount.pod:149
18673 msgid "Display help on special FUSE options (see I<-o> below)."
18674 msgstr ""
18675
18676 #. type: textblock
18677 #: ../fuse/guestmount.pod:153
18678 msgid "Display brief help and exit."
18679 msgstr ""
18680
18681 #. type: textblock
18682 #: ../fuse/guestmount.pod:177
18683 msgid ""
18684 "Mount the named partition or logical volume on the given mountpoint B<in the "
18685 "guest> (this has nothing to do with mountpoints in the host)."
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fuse/guestmount.pod:180
18690 msgid ""
18691 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
18692 "something on C</>."
18693 msgstr ""
18694
18695 #. type: textblock
18696 #: ../fuse/guestmount.pod:197
18697 msgid ""
18698 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
18699 "unmounted.  If you specify this option, then we don't attempt to sync the "
18700 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
18701 msgstr ""
18702
18703 #. type: =item
18704 #: ../fuse/guestmount.pod:202
18705 msgid "B<-o option>"
18706 msgstr ""
18707
18708 #. type: =item
18709 #: ../fuse/guestmount.pod:204
18710 msgid "B<--option option>"
18711 msgstr ""
18712
18713 #. type: textblock
18714 #: ../fuse/guestmount.pod:206
18715 msgid "Pass extra options to FUSE."
18716 msgstr ""
18717
18718 #. type: textblock
18719 #: ../fuse/guestmount.pod:208
18720 msgid ""
18721 "To get a list of all the extra options supported by FUSE, use the command "
18722 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
18723 "of them are a good idea."
18724 msgstr ""
18725
18726 #. type: verbatim
18727 #: ../fuse/guestmount.pod:212
18728 #, no-wrap
18729 msgid ""
18730 " guestmount --fuse-help\n"
18731 "\n"
18732 msgstr ""
18733
18734 #. type: textblock
18735 #: ../fuse/guestmount.pod:214
18736 msgid "Some potentially useful FUSE options:"
18737 msgstr ""
18738
18739 #. type: =item
18740 #: ../fuse/guestmount.pod:218
18741 msgid "B<-o allow_other>"
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fuse/guestmount.pod:220
18746 msgid "Allow other users to see the filesystem."
18747 msgstr ""
18748
18749 #. type: =item
18750 #: ../fuse/guestmount.pod:222
18751 msgid "B<-o attr_timeout=N>"
18752 msgstr ""
18753
18754 #. type: textblock
18755 #: ../fuse/guestmount.pod:224
18756 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
18757 msgstr ""
18758
18759 #. type: =item
18760 #: ../fuse/guestmount.pod:226
18761 msgid "B<-o kernel_cache>"
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fuse/guestmount.pod:228
18766 msgid ""
18767 "Allow the kernel to cache files (reduces the number of reads that have to go "
18768 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
18769 "afford the extra memory usage."
18770 msgstr ""
18771
18772 #. type: =item
18773 #: ../fuse/guestmount.pod:232
18774 msgid "B<-o uid=N> B<-o gid=N>"
18775 msgstr ""
18776
18777 #. type: textblock
18778 #: ../fuse/guestmount.pod:234
18779 msgid ""
18780 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
18781 "the chosen values."
18782 msgstr ""
18783
18784 #. type: textblock
18785 #: ../fuse/guestmount.pod:243
18786 msgid ""
18787 "Add devices and mount everything read-only.  Also disallow writes and make "
18788 "the disk appear read-only to FUSE."
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fuse/guestmount.pod:246
18793 msgid ""
18794 "This is highly recommended if you are not going to edit the guest disk.  If "
18795 "the guest is running and this option is I<not> supplied, then there is a "
18796 "strong risk of disk corruption in the guest.  We try to prevent this from "
18797 "happening, but it is not always possible."
18798 msgstr ""
18799
18800 #. type: textblock
18801 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
18802 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fuse/guestmount.pod:255
18807 msgid "Enable SELinux support for the guest."
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fuse/guestmount.pod:261
18812 msgid "Enable verbose messages from underlying libguestfs."
18813 msgstr ""
18814
18815 #. type: textblock
18816 #: ../fuse/guestmount.pod:267
18817 msgid "Display the program version and exit."
18818 msgstr ""
18819
18820 #. type: textblock
18821 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
18822 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18823 msgstr ""
18824
18825 #. type: =item
18826 #: ../fuse/guestmount.pod:280
18827 msgid "B<--trace>"
18828 msgstr ""
18829
18830 #. type: textblock
18831 #: ../fuse/guestmount.pod:282
18832 msgid "Trace libguestfs calls and entry into each FUSE function."
18833 msgstr ""
18834
18835 #. type: textblock
18836 #: ../fuse/guestmount.pod:284
18837 msgid "This also stops the daemon from forking into the background."
18838 msgstr ""
18839
18840 #. type: textblock
18841 #: ../fuse/guestmount.pod:305
18842 msgid ""
18843 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
18844 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
18845 "L<http://fuse.sf.net/>."
18846 msgstr ""
18847
18848 #. type: textblock
18849 #: ../fuse/guestmount.pod:320
18850 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../inspector/virt-inspector.pod:5
18855 msgid ""
18856 "virt-inspector - Display operating system version and other information "
18857 "about a virtual machine"
18858 msgstr ""
18859
18860 #. type: verbatim
18861 #: ../inspector/virt-inspector.pod:9
18862 #, no-wrap
18863 msgid ""
18864 " virt-inspector [--options] -d domname\n"
18865 "\n"
18866 msgstr ""
18867
18868 #. type: verbatim
18869 #: ../inspector/virt-inspector.pod:11
18870 #, no-wrap
18871 msgid ""
18872 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
18873 "\n"
18874 msgstr ""
18875
18876 #. type: verbatim
18877 #: ../inspector/virt-inspector.pod:15
18878 #, no-wrap
18879 msgid ""
18880 " virt-inspector domname\n"
18881 "\n"
18882 msgstr ""
18883
18884 #. type: verbatim
18885 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
18886 #, no-wrap
18887 msgid ""
18888 " virt-inspector disk.img [disk.img ...]\n"
18889 "\n"
18890 msgstr ""
18891
18892 #. type: textblock
18893 #: ../inspector/virt-inspector.pod:21
18894 msgid ""
18895 "B<virt-inspector> examines a virtual machine or disk image and tries to "
18896 "determine the version of the operating system and other information about "
18897 "the virtual machine."
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../inspector/virt-inspector.pod:25
18902 msgid "Virt-inspector produces XML output for feeding into other programs."
18903 msgstr ""
18904
18905 #. type: textblock
18906 #: ../inspector/virt-inspector.pod:27
18907 msgid ""
18908 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
18909 "the libvirt domain (see: C<virsh list --all>)."
18910 msgstr ""
18911
18912 #. type: textblock
18913 #: ../inspector/virt-inspector.pod:30
18914 msgid ""
18915 "You can also run virt-inspector directly on disk images from a single "
18916 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
18917 "has several block devices, in which case you should list several I<-a> "
18918 "options one after another, with the first corresponding to the guest's "
18919 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
18920 msgstr ""
18921
18922 #. type: textblock
18923 #: ../inspector/virt-inspector.pod:37
18924 msgid ""
18925 "You can also run virt-inspector on install disks, live CDs, bootable USB "
18926 "keys and similar."
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../inspector/virt-inspector.pod:40
18931 msgid ""
18932 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
18933 "inspect several virtual machines, you have to run virt-inspector several "
18934 "times (for example, from a shell script for-loop)."
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../inspector/virt-inspector.pod:45
18939 msgid ""
18940 "Because virt-inspector needs direct access to guest images, it won't "
18941 "normally work over remote libvirt connections."
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../inspector/virt-inspector.pod:48
18946 msgid ""
18947 "All of the information available from virt-inspector is also available "
18948 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
18949 "The same information can also be fetched using guestfish or via libguestfs "
18950 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
18951 "WITH OTHER PROGRAMMING LANGUAGES>)."
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../inspector/virt-inspector.pod:81
18956 msgid ""
18957 "Libvirt is only used if you specify a C<domname> on the command line.  If "
18958 "you specify guest block devices directly (I<-a>), then libvirt is not used "
18959 "at all."
18960 msgstr ""
18961
18962 #. type: textblock
18963 #: ../inspector/virt-inspector.pod:94
18964 msgid ""
18965 "When prompting for keys and passphrases, virt-inspector normally turns "
18966 "echoing off so you cannot see what you are typing.  If you are not worried "
18967 "about Tempest attacks and there is no one else in the room you can specify "
18968 "this flag to see what you are typing."
18969 msgstr ""
18970
18971 #. type: textblock
18972 #: ../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
18973 msgid ""
18974 "Specify the format of disk images given on the command line.  If this is "
18975 "omitted then the format is autodetected from the content of the disk image."
18976 msgstr ""
18977
18978 #. type: textblock
18979 #: ../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
18980 msgid ""
18981 "If disk images are requested from libvirt, then this program asks libvirt "
18982 "for this information.  In this case, the value of the format parameter is "
18983 "ignored."
18984 msgstr ""
18985
18986 #. type: textblock
18987 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314 ../resize/virt-resize.pod:400 ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
18988 msgid ""
18989 "If working with untrusted raw-format guest disk images, you should ensure "
18990 "the format is always specified."
18991 msgstr ""
18992
18993 #. type: textblock
18994 #: ../inspector/virt-inspector.pod:139
18995 msgid "Previous versions of virt-inspector allowed you to write either:"
18996 msgstr ""
18997
18998 #. type: verbatim
18999 #: ../inspector/virt-inspector.pod:145
19000 #, no-wrap
19001 msgid ""
19002 " virt-inspector guestname\n"
19003 "\n"
19004 msgstr ""
19005
19006 #. type: =head1
19007 #: ../inspector/virt-inspector.pod:153
19008 msgid "XML FORMAT"
19009 msgstr ""
19010
19011 #. type: textblock
19012 #: ../inspector/virt-inspector.pod:155
19013 msgid ""
19014 "The virt-inspector XML is described precisely in a RELAX NG schema file "
19015 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
19016 "just an overview."
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../inspector/virt-inspector.pod:159
19021 msgid ""
19022 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
19023 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
19024 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
19025 "which is vanishingly rare in real world VMs."
19026 msgstr ""
19027
19028 #. type: =head2
19029 #: ../inspector/virt-inspector.pod:164
19030 msgid "E<lt>operatingsystemE<gt>"
19031 msgstr ""
19032
19033 #. type: textblock
19034 #: ../inspector/virt-inspector.pod:166
19035 msgid ""
19036 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
19037 "describe the operating system, its architecture, the descriptive \"product "
19038 "name\" string, the type of OS and so on, as in this example:"
19039 msgstr ""
19040
19041 #. type: verbatim
19042 #: ../inspector/virt-inspector.pod:170
19043 #, no-wrap
19044 msgid ""
19045 " <operatingsystems>\n"
19046 "   <operatingsystem>\n"
19047 "     <root>/dev/sda2</root>\n"
19048 "     <name>windows</name>\n"
19049 "     <arch>i386</arch>\n"
19050 "     <distro>windows</distro>\n"
19051 "     <product_name>Windows 7 Enterprise</product_name>\n"
19052 "     <product_variant>Client</product_variant>\n"
19053 "     <major_version>6</major_version>\n"
19054 "     <minor_version>1</minor_version>\n"
19055 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19056 "     <format>installed</format>\n"
19057 "\n"
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../inspector/virt-inspector.pod:183
19062 msgid ""
19063 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19064 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19065 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19066 "architecture.  The other fields are fairly self-explanatory, but because "
19067 "these fields are taken directly from the libguestfs inspection API you can "
19068 "find precise information from L<guestfs(3)/INSPECTION>."
19069 msgstr ""
19070
19071 #. type: textblock
19072 #: ../inspector/virt-inspector.pod:191
19073 msgid ""
19074 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19075 "of view of libguestfs (block devices may have completely different names "
19076 "inside the VM itself)."
19077 msgstr ""
19078
19079 #. type: =head2
19080 #: ../inspector/virt-inspector.pod:195
19081 msgid "E<lt>mountpointsE<gt>"
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../inspector/virt-inspector.pod:197
19086 msgid ""
19087 "Un*x-like guests typically have multiple filesystems which are mounted at "
19088 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19089 "element which looks like this:"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../inspector/virt-inspector.pod:201
19094 #, no-wrap
19095 msgid ""
19096 " <operatingsystems>\n"
19097 "   <operatingsystem>\n"
19098 "     ...\n"
19099 "     <mountpoints>\n"
19100 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19101 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19102 "     </mountpoints>\n"
19103 "\n"
19104 msgstr ""
19105
19106 #. type: textblock
19107 #: ../inspector/virt-inspector.pod:209
19108 msgid ""
19109 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19110 "and may have completely different names inside the guest.  Only mountable "
19111 "filesystems appear in this list, not things like swap devices."
19112 msgstr ""
19113
19114 #. type: =head2
19115 #: ../inspector/virt-inspector.pod:214
19116 msgid "E<lt>filesystemsE<gt>"
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../inspector/virt-inspector.pod:216
19121 msgid ""
19122 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19123 "filesystems belonging to the guest, including swap and empty partitions.  "
19124 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19125 "this OS or shared with this OS and other OSes)."
19126 msgstr ""
19127
19128 #. type: textblock
19129 #: ../inspector/virt-inspector.pod:222
19130 msgid "You might see something like this:"
19131 msgstr ""
19132
19133 #. type: verbatim
19134 #: ../inspector/virt-inspector.pod:224
19135 #, no-wrap
19136 msgid ""
19137 " <operatingsystems>\n"
19138 "   <operatingsystem>\n"
19139 "     ...\n"
19140 "     <filesystems>\n"
19141 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19142 "         <type>ext4</type>\n"
19143 "         <label>Fedora-13-x86_64</label>\n"
19144 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19145 "       </filesystem>\n"
19146 "\n"
19147 msgstr ""
19148
19149 #. type: textblock
19150 #: ../inspector/virt-inspector.pod:234
19151 msgid ""
19152 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19153 "the label, and the UUID."
19154 msgstr ""
19155
19156 #. type: =head2
19157 #: ../inspector/virt-inspector.pod:237
19158 msgid "E<lt>applicationsE<gt>"
19159 msgstr ""
19160
19161 #. type: textblock
19162 #: ../inspector/virt-inspector.pod:239
19163 msgid ""
19164 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19165 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19166 "machine."
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../inspector/virt-inspector.pod:243
19171 msgid ""
19172 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19173 "Typical values would be C<rpm> and C<deb>."
19174 msgstr ""
19175
19176 #. type: textblock
19177 #: ../inspector/virt-inspector.pod:246
19178 msgid ""
19179 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19180 "Typical values include C<yum>, C<up2date> and C<apt>"
19181 msgstr ""
19182
19183 #. type: textblock
19184 #: ../inspector/virt-inspector.pod:249
19185 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19186 msgstr ""
19187
19188 #. type: verbatim
19189 #: ../inspector/virt-inspector.pod:252
19190 #, no-wrap
19191 msgid ""
19192 " <operatingsystems>\n"
19193 "   <operatingsystem>\n"
19194 "     ...\n"
19195 "     <applications>\n"
19196 "       <application>\n"
19197 "         <name>coreutils</name>\n"
19198 "         <version>8.5</version>\n"
19199 "         <release>1</release>\n"
19200 "       </application>\n"
19201 "\n"
19202 msgstr ""
19203
19204 #. type: textblock
19205 #: ../inspector/virt-inspector.pod:262
19206 msgid ""
19207 "The version and release fields may not be available for some types guests.  "
19208 "Other fields are possible, see "
19209 "L<guestfs(3)/guestfs_inspect_list_applications>."
19210 msgstr ""
19211
19212 #. type: =head2
19213 #: ../inspector/virt-inspector.pod:266
19214 msgid "E<lt>drive_mappingsE<gt>"
19215 msgstr ""
19216
19217 #. type: textblock
19218 #: ../inspector/virt-inspector.pod:268
19219 msgid ""
19220 "For operating systems like Windows which use drive letters, virt-inspector "
19221 "is able to find out how drive letters map to filesystems."
19222 msgstr ""
19223
19224 #. type: verbatim
19225 #: ../inspector/virt-inspector.pod:272
19226 #, no-wrap
19227 msgid ""
19228 " <operatingsystems>\n"
19229 "   <operatingsystem>\n"
19230 "     ...\n"
19231 "     <drive_mappings>\n"
19232 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19233 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19234 "     </drive_mappings>\n"
19235 "\n"
19236 msgstr ""
19237
19238 #. type: textblock
19239 #: ../inspector/virt-inspector.pod:280
19240 msgid ""
19241 "In the example above, drive C maps to the filesystem on the second partition "
19242 "on the first disk, and drive E maps to the filesystem on the first partition "
19243 "on the second disk."
19244 msgstr ""
19245
19246 #. type: textblock
19247 #: ../inspector/virt-inspector.pod:284
19248 msgid ""
19249 "Note that this only covers permanent local filesystem mappings, not things "
19250 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19251 "here."
19252 msgstr ""
19253
19254 #. type: =head2
19255 #: ../inspector/virt-inspector.pod:288
19256 msgid "E<lt>iconE<gt>"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../inspector/virt-inspector.pod:290
19261 msgid ""
19262 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19263 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19264 "very large and high quality."
19265 msgstr ""
19266
19267 #. type: verbatim
19268 #: ../inspector/virt-inspector.pod:294
19269 #, no-wrap
19270 msgid ""
19271 " <operatingsystems>\n"
19272 "   <operatingsystem>\n"
19273 "     ...\n"
19274 "     <icon>\n"
19275 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19276 "       [... many lines of base64 data ...]\n"
19277 "     </icon>\n"
19278 "\n"
19279 msgstr ""
19280
19281 #. type: textblock
19282 #: ../inspector/virt-inspector.pod:302
19283 msgid ""
19284 "To display the icon, you have to extract it and convert the base64 data back "
19285 "to a binary file.  Use an XPath query or simply an editor to extract the "
19286 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19287 "to a PNG file:"
19288 msgstr ""
19289
19290 #. type: verbatim
19291 #: ../inspector/virt-inspector.pod:307
19292 #, no-wrap
19293 msgid ""
19294 " base64 -i -d < icon.data > icon.png\n"
19295 "\n"
19296 msgstr ""
19297
19298 #. type: =head2
19299 #: ../inspector/virt-inspector.pod:309
19300 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19301 msgstr ""
19302
19303 #. type: textblock
19304 #: ../inspector/virt-inspector.pod:311
19305 msgid ""
19306 "Virt-inspector can detect some operating system installers on install disks, "
19307 "live CDs, bootable USB keys and more."
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../inspector/virt-inspector.pod:314
19312 msgid ""
19313 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19314 "fields may be present to indicate a live CD, network installer, or one part "
19315 "of a multipart CD.  For example:"
19316 msgstr ""
19317
19318 #. type: verbatim
19319 #: ../inspector/virt-inspector.pod:318
19320 #, no-wrap
19321 msgid ""
19322 " <operatingsystems>\n"
19323 "   <operatingsystem>\n"
19324 "     <root>/dev/sda</root>\n"
19325 "     <name>linux</name>\n"
19326 "     <arch>i386</arch>\n"
19327 "     <distro>ubuntu</distro>\n"
19328 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19329 "Meerkat&quot;</product_name>\n"
19330 "     <major_version>10</major_version>\n"
19331 "     <minor_version>10</minor_version>\n"
19332 "     <format>installer</format>\n"
19333 "     <live/>\n"
19334 "\n"
19335 msgstr ""
19336
19337 #. type: =head1
19338 #: ../inspector/virt-inspector.pod:330
19339 msgid "USING XPATH"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../inspector/virt-inspector.pod:332
19344 msgid ""
19345 "You can use the XPath query language, and/or the xpath tool, in order to "
19346 "select parts of the XML."
19347 msgstr ""
19348
19349 #. type: verbatim
19350 #: ../inspector/virt-inspector.pod:337
19351 #, no-wrap
19352 msgid ""
19353 " $ virt-inspector -d Guest | xpath //filesystems\n"
19354 " Found 1 nodes:\n"
19355 " -- NODE --\n"
19356 " <filesystems>\n"
19357 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19358 "        <type>ext4</type>\n"
19359 " [etc]\n"
19360 "\n"
19361 msgstr ""
19362
19363 #. type: verbatim
19364 #: ../inspector/virt-inspector.pod:345
19365 #, no-wrap
19366 msgid ""
19367 " $ virt-inspector -d Guest | \\\n"
19368 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19369 " Query didn't return a nodeset. Value: ext4\n"
19370 "\n"
19371 msgstr ""
19372
19373 #. type: =head1
19374 #: ../inspector/virt-inspector.pod:356
19375 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19376 msgstr ""
19377
19378 #. type: textblock
19379 #: ../inspector/virt-inspector.pod:358
19380 msgid ""
19381 "Early versions of libguestfs shipped with a different virt-inspector program "
19382 "written in Perl (the current version is written in C).  The XML output of "
19383 "the Perl virt-inspector was different and it could also output in other "
19384 "formats like text."
19385 msgstr ""
19386
19387 #. type: textblock
19388 #: ../inspector/virt-inspector.pod:363
19389 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19390 msgstr ""
19391
19392 #. type: textblock
19393 #: ../inspector/virt-inspector.pod:366
19394 msgid ""
19395 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19396 "versions of virt-inspector with different names:"
19397 msgstr ""
19398
19399 #. type: verbatim
19400 #: ../inspector/virt-inspector.pod:369
19401 #, no-wrap
19402 msgid ""
19403 " virt-inspector     Old Perl version.\n"
19404 " virt-inspector2    New C version.\n"
19405 "\n"
19406 msgstr ""
19407
19408 #. type: textblock
19409 #: ../inspector/virt-inspector.pod:374
19410 msgid ""
19411 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19412 "L<base64(1)>, L<http://libguestfs.org/>."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../inspector/virt-inspector.pod:390
19417 msgid "Matthew Booth L<mbooth@redhat.com>"
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../java/examples/guestfs-java.pod:5
19422 msgid "guestfs-java - How to use libguestfs from Java"
19423 msgstr ""
19424
19425 #. type: verbatim
19426 #: ../java/examples/guestfs-java.pod:9
19427 #, no-wrap
19428 msgid ""
19429 " import com.redhat.et.libguestfs.*;\n"
19430 " \n"
19431 msgstr ""
19432
19433 #. type: verbatim
19434 #: ../java/examples/guestfs-java.pod:11
19435 #, no-wrap
19436 msgid ""
19437 " GuestFS g = new GuestFS ();\n"
19438 " g.add_drive_opts (\"disk.img\", null);\n"
19439 " g.launch ();\n"
19440 "\n"
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../java/examples/guestfs-java.pod:17
19445 msgid ""
19446 "This manual page documents how to call libguestfs from the Java programming "
19447 "language.  This page just documents the differences from the C API and gives "
19448 "some examples.  If you are not familiar with using libguestfs, you also need "
19449 "to read L<guestfs(3)>."
19450 msgstr ""
19451
19452 #. type: =head2
19453 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19454 msgid "CLOSING THE HANDLE"
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../java/examples/guestfs-java.pod:24
19459 msgid ""
19460 "The handle is closed when it is reaped by the garbage collector.  Because "
19461 "libguestfs handles include a lot of state, it is also possible to close (and "
19462 "hence free) them explicitly by calling the C<close> method."
19463 msgstr ""
19464
19465 #. type: =head2
19466 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19467 msgid "EXCEPTIONS"
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../java/examples/guestfs-java.pod:31
19472 msgid ""
19473 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19474 "exception.  This has a single parameter which is the error message (a "
19475 "C<String>)."
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../java/examples/guestfs-java.pod:35
19480 msgid "Calling any method on a closed handle raises the same exception."
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../java/examples/guestfs-java.pod:47
19485 msgid ""
19486 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, "
19487 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19488 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19489 msgstr ""
19490
19491 #. type: textblock
19492 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
19493 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19494 msgstr ""
19495
19496 #. type: textblock
19497 #: ../ocaml/examples/guestfs-ocaml.pod:5
19498 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../ocaml/examples/guestfs-ocaml.pod:9
19503 msgid "Module style:"
19504 msgstr ""
19505
19506 #. type: verbatim
19507 #: ../ocaml/examples/guestfs-ocaml.pod:11
19508 #, no-wrap
19509 msgid ""
19510 " let g = Guestfs.create () in\n"
19511 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19512 " Guestfs.launch g;\n"
19513 "\n"
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../ocaml/examples/guestfs-ocaml.pod:15
19518 msgid "Object-oriented style:"
19519 msgstr ""
19520
19521 #. type: verbatim
19522 #: ../ocaml/examples/guestfs-ocaml.pod:17
19523 #, no-wrap
19524 msgid ""
19525 " let g = new Guestfs.guestfs () in\n"
19526 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19527 " g#launch ();\n"
19528 "\n"
19529 msgstr ""
19530
19531 #. type: verbatim
19532 #: ../ocaml/examples/guestfs-ocaml.pod:21
19533 #, no-wrap
19534 msgid ""
19535 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19536 "or:\n"
19537 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19538 "\n"
19539 msgstr ""
19540
19541 #. type: textblock
19542 #: ../ocaml/examples/guestfs-ocaml.pod:27
19543 msgid ""
19544 "This manual page documents how to call libguestfs from the OCaml programming "
19545 "language.  This page just documents the differences from the C API and gives "
19546 "some examples.  If you are not familiar with using libguestfs, you also need "
19547 "to read L<guestfs(3)>."
19548 msgstr ""
19549
19550 #. type: =head2
19551 #: ../ocaml/examples/guestfs-ocaml.pod:32
19552 msgid "PROGRAMMING STYLES"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../ocaml/examples/guestfs-ocaml.pod:34
19557 msgid ""
19558 "There are two different programming styles supported by the OCaml bindings.  "
19559 "You can use a module style, with each C function mapped to an OCaml "
19560 "function:"
19561 msgstr ""
19562
19563 #. type: verbatim
19564 #: ../ocaml/examples/guestfs-ocaml.pod:38
19565 #, no-wrap
19566 msgid ""
19567 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19568 "\n"
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../ocaml/examples/guestfs-ocaml.pod:40
19573 msgid "becomes:"
19574 msgstr ""
19575
19576 #. type: verbatim
19577 #: ../ocaml/examples/guestfs-ocaml.pod:42
19578 #, no-wrap
19579 msgid ""
19580 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19581 "\n"
19582 msgstr ""
19583
19584 #. type: textblock
19585 #: ../ocaml/examples/guestfs-ocaml.pod:44
19586 msgid ""
19587 "Alternately you can use an object-oriented style, calling methods on the "
19588 "class C<Guestfs.guestfs>:"
19589 msgstr ""
19590
19591 #. type: verbatim
19592 #: ../ocaml/examples/guestfs-ocaml.pod:47
19593 #, no-wrap
19594 msgid ""
19595 " method set_verbose : bool -> unit\n"
19596 "\n"
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../ocaml/examples/guestfs-ocaml.pod:49
19601 msgid ""
19602 "The object-oriented style is usually briefer, and the minor performance "
19603 "penalty isn't noticable in the general overhead of performing libguestfs "
19604 "functions."
19605 msgstr ""
19606
19607 #. type: textblock
19608 #: ../ocaml/examples/guestfs-ocaml.pod:55
19609 msgid ""
19610 "The handle is closed when it is reaped by the garbage collector.  Because "
19611 "libguestfs handles include a lot of state, it is also possible to close (and "
19612 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19613 "method."
19614 msgstr ""
19615
19616 #. type: textblock
19617 #: ../ocaml/examples/guestfs-ocaml.pod:62
19618 msgid ""
19619 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19620 "exception.  This has a single parameter which is the error message (a "
19621 "string)."
19622 msgstr ""
19623
19624 #. type: textblock
19625 #: ../ocaml/examples/guestfs-ocaml.pod:66
19626 msgid ""
19627 "Calling any function/method on a closed handle raises "
19628 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19629 "that you called."
19630 msgstr ""
19631
19632 #. type: textblock
19633 #: ../ocaml/examples/guestfs-ocaml.pod:80
19634 msgid ""
19635 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19636 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19637 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19638 msgstr ""
19639
19640 #. type: textblock
19641 #: ../perl/examples/guestfs-perl.pod:5
19642 msgid "guestfs-perl - How to use libguestfs from Perl"
19643 msgstr ""
19644
19645 #. type: verbatim
19646 #: ../perl/examples/guestfs-perl.pod:9
19647 #, no-wrap
19648 msgid ""
19649 " use Sys::Guestfs;\n"
19650 " \n"
19651 msgstr ""
19652
19653 #. type: verbatim
19654 #: ../perl/examples/guestfs-perl.pod:11
19655 #, no-wrap
19656 msgid ""
19657 " my $h = Sys::Guestfs->new ();\n"
19658 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19659 " $h->launch ();\n"
19660 " $h->mount_options ('', '/dev/sda1', '/');\n"
19661 " $h->touch ('/hello');\n"
19662 " $h->sync ();\n"
19663 "\n"
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../perl/examples/guestfs-perl.pod:20
19668 msgid ""
19669 "This manual page documents how to call libguestfs from the Perl programming "
19670 "language.  This page just documents the differences from the C API and gives "
19671 "some examples.  If you are not familiar with using libguestfs, you also need "
19672 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
19673 msgstr ""
19674
19675 #. type: =head2
19676 #: ../perl/examples/guestfs-perl.pod:26
19677 msgid "ERRORS"
19678 msgstr ""
19679
19680 #. type: textblock
19681 #: ../perl/examples/guestfs-perl.pod:28
19682 msgid ""
19683 "Errors from libguestfs functions turn into calls to C<croak> (see "
19684 "L<Carp(3)>)."
19685 msgstr ""
19686
19687 #. type: textblock
19688 #: ../perl/examples/guestfs-perl.pod:41
19689 msgid ""
19690 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
19691 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
19692 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19693 msgstr ""
19694
19695 #. type: textblock
19696 #: ../python/examples/guestfs-python.pod:5
19697 msgid "guestfs-python - How to use libguestfs from Python"
19698 msgstr ""
19699
19700 #. type: verbatim
19701 #: ../python/examples/guestfs-python.pod:9
19702 #, no-wrap
19703 msgid ""
19704 " import guestfs\n"
19705 " g = guestfs.GuestFS ()\n"
19706 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
19707 " g.launch\n"
19708 "\n"
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../python/examples/guestfs-python.pod:16
19713 msgid ""
19714 "This manual page documents how to call libguestfs from the Python "
19715 "programming language.  This page just documents the differences from the C "
19716 "API and gives some examples.  If you are not familiar with using libguestfs, "
19717 "you also need to read L<guestfs(3)>."
19718 msgstr ""
19719
19720 #. type: textblock
19721 #: ../python/examples/guestfs-python.pod:23
19722 msgid ""
19723 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
19724 "single string argument which is the error message."
19725 msgstr ""
19726
19727 #. type: =head2
19728 #: ../python/examples/guestfs-python.pod:26
19729 msgid "MORE DOCUMENTATION"
19730 msgstr ""
19731
19732 #. type: textblock
19733 #: ../python/examples/guestfs-python.pod:28
19734 msgid "Type:"
19735 msgstr ""
19736
19737 #. type: verbatim
19738 #: ../python/examples/guestfs-python.pod:30
19739 #, no-wrap
19740 msgid ""
19741 " $ python\n"
19742 " >>> import guestfs\n"
19743 " >>> help (guestfs)\n"
19744 "\n"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../python/examples/guestfs-python.pod:44
19749 msgid ""
19750 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19751 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
19752 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19753 msgstr ""
19754
19755 #. type: textblock
19756 #: ../rescue/virt-rescue.pod:5
19757 msgid "virt-rescue - Run a rescue shell on a virtual machine"
19758 msgstr ""
19759
19760 #. type: verbatim
19761 #: ../rescue/virt-rescue.pod:9
19762 #, no-wrap
19763 msgid ""
19764 " virt-rescue [--options] -d domname\n"
19765 "\n"
19766 msgstr ""
19767
19768 #. type: verbatim
19769 #: ../rescue/virt-rescue.pod:11
19770 #, no-wrap
19771 msgid ""
19772 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
19773 "\n"
19774 msgstr ""
19775
19776 #. type: verbatim
19777 #: ../rescue/virt-rescue.pod:15
19778 #, no-wrap
19779 msgid ""
19780 " virt-rescue [--options] domname\n"
19781 "\n"
19782 msgstr ""
19783
19784 #. type: verbatim
19785 #: ../rescue/virt-rescue.pod:17
19786 #, no-wrap
19787 msgid ""
19788 " virt-rescue [--options] disk.img [disk.img ...]\n"
19789 "\n"
19790 msgstr ""
19791
19792 #. type: textblock
19793 #: ../rescue/virt-rescue.pod:21
19794 msgid ""
19795 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
19796 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
19797 "you from doing this, but doesn't catch all cases."
19798 msgstr ""
19799
19800 #. type: textblock
19801 #: ../rescue/virt-rescue.pod:25
19802 msgid ""
19803 "However if you use the I<--ro> (read only) option, then you can attach a "
19804 "shell to a live virtual machine.  The results might be strange or "
19805 "inconsistent at times but you won't get disk corruption."
19806 msgstr ""
19807
19808 #. type: textblock
19809 #: ../rescue/virt-rescue.pod:31
19810 msgid ""
19811 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
19812 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
19813 "recovery tools which you can use to examine or rescue a virtual machine or "
19814 "disk image."
19815 msgstr ""
19816
19817 #. type: textblock
19818 #: ../rescue/virt-rescue.pod:36
19819 msgid ""
19820 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
19821 "on disk image(s):"
19822 msgstr ""
19823
19824 #. type: verbatim
19825 #: ../rescue/virt-rescue.pod:39
19826 #, no-wrap
19827 msgid ""
19828 " virt-rescue -d GuestName\n"
19829 "\n"
19830 msgstr ""
19831
19832 #. type: verbatim
19833 #: ../rescue/virt-rescue.pod:41
19834 #, no-wrap
19835 msgid ""
19836 " virt-rescue --ro -a /path/to/disk.img\n"
19837 "\n"
19838 msgstr ""
19839
19840 #. type: verbatim
19841 #: ../rescue/virt-rescue.pod:43
19842 #, no-wrap
19843 msgid ""
19844 " virt-rescue -a /dev/sdc\n"
19845 "\n"
19846 msgstr ""
19847
19848 #. type: textblock
19849 #: ../rescue/virt-rescue.pod:45
19850 msgid "For live VMs you I<must> use the --ro option."
19851 msgstr ""
19852
19853 #. type: textblock
19854 #: ../rescue/virt-rescue.pod:47
19855 msgid ""
19856 "When you run virt-rescue on a virtual machine or disk image, you are placed "
19857 "in an interactive bash shell where you can use many ordinary Linux "
19858 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
19859 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
19860 "is an empty directory called C</sysroot> where you can mount filesystems."
19861 msgstr ""
19862
19863 #. type: textblock
19864 #: ../rescue/virt-rescue.pod:54
19865 msgid ""
19866 "In the example below, we list logical volumes, then choose one to mount "
19867 "under C</sysroot>:"
19868 msgstr ""
19869
19870 #. type: verbatim
19871 #: ../rescue/virt-rescue.pod:57
19872 #, no-wrap
19873 msgid ""
19874 " ><rescue> lvs\n"
19875 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
19876 " lv_root vg_f11x64 -wi-a-   8.83G\n"
19877 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
19878 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
19879 " ><rescue> ls /sysroot\n"
19880 "\n"
19881 msgstr ""
19882
19883 #. type: textblock
19884 #: ../rescue/virt-rescue.pod:64
19885 msgid ""
19886 "If you don't know what filesystems are available on the virtual machine then "
19887 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
19888 msgstr ""
19889
19890 #. type: textblock
19891 #: ../rescue/virt-rescue.pod:70
19892 msgid ""
19893 "Virt-rescue can be used on I<any> disk image file or device, not just a "
19894 "virtual machine.  For example you can use it on a blank file if you want to "
19895 "partition that file (although we would recommend using L<guestfish(1)> "
19896 "instead as it is more suitable for this purpose).  You can even use "
19897 "virt-rescue on things like SD cards."
19898 msgstr ""
19899
19900 #. type: textblock
19901 #: ../rescue/virt-rescue.pod:76
19902 msgid ""
19903 "Virt-rescue does not require root.  You only need to run it as root if you "
19904 "need root to open the disk image."
19905 msgstr ""
19906
19907 #. type: textblock
19908 #: ../rescue/virt-rescue.pod:79
19909 msgid ""
19910 "This tool is just designed for quick interactive hacking on a virtual "
19911 "machine.  For more structured access to a virtual machine disk image, you "
19912 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
19913 "make scripted changes to guests, use L<guestfish(1)>."
19914 msgstr ""
19915
19916 #. type: =item
19917 #: ../rescue/virt-rescue.pod:103
19918 msgid "B<--append kernelopts>"
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../rescue/virt-rescue.pod:105
19923 msgid "Pass additional options to the rescue kernel."
19924 msgstr ""
19925
19926 #. type: verbatim
19927 #: ../rescue/virt-rescue.pod:135
19928 #, no-wrap
19929 msgid ""
19930 " virt-rescue --format=raw -a disk.img\n"
19931 "\n"
19932 msgstr ""
19933
19934 #. type: verbatim
19935 #: ../rescue/virt-rescue.pod:139
19936 #, no-wrap
19937 msgid ""
19938 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
19939 "\n"
19940 msgstr ""
19941
19942 #. type: =item
19943 #: ../rescue/virt-rescue.pod:148
19944 msgid "B<-m MB>"
19945 msgstr ""
19946
19947 #. type: =item
19948 #: ../rescue/virt-rescue.pod:150
19949 msgid "B<--memsize MB>"
19950 msgstr ""
19951
19952 #. type: textblock
19953 #: ../rescue/virt-rescue.pod:152
19954 msgid ""
19955 "Change the amount of memory allocated to the rescue system.  The default is "
19956 "set by libguestfs and is small but adequate for running system tools.  The "
19957 "occasional program might need more memory.  The parameter is specified in "
19958 "megabytes."
19959 msgstr ""
19960
19961 #. type: =item
19962 #: ../rescue/virt-rescue.pod:157
19963 msgid "B<--network>"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../rescue/virt-rescue.pod:159
19968 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../rescue/virt-rescue.pod:165
19973 msgid "Open the image read-only."
19974 msgstr ""
19975
19976 #. type: textblock
19977 #: ../rescue/virt-rescue.pod:175
19978 msgid ""
19979 "Enable SELinux in the rescue appliance.  You should read "
19980 "L<guestfs(3)/SELINUX> before using this option."
19981 msgstr ""
19982
19983 #. type: textblock
19984 #: ../rescue/virt-rescue.pod:194
19985 msgid ""
19986 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
19987 "are done read-write."
19988 msgstr ""
19989
19990 #. type: textblock
19991 #: ../rescue/virt-rescue.pod:207
19992 msgid "Previous versions of virt-rescue allowed you to write either:"
19993 msgstr ""
19994
19995 #. type: verbatim
19996 #: ../rescue/virt-rescue.pod:209
19997 #, no-wrap
19998 msgid ""
19999 " virt-rescue disk.img [disk.img ...]\n"
20000 "\n"
20001 msgstr ""
20002
20003 #. type: verbatim
20004 #: ../rescue/virt-rescue.pod:213
20005 #, no-wrap
20006 msgid ""
20007 " virt-rescue guestname\n"
20008 "\n"
20009 msgstr ""
20010
20011 #. type: =head1
20012 #: ../rescue/virt-rescue.pod:221
20013 msgid "NETWORK"
20014 msgstr ""
20015
20016 #. type: textblock
20017 #: ../rescue/virt-rescue.pod:223
20018 msgid ""
20019 "Adding the I<--network> option enables QEMU user networking in the rescue "
20020 "appliance.  There are some differences between user networking and ordinary "
20021 "networking:"
20022 msgstr ""
20023
20024 #. type: =item
20025 #: ../rescue/virt-rescue.pod:229
20026 msgid "ping does not work"
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../rescue/virt-rescue.pod:231
20031 msgid ""
20032 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
20033 "send the ping packets, and because virt-rescue must be able to run as "
20034 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
20035 "command.  The ping command will appear to resolve addresses but will not be "
20036 "able to send or receive any packets.  This does not mean that the network is "
20037 "not working."
20038 msgstr ""
20039
20040 #. type: =item
20041 #: ../rescue/virt-rescue.pod:238
20042 msgid "cannot receive connections"
20043 msgstr ""
20044
20045 #. type: textblock
20046 #: ../rescue/virt-rescue.pod:240
20047 msgid "QEMU user networking cannot receive incoming connections."
20048 msgstr ""
20049
20050 #. type: =item
20051 #: ../rescue/virt-rescue.pod:242
20052 msgid "making TCP connections"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../rescue/virt-rescue.pod:244
20057 msgid ""
20058 "The virt-rescue appliance needs to be small and so does not include many "
20059 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20060 "make TCP connections from the shell using the magical "
20061 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20062 msgstr ""
20063
20064 #. type: verbatim
20065 #: ../rescue/virt-rescue.pod:249
20066 #, no-wrap
20067 msgid ""
20068 " exec 3<>/dev/tcp/redhat.com/80\n"
20069 " echo \"GET /\" >&3\n"
20070 " cat <&3\n"
20071 "\n"
20072 msgstr ""
20073
20074 #. type: textblock
20075 #: ../rescue/virt-rescue.pod:253
20076 msgid "See L<bash(1)> for more details."
20077 msgstr ""
20078
20079 #. type: textblock
20080 #: ../rescue/virt-rescue.pod:259
20081 msgid ""
20082 "Several environment variables affect virt-rescue.  See "
20083 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20084 msgstr ""
20085
20086 #. type: textblock
20087 #: ../rescue/virt-rescue.pod:286
20088 msgid ""
20089 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20090 "L<http://libguestfs.org/>."
20091 msgstr ""
20092
20093 #. type: textblock
20094 #: ../resize/virt-resize.pod:5
20095 msgid "virt-resize - Resize a virtual machine disk"
20096 msgstr ""
20097
20098 #. type: verbatim
20099 #: ../resize/virt-resize.pod:9
20100 #, no-wrap
20101 msgid ""
20102 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20103 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20104 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20105 "\n"
20106 msgstr ""
20107
20108 #. type: textblock
20109 #: ../resize/virt-resize.pod:15
20110 msgid ""
20111 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20112 "larger or smaller overall, and resizing or deleting any partitions contained "
20113 "within."
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../resize/virt-resize.pod:19
20118 msgid ""
20119 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20120 "not> be used on live virtual machines - for consistent results, shut the "
20121 "virtual machine down before resizing it."
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../resize/virt-resize.pod:23
20126 msgid ""
20127 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20128 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20129 msgstr ""
20130
20131 #. type: =item
20132 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396 ../src/guestfs.pod:2466
20133 msgid "1."
20134 msgstr ""
20135
20136 #. type: textblock
20137 #: ../resize/virt-resize.pod:33
20138 msgid ""
20139 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20140 "fill the extra 5GB of space."
20141 msgstr ""
20142
20143 #. type: verbatim
20144 #: ../resize/virt-resize.pod:36
20145 #, no-wrap
20146 msgid ""
20147 " virt-filesystems --long -h --all -a olddisk\n"
20148 " \n"
20149 msgstr ""
20150
20151 #. type: verbatim
20152 #: ../resize/virt-resize.pod:38
20153 #, no-wrap
20154 msgid ""
20155 " truncate -r olddisk newdisk\n"
20156 " truncate -s +5G newdisk\n"
20157 " \n"
20158 msgstr ""
20159
20160 #. type: verbatim
20161 #: ../resize/virt-resize.pod:41
20162 #, no-wrap
20163 msgid ""
20164 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20165 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20166 "\n"
20167 msgstr ""
20168
20169 #. type: =item
20170 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400 ../src/guestfs.pod:2491
20171 msgid "2."
20172 msgstr ""
20173
20174 #. type: textblock
20175 #: ../resize/virt-resize.pod:46
20176 msgid ""
20177 "As above, but make the /boot partition 200MB bigger, while giving the "
20178 "remaining space to /dev/sda2:"
20179 msgstr ""
20180
20181 #. type: verbatim
20182 #: ../resize/virt-resize.pod:49
20183 #, no-wrap
20184 msgid ""
20185 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20186 "   olddisk newdisk\n"
20187 "\n"
20188 msgstr ""
20189
20190 #. type: =item
20191 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1406
20192 msgid "3."
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../resize/virt-resize.pod:54
20197 msgid ""
20198 "As in the first example, but expand a logical volume as the final step.  "
20199 "This is what you would typically use for Linux guests that use LVM:"
20200 msgstr ""
20201
20202 #. type: verbatim
20203 #: ../resize/virt-resize.pod:58
20204 #, no-wrap
20205 msgid ""
20206 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20207 "   olddisk newdisk\n"
20208 "\n"
20209 msgstr ""
20210
20211 #. type: =item
20212 #: ../resize/virt-resize.pod:61
20213 msgid "4."
20214 msgstr ""
20215
20216 #. type: textblock
20217 #: ../resize/virt-resize.pod:63
20218 msgid ""
20219 "As in the first example, but the output format will be qcow2 instead of a "
20220 "raw disk:"
20221 msgstr ""
20222
20223 #. type: verbatim
20224 #: ../resize/virt-resize.pod:66
20225 #, no-wrap
20226 msgid ""
20227 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20228 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20229 "\n"
20230 msgstr ""
20231
20232 #. type: =head1
20233 #: ../resize/virt-resize.pod:71
20234 msgid "DETAILED USAGE"
20235 msgstr ""
20236
20237 #. type: =head2
20238 #: ../resize/virt-resize.pod:73
20239 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20240 msgstr ""
20241
20242 #. type: =item
20243 #: ../resize/virt-resize.pod:77
20244 msgid "1. Shut down the virtual machine"
20245 msgstr ""
20246
20247 #. type: =item
20248 #: ../resize/virt-resize.pod:79
20249 msgid "2. Locate input disk image"
20250 msgstr ""
20251
20252 #. type: textblock
20253 #: ../resize/virt-resize.pod:81
20254 msgid ""
20255 "Locate the input disk image (ie. the file or device on the host containing "
20256 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20257 "dumpxml> like this to find the disk image name:"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../resize/virt-resize.pod:85
20262 #, no-wrap
20263 msgid ""
20264 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20265 " Found 1 nodes:\n"
20266 " -- NODE --\n"
20267 " <source dev=\"/dev/vg/lv_guest\" />\n"
20268 "\n"
20269 msgstr ""
20270
20271 #. type: =item
20272 #: ../resize/virt-resize.pod:90
20273 msgid "3. Look at current sizing"
20274 msgstr ""
20275
20276 #. type: textblock
20277 #: ../resize/virt-resize.pod:92
20278 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20279 msgstr ""
20280
20281 #. type: verbatim
20282 #: ../resize/virt-resize.pod:95
20283 #, no-wrap
20284 msgid ""
20285 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20286 " Name       Type       Size  Parent\n"
20287 " /dev/sda1  partition  101M  /dev/sda\n"
20288 " /dev/sda2  partition  7.9G  /dev/sda\n"
20289 " /dev/sda   device     8.0G  -\n"
20290 "\n"
20291 msgstr ""
20292
20293 #. type: textblock
20294 #: ../resize/virt-resize.pod:101
20295 msgid ""
20296 "(This example is a virtual machine with an 8 GB disk which we would like to "
20297 "expand up to 10 GB)."
20298 msgstr ""
20299
20300 #. type: =item
20301 #: ../resize/virt-resize.pod:104
20302 msgid "4. Create output disk"
20303 msgstr ""
20304
20305 #. type: textblock
20306 #: ../resize/virt-resize.pod:106
20307 msgid ""
20308 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20309 "to store the resized output disk."
20310 msgstr ""
20311
20312 #. type: textblock
20313 #: ../resize/virt-resize.pod:109
20314 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20315 msgstr ""
20316
20317 #. type: verbatim
20318 #: ../resize/virt-resize.pod:112
20319 #, no-wrap
20320 msgid ""
20321 " # rm -f outdisk\n"
20322 " # truncate -s 10G outdisk\n"
20323 "\n"
20324 msgstr ""
20325
20326 #. type: textblock
20327 #: ../resize/virt-resize.pod:115
20328 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20329 msgstr ""
20330
20331 #. type: verbatim
20332 #: ../resize/virt-resize.pod:117
20333 #, no-wrap
20334 msgid ""
20335 " # lvcreate -L 10G -n lv_name vg_name\n"
20336 "\n"
20337 msgstr ""
20338
20339 #. type: textblock
20340 #: ../resize/virt-resize.pod:119
20341 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20342 msgstr ""
20343
20344 #. type: verbatim
20345 #: ../resize/virt-resize.pod:121
20346 #, no-wrap
20347 msgid ""
20348 " # virsh pool-list\n"
20349 " # virsh vol-create-as poolname newvol 10G\n"
20350 "\n"
20351 msgstr ""
20352
20353 #. type: =item
20354 #: ../resize/virt-resize.pod:124
20355 msgid "5. Resize"
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../resize/virt-resize.pod:126
20360 msgid ""
20361 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20362 "file) and the output disk.  The output disk is the one created in the "
20363 "previous step."
20364 msgstr ""
20365
20366 #. type: verbatim
20367 #: ../resize/virt-resize.pod:130
20368 #, no-wrap
20369 msgid ""
20370 " # virt-resize indisk outdisk\n"
20371 "\n"
20372 msgstr ""
20373
20374 #. type: textblock
20375 #: ../resize/virt-resize.pod:132
20376 msgid ""
20377 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20378 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20379 "larger, then an extra, empty partition is created at the end of the disk "
20380 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20381 "error."
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../resize/virt-resize.pod:138
20386 msgid ""
20387 "More realistically you'd want to expand existing partitions in the disk "
20388 "image by passing extra options (for the full list see the L</OPTIONS> "
20389 "section below)."
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../resize/virt-resize.pod:142
20394 msgid ""
20395 "L</--expand> is the most useful option.  It expands the named partition "
20396 "within the disk to fill any extra space:"
20397 msgstr ""
20398
20399 #. type: verbatim
20400 #: ../resize/virt-resize.pod:145
20401 #, no-wrap
20402 msgid ""
20403 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20404 "\n"
20405 msgstr ""
20406
20407 #. type: textblock
20408 #: ../resize/virt-resize.pod:147
20409 msgid ""
20410 "(In this case, an extra partition is I<not> created at the end of the disk, "
20411 "because there will be no unused space)."
20412 msgstr ""
20413
20414 #. type: textblock
20415 #: ../resize/virt-resize.pod:150
20416 msgid ""
20417 "L</--resize> is the other commonly used option.  The following would "
20418 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20419 "rest of the available space:"
20420 msgstr ""
20421
20422 #. type: verbatim
20423 #: ../resize/virt-resize.pod:154
20424 #, no-wrap
20425 msgid ""
20426 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20427 "     indisk outdisk\n"
20428 "\n"
20429 msgstr ""
20430
20431 #. type: textblock
20432 #: ../resize/virt-resize.pod:157
20433 msgid ""
20434 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20435 "if virt-resize knows how, it will resize the contents, the equivalent of "
20436 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20437 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20438 "filesystems, so you would have to online resize them after booting the "
20439 "guest."
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../resize/virt-resize.pod:164
20444 msgid "Other options are covered below."
20445 msgstr ""
20446
20447 #. type: =item
20448 #: ../resize/virt-resize.pod:166
20449 msgid "6. Test"
20450 msgstr ""
20451
20452 #. type: textblock
20453 #: ../resize/virt-resize.pod:168
20454 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20455 msgstr ""
20456
20457 #. type: textblock
20458 #: ../resize/virt-resize.pod:170
20459 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20460 msgstr ""
20461
20462 #. type: verbatim
20463 #: ../resize/virt-resize.pod:172
20464 #, no-wrap
20465 msgid ""
20466 " # virsh edit guestname\n"
20467 "\n"
20468 msgstr ""
20469
20470 #. type: textblock
20471 #: ../resize/virt-resize.pod:174
20472 msgid ""
20473 "Change E<lt>source ...E<gt>, see "
20474 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../resize/virt-resize.pod:177
20479 msgid "Then start up the domain with the new, resized disk:"
20480 msgstr ""
20481
20482 #. type: verbatim
20483 #: ../resize/virt-resize.pod:179
20484 #, no-wrap
20485 msgid ""
20486 " # virsh start guestname\n"
20487 "\n"
20488 msgstr ""
20489
20490 #. type: textblock
20491 #: ../resize/virt-resize.pod:181
20492 msgid ""
20493 "and check that it still works.  See also the L</NOTES> section below for "
20494 "additional information."
20495 msgstr ""
20496
20497 #. type: =item
20498 #: ../resize/virt-resize.pod:184
20499 msgid "7. Resize LVs etc inside the guest"
20500 msgstr ""
20501
20502 #. type: textblock
20503 #: ../resize/virt-resize.pod:186
20504 msgid "(This can also be done offline using L<guestfish(1)>)"
20505 msgstr ""
20506
20507 #. type: textblock
20508 #: ../resize/virt-resize.pod:188
20509 msgid ""
20510 "Once the guest has booted you should see the new space available, at least "
20511 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20512 "may need to resize LVs inside PVs, and also resize filesystem types that "
20513 "virt-resize does not know how to expand."
20514 msgstr ""
20515
20516 #. type: =head2
20517 #: ../resize/virt-resize.pod:195
20518 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20519 msgstr ""
20520
20521 #. type: textblock
20522 #: ../resize/virt-resize.pod:197
20523 msgid ""
20524 "Shrinking is somewhat more complex than expanding, and only an overview is "
20525 "given here."
20526 msgstr ""
20527
20528 #. type: textblock
20529 #: ../resize/virt-resize.pod:200
20530 msgid ""
20531 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20532 "filesystems).  The user has to shrink content before passing the disk image "
20533 "to virt-resize, and virt-resize will check that the content has been shrunk "
20534 "properly."
20535 msgstr ""
20536
20537 #. type: textblock
20538 #: ../resize/virt-resize.pod:205
20539 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20540 msgstr ""
20541
20542 #. type: textblock
20543 #: ../resize/virt-resize.pod:207
20544 msgid ""
20545 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20546 "steps 3 and 4 above to allocate a new disk image."
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../resize/virt-resize.pod:210
20551 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20552 msgstr ""
20553
20554 #. type: =head2
20555 #: ../resize/virt-resize.pod:213
20556 msgid "IGNORING OR DELETING PARTITIONS"
20557 msgstr ""
20558
20559 #. type: textblock
20560 #: ../resize/virt-resize.pod:215
20561 msgid ""
20562 "virt-resize also gives a convenient way to ignore or delete partitions when "
20563 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20564 "up the copy where you don't care about the existing contents of a "
20565 "partition.  Deleting a partition removes it completely, but note that it "
20566 "also renumbers any partitions after the one which is deleted, which can "
20567 "leave some guests unbootable."
20568 msgstr ""
20569
20570 #. type: =head2
20571 #: ../resize/virt-resize.pod:222
20572 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20573 msgstr ""
20574
20575 #. type: textblock
20576 #: ../resize/virt-resize.pod:224
20577 msgid ""
20578 "If the input disk is in qcow2 format, then you may prefer that the output is "
20579 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20580 "the fly.  The output format is simply determined by the format of the empty "
20581 "output container that you provide.  Thus to create qcow2 output, use:"
20582 msgstr ""
20583
20584 #. type: verbatim
20585 #: ../resize/virt-resize.pod:230
20586 #, no-wrap
20587 msgid ""
20588 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20589 "\n"
20590 msgstr ""
20591
20592 #. type: textblock
20593 #: ../resize/virt-resize.pod:232
20594 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20595 msgstr ""
20596
20597 #. type: textblock
20598 #: ../resize/virt-resize.pod:234
20599 msgid "Similarly, to get non-sparse raw output use:"
20600 msgstr ""
20601
20602 #. type: verbatim
20603 #: ../resize/virt-resize.pod:236
20604 #, no-wrap
20605 msgid ""
20606 " fallocate -l size outdisk\n"
20607 "\n"
20608 msgstr ""
20609
20610 #. type: textblock
20611 #: ../resize/virt-resize.pod:238
20612 msgid ""
20613 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20614 "if=/dev/zero of=outdisk bs=1M count=..>)"
20615 msgstr ""
20616
20617 #. type: textblock
20618 #: ../resize/virt-resize.pod:247
20619 msgid "Display help."
20620 msgstr ""
20621
20622 #. type: =item
20623 #: ../resize/virt-resize.pod:249
20624 msgid "B<-d>"
20625 msgstr ""
20626
20627 #. type: =item
20628 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20629 msgid "B<--debug>"
20630 msgstr ""
20631
20632 #. type: textblock
20633 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20634 msgid "Enable debugging messages."
20635 msgstr ""
20636
20637 #. type: =item
20638 #: ../resize/virt-resize.pod:255
20639 msgid "B<--delete part>"
20640 msgstr ""
20641
20642 #. type: textblock
20643 #: ../resize/virt-resize.pod:257
20644 msgid ""
20645 "Delete the named partition.  It would be more accurate to describe this as "
20646 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20647 "the original disk image is left intact."
20648 msgstr ""
20649
20650 #. type: textblock
20651 #: ../resize/virt-resize.pod:261
20652 msgid ""
20653 "Note that when you delete a partition, then anything contained in the "
20654 "partition is also deleted.  Furthermore, this causes any partitions that "
20655 "come after to be I<renumbered>, which can easily make your guest unbootable."
20656 msgstr ""
20657
20658 #. type: textblock
20659 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:448
20660 msgid "You can give this option multiple times."
20661 msgstr ""
20662
20663 #. type: =item
20664 #: ../resize/virt-resize.pod:268
20665 msgid "B<--expand part>"
20666 msgstr ""
20667
20668 #. type: textblock
20669 #: ../resize/virt-resize.pod:270
20670 msgid ""
20671 "Expand the named partition so it uses up all extra space (space left over "
20672 "after any other resize changes that you request have been done)."
20673 msgstr ""
20674
20675 #. type: textblock
20676 #: ../resize/virt-resize.pod:273
20677 msgid ""
20678 "If virt-resize knows how, it will expand the direct content of the "
20679 "partition.  For example, if the partition is an LVM PV, it will expand the "
20680 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
20681 "content it doesn't know about alone."
20682 msgstr ""
20683
20684 #. type: textblock
20685 #: ../resize/virt-resize.pod:278
20686 msgid "Currently virt-resize can resize:"
20687 msgstr ""
20688
20689 #. type: textblock
20690 #: ../resize/virt-resize.pod:284
20691 msgid "ext2, ext3 and ext4 filesystems."
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../resize/virt-resize.pod:288
20696 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
20697 msgstr ""
20698
20699 #. type: textblock
20700 #: ../resize/virt-resize.pod:290
20701 msgid ""
20702 "The filesystem must have been shut down consistently last time it was used.  "
20703 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
20704 "consistency check, so at the first boot after resizing Windows will check "
20705 "the disk."
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../resize/virt-resize.pod:297
20710 msgid ""
20711 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
20712 "inside the PV, but see the I<--LV-expand> option.  The user could also "
20713 "resize LVs as desired after boot."
20714 msgstr ""
20715
20716 #. type: textblock
20717 #: ../resize/virt-resize.pod:303
20718 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
20719 msgstr ""
20720
20721 #. type: textblock
20722 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
20723 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
20724 msgstr ""
20725
20726 #. type: =item
20727 #: ../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
20728 msgid "B<--format> raw"
20729 msgstr ""
20730
20731 #. type: textblock
20732 #: ../resize/virt-resize.pod:311
20733 msgid ""
20734 "Specify the format of the input disk image.  If this flag is not given then "
20735 "it is auto-detected from the image itself."
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../resize/virt-resize.pod:317
20740 msgid ""
20741 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
20742 "AND NON-SPARSE RAW FORMATS>."
20743 msgstr ""
20744
20745 #. type: =item
20746 #: ../resize/virt-resize.pod:320
20747 msgid "B<--ignore part>"
20748 msgstr ""
20749
20750 #. type: textblock
20751 #: ../resize/virt-resize.pod:322
20752 msgid ""
20753 "Ignore the named partition.  Effectively this means the partition is "
20754 "allocated on the destination disk, but the content is not copied across from "
20755 "the source disk.  The content of the partition will be blank (all zero "
20756 "bytes)."
20757 msgstr ""
20758
20759 #. type: =item
20760 #: ../resize/virt-resize.pod:329
20761 msgid "B<--LV-expand logvol>"
20762 msgstr ""
20763
20764 #. type: textblock
20765 #: ../resize/virt-resize.pod:331
20766 msgid ""
20767 "This takes the logical volume and, as a final step, expands it to fill all "
20768 "the space available in its volume group.  A typical usage, assuming a Linux "
20769 "guest with a single PV C</dev/sda2> and a root device called "
20770 "C</dev/vg_guest/lv_root> would be:"
20771 msgstr ""
20772
20773 #. type: verbatim
20774 #: ../resize/virt-resize.pod:336
20775 #, no-wrap
20776 msgid ""
20777 " virt-resize indisk outdisk \\\n"
20778 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
20779 "\n"
20780 msgstr ""
20781
20782 #. type: textblock
20783 #: ../resize/virt-resize.pod:339
20784 msgid ""
20785 "This would first expand the partition (and PV), and then expand the root "
20786 "device to fill the extra space in the PV."
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../resize/virt-resize.pod:342
20791 msgid ""
20792 "The contents of the LV are also resized if virt-resize knows how to do "
20793 "that.  You can stop virt-resize from trying to expand the content by using "
20794 "the option I<--no-expand-content>."
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../resize/virt-resize.pod:346
20799 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../resize/virt-resize.pod:348
20804 msgid ""
20805 "You can give this option multiple times, I<but> it doesn't make sense to do "
20806 "this unless the logical volumes you specify are all in different volume "
20807 "groups."
20808 msgstr ""
20809
20810 #. type: =item
20811 #: ../resize/virt-resize.pod:354
20812 msgid "B<--dryrun>"
20813 msgstr ""
20814
20815 #. type: textblock
20816 #: ../resize/virt-resize.pod:356
20817 msgid "Print a summary of what would be done, but don't do anything."
20818 msgstr ""
20819
20820 #. type: =item
20821 #: ../resize/virt-resize.pod:358
20822 msgid "B<--no-copy-boot-loader>"
20823 msgstr ""
20824
20825 #. type: textblock
20826 #: ../resize/virt-resize.pod:360
20827 msgid ""
20828 "By default, virt-resize copies over some sectors at the start of the disk "
20829 "(up to the beginning of the first partition).  Commonly these sectors "
20830 "contain the Master Boot Record (MBR) and the boot loader, and are required "
20831 "in order for the guest to boot correctly."
20832 msgstr ""
20833
20834 #. type: textblock
20835 #: ../resize/virt-resize.pod:365
20836 msgid ""
20837 "If you specify this flag, then this initial copy is not done.  You may need "
20838 "to reinstall the boot loader in this case."
20839 msgstr ""
20840
20841 #. type: =item
20842 #: ../resize/virt-resize.pod:368
20843 msgid "B<--no-extra-partition>"
20844 msgstr ""
20845
20846 #. type: textblock
20847 #: ../resize/virt-resize.pod:370
20848 msgid ""
20849 "By default, virt-resize creates an extra partition if there is any extra, "
20850 "unused space after all resizing has happened.  Use this option to prevent "
20851 "the extra partition from being created.  If you do this then the extra space "
20852 "will be inaccessible until you run fdisk, parted, or some other partitioning "
20853 "tool in the guest."
20854 msgstr ""
20855
20856 #. type: textblock
20857 #: ../resize/virt-resize.pod:376
20858 msgid ""
20859 "Note that if the surplus space is smaller than 10 MB, no extra partition "
20860 "will be created."
20861 msgstr ""
20862
20863 #. type: =item
20864 #: ../resize/virt-resize.pod:379
20865 msgid "B<--no-expand-content>"
20866 msgstr ""
20867
20868 #. type: textblock
20869 #: ../resize/virt-resize.pod:381
20870 msgid ""
20871 "By default, virt-resize will try to expand the direct contents of "
20872 "partitions, if it knows how (see I<--expand> option above)."
20873 msgstr ""
20874
20875 #. type: textblock
20876 #: ../resize/virt-resize.pod:384
20877 msgid ""
20878 "If you give the I<--no-expand-content> option then virt-resize will not "
20879 "attempt this."
20880 msgstr ""
20881
20882 #. type: =item
20883 #: ../resize/virt-resize.pod:387
20884 msgid "B<--ntfsresize-force>"
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../resize/virt-resize.pod:389
20889 msgid ""
20890 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
20891 "the NTFS disk is marked as needing a consistency check.  You have to use "
20892 "this option if you want to resize a Windows guest multiple times without "
20893 "booting into Windows between each resize."
20894 msgstr ""
20895
20896 #. type: =item
20897 #: ../resize/virt-resize.pod:395
20898 msgid "B<--output-format> raw"
20899 msgstr ""
20900
20901 #. type: textblock
20902 #: ../resize/virt-resize.pod:397
20903 msgid ""
20904 "Specify the format of the output disk image.  If this flag is not given then "
20905 "it is auto-detected from the image itself."
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../resize/virt-resize.pod:403
20910 msgid ""
20911 "Note that this option I<does not create> the output format.  This option "
20912 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
20913 "need to create the output disk with the right format.  See L</QCOW2 AND "
20914 "NON-SPARSE RAW FORMATS>."
20915 msgstr ""
20916
20917 #. type: =item
20918 #: ../resize/virt-resize.pod:408
20919 msgid "B<-q>"
20920 msgstr ""
20921
20922 #. type: =item
20923 #: ../resize/virt-resize.pod:410
20924 msgid "B<--quiet>"
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../resize/virt-resize.pod:412
20929 msgid "Don't print the summary."
20930 msgstr ""
20931
20932 #. type: =item
20933 #: ../resize/virt-resize.pod:414
20934 msgid "B<--resize part=size>"
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../resize/virt-resize.pod:416
20939 msgid ""
20940 "Resize the named partition (expanding or shrinking it) so that it has the "
20941 "given size."
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../resize/virt-resize.pod:419
20946 msgid ""
20947 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
20948 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
20949 "size; or as a relative number or percentage.  For example:"
20950 msgstr ""
20951
20952 #. type: verbatim
20953 #: ../resize/virt-resize.pod:425
20954 #, no-wrap
20955 msgid ""
20956 " --resize /dev/sda2=10G\n"
20957 "\n"
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../resize/virt-resize.pod:427
20962 #, no-wrap
20963 msgid ""
20964 " --resize /dev/sda4=90%\n"
20965 "\n"
20966 msgstr ""
20967
20968 #. type: verbatim
20969 #: ../resize/virt-resize.pod:429
20970 #, no-wrap
20971 msgid ""
20972 " --resize /dev/sda2=+1G\n"
20973 "\n"
20974 msgstr ""
20975
20976 #. type: verbatim
20977 #: ../resize/virt-resize.pod:431
20978 #, no-wrap
20979 msgid ""
20980 " --resize /dev/sda2=-200M\n"
20981 "\n"
20982 msgstr ""
20983
20984 #. type: verbatim
20985 #: ../resize/virt-resize.pod:433
20986 #, no-wrap
20987 msgid ""
20988 " --resize /dev/sda1=+128K\n"
20989 "\n"
20990 msgstr ""
20991
20992 #. type: verbatim
20993 #: ../resize/virt-resize.pod:435
20994 #, no-wrap
20995 msgid ""
20996 " --resize /dev/sda1=+10%\n"
20997 "\n"
20998 msgstr ""
20999
21000 #. type: verbatim
21001 #: ../resize/virt-resize.pod:437
21002 #, no-wrap
21003 msgid ""
21004 " --resize /dev/sda1=-10%\n"
21005 "\n"
21006 msgstr ""
21007
21008 #. type: textblock
21009 #: ../resize/virt-resize.pod:439
21010 msgid ""
21011 "You can increase the size of any partition.  Virt-resize will expand the "
21012 "direct content of the partition if it knows how (see I<--expand> below)."
21013 msgstr ""
21014
21015 #. type: textblock
21016 #: ../resize/virt-resize.pod:443
21017 msgid ""
21018 "You can only I<decrease> the size of partitions that contain filesystems or "
21019 "PVs which have already been shrunk.  Virt-resize will check this has been "
21020 "done before proceeding, or else will print an error (see also "
21021 "I<--resize-force>)."
21022 msgstr ""
21023
21024 #. type: =item
21025 #: ../resize/virt-resize.pod:450
21026 msgid "B<--resize-force part=size>"
21027 msgstr ""
21028
21029 #. type: textblock
21030 #: ../resize/virt-resize.pod:452
21031 msgid ""
21032 "This is the same as I<--resize> except that it will let you decrease the "
21033 "size of any partition.  Generally this means you will lose any data which "
21034 "was at the end of the partition you shrink, but you may not care about that "
21035 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
21036 "as a swap partition)."
21037 msgstr ""
21038
21039 #. type: textblock
21040 #: ../resize/virt-resize.pod:458
21041 msgid "See also the I<--ignore> option."
21042 msgstr ""
21043
21044 #. type: =item
21045 #: ../resize/virt-resize.pod:460
21046 msgid "B<--shrink part>"
21047 msgstr ""
21048
21049 #. type: textblock
21050 #: ../resize/virt-resize.pod:462
21051 msgid ""
21052 "Shrink the named partition until the overall disk image fits in the "
21053 "destination.  The named partition B<must> contain a filesystem or PV which "
21054 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21055 "online tools).  Virt-resize will check this and give an error if it has not "
21056 "been done."
21057 msgstr ""
21058
21059 #. type: textblock
21060 #: ../resize/virt-resize.pod:468
21061 msgid ""
21062 "The amount by which the overall disk must be shrunk (after carrying out all "
21063 "other operations requested by the user) is called the \"deficit\".  For "
21064 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21065 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21066 "would give an error unless the user specified a partition to shrink and that "
21067 "partition had more than a gigabyte of free space."
21068 msgstr ""
21069
21070 #. type: =head2
21071 #: ../resize/virt-resize.pod:488
21072 msgid "\"Partition 1 does not end on cylinder boundary.\""
21073 msgstr ""
21074
21075 #. type: textblock
21076 #: ../resize/virt-resize.pod:490
21077 msgid ""
21078 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21079 "means the partitions will not be aligned to the ancient CHS geometry.  "
21080 "However CHS geometry is meaningless for disks manufactured since the early "
21081 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21082 "cylinders is not required by any modern operating system."
21083 msgstr ""
21084
21085 #. type: =head2
21086 #: ../resize/virt-resize.pod:497
21087 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21088 msgstr ""
21089
21090 #. type: textblock
21091 #: ../resize/virt-resize.pod:499
21092 msgid ""
21093 "In Windows Vista and later versions, Microsoft switched to using a separate "
21094 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21095 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21096 "the boot partition.  Doing so seems to break the guest completely.  However "
21097 "expanding the second partition (ie. C: drive) should work."
21098 msgstr ""
21099
21100 #. type: textblock
21101 #: ../resize/virt-resize.pod:506
21102 msgid ""
21103 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21104 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21105 "it find errors) is nothing to worry about."
21106 msgstr ""
21107
21108 #. type: =head2
21109 #: ../resize/virt-resize.pod:510
21110 msgid "GUEST BOOT STUCK AT \"GRUB\""
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../resize/virt-resize.pod:512
21115 msgid ""
21116 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21117 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21118 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21119 "although we think is to do with partition alignment."
21120 msgstr ""
21121
21122 #. type: verbatim
21123 #: ../resize/virt-resize.pod:517
21124 #, no-wrap
21125 msgid ""
21126 " guestfish -i -a newdisk\n"
21127 " ><fs> cat /boot/grub/device.map\n"
21128 " # check the contents of this file are sensible or\n"
21129 " # edit the file if necessary\n"
21130 " ><fs> grub-install / /dev/vda\n"
21131 " ><fs> exit\n"
21132 "\n"
21133 msgstr ""
21134
21135 #. type: textblock
21136 #: ../resize/virt-resize.pod:524
21137 msgid ""
21138 "For more flexible guest reconfiguration, including if you need to specify "
21139 "other parameters to grub-install, use L<virt-rescue(1)>."
21140 msgstr ""
21141
21142 #. type: =head1
21143 #: ../resize/virt-resize.pod:527
21144 msgid "ALTERNATIVE TOOLS"
21145 msgstr ""
21146
21147 #. type: textblock
21148 #: ../resize/virt-resize.pod:529
21149 msgid ""
21150 "There are several proprietary tools for resizing partitions.  We won't "
21151 "mention any here."
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../resize/virt-resize.pod:532
21156 msgid ""
21157 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21158 "operations on disk images.  They can resize and move partitions, but I don't "
21159 "think they can do anything with the contents, and they certainly don't "
21160 "understand LVM."
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../resize/virt-resize.pod:537
21165 msgid ""
21166 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21167 "but at a much lower level.  You will probably end up hand-calculating sector "
21168 "offsets, which is something that virt-resize was designed to avoid.  If you "
21169 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21170 "I<--debug> flag."
21171 msgstr ""
21172
21173 #. type: textblock
21174 #: ../resize/virt-resize.pod:552
21175 msgid ""
21176 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21177 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21178 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21179 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21180 "L<http://libguestfs.org/>."
21181 msgstr ""
21182
21183 #. type: textblock
21184 #: ../ruby/examples/guestfs-ruby.pod:5
21185 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21186 msgstr ""
21187
21188 #. type: verbatim
21189 #: ../ruby/examples/guestfs-ruby.pod:9
21190 #, no-wrap
21191 msgid ""
21192 " require 'guestfs'\n"
21193 " g = Guestfs::Guestfs.new()\n"
21194 " g.add_drive_opts(\"disk.img\",\n"
21195 "                  :readonly => 1, :format => \"raw\")\n"
21196 " g.launch()\n"
21197 "\n"
21198 msgstr ""
21199
21200 #. type: textblock
21201 #: ../ruby/examples/guestfs-ruby.pod:17
21202 msgid ""
21203 "This manual page documents how to call libguestfs from the Ruby programming "
21204 "language.  This page just documents the differences from the C API and gives "
21205 "some examples.  If you are not familiar with using libguestfs, you also need "
21206 "to read L<guestfs(3)>."
21207 msgstr ""
21208
21209 #. type: textblock
21210 #: ../ruby/examples/guestfs-ruby.pod:24
21211 msgid ""
21212 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21213 "This has a single parameter which is the error message (a string)."
21214 msgstr ""
21215
21216 #. type: textblock
21217 #: ../ruby/examples/guestfs-ruby.pod:38
21218 msgid ""
21219 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
21220 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21221 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21222 msgstr ""
21223
21224 #. type: =head2
21225 #: ../src/guestfs-actions.pod:1
21226 msgid "guestfs_add_cdrom"
21227 msgstr ""
21228
21229 #. type: verbatim
21230 #: ../src/guestfs-actions.pod:3
21231 #, no-wrap
21232 msgid ""
21233 " int\n"
21234 " guestfs_add_cdrom (guestfs_h *g,\n"
21235 "                    const char *filename);\n"
21236 "\n"
21237 msgstr ""
21238
21239 #. type: textblock
21240 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
21241 msgid ""
21242 "I<This function is deprecated.> In new code, use the "
21243 "L</guestfs_add_drive_opts> call instead."
21244 msgstr ""
21245
21246 #. type: textblock
21247 #: ../src/guestfs-actions.pod:24
21248 msgid ""
21249 "This call checks for the existence of C<filename>.  This stops you from "
21250 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21251 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21252 "instead."
21253 msgstr ""
21254
21255 #. type: textblock
21256 #: ../src/guestfs-actions.pod:31
21257 msgid ""
21258 "If you just want to add an ISO file (often you use this as an efficient way "
21259 "to transfer large files into the guest), then you should probably use "
21260 "C<guestfs_add_drive_ro> instead."
21261 msgstr ""
21262
21263 #. type: textblock
21264 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140 ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238 ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280 ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307 ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447 ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506 ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552 ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652 ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681 ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826 ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046 ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084 ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186 ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309 ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520 ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762 ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641 ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855 ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882 ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911 ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102 ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156 ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210 ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258 ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532 ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771 ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821 ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852 ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912 ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172 ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544 ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594 ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677 ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012 ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045 ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071 ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134 ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172 ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220 ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261 ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301 ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337 ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427 ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470 ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504 ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859 ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885 ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920 ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053 ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086 ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169 ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223 ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427 ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456 ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609 ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
21265 msgid "This function returns 0 on success or -1 on error."
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../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:3628 ../src/guestfs-actions.pod:3648 ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222 ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472 ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088 ../src/guestfs-actions.pod:7611
21270 msgid "(Added in 0.3)"
21271 msgstr ""
21272
21273 #. type: =head2
21274 #: ../src/guestfs-actions.pod:41
21275 msgid "guestfs_add_domain"
21276 msgstr ""
21277
21278 #. type: verbatim
21279 #: ../src/guestfs-actions.pod:43
21280 #, no-wrap
21281 msgid ""
21282 " int\n"
21283 " guestfs_add_domain (guestfs_h *g,\n"
21284 "                     const char *dom,\n"
21285 "                     ...);\n"
21286 "\n"
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966 ../src/guestfs-actions.pod:5183
21291 msgid ""
21292 "You may supply a list of optional arguments to this call.  Use zero or more "
21293 "of the following pairs of parameters, and terminate the list with C<-1> on "
21294 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21295 msgstr ""
21296
21297 #. type: verbatim
21298 #: ../src/guestfs-actions.pod:53
21299 #, no-wrap
21300 msgid ""
21301 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21302 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21303 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21304 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21305 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21306 "\n"
21307 msgstr ""
21308
21309 #. type: textblock
21310 #: ../src/guestfs-actions.pod:59
21311 msgid ""
21312 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21313 "It works by connecting to libvirt, requesting the domain and domain XML from "
21314 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21315 "one."
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../src/guestfs-actions.pod:94
21320 msgid ""
21321 "The other optional parameters are passed directly through to "
21322 "C<guestfs_add_drive_opts>."
21323 msgstr ""
21324
21325 #. type: textblock
21326 #: ../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:2477 ../src/guestfs-actions.pod:2949 ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142 ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196 ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635 ../src/guestfs-actions.pod:7648
21327 msgid "On error this function returns -1."
21328 msgstr ""
21329
21330 #. type: textblock
21331 #: ../src/guestfs-actions.pod:99
21332 msgid "(Added in 1.7.4)"
21333 msgstr ""
21334
21335 #. type: =head2
21336 #: ../src/guestfs-actions.pod:101
21337 msgid "guestfs_add_domain_va"
21338 msgstr ""
21339
21340 #. type: verbatim
21341 #: ../src/guestfs-actions.pod:103
21342 #, no-wrap
21343 msgid ""
21344 " int\n"
21345 " guestfs_add_domain_va (guestfs_h *g,\n"
21346 "                        const char *dom,\n"
21347 "                        va_list args);\n"
21348 "\n"
21349 msgstr ""
21350
21351 #. type: textblock
21352 #: ../src/guestfs-actions.pod:108
21353 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../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:2915 ../src/guestfs-actions.pod:2927 ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006 ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
21358 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21359 msgstr ""
21360
21361 #. type: =head2
21362 #: ../src/guestfs-actions.pod:112
21363 msgid "guestfs_add_domain_argv"
21364 msgstr ""
21365
21366 #. type: verbatim
21367 #: ../src/guestfs-actions.pod:114
21368 #, no-wrap
21369 msgid ""
21370 " int\n"
21371 " guestfs_add_domain_argv (guestfs_h *g,\n"
21372 "                          const char *dom,\n"
21373 "                          const struct guestfs_add_domain_argv *optargs);\n"
21374 "\n"
21375 msgstr ""
21376
21377 #. type: textblock
21378 #: ../src/guestfs-actions.pod:119
21379 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21380 msgstr ""
21381
21382 #. type: =head2
21383 #: ../src/guestfs-actions.pod:123
21384 msgid "guestfs_add_drive"
21385 msgstr ""
21386
21387 #. type: verbatim
21388 #: ../src/guestfs-actions.pod:125
21389 #, no-wrap
21390 msgid ""
21391 " int\n"
21392 " guestfs_add_drive (guestfs_h *g,\n"
21393 "                    const char *filename);\n"
21394 "\n"
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../src/guestfs-actions.pod:129
21399 msgid ""
21400 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21401 "optional parameters, so the disk is added writable, with the format being "
21402 "detected automatically."
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../src/guestfs-actions.pod:133
21407 msgid ""
21408 "Automatic detection of the format opens you up to a potential security hole "
21409 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21410 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21411 "you should think about replacing calls to this function with calls to "
21412 "C<guestfs_add_drive_opts>, and specifying the format."
21413 msgstr ""
21414
21415 #. type: =head2
21416 #: ../src/guestfs-actions.pod:144
21417 msgid "guestfs_add_drive_opts"
21418 msgstr ""
21419
21420 #. type: verbatim
21421 #: ../src/guestfs-actions.pod:146
21422 #, no-wrap
21423 msgid ""
21424 " int\n"
21425 " guestfs_add_drive_opts (guestfs_h *g,\n"
21426 "                         const char *filename,\n"
21427 "                         ...);\n"
21428 "\n"
21429 msgstr ""
21430
21431 #. type: verbatim
21432 #: ../src/guestfs-actions.pod:156
21433 #, no-wrap
21434 msgid ""
21435 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21436 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21437 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21438 "\n"
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../src/guestfs-actions.pod:185
21443 msgid ""
21444 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21445 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21446 "Possible formats include C<raw> and C<qcow2>."
21447 msgstr ""
21448
21449 #. type: textblock
21450 #: ../src/guestfs-actions.pod:196
21451 msgid ""
21452 "This rarely-used option lets you emulate the behaviour of the deprecated "
21453 "C<guestfs_add_drive_with_if> call (q.v.)"
21454 msgstr ""
21455
21456 #. type: textblock
21457 #: ../src/guestfs-actions.pod:203
21458 msgid "(Added in 1.5.23)"
21459 msgstr ""
21460
21461 #. type: =head2
21462 #: ../src/guestfs-actions.pod:205
21463 msgid "guestfs_add_drive_opts_va"
21464 msgstr ""
21465
21466 #. type: verbatim
21467 #: ../src/guestfs-actions.pod:207
21468 #, no-wrap
21469 msgid ""
21470 " int\n"
21471 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21472 "                            const char *filename,\n"
21473 "                            va_list args);\n"
21474 "\n"
21475 msgstr ""
21476
21477 #. type: textblock
21478 #: ../src/guestfs-actions.pod:212
21479 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21480 msgstr ""
21481
21482 #. type: =head2
21483 #: ../src/guestfs-actions.pod:216
21484 msgid "guestfs_add_drive_opts_argv"
21485 msgstr ""
21486
21487 #. type: verbatim
21488 #: ../src/guestfs-actions.pod:218
21489 #, no-wrap
21490 msgid ""
21491 " int\n"
21492 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21493 "                              const char *filename,\n"
21494 "                              const struct guestfs_add_drive_opts_argv "
21495 "*optargs);\n"
21496 "\n"
21497 msgstr ""
21498
21499 #. type: textblock
21500 #: ../src/guestfs-actions.pod:223
21501 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21502 msgstr ""
21503
21504 #. type: =head2
21505 #: ../src/guestfs-actions.pod:227
21506 msgid "guestfs_add_drive_ro"
21507 msgstr ""
21508
21509 #. type: verbatim
21510 #: ../src/guestfs-actions.pod:229
21511 #, no-wrap
21512 msgid ""
21513 " int\n"
21514 " guestfs_add_drive_ro (guestfs_h *g,\n"
21515 "                       const char *filename);\n"
21516 "\n"
21517 msgstr ""
21518
21519 #. type: textblock
21520 #: ../src/guestfs-actions.pod:233
21521 msgid ""
21522 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21523 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21524 "disk is added read-only, with the format being detected automatically."
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../src/guestfs-actions.pod:240
21529 msgid "(Added in 1.0.38)"
21530 msgstr ""
21531
21532 #. type: =head2
21533 #: ../src/guestfs-actions.pod:242
21534 msgid "guestfs_add_drive_ro_with_if"
21535 msgstr ""
21536
21537 #. type: verbatim
21538 #: ../src/guestfs-actions.pod:244
21539 #, no-wrap
21540 msgid ""
21541 " int\n"
21542 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
21543 "                               const char *filename,\n"
21544 "                               const char *iface);\n"
21545 "\n"
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../src/guestfs-actions.pod:256
21550 msgid ""
21551 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
21552 "QEMU interface emulation to use at run time."
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2436
21557 msgid "(Added in 1.0.84)"
21558 msgstr ""
21559
21560 #. type: =head2
21561 #: ../src/guestfs-actions.pod:263
21562 msgid "guestfs_add_drive_with_if"
21563 msgstr ""
21564
21565 #. type: verbatim
21566 #: ../src/guestfs-actions.pod:265
21567 #, no-wrap
21568 msgid ""
21569 " int\n"
21570 " guestfs_add_drive_with_if (guestfs_h *g,\n"
21571 "                            const char *filename,\n"
21572 "                            const char *iface);\n"
21573 "\n"
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../src/guestfs-actions.pod:277
21578 msgid ""
21579 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
21580 "QEMU interface emulation to use at run time."
21581 msgstr ""
21582
21583 #. type: =head2
21584 #: ../src/guestfs-actions.pod:284
21585 msgid "guestfs_aug_clear"
21586 msgstr ""
21587
21588 #. type: verbatim
21589 #: ../src/guestfs-actions.pod:286
21590 #, no-wrap
21591 msgid ""
21592 " int\n"
21593 " guestfs_aug_clear (guestfs_h *g,\n"
21594 "                    const char *augpath);\n"
21595 "\n"
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
21600 msgid "(Added in 1.3.4)"
21601 msgstr ""
21602
21603 #. type: =head2
21604 #: ../src/guestfs-actions.pod:297
21605 msgid "guestfs_aug_close"
21606 msgstr ""
21607
21608 #. type: verbatim
21609 #: ../src/guestfs-actions.pod:299
21610 #, no-wrap
21611 msgid ""
21612 " int\n"
21613 " guestfs_aug_close (guestfs_h *g);\n"
21614 "\n"
21615 msgstr ""
21616
21617 #. type: textblock
21618 #: ../src/guestfs-actions.pod:302
21619 msgid ""
21620 "Close the current Augeas handle and free up any resources used by it.  After "
21621 "calling this, you have to call C<guestfs_aug_init> again before you can use "
21622 "any other Augeas functions."
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../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:5851
21627 msgid "(Added in 0.7)"
21628 msgstr ""
21629
21630 #. type: =head2
21631 #: ../src/guestfs-actions.pod:311
21632 msgid "guestfs_aug_defnode"
21633 msgstr ""
21634
21635 #. type: verbatim
21636 #: ../src/guestfs-actions.pod:313
21637 #, no-wrap
21638 msgid ""
21639 " struct guestfs_int_bool *\n"
21640 " guestfs_aug_defnode (guestfs_h *g,\n"
21641 "                      const char *name,\n"
21642 "                      const char *expr,\n"
21643 "                      const char *val);\n"
21644 "\n"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../src/guestfs-actions.pod:322
21649 msgid ""
21650 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21651 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
21652 "containing that single node."
21653 msgstr ""
21654
21655 #. type: textblock
21656 #: ../src/guestfs-actions.pod:330
21657 msgid ""
21658 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
21659 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
21660 msgstr ""
21661
21662 #. type: =head2
21663 #: ../src/guestfs-actions.pod:336
21664 msgid "guestfs_aug_defvar"
21665 msgstr ""
21666
21667 #. type: verbatim
21668 #: ../src/guestfs-actions.pod:338
21669 #, no-wrap
21670 msgid ""
21671 " int\n"
21672 " guestfs_aug_defvar (guestfs_h *g,\n"
21673 "                     const char *name,\n"
21674 "                     const char *expr);\n"
21675 "\n"
21676 msgstr ""
21677
21678 #. type: =head2
21679 #: ../src/guestfs-actions.pod:354
21680 msgid "guestfs_aug_get"
21681 msgstr ""
21682
21683 #. type: verbatim
21684 #: ../src/guestfs-actions.pod:356
21685 #, no-wrap
21686 msgid ""
21687 " char *\n"
21688 " guestfs_aug_get (guestfs_h *g,\n"
21689 "                  const char *augpath);\n"
21690 "\n"
21691 msgstr ""
21692
21693 #. type: textblock
21694 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927 ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005 ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124 ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271 ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424 ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724 ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904 ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605 ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799 ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032 ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081 ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174 ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214 ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194 ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579 ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927 ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632 ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370 ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
21695 msgid ""
21696 "This function returns a string, or NULL on error.  I<The caller must free "
21697 "the returned string after use>."
21698 msgstr ""
21699
21700 #. type: =head2
21701 #: ../src/guestfs-actions.pod:368
21702 msgid "guestfs_aug_init"
21703 msgstr ""
21704
21705 #. type: verbatim
21706 #: ../src/guestfs-actions.pod:370
21707 #, no-wrap
21708 msgid ""
21709 " int\n"
21710 " guestfs_aug_init (guestfs_h *g,\n"
21711 "                   const char *root,\n"
21712 "                   int flags);\n"
21713 "\n"
21714 msgstr ""
21715
21716 #. type: textblock
21717 #: ../src/guestfs-actions.pod:379
21718 msgid "You must call this before using any other C<guestfs_aug_*> commands."
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../src/guestfs-actions.pod:404
21723 msgid ""
21724 "This option is only useful when debugging Augeas lenses.  Use of this option "
21725 "may require additional memory for the libguestfs appliance.  You may need to "
21726 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
21727 "C<guestfs_set_memsize>."
21728 msgstr ""
21729
21730 #. type: textblock
21731 #: ../src/guestfs-actions.pod:419
21732 msgid "Do not load the tree in C<guestfs_aug_init>."
21733 msgstr ""
21734
21735 #. type: textblock
21736 #: ../src/guestfs-actions.pod:423
21737 msgid "To close the handle, you can call C<guestfs_aug_close>."
21738 msgstr ""
21739
21740 #. type: =head2
21741 #: ../src/guestfs-actions.pod:431
21742 msgid "guestfs_aug_insert"
21743 msgstr ""
21744
21745 #. type: verbatim
21746 #: ../src/guestfs-actions.pod:433
21747 #, no-wrap
21748 msgid ""
21749 " int\n"
21750 " guestfs_aug_insert (guestfs_h *g,\n"
21751 "                     const char *augpath,\n"
21752 "                     const char *label,\n"
21753 "                     int before);\n"
21754 "\n"
21755 msgstr ""
21756
21757 #. type: =head2
21758 #: ../src/guestfs-actions.pod:451
21759 msgid "guestfs_aug_load"
21760 msgstr ""
21761
21762 #. type: verbatim
21763 #: ../src/guestfs-actions.pod:453
21764 #, no-wrap
21765 msgid ""
21766 " int\n"
21767 " guestfs_aug_load (guestfs_h *g);\n"
21768 "\n"
21769 msgstr ""
21770
21771 #. type: =head2
21772 #: ../src/guestfs-actions.pod:465
21773 msgid "guestfs_aug_ls"
21774 msgstr ""
21775
21776 #. type: verbatim
21777 #: ../src/guestfs-actions.pod:467
21778 #, no-wrap
21779 msgid ""
21780 " char **\n"
21781 " guestfs_aug_ls (guestfs_h *g,\n"
21782 "                 const char *augpath);\n"
21783 "\n"
21784 msgstr ""
21785
21786 #. type: textblock
21787 #: ../src/guestfs-actions.pod:471
21788 msgid ""
21789 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
21790 "sorting the resulting nodes into alphabetical order."
21791 msgstr ""
21792
21793 #. type: textblock
21794 #: ../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:2359 ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134 ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724 ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761 ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928 ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103 ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712 ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828 ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998 ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494 ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848 ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913 ../src/guestfs-actions.pod:7932
21795 msgid ""
21796 "This function returns a NULL-terminated array of strings (like "
21797 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
21798 "strings and the array after use>."
21799 msgstr ""
21800
21801 #. type: textblock
21802 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068 ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496 ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519 ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447 ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107 ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085 ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212 ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7723
21803 msgid "(Added in 0.8)"
21804 msgstr ""
21805
21806 #. type: =head2
21807 #: ../src/guestfs-actions.pod:480
21808 msgid "guestfs_aug_match"
21809 msgstr ""
21810
21811 #. type: verbatim
21812 #: ../src/guestfs-actions.pod:482
21813 #, no-wrap
21814 msgid ""
21815 " char **\n"
21816 " guestfs_aug_match (guestfs_h *g,\n"
21817 "                    const char *augpath);\n"
21818 "\n"
21819 msgstr ""
21820
21821 #. type: =head2
21822 #: ../src/guestfs-actions.pod:496
21823 msgid "guestfs_aug_mv"
21824 msgstr ""
21825
21826 #. type: verbatim
21827 #: ../src/guestfs-actions.pod:498
21828 #, no-wrap
21829 msgid ""
21830 " int\n"
21831 " guestfs_aug_mv (guestfs_h *g,\n"
21832 "                 const char *src,\n"
21833 "                 const char *dest);\n"
21834 "\n"
21835 msgstr ""
21836
21837 #. type: =head2
21838 #: ../src/guestfs-actions.pod:510
21839 msgid "guestfs_aug_rm"
21840 msgstr ""
21841
21842 #. type: verbatim
21843 #: ../src/guestfs-actions.pod:512
21844 #, no-wrap
21845 msgid ""
21846 " int\n"
21847 " guestfs_aug_rm (guestfs_h *g,\n"
21848 "                 const char *augpath);\n"
21849 "\n"
21850 msgstr ""
21851
21852 #. type: =head2
21853 #: ../src/guestfs-actions.pod:524
21854 msgid "guestfs_aug_save"
21855 msgstr ""
21856
21857 #. type: verbatim
21858 #: ../src/guestfs-actions.pod:526
21859 #, no-wrap
21860 msgid ""
21861 " int\n"
21862 " guestfs_aug_save (guestfs_h *g);\n"
21863 "\n"
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../src/guestfs-actions.pod:531
21868 msgid ""
21869 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
21870 "are saved."
21871 msgstr ""
21872
21873 #. type: =head2
21874 #: ../src/guestfs-actions.pod:538
21875 msgid "guestfs_aug_set"
21876 msgstr ""
21877
21878 #. type: verbatim
21879 #: ../src/guestfs-actions.pod:540
21880 #, no-wrap
21881 msgid ""
21882 " int\n"
21883 " guestfs_aug_set (guestfs_h *g,\n"
21884 "                  const char *augpath,\n"
21885 "                  const char *val);\n"
21886 "\n"
21887 msgstr ""
21888
21889 #. type: textblock
21890 #: ../src/guestfs-actions.pod:547
21891 msgid ""
21892 "In the Augeas API, it is possible to clear a node by setting the value to "
21893 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
21894 "this call.  Instead you must use the C<guestfs_aug_clear> call."
21895 msgstr ""
21896
21897 #. type: =head2
21898 #: ../src/guestfs-actions.pod:556
21899 msgid "guestfs_available"
21900 msgstr ""
21901
21902 #. type: verbatim
21903 #: ../src/guestfs-actions.pod:558
21904 #, no-wrap
21905 msgid ""
21906 " int\n"
21907 " guestfs_available (guestfs_h *g,\n"
21908 "                    char *const *groups);\n"
21909 "\n"
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../src/guestfs-actions.pod:566
21914 msgid ""
21915 "The libguestfs groups, and the functions that those groups correspond to, "
21916 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
21917 "runtime by calling C<guestfs_available_all_groups>."
21918 msgstr ""
21919
21920 #. type: textblock
21921 #: ../src/guestfs-actions.pod:590
21922 msgid "You must call C<guestfs_launch> before calling this function."
21923 msgstr ""
21924
21925 #. type: textblock
21926 #: ../src/guestfs-actions.pod:612
21927 msgid ""
21928 "This call was added in version C<1.0.80>.  In previous versions of "
21929 "libguestfs all you could do would be to speculatively execute a command to "
21930 "find out if the daemon implemented it.  See also C<guestfs_version>."
21931 msgstr ""
21932
21933 #. type: textblock
21934 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
21935 msgid "(Added in 1.0.80)"
21936 msgstr ""
21937
21938 #. type: =head2
21939 #: ../src/guestfs-actions.pod:623
21940 msgid "guestfs_available_all_groups"
21941 msgstr ""
21942
21943 #. type: verbatim
21944 #: ../src/guestfs-actions.pod:625
21945 #, no-wrap
21946 msgid ""
21947 " char **\n"
21948 " guestfs_available_all_groups (guestfs_h *g);\n"
21949 "\n"
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../src/guestfs-actions.pod:628
21954 msgid ""
21955 "This command returns a list of all optional groups that this daemon knows "
21956 "about.  Note this returns both supported and unsupported groups.  To find "
21957 "out which ones the daemon can actually support you have to call "
21958 "C<guestfs_available> on each member of the returned list."
21959 msgstr ""
21960
21961 #. type: textblock
21962 #: ../src/guestfs-actions.pod:634
21963 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../src/guestfs-actions.pod:640
21968 msgid "(Added in 1.3.15)"
21969 msgstr ""
21970
21971 #. type: =head2
21972 #: ../src/guestfs-actions.pod:642
21973 msgid "guestfs_base64_in"
21974 msgstr ""
21975
21976 #. type: verbatim
21977 #: ../src/guestfs-actions.pod:644
21978 #, no-wrap
21979 msgid ""
21980 " int\n"
21981 " guestfs_base64_in (guestfs_h *g,\n"
21982 "                    const char *base64file,\n"
21983 "                    const char *filename);\n"
21984 "\n"
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
21989 msgid "(Added in 1.3.5)"
21990 msgstr ""
21991
21992 #. type: =head2
21993 #: ../src/guestfs-actions.pod:656
21994 msgid "guestfs_base64_out"
21995 msgstr ""
21996
21997 #. type: verbatim
21998 #: ../src/guestfs-actions.pod:658
21999 #, no-wrap
22000 msgid ""
22001 " int\n"
22002 " guestfs_base64_out (guestfs_h *g,\n"
22003 "                     const char *filename,\n"
22004 "                     const char *base64file);\n"
22005 "\n"
22006 msgstr ""
22007
22008 #. type: =head2
22009 #: ../src/guestfs-actions.pod:670
22010 msgid "guestfs_blockdev_flushbufs"
22011 msgstr ""
22012
22013 #. type: verbatim
22014 #: ../src/guestfs-actions.pod:672
22015 #, no-wrap
22016 msgid ""
22017 " int\n"
22018 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
22019 "                             const char *device);\n"
22020 "\n"
22021 msgstr ""
22022
22023 #. type: textblock
22024 #: ../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
22025 msgid "(Added in 0.9.3)"
22026 msgstr ""
22027
22028 #. type: =head2
22029 #: ../src/guestfs-actions.pod:685
22030 msgid "guestfs_blockdev_getbsz"
22031 msgstr ""
22032
22033 #. type: verbatim
22034 #: ../src/guestfs-actions.pod:687
22035 #, no-wrap
22036 msgid ""
22037 " int\n"
22038 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
22039 "                          const char *device);\n"
22040 "\n"
22041 msgstr ""
22042
22043 #. type: =head2
22044 #: ../src/guestfs-actions.pod:702
22045 msgid "guestfs_blockdev_getro"
22046 msgstr ""
22047
22048 #. type: verbatim
22049 #: ../src/guestfs-actions.pod:704
22050 #, no-wrap
22051 msgid ""
22052 " int\n"
22053 " guestfs_blockdev_getro (guestfs_h *g,\n"
22054 "                         const char *device);\n"
22055 "\n"
22056 msgstr ""
22057
22058 #. type: textblock
22059 #: ../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:3231 ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265 ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441 ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470 ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501 ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531 ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588 ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615 ../src/guestfs-actions.pod:5344
22060 msgid "This function returns a C truth value on success or -1 on error."
22061 msgstr ""
22062
22063 #. type: =head2
22064 #: ../src/guestfs-actions.pod:717
22065 msgid "guestfs_blockdev_getsize64"
22066 msgstr ""
22067
22068 #. type: verbatim
22069 #: ../src/guestfs-actions.pod:719
22070 #, no-wrap
22071 msgid ""
22072 " int64_t\n"
22073 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22074 "                             const char *device);\n"
22075 "\n"
22076 msgstr ""
22077
22078 #. type: textblock
22079 #: ../src/guestfs-actions.pod:725
22080 msgid "See also C<guestfs_blockdev_getsz>."
22081 msgstr ""
22082
22083 #. type: =head2
22084 #: ../src/guestfs-actions.pod:733
22085 msgid "guestfs_blockdev_getss"
22086 msgstr ""
22087
22088 #. type: verbatim
22089 #: ../src/guestfs-actions.pod:735
22090 #, no-wrap
22091 msgid ""
22092 " int\n"
22093 " guestfs_blockdev_getss (guestfs_h *g,\n"
22094 "                         const char *device);\n"
22095 "\n"
22096 msgstr ""
22097
22098 #. type: textblock
22099 #: ../src/guestfs-actions.pod:742
22100 msgid ""
22101 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22102 "that)."
22103 msgstr ""
22104
22105 #. type: =head2
22106 #: ../src/guestfs-actions.pod:751
22107 msgid "guestfs_blockdev_getsz"
22108 msgstr ""
22109
22110 #. type: verbatim
22111 #: ../src/guestfs-actions.pod:753
22112 #, no-wrap
22113 msgid ""
22114 " int64_t\n"
22115 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22116 "                         const char *device);\n"
22117 "\n"
22118 msgstr ""
22119
22120 #. type: textblock
22121 #: ../src/guestfs-actions.pod:760
22122 msgid ""
22123 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22124 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22125 msgstr ""
22126
22127 #. type: =head2
22128 #: ../src/guestfs-actions.pod:770
22129 msgid "guestfs_blockdev_rereadpt"
22130 msgstr ""
22131
22132 #. type: verbatim
22133 #: ../src/guestfs-actions.pod:772
22134 #, no-wrap
22135 msgid ""
22136 " int\n"
22137 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22138 "                            const char *device);\n"
22139 "\n"
22140 msgstr ""
22141
22142 #. type: =head2
22143 #: ../src/guestfs-actions.pod:784
22144 msgid "guestfs_blockdev_setbsz"
22145 msgstr ""
22146
22147 #. type: verbatim
22148 #: ../src/guestfs-actions.pod:786
22149 #, no-wrap
22150 msgid ""
22151 " int\n"
22152 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22153 "                          const char *device,\n"
22154 "                          int blocksize);\n"
22155 "\n"
22156 msgstr ""
22157
22158 #. type: =head2
22159 #: ../src/guestfs-actions.pod:802
22160 msgid "guestfs_blockdev_setro"
22161 msgstr ""
22162
22163 #. type: verbatim
22164 #: ../src/guestfs-actions.pod:804
22165 #, no-wrap
22166 msgid ""
22167 " int\n"
22168 " guestfs_blockdev_setro (guestfs_h *g,\n"
22169 "                         const char *device);\n"
22170 "\n"
22171 msgstr ""
22172
22173 #. type: =head2
22174 #: ../src/guestfs-actions.pod:816
22175 msgid "guestfs_blockdev_setrw"
22176 msgstr ""
22177
22178 #. type: verbatim
22179 #: ../src/guestfs-actions.pod:818
22180 #, no-wrap
22181 msgid ""
22182 " int\n"
22183 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22184 "                         const char *device);\n"
22185 "\n"
22186 msgstr ""
22187
22188 #. type: =head2
22189 #: ../src/guestfs-actions.pod:830
22190 msgid "guestfs_btrfs_filesystem_resize"
22191 msgstr ""
22192
22193 #. type: verbatim
22194 #: ../src/guestfs-actions.pod:832
22195 #, no-wrap
22196 msgid ""
22197 " int\n"
22198 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22199 "                                  const char *mountpoint,\n"
22200 "                                  ...);\n"
22201 "\n"
22202 msgstr ""
22203
22204 #. type: verbatim
22205 #: ../src/guestfs-actions.pod:842
22206 #, no-wrap
22207 msgid ""
22208 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22209 "\n"
22210 msgstr ""
22211
22212 #. type: textblock
22213 #: ../src/guestfs-actions.pod:865
22214 msgid "(Added in 1.11.17)"
22215 msgstr ""
22216
22217 #. type: =head2
22218 #: ../src/guestfs-actions.pod:867
22219 msgid "guestfs_btrfs_filesystem_resize_va"
22220 msgstr ""
22221
22222 #. type: verbatim
22223 #: ../src/guestfs-actions.pod:869
22224 #, no-wrap
22225 msgid ""
22226 " int\n"
22227 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22228 "                                     const char *mountpoint,\n"
22229 "                                     va_list args);\n"
22230 "\n"
22231 msgstr ""
22232
22233 #. type: textblock
22234 #: ../src/guestfs-actions.pod:874
22235 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22236 msgstr ""
22237
22238 #. type: =head2
22239 #: ../src/guestfs-actions.pod:878
22240 msgid "guestfs_btrfs_filesystem_resize_argv"
22241 msgstr ""
22242
22243 #. type: verbatim
22244 #: ../src/guestfs-actions.pod:880
22245 #, no-wrap
22246 msgid ""
22247 " int\n"
22248 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22249 "                                       const char *mountpoint,\n"
22250 "                                       const struct "
22251 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22252 "\n"
22253 msgstr ""
22254
22255 #. type: textblock
22256 #: ../src/guestfs-actions.pod:885
22257 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22258 msgstr ""
22259
22260 #. type: =head2
22261 #: ../src/guestfs-actions.pod:889
22262 msgid "guestfs_case_sensitive_path"
22263 msgstr ""
22264
22265 #. type: verbatim
22266 #: ../src/guestfs-actions.pod:891
22267 #, no-wrap
22268 msgid ""
22269 " char *\n"
22270 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22271 "                              const char *path);\n"
22272 "\n"
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../src/guestfs-actions.pod:917
22277 msgid ""
22278 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22279 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22280 "how the directories were originally created under Windows)."
22281 msgstr ""
22282
22283 #. type: textblock
22284 #: ../src/guestfs-actions.pod:925
22285 msgid "See also C<guestfs_realpath>."
22286 msgstr ""
22287
22288 #. type: textblock
22289 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
22290 msgid "(Added in 1.0.75)"
22291 msgstr ""
22292
22293 #. type: =head2
22294 #: ../src/guestfs-actions.pod:932
22295 msgid "guestfs_cat"
22296 msgstr ""
22297
22298 #. type: verbatim
22299 #: ../src/guestfs-actions.pod:934
22300 #, no-wrap
22301 msgid ""
22302 " char *\n"
22303 " guestfs_cat (guestfs_h *g,\n"
22304 "              const char *path);\n"
22305 "\n"
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../src/guestfs-actions.pod:940
22310 msgid ""
22311 "Note that this function cannot correctly handle binary files (specifically, "
22312 "files containing C<\\0> character which is treated as end of string).  For "
22313 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22314 "functions which have a more complex interface."
22315 msgstr ""
22316
22317 #. type: textblock
22318 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844 ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340 ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725 ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7559
22319 msgid "(Added in 0.4)"
22320 msgstr ""
22321
22322 #. type: =head2
22323 #: ../src/guestfs-actions.pod:953
22324 msgid "guestfs_checksum"
22325 msgstr ""
22326
22327 #. type: verbatim
22328 #: ../src/guestfs-actions.pod:955
22329 #, no-wrap
22330 msgid ""
22331 " char *\n"
22332 " guestfs_checksum (guestfs_h *g,\n"
22333 "                   const char *csumtype,\n"
22334 "                   const char *path);\n"
22335 "\n"
22336 msgstr ""
22337
22338 #. type: textblock
22339 #: ../src/guestfs-actions.pod:1001
22340 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22341 msgstr ""
22342
22343 #. type: textblock
22344 #: ../src/guestfs-actions.pod:1003
22345 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22346 msgstr ""
22347
22348 #. type: textblock
22349 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443 ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533 ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
22350 msgid "(Added in 1.0.2)"
22351 msgstr ""
22352
22353 #. type: =head2
22354 #: ../src/guestfs-actions.pod:1010
22355 msgid "guestfs_checksum_device"
22356 msgstr ""
22357
22358 #. type: verbatim
22359 #: ../src/guestfs-actions.pod:1012
22360 #, no-wrap
22361 msgid ""
22362 " char *\n"
22363 " guestfs_checksum_device (guestfs_h *g,\n"
22364 "                          const char *csumtype,\n"
22365 "                          const char *device);\n"
22366 "\n"
22367 msgstr ""
22368
22369 #. type: textblock
22370 #: ../src/guestfs-actions.pod:1017
22371 msgid ""
22372 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22373 "device named C<device>.  For the types of checksums supported see the "
22374 "C<guestfs_checksum> command."
22375 msgstr ""
22376
22377 #. type: textblock
22378 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174 ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346 ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546 ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171 ../src/guestfs-actions.pod:7571
22379 msgid "(Added in 1.3.2)"
22380 msgstr ""
22381
22382 #. type: =head2
22383 #: ../src/guestfs-actions.pod:1026
22384 msgid "guestfs_checksums_out"
22385 msgstr ""
22386
22387 #. type: verbatim
22388 #: ../src/guestfs-actions.pod:1028
22389 #, no-wrap
22390 msgid ""
22391 " int\n"
22392 " guestfs_checksums_out (guestfs_h *g,\n"
22393 "                        const char *csumtype,\n"
22394 "                        const char *directory,\n"
22395 "                        const char *sumsfile);\n"
22396 "\n"
22397 msgstr ""
22398
22399 #. type: textblock
22400 #: ../src/guestfs-actions.pod:1048
22401 msgid "(Added in 1.3.7)"
22402 msgstr ""
22403
22404 #. type: =head2
22405 #: ../src/guestfs-actions.pod:1050
22406 msgid "guestfs_chmod"
22407 msgstr ""
22408
22409 #. type: verbatim
22410 #: ../src/guestfs-actions.pod:1052
22411 #, no-wrap
22412 msgid ""
22413 " int\n"
22414 " guestfs_chmod (guestfs_h *g,\n"
22415 "                int mode,\n"
22416 "                const char *path);\n"
22417 "\n"
22418 msgstr ""
22419
22420 #. type: =head2
22421 #: ../src/guestfs-actions.pod:1070
22422 msgid "guestfs_chown"
22423 msgstr ""
22424
22425 #. type: verbatim
22426 #: ../src/guestfs-actions.pod:1072
22427 #, no-wrap
22428 msgid ""
22429 " int\n"
22430 " guestfs_chown (guestfs_h *g,\n"
22431 "                int owner,\n"
22432 "                int group,\n"
22433 "                const char *path);\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: =head2
22438 #: ../src/guestfs-actions.pod:1088
22439 msgid "guestfs_command"
22440 msgstr ""
22441
22442 #. type: verbatim
22443 #: ../src/guestfs-actions.pod:1090
22444 #, no-wrap
22445 msgid ""
22446 " char *\n"
22447 " guestfs_command (guestfs_h *g,\n"
22448 "                  char *const *arguments);\n"
22449 "\n"
22450 msgstr ""
22451
22452 #. type: textblock
22453 #: ../src/guestfs-actions.pod:1099
22454 msgid ""
22455 "The single parameter is an argv-style list of arguments.  The first element "
22456 "is the name of the program to run.  Subsequent elements are parameters.  The "
22457 "list must be non-empty (ie. must contain a program name).  Note that the "
22458 "command runs directly, and is I<not> invoked via the shell (see "
22459 "C<guestfs_sh>)."
22460 msgstr ""
22461
22462 #. type: textblock
22463 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150 ../src/guestfs-actions.pod:1615
22464 msgid "(Added in 0.9.1)"
22465 msgstr ""
22466
22467 #. type: =head2
22468 #: ../src/guestfs-actions.pod:1132
22469 msgid "guestfs_command_lines"
22470 msgstr ""
22471
22472 #. type: verbatim
22473 #: ../src/guestfs-actions.pod:1134
22474 #, no-wrap
22475 msgid ""
22476 " char **\n"
22477 " guestfs_command_lines (guestfs_h *g,\n"
22478 "                        char *const *arguments);\n"
22479 "\n"
22480 msgstr ""
22481
22482 #. type: textblock
22483 #: ../src/guestfs-actions.pod:1138
22484 msgid ""
22485 "This is the same as C<guestfs_command>, but splits the result into a list of "
22486 "lines."
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../src/guestfs-actions.pod:1141
22491 msgid "See also: C<guestfs_sh_lines>"
22492 msgstr ""
22493
22494 #. type: =head2
22495 #: ../src/guestfs-actions.pod:1152
22496 msgid "guestfs_config"
22497 msgstr ""
22498
22499 #. type: verbatim
22500 #: ../src/guestfs-actions.pod:1154
22501 #, no-wrap
22502 msgid ""
22503 " int\n"
22504 " guestfs_config (guestfs_h *g,\n"
22505 "                 const char *qemuparam,\n"
22506 "                 const char *qemuvalue);\n"
22507 "\n"
22508 msgstr ""
22509
22510 #. type: =head2
22511 #: ../src/guestfs-actions.pod:1172
22512 msgid "guestfs_copy_size"
22513 msgstr ""
22514
22515 #. type: verbatim
22516 #: ../src/guestfs-actions.pod:1174
22517 #, no-wrap
22518 msgid ""
22519 " int\n"
22520 " guestfs_copy_size (guestfs_h *g,\n"
22521 "                    const char *src,\n"
22522 "                    const char *dest,\n"
22523 "                    int64_t size);\n"
22524 "\n"
22525 msgstr ""
22526
22527 #. type: textblock
22528 #: ../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:3643 ../src/guestfs-actions.pod:7243 ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784 ../src/guestfs-actions.pod:7807
22529 msgid ""
22530 "This long-running command can generate progress notification messages so "
22531 "that the caller can display a progress bar or indicator.  To receive these "
22532 "messages, the caller must register a progress event callback.  See "
22533 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
22534 msgstr ""
22535
22536 #. type: textblock
22537 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367 ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478 ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
22538 msgid "(Added in 1.0.87)"
22539 msgstr ""
22540
22541 #. type: =head2
22542 #: ../src/guestfs-actions.pod:1195
22543 msgid "guestfs_cp"
22544 msgstr ""
22545
22546 #. type: verbatim
22547 #: ../src/guestfs-actions.pod:1197
22548 #, no-wrap
22549 msgid ""
22550 " int\n"
22551 " guestfs_cp (guestfs_h *g,\n"
22552 "             const char *src,\n"
22553 "             const char *dest);\n"
22554 "\n"
22555 msgstr ""
22556
22557 #. type: textblock
22558 #: ../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:5121 ../src/guestfs-actions.pod:5596
22559 msgid "(Added in 1.0.18)"
22560 msgstr ""
22561
22562 #. type: =head2
22563 #: ../src/guestfs-actions.pod:1209
22564 msgid "guestfs_cp_a"
22565 msgstr ""
22566
22567 #. type: verbatim
22568 #: ../src/guestfs-actions.pod:1211
22569 #, no-wrap
22570 msgid ""
22571 " int\n"
22572 " guestfs_cp_a (guestfs_h *g,\n"
22573 "               const char *src,\n"
22574 "               const char *dest);\n"
22575 "\n"
22576 msgstr ""
22577
22578 #. type: =head2
22579 #: ../src/guestfs-actions.pod:1223
22580 msgid "guestfs_dd"
22581 msgstr ""
22582
22583 #. type: verbatim
22584 #: ../src/guestfs-actions.pod:1225
22585 #, no-wrap
22586 msgid ""
22587 " int\n"
22588 " guestfs_dd (guestfs_h *g,\n"
22589 "             const char *src,\n"
22590 "             const char *dest);\n"
22591 "\n"
22592 msgstr ""
22593
22594 #. type: textblock
22595 #: ../src/guestfs-actions.pod:1235
22596 msgid ""
22597 "If the destination is a device, it must be as large or larger than the "
22598 "source file or device, otherwise the copy will fail.  This command cannot do "
22599 "partial copies (see C<guestfs_copy_size>)."
22600 msgstr ""
22601
22602 #. type: =head2
22603 #: ../src/guestfs-actions.pod:1243
22604 msgid "guestfs_df"
22605 msgstr ""
22606
22607 #. type: verbatim
22608 #: ../src/guestfs-actions.pod:1245
22609 #, no-wrap
22610 msgid ""
22611 " char *\n"
22612 " guestfs_df (guestfs_h *g);\n"
22613 "\n"
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
22618 msgid ""
22619 "This command is mostly useful for interactive sessions.  It is I<not> "
22620 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
22621 "from programs."
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274 ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458 ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021 ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637 ../src/guestfs-actions.pod:7650
22626 msgid "(Added in 1.0.54)"
22627 msgstr ""
22628
22629 #. type: =head2
22630 #: ../src/guestfs-actions.pod:1259
22631 msgid "guestfs_df_h"
22632 msgstr ""
22633
22634 #. type: verbatim
22635 #: ../src/guestfs-actions.pod:1261
22636 #, no-wrap
22637 msgid ""
22638 " char *\n"
22639 " guestfs_df_h (guestfs_h *g);\n"
22640 "\n"
22641 msgstr ""
22642
22643 #. type: =head2
22644 #: ../src/guestfs-actions.pod:1276
22645 msgid "guestfs_dmesg"
22646 msgstr ""
22647
22648 #. type: verbatim
22649 #: ../src/guestfs-actions.pod:1278
22650 #, no-wrap
22651 msgid ""
22652 " char *\n"
22653 " guestfs_dmesg (guestfs_h *g);\n"
22654 "\n"
22655 msgstr ""
22656
22657 #. type: textblock
22658 #: ../src/guestfs-actions.pod:1285
22659 msgid ""
22660 "Another way to get the same information is to enable verbose messages with "
22661 "C<guestfs_set_verbose> or by setting the environment variable "
22662 "C<LIBGUESTFS_DEBUG=1> before running the program."
22663 msgstr ""
22664
22665 #. type: =head2
22666 #: ../src/guestfs-actions.pod:1295
22667 msgid "guestfs_download"
22668 msgstr ""
22669
22670 #. type: verbatim
22671 #: ../src/guestfs-actions.pod:1297
22672 #, no-wrap
22673 msgid ""
22674 " int\n"
22675 " guestfs_download (guestfs_h *g,\n"
22676 "                   const char *remotefilename,\n"
22677 "                   const char *filename);\n"
22678 "\n"
22679 msgstr ""
22680
22681 #. type: textblock
22682 #: ../src/guestfs-actions.pod:1307
22683 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
22684 msgstr ""
22685
22686 #. type: =head2
22687 #: ../src/guestfs-actions.pod:1318
22688 msgid "guestfs_download_offset"
22689 msgstr ""
22690
22691 #. type: verbatim
22692 #: ../src/guestfs-actions.pod:1320
22693 #, no-wrap
22694 msgid ""
22695 " int\n"
22696 " guestfs_download_offset (guestfs_h *g,\n"
22697 "                          const char *remotefilename,\n"
22698 "                          const char *filename,\n"
22699 "                          int64_t offset,\n"
22700 "                          int64_t size);\n"
22701 "\n"
22702 msgstr ""
22703
22704 #. type: textblock
22705 #: ../src/guestfs-actions.pod:1333
22706 msgid ""
22707 "Note that there is no limit on the amount of data that can be downloaded "
22708 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
22709 "full amount unless an error occurs."
22710 msgstr ""
22711
22712 #. type: textblock
22713 #: ../src/guestfs-actions.pod:1338
22714 msgid "See also C<guestfs_download>, C<guestfs_pread>."
22715 msgstr ""
22716
22717 #. type: textblock
22718 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
22719 msgid "(Added in 1.5.17)"
22720 msgstr ""
22721
22722 #. type: =head2
22723 #: ../src/guestfs-actions.pod:1349
22724 msgid "guestfs_drop_caches"
22725 msgstr ""
22726
22727 #. type: verbatim
22728 #: ../src/guestfs-actions.pod:1351
22729 #, no-wrap
22730 msgid ""
22731 " int\n"
22732 " guestfs_drop_caches (guestfs_h *g,\n"
22733 "                      int whattodrop);\n"
22734 "\n"
22735 msgstr ""
22736
22737 #. type: =head2
22738 #: ../src/guestfs-actions.pod:1369
22739 msgid "guestfs_du"
22740 msgstr ""
22741
22742 #. type: verbatim
22743 #: ../src/guestfs-actions.pod:1371
22744 #, no-wrap
22745 msgid ""
22746 " int64_t\n"
22747 " guestfs_du (guestfs_h *g,\n"
22748 "             const char *path);\n"
22749 "\n"
22750 msgstr ""
22751
22752 #. type: =head2
22753 #: ../src/guestfs-actions.pod:1394
22754 msgid "guestfs_e2fsck_f"
22755 msgstr ""
22756
22757 #. type: verbatim
22758 #: ../src/guestfs-actions.pod:1396
22759 #, no-wrap
22760 msgid ""
22761 " int\n"
22762 " guestfs_e2fsck_f (guestfs_h *g,\n"
22763 "                   const char *device);\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../src/guestfs-actions.pod:1404
22769 msgid ""
22770 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
22771 "Normally you should use C<guestfs_fsck>."
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../src/guestfs-actions.pod:1409
22776 msgid "(Added in 1.0.29)"
22777 msgstr ""
22778
22779 #. type: =head2
22780 #: ../src/guestfs-actions.pod:1411
22781 msgid "guestfs_echo_daemon"
22782 msgstr ""
22783
22784 #. type: verbatim
22785 #: ../src/guestfs-actions.pod:1413
22786 #, no-wrap
22787 msgid ""
22788 " char *\n"
22789 " guestfs_echo_daemon (guestfs_h *g,\n"
22790 "                      char *const *words);\n"
22791 "\n"
22792 msgstr ""
22793
22794 #. type: textblock
22795 #: ../src/guestfs-actions.pod:1422
22796 msgid "See also C<guestfs_ping_daemon>."
22797 msgstr ""
22798
22799 #. type: textblock
22800 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:6453
22801 msgid "(Added in 1.0.69)"
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../src/guestfs-actions.pod:1429
22806 msgid "guestfs_egrep"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../src/guestfs-actions.pod:1431
22811 #, no-wrap
22812 msgid ""
22813 " char **\n"
22814 " guestfs_egrep (guestfs_h *g,\n"
22815 "                const char *regex,\n"
22816 "                const char *path);\n"
22817 "\n"
22818 msgstr ""
22819
22820 #. type: textblock
22821 #: ../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:2479 ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857 ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884 ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899 ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979 ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861 ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887 ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922 ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948 ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761 ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874 ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
22822 msgid "(Added in 1.0.66)"
22823 msgstr ""
22824
22825 #. type: =head2
22826 #: ../src/guestfs-actions.pod:1448
22827 msgid "guestfs_egrepi"
22828 msgstr ""
22829
22830 #. type: verbatim
22831 #: ../src/guestfs-actions.pod:1450
22832 #, no-wrap
22833 msgid ""
22834 " char **\n"
22835 " guestfs_egrepi (guestfs_h *g,\n"
22836 "                 const char *regex,\n"
22837 "                 const char *path);\n"
22838 "\n"
22839 msgstr ""
22840
22841 #. type: =head2
22842 #: ../src/guestfs-actions.pod:1467
22843 msgid "guestfs_equal"
22844 msgstr ""
22845
22846 #. type: verbatim
22847 #: ../src/guestfs-actions.pod:1469
22848 #, no-wrap
22849 msgid ""
22850 " int\n"
22851 " guestfs_equal (guestfs_h *g,\n"
22852 "                const char *file1,\n"
22853 "                const char *file2);\n"
22854 "\n"
22855 msgstr ""
22856
22857 #. type: =head2
22858 #: ../src/guestfs-actions.pod:1483
22859 msgid "guestfs_exists"
22860 msgstr ""
22861
22862 #. type: verbatim
22863 #: ../src/guestfs-actions.pod:1485
22864 #, no-wrap
22865 msgid ""
22866 " int\n"
22867 " guestfs_exists (guestfs_h *g,\n"
22868 "                 const char *path);\n"
22869 "\n"
22870 msgstr ""
22871
22872 #. type: textblock
22873 #: ../src/guestfs-actions.pod:1492
22874 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
22875 msgstr ""
22876
22877 #. type: =head2
22878 #: ../src/guestfs-actions.pod:1498
22879 msgid "guestfs_fallocate"
22880 msgstr ""
22881
22882 #. type: verbatim
22883 #: ../src/guestfs-actions.pod:1500
22884 #, no-wrap
22885 msgid ""
22886 " int\n"
22887 " guestfs_fallocate (guestfs_h *g,\n"
22888 "                    const char *path,\n"
22889 "                    int len);\n"
22890 "\n"
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../src/guestfs-actions.pod:1505
22895 msgid ""
22896 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
22897 "call instead."
22898 msgstr ""
22899
22900 #. type: =head2
22901 #: ../src/guestfs-actions.pod:1524
22902 msgid "guestfs_fallocate64"
22903 msgstr ""
22904
22905 #. type: verbatim
22906 #: ../src/guestfs-actions.pod:1526
22907 #, no-wrap
22908 msgid ""
22909 " int\n"
22910 " guestfs_fallocate64 (guestfs_h *g,\n"
22911 "                      const char *path,\n"
22912 "                      int64_t len);\n"
22913 "\n"
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../src/guestfs-actions.pod:1535
22918 msgid ""
22919 "Note that this call allocates disk blocks for the file.  To create a sparse "
22920 "file use C<guestfs_truncate_size> instead."
22921 msgstr ""
22922
22923 #. type: textblock
22924 #: ../src/guestfs-actions.pod:1538
22925 msgid ""
22926 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
22927 "oversight it only allowed 30 bit lengths to be specified, effectively "
22928 "limiting the maximum size of files created through that call to 1GB."
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../src/guestfs-actions.pod:1549
22933 msgid "(Added in 1.3.17)"
22934 msgstr ""
22935
22936 #. type: =head2
22937 #: ../src/guestfs-actions.pod:1551
22938 msgid "guestfs_fgrep"
22939 msgstr ""
22940
22941 #. type: verbatim
22942 #: ../src/guestfs-actions.pod:1553
22943 #, no-wrap
22944 msgid ""
22945 " char **\n"
22946 " guestfs_fgrep (guestfs_h *g,\n"
22947 "                const char *pattern,\n"
22948 "                const char *path);\n"
22949 "\n"
22950 msgstr ""
22951
22952 #. type: =head2
22953 #: ../src/guestfs-actions.pod:1570
22954 msgid "guestfs_fgrepi"
22955 msgstr ""
22956
22957 #. type: verbatim
22958 #: ../src/guestfs-actions.pod:1572
22959 #, no-wrap
22960 msgid ""
22961 " char **\n"
22962 " guestfs_fgrepi (guestfs_h *g,\n"
22963 "                 const char *pattern,\n"
22964 "                 const char *path);\n"
22965 "\n"
22966 msgstr ""
22967
22968 #. type: =head2
22969 #: ../src/guestfs-actions.pod:1589
22970 msgid "guestfs_file"
22971 msgstr ""
22972
22973 #. type: verbatim
22974 #: ../src/guestfs-actions.pod:1591
22975 #, no-wrap
22976 msgid ""
22977 " char *\n"
22978 " guestfs_file (guestfs_h *g,\n"
22979 "               const char *path);\n"
22980 "\n"
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../src/guestfs-actions.pod:1609
22985 msgid ""
22986 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
22987 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
22988 msgstr ""
22989
22990 #. type: =head2
22991 #: ../src/guestfs-actions.pod:1617
22992 msgid "guestfs_file_architecture"
22993 msgstr ""
22994
22995 #. type: verbatim
22996 #: ../src/guestfs-actions.pod:1619
22997 #, no-wrap
22998 msgid ""
22999 " char *\n"
23000 " guestfs_file_architecture (guestfs_h *g,\n"
23001 "                            const char *filename);\n"
23002 "\n"
23003 msgstr ""
23004
23005 #. type: textblock
23006 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890 ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608 ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764 ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969 ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084 ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3546
23007 msgid "(Added in 1.5.3)"
23008 msgstr ""
23009
23010 #. type: =head2
23011 #: ../src/guestfs-actions.pod:1729
23012 msgid "guestfs_filesize"
23013 msgstr ""
23014
23015 #. type: verbatim
23016 #: ../src/guestfs-actions.pod:1731
23017 #, no-wrap
23018 msgid ""
23019 " int64_t\n"
23020 " guestfs_filesize (guestfs_h *g,\n"
23021 "                   const char *file);\n"
23022 "\n"
23023 msgstr ""
23024
23025 #. type: textblock
23026 #: ../src/guestfs-actions.pod:1737
23027 msgid ""
23028 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
23029 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
23030 "devices, use C<guestfs_blockdev_getsize64>."
23031 msgstr ""
23032
23033 #. type: textblock
23034 #: ../src/guestfs-actions.pod:1743
23035 msgid "(Added in 1.0.82)"
23036 msgstr ""
23037
23038 #. type: =head2
23039 #: ../src/guestfs-actions.pod:1745
23040 msgid "guestfs_fill"
23041 msgstr ""
23042
23043 #. type: verbatim
23044 #: ../src/guestfs-actions.pod:1747
23045 #, no-wrap
23046 msgid ""
23047 " int\n"
23048 " guestfs_fill (guestfs_h *g,\n"
23049 "               int c,\n"
23050 "               int len,\n"
23051 "               const char *path);\n"
23052 "\n"
23053 msgstr ""
23054
23055 #. type: textblock
23056 #: ../src/guestfs-actions.pod:1757
23057 msgid ""
23058 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23059 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23060 "bytes use C<guestfs_fill_pattern>."
23061 msgstr ""
23062
23063 #. type: textblock
23064 #: ../src/guestfs-actions.pod:1769
23065 msgid "(Added in 1.0.79)"
23066 msgstr ""
23067
23068 #. type: =head2
23069 #: ../src/guestfs-actions.pod:1771
23070 msgid "guestfs_fill_pattern"
23071 msgstr ""
23072
23073 #. type: verbatim
23074 #: ../src/guestfs-actions.pod:1773
23075 #, no-wrap
23076 msgid ""
23077 " int\n"
23078 " guestfs_fill_pattern (guestfs_h *g,\n"
23079 "                       const char *pattern,\n"
23080 "                       int len,\n"
23081 "                       const char *path);\n"
23082 "\n"
23083 msgstr ""
23084
23085 #. type: textblock
23086 #: ../src/guestfs-actions.pod:1779
23087 msgid ""
23088 "This function is like C<guestfs_fill> except that it creates a new file of "
23089 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23090 "pattern is truncated if necessary to ensure the length of the file is "
23091 "exactly C<len> bytes."
23092 msgstr ""
23093
23094 #. type: textblock
23095 #: ../src/guestfs-actions.pod:1791
23096 msgid "(Added in 1.3.12)"
23097 msgstr ""
23098
23099 #. type: =head2
23100 #: ../src/guestfs-actions.pod:1793
23101 msgid "guestfs_find"
23102 msgstr ""
23103
23104 #. type: verbatim
23105 #: ../src/guestfs-actions.pod:1795
23106 #, no-wrap
23107 msgid ""
23108 " char **\n"
23109 " guestfs_find (guestfs_h *g,\n"
23110 "               const char *directory);\n"
23111 "\n"
23112 msgstr ""
23113
23114 #. type: textblock
23115 #: ../src/guestfs-actions.pod:1811
23116 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23117 msgstr ""
23118
23119 #. type: textblock
23120 #: ../src/guestfs-actions.pod:1824
23121 msgid "See also C<guestfs_find0>."
23122 msgstr ""
23123
23124 #. type: textblock
23125 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:6014
23126 msgid "(Added in 1.0.27)"
23127 msgstr ""
23128
23129 #. type: =head2
23130 #: ../src/guestfs-actions.pod:1835
23131 msgid "guestfs_find0"
23132 msgstr ""
23133
23134 #. type: verbatim
23135 #: ../src/guestfs-actions.pod:1837
23136 #, no-wrap
23137 msgid ""
23138 " int\n"
23139 " guestfs_find0 (guestfs_h *g,\n"
23140 "                const char *directory,\n"
23141 "                const char *files);\n"
23142 "\n"
23143 msgstr ""
23144
23145 #. type: textblock
23146 #: ../src/guestfs-actions.pod:1846
23147 msgid ""
23148 "This command works the same way as C<guestfs_find> with the following "
23149 "exceptions:"
23150 msgstr ""
23151
23152 #. type: textblock
23153 #: ../src/guestfs-actions.pod:1873
23154 msgid "(Added in 1.0.74)"
23155 msgstr ""
23156
23157 #. type: =head2
23158 #: ../src/guestfs-actions.pod:1875
23159 msgid "guestfs_findfs_label"
23160 msgstr ""
23161
23162 #. type: verbatim
23163 #: ../src/guestfs-actions.pod:1877
23164 #, no-wrap
23165 msgid ""
23166 " char *\n"
23167 " guestfs_findfs_label (guestfs_h *g,\n"
23168 "                       const char *label);\n"
23169 "\n"
23170 msgstr ""
23171
23172 #. type: textblock
23173 #: ../src/guestfs-actions.pod:1885
23174 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23175 msgstr ""
23176
23177 #. type: =head2
23178 #: ../src/guestfs-actions.pod:1892
23179 msgid "guestfs_findfs_uuid"
23180 msgstr ""
23181
23182 #. type: verbatim
23183 #: ../src/guestfs-actions.pod:1894
23184 #, no-wrap
23185 msgid ""
23186 " char *\n"
23187 " guestfs_findfs_uuid (guestfs_h *g,\n"
23188 "                      const char *uuid);\n"
23189 "\n"
23190 msgstr ""
23191
23192 #. type: textblock
23193 #: ../src/guestfs-actions.pod:1902
23194 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23195 msgstr ""
23196
23197 #. type: =head2
23198 #: ../src/guestfs-actions.pod:1909
23199 msgid "guestfs_fsck"
23200 msgstr ""
23201
23202 #. type: verbatim
23203 #: ../src/guestfs-actions.pod:1911
23204 #, no-wrap
23205 msgid ""
23206 " int\n"
23207 " guestfs_fsck (guestfs_h *g,\n"
23208 "               const char *fstype,\n"
23209 "               const char *device);\n"
23210 "\n"
23211 msgstr ""
23212
23213 #. type: textblock
23214 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
23215 msgid "(Added in 1.0.16)"
23216 msgstr ""
23217
23218 #. type: =head2
23219 #: ../src/guestfs-actions.pod:1948
23220 msgid "guestfs_get_append"
23221 msgstr ""
23222
23223 #. type: verbatim
23224 #: ../src/guestfs-actions.pod:1950
23225 #, no-wrap
23226 msgid ""
23227 " const char *\n"
23228 " guestfs_get_append (guestfs_h *g);\n"
23229 "\n"
23230 msgstr ""
23231
23232 #. type: textblock
23233 #: ../src/guestfs-actions.pod:1958
23234 msgid ""
23235 "This function returns a string which may be NULL.  There is no way to return "
23236 "an error from this function.  The string is owned by the guest handle and "
23237 "must I<not> be freed."
23238 msgstr ""
23239
23240 #. type: textblock
23241 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616 ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651 ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
23242 msgid "(Added in 1.0.26)"
23243 msgstr ""
23244
23245 #. type: =head2
23246 #: ../src/guestfs-actions.pod:1964
23247 msgid "guestfs_get_attach_method"
23248 msgstr ""
23249
23250 #. type: verbatim
23251 #: ../src/guestfs-actions.pod:1966
23252 #, no-wrap
23253 msgid ""
23254 " char *\n"
23255 " guestfs_get_attach_method (guestfs_h *g);\n"
23256 "\n"
23257 msgstr ""
23258
23259 #. type: textblock
23260 #: ../src/guestfs-actions.pod:1969
23261 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
23266 msgid "(Added in 1.9.8)"
23267 msgstr ""
23268
23269 #. type: =head2
23270 #: ../src/guestfs-actions.pod:1976
23271 msgid "guestfs_get_autosync"
23272 msgstr ""
23273
23274 #. type: verbatim
23275 #: ../src/guestfs-actions.pod:1978
23276 #, no-wrap
23277 msgid ""
23278 " int\n"
23279 " guestfs_get_autosync (guestfs_h *g);\n"
23280 "\n"
23281 msgstr ""
23282
23283 #. type: =head2
23284 #: ../src/guestfs-actions.pod:1987
23285 msgid "guestfs_get_direct"
23286 msgstr ""
23287
23288 #. type: verbatim
23289 #: ../src/guestfs-actions.pod:1989
23290 #, no-wrap
23291 msgid ""
23292 " int\n"
23293 " guestfs_get_direct (guestfs_h *g);\n"
23294 "\n"
23295 msgstr ""
23296
23297 #. type: textblock
23298 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
23299 msgid "(Added in 1.0.72)"
23300 msgstr ""
23301
23302 #. type: =head2
23303 #: ../src/guestfs-actions.pod:1998
23304 msgid "guestfs_get_e2label"
23305 msgstr ""
23306
23307 #. type: verbatim
23308 #: ../src/guestfs-actions.pod:2000
23309 #, no-wrap
23310 msgid ""
23311 " char *\n"
23312 " guestfs_get_e2label (guestfs_h *g,\n"
23313 "                      const char *device);\n"
23314 "\n"
23315 msgstr ""
23316
23317 #. type: textblock
23318 #: ../src/guestfs-actions.pod:2004
23319 msgid ""
23320 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
23321 "call instead."
23322 msgstr ""
23323
23324 #. type: textblock
23325 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038 ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
23326 msgid "(Added in 1.0.15)"
23327 msgstr ""
23328
23329 #. type: =head2
23330 #: ../src/guestfs-actions.pod:2019
23331 msgid "guestfs_get_e2uuid"
23332 msgstr ""
23333
23334 #. type: verbatim
23335 #: ../src/guestfs-actions.pod:2021
23336 #, no-wrap
23337 msgid ""
23338 " char *\n"
23339 " guestfs_get_e2uuid (guestfs_h *g,\n"
23340 "                     const char *device);\n"
23341 "\n"
23342 msgstr ""
23343
23344 #. type: textblock
23345 #: ../src/guestfs-actions.pod:2025
23346 msgid ""
23347 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
23348 "call instead."
23349 msgstr ""
23350
23351 #. type: =head2
23352 #: ../src/guestfs-actions.pod:2040
23353 msgid "guestfs_get_memsize"
23354 msgstr ""
23355
23356 #. type: verbatim
23357 #: ../src/guestfs-actions.pod:2042
23358 #, no-wrap
23359 msgid ""
23360 " int\n"
23361 " guestfs_get_memsize (guestfs_h *g);\n"
23362 "\n"
23363 msgstr ""
23364
23365 #. type: textblock
23366 #: ../src/guestfs-actions.pod:2048
23367 msgid ""
23368 "If C<guestfs_set_memsize> was not called on this handle, and if "
23369 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23370 "value for memsize."
23371 msgstr ""
23372
23373 #. type: textblock
23374 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595 ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823 ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884 ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303 ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
23375 msgid "(Added in 1.0.55)"
23376 msgstr ""
23377
23378 #. type: =head2
23379 #: ../src/guestfs-actions.pod:2059
23380 msgid "guestfs_get_network"
23381 msgstr ""
23382
23383 #. type: verbatim
23384 #: ../src/guestfs-actions.pod:2061
23385 #, no-wrap
23386 msgid ""
23387 " int\n"
23388 " guestfs_get_network (guestfs_h *g);\n"
23389 "\n"
23390 msgstr ""
23391
23392 #. type: textblock
23393 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
23394 msgid "(Added in 1.5.4)"
23395 msgstr ""
23396
23397 #. type: =head2
23398 #: ../src/guestfs-actions.pod:2070
23399 msgid "guestfs_get_path"
23400 msgstr ""
23401
23402 #. type: verbatim
23403 #: ../src/guestfs-actions.pod:2072
23404 #, no-wrap
23405 msgid ""
23406 " const char *\n"
23407 " guestfs_get_path (guestfs_h *g);\n"
23408 "\n"
23409 msgstr ""
23410
23411 #. type: textblock
23412 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
23413 msgid ""
23414 "This function returns a string, or NULL on error.  The string is owned by "
23415 "the guest handle and must I<not> be freed."
23416 msgstr ""
23417
23418 #. type: =head2
23419 #: ../src/guestfs-actions.pod:2085
23420 msgid "guestfs_get_pgroup"
23421 msgstr ""
23422
23423 #. type: verbatim
23424 #: ../src/guestfs-actions.pod:2087
23425 #, no-wrap
23426 msgid ""
23427 " int\n"
23428 " guestfs_get_pgroup (guestfs_h *g);\n"
23429 "\n"
23430 msgstr ""
23431
23432 #. type: textblock
23433 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358 ../src/guestfs-actions.pod:7690
23434 msgid "(Added in 1.11.18)"
23435 msgstr ""
23436
23437 #. type: =head2
23438 #: ../src/guestfs-actions.pod:2096
23439 msgid "guestfs_get_pid"
23440 msgstr ""
23441
23442 #. type: verbatim
23443 #: ../src/guestfs-actions.pod:2098
23444 #, no-wrap
23445 msgid ""
23446 " int\n"
23447 " guestfs_get_pid (guestfs_h *g);\n"
23448 "\n"
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../src/guestfs-actions.pod:2108
23453 msgid "(Added in 1.0.56)"
23454 msgstr ""
23455
23456 #. type: =head2
23457 #: ../src/guestfs-actions.pod:2110
23458 msgid "guestfs_get_qemu"
23459 msgstr ""
23460
23461 #. type: verbatim
23462 #: ../src/guestfs-actions.pod:2112
23463 #, no-wrap
23464 msgid ""
23465 " const char *\n"
23466 " guestfs_get_qemu (guestfs_h *g);\n"
23467 "\n"
23468 msgstr ""
23469
23470 #. type: textblock
23471 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
23472 msgid "(Added in 1.0.6)"
23473 msgstr ""
23474
23475 #. type: =head2
23476 #: ../src/guestfs-actions.pod:2125
23477 msgid "guestfs_get_recovery_proc"
23478 msgstr ""
23479
23480 #. type: verbatim
23481 #: ../src/guestfs-actions.pod:2127
23482 #, no-wrap
23483 msgid ""
23484 " int\n"
23485 " guestfs_get_recovery_proc (guestfs_h *g);\n"
23486 "\n"
23487 msgstr ""
23488
23489 #. type: textblock
23490 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668 ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402 ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622 ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410 ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121 ../src/guestfs-actions.pod:7313
23491 msgid "(Added in 1.0.77)"
23492 msgstr ""
23493
23494 #. type: =head2
23495 #: ../src/guestfs-actions.pod:2136
23496 msgid "guestfs_get_selinux"
23497 msgstr ""
23498
23499 #. type: verbatim
23500 #: ../src/guestfs-actions.pod:2138
23501 #, no-wrap
23502 msgid ""
23503 " int\n"
23504 " guestfs_get_selinux (guestfs_h *g);\n"
23505 "\n"
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../src/guestfs-actions.pod:2141
23510 msgid ""
23511 "This returns the current setting of the selinux flag which is passed to the "
23512 "appliance at boot time.  See C<guestfs_set_selinux>."
23513 msgstr ""
23514
23515 #. type: textblock
23516 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212 ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
23517 msgid "(Added in 1.0.67)"
23518 msgstr ""
23519
23520 #. type: =head2
23521 #: ../src/guestfs-actions.pod:2151
23522 msgid "guestfs_get_state"
23523 msgstr ""
23524
23525 #. type: verbatim
23526 #: ../src/guestfs-actions.pod:2153
23527 #, no-wrap
23528 msgid ""
23529 " int\n"
23530 " guestfs_get_state (guestfs_h *g);\n"
23531 "\n"
23532 msgstr ""
23533
23534 #. type: =head2
23535 #: ../src/guestfs-actions.pod:2165
23536 msgid "guestfs_get_trace"
23537 msgstr ""
23538
23539 #. type: verbatim
23540 #: ../src/guestfs-actions.pod:2167
23541 #, no-wrap
23542 msgid ""
23543 " int\n"
23544 " guestfs_get_trace (guestfs_h *g);\n"
23545 "\n"
23546 msgstr ""
23547
23548 #. type: =head2
23549 #: ../src/guestfs-actions.pod:2176
23550 msgid "guestfs_get_umask"
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../src/guestfs-actions.pod:2178
23555 #, no-wrap
23556 msgid ""
23557 " int\n"
23558 " guestfs_get_umask (guestfs_h *g);\n"
23559 "\n"
23560 msgstr ""
23561
23562 #. type: textblock
23563 #: ../src/guestfs-actions.pod:2181
23564 msgid ""
23565 "Return the current umask.  By default the umask is C<022> unless it has been "
23566 "set by calling C<guestfs_umask>."
23567 msgstr ""
23568
23569 #. type: =head2
23570 #: ../src/guestfs-actions.pod:2188
23571 msgid "guestfs_get_verbose"
23572 msgstr ""
23573
23574 #. type: verbatim
23575 #: ../src/guestfs-actions.pod:2190
23576 #, no-wrap
23577 msgid ""
23578 " int\n"
23579 " guestfs_get_verbose (guestfs_h *g);\n"
23580 "\n"
23581 msgstr ""
23582
23583 #. type: =head2
23584 #: ../src/guestfs-actions.pod:2199
23585 msgid "guestfs_getcon"
23586 msgstr ""
23587
23588 #. type: verbatim
23589 #: ../src/guestfs-actions.pod:2201
23590 #, no-wrap
23591 msgid ""
23592 " char *\n"
23593 " guestfs_getcon (guestfs_h *g);\n"
23594 "\n"
23595 msgstr ""
23596
23597 #. type: textblock
23598 #: ../src/guestfs-actions.pod:2206
23599 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
23600 msgstr ""
23601
23602 #. type: =head2
23603 #: ../src/guestfs-actions.pod:2214
23604 msgid "guestfs_getxattr"
23605 msgstr ""
23606
23607 #. type: verbatim
23608 #: ../src/guestfs-actions.pod:2216
23609 #, no-wrap
23610 msgid ""
23611 " char *\n"
23612 " guestfs_getxattr (guestfs_h *g,\n"
23613 "                   const char *path,\n"
23614 "                   const char *name,\n"
23615 "                   size_t *size_r);\n"
23616 "\n"
23617 msgstr ""
23618
23619 #. type: textblock
23620 #: ../src/guestfs-actions.pod:2222
23621 msgid ""
23622 "Get a single extended attribute from file C<path> named C<name>.  This call "
23623 "follows symlinks.  If you want to lookup an extended attribute for the "
23624 "symlink itself, use C<guestfs_lgetxattr>."
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
23629 msgid ""
23630 "Normally it is better to get all extended attributes from a file in one go "
23631 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
23632 "implementations are buggy and do not provide a way to list out attributes.  "
23633 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
23634 "extended attributes you want in advance and call this function."
23635 msgstr ""
23636
23637 #. type: textblock
23638 #: ../src/guestfs-actions.pod:2236
23639 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
23640 msgstr ""
23641
23642 #. type: textblock
23643 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694 ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5822
23644 msgid ""
23645 "This function returns a buffer, or NULL on error.  The size of the returned "
23646 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
23647 "after use>."
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
23652 msgid "(Added in 1.7.24)"
23653 msgstr ""
23654
23655 #. type: =head2
23656 #: ../src/guestfs-actions.pod:2244
23657 msgid "guestfs_getxattrs"
23658 msgstr ""
23659
23660 #. type: verbatim
23661 #: ../src/guestfs-actions.pod:2246
23662 #, no-wrap
23663 msgid ""
23664 " struct guestfs_xattr_list *\n"
23665 " guestfs_getxattrs (guestfs_h *g,\n"
23666 "                    const char *path);\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../src/guestfs-actions.pod:2256
23672 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710 ../src/guestfs-actions.pod:4398
23677 msgid ""
23678 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
23679 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
23680 msgstr ""
23681
23682 #. type: textblock
23683 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714 ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506 ../src/guestfs-actions.pod:7901
23684 msgid "(Added in 1.0.59)"
23685 msgstr ""
23686
23687 #. type: =head2
23688 #: ../src/guestfs-actions.pod:2264
23689 msgid "guestfs_glob_expand"
23690 msgstr ""
23691
23692 #. type: verbatim
23693 #: ../src/guestfs-actions.pod:2266
23694 #, no-wrap
23695 msgid ""
23696 " char **\n"
23697 " guestfs_glob_expand (guestfs_h *g,\n"
23698 "                      const char *pattern);\n"
23699 "\n"
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6716
23704 msgid "(Added in 1.0.50)"
23705 msgstr ""
23706
23707 #. type: =head2
23708 #: ../src/guestfs-actions.pod:2287
23709 msgid "guestfs_grep"
23710 msgstr ""
23711
23712 #. type: verbatim
23713 #: ../src/guestfs-actions.pod:2289
23714 #, no-wrap
23715 msgid ""
23716 " char **\n"
23717 " guestfs_grep (guestfs_h *g,\n"
23718 "               const char *regex,\n"
23719 "               const char *path);\n"
23720 "\n"
23721 msgstr ""
23722
23723 #. type: =head2
23724 #: ../src/guestfs-actions.pod:2306
23725 msgid "guestfs_grepi"
23726 msgstr ""
23727
23728 #. type: verbatim
23729 #: ../src/guestfs-actions.pod:2308
23730 #, no-wrap
23731 msgid ""
23732 " char **\n"
23733 " guestfs_grepi (guestfs_h *g,\n"
23734 "                const char *regex,\n"
23735 "                const char *path);\n"
23736 "\n"
23737 msgstr ""
23738
23739 #. type: =head2
23740 #: ../src/guestfs-actions.pod:2325
23741 msgid "guestfs_grub_install"
23742 msgstr ""
23743
23744 #. type: verbatim
23745 #: ../src/guestfs-actions.pod:2327
23746 #, no-wrap
23747 msgid ""
23748 " int\n"
23749 " guestfs_grub_install (guestfs_h *g,\n"
23750 "                       const char *root,\n"
23751 "                       const char *device);\n"
23752 "\n"
23753 msgstr ""
23754
23755 #. type: textblock
23756 #: ../src/guestfs-actions.pod:2348
23757 msgid "(Added in 1.0.17)"
23758 msgstr ""
23759
23760 #. type: =head2
23761 #: ../src/guestfs-actions.pod:2350
23762 msgid "guestfs_head"
23763 msgstr ""
23764
23765 #. type: verbatim
23766 #: ../src/guestfs-actions.pod:2352
23767 #, no-wrap
23768 msgid ""
23769 " char **\n"
23770 " guestfs_head (guestfs_h *g,\n"
23771 "               const char *path);\n"
23772 "\n"
23773 msgstr ""
23774
23775 #. type: =head2
23776 #: ../src/guestfs-actions.pod:2368
23777 msgid "guestfs_head_n"
23778 msgstr ""
23779
23780 #. type: verbatim
23781 #: ../src/guestfs-actions.pod:2370
23782 #, no-wrap
23783 msgid ""
23784 " char **\n"
23785 " guestfs_head_n (guestfs_h *g,\n"
23786 "                 int nrlines,\n"
23787 "                 const char *path);\n"
23788 "\n"
23789 msgstr ""
23790
23791 #. type: =head2
23792 #: ../src/guestfs-actions.pod:2392
23793 msgid "guestfs_hexdump"
23794 msgstr ""
23795
23796 #. type: verbatim
23797 #: ../src/guestfs-actions.pod:2394
23798 #, no-wrap
23799 msgid ""
23800 " char *\n"
23801 " guestfs_hexdump (guestfs_h *g,\n"
23802 "                  const char *path);\n"
23803 "\n"
23804 msgstr ""
23805
23806 #. type: textblock
23807 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780 ../src/guestfs-actions.pod:6835
23808 msgid "(Added in 1.0.22)"
23809 msgstr ""
23810
23811 #. type: =head2
23812 #: ../src/guestfs-actions.pod:2409
23813 msgid "guestfs_initrd_cat"
23814 msgstr ""
23815
23816 #. type: verbatim
23817 #: ../src/guestfs-actions.pod:2411
23818 #, no-wrap
23819 msgid ""
23820 " char *\n"
23821 " guestfs_initrd_cat (guestfs_h *g,\n"
23822 "                     const char *initrdpath,\n"
23823 "                     const char *filename,\n"
23824 "                     size_t *size_r);\n"
23825 "\n"
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../src/guestfs-actions.pod:2427
23830 msgid "See also C<guestfs_initrd_list>."
23831 msgstr ""
23832
23833 #. type: =head2
23834 #: ../src/guestfs-actions.pod:2438
23835 msgid "guestfs_initrd_list"
23836 msgstr ""
23837
23838 #. type: verbatim
23839 #: ../src/guestfs-actions.pod:2440
23840 #, no-wrap
23841 msgid ""
23842 " char **\n"
23843 " guestfs_initrd_list (guestfs_h *g,\n"
23844 "                      const char *path);\n"
23845 "\n"
23846 msgstr ""
23847
23848 #. type: =head2
23849 #: ../src/guestfs-actions.pod:2460
23850 msgid "guestfs_inotify_add_watch"
23851 msgstr ""
23852
23853 #. type: verbatim
23854 #: ../src/guestfs-actions.pod:2462
23855 #, no-wrap
23856 msgid ""
23857 " int64_t\n"
23858 " guestfs_inotify_add_watch (guestfs_h *g,\n"
23859 "                            const char *path,\n"
23860 "                            int mask);\n"
23861 "\n"
23862 msgstr ""
23863
23864 #. type: =head2
23865 #: ../src/guestfs-actions.pod:2481
23866 msgid "guestfs_inotify_close"
23867 msgstr ""
23868
23869 #. type: verbatim
23870 #: ../src/guestfs-actions.pod:2483
23871 #, no-wrap
23872 msgid ""
23873 " int\n"
23874 " guestfs_inotify_close (guestfs_h *g);\n"
23875 "\n"
23876 msgstr ""
23877
23878 #. type: =head2
23879 #: ../src/guestfs-actions.pod:2494
23880 msgid "guestfs_inotify_files"
23881 msgstr ""
23882
23883 #. type: verbatim
23884 #: ../src/guestfs-actions.pod:2496
23885 #, no-wrap
23886 msgid ""
23887 " char **\n"
23888 " guestfs_inotify_files (guestfs_h *g);\n"
23889 "\n"
23890 msgstr ""
23891
23892 #. type: textblock
23893 #: ../src/guestfs-actions.pod:2499
23894 msgid ""
23895 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
23896 "returns a list of pathnames of objects that were touched.  The returned "
23897 "pathnames are sorted and deduplicated."
23898 msgstr ""
23899
23900 #. type: =head2
23901 #: ../src/guestfs-actions.pod:2509
23902 msgid "guestfs_inotify_init"
23903 msgstr ""
23904
23905 #. type: verbatim
23906 #: ../src/guestfs-actions.pod:2511
23907 #, no-wrap
23908 msgid ""
23909 " int\n"
23910 " guestfs_inotify_init (guestfs_h *g,\n"
23911 "                       int maxevents);\n"
23912 "\n"
23913 msgstr ""
23914
23915 #. type: textblock
23916 #: ../src/guestfs-actions.pod:2519
23917 msgid ""
23918 "C<maxevents> is the maximum number of events which will be queued up between "
23919 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
23920 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
23921 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
23922 "throws away events, but records the fact that it threw them away by setting "
23923 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
23924 "C<guestfs_inotify_read>)."
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../src/guestfs-actions.pod:2529
23929 msgid ""
23930 "Before any events are generated, you have to add some watches to the "
23931 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
23932 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../src/guestfs-actions.pod:2535
23937 msgid ""
23938 "Queued up events should be read periodically by calling "
23939 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
23940 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
23941 "often enough then you risk the internal queue overflowing."
23942 msgstr ""
23943
23944 #. type: textblock
23945 #: ../src/guestfs-actions.pod:2542
23946 msgid ""
23947 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
23948 "This also removes any watches automatically."
23949 msgstr ""
23950
23951 #. type: =head2
23952 #: ../src/guestfs-actions.pod:2555
23953 msgid "guestfs_inotify_read"
23954 msgstr ""
23955
23956 #. type: verbatim
23957 #: ../src/guestfs-actions.pod:2557
23958 #, no-wrap
23959 msgid ""
23960 " struct guestfs_inotify_event_list *\n"
23961 " guestfs_inotify_read (guestfs_h *g);\n"
23962 "\n"
23963 msgstr ""
23964
23965 #. type: textblock
23966 #: ../src/guestfs-actions.pod:2571
23967 msgid ""
23968 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
23969 "there was an error.  I<The caller must call "
23970 "C<guestfs_free_inotify_event_list> after use>."
23971 msgstr ""
23972
23973 #. type: =head2
23974 #: ../src/guestfs-actions.pod:2577
23975 msgid "guestfs_inotify_rm_watch"
23976 msgstr ""
23977
23978 #. type: verbatim
23979 #: ../src/guestfs-actions.pod:2579
23980 #, no-wrap
23981 msgid ""
23982 " int\n"
23983 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
23984 "                           int wd);\n"
23985 "\n"
23986 msgstr ""
23987
23988 #. type: textblock
23989 #: ../src/guestfs-actions.pod:2583
23990 msgid ""
23991 "Remove a previously defined inotify watch.  See "
23992 "C<guestfs_inotify_add_watch>."
23993 msgstr ""
23994
23995 #. type: =head2
23996 #: ../src/guestfs-actions.pod:2590
23997 msgid "guestfs_inspect_get_arch"
23998 msgstr ""
23999
24000 #. type: verbatim
24001 #: ../src/guestfs-actions.pod:2592
24002 #, no-wrap
24003 msgid ""
24004 " char *\n"
24005 " guestfs_inspect_get_arch (guestfs_h *g,\n"
24006 "                           const char *root);\n"
24007 "\n"
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../src/guestfs-actions.pod:2596
24012 msgid ""
24013 "This returns the architecture of the inspected operating system.  The "
24014 "possible return values are listed under C<guestfs_file_architecture>."
24015 msgstr ""
24016
24017 #. type: =head2
24018 #: ../src/guestfs-actions.pod:2610
24019 msgid "guestfs_inspect_get_distro"
24020 msgstr ""
24021
24022 #. type: verbatim
24023 #: ../src/guestfs-actions.pod:2612
24024 #, no-wrap
24025 msgid ""
24026 " char *\n"
24027 " guestfs_inspect_get_distro (guestfs_h *g,\n"
24028 "                             const char *root);\n"
24029 "\n"
24030 msgstr ""
24031
24032 #. type: =head2
24033 #: ../src/guestfs-actions.pod:2700
24034 msgid "guestfs_inspect_get_drive_mappings"
24035 msgstr ""
24036
24037 #. type: verbatim
24038 #: ../src/guestfs-actions.pod:2702
24039 #, no-wrap
24040 msgid ""
24041 " char **\n"
24042 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
24043 "                                     const char *root);\n"
24044 "\n"
24045 msgstr ""
24046
24047 #. type: textblock
24048 #: ../src/guestfs-actions.pod:2731
24049 msgid ""
24050 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24051 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
24052 msgstr ""
24053
24054 #. type: textblock
24055 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003 ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083 ../src/guestfs-actions.pod:7137
24056 msgid ""
24057 "This function returns a NULL-terminated array of strings, or NULL if there "
24058 "was an error.  The array of strings will always have length C<2n+1>, where "
24059 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24060 "caller must free the strings and the array after use>."
24061 msgstr ""
24062
24063 #. type: textblock
24064 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
24065 msgid "(Added in 1.9.17)"
24066 msgstr ""
24067
24068 #. type: =head2
24069 #: ../src/guestfs-actions.pod:2743
24070 msgid "guestfs_inspect_get_filesystems"
24071 msgstr ""
24072
24073 #. type: verbatim
24074 #: ../src/guestfs-actions.pod:2745
24075 #, no-wrap
24076 msgid ""
24077 " char **\n"
24078 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24079 "                                  const char *root);\n"
24080 "\n"
24081 msgstr ""
24082
24083 #. type: textblock
24084 #: ../src/guestfs-actions.pod:2757
24085 msgid ""
24086 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24087 "C<guestfs_inspect_get_mountpoints>."
24088 msgstr ""
24089
24090 #. type: =head2
24091 #: ../src/guestfs-actions.pod:2766
24092 msgid "guestfs_inspect_get_format"
24093 msgstr ""
24094
24095 #. type: verbatim
24096 #: ../src/guestfs-actions.pod:2768
24097 #, no-wrap
24098 msgid ""
24099 " char *\n"
24100 " guestfs_inspect_get_format (guestfs_h *g,\n"
24101 "                             const char *root);\n"
24102 "\n"
24103 msgstr ""
24104
24105 #. type: textblock
24106 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233 ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267 ../src/guestfs-actions.pod:6033
24107 msgid "(Added in 1.9.4)"
24108 msgstr ""
24109
24110 #. type: =head2
24111 #: ../src/guestfs-actions.pod:2804
24112 msgid "guestfs_inspect_get_hostname"
24113 msgstr ""
24114
24115 #. type: verbatim
24116 #: ../src/guestfs-actions.pod:2806
24117 #, no-wrap
24118 msgid ""
24119 " char *\n"
24120 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24121 "                               const char *root);\n"
24122 "\n"
24123 msgstr ""
24124
24125 #. type: textblock
24126 #: ../src/guestfs-actions.pod:2821
24127 msgid "(Added in 1.7.9)"
24128 msgstr ""
24129
24130 #. type: =head2
24131 #: ../src/guestfs-actions.pod:2823
24132 msgid "guestfs_inspect_get_icon"
24133 msgstr ""
24134
24135 #. type: verbatim
24136 #: ../src/guestfs-actions.pod:2825
24137 #, no-wrap
24138 msgid ""
24139 " char *\n"
24140 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24141 "                           const char *root,\n"
24142 "                           size_t *size_r,\n"
24143 "                           ...);\n"
24144 "\n"
24145 msgstr ""
24146
24147 #. type: verbatim
24148 #: ../src/guestfs-actions.pod:2836
24149 #, no-wrap
24150 msgid ""
24151 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24152 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24153 "\n"
24154 msgstr ""
24155
24156 #. type: textblock
24157 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728 ../src/guestfs-actions.pod:4982
24158 msgid "(Added in 1.11.12)"
24159 msgstr ""
24160
24161 #. type: =head2
24162 #: ../src/guestfs-actions.pod:2905
24163 msgid "guestfs_inspect_get_icon_va"
24164 msgstr ""
24165
24166 #. type: verbatim
24167 #: ../src/guestfs-actions.pod:2907
24168 #, no-wrap
24169 msgid ""
24170 " char *\n"
24171 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24172 "                              const char *root,\n"
24173 "                              size_t *size_r,\n"
24174 "                              va_list args);\n"
24175 "\n"
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../src/guestfs-actions.pod:2913
24180 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24181 msgstr ""
24182
24183 #. type: =head2
24184 #: ../src/guestfs-actions.pod:2917
24185 msgid "guestfs_inspect_get_icon_argv"
24186 msgstr ""
24187
24188 #. type: verbatim
24189 #: ../src/guestfs-actions.pod:2919
24190 #, no-wrap
24191 msgid ""
24192 " char *\n"
24193 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24194 "                                const char *root,\n"
24195 "                                size_t *size_r,\n"
24196 "                                const struct guestfs_inspect_get_icon_argv "
24197 "*optargs);\n"
24198 "\n"
24199 msgstr ""
24200
24201 #. type: textblock
24202 #: ../src/guestfs-actions.pod:2925
24203 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24204 msgstr ""
24205
24206 #. type: =head2
24207 #: ../src/guestfs-actions.pod:2929
24208 msgid "guestfs_inspect_get_major_version"
24209 msgstr ""
24210
24211 #. type: verbatim
24212 #: ../src/guestfs-actions.pod:2931
24213 #, no-wrap
24214 msgid ""
24215 " int\n"
24216 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24217 "                                    const char *root);\n"
24218 "\n"
24219 msgstr ""
24220
24221 #. type: =head2
24222 #: ../src/guestfs-actions.pod:2953
24223 msgid "guestfs_inspect_get_minor_version"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../src/guestfs-actions.pod:2955
24228 #, no-wrap
24229 msgid ""
24230 " int\n"
24231 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24232 "                                    const char *root);\n"
24233 "\n"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../src/guestfs-actions.pod:2964
24238 msgid ""
24239 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24240 "C<guestfs_inspect_get_major_version>."
24241 msgstr ""
24242
24243 #. type: =head2
24244 #: ../src/guestfs-actions.pod:2971
24245 msgid "guestfs_inspect_get_mountpoints"
24246 msgstr ""
24247
24248 #. type: verbatim
24249 #: ../src/guestfs-actions.pod:2973
24250 #, no-wrap
24251 msgid ""
24252 " char **\n"
24253 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24254 "                                  const char *root);\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: textblock
24259 #: ../src/guestfs-actions.pod:2994
24260 msgid ""
24261 "For operating systems like Windows which still use drive letters, this call "
24262 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24263 "information about the mapping of drive letters to partitions, see "
24264 "C<guestfs_inspect_get_drive_mappings>."
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../src/guestfs-actions.pod:3000
24269 msgid ""
24270 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24271 "C<guestfs_inspect_get_filesystems>."
24272 msgstr ""
24273
24274 #. type: =head2
24275 #: ../src/guestfs-actions.pod:3011
24276 msgid "guestfs_inspect_get_package_format"
24277 msgstr ""
24278
24279 #. type: verbatim
24280 #: ../src/guestfs-actions.pod:3013
24281 #, no-wrap
24282 msgid ""
24283 " char *\n"
24284 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24285 "                                     const char *root);\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: textblock
24290 #: ../src/guestfs-actions.pod:3017
24291 msgid ""
24292 "This function and C<guestfs_inspect_get_package_management> return the "
24293 "package format and package management tool used by the inspected operating "
24294 "system.  For example for Fedora these functions would return C<rpm> (package "
24295 "format) and C<yum> (package management)."
24296 msgstr ""
24297
24298 #. type: textblock
24299 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
24300 msgid "(Added in 1.7.5)"
24301 msgstr ""
24302
24303 #. type: =head2
24304 #: ../src/guestfs-actions.pod:3037
24305 msgid "guestfs_inspect_get_package_management"
24306 msgstr ""
24307
24308 #. type: verbatim
24309 #: ../src/guestfs-actions.pod:3039
24310 #, no-wrap
24311 msgid ""
24312 " char *\n"
24313 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24314 "                                         const char *root);\n"
24315 "\n"
24316 msgstr ""
24317
24318 #. type: textblock
24319 #: ../src/guestfs-actions.pod:3043
24320 msgid ""
24321 "C<guestfs_inspect_get_package_format> and this function return the package "
24322 "format and package management tool used by the inspected operating system.  "
24323 "For example for Fedora these functions would return C<rpm> (package format) "
24324 "and C<yum> (package management)."
24325 msgstr ""
24326
24327 #. type: =head2
24328 #: ../src/guestfs-actions.pod:3065
24329 msgid "guestfs_inspect_get_product_name"
24330 msgstr ""
24331
24332 #. type: verbatim
24333 #: ../src/guestfs-actions.pod:3067
24334 #, no-wrap
24335 msgid ""
24336 " char *\n"
24337 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24338 "                                   const char *root);\n"
24339 "\n"
24340 msgstr ""
24341
24342 #. type: =head2
24343 #: ../src/guestfs-actions.pod:3086
24344 msgid "guestfs_inspect_get_product_variant"
24345 msgstr ""
24346
24347 #. type: verbatim
24348 #: ../src/guestfs-actions.pod:3088
24349 #, no-wrap
24350 msgid ""
24351 " char *\n"
24352 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24353 "                                      const char *root);\n"
24354 "\n"
24355 msgstr ""
24356
24357 #. type: textblock
24358 #: ../src/guestfs-actions.pod:3111
24359 msgid ""
24360 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24361 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24362 msgstr ""
24363
24364 #. type: textblock
24365 #: ../src/guestfs-actions.pod:3118
24366 msgid "(Added in 1.9.13)"
24367 msgstr ""
24368
24369 #. type: =head2
24370 #: ../src/guestfs-actions.pod:3120
24371 msgid "guestfs_inspect_get_roots"
24372 msgstr ""
24373
24374 #. type: verbatim
24375 #: ../src/guestfs-actions.pod:3122
24376 #, no-wrap
24377 msgid ""
24378 " char **\n"
24379 " guestfs_inspect_get_roots (guestfs_h *g);\n"
24380 "\n"
24381 msgstr ""
24382
24383 #. type: textblock
24384 #: ../src/guestfs-actions.pod:3125
24385 msgid ""
24386 "This function is a convenient way to get the list of root devices, as "
24387 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
24388 "the whole inspection process."
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../src/guestfs-actions.pod:3129
24393 msgid ""
24394 "This returns an empty list if either no root devices were found or the "
24395 "caller has not called C<guestfs_inspect_os>."
24396 msgstr ""
24397
24398 #. type: textblock
24399 #: ../src/guestfs-actions.pod:3138
24400 msgid "(Added in 1.7.3)"
24401 msgstr ""
24402
24403 #. type: =head2
24404 #: ../src/guestfs-actions.pod:3140
24405 msgid "guestfs_inspect_get_type"
24406 msgstr ""
24407
24408 #. type: verbatim
24409 #: ../src/guestfs-actions.pod:3142
24410 #, no-wrap
24411 msgid ""
24412 " char *\n"
24413 " guestfs_inspect_get_type (guestfs_h *g,\n"
24414 "                           const char *root);\n"
24415 "\n"
24416 msgstr ""
24417
24418 #. type: =head2
24419 #: ../src/guestfs-actions.pod:3179
24420 msgid "guestfs_inspect_get_windows_current_control_set"
24421 msgstr ""
24422
24423 #. type: verbatim
24424 #: ../src/guestfs-actions.pod:3181
24425 #, no-wrap
24426 msgid ""
24427 " char *\n"
24428 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
24429 "                                                  const char *root);\n"
24430 "\n"
24431 msgstr ""
24432
24433 #. type: =head2
24434 #: ../src/guestfs-actions.pod:3199
24435 msgid "guestfs_inspect_get_windows_systemroot"
24436 msgstr ""
24437
24438 #. type: verbatim
24439 #: ../src/guestfs-actions.pod:3201
24440 #, no-wrap
24441 msgid ""
24442 " char *\n"
24443 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
24444 "                                         const char *root);\n"
24445 "\n"
24446 msgstr ""
24447
24448 #. type: textblock
24449 #: ../src/guestfs-actions.pod:3217
24450 msgid "(Added in 1.5.25)"
24451 msgstr ""
24452
24453 #. type: =head2
24454 #: ../src/guestfs-actions.pod:3219
24455 msgid "guestfs_inspect_is_live"
24456 msgstr ""
24457
24458 #. type: verbatim
24459 #: ../src/guestfs-actions.pod:3221
24460 #, no-wrap
24461 msgid ""
24462 " int\n"
24463 " guestfs_inspect_is_live (guestfs_h *g,\n"
24464 "                          const char *root);\n"
24465 "\n"
24466 msgstr ""
24467
24468 #. type: textblock
24469 #: ../src/guestfs-actions.pod:3225
24470 msgid ""
24471 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24472 "disk), then this returns true if a live image was detected on the disk."
24473 msgstr ""
24474
24475 #. type: =head2
24476 #: ../src/guestfs-actions.pod:3235
24477 msgid "guestfs_inspect_is_multipart"
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../src/guestfs-actions.pod:3237
24482 #, no-wrap
24483 msgid ""
24484 " int\n"
24485 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
24486 "                               const char *root);\n"
24487 "\n"
24488 msgstr ""
24489
24490 #. type: textblock
24491 #: ../src/guestfs-actions.pod:3241
24492 msgid ""
24493 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24494 "disk), then this returns true if the disk is part of a set."
24495 msgstr ""
24496
24497 #. type: =head2
24498 #: ../src/guestfs-actions.pod:3251
24499 msgid "guestfs_inspect_is_netinst"
24500 msgstr ""
24501
24502 #. type: verbatim
24503 #: ../src/guestfs-actions.pod:3253
24504 #, no-wrap
24505 msgid ""
24506 " int\n"
24507 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
24508 "                             const char *root);\n"
24509 "\n"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../src/guestfs-actions.pod:3257
24514 msgid ""
24515 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24516 "disk), then this returns true if the disk is a network installer, ie. not a "
24517 "self-contained install CD but one which is likely to require network access "
24518 "to complete the install."
24519 msgstr ""
24520
24521 #. type: =head2
24522 #: ../src/guestfs-actions.pod:3269
24523 msgid "guestfs_inspect_list_applications"
24524 msgstr ""
24525
24526 #. type: verbatim
24527 #: ../src/guestfs-actions.pod:3271
24528 #, no-wrap
24529 msgid ""
24530 " struct guestfs_application_list *\n"
24531 " guestfs_inspect_list_applications (guestfs_h *g,\n"
24532 "                                    const char *root);\n"
24533 "\n"
24534 msgstr ""
24535
24536 #. type: textblock
24537 #: ../src/guestfs-actions.pod:3277
24538 msgid ""
24539 "I<Note:> This call works differently from other parts of the inspection "
24540 "API.  You have to call C<guestfs_inspect_os>, then "
24541 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
24542 "this.  Listing applications is a significantly more difficult operation "
24543 "which requires access to the full filesystem.  Also note that unlike the "
24544 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
24545 "the libguestfs handle, this call actually reads parts of the mounted "
24546 "filesystems during the call."
24547 msgstr ""
24548
24549 #. type: textblock
24550 #: ../src/guestfs-actions.pod:3367
24551 msgid ""
24552 "This function returns a C<struct guestfs_application_list *>, or NULL if "
24553 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
24554 "after use>."
24555 msgstr ""
24556
24557 #. type: textblock
24558 #: ../src/guestfs-actions.pod:3371
24559 msgid "(Added in 1.7.8)"
24560 msgstr ""
24561
24562 #. type: =head2
24563 #: ../src/guestfs-actions.pod:3373
24564 msgid "guestfs_inspect_os"
24565 msgstr ""
24566
24567 #. type: verbatim
24568 #: ../src/guestfs-actions.pod:3375
24569 #, no-wrap
24570 msgid ""
24571 " char **\n"
24572 " guestfs_inspect_os (guestfs_h *g);\n"
24573 "\n"
24574 msgstr ""
24575
24576 #. type: textblock
24577 #: ../src/guestfs-actions.pod:3391
24578 msgid ""
24579 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
24580 "functions in order to query further information about each operating system, "
24581 "such as the name and version."
24582 msgstr ""
24583
24584 #. type: textblock
24585 #: ../src/guestfs-actions.pod:3396
24586 msgid ""
24587 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
24588 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
24589 "the contents.  This should be called with no disks currently mounted.  The "
24590 "function may also use Augeas, so any existing Augeas handle will be closed."
24591 msgstr ""
24592
24593 #. type: textblock
24594 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739 ../src/guestfs-actions.pod:3821
24595 msgid "See also C<guestfs_list_filesystems>."
24596 msgstr ""
24597
24598 #. type: =head2
24599 #: ../src/guestfs-actions.pod:3416
24600 msgid "guestfs_is_blockdev"
24601 msgstr ""
24602
24603 #. type: verbatim
24604 #: ../src/guestfs-actions.pod:3418
24605 #, no-wrap
24606 msgid ""
24607 " int\n"
24608 " guestfs_is_blockdev (guestfs_h *g,\n"
24609 "                      const char *path);\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454 ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499 ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3586
24615 msgid "See also C<guestfs_stat>."
24616 msgstr ""
24617
24618 #. type: textblock
24619 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458 ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3590
24620 msgid "(Added in 1.5.10)"
24621 msgstr ""
24622
24623 #. type: =head2
24624 #: ../src/guestfs-actions.pod:3431
24625 msgid "guestfs_is_busy"
24626 msgstr ""
24627
24628 #. type: verbatim
24629 #: ../src/guestfs-actions.pod:3433
24630 #, no-wrap
24631 msgid ""
24632 " int\n"
24633 " guestfs_is_busy (guestfs_h *g);\n"
24634 "\n"
24635 msgstr ""
24636
24637 #. type: =head2
24638 #: ../src/guestfs-actions.pod:3445
24639 msgid "guestfs_is_chardev"
24640 msgstr ""
24641
24642 #. type: verbatim
24643 #: ../src/guestfs-actions.pod:3447
24644 #, no-wrap
24645 msgid ""
24646 " int\n"
24647 " guestfs_is_chardev (guestfs_h *g,\n"
24648 "                     const char *path);\n"
24649 "\n"
24650 msgstr ""
24651
24652 #. type: =head2
24653 #: ../src/guestfs-actions.pod:3460
24654 msgid "guestfs_is_config"
24655 msgstr ""
24656
24657 #. type: verbatim
24658 #: ../src/guestfs-actions.pod:3462
24659 #, no-wrap
24660 msgid ""
24661 " int\n"
24662 " guestfs_is_config (guestfs_h *g);\n"
24663 "\n"
24664 msgstr ""
24665
24666 #. type: =head2
24667 #: ../src/guestfs-actions.pod:3474
24668 msgid "guestfs_is_dir"
24669 msgstr ""
24670
24671 #. type: verbatim
24672 #: ../src/guestfs-actions.pod:3476
24673 #, no-wrap
24674 msgid ""
24675 " int\n"
24676 " guestfs_is_dir (guestfs_h *g,\n"
24677 "                 const char *path);\n"
24678 "\n"
24679 msgstr ""
24680
24681 #. type: =head2
24682 #: ../src/guestfs-actions.pod:3490
24683 msgid "guestfs_is_fifo"
24684 msgstr ""
24685
24686 #. type: verbatim
24687 #: ../src/guestfs-actions.pod:3492
24688 #, no-wrap
24689 msgid ""
24690 " int\n"
24691 " guestfs_is_fifo (guestfs_h *g,\n"
24692 "                  const char *path);\n"
24693 "\n"
24694 msgstr ""
24695
24696 #. type: =head2
24697 #: ../src/guestfs-actions.pod:3505
24698 msgid "guestfs_is_file"
24699 msgstr ""
24700
24701 #. type: verbatim
24702 #: ../src/guestfs-actions.pod:3507
24703 #, no-wrap
24704 msgid ""
24705 " int\n"
24706 " guestfs_is_file (guestfs_h *g,\n"
24707 "                  const char *path);\n"
24708 "\n"
24709 msgstr ""
24710
24711 #. type: =head2
24712 #: ../src/guestfs-actions.pod:3521
24713 msgid "guestfs_is_launching"
24714 msgstr ""
24715
24716 #. type: verbatim
24717 #: ../src/guestfs-actions.pod:3523
24718 #, no-wrap
24719 msgid ""
24720 " int\n"
24721 " guestfs_is_launching (guestfs_h *g);\n"
24722 "\n"
24723 msgstr ""
24724
24725 #. type: =head2
24726 #: ../src/guestfs-actions.pod:3535
24727 msgid "guestfs_is_lv"
24728 msgstr ""
24729
24730 #. type: verbatim
24731 #: ../src/guestfs-actions.pod:3537
24732 #, no-wrap
24733 msgid ""
24734 " int\n"
24735 " guestfs_is_lv (guestfs_h *g,\n"
24736 "                const char *device);\n"
24737 "\n"
24738 msgstr ""
24739
24740 #. type: =head2
24741 #: ../src/guestfs-actions.pod:3548
24742 msgid "guestfs_is_ready"
24743 msgstr ""
24744
24745 #. type: verbatim
24746 #: ../src/guestfs-actions.pod:3550
24747 #, no-wrap
24748 msgid ""
24749 " int\n"
24750 " guestfs_is_ready (guestfs_h *g);\n"
24751 "\n"
24752 msgstr ""
24753
24754 #. type: =head2
24755 #: ../src/guestfs-actions.pod:3562
24756 msgid "guestfs_is_socket"
24757 msgstr ""
24758
24759 #. type: verbatim
24760 #: ../src/guestfs-actions.pod:3564
24761 #, no-wrap
24762 msgid ""
24763 " int\n"
24764 " guestfs_is_socket (guestfs_h *g,\n"
24765 "                    const char *path);\n"
24766 "\n"
24767 msgstr ""
24768
24769 #. type: =head2
24770 #: ../src/guestfs-actions.pod:3577
24771 msgid "guestfs_is_symlink"
24772 msgstr ""
24773
24774 #. type: verbatim
24775 #: ../src/guestfs-actions.pod:3579
24776 #, no-wrap
24777 msgid ""
24778 " int\n"
24779 " guestfs_is_symlink (guestfs_h *g,\n"
24780 "                     const char *path);\n"
24781 "\n"
24782 msgstr ""
24783
24784 #. type: =head2
24785 #: ../src/guestfs-actions.pod:3592
24786 msgid "guestfs_is_zero"
24787 msgstr ""
24788
24789 #. type: verbatim
24790 #: ../src/guestfs-actions.pod:3594
24791 #, no-wrap
24792 msgid ""
24793 " int\n"
24794 " guestfs_is_zero (guestfs_h *g,\n"
24795 "                  const char *path);\n"
24796 "\n"
24797 msgstr ""
24798
24799 #. type: textblock
24800 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
24801 msgid "(Added in 1.11.8)"
24802 msgstr ""
24803
24804 #. type: =head2
24805 #: ../src/guestfs-actions.pod:3605
24806 msgid "guestfs_is_zero_device"
24807 msgstr ""
24808
24809 #. type: verbatim
24810 #: ../src/guestfs-actions.pod:3607
24811 #, no-wrap
24812 msgid ""
24813 " int\n"
24814 " guestfs_is_zero_device (guestfs_h *g,\n"
24815 "                         const char *device);\n"
24816 "\n"
24817 msgstr ""
24818
24819 #. type: =head2
24820 #: ../src/guestfs-actions.pod:3619
24821 msgid "guestfs_kill_subprocess"
24822 msgstr ""
24823
24824 #. type: verbatim
24825 #: ../src/guestfs-actions.pod:3621
24826 #, no-wrap
24827 msgid ""
24828 " int\n"
24829 " guestfs_kill_subprocess (guestfs_h *g);\n"
24830 "\n"
24831 msgstr ""
24832
24833 #. type: =head2
24834 #: ../src/guestfs-actions.pod:3630
24835 msgid "guestfs_launch"
24836 msgstr ""
24837
24838 #. type: verbatim
24839 #: ../src/guestfs-actions.pod:3632
24840 #, no-wrap
24841 msgid ""
24842 " int\n"
24843 " guestfs_launch (guestfs_h *g);\n"
24844 "\n"
24845 msgstr ""
24846
24847 #. type: =head2
24848 #: ../src/guestfs-actions.pod:3650
24849 msgid "guestfs_lchown"
24850 msgstr ""
24851
24852 #. type: verbatim
24853 #: ../src/guestfs-actions.pod:3652
24854 #, no-wrap
24855 msgid ""
24856 " int\n"
24857 " guestfs_lchown (guestfs_h *g,\n"
24858 "                 int owner,\n"
24859 "                 int group,\n"
24860 "                 const char *path);\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../src/guestfs-actions.pod:3658
24866 msgid ""
24867 "Change the file owner to C<owner> and group to C<group>.  This is like "
24868 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
24869 "changed, not the target."
24870 msgstr ""
24871
24872 #. type: =head2
24873 #: ../src/guestfs-actions.pod:3670
24874 msgid "guestfs_lgetxattr"
24875 msgstr ""
24876
24877 #. type: verbatim
24878 #: ../src/guestfs-actions.pod:3672
24879 #, no-wrap
24880 msgid ""
24881 " char *\n"
24882 " guestfs_lgetxattr (guestfs_h *g,\n"
24883 "                    const char *path,\n"
24884 "                    const char *name,\n"
24885 "                    size_t *size_r);\n"
24886 "\n"
24887 msgstr ""
24888
24889 #. type: textblock
24890 #: ../src/guestfs-actions.pod:3692
24891 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
24892 msgstr ""
24893
24894 #. type: =head2
24895 #: ../src/guestfs-actions.pod:3700
24896 msgid "guestfs_lgetxattrs"
24897 msgstr ""
24898
24899 #. type: verbatim
24900 #: ../src/guestfs-actions.pod:3702
24901 #, no-wrap
24902 msgid ""
24903 " struct guestfs_xattr_list *\n"
24904 " guestfs_lgetxattrs (guestfs_h *g,\n"
24905 "                     const char *path);\n"
24906 "\n"
24907 msgstr ""
24908
24909 #. type: textblock
24910 #: ../src/guestfs-actions.pod:3706
24911 msgid ""
24912 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
24913 "then it returns the extended attributes of the link itself."
24914 msgstr ""
24915
24916 #. type: =head2
24917 #: ../src/guestfs-actions.pod:3716
24918 msgid "guestfs_list_9p"
24919 msgstr ""
24920
24921 #. type: verbatim
24922 #: ../src/guestfs-actions.pod:3718
24923 #, no-wrap
24924 msgid ""
24925 " char **\n"
24926 " guestfs_list_9p (guestfs_h *g);\n"
24927 "\n"
24928 msgstr ""
24929
24930 #. type: =head2
24931 #: ../src/guestfs-actions.pod:3730
24932 msgid "guestfs_list_devices"
24933 msgstr ""
24934
24935 #. type: verbatim
24936 #: ../src/guestfs-actions.pod:3732
24937 #, no-wrap
24938 msgid ""
24939 " char **\n"
24940 " guestfs_list_devices (guestfs_h *g);\n"
24941 "\n"
24942 msgstr ""
24943
24944 #. type: =head2
24945 #: ../src/guestfs-actions.pod:3747
24946 msgid "guestfs_list_dm_devices"
24947 msgstr ""
24948
24949 #. type: verbatim
24950 #: ../src/guestfs-actions.pod:3749
24951 #, no-wrap
24952 msgid ""
24953 " char **\n"
24954 " guestfs_list_dm_devices (guestfs_h *g);\n"
24955 "\n"
24956 msgstr ""
24957
24958 #. type: textblock
24959 #: ../src/guestfs-actions.pod:3754
24960 msgid ""
24961 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
24962 "previous call to C<guestfs_luks_open>."
24963 msgstr ""
24964
24965 #. type: textblock
24966 #: ../src/guestfs-actions.pod:3757
24967 msgid ""
24968 "Device mapper devices which correspond to logical volumes are I<not> "
24969 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
24970 "volumes."
24971 msgstr ""
24972
24973 #. type: textblock
24974 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
24975 msgid "(Added in 1.11.15)"
24976 msgstr ""
24977
24978 #. type: =head2
24979 #: ../src/guestfs-actions.pod:3767
24980 msgid "guestfs_list_filesystems"
24981 msgstr ""
24982
24983 #. type: verbatim
24984 #: ../src/guestfs-actions.pod:3769
24985 #, no-wrap
24986 msgid ""
24987 " char **\n"
24988 " guestfs_list_filesystems (guestfs_h *g);\n"
24989 "\n"
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../src/guestfs-actions.pod:3789
24994 msgid ""
24995 "This command runs other libguestfs commands, which might include "
24996 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
24997 "soon after launch and only when nothing is mounted."
24998 msgstr ""
24999
25000 #. type: textblock
25001 #: ../src/guestfs-actions.pod:3793
25002 msgid ""
25003 "Not all of the filesystems returned will be mountable.  In particular, swap "
25004 "partitions are returned in the list.  Also this command does not check that "
25005 "each filesystem found is valid and mountable, and some filesystems might be "
25006 "mountable but require special options.  Filesystems may not all belong to a "
25007 "single logical operating system (use C<guestfs_inspect_os> to look for "
25008 "OSes)."
25009 msgstr ""
25010
25011 #. type: textblock
25012 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
25013 msgid "(Added in 1.5.15)"
25014 msgstr ""
25015
25016 #. type: =head2
25017 #: ../src/guestfs-actions.pod:3809
25018 msgid "guestfs_list_partitions"
25019 msgstr ""
25020
25021 #. type: verbatim
25022 #: ../src/guestfs-actions.pod:3811
25023 #, no-wrap
25024 msgid ""
25025 " char **\n"
25026 " guestfs_list_partitions (guestfs_h *g);\n"
25027 "\n"
25028 msgstr ""
25029
25030 #. type: textblock
25031 #: ../src/guestfs-actions.pod:3818
25032 msgid ""
25033 "This does not return logical volumes.  For that you will need to call "
25034 "C<guestfs_lvs>."
25035 msgstr ""
25036
25037 #. type: =head2
25038 #: ../src/guestfs-actions.pod:3829
25039 msgid "guestfs_ll"
25040 msgstr ""
25041
25042 #. type: verbatim
25043 #: ../src/guestfs-actions.pod:3831
25044 #, no-wrap
25045 msgid ""
25046 " char *\n"
25047 " guestfs_ll (guestfs_h *g,\n"
25048 "             const char *directory);\n"
25049 "\n"
25050 msgstr ""
25051
25052 #. type: =head2
25053 #: ../src/guestfs-actions.pod:3846
25054 msgid "guestfs_ln"
25055 msgstr ""
25056
25057 #. type: verbatim
25058 #: ../src/guestfs-actions.pod:3848
25059 #, no-wrap
25060 msgid ""
25061 " int\n"
25062 " guestfs_ln (guestfs_h *g,\n"
25063 "             const char *target,\n"
25064 "             const char *linkname);\n"
25065 "\n"
25066 msgstr ""
25067
25068 #. type: =head2
25069 #: ../src/guestfs-actions.pod:3859
25070 msgid "guestfs_ln_f"
25071 msgstr ""
25072
25073 #. type: verbatim
25074 #: ../src/guestfs-actions.pod:3861
25075 #, no-wrap
25076 msgid ""
25077 " int\n"
25078 " guestfs_ln_f (guestfs_h *g,\n"
25079 "               const char *target,\n"
25080 "               const char *linkname);\n"
25081 "\n"
25082 msgstr ""
25083
25084 #. type: =head2
25085 #: ../src/guestfs-actions.pod:3873
25086 msgid "guestfs_ln_s"
25087 msgstr ""
25088
25089 #. type: verbatim
25090 #: ../src/guestfs-actions.pod:3875
25091 #, no-wrap
25092 msgid ""
25093 " int\n"
25094 " guestfs_ln_s (guestfs_h *g,\n"
25095 "               const char *target,\n"
25096 "               const char *linkname);\n"
25097 "\n"
25098 msgstr ""
25099
25100 #. type: =head2
25101 #: ../src/guestfs-actions.pod:3886
25102 msgid "guestfs_ln_sf"
25103 msgstr ""
25104
25105 #. type: verbatim
25106 #: ../src/guestfs-actions.pod:3888
25107 #, no-wrap
25108 msgid ""
25109 " int\n"
25110 " guestfs_ln_sf (guestfs_h *g,\n"
25111 "                const char *target,\n"
25112 "                const char *linkname);\n"
25113 "\n"
25114 msgstr ""
25115
25116 #. type: =head2
25117 #: ../src/guestfs-actions.pod:3900
25118 msgid "guestfs_lremovexattr"
25119 msgstr ""
25120
25121 #. type: verbatim
25122 #: ../src/guestfs-actions.pod:3902
25123 #, no-wrap
25124 msgid ""
25125 " int\n"
25126 " guestfs_lremovexattr (guestfs_h *g,\n"
25127 "                       const char *xattr,\n"
25128 "                       const char *path);\n"
25129 "\n"
25130 msgstr ""
25131
25132 #. type: textblock
25133 #: ../src/guestfs-actions.pod:3907
25134 msgid ""
25135 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25136 "link, then it removes an extended attribute of the link itself."
25137 msgstr ""
25138
25139 #. type: =head2
25140 #: ../src/guestfs-actions.pod:3915
25141 msgid "guestfs_ls"
25142 msgstr ""
25143
25144 #. type: verbatim
25145 #: ../src/guestfs-actions.pod:3917
25146 #, no-wrap
25147 msgid ""
25148 " char **\n"
25149 " guestfs_ls (guestfs_h *g,\n"
25150 "             const char *directory);\n"
25151 "\n"
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../src/guestfs-actions.pod:3925
25156 msgid ""
25157 "This command is mostly useful for interactive sessions.  Programs should "
25158 "probably use C<guestfs_readdir> instead."
25159 msgstr ""
25160
25161 #. type: =head2
25162 #: ../src/guestfs-actions.pod:3934
25163 msgid "guestfs_lsetxattr"
25164 msgstr ""
25165
25166 #. type: verbatim
25167 #: ../src/guestfs-actions.pod:3936
25168 #, no-wrap
25169 msgid ""
25170 " int\n"
25171 " guestfs_lsetxattr (guestfs_h *g,\n"
25172 "                    const char *xattr,\n"
25173 "                    const char *val,\n"
25174 "                    int vallen,\n"
25175 "                    const char *path);\n"
25176 "\n"
25177 msgstr ""
25178
25179 #. type: textblock
25180 #: ../src/guestfs-actions.pod:3943
25181 msgid ""
25182 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25183 "then it sets an extended attribute of the link itself."
25184 msgstr ""
25185
25186 #. type: =head2
25187 #: ../src/guestfs-actions.pod:3951
25188 msgid "guestfs_lstat"
25189 msgstr ""
25190
25191 #. type: verbatim
25192 #: ../src/guestfs-actions.pod:3953
25193 #, no-wrap
25194 msgid ""
25195 " struct guestfs_stat *\n"
25196 " guestfs_lstat (guestfs_h *g,\n"
25197 "                const char *path);\n"
25198 "\n"
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:3959
25203 msgid ""
25204 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25205 "link, then the link is stat-ed, not the file it refers to."
25206 msgstr ""
25207
25208 #. type: textblock
25209 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
25210 msgid ""
25211 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25212 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25213 msgstr ""
25214
25215 #. type: textblock
25216 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744 ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
25217 msgid "(Added in 0.9.2)"
25218 msgstr ""
25219
25220 #. type: =head2
25221 #: ../src/guestfs-actions.pod:3971
25222 msgid "guestfs_lstatlist"
25223 msgstr ""
25224
25225 #. type: verbatim
25226 #: ../src/guestfs-actions.pod:3973
25227 #, no-wrap
25228 msgid ""
25229 " struct guestfs_stat_list *\n"
25230 " guestfs_lstatlist (guestfs_h *g,\n"
25231 "                    const char *path,\n"
25232 "                    char *const *names);\n"
25233 "\n"
25234 msgstr ""
25235
25236 #. type: textblock
25237 #: ../src/guestfs-actions.pod:3978
25238 msgid ""
25239 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25240 "files, where all files are in the directory C<path>.  C<names> is the list "
25241 "of files from this directory."
25242 msgstr ""
25243
25244 #. type: textblock
25245 #: ../src/guestfs-actions.pod:3987
25246 msgid ""
25247 "This call is intended for programs that want to efficiently list a directory "
25248 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25249 "for a similarly efficient call for getting extended attributes.  Very long "
25250 "directory listings might cause the protocol message size to be exceeded, "
25251 "causing this call to fail.  The caller must split up such requests into "
25252 "smaller groups of names."
25253 msgstr ""
25254
25255 #. type: textblock
25256 #: ../src/guestfs-actions.pod:3995
25257 msgid ""
25258 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25259 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25260 msgstr ""
25261
25262 #. type: =head2
25263 #: ../src/guestfs-actions.pod:4001
25264 msgid "guestfs_luks_add_key"
25265 msgstr ""
25266
25267 #. type: verbatim
25268 #: ../src/guestfs-actions.pod:4003
25269 #, no-wrap
25270 msgid ""
25271 " int\n"
25272 " guestfs_luks_add_key (guestfs_h *g,\n"
25273 "                       const char *device,\n"
25274 "                       const char *key,\n"
25275 "                       const char *newkey,\n"
25276 "                       int keyslot);\n"
25277 "\n"
25278 msgstr ""
25279
25280 #. type: textblock
25281 #: ../src/guestfs-actions.pod:4015
25282 msgid ""
25283 "Note that if C<keyslot> already contains a key, then this command will "
25284 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25285 msgstr ""
25286
25287 #. type: textblock
25288 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104 ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
25289 msgid ""
25290 "This function takes a key or passphrase parameter which could contain "
25291 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25292 "information."
25293 msgstr ""
25294
25295 #. type: textblock
25296 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
25297 msgid "(Added in 1.5.2)"
25298 msgstr ""
25299
25300 #. type: =head2
25301 #: ../src/guestfs-actions.pod:4027
25302 msgid "guestfs_luks_close"
25303 msgstr ""
25304
25305 #. type: verbatim
25306 #: ../src/guestfs-actions.pod:4029
25307 #, no-wrap
25308 msgid ""
25309 " int\n"
25310 " guestfs_luks_close (guestfs_h *g,\n"
25311 "                     const char *device);\n"
25312 "\n"
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../src/guestfs-actions.pod:4033
25317 msgid ""
25318 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25319 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25320 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25321 "underlying block device."
25322 msgstr ""
25323
25324 #. type: textblock
25325 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143 ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212 ../src/guestfs-actions.pod:4260
25326 msgid "(Added in 1.5.1)"
25327 msgstr ""
25328
25329 #. type: =head2
25330 #: ../src/guestfs-actions.pod:4043
25331 msgid "guestfs_luks_format"
25332 msgstr ""
25333
25334 #. type: verbatim
25335 #: ../src/guestfs-actions.pod:4045
25336 #, no-wrap
25337 msgid ""
25338 " int\n"
25339 " guestfs_luks_format (guestfs_h *g,\n"
25340 "                      const char *device,\n"
25341 "                      const char *key,\n"
25342 "                      int keyslot);\n"
25343 "\n"
25344 msgstr ""
25345
25346 #. type: =head2
25347 #: ../src/guestfs-actions.pod:4067
25348 msgid "guestfs_luks_format_cipher"
25349 msgstr ""
25350
25351 #. type: verbatim
25352 #: ../src/guestfs-actions.pod:4069
25353 #, no-wrap
25354 msgid ""
25355 " int\n"
25356 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25357 "                             const char *device,\n"
25358 "                             const char *key,\n"
25359 "                             int keyslot,\n"
25360 "                             const char *cipher);\n"
25361 "\n"
25362 msgstr ""
25363
25364 #. type: textblock
25365 #: ../src/guestfs-actions.pod:4076
25366 msgid ""
25367 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25368 "set the C<cipher> used."
25369 msgstr ""
25370
25371 #. type: =head2
25372 #: ../src/guestfs-actions.pod:4090
25373 msgid "guestfs_luks_kill_slot"
25374 msgstr ""
25375
25376 #. type: verbatim
25377 #: ../src/guestfs-actions.pod:4092
25378 #, no-wrap
25379 msgid ""
25380 " int\n"
25381 " guestfs_luks_kill_slot (guestfs_h *g,\n"
25382 "                         const char *device,\n"
25383 "                         const char *key,\n"
25384 "                         int keyslot);\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: =head2
25389 #: ../src/guestfs-actions.pod:4110
25390 msgid "guestfs_luks_open"
25391 msgstr ""
25392
25393 #. type: verbatim
25394 #: ../src/guestfs-actions.pod:4112
25395 #, no-wrap
25396 msgid ""
25397 " int\n"
25398 " guestfs_luks_open (guestfs_h *g,\n"
25399 "                    const char *device,\n"
25400 "                    const char *key,\n"
25401 "                    const char *mapname);\n"
25402 "\n"
25403 msgstr ""
25404
25405 #. type: textblock
25406 #: ../src/guestfs-actions.pod:4130
25407 msgid ""
25408 "If this block device contains LVM volume groups, then calling "
25409 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
25410 "visible."
25411 msgstr ""
25412
25413 #. type: textblock
25414 #: ../src/guestfs-actions.pod:4134
25415 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
25416 msgstr ""
25417
25418 #. type: =head2
25419 #: ../src/guestfs-actions.pod:4145
25420 msgid "guestfs_luks_open_ro"
25421 msgstr ""
25422
25423 #. type: verbatim
25424 #: ../src/guestfs-actions.pod:4147
25425 #, no-wrap
25426 msgid ""
25427 " int\n"
25428 " guestfs_luks_open_ro (guestfs_h *g,\n"
25429 "                       const char *device,\n"
25430 "                       const char *key,\n"
25431 "                       const char *mapname);\n"
25432 "\n"
25433 msgstr ""
25434
25435 #. type: textblock
25436 #: ../src/guestfs-actions.pod:4153
25437 msgid ""
25438 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
25439 "created."
25440 msgstr ""
25441
25442 #. type: =head2
25443 #: ../src/guestfs-actions.pod:4164
25444 msgid "guestfs_lvcreate"
25445 msgstr ""
25446
25447 #. type: verbatim
25448 #: ../src/guestfs-actions.pod:4166
25449 #, no-wrap
25450 msgid ""
25451 " int\n"
25452 " guestfs_lvcreate (guestfs_h *g,\n"
25453 "                   const char *logvol,\n"
25454 "                   const char *volgroup,\n"
25455 "                   int mbytes);\n"
25456 "\n"
25457 msgstr ""
25458
25459 #. type: =head2
25460 #: ../src/guestfs-actions.pod:4179
25461 msgid "guestfs_lvm_canonical_lv_name"
25462 msgstr ""
25463
25464 #. type: verbatim
25465 #: ../src/guestfs-actions.pod:4181
25466 #, no-wrap
25467 msgid ""
25468 " char *\n"
25469 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
25470 "                                const char *lvname);\n"
25471 "\n"
25472 msgstr ""
25473
25474 #. type: textblock
25475 #: ../src/guestfs-actions.pod:4192
25476 msgid "See also C<guestfs_is_lv>."
25477 msgstr ""
25478
25479 #. type: textblock
25480 #: ../src/guestfs-actions.pod:4197
25481 msgid "(Added in 1.5.24)"
25482 msgstr ""
25483
25484 #. type: =head2
25485 #: ../src/guestfs-actions.pod:4199
25486 msgid "guestfs_lvm_clear_filter"
25487 msgstr ""
25488
25489 #. type: verbatim
25490 #: ../src/guestfs-actions.pod:4201
25491 #, no-wrap
25492 msgid ""
25493 " int\n"
25494 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
25495 "\n"
25496 msgstr ""
25497
25498 #. type: textblock
25499 #: ../src/guestfs-actions.pod:4204
25500 msgid ""
25501 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
25502 "see every block device."
25503 msgstr ""
25504
25505 #. type: =head2
25506 #: ../src/guestfs-actions.pod:4214
25507 msgid "guestfs_lvm_remove_all"
25508 msgstr ""
25509
25510 #. type: verbatim
25511 #: ../src/guestfs-actions.pod:4216
25512 #, no-wrap
25513 msgid ""
25514 " int\n"
25515 " guestfs_lvm_remove_all (guestfs_h *g);\n"
25516 "\n"
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../src/guestfs-actions.pod:4229
25521 msgid "guestfs_lvm_set_filter"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../src/guestfs-actions.pod:4231
25526 #, no-wrap
25527 msgid ""
25528 " int\n"
25529 " guestfs_lvm_set_filter (guestfs_h *g,\n"
25530 "                         char *const *devices);\n"
25531 "\n"
25532 msgstr ""
25533
25534 #. type: =head2
25535 #: ../src/guestfs-actions.pod:4262
25536 msgid "guestfs_lvremove"
25537 msgstr ""
25538
25539 #. type: verbatim
25540 #: ../src/guestfs-actions.pod:4264
25541 #, no-wrap
25542 msgid ""
25543 " int\n"
25544 " guestfs_lvremove (guestfs_h *g,\n"
25545 "                   const char *device);\n"
25546 "\n"
25547 msgstr ""
25548
25549 #. type: textblock
25550 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:7513
25551 msgid "(Added in 1.0.13)"
25552 msgstr ""
25553
25554 #. type: =head2
25555 #: ../src/guestfs-actions.pod:4278
25556 msgid "guestfs_lvrename"
25557 msgstr ""
25558
25559 #. type: verbatim
25560 #: ../src/guestfs-actions.pod:4280
25561 #, no-wrap
25562 msgid ""
25563 " int\n"
25564 " guestfs_lvrename (guestfs_h *g,\n"
25565 "                   const char *logvol,\n"
25566 "                   const char *newlogvol);\n"
25567 "\n"
25568 msgstr ""
25569
25570 #. type: textblock
25571 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
25572 msgid "(Added in 1.0.83)"
25573 msgstr ""
25574
25575 #. type: =head2
25576 #: ../src/guestfs-actions.pod:4291
25577 msgid "guestfs_lvresize"
25578 msgstr ""
25579
25580 #. type: verbatim
25581 #: ../src/guestfs-actions.pod:4293
25582 #, no-wrap
25583 msgid ""
25584 " int\n"
25585 " guestfs_lvresize (guestfs_h *g,\n"
25586 "                   const char *device,\n"
25587 "                   int mbytes);\n"
25588 "\n"
25589 msgstr ""
25590
25591 #. type: =head2
25592 #: ../src/guestfs-actions.pod:4306
25593 msgid "guestfs_lvresize_free"
25594 msgstr ""
25595
25596 #. type: verbatim
25597 #: ../src/guestfs-actions.pod:4308
25598 #, no-wrap
25599 msgid ""
25600 " int\n"
25601 " guestfs_lvresize_free (guestfs_h *g,\n"
25602 "                        const char *lv,\n"
25603 "                        int percent);\n"
25604 "\n"
25605 msgstr ""
25606
25607 #. type: textblock
25608 #: ../src/guestfs-actions.pod:4321
25609 msgid "(Added in 1.3.3)"
25610 msgstr ""
25611
25612 #. type: =head2
25613 #: ../src/guestfs-actions.pod:4323
25614 msgid "guestfs_lvs"
25615 msgstr ""
25616
25617 #. type: verbatim
25618 #: ../src/guestfs-actions.pod:4325
25619 #, no-wrap
25620 msgid ""
25621 " char **\n"
25622 " guestfs_lvs (guestfs_h *g);\n"
25623 "\n"
25624 msgstr ""
25625
25626 #. type: textblock
25627 #: ../src/guestfs-actions.pod:4334
25628 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
25629 msgstr ""
25630
25631 #. type: =head2
25632 #: ../src/guestfs-actions.pod:4342
25633 msgid "guestfs_lvs_full"
25634 msgstr ""
25635
25636 #. type: verbatim
25637 #: ../src/guestfs-actions.pod:4344
25638 #, no-wrap
25639 msgid ""
25640 " struct guestfs_lvm_lv_list *\n"
25641 " guestfs_lvs_full (guestfs_h *g);\n"
25642 "\n"
25643 msgstr ""
25644
25645 #. type: textblock
25646 #: ../src/guestfs-actions.pod:4350
25647 msgid ""
25648 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
25649 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
25650 "use>."
25651 msgstr ""
25652
25653 #. type: =head2
25654 #: ../src/guestfs-actions.pod:4356
25655 msgid "guestfs_lvuuid"
25656 msgstr ""
25657
25658 #. type: verbatim
25659 #: ../src/guestfs-actions.pod:4358
25660 #, no-wrap
25661 msgid ""
25662 " char *\n"
25663 " guestfs_lvuuid (guestfs_h *g,\n"
25664 "                 const char *device);\n"
25665 "\n"
25666 msgstr ""
25667
25668 #. type: =head2
25669 #: ../src/guestfs-actions.pod:4369
25670 msgid "guestfs_lxattrlist"
25671 msgstr ""
25672
25673 #. type: verbatim
25674 #: ../src/guestfs-actions.pod:4371
25675 #, no-wrap
25676 msgid ""
25677 " struct guestfs_xattr_list *\n"
25678 " guestfs_lxattrlist (guestfs_h *g,\n"
25679 "                     const char *path,\n"
25680 "                     char *const *names);\n"
25681 "\n"
25682 msgstr ""
25683
25684 #. type: textblock
25685 #: ../src/guestfs-actions.pod:4390
25686 msgid ""
25687 "This call is intended for programs that want to efficiently list a directory "
25688 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
25689 "a similarly efficient call for getting standard stats.  Very long directory "
25690 "listings might cause the protocol message size to be exceeded, causing this "
25691 "call to fail.  The caller must split up such requests into smaller groups of "
25692 "names."
25693 msgstr ""
25694
25695 #. type: =head2
25696 #: ../src/guestfs-actions.pod:4404
25697 msgid "guestfs_mkdir"
25698 msgstr ""
25699
25700 #. type: verbatim
25701 #: ../src/guestfs-actions.pod:4406
25702 #, no-wrap
25703 msgid ""
25704 " int\n"
25705 " guestfs_mkdir (guestfs_h *g,\n"
25706 "                const char *path);\n"
25707 "\n"
25708 msgstr ""
25709
25710 #. type: =head2
25711 #: ../src/guestfs-actions.pod:4416
25712 msgid "guestfs_mkdir_mode"
25713 msgstr ""
25714
25715 #. type: verbatim
25716 #: ../src/guestfs-actions.pod:4418
25717 #, no-wrap
25718 msgid ""
25719 " int\n"
25720 " guestfs_mkdir_mode (guestfs_h *g,\n"
25721 "                     const char *path,\n"
25722 "                     int mode);\n"
25723 "\n"
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:4430
25728 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
25729 msgstr ""
25730
25731 #. type: =head2
25732 #: ../src/guestfs-actions.pod:4436
25733 msgid "guestfs_mkdir_p"
25734 msgstr ""
25735
25736 #. type: verbatim
25737 #: ../src/guestfs-actions.pod:4438
25738 #, no-wrap
25739 msgid ""
25740 " int\n"
25741 " guestfs_mkdir_p (guestfs_h *g,\n"
25742 "                  const char *path);\n"
25743 "\n"
25744 msgstr ""
25745
25746 #. type: =head2
25747 #: ../src/guestfs-actions.pod:4449
25748 msgid "guestfs_mkdtemp"
25749 msgstr ""
25750
25751 #. type: verbatim
25752 #: ../src/guestfs-actions.pod:4451
25753 #, no-wrap
25754 msgid ""
25755 " char *\n"
25756 " guestfs_mkdtemp (guestfs_h *g,\n"
25757 "                  const char *template);\n"
25758 "\n"
25759 msgstr ""
25760
25761 #. type: =head2
25762 #: ../src/guestfs-actions.pod:4479
25763 msgid "guestfs_mke2fs_J"
25764 msgstr ""
25765
25766 #. type: verbatim
25767 #: ../src/guestfs-actions.pod:4481
25768 #, no-wrap
25769 msgid ""
25770 " int\n"
25771 " guestfs_mke2fs_J (guestfs_h *g,\n"
25772 "                   const char *fstype,\n"
25773 "                   int blocksize,\n"
25774 "                   const char *device,\n"
25775 "                   const char *journal);\n"
25776 "\n"
25777 msgstr ""
25778
25779 #. type: textblock
25780 #: ../src/guestfs-actions.pod:4494
25781 msgid "See also C<guestfs_mke2journal>."
25782 msgstr ""
25783
25784 #. type: textblock
25785 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550 ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578 ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
25786 msgid "(Added in 1.0.68)"
25787 msgstr ""
25788
25789 #. type: =head2
25790 #: ../src/guestfs-actions.pod:4500
25791 msgid "guestfs_mke2fs_JL"
25792 msgstr ""
25793
25794 #. type: verbatim
25795 #: ../src/guestfs-actions.pod:4502
25796 #, no-wrap
25797 msgid ""
25798 " int\n"
25799 " guestfs_mke2fs_JL (guestfs_h *g,\n"
25800 "                    const char *fstype,\n"
25801 "                    int blocksize,\n"
25802 "                    const char *device,\n"
25803 "                    const char *label);\n"
25804 "\n"
25805 msgstr ""
25806
25807 #. type: textblock
25808 #: ../src/guestfs-actions.pod:4512
25809 msgid "See also C<guestfs_mke2journal_L>."
25810 msgstr ""
25811
25812 #. type: =head2
25813 #: ../src/guestfs-actions.pod:4518
25814 msgid "guestfs_mke2fs_JU"
25815 msgstr ""
25816
25817 #. type: verbatim
25818 #: ../src/guestfs-actions.pod:4520
25819 #, no-wrap
25820 msgid ""
25821 " int\n"
25822 " guestfs_mke2fs_JU (guestfs_h *g,\n"
25823 "                    const char *fstype,\n"
25824 "                    int blocksize,\n"
25825 "                    const char *device,\n"
25826 "                    const char *uuid);\n"
25827 "\n"
25828 msgstr ""
25829
25830 #. type: textblock
25831 #: ../src/guestfs-actions.pod:4530
25832 msgid "See also C<guestfs_mke2journal_U>."
25833 msgstr ""
25834
25835 #. type: =head2
25836 #: ../src/guestfs-actions.pod:4536
25837 msgid "guestfs_mke2journal"
25838 msgstr ""
25839
25840 #. type: verbatim
25841 #: ../src/guestfs-actions.pod:4538
25842 #, no-wrap
25843 msgid ""
25844 " int\n"
25845 " guestfs_mke2journal (guestfs_h *g,\n"
25846 "                      int blocksize,\n"
25847 "                      const char *device);\n"
25848 "\n"
25849 msgstr ""
25850
25851 #. type: =head2
25852 #: ../src/guestfs-actions.pod:4552
25853 msgid "guestfs_mke2journal_L"
25854 msgstr ""
25855
25856 #. type: verbatim
25857 #: ../src/guestfs-actions.pod:4554
25858 #, no-wrap
25859 msgid ""
25860 " int\n"
25861 " guestfs_mke2journal_L (guestfs_h *g,\n"
25862 "                        int blocksize,\n"
25863 "                        const char *label,\n"
25864 "                        const char *device);\n"
25865 "\n"
25866 msgstr ""
25867
25868 #. type: =head2
25869 #: ../src/guestfs-actions.pod:4566
25870 msgid "guestfs_mke2journal_U"
25871 msgstr ""
25872
25873 #. type: verbatim
25874 #: ../src/guestfs-actions.pod:4568
25875 #, no-wrap
25876 msgid ""
25877 " int\n"
25878 " guestfs_mke2journal_U (guestfs_h *g,\n"
25879 "                        int blocksize,\n"
25880 "                        const char *uuid,\n"
25881 "                        const char *device);\n"
25882 "\n"
25883 msgstr ""
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:4580
25887 msgid "guestfs_mkfifo"
25888 msgstr ""
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:4582
25892 #, no-wrap
25893 msgid ""
25894 " int\n"
25895 " guestfs_mkfifo (guestfs_h *g,\n"
25896 "                 int mode,\n"
25897 "                 const char *path);\n"
25898 "\n"
25899 msgstr ""
25900
25901 #. type: textblock
25902 #: ../src/guestfs-actions.pod:4587
25903 msgid ""
25904 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25905 "is just a convenient wrapper around C<guestfs_mknod>."
25906 msgstr ""
25907
25908 #. type: =head2
25909 #: ../src/guestfs-actions.pod:4597
25910 msgid "guestfs_mkfs"
25911 msgstr ""
25912
25913 #. type: verbatim
25914 #: ../src/guestfs-actions.pod:4599
25915 #, no-wrap
25916 msgid ""
25917 " int\n"
25918 " guestfs_mkfs (guestfs_h *g,\n"
25919 "               const char *fstype,\n"
25920 "               const char *device);\n"
25921 "\n"
25922 msgstr ""
25923
25924 #. type: =head2
25925 #: ../src/guestfs-actions.pod:4612
25926 msgid "guestfs_mkfs_b"
25927 msgstr ""
25928
25929 #. type: verbatim
25930 #: ../src/guestfs-actions.pod:4614
25931 #, no-wrap
25932 msgid ""
25933 " int\n"
25934 " guestfs_mkfs_b (guestfs_h *g,\n"
25935 "                 const char *fstype,\n"
25936 "                 int blocksize,\n"
25937 "                 const char *device);\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: textblock
25942 #: ../src/guestfs-actions.pod:4620
25943 msgid ""
25944 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
25945 "call instead."
25946 msgstr ""
25947
25948 #. type: textblock
25949 #: ../src/guestfs-actions.pod:4627
25950 msgid ""
25951 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
25952 "block size of the resulting filesystem.  Supported block sizes depend on the "
25953 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25954 msgstr ""
25955
25956 #. type: =head2
25957 #: ../src/guestfs-actions.pod:4639
25958 msgid "guestfs_mkfs_opts"
25959 msgstr ""
25960
25961 #. type: verbatim
25962 #: ../src/guestfs-actions.pod:4641
25963 #, no-wrap
25964 msgid ""
25965 " int\n"
25966 " guestfs_mkfs_opts (guestfs_h *g,\n"
25967 "                    const char *fstype,\n"
25968 "                    const char *device,\n"
25969 "                    ...);\n"
25970 "\n"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../src/guestfs-actions.pod:4652
25975 #, no-wrap
25976 msgid ""
25977 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
25978 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
25979 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
25980 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
25981 "\n"
25982 msgstr ""
25983
25984 #. type: textblock
25985 #: ../src/guestfs-actions.pod:4700
25986 msgid "(Added in 1.7.19)"
25987 msgstr ""
25988
25989 #. type: =head2
25990 #: ../src/guestfs-actions.pod:4702
25991 msgid "guestfs_mkfs_opts_va"
25992 msgstr ""
25993
25994 #. type: verbatim
25995 #: ../src/guestfs-actions.pod:4704
25996 #, no-wrap
25997 msgid ""
25998 " int\n"
25999 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
26000 "                       const char *fstype,\n"
26001 "                       const char *device,\n"
26002 "                       va_list args);\n"
26003 "\n"
26004 msgstr ""
26005
26006 #. type: textblock
26007 #: ../src/guestfs-actions.pod:4710
26008 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../src/guestfs-actions.pod:4714
26013 msgid "guestfs_mkfs_opts_argv"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:4716
26018 #, no-wrap
26019 msgid ""
26020 " int\n"
26021 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
26022 "                         const char *fstype,\n"
26023 "                         const char *device,\n"
26024 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
26025 "\n"
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:4722
26030 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
26031 msgstr ""
26032
26033 #. type: =head2
26034 #: ../src/guestfs-actions.pod:4726
26035 msgid "guestfs_mkmountpoint"
26036 msgstr ""
26037
26038 #. type: verbatim
26039 #: ../src/guestfs-actions.pod:4728
26040 #, no-wrap
26041 msgid ""
26042 " int\n"
26043 " guestfs_mkmountpoint (guestfs_h *g,\n"
26044 "                       const char *exemptpath);\n"
26045 "\n"
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../src/guestfs-actions.pod:4732
26050 msgid ""
26051 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
26052 "that can be used to create extra mountpoints before mounting the first "
26053 "filesystem."
26054 msgstr ""
26055
26056 #. type: textblock
26057 #: ../src/guestfs-actions.pod:4756
26058 msgid ""
26059 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26060 "may get unexpected errors if you try to mix these calls.  It is safest to "
26061 "manually unmount filesystems and remove mountpoints after use."
26062 msgstr ""
26063
26064 #. type: textblock
26065 #: ../src/guestfs-actions.pod:4760
26066 msgid ""
26067 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26068 "first, so for this to work for manual mountpoints, you must ensure that the "
26069 "innermost mountpoints have the longest pathnames, as in the example code "
26070 "above."
26071 msgstr ""
26072
26073 #. type: textblock
26074 #: ../src/guestfs-actions.pod:4767
26075 msgid ""
26076 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26077 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26078 "can also trigger these issues."
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089 ../src/guestfs-actions.pod:6099
26083 msgid "(Added in 1.0.62)"
26084 msgstr ""
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:4775
26088 msgid "guestfs_mknod"
26089 msgstr ""
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:4777
26093 #, no-wrap
26094 msgid ""
26095 " int\n"
26096 " guestfs_mknod (guestfs_h *g,\n"
26097 "                int mode,\n"
26098 "                int devmajor,\n"
26099 "                int devminor,\n"
26100 "                const char *path);\n"
26101 "\n"
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:4792
26106 msgid ""
26107 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26108 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26109 "regular file).  These constants are available in the standard Linux header "
26110 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26111 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26112 "the appropriate constant for you."
26113 msgstr ""
26114
26115 #. type: =head2
26116 #: ../src/guestfs-actions.pod:4806
26117 msgid "guestfs_mknod_b"
26118 msgstr ""
26119
26120 #. type: verbatim
26121 #: ../src/guestfs-actions.pod:4808
26122 #, no-wrap
26123 msgid ""
26124 " int\n"
26125 " guestfs_mknod_b (guestfs_h *g,\n"
26126 "                  int mode,\n"
26127 "                  int devmajor,\n"
26128 "                  int devminor,\n"
26129 "                  const char *path);\n"
26130 "\n"
26131 msgstr ""
26132
26133 #. type: textblock
26134 #: ../src/guestfs-actions.pod:4815
26135 msgid ""
26136 "This call creates a block device node called C<path> with mode C<mode> and "
26137 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26138 "wrapper around C<guestfs_mknod>."
26139 msgstr ""
26140
26141 #. type: =head2
26142 #: ../src/guestfs-actions.pod:4825
26143 msgid "guestfs_mknod_c"
26144 msgstr ""
26145
26146 #. type: verbatim
26147 #: ../src/guestfs-actions.pod:4827
26148 #, no-wrap
26149 msgid ""
26150 " int\n"
26151 " guestfs_mknod_c (guestfs_h *g,\n"
26152 "                  int mode,\n"
26153 "                  int devmajor,\n"
26154 "                  int devminor,\n"
26155 "                  const char *path);\n"
26156 "\n"
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../src/guestfs-actions.pod:4834
26161 msgid ""
26162 "This call creates a char device node called C<path> with mode C<mode> and "
26163 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26164 "wrapper around C<guestfs_mknod>."
26165 msgstr ""
26166
26167 #. type: =head2
26168 #: ../src/guestfs-actions.pod:4844
26169 msgid "guestfs_mkswap"
26170 msgstr ""
26171
26172 #. type: verbatim
26173 #: ../src/guestfs-actions.pod:4846
26174 #, no-wrap
26175 msgid ""
26176 " int\n"
26177 " guestfs_mkswap (guestfs_h *g,\n"
26178 "                 const char *device);\n"
26179 "\n"
26180 msgstr ""
26181
26182 #. type: =head2
26183 #: ../src/guestfs-actions.pod:4856
26184 msgid "guestfs_mkswap_L"
26185 msgstr ""
26186
26187 #. type: verbatim
26188 #: ../src/guestfs-actions.pod:4858
26189 #, no-wrap
26190 msgid ""
26191 " int\n"
26192 " guestfs_mkswap_L (guestfs_h *g,\n"
26193 "                   const char *label,\n"
26194 "                   const char *device);\n"
26195 "\n"
26196 msgstr ""
26197
26198 #. type: =head2
26199 #: ../src/guestfs-actions.pod:4873
26200 msgid "guestfs_mkswap_U"
26201 msgstr ""
26202
26203 #. type: verbatim
26204 #: ../src/guestfs-actions.pod:4875
26205 #, no-wrap
26206 msgid ""
26207 " int\n"
26208 " guestfs_mkswap_U (guestfs_h *g,\n"
26209 "                   const char *uuid,\n"
26210 "                   const char *device);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: =head2
26215 #: ../src/guestfs-actions.pod:4886
26216 msgid "guestfs_mkswap_file"
26217 msgstr ""
26218
26219 #. type: verbatim
26220 #: ../src/guestfs-actions.pod:4888
26221 #, no-wrap
26222 msgid ""
26223 " int\n"
26224 " guestfs_mkswap_file (guestfs_h *g,\n"
26225 "                      const char *path);\n"
26226 "\n"
26227 msgstr ""
26228
26229 #. type: textblock
26230 #: ../src/guestfs-actions.pod:4894
26231 msgid ""
26232 "This command just writes a swap file signature to an existing file.  To "
26233 "create the file itself, use something like C<guestfs_fallocate>."
26234 msgstr ""
26235
26236 #. type: =head2
26237 #: ../src/guestfs-actions.pod:4901
26238 msgid "guestfs_modprobe"
26239 msgstr ""
26240
26241 #. type: verbatim
26242 #: ../src/guestfs-actions.pod:4903
26243 #, no-wrap
26244 msgid ""
26245 " int\n"
26246 " guestfs_modprobe (guestfs_h *g,\n"
26247 "                   const char *modulename);\n"
26248 "\n"
26249 msgstr ""
26250
26251 #. type: =head2
26252 #: ../src/guestfs-actions.pod:4916
26253 msgid "guestfs_mount"
26254 msgstr ""
26255
26256 #. type: verbatim
26257 #: ../src/guestfs-actions.pod:4918
26258 #, no-wrap
26259 msgid ""
26260 " int\n"
26261 " guestfs_mount (guestfs_h *g,\n"
26262 "                const char *device,\n"
26263 "                const char *mountpoint);\n"
26264 "\n"
26265 msgstr ""
26266
26267 #. type: textblock
26268 #: ../src/guestfs-actions.pod:4923
26269 msgid ""
26270 "I<This function is deprecated.> In new code, use the "
26271 "L</guestfs_mount_options> call instead."
26272 msgstr ""
26273
26274 #. type: textblock
26275 #: ../src/guestfs-actions.pod:4944
26276 msgid ""
26277 "B<Important note:> When you use this call, the filesystem options C<sync> "
26278 "and C<noatime> are set implicitly.  This was originally done because we "
26279 "thought it would improve reliability, but it turns out that I<-o sync> has a "
26280 "very large negative performance impact and negligible effect on "
26281 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
26282 "in any code that needs performance, and instead use C<guestfs_mount_options> "
26283 "(use an empty string for the first parameter if you don't want any options)."
26284 msgstr ""
26285
26286 #. type: =head2
26287 #: ../src/guestfs-actions.pod:4958
26288 msgid "guestfs_mount_9p"
26289 msgstr ""
26290
26291 #. type: verbatim
26292 #: ../src/guestfs-actions.pod:4960
26293 #, no-wrap
26294 msgid ""
26295 " int\n"
26296 " guestfs_mount_9p (guestfs_h *g,\n"
26297 "                   const char *mounttag,\n"
26298 "                   const char *mountpoint,\n"
26299 "                   ...);\n"
26300 "\n"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:4971
26305 #, no-wrap
26306 msgid ""
26307 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26308 "\n"
26309 msgstr ""
26310
26311 #. type: =head2
26312 #: ../src/guestfs-actions.pod:4984
26313 msgid "guestfs_mount_9p_va"
26314 msgstr ""
26315
26316 #. type: verbatim
26317 #: ../src/guestfs-actions.pod:4986
26318 #, no-wrap
26319 msgid ""
26320 " int\n"
26321 " guestfs_mount_9p_va (guestfs_h *g,\n"
26322 "                      const char *mounttag,\n"
26323 "                      const char *mountpoint,\n"
26324 "                      va_list args);\n"
26325 "\n"
26326 msgstr ""
26327
26328 #. type: textblock
26329 #: ../src/guestfs-actions.pod:4992
26330 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26331 msgstr ""
26332
26333 #. type: =head2
26334 #: ../src/guestfs-actions.pod:4996
26335 msgid "guestfs_mount_9p_argv"
26336 msgstr ""
26337
26338 #. type: verbatim
26339 #: ../src/guestfs-actions.pod:4998
26340 #, no-wrap
26341 msgid ""
26342 " int\n"
26343 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26344 "                        const char *mounttag,\n"
26345 "                        const char *mountpoint,\n"
26346 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: textblock
26351 #: ../src/guestfs-actions.pod:5004
26352 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26353 msgstr ""
26354
26355 #. type: =head2
26356 #: ../src/guestfs-actions.pod:5008
26357 msgid "guestfs_mount_loop"
26358 msgstr ""
26359
26360 #. type: verbatim
26361 #: ../src/guestfs-actions.pod:5010
26362 #, no-wrap
26363 msgid ""
26364 " int\n"
26365 " guestfs_mount_loop (guestfs_h *g,\n"
26366 "                     const char *file,\n"
26367 "                     const char *mountpoint);\n"
26368 "\n"
26369 msgstr ""
26370
26371 #. type: =head2
26372 #: ../src/guestfs-actions.pod:5023
26373 msgid "guestfs_mount_options"
26374 msgstr ""
26375
26376 #. type: verbatim
26377 #: ../src/guestfs-actions.pod:5025
26378 #, no-wrap
26379 msgid ""
26380 " int\n"
26381 " guestfs_mount_options (guestfs_h *g,\n"
26382 "                        const char *options,\n"
26383 "                        const char *device,\n"
26384 "                        const char *mountpoint);\n"
26385 "\n"
26386 msgstr ""
26387
26388 #. type: textblock
26389 #: ../src/guestfs-actions.pod:5031
26390 msgid ""
26391 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26392 "the mount options as for the L<mount(8)> I<-o> flag."
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055 ../src/guestfs-actions.pod:5072
26397 msgid "(Added in 1.0.10)"
26398 msgstr ""
26399
26400 #. type: =head2
26401 #: ../src/guestfs-actions.pod:5043
26402 msgid "guestfs_mount_ro"
26403 msgstr ""
26404
26405 #. type: verbatim
26406 #: ../src/guestfs-actions.pod:5045
26407 #, no-wrap
26408 msgid ""
26409 " int\n"
26410 " guestfs_mount_ro (guestfs_h *g,\n"
26411 "                   const char *device,\n"
26412 "                   const char *mountpoint);\n"
26413 "\n"
26414 msgstr ""
26415
26416 #. type: textblock
26417 #: ../src/guestfs-actions.pod:5050
26418 msgid ""
26419 "This is the same as the C<guestfs_mount> command, but it mounts the "
26420 "filesystem with the read-only (I<-o ro>) flag."
26421 msgstr ""
26422
26423 #. type: =head2
26424 #: ../src/guestfs-actions.pod:5057
26425 msgid "guestfs_mount_vfs"
26426 msgstr ""
26427
26428 #. type: verbatim
26429 #: ../src/guestfs-actions.pod:5059
26430 #, no-wrap
26431 msgid ""
26432 " int\n"
26433 " guestfs_mount_vfs (guestfs_h *g,\n"
26434 "                    const char *options,\n"
26435 "                    const char *vfstype,\n"
26436 "                    const char *device,\n"
26437 "                    const char *mountpoint);\n"
26438 "\n"
26439 msgstr ""
26440
26441 #. type: textblock
26442 #: ../src/guestfs-actions.pod:5066
26443 msgid ""
26444 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26445 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
26446 "I<-t> flags."
26447 msgstr ""
26448
26449 #. type: =head2
26450 #: ../src/guestfs-actions.pod:5074
26451 msgid "guestfs_mountpoints"
26452 msgstr ""
26453
26454 #. type: verbatim
26455 #: ../src/guestfs-actions.pod:5076
26456 #, no-wrap
26457 msgid ""
26458 " char **\n"
26459 " guestfs_mountpoints (guestfs_h *g);\n"
26460 "\n"
26461 msgstr ""
26462
26463 #. type: textblock
26464 #: ../src/guestfs-actions.pod:5079
26465 msgid ""
26466 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
26467 "devices.  This one returns a hash table (map) of device name to directory "
26468 "where the device is mounted."
26469 msgstr ""
26470
26471 #. type: =head2
26472 #: ../src/guestfs-actions.pod:5091
26473 msgid "guestfs_mounts"
26474 msgstr ""
26475
26476 #. type: verbatim
26477 #: ../src/guestfs-actions.pod:5093
26478 #, no-wrap
26479 msgid ""
26480 " char **\n"
26481 " guestfs_mounts (guestfs_h *g);\n"
26482 "\n"
26483 msgstr ""
26484
26485 #. type: textblock
26486 #: ../src/guestfs-actions.pod:5101
26487 msgid "See also: C<guestfs_mountpoints>"
26488 msgstr ""
26489
26490 #. type: =head2
26491 #: ../src/guestfs-actions.pod:5109
26492 msgid "guestfs_mv"
26493 msgstr ""
26494
26495 #. type: verbatim
26496 #: ../src/guestfs-actions.pod:5111
26497 #, no-wrap
26498 msgid ""
26499 " int\n"
26500 " guestfs_mv (guestfs_h *g,\n"
26501 "             const char *src,\n"
26502 "             const char *dest);\n"
26503 "\n"
26504 msgstr ""
26505
26506 #. type: =head2
26507 #: ../src/guestfs-actions.pod:5123
26508 msgid "guestfs_ntfs_3g_probe"
26509 msgstr ""
26510
26511 #. type: verbatim
26512 #: ../src/guestfs-actions.pod:5125
26513 #, no-wrap
26514 msgid ""
26515 " int\n"
26516 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
26517 "                        int rw,\n"
26518 "                        const char *device);\n"
26519 "\n"
26520 msgstr ""
26521
26522 #. type: textblock
26523 #: ../src/guestfs-actions.pod:5144
26524 msgid "(Added in 1.0.43)"
26525 msgstr ""
26526
26527 #. type: =head2
26528 #: ../src/guestfs-actions.pod:5146
26529 msgid "guestfs_ntfsresize"
26530 msgstr ""
26531
26532 #. type: verbatim
26533 #: ../src/guestfs-actions.pod:5148
26534 #, no-wrap
26535 msgid ""
26536 " int\n"
26537 " guestfs_ntfsresize (guestfs_h *g,\n"
26538 "                     const char *device);\n"
26539 "\n"
26540 msgstr ""
26541
26542 #. type: textblock
26543 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
26544 msgid ""
26545 "I<This function is deprecated.> In new code, use the "
26546 "L</guestfs_ntfsresize_opts> call instead."
26547 msgstr ""
26548
26549 #. type: =head2
26550 #: ../src/guestfs-actions.pod:5176
26551 msgid "guestfs_ntfsresize_opts"
26552 msgstr ""
26553
26554 #. type: verbatim
26555 #: ../src/guestfs-actions.pod:5178
26556 #, no-wrap
26557 msgid ""
26558 " int\n"
26559 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
26560 "                          const char *device,\n"
26561 "                          ...);\n"
26562 "\n"
26563 msgstr ""
26564
26565 #. type: verbatim
26566 #: ../src/guestfs-actions.pod:5188
26567 #, no-wrap
26568 msgid ""
26569 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
26570 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
26571 "\n"
26572 msgstr ""
26573
26574 #. type: textblock
26575 #: ../src/guestfs-actions.pod:5208
26576 msgid ""
26577 "After the resize operation, the filesystem is always marked as requiring a "
26578 "consistency check (for safety).  You have to boot into Windows to perform "
26579 "this check and clear this condition.  If you I<don't> set the C<force> "
26580 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
26581 "times on a single filesystem without booting into Windows between each "
26582 "resize."
26583 msgstr ""
26584
26585 #. type: =head2
26586 #: ../src/guestfs-actions.pod:5223
26587 msgid "guestfs_ntfsresize_opts_va"
26588 msgstr ""
26589
26590 #. type: verbatim
26591 #: ../src/guestfs-actions.pod:5225
26592 #, no-wrap
26593 msgid ""
26594 " int\n"
26595 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
26596 "                             const char *device,\n"
26597 "                             va_list args);\n"
26598 "\n"
26599 msgstr ""
26600
26601 #. type: textblock
26602 #: ../src/guestfs-actions.pod:5230
26603 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
26604 msgstr ""
26605
26606 #. type: =head2
26607 #: ../src/guestfs-actions.pod:5234
26608 msgid "guestfs_ntfsresize_opts_argv"
26609 msgstr ""
26610
26611 #. type: verbatim
26612 #: ../src/guestfs-actions.pod:5236
26613 #, no-wrap
26614 msgid ""
26615 " int\n"
26616 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
26617 "                               const char *device,\n"
26618 "                               const struct guestfs_ntfsresize_opts_argv "
26619 "*optargs);\n"
26620 "\n"
26621 msgstr ""
26622
26623 #. type: textblock
26624 #: ../src/guestfs-actions.pod:5241
26625 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
26626 msgstr ""
26627
26628 #. type: =head2
26629 #: ../src/guestfs-actions.pod:5245
26630 msgid "guestfs_ntfsresize_size"
26631 msgstr ""
26632
26633 #. type: verbatim
26634 #: ../src/guestfs-actions.pod:5247
26635 #, no-wrap
26636 msgid ""
26637 " int\n"
26638 " guestfs_ntfsresize_size (guestfs_h *g,\n"
26639 "                          const char *device,\n"
26640 "                          int64_t size);\n"
26641 "\n"
26642 msgstr ""
26643
26644 #. type: textblock
26645 #: ../src/guestfs-actions.pod:5259
26646 msgid ""
26647 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
26648 "to specify the new size (in bytes) explicitly."
26649 msgstr ""
26650
26651 #. type: textblock
26652 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706 ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047 ../src/guestfs-actions.pod:7670
26653 msgid "(Added in 1.3.14)"
26654 msgstr ""
26655
26656 #. type: =head2
26657 #: ../src/guestfs-actions.pod:5266
26658 msgid "guestfs_part_add"
26659 msgstr ""
26660
26661 #. type: verbatim
26662 #: ../src/guestfs-actions.pod:5268
26663 #, no-wrap
26664 msgid ""
26665 " int\n"
26666 " guestfs_part_add (guestfs_h *g,\n"
26667 "                   const char *device,\n"
26668 "                   const char *prlogex,\n"
26669 "                   int64_t startsect,\n"
26670 "                   int64_t endsect);\n"
26671 "\n"
26672 msgstr ""
26673
26674 #. type: textblock
26675 #: ../src/guestfs-actions.pod:5275
26676 msgid ""
26677 "This command adds a partition to C<device>.  If there is no partition table "
26678 "on the device, call C<guestfs_part_init> first."
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:5287
26683 msgid ""
26684 "Creating a partition which covers the whole disk is not so easy.  Use "
26685 "C<guestfs_part_disk> to do that."
26686 msgstr ""
26687
26688 #. type: textblock
26689 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330 ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524 ../src/guestfs-actions.pod:5564
26690 msgid "(Added in 1.0.78)"
26691 msgstr ""
26692
26693 #. type: =head2
26694 #: ../src/guestfs-actions.pod:5294
26695 msgid "guestfs_part_del"
26696 msgstr ""
26697
26698 #. type: verbatim
26699 #: ../src/guestfs-actions.pod:5296
26700 #, no-wrap
26701 msgid ""
26702 " int\n"
26703 " guestfs_part_del (guestfs_h *g,\n"
26704 "                   const char *device,\n"
26705 "                   int partnum);\n"
26706 "\n"
26707 msgstr ""
26708
26709 #. type: =head2
26710 #: ../src/guestfs-actions.pod:5311
26711 msgid "guestfs_part_disk"
26712 msgstr ""
26713
26714 #. type: verbatim
26715 #: ../src/guestfs-actions.pod:5313
26716 #, no-wrap
26717 msgid ""
26718 " int\n"
26719 " guestfs_part_disk (guestfs_h *g,\n"
26720 "                    const char *device,\n"
26721 "                    const char *parttype);\n"
26722 "\n"
26723 msgstr ""
26724
26725 #. type: textblock
26726 #: ../src/guestfs-actions.pod:5318
26727 msgid ""
26728 "This command is simply a combination of C<guestfs_part_init> followed by "
26729 "C<guestfs_part_add> to create a single primary partition covering the whole "
26730 "disk."
26731 msgstr ""
26732
26733 #. type: textblock
26734 #: ../src/guestfs-actions.pod:5322
26735 msgid ""
26736 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26737 "possible values are described in C<guestfs_part_init>."
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../src/guestfs-actions.pod:5332
26742 msgid "guestfs_part_get_bootable"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../src/guestfs-actions.pod:5334
26747 #, no-wrap
26748 msgid ""
26749 " int\n"
26750 " guestfs_part_get_bootable (guestfs_h *g,\n"
26751 "                            const char *device,\n"
26752 "                            int partnum);\n"
26753 "\n"
26754 msgstr ""
26755
26756 #. type: textblock
26757 #: ../src/guestfs-actions.pod:5342
26758 msgid "See also C<guestfs_part_set_bootable>."
26759 msgstr ""
26760
26761 #. type: =head2
26762 #: ../src/guestfs-actions.pod:5348
26763 msgid "guestfs_part_get_mbr_id"
26764 msgstr ""
26765
26766 #. type: verbatim
26767 #: ../src/guestfs-actions.pod:5350
26768 #, no-wrap
26769 msgid ""
26770 " int\n"
26771 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
26772 "                          const char *device,\n"
26773 "                          int partnum);\n"
26774 "\n"
26775 msgstr ""
26776
26777 #. type: textblock
26778 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
26779 msgid ""
26780 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26781 "undefined results for other partition table types (see "
26782 "C<guestfs_part_get_parttype>)."
26783 msgstr ""
26784
26785 #. type: =head2
26786 #: ../src/guestfs-actions.pod:5366
26787 msgid "guestfs_part_get_parttype"
26788 msgstr ""
26789
26790 #. type: verbatim
26791 #: ../src/guestfs-actions.pod:5368
26792 #, no-wrap
26793 msgid ""
26794 " char *\n"
26795 " guestfs_part_get_parttype (guestfs_h *g,\n"
26796 "                            const char *device);\n"
26797 "\n"
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:5375
26802 msgid ""
26803 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26804 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26805 "possible, although unusual.  See C<guestfs_part_init> for a full list."
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../src/guestfs-actions.pod:5385
26810 msgid "guestfs_part_init"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../src/guestfs-actions.pod:5387
26815 #, no-wrap
26816 msgid ""
26817 " int\n"
26818 " guestfs_part_init (guestfs_h *g,\n"
26819 "                    const char *device,\n"
26820 "                    const char *parttype);\n"
26821 "\n"
26822 msgstr ""
26823
26824 #. type: textblock
26825 #: ../src/guestfs-actions.pod:5396
26826 msgid ""
26827 "Initially there are no partitions.  Following this, you should call "
26828 "C<guestfs_part_add> for each partition required."
26829 msgstr ""
26830
26831 #. type: =head2
26832 #: ../src/guestfs-actions.pod:5469
26833 msgid "guestfs_part_list"
26834 msgstr ""
26835
26836 #. type: verbatim
26837 #: ../src/guestfs-actions.pod:5471
26838 #, no-wrap
26839 msgid ""
26840 " struct guestfs_partition_list *\n"
26841 " guestfs_part_list (guestfs_h *g,\n"
26842 "                    const char *device);\n"
26843 "\n"
26844 msgstr ""
26845
26846 #. type: textblock
26847 #: ../src/guestfs-actions.pod:5488
26848 msgid ""
26849 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26850 "the device's sector size, see C<guestfs_blockdev_getss>."
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:5501
26855 msgid ""
26856 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
26857 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
26858 "use>."
26859 msgstr ""
26860
26861 #. type: =head2
26862 #: ../src/guestfs-actions.pod:5507
26863 msgid "guestfs_part_set_bootable"
26864 msgstr ""
26865
26866 #. type: verbatim
26867 #: ../src/guestfs-actions.pod:5509
26868 #, no-wrap
26869 msgid ""
26870 " int\n"
26871 " guestfs_part_set_bootable (guestfs_h *g,\n"
26872 "                            const char *device,\n"
26873 "                            int partnum,\n"
26874 "                            int bootable);\n"
26875 "\n"
26876 msgstr ""
26877
26878 #. type: =head2
26879 #: ../src/guestfs-actions.pod:5526
26880 msgid "guestfs_part_set_mbr_id"
26881 msgstr ""
26882
26883 #. type: verbatim
26884 #: ../src/guestfs-actions.pod:5528
26885 #, no-wrap
26886 msgid ""
26887 " int\n"
26888 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
26889 "                          const char *device,\n"
26890 "                          int partnum,\n"
26891 "                          int idbyte);\n"
26892 "\n"
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:5548
26897 msgid "guestfs_part_set_name"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:5550
26902 #, no-wrap
26903 msgid ""
26904 " int\n"
26905 " guestfs_part_set_name (guestfs_h *g,\n"
26906 "                        const char *device,\n"
26907 "                        int partnum,\n"
26908 "                        const char *name);\n"
26909 "\n"
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:5566
26914 msgid "guestfs_part_to_dev"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:5568
26919 #, no-wrap
26920 msgid ""
26921 " char *\n"
26922 " guestfs_part_to_dev (guestfs_h *g,\n"
26923 "                      const char *partition);\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: textblock
26928 #: ../src/guestfs-actions.pod:5576
26929 msgid ""
26930 "The named partition must exist, for example as a string returned from "
26931 "C<guestfs_list_partitions>."
26932 msgstr ""
26933
26934 #. type: =head2
26935 #: ../src/guestfs-actions.pod:5584
26936 msgid "guestfs_ping_daemon"
26937 msgstr ""
26938
26939 #. type: verbatim
26940 #: ../src/guestfs-actions.pod:5586
26941 #, no-wrap
26942 msgid ""
26943 " int\n"
26944 " guestfs_ping_daemon (guestfs_h *g);\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: =head2
26949 #: ../src/guestfs-actions.pod:5598
26950 msgid "guestfs_pread"
26951 msgstr ""
26952
26953 #. type: verbatim
26954 #: ../src/guestfs-actions.pod:5600
26955 #, no-wrap
26956 msgid ""
26957 " char *\n"
26958 " guestfs_pread (guestfs_h *g,\n"
26959 "                const char *path,\n"
26960 "                int count,\n"
26961 "                int64_t offset,\n"
26962 "                size_t *size_r);\n"
26963 "\n"
26964 msgstr ""
26965
26966 #. type: textblock
26967 #: ../src/guestfs-actions.pod:5613
26968 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
26969 msgstr ""
26970
26971 #. type: =head2
26972 #: ../src/guestfs-actions.pod:5624
26973 msgid "guestfs_pread_device"
26974 msgstr ""
26975
26976 #. type: verbatim
26977 #: ../src/guestfs-actions.pod:5626
26978 #, no-wrap
26979 msgid ""
26980 " char *\n"
26981 " guestfs_pread_device (guestfs_h *g,\n"
26982 "                       const char *device,\n"
26983 "                       int count,\n"
26984 "                       int64_t offset,\n"
26985 "                       size_t *size_r);\n"
26986 "\n"
26987 msgstr ""
26988
26989 #. type: textblock
26990 #: ../src/guestfs-actions.pod:5639
26991 msgid "See also C<guestfs_pread>."
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:5648
26996 msgid "(Added in 1.5.21)"
26997 msgstr ""
26998
26999 #. type: =head2
27000 #: ../src/guestfs-actions.pod:5650
27001 msgid "guestfs_pvcreate"
27002 msgstr ""
27003
27004 #. type: verbatim
27005 #: ../src/guestfs-actions.pod:5652
27006 #, no-wrap
27007 msgid ""
27008 " int\n"
27009 " guestfs_pvcreate (guestfs_h *g,\n"
27010 "                   const char *device);\n"
27011 "\n"
27012 msgstr ""
27013
27014 #. type: =head2
27015 #: ../src/guestfs-actions.pod:5664
27016 msgid "guestfs_pvremove"
27017 msgstr ""
27018
27019 #. type: verbatim
27020 #: ../src/guestfs-actions.pod:5666
27021 #, no-wrap
27022 msgid ""
27023 " int\n"
27024 " guestfs_pvremove (guestfs_h *g,\n"
27025 "                   const char *device);\n"
27026 "\n"
27027 msgstr ""
27028
27029 #. type: =head2
27030 #: ../src/guestfs-actions.pod:5681
27031 msgid "guestfs_pvresize"
27032 msgstr ""
27033
27034 #. type: verbatim
27035 #: ../src/guestfs-actions.pod:5683
27036 #, no-wrap
27037 msgid ""
27038 " int\n"
27039 " guestfs_pvresize (guestfs_h *g,\n"
27040 "                   const char *device);\n"
27041 "\n"
27042 msgstr ""
27043
27044 #. type: =head2
27045 #: ../src/guestfs-actions.pod:5694
27046 msgid "guestfs_pvresize_size"
27047 msgstr ""
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:5696
27051 #, no-wrap
27052 msgid ""
27053 " int\n"
27054 " guestfs_pvresize_size (guestfs_h *g,\n"
27055 "                        const char *device,\n"
27056 "                        int64_t size);\n"
27057 "\n"
27058 msgstr ""
27059
27060 #. type: textblock
27061 #: ../src/guestfs-actions.pod:5701
27062 msgid ""
27063 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27064 "specify the new size (in bytes) explicitly."
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:5708
27069 msgid "guestfs_pvs"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:5710
27074 #, no-wrap
27075 msgid ""
27076 " char **\n"
27077 " guestfs_pvs (guestfs_h *g);\n"
27078 "\n"
27079 msgstr ""
27080
27081 #. type: textblock
27082 #: ../src/guestfs-actions.pod:5719
27083 msgid "See also C<guestfs_pvs_full>."
27084 msgstr ""
27085
27086 #. type: =head2
27087 #: ../src/guestfs-actions.pod:5727
27088 msgid "guestfs_pvs_full"
27089 msgstr ""
27090
27091 #. type: verbatim
27092 #: ../src/guestfs-actions.pod:5729
27093 #, no-wrap
27094 msgid ""
27095 " struct guestfs_lvm_pv_list *\n"
27096 " guestfs_pvs_full (guestfs_h *g);\n"
27097 "\n"
27098 msgstr ""
27099
27100 #. type: textblock
27101 #: ../src/guestfs-actions.pod:5735
27102 msgid ""
27103 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27104 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27105 "use>."
27106 msgstr ""
27107
27108 #. type: =head2
27109 #: ../src/guestfs-actions.pod:5741
27110 msgid "guestfs_pvuuid"
27111 msgstr ""
27112
27113 #. type: verbatim
27114 #: ../src/guestfs-actions.pod:5743
27115 #, no-wrap
27116 msgid ""
27117 " char *\n"
27118 " guestfs_pvuuid (guestfs_h *g,\n"
27119 "                 const char *device);\n"
27120 "\n"
27121 msgstr ""
27122
27123 #. type: =head2
27124 #: ../src/guestfs-actions.pod:5754
27125 msgid "guestfs_pwrite"
27126 msgstr ""
27127
27128 #. type: verbatim
27129 #: ../src/guestfs-actions.pod:5756
27130 #, no-wrap
27131 msgid ""
27132 " int\n"
27133 " guestfs_pwrite (guestfs_h *g,\n"
27134 "                 const char *path,\n"
27135 "                 const char *content,\n"
27136 "                 size_t content_size,\n"
27137 "                 int64_t offset);\n"
27138 "\n"
27139 msgstr ""
27140
27141 #. type: textblock
27142 #: ../src/guestfs-actions.pod:5772
27143 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../src/guestfs-actions.pod:5781
27148 msgid "guestfs_pwrite_device"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../src/guestfs-actions.pod:5783
27153 #, no-wrap
27154 msgid ""
27155 " int\n"
27156 " guestfs_pwrite_device (guestfs_h *g,\n"
27157 "                        const char *device,\n"
27158 "                        const char *content,\n"
27159 "                        size_t content_size,\n"
27160 "                        int64_t offset);\n"
27161 "\n"
27162 msgstr ""
27163
27164 #. type: textblock
27165 #: ../src/guestfs-actions.pod:5798
27166 msgid "See also C<guestfs_pwrite>."
27167 msgstr ""
27168
27169 #. type: textblock
27170 #: ../src/guestfs-actions.pod:5805
27171 msgid "(Added in 1.5.20)"
27172 msgstr ""
27173
27174 #. type: =head2
27175 #: ../src/guestfs-actions.pod:5807
27176 msgid "guestfs_read_file"
27177 msgstr ""
27178
27179 #. type: verbatim
27180 #: ../src/guestfs-actions.pod:5809
27181 #, no-wrap
27182 msgid ""
27183 " char *\n"
27184 " guestfs_read_file (guestfs_h *g,\n"
27185 "                    const char *path,\n"
27186 "                    size_t *size_r);\n"
27187 "\n"
27188 msgstr ""
27189
27190 #. type: textblock
27191 #: ../src/guestfs-actions.pod:5817
27192 msgid ""
27193 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27194 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27195 "function is limited in the total size of file that can be handled."
27196 msgstr ""
27197
27198 #. type: textblock
27199 #: ../src/guestfs-actions.pod:5829
27200 msgid "(Added in 1.0.63)"
27201 msgstr ""
27202
27203 #. type: =head2
27204 #: ../src/guestfs-actions.pod:5831
27205 msgid "guestfs_read_lines"
27206 msgstr ""
27207
27208 #. type: verbatim
27209 #: ../src/guestfs-actions.pod:5833
27210 #, no-wrap
27211 msgid ""
27212 " char **\n"
27213 " guestfs_read_lines (guestfs_h *g,\n"
27214 "                     const char *path);\n"
27215 "\n"
27216 msgstr ""
27217
27218 #. type: textblock
27219 #: ../src/guestfs-actions.pod:5842
27220 msgid ""
27221 "Note that this function cannot correctly handle binary files (specifically, "
27222 "files containing C<\\0> character which is treated as end of line).  For "
27223 "those you need to use the C<guestfs_read_file> function which has a more "
27224 "complex interface."
27225 msgstr ""
27226
27227 #. type: =head2
27228 #: ../src/guestfs-actions.pod:5853
27229 msgid "guestfs_readdir"
27230 msgstr ""
27231
27232 #. type: verbatim
27233 #: ../src/guestfs-actions.pod:5855
27234 #, no-wrap
27235 msgid ""
27236 " struct guestfs_dirent_list *\n"
27237 " guestfs_readdir (guestfs_h *g,\n"
27238 "                  const char *dir);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: textblock
27243 #: ../src/guestfs-actions.pod:5909
27244 msgid ""
27245 "This function is primarily intended for use by programs.  To get a simple "
27246 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27247 "consumption, use C<guestfs_ll>."
27248 msgstr ""
27249
27250 #. type: textblock
27251 #: ../src/guestfs-actions.pod:5913
27252 msgid ""
27253 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27254 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27255 "use>."
27256 msgstr ""
27257
27258 #. type: =head2
27259 #: ../src/guestfs-actions.pod:5919
27260 msgid "guestfs_readlink"
27261 msgstr ""
27262
27263 #. type: verbatim
27264 #: ../src/guestfs-actions.pod:5921
27265 #, no-wrap
27266 msgid ""
27267 " char *\n"
27268 " guestfs_readlink (guestfs_h *g,\n"
27269 "                   const char *path);\n"
27270 "\n"
27271 msgstr ""
27272
27273 #. type: =head2
27274 #: ../src/guestfs-actions.pod:5932
27275 msgid "guestfs_readlinklist"
27276 msgstr ""
27277
27278 #. type: verbatim
27279 #: ../src/guestfs-actions.pod:5934
27280 #, no-wrap
27281 msgid ""
27282 " char **\n"
27283 " guestfs_readlinklist (guestfs_h *g,\n"
27284 "                       const char *path,\n"
27285 "                       char *const *names);\n"
27286 "\n"
27287 msgstr ""
27288
27289 #. type: =head2
27290 #: ../src/guestfs-actions.pod:5967
27291 msgid "guestfs_realpath"
27292 msgstr ""
27293
27294 #. type: verbatim
27295 #: ../src/guestfs-actions.pod:5969
27296 #, no-wrap
27297 msgid ""
27298 " char *\n"
27299 " guestfs_realpath (guestfs_h *g,\n"
27300 "                   const char *path);\n"
27301 "\n"
27302 msgstr ""
27303
27304 #. type: =head2
27305 #: ../src/guestfs-actions.pod:5981
27306 msgid "guestfs_removexattr"
27307 msgstr ""
27308
27309 #. type: verbatim
27310 #: ../src/guestfs-actions.pod:5983
27311 #, no-wrap
27312 msgid ""
27313 " int\n"
27314 " guestfs_removexattr (guestfs_h *g,\n"
27315 "                      const char *xattr,\n"
27316 "                      const char *path);\n"
27317 "\n"
27318 msgstr ""
27319
27320 #. type: textblock
27321 #: ../src/guestfs-actions.pod:5991
27322 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27323 msgstr ""
27324
27325 #. type: =head2
27326 #: ../src/guestfs-actions.pod:5997
27327 msgid "guestfs_resize2fs"
27328 msgstr ""
27329
27330 #. type: verbatim
27331 #: ../src/guestfs-actions.pod:5999
27332 #, no-wrap
27333 msgid ""
27334 " int\n"
27335 " guestfs_resize2fs (guestfs_h *g,\n"
27336 "                    const char *device);\n"
27337 "\n"
27338 msgstr ""
27339
27340 #. type: textblock
27341 #: ../src/guestfs-actions.pod:6006
27342 msgid ""
27343 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27344 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27345 "sometimes gives an error about this and sometimes not.  In any case, it is "
27346 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27347 msgstr ""
27348
27349 #. type: =head2
27350 #: ../src/guestfs-actions.pod:6016
27351 msgid "guestfs_resize2fs_M"
27352 msgstr ""
27353
27354 #. type: verbatim
27355 #: ../src/guestfs-actions.pod:6018
27356 #, no-wrap
27357 msgid ""
27358 " int\n"
27359 " guestfs_resize2fs_M (guestfs_h *g,\n"
27360 "                      const char *device);\n"
27361 "\n"
27362 msgstr ""
27363
27364 #. type: textblock
27365 #: ../src/guestfs-actions.pod:6022
27366 msgid ""
27367 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27368 "resized to its minimum size.  This works like the I<-M> option to the "
27369 "C<resize2fs> command."
27370 msgstr ""
27371
27372 #. type: textblock
27373 #: ../src/guestfs-actions.pod:6026
27374 msgid ""
27375 "To get the resulting size of the filesystem you should call "
27376 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27377 "These two numbers, multiplied together, give the resulting size of the "
27378 "minimal filesystem in bytes."
27379 msgstr ""
27380
27381 #. type: =head2
27382 #: ../src/guestfs-actions.pod:6035
27383 msgid "guestfs_resize2fs_size"
27384 msgstr ""
27385
27386 #. type: verbatim
27387 #: ../src/guestfs-actions.pod:6037
27388 #, no-wrap
27389 msgid ""
27390 " int\n"
27391 " guestfs_resize2fs_size (guestfs_h *g,\n"
27392 "                         const char *device,\n"
27393 "                         int64_t size);\n"
27394 "\n"
27395 msgstr ""
27396
27397 #. type: textblock
27398 #: ../src/guestfs-actions.pod:6042
27399 msgid ""
27400 "This command is the same as C<guestfs_resize2fs> except that it allows you "
27401 "to specify the new size (in bytes) explicitly."
27402 msgstr ""
27403
27404 #. type: =head2
27405 #: ../src/guestfs-actions.pod:6049
27406 msgid "guestfs_rm"
27407 msgstr ""
27408
27409 #. type: verbatim
27410 #: ../src/guestfs-actions.pod:6051
27411 #, no-wrap
27412 msgid ""
27413 " int\n"
27414 " guestfs_rm (guestfs_h *g,\n"
27415 "             const char *path);\n"
27416 "\n"
27417 msgstr ""
27418
27419 #. type: =head2
27420 #: ../src/guestfs-actions.pod:6061
27421 msgid "guestfs_rm_rf"
27422 msgstr ""
27423
27424 #. type: verbatim
27425 #: ../src/guestfs-actions.pod:6063
27426 #, no-wrap
27427 msgid ""
27428 " int\n"
27429 " guestfs_rm_rf (guestfs_h *g,\n"
27430 "                const char *path);\n"
27431 "\n"
27432 msgstr ""
27433
27434 #. type: =head2
27435 #: ../src/guestfs-actions.pod:6075
27436 msgid "guestfs_rmdir"
27437 msgstr ""
27438
27439 #. type: verbatim
27440 #: ../src/guestfs-actions.pod:6077
27441 #, no-wrap
27442 msgid ""
27443 " int\n"
27444 " guestfs_rmdir (guestfs_h *g,\n"
27445 "                const char *path);\n"
27446 "\n"
27447 msgstr ""
27448
27449 #. type: =head2
27450 #: ../src/guestfs-actions.pod:6087
27451 msgid "guestfs_rmmountpoint"
27452 msgstr ""
27453
27454 #. type: verbatim
27455 #: ../src/guestfs-actions.pod:6089
27456 #, no-wrap
27457 msgid ""
27458 " int\n"
27459 " guestfs_rmmountpoint (guestfs_h *g,\n"
27460 "                       const char *exemptpath);\n"
27461 "\n"
27462 msgstr ""
27463
27464 #. type: textblock
27465 #: ../src/guestfs-actions.pod:6093
27466 msgid ""
27467 "This calls removes a mountpoint that was previously created with "
27468 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
27469 msgstr ""
27470
27471 #. type: =head2
27472 #: ../src/guestfs-actions.pod:6101
27473 msgid "guestfs_scrub_device"
27474 msgstr ""
27475
27476 #. type: verbatim
27477 #: ../src/guestfs-actions.pod:6103
27478 #, no-wrap
27479 msgid ""
27480 " int\n"
27481 " guestfs_scrub_device (guestfs_h *g,\n"
27482 "                       const char *device);\n"
27483 "\n"
27484 msgstr ""
27485
27486 #. type: textblock
27487 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136 ../src/guestfs-actions.pod:6155
27488 msgid "(Added in 1.0.52)"
27489 msgstr ""
27490
27491 #. type: =head2
27492 #: ../src/guestfs-actions.pod:6120
27493 msgid "guestfs_scrub_file"
27494 msgstr ""
27495
27496 #. type: verbatim
27497 #: ../src/guestfs-actions.pod:6122
27498 #, no-wrap
27499 msgid ""
27500 " int\n"
27501 " guestfs_scrub_file (guestfs_h *g,\n"
27502 "                     const char *file);\n"
27503 "\n"
27504 msgstr ""
27505
27506 #. type: =head2
27507 #: ../src/guestfs-actions.pod:6138
27508 msgid "guestfs_scrub_freespace"
27509 msgstr ""
27510
27511 #. type: verbatim
27512 #: ../src/guestfs-actions.pod:6140
27513 #, no-wrap
27514 msgid ""
27515 " int\n"
27516 " guestfs_scrub_freespace (guestfs_h *g,\n"
27517 "                          const char *dir);\n"
27518 "\n"
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:6144
27523 msgid ""
27524 "This command creates the directory C<dir> and then fills it with files until "
27525 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
27526 "and deletes them.  The intention is to scrub any free space on the partition "
27527 "containing C<dir>."
27528 msgstr ""
27529
27530 #. type: =head2
27531 #: ../src/guestfs-actions.pod:6157
27532 msgid "guestfs_set_append"
27533 msgstr ""
27534
27535 #. type: verbatim
27536 #: ../src/guestfs-actions.pod:6159
27537 #, no-wrap
27538 msgid ""
27539 " int\n"
27540 " guestfs_set_append (guestfs_h *g,\n"
27541 "                     const char *append);\n"
27542 "\n"
27543 msgstr ""
27544
27545 #. type: =head2
27546 #: ../src/guestfs-actions.pod:6176
27547 msgid "guestfs_set_attach_method"
27548 msgstr ""
27549
27550 #. type: verbatim
27551 #: ../src/guestfs-actions.pod:6178
27552 #, no-wrap
27553 msgid ""
27554 " int\n"
27555 " guestfs_set_attach_method (guestfs_h *g,\n"
27556 "                            const char *attachmethod);\n"
27557 "\n"
27558 msgstr ""
27559
27560 #. type: =head2
27561 #: ../src/guestfs-actions.pod:6206
27562 msgid "guestfs_set_autosync"
27563 msgstr ""
27564
27565 #. type: verbatim
27566 #: ../src/guestfs-actions.pod:6208
27567 #, no-wrap
27568 msgid ""
27569 " int\n"
27570 " guestfs_set_autosync (guestfs_h *g,\n"
27571 "                       int autosync);\n"
27572 "\n"
27573 msgstr ""
27574
27575 #. type: =head2
27576 #: ../src/guestfs-actions.pod:6224
27577 msgid "guestfs_set_direct"
27578 msgstr ""
27579
27580 #. type: verbatim
27581 #: ../src/guestfs-actions.pod:6226
27582 #, no-wrap
27583 msgid ""
27584 " int\n"
27585 " guestfs_set_direct (guestfs_h *g,\n"
27586 "                     int direct);\n"
27587 "\n"
27588 msgstr ""
27589
27590 #. type: textblock
27591 #: ../src/guestfs-actions.pod:6234
27592 msgid ""
27593 "One consequence of this is that log messages aren't caught by the library "
27594 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
27595 "stdout."
27596 msgstr ""
27597
27598 #. type: =head2
27599 #: ../src/guestfs-actions.pod:6247
27600 msgid "guestfs_set_e2label"
27601 msgstr ""
27602
27603 #. type: verbatim
27604 #: ../src/guestfs-actions.pod:6249
27605 #, no-wrap
27606 msgid ""
27607 " int\n"
27608 " guestfs_set_e2label (guestfs_h *g,\n"
27609 "                      const char *device,\n"
27610 "                      const char *label);\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:6258
27616 msgid ""
27617 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
27618 "the existing label on a filesystem."
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:6265
27623 msgid "guestfs_set_e2uuid"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:6267
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_set_e2uuid (guestfs_h *g,\n"
27632 "                     const char *device,\n"
27633 "                     const char *uuid);\n"
27634 "\n"
27635 msgstr ""
27636
27637 #. type: textblock
27638 #: ../src/guestfs-actions.pod:6277
27639 msgid ""
27640 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
27641 "the existing UUID of a filesystem."
27642 msgstr ""
27643
27644 #. type: =head2
27645 #: ../src/guestfs-actions.pod:6284
27646 msgid "guestfs_set_memsize"
27647 msgstr ""
27648
27649 #. type: verbatim
27650 #: ../src/guestfs-actions.pod:6286
27651 #, no-wrap
27652 msgid ""
27653 " int\n"
27654 " guestfs_set_memsize (guestfs_h *g,\n"
27655 "                      int memsize);\n"
27656 "\n"
27657 msgstr ""
27658
27659 #. type: textblock
27660 #: ../src/guestfs-actions.pod:6290
27661 msgid ""
27662 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
27663 "This only has any effect if called before C<guestfs_launch>."
27664 msgstr ""
27665
27666 #. type: =head2
27667 #: ../src/guestfs-actions.pod:6305
27668 msgid "guestfs_set_network"
27669 msgstr ""
27670
27671 #. type: verbatim
27672 #: ../src/guestfs-actions.pod:6307
27673 #, no-wrap
27674 msgid ""
27675 " int\n"
27676 " guestfs_set_network (guestfs_h *g,\n"
27677 "                      int network);\n"
27678 "\n"
27679 msgstr ""
27680
27681 #. type: textblock
27682 #: ../src/guestfs-actions.pod:6317
27683 msgid ""
27684 "You must call this before calling C<guestfs_launch>, otherwise it has no "
27685 "effect."
27686 msgstr ""
27687
27688 #. type: =head2
27689 #: ../src/guestfs-actions.pod:6324
27690 msgid "guestfs_set_path"
27691 msgstr ""
27692
27693 #. type: verbatim
27694 #: ../src/guestfs-actions.pod:6326
27695 #, no-wrap
27696 msgid ""
27697 " int\n"
27698 " guestfs_set_path (guestfs_h *g,\n"
27699 "                   const char *searchpath);\n"
27700 "\n"
27701 msgstr ""
27702
27703 #. type: =head2
27704 #: ../src/guestfs-actions.pod:6341
27705 msgid "guestfs_set_pgroup"
27706 msgstr ""
27707
27708 #. type: verbatim
27709 #: ../src/guestfs-actions.pod:6343
27710 #, no-wrap
27711 msgid ""
27712 " int\n"
27713 " guestfs_set_pgroup (guestfs_h *g,\n"
27714 "                     int pgroup);\n"
27715 "\n"
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:6360
27720 msgid "guestfs_set_qemu"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:6362
27725 #, no-wrap
27726 msgid ""
27727 " int\n"
27728 " guestfs_set_qemu (guestfs_h *g,\n"
27729 "                   const char *qemu);\n"
27730 "\n"
27731 msgstr ""
27732
27733 #. type: =head2
27734 #: ../src/guestfs-actions.pod:6388
27735 msgid "guestfs_set_recovery_proc"
27736 msgstr ""
27737
27738 #. type: verbatim
27739 #: ../src/guestfs-actions.pod:6390
27740 #, no-wrap
27741 msgid ""
27742 " int\n"
27743 " guestfs_set_recovery_proc (guestfs_h *g,\n"
27744 "                            int recoveryproc);\n"
27745 "\n"
27746 msgstr ""
27747
27748 #. type: textblock
27749 #: ../src/guestfs-actions.pod:6394
27750 msgid ""
27751 "If this is called with the parameter C<false> then C<guestfs_launch> does "
27752 "not create a recovery process.  The purpose of the recovery process is to "
27753 "stop runaway qemu processes in the case where the main program aborts "
27754 "abruptly."
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:6399
27759 msgid ""
27760 "This only has any effect if called before C<guestfs_launch>, and the default "
27761 "is true."
27762 msgstr ""
27763
27764 #. type: =head2
27765 #: ../src/guestfs-actions.pod:6412
27766 msgid "guestfs_set_selinux"
27767 msgstr ""
27768
27769 #. type: verbatim
27770 #: ../src/guestfs-actions.pod:6414
27771 #, no-wrap
27772 msgid ""
27773 " int\n"
27774 " guestfs_set_selinux (guestfs_h *g,\n"
27775 "                      int selinux);\n"
27776 "\n"
27777 msgstr ""
27778
27779 #. type: =head2
27780 #: ../src/guestfs-actions.pod:6431
27781 msgid "guestfs_set_trace"
27782 msgstr ""
27783
27784 #. type: verbatim
27785 #: ../src/guestfs-actions.pod:6433
27786 #, no-wrap
27787 msgid ""
27788 " int\n"
27789 " guestfs_set_trace (guestfs_h *g,\n"
27790 "                    int trace);\n"
27791 "\n"
27792 msgstr ""
27793
27794 #. type: textblock
27795 #: ../src/guestfs-actions.pod:6447
27796 msgid ""
27797 "Trace messages are normally sent to C<stderr>, unless you register a "
27798 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27799 msgstr ""
27800
27801 #. type: =head2
27802 #: ../src/guestfs-actions.pod:6455
27803 msgid "guestfs_set_verbose"
27804 msgstr ""
27805
27806 #. type: verbatim
27807 #: ../src/guestfs-actions.pod:6457
27808 #, no-wrap
27809 msgid ""
27810 " int\n"
27811 " guestfs_set_verbose (guestfs_h *g,\n"
27812 "                      int verbose);\n"
27813 "\n"
27814 msgstr ""
27815
27816 #. type: textblock
27817 #: ../src/guestfs-actions.pod:6466
27818 msgid ""
27819 "Verbose messages are normally sent to C<stderr>, unless you register a "
27820 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27821 msgstr ""
27822
27823 #. type: =head2
27824 #: ../src/guestfs-actions.pod:6474
27825 msgid "guestfs_setcon"
27826 msgstr ""
27827
27828 #. type: verbatim
27829 #: ../src/guestfs-actions.pod:6476
27830 #, no-wrap
27831 msgid ""
27832 " int\n"
27833 " guestfs_setcon (guestfs_h *g,\n"
27834 "                 const char *context);\n"
27835 "\n"
27836 msgstr ""
27837
27838 #. type: =head2
27839 #: ../src/guestfs-actions.pod:6489
27840 msgid "guestfs_setxattr"
27841 msgstr ""
27842
27843 #. type: verbatim
27844 #: ../src/guestfs-actions.pod:6491
27845 #, no-wrap
27846 msgid ""
27847 " int\n"
27848 " guestfs_setxattr (guestfs_h *g,\n"
27849 "                   const char *xattr,\n"
27850 "                   const char *val,\n"
27851 "                   int vallen,\n"
27852 "                   const char *path);\n"
27853 "\n"
27854 msgstr ""
27855
27856 #. type: textblock
27857 #: ../src/guestfs-actions.pod:6502
27858 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:6508
27863 msgid "guestfs_sfdisk"
27864 msgstr ""
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:6510
27868 #, no-wrap
27869 msgid ""
27870 " int\n"
27871 " guestfs_sfdisk (guestfs_h *g,\n"
27872 "                 const char *device,\n"
27873 "                 int cyls,\n"
27874 "                 int heads,\n"
27875 "                 int sectors,\n"
27876 "                 char *const *lines);\n"
27877 "\n"
27878 msgstr ""
27879
27880 #. type: textblock
27881 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562 ../src/guestfs-actions.pod:6596
27882 msgid ""
27883 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
27884 "call instead."
27885 msgstr ""
27886
27887 #. type: textblock
27888 #: ../src/guestfs-actions.pod:6545
27889 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
27890 msgstr ""
27891
27892 #. type: =head2
27893 #: ../src/guestfs-actions.pod:6555
27894 msgid "guestfs_sfdiskM"
27895 msgstr ""
27896
27897 #. type: verbatim
27898 #: ../src/guestfs-actions.pod:6557
27899 #, no-wrap
27900 msgid ""
27901 " int\n"
27902 " guestfs_sfdiskM (guestfs_h *g,\n"
27903 "                  const char *device,\n"
27904 "                  char *const *lines);\n"
27905 "\n"
27906 msgstr ""
27907
27908 #. type: textblock
27909 #: ../src/guestfs-actions.pod:6569
27910 msgid ""
27911 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
27912 "partition sizes are specified in megabytes only (rounded to the nearest "
27913 "cylinder) and you don't need to specify the cyls, heads and sectors "
27914 "parameters which were rarely if ever used anyway."
27915 msgstr ""
27916
27917 #. type: textblock
27918 #: ../src/guestfs-actions.pod:6575
27919 msgid ""
27920 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
27921 "C<guestfs_part_disk>"
27922 msgstr ""
27923
27924 #. type: =head2
27925 #: ../src/guestfs-actions.pod:6585
27926 msgid "guestfs_sfdisk_N"
27927 msgstr ""
27928
27929 #. type: verbatim
27930 #: ../src/guestfs-actions.pod:6587
27931 #, no-wrap
27932 msgid ""
27933 " int\n"
27934 " guestfs_sfdisk_N (guestfs_h *g,\n"
27935 "                   const char *device,\n"
27936 "                   int partnum,\n"
27937 "                   int cyls,\n"
27938 "                   int heads,\n"
27939 "                   int sectors,\n"
27940 "                   const char *line);\n"
27941 "\n"
27942 msgstr ""
27943
27944 #. type: textblock
27945 #: ../src/guestfs-actions.pod:6606
27946 msgid ""
27947 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
27948 "for the cyls/heads/sectors parameters."
27949 msgstr ""
27950
27951 #. type: textblock
27952 #: ../src/guestfs-actions.pod:6609
27953 msgid "See also: C<guestfs_part_add>"
27954 msgstr ""
27955
27956 #. type: =head2
27957 #: ../src/guestfs-actions.pod:6618
27958 msgid "guestfs_sfdisk_disk_geometry"
27959 msgstr ""
27960
27961 #. type: verbatim
27962 #: ../src/guestfs-actions.pod:6620
27963 #, no-wrap
27964 msgid ""
27965 " char *\n"
27966 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
27967 "                               const char *device);\n"
27968 "\n"
27969 msgstr ""
27970
27971 #. type: textblock
27972 #: ../src/guestfs-actions.pod:6624
27973 msgid ""
27974 "This displays the disk geometry of C<device> read from the partition table.  "
27975 "Especially in the case where the underlying block device has been resized, "
27976 "this can be different from the kernel's idea of the geometry (see "
27977 "C<guestfs_sfdisk_kernel_geometry>)."
27978 msgstr ""
27979
27980 #. type: =head2
27981 #: ../src/guestfs-actions.pod:6637
27982 msgid "guestfs_sfdisk_kernel_geometry"
27983 msgstr ""
27984
27985 #. type: verbatim
27986 #: ../src/guestfs-actions.pod:6639
27987 #, no-wrap
27988 msgid ""
27989 " char *\n"
27990 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
27991 "                                 const char *device);\n"
27992 "\n"
27993 msgstr ""
27994
27995 #. type: =head2
27996 #: ../src/guestfs-actions.pod:6653
27997 msgid "guestfs_sfdisk_l"
27998 msgstr ""
27999
28000 #. type: verbatim
28001 #: ../src/guestfs-actions.pod:6655
28002 #, no-wrap
28003 msgid ""
28004 " char *\n"
28005 " guestfs_sfdisk_l (guestfs_h *g,\n"
28006 "                   const char *device);\n"
28007 "\n"
28008 msgstr ""
28009
28010 #. type: textblock
28011 #: ../src/guestfs-actions.pod:6659
28012 msgid ""
28013 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
28014 "call instead."
28015 msgstr ""
28016
28017 #. type: textblock
28018 #: ../src/guestfs-actions.pod:6670
28019 msgid "See also: C<guestfs_part_list>"
28020 msgstr ""
28021
28022 #. type: =head2
28023 #: ../src/guestfs-actions.pod:6677
28024 msgid "guestfs_sh"
28025 msgstr ""
28026
28027 #. type: verbatim
28028 #: ../src/guestfs-actions.pod:6679
28029 #, no-wrap
28030 msgid ""
28031 " char *\n"
28032 " guestfs_sh (guestfs_h *g,\n"
28033 "             const char *command);\n"
28034 "\n"
28035 msgstr ""
28036
28037 #. type: textblock
28038 #: ../src/guestfs-actions.pod:6686
28039 msgid "This is like C<guestfs_command>, but passes the command to:"
28040 msgstr ""
28041
28042 #. type: textblock
28043 #: ../src/guestfs-actions.pod:6694
28044 msgid "All the provisos about C<guestfs_command> apply to this call."
28045 msgstr ""
28046
28047 #. type: =head2
28048 #: ../src/guestfs-actions.pod:6701
28049 msgid "guestfs_sh_lines"
28050 msgstr ""
28051
28052 #. type: verbatim
28053 #: ../src/guestfs-actions.pod:6703
28054 #, no-wrap
28055 msgid ""
28056 " char **\n"
28057 " guestfs_sh_lines (guestfs_h *g,\n"
28058 "                   const char *command);\n"
28059 "\n"
28060 msgstr ""
28061
28062 #. type: textblock
28063 #: ../src/guestfs-actions.pod:6707
28064 msgid ""
28065 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28066 "lines."
28067 msgstr ""
28068
28069 #. type: textblock
28070 #: ../src/guestfs-actions.pod:6710
28071 msgid "See also: C<guestfs_command_lines>"
28072 msgstr ""
28073
28074 #. type: =head2
28075 #: ../src/guestfs-actions.pod:6718
28076 msgid "guestfs_sleep"
28077 msgstr ""
28078
28079 #. type: verbatim
28080 #: ../src/guestfs-actions.pod:6720
28081 #, no-wrap
28082 msgid ""
28083 " int\n"
28084 " guestfs_sleep (guestfs_h *g,\n"
28085 "                int secs);\n"
28086 "\n"
28087 msgstr ""
28088
28089 #. type: textblock
28090 #: ../src/guestfs-actions.pod:6728
28091 msgid "(Added in 1.0.41)"
28092 msgstr ""
28093
28094 #. type: =head2
28095 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
28096 msgid "guestfs_stat"
28097 msgstr ""
28098
28099 #. type: verbatim
28100 #: ../src/guestfs-actions.pod:6732
28101 #, no-wrap
28102 msgid ""
28103 " struct guestfs_stat *\n"
28104 " guestfs_stat (guestfs_h *g,\n"
28105 "               const char *path);\n"
28106 "\n"
28107 msgstr ""
28108
28109 #. type: =head2
28110 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
28111 msgid "guestfs_statvfs"
28112 msgstr ""
28113
28114 #. type: verbatim
28115 #: ../src/guestfs-actions.pod:6748
28116 #, no-wrap
28117 msgid ""
28118 " struct guestfs_statvfs *\n"
28119 " guestfs_statvfs (guestfs_h *g,\n"
28120 "                  const char *path);\n"
28121 "\n"
28122 msgstr ""
28123
28124 #. type: textblock
28125 #: ../src/guestfs-actions.pod:6758
28126 msgid ""
28127 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28128 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28129 msgstr ""
28130
28131 #. type: =head2
28132 #: ../src/guestfs-actions.pod:6764
28133 msgid "guestfs_strings"
28134 msgstr ""
28135
28136 #. type: verbatim
28137 #: ../src/guestfs-actions.pod:6766
28138 #, no-wrap
28139 msgid ""
28140 " char **\n"
28141 " guestfs_strings (guestfs_h *g,\n"
28142 "                  const char *path);\n"
28143 "\n"
28144 msgstr ""
28145
28146 #. type: =head2
28147 #: ../src/guestfs-actions.pod:6782
28148 msgid "guestfs_strings_e"
28149 msgstr ""
28150
28151 #. type: verbatim
28152 #: ../src/guestfs-actions.pod:6784
28153 #, no-wrap
28154 msgid ""
28155 " char **\n"
28156 " guestfs_strings_e (guestfs_h *g,\n"
28157 "                    const char *encoding,\n"
28158 "                    const char *path);\n"
28159 "\n"
28160 msgstr ""
28161
28162 #. type: textblock
28163 #: ../src/guestfs-actions.pod:6789
28164 msgid ""
28165 "This is like the C<guestfs_strings> command, but allows you to specify the "
28166 "encoding of strings that are looked for in the source file C<path>."
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:6799
28171 msgid ""
28172 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28173 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28174 msgstr ""
28175
28176 #. type: =head2
28177 #: ../src/guestfs-actions.pod:6837
28178 msgid "guestfs_swapoff_device"
28179 msgstr ""
28180
28181 #. type: verbatim
28182 #: ../src/guestfs-actions.pod:6839
28183 #, no-wrap
28184 msgid ""
28185 " int\n"
28186 " guestfs_swapoff_device (guestfs_h *g,\n"
28187 "                         const char *device);\n"
28188 "\n"
28189 msgstr ""
28190
28191 #. type: textblock
28192 #: ../src/guestfs-actions.pod:6843
28193 msgid ""
28194 "This command disables the libguestfs appliance swap device or partition "
28195 "named C<device>.  See C<guestfs_swapon_device>."
28196 msgstr ""
28197
28198 #. type: =head2
28199 #: ../src/guestfs-actions.pod:6851
28200 msgid "guestfs_swapoff_file"
28201 msgstr ""
28202
28203 #. type: verbatim
28204 #: ../src/guestfs-actions.pod:6853
28205 #, no-wrap
28206 msgid ""
28207 " int\n"
28208 " guestfs_swapoff_file (guestfs_h *g,\n"
28209 "                       const char *file);\n"
28210 "\n"
28211 msgstr ""
28212
28213 #. type: =head2
28214 #: ../src/guestfs-actions.pod:6863
28215 msgid "guestfs_swapoff_label"
28216 msgstr ""
28217
28218 #. type: verbatim
28219 #: ../src/guestfs-actions.pod:6865
28220 #, no-wrap
28221 msgid ""
28222 " int\n"
28223 " guestfs_swapoff_label (guestfs_h *g,\n"
28224 "                        const char *label);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:6876
28230 msgid "guestfs_swapoff_uuid"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:6878
28235 #, no-wrap
28236 msgid ""
28237 " int\n"
28238 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28239 "                       const char *uuid);\n"
28240 "\n"
28241 msgstr ""
28242
28243 #. type: =head2
28244 #: ../src/guestfs-actions.pod:6889
28245 msgid "guestfs_swapon_device"
28246 msgstr ""
28247
28248 #. type: verbatim
28249 #: ../src/guestfs-actions.pod:6891
28250 #, no-wrap
28251 msgid ""
28252 " int\n"
28253 " guestfs_swapon_device (guestfs_h *g,\n"
28254 "                        const char *device);\n"
28255 "\n"
28256 msgstr ""
28257
28258 #. type: textblock
28259 #: ../src/guestfs-actions.pod:6895
28260 msgid ""
28261 "This command enables the libguestfs appliance to use the swap device or "
28262 "partition named C<device>.  The increased memory is made available for all "
28263 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28264 msgstr ""
28265
28266 #. type: =head2
28267 #: ../src/guestfs-actions.pod:6911
28268 msgid "guestfs_swapon_file"
28269 msgstr ""
28270
28271 #. type: verbatim
28272 #: ../src/guestfs-actions.pod:6913
28273 #, no-wrap
28274 msgid ""
28275 " int\n"
28276 " guestfs_swapon_file (guestfs_h *g,\n"
28277 "                      const char *file);\n"
28278 "\n"
28279 msgstr ""
28280
28281 #. type: textblock
28282 #: ../src/guestfs-actions.pod:6917
28283 msgid ""
28284 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28285 "notes."
28286 msgstr ""
28287
28288 #. type: =head2
28289 #: ../src/guestfs-actions.pod:6924
28290 msgid "guestfs_swapon_label"
28291 msgstr ""
28292
28293 #. type: verbatim
28294 #: ../src/guestfs-actions.pod:6926
28295 #, no-wrap
28296 msgid ""
28297 " int\n"
28298 " guestfs_swapon_label (guestfs_h *g,\n"
28299 "                       const char *label);\n"
28300 "\n"
28301 msgstr ""
28302
28303 #. type: textblock
28304 #: ../src/guestfs-actions.pod:6930
28305 msgid ""
28306 "This command enables swap to a labeled swap partition.  See "
28307 "C<guestfs_swapon_device> for other notes."
28308 msgstr ""
28309
28310 #. type: =head2
28311 #: ../src/guestfs-actions.pod:6937
28312 msgid "guestfs_swapon_uuid"
28313 msgstr ""
28314
28315 #. type: verbatim
28316 #: ../src/guestfs-actions.pod:6939
28317 #, no-wrap
28318 msgid ""
28319 " int\n"
28320 " guestfs_swapon_uuid (guestfs_h *g,\n"
28321 "                      const char *uuid);\n"
28322 "\n"
28323 msgstr ""
28324
28325 #. type: textblock
28326 #: ../src/guestfs-actions.pod:6943
28327 msgid ""
28328 "This command enables swap to a swap partition with the given UUID.  See "
28329 "C<guestfs_swapon_device> for other notes."
28330 msgstr ""
28331
28332 #. type: =head2
28333 #: ../src/guestfs-actions.pod:6950
28334 msgid "guestfs_sync"
28335 msgstr ""
28336
28337 #. type: verbatim
28338 #: ../src/guestfs-actions.pod:6952
28339 #, no-wrap
28340 msgid ""
28341 " int\n"
28342 " guestfs_sync (guestfs_h *g);\n"
28343 "\n"
28344 msgstr ""
28345
28346 #. type: =head2
28347 #: ../src/guestfs-actions.pod:6965
28348 msgid "guestfs_tail"
28349 msgstr ""
28350
28351 #. type: verbatim
28352 #: ../src/guestfs-actions.pod:6967
28353 #, no-wrap
28354 msgid ""
28355 " char **\n"
28356 " guestfs_tail (guestfs_h *g,\n"
28357 "               const char *path);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: =head2
28362 #: ../src/guestfs-actions.pod:6983
28363 msgid "guestfs_tail_n"
28364 msgstr ""
28365
28366 #. type: verbatim
28367 #: ../src/guestfs-actions.pod:6985
28368 #, no-wrap
28369 msgid ""
28370 " char **\n"
28371 " guestfs_tail_n (guestfs_h *g,\n"
28372 "                 int nrlines,\n"
28373 "                 const char *path);\n"
28374 "\n"
28375 msgstr ""
28376
28377 #. type: =head2
28378 #: ../src/guestfs-actions.pod:7007
28379 msgid "guestfs_tar_in"
28380 msgstr ""
28381
28382 #. type: verbatim
28383 #: ../src/guestfs-actions.pod:7009
28384 #, no-wrap
28385 msgid ""
28386 " int\n"
28387 " guestfs_tar_in (guestfs_h *g,\n"
28388 "                 const char *tarfile,\n"
28389 "                 const char *directory);\n"
28390 "\n"
28391 msgstr ""
28392
28393 #. type: textblock
28394 #: ../src/guestfs-actions.pod:7017
28395 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
28396 msgstr ""
28397
28398 #. type: textblock
28399 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
28400 msgid "(Added in 1.0.3)"
28401 msgstr ""
28402
28403 #. type: =head2
28404 #: ../src/guestfs-actions.pod:7024
28405 msgid "guestfs_tar_out"
28406 msgstr ""
28407
28408 #. type: verbatim
28409 #: ../src/guestfs-actions.pod:7026
28410 #, no-wrap
28411 msgid ""
28412 " int\n"
28413 " guestfs_tar_out (guestfs_h *g,\n"
28414 "                  const char *directory,\n"
28415 "                  const char *tarfile);\n"
28416 "\n"
28417 msgstr ""
28418
28419 #. type: textblock
28420 #: ../src/guestfs-actions.pod:7034
28421 msgid ""
28422 "To download a compressed tarball, use C<guestfs_tgz_out> or "
28423 "C<guestfs_txz_out>."
28424 msgstr ""
28425
28426 #. type: =head2
28427 #: ../src/guestfs-actions.pod:7041
28428 msgid "guestfs_tgz_in"
28429 msgstr ""
28430
28431 #. type: verbatim
28432 #: ../src/guestfs-actions.pod:7043
28433 #, no-wrap
28434 msgid ""
28435 " int\n"
28436 " guestfs_tgz_in (guestfs_h *g,\n"
28437 "                 const char *tarball,\n"
28438 "                 const char *directory);\n"
28439 "\n"
28440 msgstr ""
28441
28442 #. type: textblock
28443 #: ../src/guestfs-actions.pod:7051
28444 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
28445 msgstr ""
28446
28447 #. type: =head2
28448 #: ../src/guestfs-actions.pod:7057
28449 msgid "guestfs_tgz_out"
28450 msgstr ""
28451
28452 #. type: verbatim
28453 #: ../src/guestfs-actions.pod:7059
28454 #, no-wrap
28455 msgid ""
28456 " int\n"
28457 " guestfs_tgz_out (guestfs_h *g,\n"
28458 "                  const char *directory,\n"
28459 "                  const char *tarball);\n"
28460 "\n"
28461 msgstr ""
28462
28463 #. type: textblock
28464 #: ../src/guestfs-actions.pod:7067
28465 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
28466 msgstr ""
28467
28468 #. type: =head2
28469 #: ../src/guestfs-actions.pod:7073
28470 msgid "guestfs_touch"
28471 msgstr ""
28472
28473 #. type: verbatim
28474 #: ../src/guestfs-actions.pod:7075
28475 #, no-wrap
28476 msgid ""
28477 " int\n"
28478 " guestfs_touch (guestfs_h *g,\n"
28479 "                const char *path);\n"
28480 "\n"
28481 msgstr ""
28482
28483 #. type: =head2
28484 #: ../src/guestfs-actions.pod:7090
28485 msgid "guestfs_truncate"
28486 msgstr ""
28487
28488 #. type: verbatim
28489 #: ../src/guestfs-actions.pod:7092
28490 #, no-wrap
28491 msgid ""
28492 " int\n"
28493 " guestfs_truncate (guestfs_h *g,\n"
28494 "                   const char *path);\n"
28495 "\n"
28496 msgstr ""
28497
28498 #. type: =head2
28499 #: ../src/guestfs-actions.pod:7103
28500 msgid "guestfs_truncate_size"
28501 msgstr ""
28502
28503 #. type: verbatim
28504 #: ../src/guestfs-actions.pod:7105
28505 #, no-wrap
28506 msgid ""
28507 " int\n"
28508 " guestfs_truncate_size (guestfs_h *g,\n"
28509 "                        const char *path,\n"
28510 "                        int64_t size);\n"
28511 "\n"
28512 msgstr ""
28513
28514 #. type: textblock
28515 #: ../src/guestfs-actions.pod:7113
28516 msgid ""
28517 "If the current file size is less than C<size> then the file is extended to "
28518 "the required size with zero bytes.  This creates a sparse file (ie. disk "
28519 "blocks are not allocated for the file until you write to it).  To create a "
28520 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
28521 msgstr ""
28522
28523 #. type: =head2
28524 #: ../src/guestfs-actions.pod:7123
28525 msgid "guestfs_tune2fs_l"
28526 msgstr ""
28527
28528 #. type: verbatim
28529 #: ../src/guestfs-actions.pod:7125
28530 #, no-wrap
28531 msgid ""
28532 " char **\n"
28533 " guestfs_tune2fs_l (guestfs_h *g,\n"
28534 "                    const char *device);\n"
28535 "\n"
28536 msgstr ""
28537
28538 #. type: =head2
28539 #: ../src/guestfs-actions.pod:7145
28540 msgid "guestfs_txz_in"
28541 msgstr ""
28542
28543 #. type: verbatim
28544 #: ../src/guestfs-actions.pod:7147
28545 #, no-wrap
28546 msgid ""
28547 " int\n"
28548 " guestfs_txz_in (guestfs_h *g,\n"
28549 "                 const char *tarball,\n"
28550 "                 const char *directory);\n"
28551 "\n"
28552 msgstr ""
28553
28554 #. type: =head2
28555 #: ../src/guestfs-actions.pod:7159
28556 msgid "guestfs_txz_out"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../src/guestfs-actions.pod:7161
28561 #, no-wrap
28562 msgid ""
28563 " int\n"
28564 " guestfs_txz_out (guestfs_h *g,\n"
28565 "                  const char *directory,\n"
28566 "                  const char *tarball);\n"
28567 "\n"
28568 msgstr ""
28569
28570 #. type: =head2
28571 #: ../src/guestfs-actions.pod:7173
28572 msgid "guestfs_umask"
28573 msgstr ""
28574
28575 #. type: verbatim
28576 #: ../src/guestfs-actions.pod:7175
28577 #, no-wrap
28578 msgid ""
28579 " int\n"
28580 " guestfs_umask (guestfs_h *g,\n"
28581 "                int mask);\n"
28582 "\n"
28583 msgstr ""
28584
28585 #. type: textblock
28586 #: ../src/guestfs-actions.pod:7191
28587 msgid ""
28588 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
28589 "C<guestfs_mkdir>."
28590 msgstr ""
28591
28592 #. type: =head2
28593 #: ../src/guestfs-actions.pod:7200
28594 msgid "guestfs_umount"
28595 msgstr ""
28596
28597 #. type: verbatim
28598 #: ../src/guestfs-actions.pod:7202
28599 #, no-wrap
28600 msgid ""
28601 " int\n"
28602 " guestfs_umount (guestfs_h *g,\n"
28603 "                 const char *pathordevice);\n"
28604 "\n"
28605 msgstr ""
28606
28607 #. type: =head2
28608 #: ../src/guestfs-actions.pod:7214
28609 msgid "guestfs_umount_all"
28610 msgstr ""
28611
28612 #. type: verbatim
28613 #: ../src/guestfs-actions.pod:7216
28614 #, no-wrap
28615 msgid ""
28616 " int\n"
28617 " guestfs_umount_all (guestfs_h *g);\n"
28618 "\n"
28619 msgstr ""
28620
28621 #. type: =head2
28622 #: ../src/guestfs-actions.pod:7227
28623 msgid "guestfs_upload"
28624 msgstr ""
28625
28626 #. type: verbatim
28627 #: ../src/guestfs-actions.pod:7229
28628 #, no-wrap
28629 msgid ""
28630 " int\n"
28631 " guestfs_upload (guestfs_h *g,\n"
28632 "                 const char *filename,\n"
28633 "                 const char *remotefilename);\n"
28634 "\n"
28635 msgstr ""
28636
28637 #. type: textblock
28638 #: ../src/guestfs-actions.pod:7239
28639 msgid "See also C<guestfs_download>."
28640 msgstr ""
28641
28642 #. type: =head2
28643 #: ../src/guestfs-actions.pod:7250
28644 msgid "guestfs_upload_offset"
28645 msgstr ""
28646
28647 #. type: verbatim
28648 #: ../src/guestfs-actions.pod:7252
28649 #, no-wrap
28650 msgid ""
28651 " int\n"
28652 " guestfs_upload_offset (guestfs_h *g,\n"
28653 "                        const char *filename,\n"
28654 "                        const char *remotefilename,\n"
28655 "                        int64_t offset);\n"
28656 "\n"
28657 msgstr ""
28658
28659 #. type: textblock
28660 #: ../src/guestfs-actions.pod:7268
28661 msgid ""
28662 "Note that there is no limit on the amount of data that can be uploaded with "
28663 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
28664 "full amount unless an error occurs."
28665 msgstr ""
28666
28667 #. type: textblock
28668 #: ../src/guestfs-actions.pod:7273
28669 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
28670 msgstr ""
28671
28672 #. type: =head2
28673 #: ../src/guestfs-actions.pod:7284
28674 msgid "guestfs_utimens"
28675 msgstr ""
28676
28677 #. type: verbatim
28678 #: ../src/guestfs-actions.pod:7286
28679 #, no-wrap
28680 msgid ""
28681 " int\n"
28682 " guestfs_utimens (guestfs_h *g,\n"
28683 "                  const char *path,\n"
28684 "                  int64_t atsecs,\n"
28685 "                  int64_t atnsecs,\n"
28686 "                  int64_t mtsecs,\n"
28687 "                  int64_t mtnsecs);\n"
28688 "\n"
28689 msgstr ""
28690
28691 #. type: =head2
28692 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
28693 msgid "guestfs_version"
28694 msgstr ""
28695
28696 #. type: verbatim
28697 #: ../src/guestfs-actions.pod:7317
28698 #, no-wrap
28699 msgid ""
28700 " struct guestfs_version *\n"
28701 " guestfs_version (guestfs_h *g);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:7345
28707 msgid ""
28708 "I<Note:> Don't use this call to test for availability of features.  In "
28709 "enterprise distributions we backport features from later versions into "
28710 "earlier versions, making this an unreliable way to test for features.  Use "
28711 "C<guestfs_available> instead."
28712 msgstr ""
28713
28714 #. type: textblock
28715 #: ../src/guestfs-actions.pod:7351
28716 msgid ""
28717 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
28718 "error.  I<The caller must call C<guestfs_free_version> after use>."
28719 msgstr ""
28720
28721 #. type: textblock
28722 #: ../src/guestfs-actions.pod:7355
28723 msgid "(Added in 1.0.58)"
28724 msgstr ""
28725
28726 #. type: =head2
28727 #: ../src/guestfs-actions.pod:7357
28728 msgid "guestfs_vfs_label"
28729 msgstr ""
28730
28731 #. type: verbatim
28732 #: ../src/guestfs-actions.pod:7359
28733 #, no-wrap
28734 msgid ""
28735 " char *\n"
28736 " guestfs_vfs_label (guestfs_h *g,\n"
28737 "                    const char *device);\n"
28738 "\n"
28739 msgstr ""
28740
28741 #. type: textblock
28742 #: ../src/guestfs-actions.pod:7368
28743 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
28744 msgstr ""
28745
28746 #. type: textblock
28747 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
28748 msgid "(Added in 1.3.18)"
28749 msgstr ""
28750
28751 #. type: =head2
28752 #: ../src/guestfs-actions.pod:7375
28753 msgid "guestfs_vfs_type"
28754 msgstr ""
28755
28756 #. type: verbatim
28757 #: ../src/guestfs-actions.pod:7377
28758 #, no-wrap
28759 msgid ""
28760 " char *\n"
28761 " guestfs_vfs_type (guestfs_h *g,\n"
28762 "                   const char *device);\n"
28763 "\n"
28764 msgstr ""
28765
28766 #. type: =head2
28767 #: ../src/guestfs-actions.pod:7394
28768 msgid "guestfs_vfs_uuid"
28769 msgstr ""
28770
28771 #. type: verbatim
28772 #: ../src/guestfs-actions.pod:7396
28773 #, no-wrap
28774 msgid ""
28775 " char *\n"
28776 " guestfs_vfs_uuid (guestfs_h *g,\n"
28777 "                   const char *device);\n"
28778 "\n"
28779 msgstr ""
28780
28781 #. type: textblock
28782 #: ../src/guestfs-actions.pod:7405
28783 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
28784 msgstr ""
28785
28786 #. type: =head2
28787 #: ../src/guestfs-actions.pod:7412
28788 msgid "guestfs_vg_activate"
28789 msgstr ""
28790
28791 #. type: verbatim
28792 #: ../src/guestfs-actions.pod:7414
28793 #, no-wrap
28794 msgid ""
28795 " int\n"
28796 " guestfs_vg_activate (guestfs_h *g,\n"
28797 "                      int activate,\n"
28798 "                      char *const *volgroups);\n"
28799 "\n"
28800 msgstr ""
28801
28802 #. type: =head2
28803 #: ../src/guestfs-actions.pod:7431
28804 msgid "guestfs_vg_activate_all"
28805 msgstr ""
28806
28807 #. type: verbatim
28808 #: ../src/guestfs-actions.pod:7433
28809 #, no-wrap
28810 msgid ""
28811 " int\n"
28812 " guestfs_vg_activate_all (guestfs_h *g,\n"
28813 "                          int activate);\n"
28814 "\n"
28815 msgstr ""
28816
28817 #. type: =head2
28818 #: ../src/guestfs-actions.pod:7446
28819 msgid "guestfs_vgcreate"
28820 msgstr ""
28821
28822 #. type: verbatim
28823 #: ../src/guestfs-actions.pod:7448
28824 #, no-wrap
28825 msgid ""
28826 " int\n"
28827 " guestfs_vgcreate (guestfs_h *g,\n"
28828 "                   const char *volgroup,\n"
28829 "                   char *const *physvols);\n"
28830 "\n"
28831 msgstr ""
28832
28833 #. type: =head2
28834 #: ../src/guestfs-actions.pod:7460
28835 msgid "guestfs_vglvuuids"
28836 msgstr ""
28837
28838 #. type: verbatim
28839 #: ../src/guestfs-actions.pod:7462
28840 #, no-wrap
28841 msgid ""
28842 " char **\n"
28843 " guestfs_vglvuuids (guestfs_h *g,\n"
28844 "                    const char *vgname);\n"
28845 "\n"
28846 msgstr ""
28847
28848 #. type: textblock
28849 #: ../src/guestfs-actions.pod:7469
28850 msgid ""
28851 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
28852 "associate logical volumes and volume groups."
28853 msgstr ""
28854
28855 #. type: textblock
28856 #: ../src/guestfs-actions.pod:7472
28857 msgid "See also C<guestfs_vgpvuuids>."
28858 msgstr ""
28859
28860 #. type: =head2
28861 #: ../src/guestfs-actions.pod:7480
28862 msgid "guestfs_vgpvuuids"
28863 msgstr ""
28864
28865 #. type: verbatim
28866 #: ../src/guestfs-actions.pod:7482
28867 #, no-wrap
28868 msgid ""
28869 " char **\n"
28870 " guestfs_vgpvuuids (guestfs_h *g,\n"
28871 "                    const char *vgname);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../src/guestfs-actions.pod:7489
28877 msgid ""
28878 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
28879 "associate physical volumes and volume groups."
28880 msgstr ""
28881
28882 #. type: textblock
28883 #: ../src/guestfs-actions.pod:7492
28884 msgid "See also C<guestfs_vglvuuids>."
28885 msgstr ""
28886
28887 #. type: =head2
28888 #: ../src/guestfs-actions.pod:7500
28889 msgid "guestfs_vgremove"
28890 msgstr ""
28891
28892 #. type: verbatim
28893 #: ../src/guestfs-actions.pod:7502
28894 #, no-wrap
28895 msgid ""
28896 " int\n"
28897 " guestfs_vgremove (guestfs_h *g,\n"
28898 "                   const char *vgname);\n"
28899 "\n"
28900 msgstr ""
28901
28902 #. type: =head2
28903 #: ../src/guestfs-actions.pod:7515
28904 msgid "guestfs_vgrename"
28905 msgstr ""
28906
28907 #. type: verbatim
28908 #: ../src/guestfs-actions.pod:7517
28909 #, no-wrap
28910 msgid ""
28911 " int\n"
28912 " guestfs_vgrename (guestfs_h *g,\n"
28913 "                   const char *volgroup,\n"
28914 "                   const char *newvolgroup);\n"
28915 "\n"
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:7528
28920 msgid "guestfs_vgs"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:7530
28925 #, no-wrap
28926 msgid ""
28927 " char **\n"
28928 " guestfs_vgs (guestfs_h *g);\n"
28929 "\n"
28930 msgstr ""
28931
28932 #. type: textblock
28933 #: ../src/guestfs-actions.pod:7539
28934 msgid "See also C<guestfs_vgs_full>."
28935 msgstr ""
28936
28937 #. type: =head2
28938 #: ../src/guestfs-actions.pod:7547
28939 msgid "guestfs_vgs_full"
28940 msgstr ""
28941
28942 #. type: verbatim
28943 #: ../src/guestfs-actions.pod:7549
28944 #, no-wrap
28945 msgid ""
28946 " struct guestfs_lvm_vg_list *\n"
28947 " guestfs_vgs_full (guestfs_h *g);\n"
28948 "\n"
28949 msgstr ""
28950
28951 #. type: textblock
28952 #: ../src/guestfs-actions.pod:7555
28953 msgid ""
28954 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
28955 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
28956 "use>."
28957 msgstr ""
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:7561
28961 msgid "guestfs_vgscan"
28962 msgstr ""
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:7563
28966 #, no-wrap
28967 msgid ""
28968 " int\n"
28969 " guestfs_vgscan (guestfs_h *g);\n"
28970 "\n"
28971 msgstr ""
28972
28973 #. type: =head2
28974 #: ../src/guestfs-actions.pod:7573
28975 msgid "guestfs_vguuid"
28976 msgstr ""
28977
28978 #. type: verbatim
28979 #: ../src/guestfs-actions.pod:7575
28980 #, no-wrap
28981 msgid ""
28982 " char *\n"
28983 " guestfs_vguuid (guestfs_h *g,\n"
28984 "                 const char *vgname);\n"
28985 "\n"
28986 msgstr ""
28987
28988 #. type: =head2
28989 #: ../src/guestfs-actions.pod:7586
28990 msgid "guestfs_wait_ready"
28991 msgstr ""
28992
28993 #. type: verbatim
28994 #: ../src/guestfs-actions.pod:7588
28995 #, no-wrap
28996 msgid ""
28997 " int\n"
28998 " guestfs_wait_ready (guestfs_h *g);\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: textblock
29003 #: ../src/guestfs-actions.pod:7591
29004 msgid ""
29005 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
29006 "instead."
29007 msgstr ""
29008
29009 #. type: textblock
29010 #: ../src/guestfs-actions.pod:7598
29011 msgid "This function is a no op."
29012 msgstr ""
29013
29014 #. type: textblock
29015 #: ../src/guestfs-actions.pod:7600
29016 msgid ""
29017 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
29018 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
29019 "is no longer necessary because C<guestfs_launch> now does the waiting."
29020 msgstr ""
29021
29022 #. type: textblock
29023 #: ../src/guestfs-actions.pod:7605
29024 msgid ""
29025 "If you see any calls to this function in code then you can just remove them, "
29026 "unless you want to retain compatibility with older versions of the API."
29027 msgstr ""
29028
29029 #. type: =head2
29030 #: ../src/guestfs-actions.pod:7613
29031 msgid "guestfs_wc_c"
29032 msgstr ""
29033
29034 #. type: verbatim
29035 #: ../src/guestfs-actions.pod:7615
29036 #, no-wrap
29037 msgid ""
29038 " int\n"
29039 " guestfs_wc_c (guestfs_h *g,\n"
29040 "               const char *path);\n"
29041 "\n"
29042 msgstr ""
29043
29044 #. type: =head2
29045 #: ../src/guestfs-actions.pod:7626
29046 msgid "guestfs_wc_l"
29047 msgstr ""
29048
29049 #. type: verbatim
29050 #: ../src/guestfs-actions.pod:7628
29051 #, no-wrap
29052 msgid ""
29053 " int\n"
29054 " guestfs_wc_l (guestfs_h *g,\n"
29055 "               const char *path);\n"
29056 "\n"
29057 msgstr ""
29058
29059 #. type: =head2
29060 #: ../src/guestfs-actions.pod:7639
29061 msgid "guestfs_wc_w"
29062 msgstr ""
29063
29064 #. type: verbatim
29065 #: ../src/guestfs-actions.pod:7641
29066 #, no-wrap
29067 msgid ""
29068 " int\n"
29069 " guestfs_wc_w (guestfs_h *g,\n"
29070 "               const char *path);\n"
29071 "\n"
29072 msgstr ""
29073
29074 #. type: =head2
29075 #: ../src/guestfs-actions.pod:7652
29076 msgid "guestfs_write"
29077 msgstr ""
29078
29079 #. type: verbatim
29080 #: ../src/guestfs-actions.pod:7654
29081 #, no-wrap
29082 msgid ""
29083 " int\n"
29084 " guestfs_write (guestfs_h *g,\n"
29085 "                const char *path,\n"
29086 "                const char *content,\n"
29087 "                size_t content_size);\n"
29088 "\n"
29089 msgstr ""
29090
29091 #. type: textblock
29092 #: ../src/guestfs-actions.pod:7663
29093 msgid "See also C<guestfs_write_append>."
29094 msgstr ""
29095
29096 #. type: =head2
29097 #: ../src/guestfs-actions.pod:7672
29098 msgid "guestfs_write_append"
29099 msgstr ""
29100
29101 #. type: verbatim
29102 #: ../src/guestfs-actions.pod:7674
29103 #, no-wrap
29104 msgid ""
29105 " int\n"
29106 " guestfs_write_append (guestfs_h *g,\n"
29107 "                       const char *path,\n"
29108 "                       const char *content,\n"
29109 "                       size_t content_size);\n"
29110 "\n"
29111 msgstr ""
29112
29113 #. type: textblock
29114 #: ../src/guestfs-actions.pod:7683
29115 msgid "See also C<guestfs_write>."
29116 msgstr ""
29117
29118 #. type: =head2
29119 #: ../src/guestfs-actions.pod:7692
29120 msgid "guestfs_write_file"
29121 msgstr ""
29122
29123 #. type: verbatim
29124 #: ../src/guestfs-actions.pod:7694
29125 #, no-wrap
29126 msgid ""
29127 " int\n"
29128 " guestfs_write_file (guestfs_h *g,\n"
29129 "                     const char *path,\n"
29130 "                     const char *content,\n"
29131 "                     int size);\n"
29132 "\n"
29133 msgstr ""
29134
29135 #. type: textblock
29136 #: ../src/guestfs-actions.pod:7700
29137 msgid ""
29138 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
29139 "instead."
29140 msgstr ""
29141
29142 #. type: =head2
29143 #: ../src/guestfs-actions.pod:7725
29144 msgid "guestfs_zegrep"
29145 msgstr ""
29146
29147 #. type: verbatim
29148 #: ../src/guestfs-actions.pod:7727
29149 #, no-wrap
29150 msgid ""
29151 " char **\n"
29152 " guestfs_zegrep (guestfs_h *g,\n"
29153 "                 const char *regex,\n"
29154 "                 const char *path);\n"
29155 "\n"
29156 msgstr ""
29157
29158 #. type: =head2
29159 #: ../src/guestfs-actions.pod:7744
29160 msgid "guestfs_zegrepi"
29161 msgstr ""
29162
29163 #. type: verbatim
29164 #: ../src/guestfs-actions.pod:7746
29165 #, no-wrap
29166 msgid ""
29167 " char **\n"
29168 " guestfs_zegrepi (guestfs_h *g,\n"
29169 "                  const char *regex,\n"
29170 "                  const char *path);\n"
29171 "\n"
29172 msgstr ""
29173
29174 #. type: =head2
29175 #: ../src/guestfs-actions.pod:7763
29176 msgid "guestfs_zero"
29177 msgstr ""
29178
29179 #. type: verbatim
29180 #: ../src/guestfs-actions.pod:7765
29181 #, no-wrap
29182 msgid ""
29183 " int\n"
29184 " guestfs_zero (guestfs_h *g,\n"
29185 "               const char *device);\n"
29186 "\n"
29187 msgstr ""
29188
29189 #. type: textblock
29190 #: ../src/guestfs-actions.pod:7779
29191 msgid ""
29192 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29193 "C<guestfs_is_zero_device>"
29194 msgstr ""
29195
29196 #. type: =head2
29197 #: ../src/guestfs-actions.pod:7791
29198 msgid "guestfs_zero_device"
29199 msgstr ""
29200
29201 #. type: verbatim
29202 #: ../src/guestfs-actions.pod:7793
29203 #, no-wrap
29204 msgid ""
29205 " int\n"
29206 " guestfs_zero_device (guestfs_h *g,\n"
29207 "                      const char *device);\n"
29208 "\n"
29209 msgstr ""
29210
29211 #. type: textblock
29212 #: ../src/guestfs-actions.pod:7797
29213 msgid ""
29214 "This command writes zeroes over the entire C<device>.  Compare with "
29215 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29216 msgstr ""
29217
29218 #. type: textblock
29219 #: ../src/guestfs-actions.pod:7815
29220 msgid "(Added in 1.3.1)"
29221 msgstr ""
29222
29223 #. type: =head2
29224 #: ../src/guestfs-actions.pod:7817
29225 msgid "guestfs_zerofree"
29226 msgstr ""
29227
29228 #. type: verbatim
29229 #: ../src/guestfs-actions.pod:7819
29230 #, no-wrap
29231 msgid ""
29232 " int\n"
29233 " guestfs_zerofree (guestfs_h *g,\n"
29234 "                   const char *device);\n"
29235 "\n"
29236 msgstr ""
29237
29238 #. type: =head2
29239 #: ../src/guestfs-actions.pod:7838
29240 msgid "guestfs_zfgrep"
29241 msgstr ""
29242
29243 #. type: verbatim
29244 #: ../src/guestfs-actions.pod:7840
29245 #, no-wrap
29246 msgid ""
29247 " char **\n"
29248 " guestfs_zfgrep (guestfs_h *g,\n"
29249 "                 const char *pattern,\n"
29250 "                 const char *path);\n"
29251 "\n"
29252 msgstr ""
29253
29254 #. type: =head2
29255 #: ../src/guestfs-actions.pod:7857
29256 msgid "guestfs_zfgrepi"
29257 msgstr ""
29258
29259 #. type: verbatim
29260 #: ../src/guestfs-actions.pod:7859
29261 #, no-wrap
29262 msgid ""
29263 " char **\n"
29264 " guestfs_zfgrepi (guestfs_h *g,\n"
29265 "                  const char *pattern,\n"
29266 "                  const char *path);\n"
29267 "\n"
29268 msgstr ""
29269
29270 #. type: =head2
29271 #: ../src/guestfs-actions.pod:7876
29272 msgid "guestfs_zfile"
29273 msgstr ""
29274
29275 #. type: verbatim
29276 #: ../src/guestfs-actions.pod:7878
29277 #, no-wrap
29278 msgid ""
29279 " char *\n"
29280 " guestfs_zfile (guestfs_h *g,\n"
29281 "                const char *meth,\n"
29282 "                const char *path);\n"
29283 "\n"
29284 msgstr ""
29285
29286 #. type: textblock
29287 #: ../src/guestfs-actions.pod:7883
29288 msgid ""
29289 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
29290 "instead."
29291 msgstr ""
29292
29293 #. type: textblock
29294 #: ../src/guestfs-actions.pod:7895
29295 msgid ""
29296 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29297 "files."
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:7903
29302 msgid "guestfs_zgrep"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:7905
29307 #, no-wrap
29308 msgid ""
29309 " char **\n"
29310 " guestfs_zgrep (guestfs_h *g,\n"
29311 "                const char *regex,\n"
29312 "                const char *path);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: =head2
29317 #: ../src/guestfs-actions.pod:7922
29318 msgid "guestfs_zgrepi"
29319 msgstr ""
29320
29321 #. type: verbatim
29322 #: ../src/guestfs-actions.pod:7924
29323 #, no-wrap
29324 msgid ""
29325 " char **\n"
29326 " guestfs_zgrepi (guestfs_h *g,\n"
29327 "                 const char *regex,\n"
29328 "                 const char *path);\n"
29329 "\n"
29330 msgstr ""
29331
29332 #. type: =item
29333 #: ../src/guestfs-availability.pod:3
29334 msgid "B<augeas>"
29335 msgstr ""
29336
29337 #. type: textblock
29338 #: ../src/guestfs-availability.pod:5
29339 msgid ""
29340 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29341 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29342 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29343 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29344 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29345 msgstr ""
29346
29347 #. type: =item
29348 #: ../src/guestfs-availability.pod:21
29349 msgid "B<btrfs>"
29350 msgstr ""
29351
29352 #. type: textblock
29353 #: ../src/guestfs-availability.pod:23
29354 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29355 msgstr ""
29356
29357 #. type: =item
29358 #: ../src/guestfs-availability.pod:26
29359 msgid "B<inotify>"
29360 msgstr ""
29361
29362 #. type: textblock
29363 #: ../src/guestfs-availability.pod:28
29364 msgid ""
29365 "The following functions: L</guestfs_inotify_add_watch> "
29366 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
29367 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
29368 msgstr ""
29369
29370 #. type: =item
29371 #: ../src/guestfs-availability.pod:36
29372 msgid "B<linuxfsuuid>"
29373 msgstr ""
29374
29375 #. type: textblock
29376 #: ../src/guestfs-availability.pod:38
29377 msgid ""
29378 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
29379 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
29380 msgstr ""
29381
29382 #. type: =item
29383 #: ../src/guestfs-availability.pod:45
29384 msgid "B<linuxmodules>"
29385 msgstr ""
29386
29387 #. type: textblock
29388 #: ../src/guestfs-availability.pod:47
29389 msgid "The following functions: L</guestfs_modprobe>"
29390 msgstr ""
29391
29392 #. type: =item
29393 #: ../src/guestfs-availability.pod:50
29394 msgid "B<linuxxattrs>"
29395 msgstr ""
29396
29397 #. type: textblock
29398 #: ../src/guestfs-availability.pod:52
29399 msgid ""
29400 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
29401 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
29402 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
29403 "L</guestfs_setxattr>"
29404 msgstr ""
29405
29406 #. type: =item
29407 #: ../src/guestfs-availability.pod:63
29408 msgid "B<luks>"
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-availability.pod:65
29413 msgid ""
29414 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
29415 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
29416 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
29417 msgstr ""
29418
29419 #. type: =item
29420 #: ../src/guestfs-availability.pod:74
29421 msgid "B<lvm2>"
29422 msgstr ""
29423
29424 #. type: textblock
29425 #: ../src/guestfs-availability.pod:76
29426 msgid ""
29427 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
29428 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
29429 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
29430 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
29431 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
29432 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
29433 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
29434 "L</guestfs_vgs_full>"
29435 msgstr ""
29436
29437 #. type: =item
29438 #: ../src/guestfs-availability.pod:99
29439 msgid "B<mknod>"
29440 msgstr ""
29441
29442 #. type: textblock
29443 #: ../src/guestfs-availability.pod:101
29444 msgid ""
29445 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
29446 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
29447 msgstr ""
29448
29449 #. type: =item
29450 #: ../src/guestfs-availability.pod:107
29451 msgid "B<ntfs3g>"
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../src/guestfs-availability.pod:109
29456 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
29457 msgstr ""
29458
29459 #. type: =item
29460 #: ../src/guestfs-availability.pod:112
29461 msgid "B<ntfsprogs>"
29462 msgstr ""
29463
29464 #. type: textblock
29465 #: ../src/guestfs-availability.pod:114
29466 msgid ""
29467 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
29468 "L</guestfs_ntfsresize_size>"
29469 msgstr ""
29470
29471 #. type: =item
29472 #: ../src/guestfs-availability.pod:119
29473 msgid "B<realpath>"
29474 msgstr ""
29475
29476 #. type: textblock
29477 #: ../src/guestfs-availability.pod:121
29478 msgid "The following functions: L</guestfs_realpath>"
29479 msgstr ""
29480
29481 #. type: =item
29482 #: ../src/guestfs-availability.pod:124
29483 msgid "B<scrub>"
29484 msgstr ""
29485
29486 #. type: textblock
29487 #: ../src/guestfs-availability.pod:126
29488 msgid ""
29489 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
29490 "L</guestfs_scrub_freespace>"
29491 msgstr ""
29492
29493 #. type: =item
29494 #: ../src/guestfs-availability.pod:131
29495 msgid "B<selinux>"
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../src/guestfs-availability.pod:133
29500 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
29501 msgstr ""
29502
29503 #. type: =item
29504 #: ../src/guestfs-availability.pod:137
29505 msgid "B<xz>"
29506 msgstr ""
29507
29508 #. type: textblock
29509 #: ../src/guestfs-availability.pod:139
29510 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
29511 msgstr ""
29512
29513 #. type: =item
29514 #: ../src/guestfs-availability.pod:143
29515 msgid "B<zerofree>"
29516 msgstr ""
29517
29518 #. type: textblock
29519 #: ../src/guestfs-availability.pod:145
29520 msgid "The following functions: L</guestfs_zerofree>"
29521 msgstr ""
29522
29523 #. type: =head2
29524 #: ../src/guestfs-structs.pod:1
29525 msgid "guestfs_int_bool"
29526 msgstr ""
29527
29528 #. type: verbatim
29529 #: ../src/guestfs-structs.pod:3
29530 #, no-wrap
29531 msgid ""
29532 " struct guestfs_int_bool {\n"
29533 "   int32_t i;\n"
29534 "   int32_t b;\n"
29535 " };\n"
29536 " \n"
29537 msgstr ""
29538
29539 #. type: verbatim
29540 #: ../src/guestfs-structs.pod:8
29541 #, no-wrap
29542 msgid ""
29543 " struct guestfs_int_bool_list {\n"
29544 "   uint32_t len; /* Number of elements in list. */\n"
29545 "   struct guestfs_int_bool *val; /* Elements. */\n"
29546 " };\n"
29547 " \n"
29548 msgstr ""
29549
29550 #. type: verbatim
29551 #: ../src/guestfs-structs.pod:13
29552 #, no-wrap
29553 msgid ""
29554 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
29555 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
29556 "\n"
29557 msgstr ""
29558
29559 #. type: =head2
29560 #: ../src/guestfs-structs.pod:16
29561 msgid "guestfs_lvm_pv"
29562 msgstr ""
29563
29564 #. type: verbatim
29565 #: ../src/guestfs-structs.pod:18
29566 #, no-wrap
29567 msgid ""
29568 " struct guestfs_lvm_pv {\n"
29569 "   char *pv_name;\n"
29570 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29571 "*/\n"
29572 "   char pv_uuid[32];\n"
29573 "   char *pv_fmt;\n"
29574 "   uint64_t pv_size;\n"
29575 "   uint64_t dev_size;\n"
29576 "   uint64_t pv_free;\n"
29577 "   uint64_t pv_used;\n"
29578 "   char *pv_attr;\n"
29579 "   int64_t pv_pe_count;\n"
29580 "   int64_t pv_pe_alloc_count;\n"
29581 "   char *pv_tags;\n"
29582 "   uint64_t pe_start;\n"
29583 "   int64_t pv_mda_count;\n"
29584 "   uint64_t pv_mda_free;\n"
29585 " };\n"
29586 " \n"
29587 msgstr ""
29588
29589 #. type: verbatim
29590 #: ../src/guestfs-structs.pod:36
29591 #, no-wrap
29592 msgid ""
29593 " struct guestfs_lvm_pv_list {\n"
29594 "   uint32_t len; /* Number of elements in list. */\n"
29595 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
29596 " };\n"
29597 " \n"
29598 msgstr ""
29599
29600 #. type: verbatim
29601 #: ../src/guestfs-structs.pod:41
29602 #, no-wrap
29603 msgid ""
29604 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
29605 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
29606 "\n"
29607 msgstr ""
29608
29609 #. type: =head2
29610 #: ../src/guestfs-structs.pod:44
29611 msgid "guestfs_lvm_vg"
29612 msgstr ""
29613
29614 #. type: verbatim
29615 #: ../src/guestfs-structs.pod:46
29616 #, no-wrap
29617 msgid ""
29618 " struct guestfs_lvm_vg {\n"
29619 "   char *vg_name;\n"
29620 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29621 "*/\n"
29622 "   char vg_uuid[32];\n"
29623 "   char *vg_fmt;\n"
29624 "   char *vg_attr;\n"
29625 "   uint64_t vg_size;\n"
29626 "   uint64_t vg_free;\n"
29627 "   char *vg_sysid;\n"
29628 "   uint64_t vg_extent_size;\n"
29629 "   int64_t vg_extent_count;\n"
29630 "   int64_t vg_free_count;\n"
29631 "   int64_t max_lv;\n"
29632 "   int64_t max_pv;\n"
29633 "   int64_t pv_count;\n"
29634 "   int64_t lv_count;\n"
29635 "   int64_t snap_count;\n"
29636 "   int64_t vg_seqno;\n"
29637 "   char *vg_tags;\n"
29638 "   int64_t vg_mda_count;\n"
29639 "   uint64_t vg_mda_free;\n"
29640 " };\n"
29641 " \n"
29642 msgstr ""
29643
29644 #. type: verbatim
29645 #: ../src/guestfs-structs.pod:69
29646 #, no-wrap
29647 msgid ""
29648 " struct guestfs_lvm_vg_list {\n"
29649 "   uint32_t len; /* Number of elements in list. */\n"
29650 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
29651 " };\n"
29652 " \n"
29653 msgstr ""
29654
29655 #. type: verbatim
29656 #: ../src/guestfs-structs.pod:74
29657 #, no-wrap
29658 msgid ""
29659 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
29660 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
29661 "\n"
29662 msgstr ""
29663
29664 #. type: =head2
29665 #: ../src/guestfs-structs.pod:77
29666 msgid "guestfs_lvm_lv"
29667 msgstr ""
29668
29669 #. type: verbatim
29670 #: ../src/guestfs-structs.pod:79
29671 #, no-wrap
29672 msgid ""
29673 " struct guestfs_lvm_lv {\n"
29674 "   char *lv_name;\n"
29675 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29676 "*/\n"
29677 "   char lv_uuid[32];\n"
29678 "   char *lv_attr;\n"
29679 "   int64_t lv_major;\n"
29680 "   int64_t lv_minor;\n"
29681 "   int64_t lv_kernel_major;\n"
29682 "   int64_t lv_kernel_minor;\n"
29683 "   uint64_t lv_size;\n"
29684 "   int64_t seg_count;\n"
29685 "   char *origin;\n"
29686 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29687 "   float snap_percent;\n"
29688 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29689 "   float copy_percent;\n"
29690 "   char *move_pv;\n"
29691 "   char *lv_tags;\n"
29692 "   char *mirror_log;\n"
29693 "   char *modules;\n"
29694 " };\n"
29695 " \n"
29696 msgstr ""
29697
29698 #. type: verbatim
29699 #: ../src/guestfs-structs.pod:101
29700 #, no-wrap
29701 msgid ""
29702 " struct guestfs_lvm_lv_list {\n"
29703 "   uint32_t len; /* Number of elements in list. */\n"
29704 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
29705 " };\n"
29706 " \n"
29707 msgstr ""
29708
29709 #. type: verbatim
29710 #: ../src/guestfs-structs.pod:106
29711 #, no-wrap
29712 msgid ""
29713 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
29714 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
29715 "\n"
29716 msgstr ""
29717
29718 #. type: verbatim
29719 #: ../src/guestfs-structs.pod:111
29720 #, no-wrap
29721 msgid ""
29722 " struct guestfs_stat {\n"
29723 "   int64_t dev;\n"
29724 "   int64_t ino;\n"
29725 "   int64_t mode;\n"
29726 "   int64_t nlink;\n"
29727 "   int64_t uid;\n"
29728 "   int64_t gid;\n"
29729 "   int64_t rdev;\n"
29730 "   int64_t size;\n"
29731 "   int64_t blksize;\n"
29732 "   int64_t blocks;\n"
29733 "   int64_t atime;\n"
29734 "   int64_t mtime;\n"
29735 "   int64_t ctime;\n"
29736 " };\n"
29737 " \n"
29738 msgstr ""
29739
29740 #. type: verbatim
29741 #: ../src/guestfs-structs.pod:127
29742 #, no-wrap
29743 msgid ""
29744 " struct guestfs_stat_list {\n"
29745 "   uint32_t len; /* Number of elements in list. */\n"
29746 "   struct guestfs_stat *val; /* Elements. */\n"
29747 " };\n"
29748 " \n"
29749 msgstr ""
29750
29751 #. type: verbatim
29752 #: ../src/guestfs-structs.pod:132
29753 #, no-wrap
29754 msgid ""
29755 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
29756 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
29757 "\n"
29758 msgstr ""
29759
29760 #. type: verbatim
29761 #: ../src/guestfs-structs.pod:137
29762 #, no-wrap
29763 msgid ""
29764 " struct guestfs_statvfs {\n"
29765 "   int64_t bsize;\n"
29766 "   int64_t frsize;\n"
29767 "   int64_t blocks;\n"
29768 "   int64_t bfree;\n"
29769 "   int64_t bavail;\n"
29770 "   int64_t files;\n"
29771 "   int64_t ffree;\n"
29772 "   int64_t favail;\n"
29773 "   int64_t fsid;\n"
29774 "   int64_t flag;\n"
29775 "   int64_t namemax;\n"
29776 " };\n"
29777 " \n"
29778 msgstr ""
29779
29780 #. type: verbatim
29781 #: ../src/guestfs-structs.pod:151
29782 #, no-wrap
29783 msgid ""
29784 " struct guestfs_statvfs_list {\n"
29785 "   uint32_t len; /* Number of elements in list. */\n"
29786 "   struct guestfs_statvfs *val; /* Elements. */\n"
29787 " };\n"
29788 " \n"
29789 msgstr ""
29790
29791 #. type: verbatim
29792 #: ../src/guestfs-structs.pod:156
29793 #, no-wrap
29794 msgid ""
29795 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
29796 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
29797 "\n"
29798 msgstr ""
29799
29800 #. type: =head2
29801 #: ../src/guestfs-structs.pod:159
29802 msgid "guestfs_dirent"
29803 msgstr ""
29804
29805 #. type: verbatim
29806 #: ../src/guestfs-structs.pod:161
29807 #, no-wrap
29808 msgid ""
29809 " struct guestfs_dirent {\n"
29810 "   int64_t ino;\n"
29811 "   char ftyp;\n"
29812 "   char *name;\n"
29813 " };\n"
29814 " \n"
29815 msgstr ""
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-structs.pod:167
29819 #, no-wrap
29820 msgid ""
29821 " struct guestfs_dirent_list {\n"
29822 "   uint32_t len; /* Number of elements in list. */\n"
29823 "   struct guestfs_dirent *val; /* Elements. */\n"
29824 " };\n"
29825 " \n"
29826 msgstr ""
29827
29828 #. type: verbatim
29829 #: ../src/guestfs-structs.pod:172
29830 #, no-wrap
29831 msgid ""
29832 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
29833 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: verbatim
29838 #: ../src/guestfs-structs.pod:177
29839 #, no-wrap
29840 msgid ""
29841 " struct guestfs_version {\n"
29842 "   int64_t major;\n"
29843 "   int64_t minor;\n"
29844 "   int64_t release;\n"
29845 "   char *extra;\n"
29846 " };\n"
29847 " \n"
29848 msgstr ""
29849
29850 #. type: verbatim
29851 #: ../src/guestfs-structs.pod:184
29852 #, no-wrap
29853 msgid ""
29854 " struct guestfs_version_list {\n"
29855 "   uint32_t len; /* Number of elements in list. */\n"
29856 "   struct guestfs_version *val; /* Elements. */\n"
29857 " };\n"
29858 " \n"
29859 msgstr ""
29860
29861 #. type: verbatim
29862 #: ../src/guestfs-structs.pod:189
29863 #, no-wrap
29864 msgid ""
29865 " void guestfs_free_version (struct guestfs_free_version *);\n"
29866 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
29867 "\n"
29868 msgstr ""
29869
29870 #. type: =head2
29871 #: ../src/guestfs-structs.pod:192
29872 msgid "guestfs_xattr"
29873 msgstr ""
29874
29875 #. type: verbatim
29876 #: ../src/guestfs-structs.pod:194
29877 #, no-wrap
29878 msgid ""
29879 " struct guestfs_xattr {\n"
29880 "   char *attrname;\n"
29881 "   /* The next two fields describe a byte array. */\n"
29882 "   uint32_t attrval_len;\n"
29883 "   char *attrval;\n"
29884 " };\n"
29885 " \n"
29886 msgstr ""
29887
29888 #. type: verbatim
29889 #: ../src/guestfs-structs.pod:201
29890 #, no-wrap
29891 msgid ""
29892 " struct guestfs_xattr_list {\n"
29893 "   uint32_t len; /* Number of elements in list. */\n"
29894 "   struct guestfs_xattr *val; /* Elements. */\n"
29895 " };\n"
29896 " \n"
29897 msgstr ""
29898
29899 #. type: verbatim
29900 #: ../src/guestfs-structs.pod:206
29901 #, no-wrap
29902 msgid ""
29903 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
29904 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
29905 "\n"
29906 msgstr ""
29907
29908 #. type: =head2
29909 #: ../src/guestfs-structs.pod:209
29910 msgid "guestfs_inotify_event"
29911 msgstr ""
29912
29913 #. type: verbatim
29914 #: ../src/guestfs-structs.pod:211
29915 #, no-wrap
29916 msgid ""
29917 " struct guestfs_inotify_event {\n"
29918 "   int64_t in_wd;\n"
29919 "   uint32_t in_mask;\n"
29920 "   uint32_t in_cookie;\n"
29921 "   char *in_name;\n"
29922 " };\n"
29923 " \n"
29924 msgstr ""
29925
29926 #. type: verbatim
29927 #: ../src/guestfs-structs.pod:218
29928 #, no-wrap
29929 msgid ""
29930 " struct guestfs_inotify_event_list {\n"
29931 "   uint32_t len; /* Number of elements in list. */\n"
29932 "   struct guestfs_inotify_event *val; /* Elements. */\n"
29933 " };\n"
29934 " \n"
29935 msgstr ""
29936
29937 #. type: verbatim
29938 #: ../src/guestfs-structs.pod:223
29939 #, no-wrap
29940 msgid ""
29941 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
29942 " void guestfs_free_inotify_event_list (struct "
29943 "guestfs_free_inotify_event_list *);\n"
29944 "\n"
29945 msgstr ""
29946
29947 #. type: =head2
29948 #: ../src/guestfs-structs.pod:226
29949 msgid "guestfs_partition"
29950 msgstr ""
29951
29952 #. type: verbatim
29953 #: ../src/guestfs-structs.pod:228
29954 #, no-wrap
29955 msgid ""
29956 " struct guestfs_partition {\n"
29957 "   int32_t part_num;\n"
29958 "   uint64_t part_start;\n"
29959 "   uint64_t part_end;\n"
29960 "   uint64_t part_size;\n"
29961 " };\n"
29962 " \n"
29963 msgstr ""
29964
29965 #. type: verbatim
29966 #: ../src/guestfs-structs.pod:235
29967 #, no-wrap
29968 msgid ""
29969 " struct guestfs_partition_list {\n"
29970 "   uint32_t len; /* Number of elements in list. */\n"
29971 "   struct guestfs_partition *val; /* Elements. */\n"
29972 " };\n"
29973 " \n"
29974 msgstr ""
29975
29976 #. type: verbatim
29977 #: ../src/guestfs-structs.pod:240
29978 #, no-wrap
29979 msgid ""
29980 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
29981 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
29982 "\n"
29983 msgstr ""
29984
29985 #. type: =head2
29986 #: ../src/guestfs-structs.pod:243
29987 msgid "guestfs_application"
29988 msgstr ""
29989
29990 #. type: verbatim
29991 #: ../src/guestfs-structs.pod:245
29992 #, no-wrap
29993 msgid ""
29994 " struct guestfs_application {\n"
29995 "   char *app_name;\n"
29996 "   char *app_display_name;\n"
29997 "   int32_t app_epoch;\n"
29998 "   char *app_version;\n"
29999 "   char *app_release;\n"
30000 "   char *app_install_path;\n"
30001 "   char *app_trans_path;\n"
30002 "   char *app_publisher;\n"
30003 "   char *app_url;\n"
30004 "   char *app_source_package;\n"
30005 "   char *app_summary;\n"
30006 "   char *app_description;\n"
30007 " };\n"
30008 " \n"
30009 msgstr ""
30010
30011 #. type: verbatim
30012 #: ../src/guestfs-structs.pod:260
30013 #, no-wrap
30014 msgid ""
30015 " struct guestfs_application_list {\n"
30016 "   uint32_t len; /* Number of elements in list. */\n"
30017 "   struct guestfs_application *val; /* Elements. */\n"
30018 " };\n"
30019 " \n"
30020 msgstr ""
30021
30022 #. type: verbatim
30023 #: ../src/guestfs-structs.pod:265
30024 #, no-wrap
30025 msgid ""
30026 " void guestfs_free_application (struct guestfs_free_application *);\n"
30027 " void guestfs_free_application_list (struct guestfs_free_application_list "
30028 "*);\n"
30029 "\n"
30030 msgstr ""
30031
30032 #. type: textblock
30033 #: ../src/guestfs.pod:5
30034 msgid "guestfs - Library for accessing and modifying virtual machine images"
30035 msgstr ""
30036
30037 #. type: verbatim
30038 #: ../src/guestfs.pod:11
30039 #, no-wrap
30040 msgid ""
30041 " guestfs_h *g = guestfs_create ();\n"
30042 " guestfs_add_drive (g, \"guest.img\");\n"
30043 " guestfs_launch (g);\n"
30044 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30045 " guestfs_touch (g, \"/hello\");\n"
30046 " guestfs_umount (g, \"/\");\n"
30047 " guestfs_close (g);\n"
30048 "\n"
30049 msgstr ""
30050
30051 #. type: textblock
30052 #: ../src/guestfs.pod:25
30053 msgid ""
30054 "Libguestfs is a library for accessing and modifying guest disk images.  "
30055 "Amongst the things this is good for: making batch configuration changes to "
30056 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30057 "between virtualization systems (see also: virt-p2v), performing partial "
30058 "backups, performing partial guest clones, cloning guests and changing "
30059 "registry/UUID/hostname info, and much else besides."
30060 msgstr ""
30061
30062 #. type: textblock
30063 #: ../src/guestfs.pod:33
30064 msgid ""
30065 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30066 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30067 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30068 "qcow2, vmdk."
30069 msgstr ""
30070
30071 #. type: textblock
30072 #: ../src/guestfs.pod:38
30073 msgid ""
30074 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30075 "what filesystem is in each LV, etc.).  It can also run commands in the "
30076 "context of the guest.  Also you can access filesystems over FUSE."
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../src/guestfs.pod:43
30081 msgid ""
30082 "Libguestfs is a library that can be linked with C and C++ management "
30083 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30084 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30085 "line."
30086 msgstr ""
30087
30088 #. type: textblock
30089 #: ../src/guestfs.pod:48
30090 msgid ""
30091 "You don't need to be root to use libguestfs, although obviously you do need "
30092 "enough permissions to access the disk images."
30093 msgstr ""
30094
30095 #. type: textblock
30096 #: ../src/guestfs.pod:51
30097 msgid ""
30098 "Libguestfs is a large API because it can do many things.  For a gentle "
30099 "introduction, please read the L</API OVERVIEW> section next."
30100 msgstr ""
30101
30102 #. type: textblock
30103 #: ../src/guestfs.pod:54
30104 msgid ""
30105 "There are also some example programs in the L<guestfs-examples(3)> manual "
30106 "page."
30107 msgstr ""
30108
30109 #. type: =head1
30110 #: ../src/guestfs.pod:57
30111 msgid "API OVERVIEW"
30112 msgstr ""
30113
30114 #. type: textblock
30115 #: ../src/guestfs.pod:59
30116 msgid ""
30117 "This section provides a gentler overview of the libguestfs API.  We also try "
30118 "to group API calls together, where that may not be obvious from reading "
30119 "about the individual calls in the main section of this manual."
30120 msgstr ""
30121
30122 #. type: =head2
30123 #: ../src/guestfs.pod:64
30124 msgid "HANDLES"
30125 msgstr ""
30126
30127 #. type: textblock
30128 #: ../src/guestfs.pod:66
30129 msgid ""
30130 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30131 "must add at least one disk image to the handle, followed by launching the "
30132 "handle, then performing whatever operations you want, and finally closing "
30133 "the handle.  By convention we use the single letter C<g> for the name of the "
30134 "handle variable, although of course you can use any name you want."
30135 msgstr ""
30136
30137 #. type: textblock
30138 #: ../src/guestfs.pod:73
30139 msgid "The general structure of all libguestfs-using programs looks like this:"
30140 msgstr ""
30141
30142 #. type: verbatim
30143 #: ../src/guestfs.pod:76
30144 #, no-wrap
30145 msgid ""
30146 " guestfs_h *g = guestfs_create ();\n"
30147 " \n"
30148 msgstr ""
30149
30150 #. type: verbatim
30151 #: ../src/guestfs.pod:78
30152 #, no-wrap
30153 msgid ""
30154 " /* Call guestfs_add_drive additional times if there are\n"
30155 "  * multiple disk images.\n"
30156 "  */\n"
30157 " guestfs_add_drive (g, \"guest.img\");\n"
30158 " \n"
30159 msgstr ""
30160
30161 #. type: verbatim
30162 #: ../src/guestfs.pod:83
30163 #, no-wrap
30164 msgid ""
30165 " /* Most manipulation calls won't work until you've launched\n"
30166 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30167 "  * and _before_ other commands.\n"
30168 "  */\n"
30169 " guestfs_launch (g);\n"
30170 " \n"
30171 msgstr ""
30172
30173 #. type: verbatim
30174 #: ../src/guestfs.pod:89
30175 #, no-wrap
30176 msgid ""
30177 " /* Now you can examine what partitions, LVs etc are available.\n"
30178 "  */\n"
30179 " char **partitions = guestfs_list_partitions (g);\n"
30180 " char **logvols = guestfs_lvs (g);\n"
30181 " \n"
30182 msgstr ""
30183
30184 #. type: verbatim
30185 #: ../src/guestfs.pod:94
30186 #, no-wrap
30187 msgid ""
30188 " /* To access a filesystem in the image, you must mount it.\n"
30189 "  */\n"
30190 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30191 " \n"
30192 msgstr ""
30193
30194 #. type: verbatim
30195 #: ../src/guestfs.pod:98
30196 #, no-wrap
30197 msgid ""
30198 " /* Now you can perform filesystem actions on the guest\n"
30199 "  * disk image.\n"
30200 "  */\n"
30201 " guestfs_touch (g, \"/hello\");\n"
30202 " \n"
30203 msgstr ""
30204
30205 #. type: verbatim
30206 #: ../src/guestfs.pod:103
30207 #, no-wrap
30208 msgid ""
30209 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30210 "  * it is done automatically when you close the handle.  See\n"
30211 "  * discussion of autosync in this page.\n"
30212 "  */\n"
30213 " guestfs_sync (g);\n"
30214 " \n"
30215 msgstr ""
30216
30217 #. type: verbatim
30218 #: ../src/guestfs.pod:109
30219 #, no-wrap
30220 msgid ""
30221 " /* Close the handle 'g'. */\n"
30222 " guestfs_close (g);\n"
30223 "\n"
30224 msgstr ""
30225
30226 #. type: textblock
30227 #: ../src/guestfs.pod:112
30228 msgid ""
30229 "The code above doesn't include any error checking.  In real code you should "
30230 "check return values carefully for errors.  In general all functions that "
30231 "return integers return C<-1> on error, and all functions that return "
30232 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30233 "how to handle errors, and consult the documentation for each function call "
30234 "below to see precisely how they return error indications.  See "
30235 "L<guestfs-examples(3)> for fully worked examples."
30236 msgstr ""
30237
30238 #. type: =head2
30239 #: ../src/guestfs.pod:121
30240 msgid "DISK IMAGES"
30241 msgstr ""
30242
30243 #. type: textblock
30244 #: ../src/guestfs.pod:123
30245 msgid ""
30246 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30247 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30248 "actual block device, or simply an empty file of zeroes that you have created "
30249 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30250 "of these."
30251 msgstr ""
30252
30253 #. type: textblock
30254 #: ../src/guestfs.pod:129
30255 msgid ""
30256 "The call you should use in modern code for adding drives is "
30257 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30258 "specifying that the format is raw, do:"
30259 msgstr ""
30260
30261 #. type: verbatim
30262 #: ../src/guestfs.pod:133
30263 #, no-wrap
30264 msgid ""
30265 " guestfs_add_drive_opts (g, filename,\n"
30266 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30267 "                         -1);\n"
30268 "\n"
30269 msgstr ""
30270
30271 #. type: textblock
30272 #: ../src/guestfs.pod:137
30273 msgid "You can add a disk read-only using:"
30274 msgstr ""
30275
30276 #. type: verbatim
30277 #: ../src/guestfs.pod:139
30278 #, no-wrap
30279 msgid ""
30280 " guestfs_add_drive_opts (g, filename,\n"
30281 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30282 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30283 "                         -1);\n"
30284 "\n"
30285 msgstr ""
30286
30287 #. type: textblock
30288 #: ../src/guestfs.pod:144
30289 msgid ""
30290 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30291 "libguestfs won't modify the file."
30292 msgstr ""
30293
30294 #. type: textblock
30295 #: ../src/guestfs.pod:147
30296 msgid ""
30297 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30298 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30299 "corruption, but adding it read-only is safe."
30300 msgstr ""
30301
30302 #. type: textblock
30303 #: ../src/guestfs.pod:151
30304 msgid ""
30305 "You must add at least one disk image, and you may add multiple disk images.  "
30306 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30307 "first one you added), C</dev/sdb> (for the second one you added), etc."
30308 msgstr ""
30309
30310 #. type: textblock
30311 #: ../src/guestfs.pod:156
30312 msgid ""
30313 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30314 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30315 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30316 msgstr ""
30317
30318 #. type: =head2
30319 #: ../src/guestfs.pod:161
30320 msgid "MOUNTING"
30321 msgstr ""
30322
30323 #. type: textblock
30324 #: ../src/guestfs.pod:163
30325 msgid ""
30326 "Before you can read or write files, create directories and so on in a disk "
30327 "image that contains filesystems, you have to mount those filesystems using "
30328 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30329 "a disk image contains (for example) one partition with a filesystem on that "
30330 "partition, then you can mount it directly:"
30331 msgstr ""
30332
30333 #. type: verbatim
30334 #: ../src/guestfs.pod:170
30335 #, no-wrap
30336 msgid ""
30337 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30338 "\n"
30339 msgstr ""
30340
30341 #. type: textblock
30342 #: ../src/guestfs.pod:172
30343 msgid ""
30344 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30345 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30346 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30347 "that these are libguestfs virtual devices, and are nothing to do with host "
30348 "devices."
30349 msgstr ""
30350
30351 #. type: textblock
30352 #: ../src/guestfs.pod:178
30353 msgid ""
30354 "If you are given a disk image and you don't know what it contains then you "
30355 "have to find out.  Libguestfs can do that too: use "
30356 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
30357 "and LVs, and either try mounting each to see what is mountable, or else "
30358 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
30359 "filesystems, use L</guestfs_list_filesystems>."
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../src/guestfs.pod:186
30364 msgid ""
30365 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
30366 "L</INSPECTION> below).  But you might find it easier to look at higher level "
30367 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
30368 msgstr ""
30369
30370 #. type: textblock
30371 #: ../src/guestfs.pod:191
30372 msgid ""
30373 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
30374 "several other variations of the C<guestfs_mount_*> call."
30375 msgstr ""
30376
30377 #. type: =head2
30378 #: ../src/guestfs.pod:194
30379 msgid "FILESYSTEM ACCESS AND MODIFICATION"
30380 msgstr ""
30381
30382 #. type: textblock
30383 #: ../src/guestfs.pod:196
30384 msgid ""
30385 "The majority of the libguestfs API consists of fairly low-level calls for "
30386 "accessing and modifying the files, directories, symlinks etc on mounted "
30387 "filesystems.  There are over a hundred such calls which you can find listed "
30388 "in detail below in this man page, and we don't even pretend to cover them "
30389 "all in this overview."
30390 msgstr ""
30391
30392 #. type: textblock
30393 #: ../src/guestfs.pod:202
30394 msgid ""
30395 "Specify filenames as full paths, starting with C<\"/\"> and including the "
30396 "mount point."
30397 msgstr ""
30398
30399 #. type: textblock
30400 #: ../src/guestfs.pod:205
30401 msgid ""
30402 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
30403 "the file called C<\"etc/passwd\"> then you could do:"
30404 msgstr ""
30405
30406 #. type: verbatim
30407 #: ../src/guestfs.pod:208
30408 #, no-wrap
30409 msgid ""
30410 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
30411 "\n"
30412 msgstr ""
30413
30414 #. type: textblock
30415 #: ../src/guestfs.pod:210
30416 msgid ""
30417 "This would return C<data> as a newly allocated buffer containing the full "
30418 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
30419 "or C<NULL> if there was an error."
30420 msgstr ""
30421
30422 #. type: textblock
30423 #: ../src/guestfs.pod:214
30424 msgid ""
30425 "As another example, to create a top-level directory on that filesystem "
30426 "called C<\"var\"> you would do:"
30427 msgstr ""
30428
30429 #. type: verbatim
30430 #: ../src/guestfs.pod:217
30431 #, no-wrap
30432 msgid ""
30433 " guestfs_mkdir (g, \"/var\");\n"
30434 "\n"
30435 msgstr ""
30436
30437 #. type: textblock
30438 #: ../src/guestfs.pod:219
30439 msgid "To create a symlink you could do:"
30440 msgstr ""
30441
30442 #. type: verbatim
30443 #: ../src/guestfs.pod:221
30444 #, no-wrap
30445 msgid ""
30446 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
30447 "               \"/etc/rc3.d/S30portmap\");\n"
30448 "\n"
30449 msgstr ""
30450
30451 #. type: textblock
30452 #: ../src/guestfs.pod:224
30453 msgid ""
30454 "Libguestfs will reject attempts to use relative paths and there is no "
30455 "concept of a current working directory."
30456 msgstr ""
30457
30458 #. type: textblock
30459 #: ../src/guestfs.pod:227
30460 msgid ""
30461 "Libguestfs can return errors in many situations: for example if the "
30462 "filesystem isn't writable, or if a file or directory that you requested "
30463 "doesn't exist.  If you are using the C API (documented here)  you have to "
30464 "check for those error conditions after each call.  (Other language bindings "
30465 "turn these errors into exceptions)."
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs.pod:233
30470 msgid ""
30471 "File writes are affected by the per-handle umask, set by calling "
30472 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
30473 msgstr ""
30474
30475 #. type: =head2
30476 #: ../src/guestfs.pod:236
30477 msgid "PARTITIONING"
30478 msgstr ""
30479
30480 #. type: textblock
30481 #: ../src/guestfs.pod:238
30482 msgid ""
30483 "Libguestfs contains API calls to read, create and modify partition tables on "
30484 "disk images."
30485 msgstr ""
30486
30487 #. type: textblock
30488 #: ../src/guestfs.pod:241
30489 msgid ""
30490 "In the common case where you want to create a single partition covering the "
30491 "whole disk, you should use the L</guestfs_part_disk> call:"
30492 msgstr ""
30493
30494 #. type: verbatim
30495 #: ../src/guestfs.pod:245
30496 #, no-wrap
30497 msgid ""
30498 " const char *parttype = \"mbr\";\n"
30499 " if (disk_is_larger_than_2TB)\n"
30500 "   parttype = \"gpt\";\n"
30501 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
30502 "\n"
30503 msgstr ""
30504
30505 #. type: textblock
30506 #: ../src/guestfs.pod:250
30507 msgid ""
30508 "Obviously this effectively wipes anything that was on that disk image "
30509 "before."
30510 msgstr ""
30511
30512 #. type: =head2
30513 #: ../src/guestfs.pod:253
30514 msgid "LVM2"
30515 msgstr ""
30516
30517 #. type: textblock
30518 #: ../src/guestfs.pod:255
30519 msgid ""
30520 "Libguestfs provides access to a large part of the LVM2 API, such as "
30521 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
30522 "unless you familiarize yourself with the concepts of physical volumes, "
30523 "volume groups and logical volumes."
30524 msgstr ""
30525
30526 #. type: textblock
30527 #: ../src/guestfs.pod:260
30528 msgid ""
30529 "This author strongly recommends reading the LVM HOWTO, online at "
30530 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
30531 msgstr ""
30532
30533 #. type: =head2
30534 #: ../src/guestfs.pod:263
30535 msgid "DOWNLOADING"
30536 msgstr ""
30537
30538 #. type: textblock
30539 #: ../src/guestfs.pod:265
30540 msgid ""
30541 "Use L</guestfs_cat> to download small, text only files.  This call is "
30542 "limited to files which are less than 2 MB and which cannot contain any ASCII "
30543 "NUL (C<\\0>) characters.  However the API is very simple to use."
30544 msgstr ""
30545
30546 #. type: textblock
30547 #: ../src/guestfs.pod:269
30548 msgid ""
30549 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
30550 "bit data, since it returns a (pointer, size) pair.  However it is still "
30551 "limited to \"small\" files, less than 2 MB."
30552 msgstr ""
30553
30554 #. type: textblock
30555 #: ../src/guestfs.pod:273
30556 msgid ""
30557 "L</guestfs_download> can be used to download any file, with no limits on "
30558 "content or size (even files larger than 4 GB)."
30559 msgstr ""
30560
30561 #. type: textblock
30562 #: ../src/guestfs.pod:276
30563 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
30564 msgstr ""
30565
30566 #. type: =head2
30567 #: ../src/guestfs.pod:279
30568 msgid "UPLOADING"
30569 msgstr ""
30570
30571 #. type: textblock
30572 #: ../src/guestfs.pod:281
30573 msgid ""
30574 "It's often the case that you want to write a file or files to the disk "
30575 "image."
30576 msgstr ""
30577
30578 #. type: textblock
30579 #: ../src/guestfs.pod:284
30580 msgid ""
30581 "To write a small file with fixed content, use L</guestfs_write>.  To create "
30582 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
30583 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
30584 "variety of other functions for creating test files, for example "
30585 "L</guestfs_fill> and L</guestfs_fill_pattern>."
30586 msgstr ""
30587
30588 #. type: textblock
30589 #: ../src/guestfs.pod:290
30590 msgid ""
30591 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
30592 "file content or size (even files larger than 4 GB)."
30593 msgstr ""
30594
30595 #. type: textblock
30596 #: ../src/guestfs.pod:293
30597 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
30598 msgstr ""
30599
30600 #. type: textblock
30601 #: ../src/guestfs.pod:295
30602 msgid ""
30603 "However the fastest way to upload I<large numbers of arbitrary files> is to "
30604 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
30605 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
30606 "the drive in a predictable way (eg. adding it last after all other drives) "
30607 "then you can get the device name from L</guestfs_list_devices> and mount it "
30608 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
30609 "sometimes non-portable between kernel versions, and they don't support "
30610 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
30611 "using a label or UUID, use an ISO image instead."
30612 msgstr ""
30613
30614 #. type: =head2
30615 #: ../src/guestfs.pod:306
30616 msgid "COPYING"
30617 msgstr ""
30618
30619 #. type: textblock
30620 #: ../src/guestfs.pod:308
30621 msgid ""
30622 "There are various different commands for copying between files and devices "
30623 "and in and out of the guest filesystem.  These are summarised in the table "
30624 "below."
30625 msgstr ""
30626
30627 #. type: =item
30628 #: ../src/guestfs.pod:314
30629 msgid "B<file> to B<file>"
30630 msgstr ""
30631
30632 #. type: textblock
30633 #: ../src/guestfs.pod:316
30634 msgid ""
30635 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
30636 "directories recursively."
30637 msgstr ""
30638
30639 #. type: =item
30640 #: ../src/guestfs.pod:319
30641 msgid "B<file or device> to B<file or device>"
30642 msgstr ""
30643
30644 #. type: textblock
30645 #: ../src/guestfs.pod:321
30646 msgid ""
30647 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
30648 "devices in the guest."
30649 msgstr ""
30650
30651 #. type: textblock
30652 #: ../src/guestfs.pod:324
30653 msgid "Example: duplicate the contents of an LV:"
30654 msgstr ""
30655
30656 #. type: verbatim
30657 #: ../src/guestfs.pod:326
30658 #, no-wrap
30659 msgid ""
30660 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
30661 "\n"
30662 msgstr ""
30663
30664 #. type: textblock
30665 #: ../src/guestfs.pod:328
30666 msgid ""
30667 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
30668 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
30669 "L</guestfs_copy_size>."
30670 msgstr ""
30671
30672 #. type: =item
30673 #: ../src/guestfs.pod:332
30674 msgid "B<file on the host> to B<file or device>"
30675 msgstr ""
30676
30677 #. type: textblock
30678 #: ../src/guestfs.pod:334
30679 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
30680 msgstr ""
30681
30682 #. type: =item
30683 #: ../src/guestfs.pod:336
30684 msgid "B<file or device> to B<file on the host>"
30685 msgstr ""
30686
30687 #. type: textblock
30688 #: ../src/guestfs.pod:338
30689 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
30690 msgstr ""
30691
30692 #. type: =head2
30693 #: ../src/guestfs.pod:342
30694 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
30695 msgstr ""
30696
30697 #. type: textblock
30698 #: ../src/guestfs.pod:344
30699 msgid ""
30700 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
30701 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
30702 "appears you can only upload and download to files.  However many Un*x-like "
30703 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
30704 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
30705 "stderr, and arbitrary file descriptor N."
30706 msgstr ""
30707
30708 #. type: textblock
30709 #: ../src/guestfs.pod:352
30710 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
30711 msgstr ""
30712
30713 #. type: verbatim
30714 #: ../src/guestfs.pod:355
30715 #, no-wrap
30716 msgid ""
30717 " guestfs_download (g, filename, \"/dev/stdout\");\n"
30718 "\n"
30719 msgstr ""
30720
30721 #. type: textblock
30722 #: ../src/guestfs.pod:357
30723 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
30724 msgstr ""
30725
30726 #. type: verbatim
30727 #: ../src/guestfs.pod:359
30728 #, no-wrap
30729 msgid ""
30730 " char devfd[64];\n"
30731 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
30732 " guestfs_tar_out (g, \"/\", devfd);\n"
30733 "\n"
30734 msgstr ""
30735
30736 #. type: =head2
30737 #: ../src/guestfs.pod:363
30738 msgid "LISTING FILES"
30739 msgstr ""
30740
30741 #. type: textblock
30742 #: ../src/guestfs.pod:365
30743 msgid ""
30744 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
30745 "L<guestfish(1)>-equivalent command C<ll>)."
30746 msgstr ""
30747
30748 #. type: textblock
30749 #: ../src/guestfs.pod:368
30750 msgid ""
30751 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
30752 "programs, as a flat list of strings."
30753 msgstr ""
30754
30755 #. type: textblock
30756 #: ../src/guestfs.pod:371
30757 msgid ""
30758 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
30759 "directory, plus additional information about each one.  It is more "
30760 "equivalent to using the L<readdir(3)> call on a local filesystem."
30761 msgstr ""
30762
30763 #. type: textblock
30764 #: ../src/guestfs.pod:375
30765 msgid ""
30766 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
30767 "files."
30768 msgstr ""
30769
30770 #. type: =head2
30771 #: ../src/guestfs.pod:378
30772 msgid "RUNNING COMMANDS"
30773 msgstr ""
30774
30775 #. type: textblock
30776 #: ../src/guestfs.pod:380
30777 msgid ""
30778 "Although libguestfs is primarily an API for manipulating files inside guest "
30779 "images, we also provide some limited facilities for running commands inside "
30780 "guests."
30781 msgstr ""
30782
30783 #. type: textblock
30784 #: ../src/guestfs.pod:384
30785 msgid "There are many limitations to this:"
30786 msgstr ""
30787
30788 #. type: textblock
30789 #: ../src/guestfs.pod:390
30790 msgid ""
30791 "The kernel version that the command runs under will be different from what "
30792 "it expects."
30793 msgstr ""
30794
30795 #. type: textblock
30796 #: ../src/guestfs.pod:395
30797 msgid ""
30798 "If the command needs to communicate with daemons, then most likely they "
30799 "won't be running."
30800 msgstr ""
30801
30802 #. type: textblock
30803 #: ../src/guestfs.pod:400
30804 msgid "The command will be running in limited memory."
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs.pod:404
30809 msgid ""
30810 "The network may not be available unless you enable it (see "
30811 "L</guestfs_set_network>)."
30812 msgstr ""
30813
30814 #. type: textblock
30815 #: ../src/guestfs.pod:409
30816 msgid "Only supports Linux guests (not Windows, BSD, etc)."
30817 msgstr ""
30818
30819 #. type: textblock
30820 #: ../src/guestfs.pod:413
30821 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
30822 msgstr ""
30823
30824 #. type: textblock
30825 #: ../src/guestfs.pod:418
30826 msgid ""
30827 "For SELinux guests, you may need to enable SELinux and load policy first.  "
30828 "See L</SELINUX> in this manpage."
30829 msgstr ""
30830
30831 #. type: textblock
30832 #: ../src/guestfs.pod:423
30833 msgid ""
30834 "I<Security:> It is not safe to run commands from untrusted, possibly "
30835 "malicious guests.  These commands may attempt to exploit your program by "
30836 "sending unexpected output.  They could also try to exploit the Linux kernel "
30837 "or qemu provided by the libguestfs appliance.  They could use the network "
30838 "provided by the libguestfs appliance to bypass ordinary network partitions "
30839 "and firewalls.  They could use the elevated privileges or different SELinux "
30840 "context of your program to their advantage."
30841 msgstr ""
30842
30843 #. type: textblock
30844 #: ../src/guestfs.pod:432
30845 msgid ""
30846 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
30847 "(a script which runs when the guest next boots normally), and to have this "
30848 "script run the commands you want in the normal context of the running guest, "
30849 "network security and so on.  For information about other security issues, "
30850 "see L</SECURITY>."
30851 msgstr ""
30852
30853 #. type: textblock
30854 #: ../src/guestfs.pod:440
30855 msgid ""
30856 "The two main API calls to run commands are L</guestfs_command> and "
30857 "L</guestfs_sh> (there are also variations)."
30858 msgstr ""
30859
30860 #. type: textblock
30861 #: ../src/guestfs.pod:443
30862 msgid ""
30863 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
30864 "shell globs, redirections, etc will work."
30865 msgstr ""
30866
30867 #. type: =head2
30868 #: ../src/guestfs.pod:446
30869 msgid "CONFIGURATION FILES"
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs.pod:448
30874 msgid ""
30875 "To read and write configuration files in Linux guest filesystems, we "
30876 "strongly recommend using Augeas.  For example, Augeas understands how to "
30877 "read and write, say, a Linux shadow password file or X.org configuration "
30878 "file, and so avoids you having to write that code."
30879 msgstr ""
30880
30881 #. type: textblock
30882 #: ../src/guestfs.pod:453
30883 msgid ""
30884 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
30885 "document Augeas itself here because there is excellent documentation on the "
30886 "L<http://augeas.net/> website."
30887 msgstr ""
30888
30889 #. type: textblock
30890 #: ../src/guestfs.pod:457
30891 msgid ""
30892 "If you don't want to use Augeas (you fool!) then try calling "
30893 "L</guestfs_read_lines> to get the file as a list of lines which you can "
30894 "iterate over."
30895 msgstr ""
30896
30897 #. type: =head2
30898 #: ../src/guestfs.pod:461
30899 msgid "SELINUX"
30900 msgstr ""
30901
30902 #. type: textblock
30903 #: ../src/guestfs.pod:463
30904 msgid ""
30905 "We support SELinux guests.  To ensure that labeling happens correctly in "
30906 "SELinux guests, you need to enable SELinux and load the guest's policy:"
30907 msgstr ""
30908
30909 #. type: textblock
30910 #: ../src/guestfs.pod:471
30911 msgid "Before launching, do:"
30912 msgstr ""
30913
30914 #. type: verbatim
30915 #: ../src/guestfs.pod:473
30916 #, no-wrap
30917 msgid ""
30918 " guestfs_set_selinux (g, 1);\n"
30919 "\n"
30920 msgstr ""
30921
30922 #. type: textblock
30923 #: ../src/guestfs.pod:477
30924 msgid ""
30925 "After mounting the guest's filesystem(s), load the policy.  This is best "
30926 "done by running the L<load_policy(8)> command in the guest itself:"
30927 msgstr ""
30928
30929 #. type: verbatim
30930 #: ../src/guestfs.pod:481
30931 #, no-wrap
30932 msgid ""
30933 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
30934 "\n"
30935 msgstr ""
30936
30937 #. type: textblock
30938 #: ../src/guestfs.pod:483
30939 msgid ""
30940 "(Older versions of C<load_policy> require you to specify the name of the "
30941 "policy file)."
30942 msgstr ""
30943
30944 #. type: textblock
30945 #: ../src/guestfs.pod:488
30946 msgid ""
30947 "Optionally, set the security context for the API.  The correct security "
30948 "context to use can only be known by inspecting the guest.  As an example:"
30949 msgstr ""
30950
30951 #. type: verbatim
30952 #: ../src/guestfs.pod:492
30953 #, no-wrap
30954 msgid ""
30955 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
30956 "\n"
30957 msgstr ""
30958
30959 #. type: textblock
30960 #: ../src/guestfs.pod:496
30961 msgid "This will work for running commands and editing existing files."
30962 msgstr ""
30963
30964 #. type: textblock
30965 #: ../src/guestfs.pod:498
30966 msgid ""
30967 "When new files are created, you may need to label them explicitly, for "
30968 "example by running the external command C<restorecon pathname>."
30969 msgstr ""
30970
30971 #. type: =head2
30972 #: ../src/guestfs.pod:502
30973 msgid "UMASK"
30974 msgstr ""
30975
30976 #. type: textblock
30977 #: ../src/guestfs.pod:504
30978 msgid ""
30979 "Certain calls are affected by the current file mode creation mask (the "
30980 "\"umask\").  In particular ones which create files or directories, such as "
30981 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
30982 "either the default mode that the file is created with or modifies the mode "
30983 "that you supply."
30984 msgstr ""
30985
30986 #. type: textblock
30987 #: ../src/guestfs.pod:510
30988 msgid ""
30989 "The default umask is C<022>, so files are created with modes such as C<0644> "
30990 "and directories with C<0755>."
30991 msgstr ""
30992
30993 #. type: textblock
30994 #: ../src/guestfs.pod:513
30995 msgid ""
30996 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
30997 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
30998 "L</guestfs_chmod> after creating each file or directory."
30999 msgstr ""
31000
31001 #. type: textblock
31002 #: ../src/guestfs.pod:517
31003 msgid "For more information about umask, see L<umask(2)>."
31004 msgstr ""
31005
31006 #. type: textblock
31007 #: ../src/guestfs.pod:521
31008 msgid ""
31009 "Libguestfs allows you to access Linux guests which have been encrypted using "
31010 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
31011 "standard.  This includes nearly all whole disk encryption systems used by "
31012 "modern Linux guests."
31013 msgstr ""
31014
31015 #. type: textblock
31016 #: ../src/guestfs.pod:527
31017 msgid ""
31018 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
31019 "returns the string C<crypto_LUKS>)."
31020 msgstr ""
31021
31022 #. type: textblock
31023 #: ../src/guestfs.pod:530
31024 msgid ""
31025 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
31026 "will require the passphrase!"
31027 msgstr ""
31028
31029 #. type: textblock
31030 #: ../src/guestfs.pod:533
31031 msgid ""
31032 "Opening a LUKS device creates a new device mapper device called "
31033 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
31034 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
31035 "decrypted from and encrypted to the underlying block device respectively."
31036 msgstr ""
31037
31038 #. type: textblock
31039 #: ../src/guestfs.pod:539
31040 msgid ""
31041 "LVM volume groups on the device can be made visible by calling "
31042 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
31043 "volume(s) can now be mounted in the usual way."
31044 msgstr ""
31045
31046 #. type: textblock
31047 #: ../src/guestfs.pod:543
31048 msgid ""
31049 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
31050 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
31051 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
31052 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31053 "underlying encrypted block device)."
31054 msgstr ""
31055
31056 #. type: =head2
31057 #: ../src/guestfs.pod:550
31058 msgid "INSPECTION"
31059 msgstr ""
31060
31061 #. type: textblock
31062 #: ../src/guestfs.pod:552
31063 msgid ""
31064 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31065 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31066 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31067 "version 1.5.3 the most frequently used part of this library has been "
31068 "rewritten in C and moved into the core code)."
31069 msgstr ""
31070
31071 #. type: textblock
31072 #: ../src/guestfs.pod:559
31073 msgid ""
31074 "Add all disks belonging to the unknown virtual machine and call "
31075 "L</guestfs_launch> in the usual way."
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs.pod:562
31080 msgid ""
31081 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31082 "and certain heuristics, and returns a list of operating systems that were "
31083 "found.  An empty list means none were found.  A single element is the root "
31084 "filesystem of the operating system.  For dual- or multi-boot guests, "
31085 "multiple roots can be returned, each one corresponding to a separate "
31086 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31087 "world of virtualization, but since this scenario can happen, we have built "
31088 "libguestfs to deal with it.)"
31089 msgstr ""
31090
31091 #. type: textblock
31092 #: ../src/guestfs.pod:571
31093 msgid ""
31094 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31095 "to get additional details about that operating system.  For example, call "
31096 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31097 "Windows and Linux-based operating systems respectively."
31098 msgstr ""
31099
31100 #. type: textblock
31101 #: ../src/guestfs.pod:577
31102 msgid ""
31103 "Un*x-like and Linux-based operating systems usually consist of several "
31104 "filesystems which are mounted at boot time (for example, a separate boot "
31105 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31106 "filesystems correspond to mount points.  Call "
31107 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31108 "hash table like this example:"
31109 msgstr ""
31110
31111 #. type: verbatim
31112 #: ../src/guestfs.pod:584
31113 #, no-wrap
31114 msgid ""
31115 " /boot => /dev/sda1\n"
31116 " /     => /dev/vg_guest/lv_root\n"
31117 " /usr  => /dev/vg_guest/lv_usr\n"
31118 "\n"
31119 msgstr ""
31120
31121 #. type: textblock
31122 #: ../src/guestfs.pod:588
31123 msgid ""
31124 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31125 "filesystems as suggested."
31126 msgstr ""
31127
31128 #. type: textblock
31129 #: ../src/guestfs.pod:591
31130 msgid ""
31131 "Be careful to mount filesystems in the right order (eg. C</> before "
31132 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31133 "work."
31134 msgstr ""
31135
31136 #. type: textblock
31137 #: ../src/guestfs.pod:595
31138 msgid ""
31139 "Inspection currently only works for some common operating systems.  "
31140 "Contributors are welcome to send patches for other operating systems that we "
31141 "currently cannot detect."
31142 msgstr ""
31143
31144 #. type: textblock
31145 #: ../src/guestfs.pod:599
31146 msgid ""
31147 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31148 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31149 "encrypted devices."
31150 msgstr ""
31151
31152 #. type: textblock
31153 #: ../src/guestfs.pod:603
31154 msgid ""
31155 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31156 "inspection and caches the results in the guest handle.  Subsequent calls to "
31157 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31158 "re-read the disks.  If you change the content of the guest disks, you can "
31159 "redo inspection by calling L</guestfs_inspect_os> again.  "
31160 "(L</guestfs_inspect_list_applications> works a little differently from the "
31161 "other calls and does read the disks.  See documentation for that function "
31162 "for details)."
31163 msgstr ""
31164
31165 #. type: =head3
31166 #: ../src/guestfs.pod:612
31167 msgid "INSPECTING INSTALL DISKS"
31168 msgstr ""
31169
31170 #. type: textblock
31171 #: ../src/guestfs.pod:614
31172 msgid ""
31173 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31174 "CDs and more."
31175 msgstr ""
31176
31177 #. type: textblock
31178 #: ../src/guestfs.pod:617
31179 msgid ""
31180 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31181 "system, which currently can be C<installed> (a regular operating system) or "
31182 "C<installer> (some sort of install disk)."
31183 msgstr ""
31184
31185 #. type: textblock
31186 #: ../src/guestfs.pod:621
31187 msgid ""
31188 "Further information is available about the operating system that can be "
31189 "installed using the regular inspection APIs like "
31190 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31191 "etc."
31192 msgstr ""
31193
31194 #. type: textblock
31195 #: ../src/guestfs.pod:626
31196 msgid ""
31197 "Some additional information specific to installer disks is also available "
31198 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31199 "L</guestfs_inspect_is_multipart> calls."
31200 msgstr ""
31201
31202 #. type: =head2
31203 #: ../src/guestfs.pod:631
31204 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs.pod:633
31209 msgid ""
31210 "Libguestfs can mount NTFS partitions.  It does this using the "
31211 "L<http://www.ntfs-3g.org/> driver."
31212 msgstr ""
31213
31214 #. type: =head3
31215 #: ../src/guestfs.pod:636
31216 msgid "DRIVE LETTERS AND PATHS"
31217 msgstr ""
31218
31219 #. type: textblock
31220 #: ../src/guestfs.pod:638
31221 msgid ""
31222 "DOS and Windows still use drive letters, and the filesystems are always "
31223 "treated as case insensitive by Windows itself, and therefore you might find "
31224 "a Windows configuration file referring to a path like "
31225 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31226 "that directory might be referred to as C</WINDOWS/System32>."
31227 msgstr ""
31228
31229 #. type: textblock
31230 #: ../src/guestfs.pod:644
31231 msgid ""
31232 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31233 "L</guestfs_inspect_get_drive_mappings>)"
31234 msgstr ""
31235
31236 #. type: textblock
31237 #: ../src/guestfs.pod:647
31238 msgid ""
31239 "Dealing with separator characters (backslash vs forward slash) is outside "
31240 "the scope of libguestfs, but usually a simple character replacement will "
31241 "work."
31242 msgstr ""
31243
31244 #. type: textblock
31245 #: ../src/guestfs.pod:651
31246 msgid ""
31247 "To resolve the case insensitivity of paths, call "
31248 "L</guestfs_case_sensitive_path>."
31249 msgstr ""
31250
31251 #. type: =head3
31252 #: ../src/guestfs.pod:654
31253 msgid "ACCESSING THE WINDOWS REGISTRY"
31254 msgstr ""
31255
31256 #. type: textblock
31257 #: ../src/guestfs.pod:656
31258 msgid ""
31259 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31260 "files, through the library C<hivex> which is part of the libguestfs project "
31261 "although ships as a separate tarball.  You have to locate and download the "
31262 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31263 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31264 "L<virt-win-reg(1)> for more help on this issue."
31265 msgstr ""
31266
31267 #. type: =head3
31268 #: ../src/guestfs.pod:664
31269 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31270 msgstr ""
31271
31272 #. type: textblock
31273 #: ../src/guestfs.pod:666
31274 msgid ""
31275 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31276 "provide something which looks like a Linux symlink.  The way it tries to do "
31277 "the rewriting is described here:"
31278 msgstr ""
31279
31280 #. type: textblock
31281 #: ../src/guestfs.pod:670
31282 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31283 msgstr ""
31284
31285 #. type: textblock
31286 #: ../src/guestfs.pod:672
31287 msgid ""
31288 "The essential problem is that ntfs-3g simply does not have enough "
31289 "information to do a correct job.  NTFS links can contain drive letters and "
31290 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31291 "It is almost certainly the case that libguestfs callers should ignore what "
31292 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31293 msgstr ""
31294
31295 #. type: textblock
31296 #: ../src/guestfs.pod:679
31297 msgid ""
31298 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31299 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31300 "attribute, and read the raw reparse data from that (you can find the format "
31301 "documented in various places around the web)."
31302 msgstr ""
31303
31304 #. type: =head3
31305 #: ../src/guestfs.pod:684
31306 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31307 msgstr ""
31308
31309 #. type: textblock
31310 #: ../src/guestfs.pod:686
31311 msgid ""
31312 "There are other useful extended attributes that can be read from ntfs-3g "
31313 "filesystems (using L</guestfs_getxattr>).  See:"
31314 msgstr ""
31315
31316 #. type: textblock
31317 #: ../src/guestfs.pod:689
31318 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31319 msgstr ""
31320
31321 #. type: =head2
31322 #: ../src/guestfs.pod:691
31323 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31324 msgstr ""
31325
31326 #. type: textblock
31327 #: ../src/guestfs.pod:693
31328 msgid ""
31329 "Although we don't want to discourage you from using the C API, we will "
31330 "mention here that the same API is also available in other languages."
31331 msgstr ""
31332
31333 #. type: textblock
31334 #: ../src/guestfs.pod:696
31335 msgid ""
31336 "The API is broadly identical in all supported languages.  This means that "
31337 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31338 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31339 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31340 "each language."
31341 msgstr ""
31342
31343 #. type: textblock
31344 #: ../src/guestfs.pod:702
31345 msgid ""
31346 "Error messages are automatically transformed into exceptions if the language "
31347 "supports it."
31348 msgstr ""
31349
31350 #. type: textblock
31351 #: ../src/guestfs.pod:705
31352 msgid ""
31353 "We don't try to \"object orientify\" parts of the API in OO languages, "
31354 "although contributors are welcome to write higher level APIs above what we "
31355 "provide in their favourite languages if they wish."
31356 msgstr ""
31357
31358 #. type: =item
31359 #: ../src/guestfs.pod:711
31360 msgid "B<C++>"
31361 msgstr ""
31362
31363 #. type: textblock
31364 #: ../src/guestfs.pod:713
31365 msgid ""
31366 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
31367 "identical to the C API.  C++ classes and exceptions are not used."
31368 msgstr ""
31369
31370 #. type: =item
31371 #: ../src/guestfs.pod:717
31372 msgid "B<C#>"
31373 msgstr ""
31374
31375 #. type: textblock
31376 #: ../src/guestfs.pod:719
31377 msgid ""
31378 "The C# bindings are highly experimental.  Please read the warnings at the "
31379 "top of C<csharp/Libguestfs.cs>."
31380 msgstr ""
31381
31382 #. type: =item
31383 #: ../src/guestfs.pod:722
31384 msgid "B<Haskell>"
31385 msgstr ""
31386
31387 #. type: textblock
31388 #: ../src/guestfs.pod:724
31389 msgid ""
31390 "This is the only language binding that is working but incomplete.  Only "
31391 "calls which return simple integers have been bound in Haskell, and we are "
31392 "looking for help to complete this binding."
31393 msgstr ""
31394
31395 #. type: =item
31396 #: ../src/guestfs.pod:728
31397 msgid "B<Java>"
31398 msgstr ""
31399
31400 #. type: textblock
31401 #: ../src/guestfs.pod:730
31402 msgid ""
31403 "Full documentation is contained in the Javadoc which is distributed with "
31404 "libguestfs.  For examples, see L<guestfs-java(3)>."
31405 msgstr ""
31406
31407 #. type: =item
31408 #: ../src/guestfs.pod:733
31409 msgid "B<OCaml>"
31410 msgstr ""
31411
31412 #. type: textblock
31413 #: ../src/guestfs.pod:735
31414 msgid "See L<guestfs-ocaml(3)>."
31415 msgstr ""
31416
31417 #. type: =item
31418 #: ../src/guestfs.pod:737
31419 msgid "B<Perl>"
31420 msgstr ""
31421
31422 #. type: textblock
31423 #: ../src/guestfs.pod:739
31424 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
31425 msgstr ""
31426
31427 #. type: =item
31428 #: ../src/guestfs.pod:741
31429 msgid "B<PHP>"
31430 msgstr ""
31431
31432 #. type: textblock
31433 #: ../src/guestfs.pod:743
31434 msgid ""
31435 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
31436 "the php-libguestfs package for your distribution."
31437 msgstr ""
31438
31439 #. type: textblock
31440 #: ../src/guestfs.pod:746
31441 msgid "The PHP binding only works correctly on 64 bit machines."
31442 msgstr ""
31443
31444 #. type: =item
31445 #: ../src/guestfs.pod:748
31446 msgid "B<Python>"
31447 msgstr ""
31448
31449 #. type: textblock
31450 #: ../src/guestfs.pod:750
31451 msgid "See L<guestfs-python(3)>."
31452 msgstr ""
31453
31454 #. type: =item
31455 #: ../src/guestfs.pod:752
31456 msgid "B<Ruby>"
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs.pod:754
31461 msgid "See L<guestfs-ruby(3)>."
31462 msgstr ""
31463
31464 #. type: =item
31465 #: ../src/guestfs.pod:756
31466 msgid "B<shell scripts>"
31467 msgstr ""
31468
31469 #. type: textblock
31470 #: ../src/guestfs.pod:758
31471 msgid "See L<guestfish(1)>."
31472 msgstr ""
31473
31474 #. type: =head2
31475 #: ../src/guestfs.pod:762
31476 msgid "LIBGUESTFS GOTCHAS"
31477 msgstr ""
31478
31479 #. type: textblock
31480 #: ../src/guestfs.pod:764
31481 msgid ""
31482 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
31483 "system [...] that works in the way it is documented but is counterintuitive "
31484 "and almost invites mistakes.\""
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs.pod:768
31489 msgid ""
31490 "Since we developed libguestfs and the associated tools, there are several "
31491 "things we would have designed differently, but are now stuck with for "
31492 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
31493 "release, you can expect these to change.  Beware of them."
31494 msgstr ""
31495
31496 #. type: =item
31497 #: ../src/guestfs.pod:776
31498 msgid "Autosync / forgetting to sync."
31499 msgstr ""
31500
31501 #. type: textblock
31502 #: ../src/guestfs.pod:778
31503 msgid ""
31504 "I<Update:> Autosync is enabled by default for all API users starting from "
31505 "libguestfs 1.5.24.  This section only applies to older versions."
31506 msgstr ""
31507
31508 #. type: textblock
31509 #: ../src/guestfs.pod:781
31510 msgid ""
31511 "When modifying a filesystem from C or another language, you B<must> unmount "
31512 "all filesystems and call L</guestfs_sync> explicitly before you close the "
31513 "libguestfs handle.  You can also call:"
31514 msgstr ""
31515
31516 #. type: verbatim
31517 #: ../src/guestfs.pod:785
31518 #, no-wrap
31519 msgid ""
31520 " guestfs_set_autosync (g, 1);\n"
31521 "\n"
31522 msgstr ""
31523
31524 #. type: textblock
31525 #: ../src/guestfs.pod:787
31526 msgid ""
31527 "to have the unmount/sync done automatically for you when the handle 'g' is "
31528 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
31529 "q.v.)"
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs.pod:791
31534 msgid ""
31535 "If you forget to do this, then it is entirely possible that your changes "
31536 "won't be written out, or will be partially written, or (very rarely) that "
31537 "you'll get disk corruption."
31538 msgstr ""
31539
31540 #. type: textblock
31541 #: ../src/guestfs.pod:795
31542 msgid ""
31543 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
31544 "guestfish scripts that forget to sync will work just fine, which can make "
31545 "this very puzzling if you are trying to debug a problem."
31546 msgstr ""
31547
31548 #. type: =item
31549 #: ../src/guestfs.pod:799
31550 msgid "Mount option C<-o sync> should not be the default."
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs.pod:801
31555 msgid ""
31556 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
31557 "However C<-o sync> does not add any reliability benefit, but does have a "
31558 "very large performance impact."
31559 msgstr ""
31560
31561 #. type: textblock
31562 #: ../src/guestfs.pod:805
31563 msgid ""
31564 "The work around is to use L</guestfs_mount_options> and set the mount "
31565 "options that you actually want to use."
31566 msgstr ""
31567
31568 #. type: =item
31569 #: ../src/guestfs.pod:808
31570 msgid "Read-only should be the default."
31571 msgstr ""
31572
31573 #. type: textblock
31574 #: ../src/guestfs.pod:810
31575 msgid ""
31576 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
31577 "specify I<--rw> if you want to make changes to the image."
31578 msgstr ""
31579
31580 #. type: textblock
31581 #: ../src/guestfs.pod:813
31582 msgid "This would reduce the potential to corrupt live VM images."
31583 msgstr ""
31584
31585 #. type: textblock
31586 #: ../src/guestfs.pod:815
31587 msgid ""
31588 "Note that many filesystems change the disk when you just mount and unmount, "
31589 "even if you didn't perform any writes.  You need to use "
31590 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
31591 msgstr ""
31592
31593 #. type: =item
31594 #: ../src/guestfs.pod:819
31595 msgid "guestfish command line is hard to use."
31596 msgstr ""
31597
31598 #. type: textblock
31599 #: ../src/guestfs.pod:821
31600 msgid ""
31601 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
31602 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
31603 "exist, so it fails.  In earlier versions of guestfish the error message was "
31604 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
31605 "we should have used C<guestfish -c command> to run commands."
31606 msgstr ""
31607
31608 #. type: =item
31609 #: ../src/guestfs.pod:828
31610 msgid "guestfish megabyte modifiers don't work right on all commands"
31611 msgstr ""
31612
31613 #. type: textblock
31614 #: ../src/guestfs.pod:830
31615 msgid ""
31616 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
31617 "other modifiers).  What guestfish actually does is to multiply the number "
31618 "part by the modifier part and pass the result to the C API.  However this "
31619 "doesn't work for a few APIs which aren't expecting bytes, but are already "
31620 "expecting some other unit (eg. megabytes)."
31621 msgstr ""
31622
31623 #. type: textblock
31624 #: ../src/guestfs.pod:837
31625 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
31626 msgstr ""
31627
31628 #. type: verbatim
31629 #: ../src/guestfs.pod:839
31630 #, no-wrap
31631 msgid ""
31632 " lvcreate LV VG 100M\n"
31633 "\n"
31634 msgstr ""
31635
31636 #. type: textblock
31637 #: ../src/guestfs.pod:841
31638 msgid ""
31639 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
31640 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
31641 "megabytes * megabytes) logical volume.  The error message you get from this "
31642 "is also a little obscure."
31643 msgstr ""
31644
31645 #. type: textblock
31646 #: ../src/guestfs.pod:846
31647 msgid ""
31648 "This could be fixed in the generator by specially marking parameters and "
31649 "return values which take bytes or other units."
31650 msgstr ""
31651
31652 #. type: =item
31653 #: ../src/guestfs.pod:849
31654 msgid "Ambiguity between devices and paths"
31655 msgstr ""
31656
31657 #. type: textblock
31658 #: ../src/guestfs.pod:851
31659 msgid ""
31660 "There is a subtle ambiguity in the API between a device name "
31661 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
31662 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
31663 msgstr ""
31664
31665 #. type: textblock
31666 #: ../src/guestfs.pod:856
31667 msgid ""
31668 "In the current API we usually resolve this ambiguity by having two separate "
31669 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
31670 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
31671 "detecting if the path supplied begins with C</dev/>."
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs.pod:862
31676 msgid ""
31677 "To avoid both the ambiguity and the need to duplicate some calls, we could "
31678 "make paths/devices into structured names.  One way to do this would be to "
31679 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
31680 "aspect of grub.  Another way would be to use a structured type, equivalent "
31681 "to this OCaml type:"
31682 msgstr ""
31683
31684 #. type: verbatim
31685 #: ../src/guestfs.pod:868
31686 #, no-wrap
31687 msgid ""
31688 " type path = Path of string | Device of int | Partition of int * int\n"
31689 "\n"
31690 msgstr ""
31691
31692 #. type: textblock
31693 #: ../src/guestfs.pod:870
31694 msgid "which would allow you to pass arguments like:"
31695 msgstr ""
31696
31697 #. type: verbatim
31698 #: ../src/guestfs.pod:872
31699 #, no-wrap
31700 msgid ""
31701 " Path \"/foo/bar\"\n"
31702 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
31703 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
31704 " Path \"/dev/sdb2\"    (* not a device *)\n"
31705 "\n"
31706 msgstr ""
31707
31708 #. type: textblock
31709 #: ../src/guestfs.pod:877
31710 msgid ""
31711 "As you can see there are still problems to resolve even with this "
31712 "representation.  Also consider how it might work in guestfish."
31713 msgstr ""
31714
31715 #. type: =head2
31716 #: ../src/guestfs.pod:882
31717 msgid "KEYS AND PASSPHRASES"
31718 msgstr ""
31719
31720 #. type: textblock
31721 #: ../src/guestfs.pod:884
31722 msgid ""
31723 "Certain libguestfs calls take a parameter that contains sensitive key "
31724 "material, passed in as a C string."
31725 msgstr ""
31726
31727 #. type: textblock
31728 #: ../src/guestfs.pod:887
31729 msgid ""
31730 "In the future we would hope to change the libguestfs implementation so that "
31731 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
31732 "swap.  However this is I<not> done at the moment, because of the complexity "
31733 "of such an implementation."
31734 msgstr ""
31735
31736 #. type: textblock
31737 #: ../src/guestfs.pod:892
31738 msgid ""
31739 "Therefore you should be aware that any key parameter you pass to libguestfs "
31740 "might end up being written out to the swap partition.  If this is a concern, "
31741 "scrub the swap partition or don't use libguestfs on encrypted devices."
31742 msgstr ""
31743
31744 #. type: =head2
31745 #: ../src/guestfs.pod:897
31746 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
31747 msgstr ""
31748
31749 #. type: textblock
31750 #: ../src/guestfs.pod:899
31751 msgid ""
31752 "All high-level libguestfs actions are synchronous.  If you want to use "
31753 "libguestfs asynchronously then you must create a thread."
31754 msgstr ""
31755
31756 #. type: textblock
31757 #: ../src/guestfs.pod:902
31758 msgid ""
31759 "Only use the handle from a single thread.  Either use the handle exclusively "
31760 "from one thread, or provide your own mutex so that two threads cannot issue "
31761 "calls on the same handle at the same time."
31762 msgstr ""
31763
31764 #. type: textblock
31765 #: ../src/guestfs.pod:906
31766 msgid ""
31767 "See the graphical program guestfs-browser for one possible architecture for "
31768 "multithreaded programs using libvirt and libguestfs."
31769 msgstr ""
31770
31771 #. type: =head2
31772 #: ../src/guestfs.pod:909
31773 msgid "PATH"
31774 msgstr ""
31775
31776 #. type: textblock
31777 #: ../src/guestfs.pod:911
31778 msgid ""
31779 "Libguestfs needs a supermin appliance, which it finds by looking along an "
31780 "internal path."
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs.pod:914
31785 msgid ""
31786 "By default it looks for these in the directory C<$libdir/guestfs> "
31787 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
31788 msgstr ""
31789
31790 #. type: textblock
31791 #: ../src/guestfs.pod:917
31792 msgid ""
31793 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
31794 "to change the directories that libguestfs will search in.  The value is a "
31795 "colon-separated list of paths.  The current directory is I<not> searched "
31796 "unless the path contains an empty element or C<.>.  For example "
31797 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
31798 "then C</usr/lib/guestfs>."
31799 msgstr ""
31800
31801 #. type: =head2
31802 #: ../src/guestfs.pod:924
31803 msgid "QEMU WRAPPERS"
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs.pod:926
31808 msgid ""
31809 "If you want to compile your own qemu, run qemu from a non-standard location, "
31810 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
31811 "around qemu."
31812 msgstr ""
31813
31814 #. type: textblock
31815 #: ../src/guestfs.pod:930
31816 msgid ""
31817 "There is one important rule to remember: you I<must C<exec qemu>> as the "
31818 "last command in the shell script (so that qemu replaces the shell and "
31819 "becomes the direct child of the libguestfs-using program).  If you don't do "
31820 "this, then the qemu process won't be cleaned up correctly."
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:935
31825 msgid ""
31826 "Here is an example of a wrapper, where I have built my own copy of qemu from "
31827 "source:"
31828 msgstr ""
31829
31830 #. type: verbatim
31831 #: ../src/guestfs.pod:938
31832 #, no-wrap
31833 msgid ""
31834 " #!/bin/sh -\n"
31835 " qemudir=/home/rjones/d/qemu\n"
31836 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
31837 "\"$@\"\n"
31838 "\n"
31839 msgstr ""
31840
31841 #. type: textblock
31842 #: ../src/guestfs.pod:942
31843 msgid ""
31844 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
31845 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
31846 "example:"
31847 msgstr ""
31848
31849 #. type: verbatim
31850 #: ../src/guestfs.pod:946
31851 #, no-wrap
31852 msgid ""
31853 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
31854 "\n"
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs.pod:948
31859 msgid ""
31860 "Note that libguestfs also calls qemu with the -help and -version options in "
31861 "order to determine features."
31862 msgstr ""
31863
31864 #. type: =head2
31865 #: ../src/guestfs.pod:951
31866 msgid "ATTACHING TO RUNNING DAEMONS"
31867 msgstr ""
31868
31869 #. type: textblock
31870 #: ../src/guestfs.pod:953
31871 msgid ""
31872 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
31873 "babies.  Use with caution."
31874 msgstr ""
31875
31876 #. type: textblock
31877 #: ../src/guestfs.pod:956
31878 msgid ""
31879 "I<Note (2):> This section explains how to attach to a running daemon from a "
31880 "low level perspective.  For most users, simply using virt tools such as "
31881 "L<guestfish(1)> with the I<--live> option will \"just work\"."
31882 msgstr ""
31883
31884 #. type: =head3
31885 #: ../src/guestfs.pod:960
31886 msgid "Using guestfs_set_attach_method"
31887 msgstr ""
31888
31889 #. type: textblock
31890 #: ../src/guestfs.pod:962
31891 msgid ""
31892 "By calling L</guestfs_set_attach_method> you can change how the library "
31893 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
31894 "L</ARCHITECTURE> for some background)."
31895 msgstr ""
31896
31897 #. type: textblock
31898 #: ../src/guestfs.pod:966
31899 msgid ""
31900 "The normal attach method is C<appliance>, where a small appliance is created "
31901 "containing the daemon, and then the library connects to this."
31902 msgstr ""
31903
31904 #. type: textblock
31905 #: ../src/guestfs.pod:969
31906 msgid ""
31907 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
31908 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
31909 "daemon over the Unix domain socket."
31910 msgstr ""
31911
31912 #. type: textblock
31913 #: ../src/guestfs.pod:973
31914 msgid ""
31915 "The normal use for this is to connect to a running virtual machine that "
31916 "contains a C<guestfsd> daemon, and send commands so you can read and write "
31917 "files inside the live virtual machine."
31918 msgstr ""
31919
31920 #. type: =head3
31921 #: ../src/guestfs.pod:977
31922 msgid "Using guestfs_add_domain with live flag"
31923 msgstr ""
31924
31925 #. type: textblock
31926 #: ../src/guestfs.pod:979
31927 msgid ""
31928 "L</guestfs_add_domain> provides some help for getting the correct attach "
31929 "method.  If you pass the C<live> option to this function, then (if the "
31930 "virtual machine is running) it will examine the libvirt XML looking for a "
31931 "virtio-serial channel to connect to:"
31932 msgstr ""
31933
31934 #. type: verbatim
31935 #: ../src/guestfs.pod:985
31936 #, no-wrap
31937 msgid ""
31938 " <domain>\n"
31939 "   ...\n"
31940 "   <devices>\n"
31941 "     ...\n"
31942 "     <channel type='unix'>\n"
31943 "       <source mode='bind' path='/path/to/socket'/>\n"
31944 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
31945 "     </channel>\n"
31946 "     ...\n"
31947 "   </devices>\n"
31948 " </domain>\n"
31949 "\n"
31950 msgstr ""
31951
31952 #. type: textblock
31953 #: ../src/guestfs.pod:997
31954 msgid ""
31955 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
31956 "method to C<unix:/path/to/socket>."
31957 msgstr ""
31958
31959 #. type: textblock
31960 #: ../src/guestfs.pod:1000
31961 msgid ""
31962 "Some of the libguestfs tools (including guestfish) support a I<--live> "
31963 "option which is passed through to L</guestfs_add_domain> thus allowing you "
31964 "to attach to and modify live virtual machines."
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../src/guestfs.pod:1004
31969 msgid ""
31970 "The virtual machine needs to have been set up beforehand so that it has the "
31971 "virtio-serial channel and so that guestfsd is running inside it."
31972 msgstr ""
31973
31974 #. type: =head2
31975 #: ../src/guestfs.pod:1008
31976 msgid "ABI GUARANTEE"
31977 msgstr ""
31978
31979 #. type: textblock
31980 #: ../src/guestfs.pod:1010
31981 msgid ""
31982 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
31983 "actions as outlined in this section.  Although we will deprecate some "
31984 "actions, for example if they get replaced by newer calls, we will keep the "
31985 "old actions forever.  This allows you the developer to program in confidence "
31986 "against the libguestfs API."
31987 msgstr ""
31988
31989 #. type: =head2
31990 #: ../src/guestfs.pod:1016
31991 msgid "BLOCK DEVICE NAMING"
31992 msgstr ""
31993
31994 #. type: textblock
31995 #: ../src/guestfs.pod:1018
31996 msgid ""
31997 "In the kernel there is now quite a profusion of schemata for naming block "
31998 "devices (in this context, by I<block device> I mean a physical or virtual "
31999 "hard drive).  The original Linux IDE driver used names starting with "
32000 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
32001 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
32002 "replacement for the old IDE driver (particularly for SATA devices) those "
32003 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
32004 "machines with paravirtualized drivers.  This has created several different "
32005 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
32006 "Xen PV disks."
32007 msgstr ""
32008
32009 #. type: textblock
32010 #: ../src/guestfs.pod:1030
32011 msgid ""
32012 "As discussed above, libguestfs uses a qemu appliance running an embedded "
32013 "Linux kernel to access block devices.  We can run a variety of appliances "
32014 "based on a variety of Linux kernels."
32015 msgstr ""
32016
32017 #. type: textblock
32018 #: ../src/guestfs.pod:1034
32019 msgid ""
32020 "This causes a problem for libguestfs because many API calls use device or "
32021 "partition names.  Working scripts and the recipe (example) scripts that we "
32022 "make available over the internet could fail if the naming scheme changes."
32023 msgstr ""
32024
32025 #. type: textblock
32026 #: ../src/guestfs.pod:1039
32027 msgid ""
32028 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
32029 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
32030 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
32031 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs.pod:1045
32036 msgid ""
32037 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
32038 "L</guestfs_list_partitions> and similar calls return the true names of the "
32039 "devices and partitions as known to the appliance."
32040 msgstr ""
32041
32042 #. type: =head3
32043 #: ../src/guestfs.pod:1050
32044 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
32045 msgstr ""
32046
32047 #. type: textblock
32048 #: ../src/guestfs.pod:1052
32049 msgid ""
32050 "Usually this translation is transparent.  However in some (very rare)  cases "
32051 "you may need to know the exact algorithm.  Such cases include where you use "
32052 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
32053 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
32054 "devices."
32055 msgstr ""
32056
32057 #. type: textblock
32058 #: ../src/guestfs.pod:1058
32059 msgid ""
32060 "The algorithm is applied only to I<parameters> which are known to be either "
32061 "device or partition names.  Return values from functions such as "
32062 "L</guestfs_list_devices> are never changed."
32063 msgstr ""
32064
32065 #. type: textblock
32066 #: ../src/guestfs.pod:1066
32067 msgid "Is the string a parameter which is a device or partition name?"
32068 msgstr ""
32069
32070 #. type: textblock
32071 #: ../src/guestfs.pod:1070
32072 msgid "Does the string begin with C</dev/sd>?"
32073 msgstr ""
32074
32075 #. type: textblock
32076 #: ../src/guestfs.pod:1074
32077 msgid ""
32078 "Does the named device exist? If so, we use that device.  However if I<not> "
32079 "then we continue with this algorithm."
32080 msgstr ""
32081
32082 #. type: textblock
32083 #: ../src/guestfs.pod:1079
32084 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs.pod:1081
32089 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32090 msgstr ""
32091
32092 #. type: textblock
32093 #: ../src/guestfs.pod:1083
32094 msgid "If that named device exists, use it.  If not, continue."
32095 msgstr ""
32096
32097 #. type: textblock
32098 #: ../src/guestfs.pod:1087
32099 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32100 msgstr ""
32101
32102 #. type: textblock
32103 #: ../src/guestfs.pod:1089
32104 msgid "If that named device exists, use it.  If not, return an error."
32105 msgstr ""
32106
32107 #. type: =head3
32108 #: ../src/guestfs.pod:1093
32109 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32110 msgstr ""
32111
32112 #. type: textblock
32113 #: ../src/guestfs.pod:1095
32114 msgid ""
32115 "Although the standard naming scheme and automatic translation is useful for "
32116 "simple programs and guestfish scripts, for larger programs it is best not to "
32117 "rely on this mechanism."
32118 msgstr ""
32119
32120 #. type: textblock
32121 #: ../src/guestfs.pod:1099
32122 msgid ""
32123 "Where possible for maximum future portability programs using libguestfs "
32124 "should use these future-proof techniques:"
32125 msgstr ""
32126
32127 #. type: textblock
32128 #: ../src/guestfs.pod:1106
32129 msgid ""
32130 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32131 "device names, and then use those names directly."
32132 msgstr ""
32133
32134 #. type: textblock
32135 #: ../src/guestfs.pod:1109
32136 msgid "Since those device names exist by definition, they will never be translated."
32137 msgstr ""
32138
32139 #. type: textblock
32140 #: ../src/guestfs.pod:1114
32141 msgid ""
32142 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32143 "filesystem labels."
32144 msgstr ""
32145
32146 #. type: =head1
32147 #: ../src/guestfs.pod:1119
32148 msgid "SECURITY"
32149 msgstr ""
32150
32151 #. type: textblock
32152 #: ../src/guestfs.pod:1121
32153 msgid ""
32154 "This section discusses security implications of using libguestfs, "
32155 "particularly with untrusted or malicious guests or disk images."
32156 msgstr ""
32157
32158 #. type: =head2
32159 #: ../src/guestfs.pod:1124
32160 msgid "GENERAL SECURITY CONSIDERATIONS"
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs.pod:1126
32165 msgid ""
32166 "Be careful with any files or data that you download from a guest (by "
32167 "\"download\" we mean not just the L</guestfs_download> command but any "
32168 "command that reads files, filenames, directories or anything else from a "
32169 "disk image).  An attacker could manipulate the data to fool your program "
32170 "into doing the wrong thing.  Consider cases such as:"
32171 msgstr ""
32172
32173 #. type: textblock
32174 #: ../src/guestfs.pod:1136
32175 msgid "the data (file etc) not being present"
32176 msgstr ""
32177
32178 #. type: textblock
32179 #: ../src/guestfs.pod:1140
32180 msgid "being present but empty"
32181 msgstr ""
32182
32183 #. type: textblock
32184 #: ../src/guestfs.pod:1144
32185 msgid "being much larger than normal"
32186 msgstr ""
32187
32188 #. type: textblock
32189 #: ../src/guestfs.pod:1148
32190 msgid "containing arbitrary 8 bit data"
32191 msgstr ""
32192
32193 #. type: textblock
32194 #: ../src/guestfs.pod:1152
32195 msgid "being in an unexpected character encoding"
32196 msgstr ""
32197
32198 #. type: textblock
32199 #: ../src/guestfs.pod:1156
32200 msgid "containing homoglyphs."
32201 msgstr ""
32202
32203 #. type: =head2
32204 #: ../src/guestfs.pod:1160
32205 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32206 msgstr ""
32207
32208 #. type: textblock
32209 #: ../src/guestfs.pod:1162
32210 msgid ""
32211 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32212 "(VFS) module can sometimes be escalated into exploits by deliberately "
32213 "creating a malicious, malformed filesystem.  These exploits are very severe "
32214 "for two reasons.  Firstly there are very many filesystem drivers in the "
32215 "kernel, and many of them are infrequently used and not much developer "
32216 "attention has been paid to the code.  Linux userspace helps potential "
32217 "crackers by detecting the filesystem type and automatically choosing the "
32218 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32219 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32220 "exploit (worse in some ways), giving immediate and total access to the "
32221 "system right down to the hardware level."
32222 msgstr ""
32223
32224 #. type: textblock
32225 #: ../src/guestfs.pod:1175
32226 msgid ""
32227 "That explains why you should never mount a filesystem from an untrusted "
32228 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32229 "inside a qemu virtual machine, usually running as a non-root user.  The "
32230 "attacker would need to write a filesystem which first exploited the kernel, "
32231 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32232 "the libguestfs protocol, and finally to be as serious as the host kernel "
32233 "exploit it would need to escalate its privileges to root.  This multi-step "
32234 "escalation, performed by a static piece of data, is thought to be extremely "
32235 "hard to do, although we never say 'never' about security issues."
32236 msgstr ""
32237
32238 #. type: textblock
32239 #: ../src/guestfs.pod:1186
32240 msgid ""
32241 "In any case callers can reduce the attack surface by forcing the filesystem "
32242 "type when mounting (use L</guestfs_mount_vfs>)."
32243 msgstr ""
32244
32245 #. type: =head2
32246 #: ../src/guestfs.pod:1189
32247 msgid "PROTOCOL SECURITY"
32248 msgstr ""
32249
32250 #. type: textblock
32251 #: ../src/guestfs.pod:1191
32252 msgid ""
32253 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32254 "defined upper message size.  However a program that uses libguestfs must "
32255 "also take care - for example you can write a program that downloads a binary "
32256 "from a disk image and executes it locally, and no amount of protocol "
32257 "security will save you from the consequences."
32258 msgstr ""
32259
32260 #. type: =head2
32261 #: ../src/guestfs.pod:1197
32262 msgid "INSPECTION SECURITY"
32263 msgstr ""
32264
32265 #. type: textblock
32266 #: ../src/guestfs.pod:1199
32267 msgid ""
32268 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32269 "directly from the guest, and these could contain any 8 bit data.  Callers "
32270 "should be careful to escape these before printing them to a structured file "
32271 "(for example, use HTML escaping if creating a web page)."
32272 msgstr ""
32273
32274 #. type: textblock
32275 #: ../src/guestfs.pod:1205
32276 msgid ""
32277 "Guest configuration may be altered in unusual ways by the administrator of "
32278 "the virtual machine, and may not reflect reality (particularly for untrusted "
32279 "or actively malicious guests).  For example we parse the hostname from "
32280 "configuration files like C</etc/sysconfig/network> that we find in the "
32281 "guest, but the guest administrator can easily manipulate these files to "
32282 "provide the wrong hostname."
32283 msgstr ""
32284
32285 #. type: textblock
32286 #: ../src/guestfs.pod:1213
32287 msgid ""
32288 "The inspection API parses guest configuration using two external libraries: "
32289 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32290 "designed to be robust in the face of malicious data, although denial of "
32291 "service attacks are still possible, for example with oversized configuration "
32292 "files."
32293 msgstr ""
32294
32295 #. type: =head2
32296 #: ../src/guestfs.pod:1219
32297 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
32298 msgstr ""
32299
32300 #. type: textblock
32301 #: ../src/guestfs.pod:1221
32302 msgid ""
32303 "Be very cautious about running commands from the guest.  By running a "
32304 "command in the guest, you are giving CPU time to a binary that you do not "
32305 "control, under the same user account as the library, albeit wrapped in qemu "
32306 "virtualization.  More information and alternatives can be found in the "
32307 "section L</RUNNING COMMANDS>."
32308 msgstr ""
32309
32310 #. type: =head2
32311 #: ../src/guestfs.pod:1227
32312 msgid "CVE-2010-3851"
32313 msgstr ""
32314
32315 #. type: textblock
32316 #: ../src/guestfs.pod:1229
32317 msgid "https://bugzilla.redhat.com/642934"
32318 msgstr ""
32319
32320 #. type: textblock
32321 #: ../src/guestfs.pod:1231
32322 msgid ""
32323 "This security bug concerns the automatic disk format detection that qemu "
32324 "does on disk images."
32325 msgstr ""
32326
32327 #. type: textblock
32328 #: ../src/guestfs.pod:1234
32329 msgid ""
32330 "A raw disk image is just the raw bytes, there is no header.  Other disk "
32331 "images like qcow2 contain a special header.  Qemu deals with this by looking "
32332 "for one of the known headers, and if none is found then assuming the disk "
32333 "image must be raw."
32334 msgstr ""
32335
32336 #. type: textblock
32337 #: ../src/guestfs.pod:1239
32338 msgid ""
32339 "This allows a guest which has been given a raw disk image to write some "
32340 "other header.  At next boot (or when the disk image is accessed by "
32341 "libguestfs) qemu would do autodetection and think the disk image format was, "
32342 "say, qcow2 based on the header written by the guest."
32343 msgstr ""
32344
32345 #. type: textblock
32346 #: ../src/guestfs.pod:1244
32347 msgid ""
32348 "This in itself would not be a problem, but qcow2 offers many features, one "
32349 "of which is to allow a disk image to refer to another image (called the "
32350 "\"backing disk\").  It does this by placing the path to the backing disk "
32351 "into the qcow2 header.  This path is not validated and could point to any "
32352 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
32353 "\"holes\" in the qcow2 disk image, which of course is completely under the "
32354 "control of the attacker."
32355 msgstr ""
32356
32357 #. type: textblock
32358 #: ../src/guestfs.pod:1252
32359 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
32360 msgstr ""
32361
32362 #. type: textblock
32363 #: ../src/guestfs.pod:1259
32364 msgid "You have enabled the network or have opened the disk in write mode."
32365 msgstr ""
32366
32367 #. type: textblock
32368 #: ../src/guestfs.pod:1263
32369 msgid ""
32370 "You are also running untrusted code from the guest (see L</RUNNING "
32371 "COMMANDS>)."
32372 msgstr ""
32373
32374 #. type: textblock
32375 #: ../src/guestfs.pod:1268
32376 msgid ""
32377 "The way to avoid this is to specify the expected disk format when adding "
32378 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
32379 "should always do this if the disk is raw format, and it's a good idea for "
32380 "other cases too."
32381 msgstr ""
32382
32383 #. type: textblock
32384 #: ../src/guestfs.pod:1273
32385 msgid ""
32386 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
32387 "format is fetched from libvirt and passed through."
32388 msgstr ""
32389
32390 #. type: textblock
32391 #: ../src/guestfs.pod:1276
32392 msgid ""
32393 "For libguestfs tools, use the I<--format> command line parameter as "
32394 "appropriate."
32395 msgstr ""
32396
32397 #. type: =head1
32398 #: ../src/guestfs.pod:1279
32399 msgid "CONNECTION MANAGEMENT"
32400 msgstr ""
32401
32402 #. type: =head2
32403 #: ../src/guestfs.pod:1281
32404 msgid "guestfs_h *"
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs.pod:1283
32409 msgid ""
32410 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
32411 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
32412 "handle and release all resources used."
32413 msgstr ""
32414
32415 #. type: textblock
32416 #: ../src/guestfs.pod:1287
32417 msgid ""
32418 "For information on using multiple handles and threads, see the section "
32419 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
32420 msgstr ""
32421
32422 #. type: =head2
32423 #: ../src/guestfs.pod:1290
32424 msgid "guestfs_create"
32425 msgstr ""
32426
32427 #. type: verbatim
32428 #: ../src/guestfs.pod:1292
32429 #, no-wrap
32430 msgid ""
32431 " guestfs_h *guestfs_create (void);\n"
32432 "\n"
32433 msgstr ""
32434
32435 #. type: textblock
32436 #: ../src/guestfs.pod:1294
32437 msgid "Create a connection handle."
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs.pod:1296
32442 msgid ""
32443 "On success this returns a non-NULL pointer to a handle.  On error it returns "
32444 "NULL."
32445 msgstr ""
32446
32447 #. type: textblock
32448 #: ../src/guestfs.pod:1299
32449 msgid ""
32450 "You have to \"configure\" the handle after creating it.  This includes "
32451 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
32452 "handle at least once."
32453 msgstr ""
32454
32455 #. type: textblock
32456 #: ../src/guestfs.pod:1303
32457 msgid "After configuring the handle, you have to call L</guestfs_launch>."
32458 msgstr ""
32459
32460 #. type: textblock
32461 #: ../src/guestfs.pod:1305
32462 msgid ""
32463 "You may also want to configure error handling for the handle.  See the "
32464 "L</ERROR HANDLING> section below."
32465 msgstr ""
32466
32467 #. type: =head2
32468 #: ../src/guestfs.pod:1308
32469 msgid "guestfs_close"
32470 msgstr ""
32471
32472 #. type: verbatim
32473 #: ../src/guestfs.pod:1310
32474 #, no-wrap
32475 msgid ""
32476 " void guestfs_close (guestfs_h *g);\n"
32477 "\n"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs.pod:1312
32482 msgid "This closes the connection handle and frees up all resources used."
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs.pod:1314
32487 msgid ""
32488 "If autosync was set on the handle and the handle was launched, then this "
32489 "implicitly calls various functions to unmount filesystems and sync the "
32490 "disk.  See L</guestfs_set_autosync> for more details."
32491 msgstr ""
32492
32493 #. type: textblock
32494 #: ../src/guestfs.pod:1318
32495 msgid "If a close callback was set on the handle, then it is called."
32496 msgstr ""
32497
32498 #. type: =head1
32499 #: ../src/guestfs.pod:1320
32500 msgid "ERROR HANDLING"
32501 msgstr ""
32502
32503 #. type: textblock
32504 #: ../src/guestfs.pod:1322
32505 msgid ""
32506 "API functions can return errors.  For example, almost all functions that "
32507 "return C<int> will return C<-1> to indicate an error."
32508 msgstr ""
32509
32510 #. type: textblock
32511 #: ../src/guestfs.pod:1325
32512 msgid ""
32513 "Additional information is available for errors: an error message string and "
32514 "optionally an error number (errno) if the thing that failed was a system "
32515 "call."
32516 msgstr ""
32517
32518 #. type: textblock
32519 #: ../src/guestfs.pod:1329
32520 msgid ""
32521 "You can get at the additional information about the last error on the handle "
32522 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
32523 "up an error handler with L</guestfs_set_error_handler>."
32524 msgstr ""
32525
32526 #. type: textblock
32527 #: ../src/guestfs.pod:1334
32528 msgid ""
32529 "When the handle is created, a default error handler is installed which "
32530 "prints the error message string to C<stderr>.  For small short-running "
32531 "command line programs it is sufficient to do:"
32532 msgstr ""
32533
32534 #. type: verbatim
32535 #: ../src/guestfs.pod:1338
32536 #, no-wrap
32537 msgid ""
32538 " if (guestfs_launch (g) == -1)\n"
32539 "   exit (EXIT_FAILURE);\n"
32540 "\n"
32541 msgstr ""
32542
32543 #. type: textblock
32544 #: ../src/guestfs.pod:1341
32545 msgid ""
32546 "since the default error handler will ensure that an error message has been "
32547 "printed to C<stderr> before the program exits."
32548 msgstr ""
32549
32550 #. type: textblock
32551 #: ../src/guestfs.pod:1344
32552 msgid ""
32553 "For other programs the caller will almost certainly want to install an "
32554 "alternate error handler or do error handling in-line like this:"
32555 msgstr ""
32556
32557 #. type: verbatim
32558 #: ../src/guestfs.pod:1347
32559 #, no-wrap
32560 msgid ""
32561 " /* This disables the default behaviour of printing errors\n"
32562 "    on stderr. */\n"
32563 " guestfs_set_error_handler (g, NULL, NULL);\n"
32564 " \n"
32565 msgstr ""
32566
32567 #. type: verbatim
32568 #: ../src/guestfs.pod:1351
32569 #, no-wrap
32570 msgid ""
32571 " if (guestfs_launch (g) == -1) {\n"
32572 "   /* Examine the error message and print it etc. */\n"
32573 "   char *msg = guestfs_last_error (g);\n"
32574 "   int errnum = guestfs_last_errno (g);\n"
32575 "   fprintf (stderr, \"%s\", msg);\n"
32576 "   if (errnum != 0)\n"
32577 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
32578 "   fprintf (stderr, \"\\n\");\n"
32579 "   /* ... */\n"
32580 " }\n"
32581 "\n"
32582 msgstr ""
32583
32584 #. type: textblock
32585 #: ../src/guestfs.pod:1362
32586 msgid ""
32587 "Out of memory errors are handled differently.  The default action is to call "
32588 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
32589 "L</guestfs_set_out_of_memory_handler>."
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs.pod:1366
32594 msgid ""
32595 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
32596 "because there is no handle if this happens there is no way to get additional "
32597 "error information.  However L</guestfs_create> is supposed to be a "
32598 "lightweight operation which can only fail because of insufficient memory (it "
32599 "returns NULL in this case)."
32600 msgstr ""
32601
32602 #. type: =head2
32603 #: ../src/guestfs.pod:1372
32604 msgid "guestfs_last_error"
32605 msgstr ""
32606
32607 #. type: verbatim
32608 #: ../src/guestfs.pod:1374
32609 #, no-wrap
32610 msgid ""
32611 " const char *guestfs_last_error (guestfs_h *g);\n"
32612 "\n"
32613 msgstr ""
32614
32615 #. type: textblock
32616 #: ../src/guestfs.pod:1376
32617 msgid ""
32618 "This returns the last error message that happened on C<g>.  If there has not "
32619 "been an error since the handle was created, then this returns C<NULL>."
32620 msgstr ""
32621
32622 #. type: textblock
32623 #: ../src/guestfs.pod:1380
32624 msgid ""
32625 "The lifetime of the returned string is until the next error occurs, or "
32626 "L</guestfs_close> is called."
32627 msgstr ""
32628
32629 #. type: =head2
32630 #: ../src/guestfs.pod:1383
32631 msgid "guestfs_last_errno"
32632 msgstr ""
32633
32634 #. type: verbatim
32635 #: ../src/guestfs.pod:1385
32636 #, no-wrap
32637 msgid ""
32638 " int guestfs_last_errno (guestfs_h *g);\n"
32639 "\n"
32640 msgstr ""
32641
32642 #. type: textblock
32643 #: ../src/guestfs.pod:1387
32644 msgid "This returns the last error number (errno) that happened on C<g>."
32645 msgstr ""
32646
32647 #. type: textblock
32648 #: ../src/guestfs.pod:1389
32649 msgid "If successful, an errno integer not equal to zero is returned."
32650 msgstr ""
32651
32652 #. type: textblock
32653 #: ../src/guestfs.pod:1391
32654 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
32655 msgstr ""
32656
32657 #. type: textblock
32658 #: ../src/guestfs.pod:1398
32659 msgid "There has not been any error on the handle."
32660 msgstr ""
32661
32662 #. type: textblock
32663 #: ../src/guestfs.pod:1402
32664 msgid ""
32665 "There has been an error but the errno was meaningless.  This corresponds to "
32666 "the case where the error did not come from a failed system call, but for "
32667 "some other reason."
32668 msgstr ""
32669
32670 #. type: textblock
32671 #: ../src/guestfs.pod:1408
32672 msgid ""
32673 "There was an error from a failed system call, but for some reason the errno "
32674 "was not captured and returned.  This usually indicates a bug in libguestfs."
32675 msgstr ""
32676
32677 #. type: textblock
32678 #: ../src/guestfs.pod:1414
32679 msgid ""
32680 "Libguestfs tries to convert the errno from inside the applicance into a "
32681 "corresponding errno for the caller (not entirely trivial: the appliance "
32682 "might be running a completely different operating system from the library "
32683 "and error numbers are not standardized across Un*xen).  If this could not be "
32684 "done, then the error is translated to C<EINVAL>.  In practice this should "
32685 "only happen in very rare circumstances."
32686 msgstr ""
32687
32688 #. type: =head2
32689 #: ../src/guestfs.pod:1422
32690 msgid "guestfs_set_error_handler"
32691 msgstr ""
32692
32693 #. type: verbatim
32694 #: ../src/guestfs.pod:1424
32695 #, no-wrap
32696 msgid ""
32697 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
32698 "                                           void *opaque,\n"
32699 "                                           const char *msg);\n"
32700 " void guestfs_set_error_handler (guestfs_h *g,\n"
32701 "                                 guestfs_error_handler_cb cb,\n"
32702 "                                 void *opaque);\n"
32703 "\n"
32704 msgstr ""
32705
32706 #. type: textblock
32707 #: ../src/guestfs.pod:1431
32708 msgid ""
32709 "The callback C<cb> will be called if there is an error.  The parameters "
32710 "passed to the callback are an opaque data pointer and the error message "
32711 "string."
32712 msgstr ""
32713
32714 #. type: textblock
32715 #: ../src/guestfs.pod:1435
32716 msgid ""
32717 "C<errno> is not passed to the callback.  To get that the callback must call "
32718 "L</guestfs_last_errno>."
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs.pod:1438
32723 msgid ""
32724 "Note that the message string C<msg> is freed as soon as the callback "
32725 "function returns, so if you want to stash it somewhere you must make your "
32726 "own copy."
32727 msgstr ""
32728
32729 #. type: textblock
32730 #: ../src/guestfs.pod:1442
32731 msgid "The default handler prints messages on C<stderr>."
32732 msgstr ""
32733
32734 #. type: textblock
32735 #: ../src/guestfs.pod:1444
32736 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
32737 msgstr ""
32738
32739 #. type: =head2
32740 #: ../src/guestfs.pod:1446
32741 msgid "guestfs_get_error_handler"
32742 msgstr ""
32743
32744 #. type: verbatim
32745 #: ../src/guestfs.pod:1448
32746 #, no-wrap
32747 msgid ""
32748 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
32749 "                                                     void **opaque_rtn);\n"
32750 "\n"
32751 msgstr ""
32752
32753 #. type: textblock
32754 #: ../src/guestfs.pod:1451
32755 msgid "Returns the current error handler callback."
32756 msgstr ""
32757
32758 #. type: =head2
32759 #: ../src/guestfs.pod:1453
32760 msgid "guestfs_set_out_of_memory_handler"
32761 msgstr ""
32762
32763 #. type: verbatim
32764 #: ../src/guestfs.pod:1455
32765 #, no-wrap
32766 msgid ""
32767 " typedef void (*guestfs_abort_cb) (void);\n"
32768 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
32769 "                                         guestfs_abort_cb);\n"
32770 "\n"
32771 msgstr ""
32772
32773 #. type: textblock
32774 #: ../src/guestfs.pod:1459
32775 msgid ""
32776 "The callback C<cb> will be called if there is an out of memory situation.  "
32777 "I<Note this callback must not return>."
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs.pod:1462
32782 msgid "The default is to call L<abort(3)>."
32783 msgstr ""
32784
32785 #. type: textblock
32786 #: ../src/guestfs.pod:1464
32787 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
32788 msgstr ""
32789
32790 #. type: =head2
32791 #: ../src/guestfs.pod:1467
32792 msgid "guestfs_get_out_of_memory_handler"
32793 msgstr ""
32794
32795 #. type: verbatim
32796 #: ../src/guestfs.pod:1469
32797 #, no-wrap
32798 msgid ""
32799 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
32800 "\n"
32801 msgstr ""
32802
32803 #. type: textblock
32804 #: ../src/guestfs.pod:1471
32805 msgid "This returns the current out of memory handler."
32806 msgstr ""
32807
32808 #. type: =head1
32809 #: ../src/guestfs.pod:1473
32810 msgid "API CALLS"
32811 msgstr ""
32812
32813 #. type: =head1
32814 #: ../src/guestfs.pod:1477
32815 msgid "STRUCTURES"
32816 msgstr ""
32817
32818 #. type: textblock
32819 #: ../src/guestfs.pod:1479
32820 msgid "@STRUCTS@"
32821 msgstr ""
32822
32823 #. type: =head1
32824 #: ../src/guestfs.pod:1481
32825 msgid "AVAILABILITY"
32826 msgstr ""
32827
32828 #. type: =head2
32829 #: ../src/guestfs.pod:1483
32830 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
32831 msgstr ""
32832
32833 #. type: textblock
32834 #: ../src/guestfs.pod:1485
32835 msgid ""
32836 "Using L</guestfs_available> you can test availability of the following "
32837 "groups of functions.  This test queries the appliance to see if the "
32838 "appliance you are currently using supports the functionality."
32839 msgstr ""
32840
32841 #. type: textblock
32842 #: ../src/guestfs.pod:1490
32843 msgid "@AVAILABILITY@"
32844 msgstr ""
32845
32846 #. type: =head2
32847 #: ../src/guestfs.pod:1492
32848 msgid "GUESTFISH supported COMMAND"
32849 msgstr ""
32850
32851 #. type: textblock
32852 #: ../src/guestfs.pod:1494
32853 msgid ""
32854 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
32855 "prints out the available groups and whether they are supported by this build "
32856 "of libguestfs.  Note however that you have to do C<run> first."
32857 msgstr ""
32858
32859 #. type: =head2
32860 #: ../src/guestfs.pod:1499
32861 msgid "SINGLE CALLS AT COMPILE TIME"
32862 msgstr ""
32863
32864 #. type: textblock
32865 #: ../src/guestfs.pod:1501
32866 msgid ""
32867 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
32868 "function, such as:"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../src/guestfs.pod:1504
32873 #, no-wrap
32874 msgid ""
32875 " #define LIBGUESTFS_HAVE_DD 1\n"
32876 "\n"
32877 msgstr ""
32878
32879 #. type: textblock
32880 #: ../src/guestfs.pod:1506
32881 msgid "if L</guestfs_dd> is available."
32882 msgstr ""
32883
32884 #. type: textblock
32885 #: ../src/guestfs.pod:1508
32886 msgid ""
32887 "Before version 1.5.8, if you needed to test whether a single libguestfs "
32888 "function is available at compile time, we recommended using build tools such "
32889 "as autoconf or cmake.  For example in autotools you could use:"
32890 msgstr ""
32891
32892 #. type: verbatim
32893 #: ../src/guestfs.pod:1513
32894 #, no-wrap
32895 msgid ""
32896 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
32897 " AC_CHECK_FUNCS([guestfs_dd])\n"
32898 "\n"
32899 msgstr ""
32900
32901 #. type: textblock
32902 #: ../src/guestfs.pod:1516
32903 msgid ""
32904 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
32905 "in your program."
32906 msgstr ""
32907
32908 #. type: =head2
32909 #: ../src/guestfs.pod:1519
32910 msgid "SINGLE CALLS AT RUN TIME"
32911 msgstr ""
32912
32913 #. type: textblock
32914 #: ../src/guestfs.pod:1521
32915 msgid ""
32916 "Testing at compile time doesn't guarantee that a function really exists in "
32917 "the library.  The reason is that you might be dynamically linked against a "
32918 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
32919 "This situation unfortunately results in a segmentation fault, which is a "
32920 "shortcoming of the C dynamic linking system itself."
32921 msgstr ""
32922
32923 #. type: textblock
32924 #: ../src/guestfs.pod:1528
32925 msgid ""
32926 "You can use L<dlopen(3)> to test if a function is available at run time, as "
32927 "in this example program (note that you still need the compile time check as "
32928 "well):"
32929 msgstr ""
32930
32931 #. type: verbatim
32932 #: ../src/guestfs.pod:1532
32933 #, no-wrap
32934 msgid ""
32935 " #include <stdio.h>\n"
32936 " #include <stdlib.h>\n"
32937 " #include <unistd.h>\n"
32938 " #include <dlfcn.h>\n"
32939 " #include <guestfs.h>\n"
32940 " \n"
32941 msgstr ""
32942
32943 #. type: verbatim
32944 #: ../src/guestfs.pod:1538
32945 #, no-wrap
32946 msgid ""
32947 " main ()\n"
32948 " {\n"
32949 " #ifdef LIBGUESTFS_HAVE_DD\n"
32950 "   void *dl;\n"
32951 "   int has_function;\n"
32952 " \n"
32953 msgstr ""
32954
32955 #. type: verbatim
32956 #: ../src/guestfs.pod:1544
32957 #, no-wrap
32958 msgid ""
32959 "   /* Test if the function guestfs_dd is really available. */\n"
32960 "   dl = dlopen (NULL, RTLD_LAZY);\n"
32961 "   if (!dl) {\n"
32962 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
32963 "     exit (EXIT_FAILURE);\n"
32964 "   }\n"
32965 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
32966 "   dlclose (dl);\n"
32967 " \n"
32968 msgstr ""
32969
32970 #. type: verbatim
32971 #: ../src/guestfs.pod:1553
32972 #, no-wrap
32973 msgid ""
32974 "   if (!has_function)\n"
32975 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
32976 "   else {\n"
32977 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
32978 "     /* Now it's safe to call\n"
32979 "     guestfs_dd (g, \"foo\", \"bar\");\n"
32980 "     */\n"
32981 "   }\n"
32982 " #else\n"
32983 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
32984 " #endif\n"
32985 "  }\n"
32986 "\n"
32987 msgstr ""
32988
32989 #. type: textblock
32990 #: ../src/guestfs.pod:1566
32991 msgid ""
32992 "You may think the above is an awful lot of hassle, and it is.  There are "
32993 "other ways outside of the C linking system to ensure that this kind of "
32994 "incompatibility never arises, such as using package versioning:"
32995 msgstr ""
32996
32997 #. type: verbatim
32998 #: ../src/guestfs.pod:1571
32999 #, no-wrap
33000 msgid ""
33001 " Requires: libguestfs >= 1.0.80\n"
33002 "\n"
33003 msgstr ""
33004
33005 #. type: =head1
33006 #: ../src/guestfs.pod:1573
33007 msgid "CALLS WITH OPTIONAL ARGUMENTS"
33008 msgstr ""
33009
33010 #. type: textblock
33011 #: ../src/guestfs.pod:1575
33012 msgid ""
33013 "A recent feature of the API is the introduction of calls which take optional "
33014 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
33015 "takes variable arguments (ie. C<...>), as in this example:"
33016 msgstr ""
33017
33018 #. type: verbatim
33019 #: ../src/guestfs.pod:1580
33020 #, no-wrap
33021 msgid ""
33022 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
33023 "\n"
33024 msgstr ""
33025
33026 #. type: textblock
33027 #: ../src/guestfs.pod:1582
33028 msgid ""
33029 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
33030 "call with no optional arguments specified:"
33031 msgstr ""
33032
33033 #. type: verbatim
33034 #: ../src/guestfs.pod:1585
33035 #, no-wrap
33036 msgid ""
33037 " guestfs_add_drive_opts (g, filename, -1);\n"
33038 "\n"
33039 msgstr ""
33040
33041 #. type: textblock
33042 #: ../src/guestfs.pod:1587
33043 msgid "With a single optional argument:"
33044 msgstr ""
33045
33046 #. type: verbatim
33047 #: ../src/guestfs.pod:1589
33048 #, no-wrap
33049 msgid ""
33050 " guestfs_add_drive_opts (g, filename,\n"
33051 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33052 "                         -1);\n"
33053 "\n"
33054 msgstr ""
33055
33056 #. type: textblock
33057 #: ../src/guestfs.pod:1593
33058 msgid "With two:"
33059 msgstr ""
33060
33061 #. type: verbatim
33062 #: ../src/guestfs.pod:1595
33063 #, no-wrap
33064 msgid ""
33065 " guestfs_add_drive_opts (g, filename,\n"
33066 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33067 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33068 "                         -1);\n"
33069 "\n"
33070 msgstr ""
33071
33072 #. type: textblock
33073 #: ../src/guestfs.pod:1600
33074 msgid ""
33075 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33076 "happen!"
33077 msgstr ""
33078
33079 #. type: =head2
33080 #: ../src/guestfs.pod:1603
33081 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33082 msgstr ""
33083
33084 #. type: textblock
33085 #: ../src/guestfs.pod:1605
33086 msgid ""
33087 "The second variant has the same name with the suffix C<_va>, which works the "
33088 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33089 "example function, this is declared:"
33090 msgstr ""
33091
33092 #. type: verbatim
33093 #: ../src/guestfs.pod:1609
33094 #, no-wrap
33095 msgid ""
33096 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33097 "                                va_list args);\n"
33098 "\n"
33099 msgstr ""
33100
33101 #. type: =head2
33102 #: ../src/guestfs.pod:1612
33103 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs.pod:1614
33108 msgid ""
33109 "The third variant is useful where you need to construct these calls.  You "
33110 "pass in a structure where you fill in the optional fields.  The structure "
33111 "has a bitmask as the first element which you must set to indicate which "
33112 "fields you have filled in.  For our example function the structure and call "
33113 "are declared:"
33114 msgstr ""
33115
33116 #. type: verbatim
33117 #: ../src/guestfs.pod:1620
33118 #, no-wrap
33119 msgid ""
33120 " struct guestfs_add_drive_opts_argv {\n"
33121 "   uint64_t bitmask;\n"
33122 "   int readonly;\n"
33123 "   const char *format;\n"
33124 "   /* ... */\n"
33125 " };\n"
33126 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33127 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33128 "\n"
33129 msgstr ""
33130
33131 #. type: textblock
33132 #: ../src/guestfs.pod:1629
33133 msgid "You could call it like this:"
33134 msgstr ""
33135
33136 #. type: verbatim
33137 #: ../src/guestfs.pod:1631
33138 #, no-wrap
33139 msgid ""
33140 " struct guestfs_add_drive_opts_argv optargs = {\n"
33141 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33142 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33143 "   .readonly = 1,\n"
33144 "   .format = \"qcow2\"\n"
33145 " };\n"
33146 " \n"
33147 msgstr ""
33148
33149 #. type: verbatim
33150 #: ../src/guestfs.pod:1638
33151 #, no-wrap
33152 msgid ""
33153 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33154 "\n"
33155 msgstr ""
33156
33157 #. type: textblock
33158 #: ../src/guestfs.pod:1646
33159 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33160 msgstr ""
33161
33162 #. type: textblock
33163 #: ../src/guestfs.pod:1651
33164 msgid "You do not need to fill in all fields of the structure."
33165 msgstr ""
33166
33167 #. type: textblock
33168 #: ../src/guestfs.pod:1655
33169 msgid ""
33170 "There must be a one-to-one correspondence between fields of the structure "
33171 "that are filled in, and bits set in the bitmask."
33172 msgstr ""
33173
33174 #. type: =head2
33175 #: ../src/guestfs.pod:1660
33176 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33177 msgstr ""
33178
33179 #. type: textblock
33180 #: ../src/guestfs.pod:1662
33181 msgid ""
33182 "In other languages, optional arguments are expressed in the way that is "
33183 "natural for that language.  We refer you to the language-specific "
33184 "documentation for more details on that."
33185 msgstr ""
33186
33187 #. type: textblock
33188 #: ../src/guestfs.pod:1666
33189 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33190 msgstr ""
33191
33192 #. type: =head2
33193 #: ../src/guestfs.pod:1668
33194 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33195 msgstr ""
33196
33197 #. type: textblock
33198 #: ../src/guestfs.pod:1670
33199 msgid ""
33200 "B<Note:> This section documents the generic event mechanism introduced in "
33201 "libguestfs 1.10, which you should use in new code if possible.  The old "
33202 "functions C<guestfs_set_log_message_callback>, "
33203 "C<guestfs_set_subprocess_quit_callback>, "
33204 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33205 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33206 "page.  Because of the ABI guarantee, the old functions continue to work."
33207 msgstr ""
33208
33209 #. type: textblock
33210 #: ../src/guestfs.pod:1679
33211 msgid ""
33212 "Handles generate events when certain things happen, such as log messages "
33213 "being generated, progress messages during long-running operations, or the "
33214 "handle being closed.  The API calls described below let you register a "
33215 "callback to be called when events happen.  You can register multiple "
33216 "callbacks (for the same, different or overlapping sets of events), and "
33217 "individually remove callbacks.  If callbacks are not removed, then they "
33218 "remain in force until the handle is closed."
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs.pod:1687
33223 msgid ""
33224 "In the current implementation, events are only generated synchronously: that "
33225 "means that events (and hence callbacks) can only happen while you are in the "
33226 "middle of making another libguestfs call.  The callback is called in the "
33227 "same thread."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs.pod:1692
33232 msgid ""
33233 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33234 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33235 msgstr ""
33236
33237 #. type: =head3
33238 #: ../src/guestfs.pod:1696
33239 msgid "CLASSES OF EVENTS"
33240 msgstr ""
33241
33242 #. type: =item
33243 #: ../src/guestfs.pod:1700
33244 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33245 msgstr ""
33246
33247 #. type: textblock
33248 #: ../src/guestfs.pod:1703
33249 msgid ""
33250 "The callback function will be called while the handle is being closed "
33251 "(synchronously from L</guestfs_close>)."
33252 msgstr ""
33253
33254 #. type: textblock
33255 #: ../src/guestfs.pod:1706
33256 msgid ""
33257 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33258 "handles that are open when the program exits.  This means that this callback "
33259 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33260 "problems in higher-level languages (eg. if your HLL interpreter has already "
33261 "been cleaned up by the time this is called, and if your callback then jumps "
33262 "into some HLL function)."
33263 msgstr ""
33264
33265 #. type: textblock
33266 #: ../src/guestfs.pod:1713
33267 msgid ""
33268 "If no callback is registered: the handle is closed without any callback "
33269 "being invoked."
33270 msgstr ""
33271
33272 #. type: =item
33273 #: ../src/guestfs.pod:1716
33274 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33275 msgstr ""
33276
33277 #. type: textblock
33278 #: ../src/guestfs.pod:1719
33279 msgid ""
33280 "The callback function will be called when the child process quits, either "
33281 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33282 "corresponds to a transition from any state to the CONFIG state)."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732
33287 msgid "If no callback is registered: the event is ignored."
33288 msgstr ""
33289
33290 #. type: =item
33291 #: ../src/guestfs.pod:1725
33292 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
33293 msgstr ""
33294
33295 #. type: textblock
33296 #: ../src/guestfs.pod:1728
33297 msgid ""
33298 "The callback function will be called when the child process becomes ready "
33299 "first time after it has been launched.  (This corresponds to a transition "
33300 "from LAUNCHING to the READY state)."
33301 msgstr ""
33302
33303 #. type: =item
33304 #: ../src/guestfs.pod:1734
33305 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
33306 msgstr ""
33307
33308 #. type: textblock
33309 #: ../src/guestfs.pod:1737
33310 msgid ""
33311 "Some long-running operations can generate progress messages.  If this "
33312 "callback is registered, then it will be called each time a progress message "
33313 "is generated (usually two seconds after the operation started, and three "
33314 "times per second thereafter until it completes, although the frequency may "
33315 "change in future versions)."
33316 msgstr ""
33317
33318 #. type: textblock
33319 #: ../src/guestfs.pod:1743
33320 msgid ""
33321 "The callback receives in the payload four unsigned 64 bit numbers which are "
33322 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
33323 msgstr ""
33324
33325 #. type: textblock
33326 #: ../src/guestfs.pod:1746
33327 msgid ""
33328 "The units of C<total> are not defined, although for some operations C<total> "
33329 "may relate in some way to the amount of data to be transferred (eg. in bytes "
33330 "or megabytes), and C<position> may be the portion which has been "
33331 "transferred."
33332 msgstr ""
33333
33334 #. type: textblock
33335 #: ../src/guestfs.pod:1751
33336 msgid "The only defined and stable parts of the API are:"
33337 msgstr ""
33338
33339 #. type: textblock
33340 #: ../src/guestfs.pod:1757
33341 msgid ""
33342 "The callback can display to the user some type of progress bar or indicator "
33343 "which shows the ratio of C<position>:C<total>."
33344 msgstr ""
33345
33346 #. type: textblock
33347 #: ../src/guestfs.pod:1762
33348 msgid "0 E<lt>= C<position> E<lt>= C<total>"
33349 msgstr ""
33350
33351 #. type: textblock
33352 #: ../src/guestfs.pod:1766
33353 msgid ""
33354 "If any progress notification is sent during a call, then a final progress "
33355 "notification is always sent when C<position> = C<total> (I<unless> the call "
33356 "fails with an error)."
33357 msgstr ""
33358
33359 #. type: textblock
33360 #: ../src/guestfs.pod:1770
33361 msgid ""
33362 "This is to simplify caller code, so callers can easily set the progress "
33363 "indicator to \"100%\" at the end of the operation, without requiring special "
33364 "code to detect this case."
33365 msgstr ""
33366
33367 #. type: textblock
33368 #: ../src/guestfs.pod:1776
33369 msgid ""
33370 "For some calls we are unable to estimate the progress of the call, but we "
33371 "can still generate progress messages to indicate activity.  This is known as "
33372 "\"pulse mode\", and is directly supported by certain progress bar "
33373 "implementations (eg. GtkProgressBar)."
33374 msgstr ""
33375
33376 #. type: textblock
33377 #: ../src/guestfs.pod:1781
33378 msgid ""
33379 "For these calls, zero or more progress messages are generated with "
33380 "C<position = 0> and C<total = 1>, followed by a final message with "
33381 "C<position = total = 1>."
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs.pod:1785
33386 msgid ""
33387 "As noted above, if the call fails with an error then the final message may "
33388 "not be generated."
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../src/guestfs.pod:1790
33393 msgid ""
33394 "The callback also receives the procedure number (C<proc_nr>) and serial "
33395 "number (C<serial>) of the call.  These are only useful for debugging "
33396 "protocol issues, and the callback can normally ignore them.  The callback "
33397 "may want to print these numbers in error messages or debugging messages."
33398 msgstr ""
33399
33400 #. type: textblock
33401 #: ../src/guestfs.pod:1796
33402 msgid "If no callback is registered: progress messages are discarded."
33403 msgstr ""
33404
33405 #. type: =item
33406 #: ../src/guestfs.pod:1798
33407 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
33408 msgstr ""
33409
33410 #. type: textblock
33411 #: ../src/guestfs.pod:1801
33412 msgid ""
33413 "The callback function is called whenever a log message is generated by qemu, "
33414 "the appliance kernel, guestfsd (daemon), or utility programs."
33415 msgstr ""
33416
33417 #. type: textblock
33418 #: ../src/guestfs.pod:1804
33419 msgid ""
33420 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
33421 "(L</guestfs_launch>) then additional debug messages are generated."
33422 msgstr ""
33423
33424 #. type: textblock
33425 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
33426 msgid ""
33427 "If no callback is registered: the messages are discarded unless the verbose "
33428 "flag is set in which case they are sent to stderr.  You can override the "
33429 "printing of verbose messages to stderr by setting up a callback."
33430 msgstr ""
33431
33432 #. type: =item
33433 #: ../src/guestfs.pod:1812
33434 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
33435 msgstr ""
33436
33437 #. type: textblock
33438 #: ../src/guestfs.pod:1815
33439 msgid ""
33440 "The callback function is called whenever a log message is generated by the "
33441 "library part of libguestfs."
33442 msgstr ""
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:1818
33446 msgid ""
33447 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
33448 "messages are generated."
33449 msgstr ""
33450
33451 #. type: =item
33452 #: ../src/guestfs.pod:1826
33453 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
33454 msgstr ""
33455
33456 #. type: textblock
33457 #: ../src/guestfs.pod:1829
33458 msgid ""
33459 "The callback function is called whenever a trace message is generated.  This "
33460 "only applies if the trace flag (L</guestfs_set_trace>) is set."
33461 msgstr ""
33462
33463 #. type: textblock
33464 #: ../src/guestfs.pod:1832
33465 msgid ""
33466 "If no callback is registered: the messages are sent to stderr.  You can "
33467 "override the printing of trace messages to stderr by setting up a callback."
33468 msgstr ""
33469
33470 #. type: =head3
33471 #: ../src/guestfs.pod:1838
33472 msgid "guestfs_set_event_callback"
33473 msgstr ""
33474
33475 #. type: verbatim
33476 #: ../src/guestfs.pod:1840
33477 #, no-wrap
33478 msgid ""
33479 " int guestfs_set_event_callback (guestfs_h *g,\n"
33480 "                                 guestfs_event_callback cb,\n"
33481 "                                 uint64_t event_bitmask,\n"
33482 "                                 int flags,\n"
33483 "                                 void *opaque);\n"
33484 "\n"
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs.pod:1846
33489 msgid ""
33490 "This function registers a callback (C<cb>) for all event classes in the "
33491 "C<event_bitmask>."
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs.pod:1849
33496 msgid ""
33497 "For example, to register for all log message events, you could call this "
33498 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
33499 "To register a single callback for all possible classes of events, use "
33500 "C<GUESTFS_EVENT_ALL>."
33501 msgstr ""
33502
33503 #. type: textblock
33504 #: ../src/guestfs.pod:1855
33505 msgid "C<flags> should always be passed as 0."
33506 msgstr ""
33507
33508 #. type: textblock
33509 #: ../src/guestfs.pod:1857
33510 msgid ""
33511 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
33512 "it for any purpose."
33513 msgstr ""
33514
33515 #. type: textblock
33516 #: ../src/guestfs.pod:1860
33517 msgid ""
33518 "The return value is the event handle (an integer) which you can use to "
33519 "delete the callback (see below)."
33520 msgstr ""
33521
33522 #. type: textblock
33523 #: ../src/guestfs.pod:1863
33524 msgid ""
33525 "If there is an error, this function returns C<-1>, and sets the error in the "
33526 "handle in the usual way (see L</guestfs_last_error> etc.)"
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:1866
33531 msgid ""
33532 "Callbacks remain in effect until they are deleted, or until the handle is "
33533 "closed."
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs.pod:1869
33538 msgid ""
33539 "In the case where multiple callbacks are registered for a particular event "
33540 "class, all of the callbacks are called.  The order in which multiple "
33541 "callbacks are called is not defined."
33542 msgstr ""
33543
33544 #. type: =head3
33545 #: ../src/guestfs.pod:1873
33546 msgid "guestfs_delete_event_callback"
33547 msgstr ""
33548
33549 #. type: verbatim
33550 #: ../src/guestfs.pod:1875
33551 #, no-wrap
33552 msgid ""
33553 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
33554 "\n"
33555 msgstr ""
33556
33557 #. type: textblock
33558 #: ../src/guestfs.pod:1877
33559 msgid ""
33560 "Delete a callback that was previously registered.  C<event_handle> should be "
33561 "the integer that was returned by a previous call to "
33562 "C<guestfs_set_event_callback> on the same handle."
33563 msgstr ""
33564
33565 #. type: =head3
33566 #: ../src/guestfs.pod:1881
33567 msgid "guestfs_event_callback"
33568 msgstr ""
33569
33570 #. type: verbatim
33571 #: ../src/guestfs.pod:1883
33572 #, no-wrap
33573 msgid ""
33574 " typedef void (*guestfs_event_callback) (\n"
33575 "                  guestfs_h *g,\n"
33576 "                  void *opaque,\n"
33577 "                  uint64_t event,\n"
33578 "                  int event_handle,\n"
33579 "                  int flags,\n"
33580 "                  const char *buf, size_t buf_len,\n"
33581 "                  const uint64_t *array, size_t array_len);\n"
33582 "\n"
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs.pod:1892
33587 msgid "This is the type of the event callback function that you have to provide."
33588 msgstr ""
33589
33590 #. type: textblock
33591 #: ../src/guestfs.pod:1895
33592 msgid ""
33593 "The basic parameters are: the handle (C<g>), the opaque user pointer "
33594 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
33595 "handle, and C<flags> which in the current API you should ignore."
33596 msgstr ""
33597
33598 #. type: textblock
33599 #: ../src/guestfs.pod:1899
33600 msgid ""
33601 "The remaining parameters contain the event payload (if any).  Each event may "
33602 "contain a payload, which usually relates to the event class, but for future "
33603 "proofing your code should be written to handle any payload for any event "
33604 "class."
33605 msgstr ""
33606
33607 #. type: textblock
33608 #: ../src/guestfs.pod:1904
33609 msgid ""
33610 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
33611 "there is no message buffer).  Note that this message buffer can contain "
33612 "arbitrary 8 bit data, including NUL bytes."
33613 msgstr ""
33614
33615 #. type: textblock
33616 #: ../src/guestfs.pod:1908
33617 msgid ""
33618 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
33619 "moment this is only used for progress messages."
33620 msgstr ""
33621
33622 #. type: =head3
33623 #: ../src/guestfs.pod:1911
33624 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
33625 msgstr ""
33626
33627 #. type: textblock
33628 #: ../src/guestfs.pod:1913
33629 msgid ""
33630 "One motivation for the generic event API was to allow GUI programs to "
33631 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
33632 "unconditionally to C<stderr>."
33633 msgstr ""
33634
33635 #. type: textblock
33636 #: ../src/guestfs.pod:1917
33637 msgid ""
33638 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
33639 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
33640 "messages are not events; you must capture error messages separately)."
33641 msgstr ""
33642
33643 #. type: textblock
33644 #: ../src/guestfs.pod:1922
33645 msgid ""
33646 "Programs have to set up a callback to capture the classes of events of "
33647 "interest:"
33648 msgstr ""
33649
33650 #. type: verbatim
33651 #: ../src/guestfs.pod:1925
33652 #, no-wrap
33653 msgid ""
33654 " int eh =\n"
33655 "   guestfs_set_event_callback\n"
33656 "     (g, message_callback,\n"
33657 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
33658 "      GUESTFS_EVENT_TRACE,\n"
33659 "      0, NULL) == -1)\n"
33660 " if (eh == -1) {\n"
33661 "   // handle error in the usual way\n"
33662 " }\n"
33663 "\n"
33664 msgstr ""
33665
33666 #. type: textblock
33667 #: ../src/guestfs.pod:1935
33668 msgid ""
33669 "The callback can then direct messages to the appropriate place.  In this "
33670 "example, messages are directed to syslog:"
33671 msgstr ""
33672
33673 #. type: verbatim
33674 #: ../src/guestfs.pod:1938
33675 #, no-wrap
33676 msgid ""
33677 " static void\n"
33678 " message_callback (\n"
33679 "         guestfs_h *g,\n"
33680 "         void *opaque,\n"
33681 "         uint64_t event,\n"
33682 "         int event_handle,\n"
33683 "         int flags,\n"
33684 "         const char *buf, size_t buf_len,\n"
33685 "         const uint64_t *array, size_t array_len)\n"
33686 " {\n"
33687 "   const int priority = LOG_USER|LOG_INFO;\n"
33688 "   if (buf_len > 0)\n"
33689 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
33690 " }\n"
33691 "\n"
33692 msgstr ""
33693
33694 #. type: =head1
33695 #: ../src/guestfs.pod:1953
33696 msgid "CANCELLING LONG TRANSFERS"
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:1955
33701 msgid ""
33702 "Some operations can be cancelled by the caller while they are in progress.  "
33703 "Currently only operations that involve uploading or downloading data can be "
33704 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
33705 "parameters in the generator)."
33706 msgstr ""
33707
33708 #. type: =head2
33709 #: ../src/guestfs.pod:1960
33710 msgid "guestfs_user_cancel"
33711 msgstr ""
33712
33713 #. type: verbatim
33714 #: ../src/guestfs.pod:1962
33715 #, no-wrap
33716 msgid ""
33717 " void guestfs_user_cancel (guestfs_h *g);\n"
33718 "\n"
33719 msgstr ""
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:1964
33723 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
33724 msgstr ""
33725
33726 #. type: textblock
33727 #: ../src/guestfs.pod:1967
33728 msgid ""
33729 "Unlike most other libguestfs calls, this function is signal safe and thread "
33730 "safe.  You can call it from a signal handler or from another thread, without "
33731 "needing to do any locking."
33732 msgstr ""
33733
33734 #. type: textblock
33735 #: ../src/guestfs.pod:1971
33736 msgid ""
33737 "The transfer that was in progress (if there is one) will stop shortly "
33738 "afterwards, and will return an error.  The errno (see "
33739 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
33740 "out if the operation was cancelled or failed because of another error."
33741 msgstr ""
33742
33743 #. type: textblock
33744 #: ../src/guestfs.pod:1977
33745 msgid ""
33746 "No cleanup is performed: for example, if a file was being uploaded then "
33747 "after cancellation there may be a partially uploaded file.  It is the "
33748 "caller's responsibility to clean up if necessary."
33749 msgstr ""
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:1981
33753 msgid "There are two common places that you might call C<guestfs_user_cancel>."
33754 msgstr ""
33755
33756 #. type: textblock
33757 #: ../src/guestfs.pod:1983
33758 msgid ""
33759 "In an interactive text-based program, you might call it from a C<SIGINT> "
33760 "signal handler so that pressing C<^C> cancels the current operation.  (You "
33761 "also need to call L</guestfs_set_pgroup> so that child processes don't "
33762 "receive the C<^C> signal)."
33763 msgstr ""
33764
33765 #. type: textblock
33766 #: ../src/guestfs.pod:1988
33767 msgid ""
33768 "In a graphical program, when the main thread is displaying a progress bar "
33769 "with a cancel button, wire up the cancel button to call this function."
33770 msgstr ""
33771
33772 #. type: =head1
33773 #: ../src/guestfs.pod:1992
33774 msgid "PRIVATE DATA AREA"
33775 msgstr ""
33776
33777 #. type: textblock
33778 #: ../src/guestfs.pod:1994
33779 msgid ""
33780 "You can attach named pieces of private data to the libguestfs handle, fetch "
33781 "them by name, and walk over them, for the lifetime of the handle.  This is "
33782 "called the private data area and is only available from the C API."
33783 msgstr ""
33784
33785 #. type: textblock
33786 #: ../src/guestfs.pod:1999
33787 msgid "To attach a named piece of data, use the following call:"
33788 msgstr ""
33789
33790 #. type: verbatim
33791 #: ../src/guestfs.pod:2001
33792 #, no-wrap
33793 msgid ""
33794 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
33795 "\n"
33796 msgstr ""
33797
33798 #. type: textblock
33799 #: ../src/guestfs.pod:2003
33800 msgid ""
33801 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
33802 "pointer (which can be C<NULL>).  Any previous item with the same key is "
33803 "overwritten."
33804 msgstr ""
33805
33806 #. type: textblock
33807 #: ../src/guestfs.pod:2007
33808 msgid ""
33809 "You can use any C<key> you want, but your key should I<not> start with an "
33810 "underscore character.  Keys beginning with an underscore character are "
33811 "reserved for internal libguestfs purposes (eg. for implementing language "
33812 "bindings).  It is recommended that you prefix the key with some unique "
33813 "string to avoid collisions with other users."
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:2013
33818 msgid "To retrieve the pointer, use:"
33819 msgstr ""
33820
33821 #. type: verbatim
33822 #: ../src/guestfs.pod:2015
33823 #, no-wrap
33824 msgid ""
33825 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
33826 "\n"
33827 msgstr ""
33828
33829 #. type: textblock
33830 #: ../src/guestfs.pod:2017
33831 msgid ""
33832 "This function returns C<NULL> if either no data is found associated with "
33833 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
33834 "C<NULL>."
33835 msgstr ""
33836
33837 #. type: textblock
33838 #: ../src/guestfs.pod:2021
33839 msgid ""
33840 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
33841 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
33842 "all.  In particular, libguestfs does I<not> try to free the data when the "
33843 "handle is closed.  If the data must be freed, then the caller must either "
33844 "free it before calling L</guestfs_close> or must set up a close callback to "
33845 "do it (see L</GUESTFS_EVENT_CLOSE>)."
33846 msgstr ""
33847
33848 #. type: textblock
33849 #: ../src/guestfs.pod:2028
33850 msgid "To walk over all entries, use these two functions:"
33851 msgstr ""
33852
33853 #. type: verbatim
33854 #: ../src/guestfs.pod:2030
33855 #, no-wrap
33856 msgid ""
33857 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
33858 "\n"
33859 msgstr ""
33860
33861 #. type: verbatim
33862 #: ../src/guestfs.pod:2032
33863 #, no-wrap
33864 msgid ""
33865 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
33866 "\n"
33867 msgstr ""
33868
33869 #. type: textblock
33870 #: ../src/guestfs.pod:2034
33871 msgid ""
33872 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
33873 "not have any particular meaning -- keys are not returned in any defined "
33874 "order).  A pointer to the key is returned in C<*key_rtn> and the "
33875 "corresponding data pointer is returned from the function.  C<NULL> is "
33876 "returned if there are no keys stored in the handle."
33877 msgstr ""
33878
33879 #. type: textblock
33880 #: ../src/guestfs.pod:2040
33881 msgid ""
33882 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
33883 "value of this function is also C<NULL> is there are no further entries to "
33884 "return."
33885 msgstr ""
33886
33887 #. type: textblock
33888 #: ../src/guestfs.pod:2044
33889 msgid "Notes about walking over entries:"
33890 msgstr ""
33891
33892 #. type: textblock
33893 #: ../src/guestfs.pod:2050
33894 msgid "You must not call C<guestfs_set_private> while walking over the entries."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:2055
33899 msgid ""
33900 "The handle maintains an internal iterator which is reset when you call "
33901 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
33902 "call C<guestfs_set_private>."
33903 msgstr ""
33904
33905 #. type: textblock
33906 #: ../src/guestfs.pod:2061
33907 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
33908 msgstr ""
33909
33910 #. type: verbatim
33911 #: ../src/guestfs.pod:2063
33912 #, no-wrap
33913 msgid ""
33914 " guestfs_set_private (g, key, NULL);\n"
33915 "\n"
33916 msgstr ""
33917
33918 #. type: textblock
33919 #: ../src/guestfs.pod:2065
33920 msgid "then that C<key> is not returned when walking."
33921 msgstr ""
33922
33923 #. type: textblock
33924 #: ../src/guestfs.pod:2069
33925 msgid ""
33926 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
33927 "C<guestfs_next_private> or C<guestfs_set_private>."
33928 msgstr ""
33929
33930 #. type: textblock
33931 #: ../src/guestfs.pod:2075
33932 msgid ""
33933 "The following example code shows how to print all keys and data pointers "
33934 "that are associated with the handle C<g>:"
33935 msgstr ""
33936
33937 #. type: verbatim
33938 #: ../src/guestfs.pod:2078
33939 #, no-wrap
33940 msgid ""
33941 " const char *key;\n"
33942 " void *data = guestfs_first_private (g, &key);\n"
33943 " while (data != NULL)\n"
33944 "   {\n"
33945 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
33946 "     data = guestfs_next_private (g, &key);\n"
33947 "   }\n"
33948 "\n"
33949 msgstr ""
33950
33951 #. type: textblock
33952 #: ../src/guestfs.pod:2086
33953 msgid ""
33954 "More commonly you are only interested in keys that begin with an "
33955 "application-specific prefix C<foo_>.  Modify the loop like so:"
33956 msgstr ""
33957
33958 #. type: verbatim
33959 #: ../src/guestfs.pod:2089
33960 #, no-wrap
33961 msgid ""
33962 " const char *key;\n"
33963 " void *data = guestfs_first_private (g, &key);\n"
33964 " while (data != NULL)\n"
33965 "   {\n"
33966 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33967 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
33968 "     data = guestfs_next_private (g, &key);\n"
33969 "   }\n"
33970 "\n"
33971 msgstr ""
33972
33973 #. type: textblock
33974 #: ../src/guestfs.pod:2098
33975 msgid ""
33976 "If you need to modify keys while walking, then you have to jump back to the "
33977 "beginning of the loop.  For example, to delete all keys prefixed with "
33978 "C<foo_>:"
33979 msgstr ""
33980
33981 #. type: verbatim
33982 #: ../src/guestfs.pod:2102
33983 #, no-wrap
33984 msgid ""
33985 "  const char *key;\n"
33986 "  void *data;\n"
33987 " again:\n"
33988 "  data = guestfs_first_private (g, &key);\n"
33989 "  while (data != NULL)\n"
33990 "    {\n"
33991 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33992 "        {\n"
33993 "          guestfs_set_private (g, key, NULL);\n"
33994 "          /* note that 'key' pointer is now invalid, and so is\n"
33995 "             the internal iterator */\n"
33996 "          goto again;\n"
33997 "        }\n"
33998 "      data = guestfs_next_private (g, &key);\n"
33999 "    }\n"
34000 "\n"
34001 msgstr ""
34002
34003 #. type: textblock
34004 #: ../src/guestfs.pod:2118
34005 msgid ""
34006 "Note that the above loop is guaranteed to terminate because the keys are "
34007 "being deleted, but other manipulations of keys within the loop might not "
34008 "terminate unless you also maintain an indication of which keys have been "
34009 "visited."
34010 msgstr ""
34011
34012 #. type: =end
34013 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2128
34014 msgid "html"
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:2125
34019 msgid ""
34020 "<!-- old anchor for the next section --> <a "
34021 "name=\"state_machine_and_low_level_event_api\"/>"
34022 msgstr ""
34023
34024 #. type: =head1
34025 #: ../src/guestfs.pod:2130
34026 msgid "ARCHITECTURE"
34027 msgstr ""
34028
34029 #. type: textblock
34030 #: ../src/guestfs.pod:2132
34031 msgid ""
34032 "Internally, libguestfs is implemented by running an appliance (a special "
34033 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
34034 "process of the main program."
34035 msgstr ""
34036
34037 #. type: verbatim
34038 #: ../src/guestfs.pod:2136
34039 #, no-wrap
34040 msgid ""
34041 "  ___________________\n"
34042 " /                   \\\n"
34043 " | main program      |\n"
34044 " |                   |\n"
34045 " |                   |           child process / appliance\n"
34046 " |                   |           __________________________\n"
34047 " |                   |          / qemu                     \\\n"
34048 " +-------------------+   RPC    |      +-----------------+ |\n"
34049 " | libguestfs     <--------------------> guestfsd        | |\n"
34050 " |                   |          |      +-----------------+ |\n"
34051 " \\___________________/          |      | Linux kernel    | |\n"
34052 "                                |      +--^--------------+ |\n"
34053 "                                \\_________|________________/\n"
34054 "                                          |\n"
34055 "                                   _______v______\n"
34056 "                                  /              \\\n"
34057 "                                  | Device or    |\n"
34058 "                                  | disk image   |\n"
34059 "                                  \\______________/\n"
34060 "\n"
34061 msgstr ""
34062
34063 #. type: textblock
34064 #: ../src/guestfs.pod:2156
34065 msgid ""
34066 "The library, linked to the main program, creates the child process and hence "
34067 "the appliance in the L</guestfs_launch> function."
34068 msgstr ""
34069
34070 #. type: textblock
34071 #: ../src/guestfs.pod:2159
34072 msgid ""
34073 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34074 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34075 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34076 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34077 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34078 "attached to the qemu process which translates device access by the "
34079 "appliance's Linux kernel into accesses to the image."
34080 msgstr ""
34081
34082 #. type: textblock
34083 #: ../src/guestfs.pod:2168
34084 msgid ""
34085 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34086 "Although the disk image you are attached to might also be used by some "
34087 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34088 "care if both libguestfs's qemu process and your virtual machine are trying "
34089 "to update the disk image at the same time, since these usually results in "
34090 "massive disk corruption)."
34091 msgstr ""
34092
34093 #. type: =head1
34094 #: ../src/guestfs.pod:2175
34095 msgid "STATE MACHINE"
34096 msgstr ""
34097
34098 #. type: textblock
34099 #: ../src/guestfs.pod:2177
34100 msgid "libguestfs uses a state machine to model the child process:"
34101 msgstr ""
34102
34103 #. type: verbatim
34104 #: ../src/guestfs.pod:2179
34105 #, no-wrap
34106 msgid ""
34107 "                         |\n"
34108 "                    guestfs_create\n"
34109 "                         |\n"
34110 "                         |\n"
34111 "                     ____V_____\n"
34112 "                    /          \\\n"
34113 "                    |  CONFIG  |\n"
34114 "                    \\__________/\n"
34115 "                     ^ ^   ^  \\\n"
34116 "                    /  |    \\  \\ guestfs_launch\n"
34117 "                   /   |    _\\__V______\n"
34118 "                  /    |   /           \\\n"
34119 "                 /     |   | LAUNCHING |\n"
34120 "                /      |   \\___________/\n"
34121 "               /       |       /\n"
34122 "              /        |  guestfs_launch\n"
34123 "             /         |     /\n"
34124 "    ______  /        __|____V\n"
34125 "   /      \\ ------> /        \\\n"
34126 "   | BUSY |         | READY  |\n"
34127 "   \\______/ <------ \\________/\n"
34128 "\n"
34129 msgstr ""
34130
34131 #. type: textblock
34132 #: ../src/guestfs.pod:2201
34133 msgid ""
34134 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34135 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34136 "(3) alternating between READY and BUSY as commands are issued to, and "
34137 "carried out by, the child process."
34138 msgstr ""
34139
34140 #. type: textblock
34141 #: ../src/guestfs.pod:2206
34142 msgid ""
34143 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34144 "asynchronously at any time (eg. due to some internal error), and that causes "
34145 "the state to transition back to CONFIG."
34146 msgstr ""
34147
34148 #. type: textblock
34149 #: ../src/guestfs.pod:2210
34150 msgid ""
34151 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34152 "issued when in the CONFIG state."
34153 msgstr ""
34154
34155 #. type: textblock
34156 #: ../src/guestfs.pod:2213
34157 msgid ""
34158 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34159 "L</guestfs_launch> blocks until the child process is READY to accept "
34160 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34161 "moves the state from CONFIG to LAUNCHING while it is running."
34162 msgstr ""
34163
34164 #. type: textblock
34165 #: ../src/guestfs.pod:2219
34166 msgid ""
34167 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34168 "state.  These API calls block waiting for the command to be carried out "
34169 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34170 "non-blocking versions, and no way to issue more than one command per handle "
34171 "at the same time."
34172 msgstr ""
34173
34174 #. type: textblock
34175 #: ../src/guestfs.pod:2225
34176 msgid ""
34177 "Finally, the child process sends asynchronous messages back to the main "
34178 "program, such as kernel log messages.  You can register a callback to "
34179 "receive these messages."
34180 msgstr ""
34181
34182 #. type: =head1
34183 #: ../src/guestfs.pod:2229
34184 msgid "INTERNALS"
34185 msgstr ""
34186
34187 #. type: =head2
34188 #: ../src/guestfs.pod:2231
34189 msgid "COMMUNICATION PROTOCOL"
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../src/guestfs.pod:2233
34194 msgid ""
34195 "Don't rely on using this protocol directly.  This section documents how it "
34196 "currently works, but it may change at any time."
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:2236
34201 msgid ""
34202 "The protocol used to talk between the library and the daemon running inside "
34203 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34204 "1014, RFC 1832, RFC 4506)."
34205 msgstr ""
34206
34207 #. type: textblock
34208 #: ../src/guestfs.pod:2240
34209 msgid ""
34210 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34211 "this file is automatically generated)."
34212 msgstr ""
34213
34214 #. type: textblock
34215 #: ../src/guestfs.pod:2243
34216 msgid ""
34217 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34218 "and C<FileOut> parameters, which are handled with very simple request/reply "
34219 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34220 "parameters, which use the same request and reply messages, but they may also "
34221 "be followed by files sent using a chunked encoding."
34222 msgstr ""
34223
34224 #. type: =head3
34225 #: ../src/guestfs.pod:2250
34226 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34227 msgstr ""
34228
34229 #. type: textblock
34230 #: ../src/guestfs.pod:2252
34231 msgid "For ordinary functions, the request message is:"
34232 msgstr ""
34233
34234 #. type: verbatim
34235 #: ../src/guestfs.pod:2254
34236 #, no-wrap
34237 msgid ""
34238 " total length (header + arguments,\n"
34239 "      but not including the length word itself)\n"
34240 " struct guestfs_message_header (encoded as XDR)\n"
34241 " struct guestfs_<foo>_args (encoded as XDR)\n"
34242 "\n"
34243 msgstr ""
34244
34245 #. type: textblock
34246 #: ../src/guestfs.pod:2259
34247 msgid ""
34248 "The total length field allows the daemon to allocate a fixed size buffer "
34249 "into which it slurps the rest of the message.  As a result, the total length "
34250 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34251 "effective size of any request is limited to somewhere under this size."
34252 msgstr ""
34253
34254 #. type: textblock
34255 #: ../src/guestfs.pod:2265
34256 msgid ""
34257 "Note also that many functions don't take any arguments, in which case the "
34258 "C<guestfs_I<foo>_args> is completely omitted."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:2268
34263 msgid ""
34264 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34265 "receiver knows what type of args structure to expect, or none at all."
34266 msgstr ""
34267
34268 #. type: textblock
34269 #: ../src/guestfs.pod:2272
34270 msgid ""
34271 "For functions that take optional arguments, the optional arguments are "
34272 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34273 "arguments.  A bitmask in the header indicates which optional arguments are "
34274 "meaningful.  The bitmask is also checked to see if it contains bits set "
34275 "which the daemon does not know about (eg. if more optional arguments were "
34276 "added in a later version of the library), and this causes the call to be "
34277 "rejected."
34278 msgstr ""
34279
34280 #. type: textblock
34281 #: ../src/guestfs.pod:2280
34282 msgid "The reply message for ordinary functions is:"
34283 msgstr ""
34284
34285 #. type: verbatim
34286 #: ../src/guestfs.pod:2282
34287 #, no-wrap
34288 msgid ""
34289 " total length (header + ret,\n"
34290 "      but not including the length word itself)\n"
34291 " struct guestfs_message_header (encoded as XDR)\n"
34292 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34293 "\n"
34294 msgstr ""
34295
34296 #. type: textblock
34297 #: ../src/guestfs.pod:2287
34298 msgid ""
34299 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
34300 "functions that return no formal return values."
34301 msgstr ""
34302
34303 #. type: textblock
34304 #: ../src/guestfs.pod:2290
34305 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:2293
34310 msgid ""
34311 "In the case of an error, a flag is set in the header, and the reply message "
34312 "is slightly changed:"
34313 msgstr ""
34314
34315 #. type: verbatim
34316 #: ../src/guestfs.pod:2296
34317 #, no-wrap
34318 msgid ""
34319 " total length (header + error,\n"
34320 "      but not including the length word itself)\n"
34321 " struct guestfs_message_header (encoded as XDR)\n"
34322 " struct guestfs_message_error (encoded as XDR)\n"
34323 "\n"
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:2301
34328 msgid ""
34329 "The C<guestfs_message_error> structure contains the error message as a "
34330 "string."
34331 msgstr ""
34332
34333 #. type: =head3
34334 #: ../src/guestfs.pod:2304
34335 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs.pod:2306
34340 msgid ""
34341 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
34342 "The normal request message is sent (see above).  However this is followed by "
34343 "a sequence of file chunks."
34344 msgstr ""
34345
34346 #. type: verbatim
34347 #: ../src/guestfs.pod:2310
34348 #, no-wrap
34349 msgid ""
34350 " total length (header + arguments,\n"
34351 "      but not including the length word itself,\n"
34352 "      and not including the chunks)\n"
34353 " struct guestfs_message_header (encoded as XDR)\n"
34354 " struct guestfs_<foo>_args (encoded as XDR)\n"
34355 " sequence of chunks for FileIn param #0\n"
34356 " sequence of chunks for FileIn param #1 etc.\n"
34357 "\n"
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:2318
34362 msgid "The \"sequence of chunks\" is:"
34363 msgstr ""
34364
34365 #. type: verbatim
34366 #: ../src/guestfs.pod:2320
34367 #, no-wrap
34368 msgid ""
34369 " length of chunk (not including length word itself)\n"
34370 " struct guestfs_chunk (encoded as XDR)\n"
34371 " length of chunk\n"
34372 " struct guestfs_chunk (encoded as XDR)\n"
34373 "   ...\n"
34374 " length of chunk\n"
34375 " struct guestfs_chunk (with data.data_len == 0)\n"
34376 "\n"
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs.pod:2328
34381 msgid ""
34382 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
34383 "is set in the final chunk to indicate either successful completion or early "
34384 "cancellation."
34385 msgstr ""
34386
34387 #. type: textblock
34388 #: ../src/guestfs.pod:2332
34389 msgid ""
34390 "At time of writing there are no functions that have more than one FileIn "
34391 "parameter.  However this is (theoretically) supported, by sending the "
34392 "sequence of chunks for each FileIn parameter one after another (from left to "
34393 "right)."
34394 msgstr ""
34395
34396 #. type: textblock
34397 #: ../src/guestfs.pod:2337
34398 msgid ""
34399 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
34400 "transfer.  The library does this by sending a chunk with a special flag set "
34401 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
34402 "RPC, does I<not> send any reply, and goes back to reading the next request."
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs.pod:2343
34407 msgid ""
34408 "The daemon may also cancel.  It does this by writing a special word "
34409 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
34410 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
34411 "cancel chunk).  The special word is chosen so that even if cancellation "
34412 "happens right at the end of the transfer (after the library has finished "
34413 "writing and has started listening for the reply), the \"spurious\" cancel "
34414 "flag will not be confused with the reply message."
34415 msgstr ""
34416
34417 #. type: textblock
34418 #: ../src/guestfs.pod:2352
34419 msgid ""
34420 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
34421 "limit), and also files where the size is not known in advance (eg. from "
34422 "pipes or sockets).  However the chunks are rather small "
34423 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
34424 "to keep much in memory."
34425 msgstr ""
34426
34427 #. type: =head3
34428 #: ../src/guestfs.pod:2358
34429 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
34430 msgstr ""
34431
34432 #. type: textblock
34433 #: ../src/guestfs.pod:2360
34434 msgid ""
34435 "The protocol for FileOut parameters is exactly the same as for FileIn "
34436 "parameters, but with the roles of daemon and library reversed."
34437 msgstr ""
34438
34439 #. type: verbatim
34440 #: ../src/guestfs.pod:2363
34441 #, no-wrap
34442 msgid ""
34443 " total length (header + ret,\n"
34444 "      but not including the length word itself,\n"
34445 "      and not including the chunks)\n"
34446 " struct guestfs_message_header (encoded as XDR)\n"
34447 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34448 " sequence of chunks for FileOut param #0\n"
34449 " sequence of chunks for FileOut param #1 etc.\n"
34450 "\n"
34451 msgstr ""
34452
34453 #. type: =head3
34454 #: ../src/guestfs.pod:2371
34455 msgid "INITIAL MESSAGE"
34456 msgstr ""
34457
34458 #. type: textblock
34459 #: ../src/guestfs.pod:2373
34460 msgid ""
34461 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
34462 "which indicates that the guest and daemon is alive.  This is what "
34463 "L</guestfs_launch> waits for."
34464 msgstr ""
34465
34466 #. type: =head3
34467 #: ../src/guestfs.pod:2377
34468 msgid "PROGRESS NOTIFICATION MESSAGES"
34469 msgstr ""
34470
34471 #. type: textblock
34472 #: ../src/guestfs.pod:2379
34473 msgid ""
34474 "The daemon may send progress notification messages at any time.  These are "
34475 "distinguished by the normal length word being replaced by "
34476 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
34477 msgstr ""
34478
34479 #. type: textblock
34480 #: ../src/guestfs.pod:2383
34481 msgid ""
34482 "The library turns them into progress callbacks (see "
34483 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
34484 "them if not."
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:2387
34489 msgid ""
34490 "The daemon self-limits the frequency of progress messages it sends (see "
34491 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
34492 "messages."
34493 msgstr ""
34494
34495 #. type: =head1
34496 #: ../src/guestfs.pod:2391
34497 msgid "LIBGUESTFS VERSION NUMBERS"
34498 msgstr ""
34499
34500 #. type: textblock
34501 #: ../src/guestfs.pod:2393
34502 msgid ""
34503 "Since April 2010, libguestfs has started to make separate development and "
34504 "stable releases, along with corresponding branches in our git repository.  "
34505 "These separate releases can be identified by version number:"
34506 msgstr ""
34507
34508 #. type: verbatim
34509 #: ../src/guestfs.pod:2398
34510 #, no-wrap
34511 msgid ""
34512 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
34513 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
34514 "       |\n"
34515 "       v\n"
34516 " 1  .  3  .  5\n"
34517 " ^           ^\n"
34518 " |           |\n"
34519 " |           `-------- sub-version\n"
34520 " |\n"
34521 " `------ always '1' because we don't change the ABI\n"
34522 "\n"
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs.pod:2409
34527 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
34528 msgstr ""
34529
34530 #. type: textblock
34531 #: ../src/guestfs.pod:2411
34532 msgid ""
34533 "As time passes we cherry pick fixes from the development branch and backport "
34534 "those into the stable branch, the effect being that the stable branch should "
34535 "get more stable and less buggy over time.  So the stable releases are ideal "
34536 "for people who don't need new features but would just like the software to "
34537 "work."
34538 msgstr ""
34539
34540 #. type: textblock
34541 #: ../src/guestfs.pod:2417
34542 msgid "Our criteria for backporting changes are:"
34543 msgstr ""
34544
34545 #. type: textblock
34546 #: ../src/guestfs.pod:2423
34547 msgid ""
34548 "Documentation changes which don't affect any code are backported unless the "
34549 "documentation refers to a future feature which is not in stable."
34550 msgstr ""
34551
34552 #. type: textblock
34553 #: ../src/guestfs.pod:2429
34554 msgid ""
34555 "Bug fixes which are not controversial, fix obvious problems, and have been "
34556 "well tested are backported."
34557 msgstr ""
34558
34559 #. type: textblock
34560 #: ../src/guestfs.pod:2434
34561 msgid ""
34562 "Simple rearrangements of code which shouldn't affect how it works get "
34563 "backported.  This is so that the code in the two branches doesn't get too "
34564 "far out of step, allowing us to backport future fixes more easily."
34565 msgstr ""
34566
34567 #. type: textblock
34568 #: ../src/guestfs.pod:2440
34569 msgid ""
34570 "We I<don't> backport new features, new APIs, new tools etc, except in one "
34571 "exceptional case: the new feature is required in order to implement an "
34572 "important bug fix."
34573 msgstr ""
34574
34575 #. type: textblock
34576 #: ../src/guestfs.pod:2446
34577 msgid ""
34578 "A new stable branch starts when we think the new features in development are "
34579 "substantial and compelling enough over the current stable branch to warrant "
34580 "it.  When that happens we create new stable and development versions 1.N.0 "
34581 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
34582 "stable at this point, but by backporting fixes from development, that branch "
34583 "will stabilize over time."
34584 msgstr ""
34585
34586 #. type: =head1
34587 #: ../src/guestfs.pod:2454
34588 msgid "EXTENDING LIBGUESTFS"
34589 msgstr ""
34590
34591 #. type: =head2
34592 #: ../src/guestfs.pod:2456
34593 msgid "ADDING A NEW API ACTION"
34594 msgstr ""
34595
34596 #. type: textblock
34597 #: ../src/guestfs.pod:2458
34598 msgid ""
34599 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
34600 "documentation) are generated, and this makes it easy to extend the "
34601 "libguestfs API."
34602 msgstr ""
34603
34604 #. type: textblock
34605 #: ../src/guestfs.pod:2462
34606 msgid "To add a new API action there are two changes:"
34607 msgstr ""
34608
34609 #. type: textblock
34610 #: ../src/guestfs.pod:2468
34611 msgid ""
34612 "You need to add a description of the call (name, parameters, return type, "
34613 "tests, documentation) to C<generator/generator_actions.ml>."
34614 msgstr ""
34615
34616 #. type: textblock
34617 #: ../src/guestfs.pod:2471
34618 msgid ""
34619 "There are two sorts of API action, depending on whether the call goes "
34620 "through to the daemon in the appliance, or is serviced entirely by the "
34621 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
34622 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
34623 "an example of the latter, since a trace flag is maintained in the handle and "
34624 "all tracing is done on the library side."
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:2479
34629 msgid ""
34630 "Most new actions are of the first type, and get added to the "
34631 "C<daemon_functions> list.  Each function has a unique procedure number used "
34632 "in the RPC protocol which is assigned to that action when we publish "
34633 "libguestfs and cannot be reused.  Take the latest procedure number and "
34634 "increment it."
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:2485
34639 msgid ""
34640 "For library-only actions of the second type, add to the "
34641 "C<non_daemon_functions> list.  Since these functions are serviced by the "
34642 "library and do not travel over the RPC mechanism to the daemon, these "
34643 "functions do not need a procedure number, and so the procedure number is set "
34644 "to C<-1>."
34645 msgstr ""
34646
34647 #. type: textblock
34648 #: ../src/guestfs.pod:2493
34649 msgid "Implement the action (in C):"
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:2495
34654 msgid ""
34655 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
34656 "C<daemon/> directory."
34657 msgstr ""
34658
34659 #. type: textblock
34660 #: ../src/guestfs.pod:2498
34661 msgid ""
34662 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
34663 "(note: double underscore) in the C<src/> directory."
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:2501
34668 msgid "In either case, use another function as an example of what to do."
34669 msgstr ""
34670
34671 #. type: textblock
34672 #: ../src/guestfs.pod:2505
34673 msgid "After making these changes, use C<make> to compile."
34674 msgstr ""
34675
34676 #. type: textblock
34677 #: ../src/guestfs.pod:2507
34678 msgid ""
34679 "Note that you don't need to implement the RPC, language bindings, manual "
34680 "pages or anything else.  It's all automatically generated from the OCaml "
34681 "description."
34682 msgstr ""
34683
34684 #. type: =head2
34685 #: ../src/guestfs.pod:2511
34686 msgid "ADDING TESTS FOR AN API ACTION"
34687 msgstr ""
34688
34689 #. type: textblock
34690 #: ../src/guestfs.pod:2513
34691 msgid ""
34692 "You can supply zero or as many tests as you want per API call.  The tests "
34693 "can either be added as part of the API description "
34694 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
34695 "drop a script into C<regressions/>.  Note that adding a script to "
34696 "C<regressions/> is slower, so if possible use the first method."
34697 msgstr ""
34698
34699 #. type: textblock
34700 #: ../src/guestfs.pod:2519
34701 msgid ""
34702 "The following describes the test environment used when you add an API test "
34703 "in C<generator_actions.ml>."
34704 msgstr ""
34705
34706 #. type: textblock
34707 #: ../src/guestfs.pod:2522
34708 msgid "The test environment has 4 block devices:"
34709 msgstr ""
34710
34711 #. type: =item
34712 #: ../src/guestfs.pod:2526
34713 msgid "C</dev/sda> 500MB"
34714 msgstr ""
34715
34716 #. type: textblock
34717 #: ../src/guestfs.pod:2528
34718 msgid "General block device for testing."
34719 msgstr ""
34720
34721 #. type: =item
34722 #: ../src/guestfs.pod:2530
34723 msgid "C</dev/sdb> 50MB"
34724 msgstr ""
34725
34726 #. type: textblock
34727 #: ../src/guestfs.pod:2532
34728 msgid ""
34729 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
34730 "operations."
34731 msgstr ""
34732
34733 #. type: =item
34734 #: ../src/guestfs.pod:2535
34735 msgid "C</dev/sdc> 10MB"
34736 msgstr ""
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:2537
34740 msgid "Used in a few tests where two block devices are needed."
34741 msgstr ""
34742
34743 #. type: =item
34744 #: ../src/guestfs.pod:2539
34745 msgid "C</dev/sdd>"
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:2541
34750 msgid "ISO with fixed content (see C<images/test.iso>)."
34751 msgstr ""
34752
34753 #. type: textblock
34754 #: ../src/guestfs.pod:2545
34755 msgid ""
34756 "To be able to run the tests in a reasonable amount of time, the libguestfs "
34757 "appliance and block devices are reused between tests.  So don't try testing "
34758 "L</guestfs_kill_subprocess> :-x"
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:2549
34763 msgid ""
34764 "Each test starts with an initial scenario, selected using one of the "
34765 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
34766 "initialize the disks mentioned above in a particular way as documented in "
34767 "C<generator_types.ml>.  You should not assume anything about the previous "
34768 "contents of other disks that are not initialized."
34769 msgstr ""
34770
34771 #. type: textblock
34772 #: ../src/guestfs.pod:2555
34773 msgid ""
34774 "You can add a prerequisite clause to any individual test.  This is a "
34775 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
34776 "if testing a command which might not work on all variations of libguestfs "
34777 "builds.  A test that has prerequisite of C<Always> means to run "
34778 "unconditionally."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:2561
34783 msgid ""
34784 "In addition, packagers can skip individual tests by setting environment "
34785 "variables before running C<make check>."
34786 msgstr ""
34787
34788 #. type: verbatim
34789 #: ../src/guestfs.pod:2564
34790 #, no-wrap
34791 msgid ""
34792 " SKIP_TEST_<CMD>_<NUM>=1\n"
34793 "\n"
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:2566
34798 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
34799 msgstr ""
34800
34801 #. type: textblock
34802 #: ../src/guestfs.pod:2568
34803 msgid "or:"
34804 msgstr ""
34805
34806 #. type: verbatim
34807 #: ../src/guestfs.pod:2570
34808 #, no-wrap
34809 msgid ""
34810 " SKIP_TEST_<CMD>=1\n"
34811 "\n"
34812 msgstr ""
34813
34814 #. type: textblock
34815 #: ../src/guestfs.pod:2572
34816 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
34817 msgstr ""
34818
34819 #. type: textblock
34820 #: ../src/guestfs.pod:2574
34821 msgid "Packagers can run only certain tests by setting for example:"
34822 msgstr ""
34823
34824 #. type: verbatim
34825 #: ../src/guestfs.pod:2576
34826 #, no-wrap
34827 msgid ""
34828 " TEST_ONLY=\"vfs_type zerofree\"\n"
34829 "\n"
34830 msgstr ""
34831
34832 #. type: textblock
34833 #: ../src/guestfs.pod:2578
34834 msgid ""
34835 "See C<capitests/tests.c> for more details of how these environment variables "
34836 "work."
34837 msgstr ""
34838
34839 #. type: =head2
34840 #: ../src/guestfs.pod:2581
34841 msgid "DEBUGGING NEW API ACTIONS"
34842 msgstr ""
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:2583
34846 msgid "Test new actions work before submitting them."
34847 msgstr ""
34848
34849 #. type: textblock
34850 #: ../src/guestfs.pod:2585
34851 msgid "You can use guestfish to try out new commands."
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:2587
34856 msgid ""
34857 "Debugging the daemon is a problem because it runs inside a minimal "
34858 "environment.  However you can fprintf messages in the daemon to stderr, and "
34859 "they will show up if you use C<guestfish -v>."
34860 msgstr ""
34861
34862 #. type: =head2
34863 #: ../src/guestfs.pod:2591
34864 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
34865 msgstr ""
34866
34867 #. type: textblock
34868 #: ../src/guestfs.pod:2593
34869 msgid ""
34870 "Our C source code generally adheres to some basic code-formatting "
34871 "conventions.  The existing code base is not totally consistent on this "
34872 "front, but we do prefer that contributed code be formatted similarly.  In "
34873 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
34874 "indentation level, and other than that, follow the K&R style."
34875 msgstr ""
34876
34877 #. type: textblock
34878 #: ../src/guestfs.pod:2599
34879 msgid ""
34880 "If you use Emacs, add the following to one of one of your start-up files "
34881 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
34882 msgstr ""
34883
34884 #. type: verbatim
34885 #: ../src/guestfs.pod:2602
34886 #, no-wrap
34887 msgid ""
34888 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
34889 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
34890 " (add-hook 'find-file-hook\n"
34891 "     '(lambda () (if (and buffer-file-name\n"
34892 "                          (string-match \"/libguestfs\\\\>\"\n"
34893 "                              (buffer-file-name))\n"
34894 "                          (not (string-equal mode-name \"Change Log\"))\n"
34895 "                          (not (string-equal mode-name \"Makefile\")))\n"
34896 "                     (setq indent-tabs-mode nil))))\n"
34897 " \n"
34898 msgstr ""
34899
34900 #. type: verbatim
34901 #: ../src/guestfs.pod:2612
34902 #, no-wrap
34903 msgid ""
34904 " ;;; When editing C sources in libguestfs, use this style.\n"
34905 " (defun libguestfs-c-mode ()\n"
34906 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
34907 "   (interactive)\n"
34908 "   (c-set-style \"K&R\")\n"
34909 "   (setq c-indent-level 2)\n"
34910 "   (setq c-basic-offset 2))\n"
34911 " (add-hook 'c-mode-hook\n"
34912 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
34913 "                               (buffer-file-name))\n"
34914 "                           (libguestfs-c-mode))))\n"
34915 "\n"
34916 msgstr ""
34917
34918 #. type: textblock
34919 #: ../src/guestfs.pod:2624
34920 msgid "Enable warnings when compiling (and fix any problems this finds):"
34921 msgstr ""
34922
34923 #. type: verbatim
34924 #: ../src/guestfs.pod:2627
34925 #, no-wrap
34926 msgid ""
34927 " ./configure --enable-gcc-warnings\n"
34928 "\n"
34929 msgstr ""
34930
34931 #. type: textblock
34932 #: ../src/guestfs.pod:2629
34933 msgid "Useful targets are:"
34934 msgstr ""
34935
34936 #. type: verbatim
34937 #: ../src/guestfs.pod:2631
34938 #, no-wrap
34939 msgid ""
34940 " make syntax-check  # checks the syntax of the C code\n"
34941 " make check         # runs the test suite\n"
34942 "\n"
34943 msgstr ""
34944
34945 #. type: =head2
34946 #: ../src/guestfs.pod:2634
34947 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
34948 msgstr ""
34949
34950 #. type: textblock
34951 #: ../src/guestfs.pod:2636
34952 msgid ""
34953 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
34954 "which are used to do shell quoting."
34955 msgstr ""
34956
34957 #. type: =item
34958 #: ../src/guestfs.pod:2641
34959 msgid "%Q"
34960 msgstr ""
34961
34962 #. type: textblock
34963 #: ../src/guestfs.pod:2643
34964 msgid ""
34965 "Simple shell quoted string.  Any spaces or other shell characters are "
34966 "escaped for you."
34967 msgstr ""
34968
34969 #. type: =item
34970 #: ../src/guestfs.pod:2646
34971 msgid "%R"
34972 msgstr ""
34973
34974 #. type: textblock
34975 #: ../src/guestfs.pod:2648
34976 msgid ""
34977 "Same as C<%Q> except the string is treated as a path which is prefixed by "
34978 "the sysroot."
34979 msgstr ""
34980
34981 #. type: verbatim
34982 #: ../src/guestfs.pod:2655
34983 #, no-wrap
34984 msgid ""
34985 " asprintf (&cmd, \"cat %R\", path);\n"
34986 "\n"
34987 msgstr ""
34988
34989 #. type: textblock
34990 #: ../src/guestfs.pod:2657
34991 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:2659
34996 msgid ""
34997 "I<Note:> Do I<not> use these when you are passing parameters to the "
34998 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
34999 "because they are not passed via the shell (instead, straight to exec).  You "
35000 "probably want to use the C<sysroot_path()> function however."
35001 msgstr ""
35002
35003 #. type: =head2
35004 #: ../src/guestfs.pod:2665
35005 msgid "SUBMITTING YOUR NEW API ACTIONS"
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:2667
35010 msgid ""
35011 "Submit patches to the mailing list: "
35012 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
35013 "L<rjones@redhat.com>."
35014 msgstr ""
35015
35016 #. type: =head2
35017 #: ../src/guestfs.pod:2671
35018 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs.pod:2673
35023 msgid "We support i18n (gettext anyhow) in the library."
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:2675
35028 msgid ""
35029 "However many messages come from the daemon, and we don't translate those at "
35030 "the moment.  One reason is that the appliance generally has all locale files "
35031 "removed from it, because they take up a lot of space.  So we'd have to readd "
35032 "some of those, as well as copying our PO files into the appliance."
35033 msgstr ""
35034
35035 #. type: textblock
35036 #: ../src/guestfs.pod:2681
35037 msgid ""
35038 "Debugging messages are never translated, since they are intended for the "
35039 "programmers."
35040 msgstr ""
35041
35042 #. type: =head2
35043 #: ../src/guestfs.pod:2684
35044 msgid "SOURCE CODE SUBDIRECTORIES"
35045 msgstr ""
35046
35047 #. type: textblock
35048 #: ../src/guestfs.pod:2690
35049 msgid "The libguestfs appliance, build scripts and so on."
35050 msgstr ""
35051
35052 #. type: =item
35053 #: ../src/guestfs.pod:2692
35054 msgid "C<capitests>"
35055 msgstr ""
35056
35057 #. type: textblock
35058 #: ../src/guestfs.pod:2694
35059 msgid "Automated tests of the C API."
35060 msgstr ""
35061
35062 #. type: =item
35063 #: ../src/guestfs.pod:2696
35064 msgid "C<cat>"
35065 msgstr ""
35066
35067 #. type: textblock
35068 #: ../src/guestfs.pod:2698
35069 msgid ""
35070 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35071 "documentation."
35072 msgstr ""
35073
35074 #. type: =item
35075 #: ../src/guestfs.pod:2701
35076 msgid "C<caution>"
35077 msgstr ""
35078
35079 #. type: textblock
35080 #: ../src/guestfs.pod:2703
35081 msgid ""
35082 "Safety and liveness tests of components that libguestfs depends upon (not of "
35083 "libguestfs itself).  Mainly this is for qemu and the kernel."
35084 msgstr ""
35085
35086 #. type: =item
35087 #: ../src/guestfs.pod:2706
35088 msgid "C<contrib>"
35089 msgstr ""
35090
35091 #. type: textblock
35092 #: ../src/guestfs.pod:2708
35093 msgid "Outside contributions, experimental parts."
35094 msgstr ""
35095
35096 #. type: =item
35097 #: ../src/guestfs.pod:2710
35098 msgid "C<daemon>"
35099 msgstr ""
35100
35101 #. type: textblock
35102 #: ../src/guestfs.pod:2712
35103 msgid ""
35104 "The daemon that runs inside the libguestfs appliance and carries out "
35105 "actions."
35106 msgstr ""
35107
35108 #. type: =item
35109 #: ../src/guestfs.pod:2715
35110 msgid "C<df>"
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:2717
35115 msgid "L<virt-df(1)> command and documentation."
35116 msgstr ""
35117
35118 #. type: =item
35119 #: ../src/guestfs.pod:2719
35120 msgid "C<edit>"
35121 msgstr ""
35122
35123 #. type: textblock
35124 #: ../src/guestfs.pod:2721
35125 msgid "L<virt-edit(1)> command and documentation."
35126 msgstr ""
35127
35128 #. type: =item
35129 #: ../src/guestfs.pod:2723
35130 msgid "C<examples>"
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:2725
35135 msgid "C API example code."
35136 msgstr ""
35137
35138 #. type: =item
35139 #: ../src/guestfs.pod:2727
35140 msgid "C<fish>"
35141 msgstr ""
35142
35143 #. type: textblock
35144 #: ../src/guestfs.pod:2729
35145 msgid ""
35146 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35147 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35148 "L<virt-tar-out(1)>."
35149 msgstr ""
35150
35151 #. type: =item
35152 #: ../src/guestfs.pod:2733
35153 msgid "C<fuse>"
35154 msgstr ""
35155
35156 #. type: textblock
35157 #: ../src/guestfs.pod:2735
35158 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35159 msgstr ""
35160
35161 #. type: =item
35162 #: ../src/guestfs.pod:2737
35163 msgid "C<generator>"
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:2739
35168 msgid ""
35169 "The crucially important generator, used to automatically generate large "
35170 "amounts of boilerplate C code for things like RPC and bindings."
35171 msgstr ""
35172
35173 #. type: =item
35174 #: ../src/guestfs.pod:2742
35175 msgid "C<images>"
35176 msgstr ""
35177
35178 #. type: textblock
35179 #: ../src/guestfs.pod:2744
35180 msgid "Files used by the test suite."
35181 msgstr ""
35182
35183 #. type: textblock
35184 #: ../src/guestfs.pod:2746
35185 msgid "Some \"phony\" guest images which we test against."
35186 msgstr ""
35187
35188 #. type: =item
35189 #: ../src/guestfs.pod:2748
35190 msgid "C<inspector>"
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:2750
35195 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35196 msgstr ""
35197
35198 #. type: =item
35199 #: ../src/guestfs.pod:2752
35200 msgid "C<logo>"
35201 msgstr ""
35202
35203 #. type: textblock
35204 #: ../src/guestfs.pod:2754
35205 msgid "Logo used on the website.  The fish is called Arthur by the way."
35206 msgstr ""
35207
35208 #. type: =item
35209 #: ../src/guestfs.pod:2756
35210 msgid "C<m4>"
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:2758
35215 msgid "M4 macros used by autoconf."
35216 msgstr ""
35217
35218 #. type: =item
35219 #: ../src/guestfs.pod:2760
35220 msgid "C<po>"
35221 msgstr ""
35222
35223 #. type: textblock
35224 #: ../src/guestfs.pod:2762
35225 msgid "Translations of simple gettext strings."
35226 msgstr ""
35227
35228 #. type: =item
35229 #: ../src/guestfs.pod:2764
35230 msgid "C<po-docs>"
35231 msgstr ""
35232
35233 #. type: textblock
35234 #: ../src/guestfs.pod:2766
35235 msgid ""
35236 "The build infrastructure and PO files for translations of manpages and POD "
35237 "files.  Eventually this will be combined with the C<po> directory, but that "
35238 "is rather complicated."
35239 msgstr ""
35240
35241 #. type: =item
35242 #: ../src/guestfs.pod:2770
35243 msgid "C<regressions>"
35244 msgstr ""
35245
35246 #. type: textblock
35247 #: ../src/guestfs.pod:2772
35248 msgid "Regression tests."
35249 msgstr ""
35250
35251 #. type: =item
35252 #: ../src/guestfs.pod:2774
35253 msgid "C<rescue>"
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../src/guestfs.pod:2776
35258 msgid "L<virt-rescue(1)> command and documentation."
35259 msgstr ""
35260
35261 #. type: =item
35262 #: ../src/guestfs.pod:2778
35263 msgid "C<src>"
35264 msgstr ""
35265
35266 #. type: textblock
35267 #: ../src/guestfs.pod:2780
35268 msgid "Source code to the C library."
35269 msgstr ""
35270
35271 #. type: =item
35272 #: ../src/guestfs.pod:2782
35273 msgid "C<tools>"
35274 msgstr ""
35275
35276 #. type: textblock
35277 #: ../src/guestfs.pod:2784
35278 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
35279 msgstr ""
35280
35281 #. type: =item
35282 #: ../src/guestfs.pod:2786
35283 msgid "C<test-tool>"
35284 msgstr ""
35285
35286 #. type: textblock
35287 #: ../src/guestfs.pod:2788
35288 msgid ""
35289 "Test tool for end users to test if their qemu/kernel combination will work "
35290 "with libguestfs."
35291 msgstr ""
35292
35293 #. type: =item
35294 #: ../src/guestfs.pod:2791
35295 msgid "C<csharp>"
35296 msgstr ""
35297
35298 #. type: =item
35299 #: ../src/guestfs.pod:2793
35300 msgid "C<haskell>"
35301 msgstr ""
35302
35303 #. type: =item
35304 #: ../src/guestfs.pod:2795
35305 msgid "C<java>"
35306 msgstr ""
35307
35308 #. type: =item
35309 #: ../src/guestfs.pod:2797
35310 msgid "C<ocaml>"
35311 msgstr ""
35312
35313 #. type: =item
35314 #: ../src/guestfs.pod:2799
35315 msgid "C<php>"
35316 msgstr ""
35317
35318 #. type: =item
35319 #: ../src/guestfs.pod:2801
35320 msgid "C<perl>"
35321 msgstr ""
35322
35323 #. type: =item
35324 #: ../src/guestfs.pod:2803
35325 msgid "C<python>"
35326 msgstr ""
35327
35328 #. type: =item
35329 #: ../src/guestfs.pod:2805
35330 msgid "C<ruby>"
35331 msgstr ""
35332
35333 #. type: textblock
35334 #: ../src/guestfs.pod:2807
35335 msgid "Language bindings."
35336 msgstr ""
35337
35338 #. type: =head2
35339 #: ../src/guestfs.pod:2811
35340 msgid "MAKING A STABLE RELEASE"
35341 msgstr ""
35342
35343 #. type: textblock
35344 #: ../src/guestfs.pod:2813
35345 msgid ""
35346 "When we make a stable release, there are several steps documented here.  See "
35347 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
35348 "branch policy."
35349 msgstr ""
35350
35351 #. type: textblock
35352 #: ../src/guestfs.pod:2821
35353 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
35354 msgstr ""
35355
35356 #. type: textblock
35357 #: ../src/guestfs.pod:2826
35358 msgid "Finalize RELEASE-NOTES."
35359 msgstr ""
35360
35361 #. type: textblock
35362 #: ../src/guestfs.pod:2830
35363 msgid "Update ROADMAP."
35364 msgstr ""
35365
35366 #. type: textblock
35367 #: ../src/guestfs.pod:2834
35368 msgid "Run C<src/api-support/update-from-tarballs.sh>."
35369 msgstr ""
35370
35371 #. type: textblock
35372 #: ../src/guestfs.pod:2838
35373 msgid "Push and pull from Transifex."
35374 msgstr ""
35375
35376 #. type: textblock
35377 #: ../src/guestfs.pod:2840
35378 msgid "Run:"
35379 msgstr ""
35380
35381 #. type: verbatim
35382 #: ../src/guestfs.pod:2842
35383 #, no-wrap
35384 msgid ""
35385 " tx push -s\n"
35386 "\n"
35387 msgstr ""
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:2844
35391 msgid "to push the latest POT files to Transifex.  Then run:"
35392 msgstr ""
35393
35394 #. type: verbatim
35395 #: ../src/guestfs.pod:2846
35396 #, no-wrap
35397 msgid ""
35398 " ./tx-pull.sh\n"
35399 "\n"
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:2848
35404 msgid "which is a wrapper to pull the latest translated C<*.po> files."
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:2852
35409 msgid ""
35410 "Create new stable and development directories under "
35411 "L<http://libguestfs.org/download>."
35412 msgstr ""
35413
35414 #. type: textblock
35415 #: ../src/guestfs.pod:2857
35416 msgid "Create the branch in git:"
35417 msgstr ""
35418
35419 #. type: verbatim
35420 #: ../src/guestfs.pod:2859
35421 #, no-wrap
35422 msgid ""
35423 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
35424 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
35425 " git branch stable-1.XX\n"
35426 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
35427 "\n"
35428 msgstr ""
35429
35430 #. type: =head1
35431 #: ../src/guestfs.pod:2866
35432 msgid "LIMITS"
35433 msgstr ""
35434
35435 #. type: =head2
35436 #: ../src/guestfs.pod:2868
35437 msgid "PROTOCOL LIMITS"
35438 msgstr ""
35439
35440 #. type: textblock
35441 #: ../src/guestfs.pod:2870
35442 msgid ""
35443 "Internally libguestfs uses a message-based protocol to pass API calls and "
35444 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
35445 "plenty more detail about this).  The maximum message size used by the "
35446 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
35447 "aware of this limit.  The API calls which may be affected are individually "
35448 "documented, with a link back to this section of the documentation."
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:2878
35453 msgid ""
35454 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
35455 "a simple string.  Because this string is at some point internally encoded as "
35456 "a message, the maximum size that it can return is slightly under 4 MB.  If "
35457 "the requested file is larger than this then you will get an error."
35458 msgstr ""
35459
35460 #. type: textblock
35461 #: ../src/guestfs.pod:2884
35462 msgid ""
35463 "In order to transfer large files into and out of the guest filesystem, you "
35464 "need to use particular calls that support this.  The sections L</UPLOADING> "
35465 "and L</DOWNLOADING> document how to do this."
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:2888
35470 msgid ""
35471 "You might also consider mounting the disk image using our FUSE filesystem "
35472 "support (L<guestmount(1)>)."
35473 msgstr ""
35474
35475 #. type: =head2
35476 #: ../src/guestfs.pod:2891
35477 msgid "MAXIMUM NUMBER OF DISKS"
35478 msgstr ""
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:2893
35482 msgid "When using virtio disks (the default) the current limit is B<25> disks."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:2896
35487 msgid ""
35488 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
35489 "slots.  However febootstrap only understands disks with names C</dev/vda> "
35490 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
35491 "purposes."
35492 msgstr ""
35493
35494 #. type: textblock
35495 #: ../src/guestfs.pod:2901
35496 msgid ""
35497 "We are working to substantially raise this limit in future versions but it "
35498 "requires complex changes to qemu."
35499 msgstr ""
35500
35501 #. type: textblock
35502 #: ../src/guestfs.pod:2904
35503 msgid ""
35504 "In future versions of libguestfs it should also be possible to \"hot plug\" "
35505 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
35506 "requires changes to qemu."
35507 msgstr ""
35508
35509 #. type: =head2
35510 #: ../src/guestfs.pod:2908
35511 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
35512 msgstr ""
35513
35514 #. type: textblock
35515 #: ../src/guestfs.pod:2910
35516 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
35517 msgstr ""
35518
35519 #. type: textblock
35520 #: ../src/guestfs.pod:2912
35521 msgid ""
35522 "This is because it reserves 4 bits for the minor device number (thus "
35523 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
35524 msgstr ""
35525
35526 #. type: textblock
35527 #: ../src/guestfs.pod:2915
35528 msgid ""
35529 "If you attach a disk with more than 15 partitions, the extra partitions are "
35530 "ignored by libguestfs."
35531 msgstr ""
35532
35533 #. type: =head2
35534 #: ../src/guestfs.pod:2918
35535 msgid "MAXIMUM SIZE OF A DISK"
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:2920
35540 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
35541 msgstr ""
35542
35543 #. type: textblock
35544 #: ../src/guestfs.pod:2922
35545 msgid ""
35546 "We have tested block devices up to 1 exabyte (2**60 or "
35547 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
35548 "filesystem."
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:2926
35553 msgid ""
35554 "Although libguestfs probably does not impose any limit, the underlying host "
35555 "storage will.  If you store disk images on a host ext4 filesystem, then the "
35556 "maximum size will be limited by the maximum ext4 file size (currently 16 "
35557 "TB).  If you store disk images as host logical volumes then you are limited "
35558 "by the maximum size of an LV."
35559 msgstr ""
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:2932
35563 msgid ""
35564 "For the hugest disk image files, we recommend using XFS on the host for "
35565 "storage."
35566 msgstr ""
35567
35568 #. type: =head2
35569 #: ../src/guestfs.pod:2935
35570 msgid "MAXIMUM SIZE OF A PARTITION"
35571 msgstr ""
35572
35573 #. type: textblock
35574 #: ../src/guestfs.pod:2937
35575 msgid ""
35576 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
35577 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
35578 "address a partition located beyond 2 TB on the disk."
35579 msgstr ""
35580
35581 #. type: textblock
35582 #: ../src/guestfs.pod:2941
35583 msgid ""
35584 "It is recommended that you use GPT partitions on disks which are larger than "
35585 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
35586 "which are theoretically larger than the largest disk we could support."
35587 msgstr ""
35588
35589 #. type: =head2
35590 #: ../src/guestfs.pod:2946
35591 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
35592 msgstr ""
35593
35594 #. type: textblock
35595 #: ../src/guestfs.pod:2948
35596 msgid ""
35597 "This depends on the filesystem type.  libguestfs itself does not impose any "
35598 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
35599 "what these limits are."
35600 msgstr ""
35601
35602 #. type: =head2
35603 #: ../src/guestfs.pod:2952
35604 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
35605 msgstr ""
35606
35607 #. type: textblock
35608 #: ../src/guestfs.pod:2954
35609 msgid ""
35610 "The API functions L</guestfs_upload>, L</guestfs_download>, "
35611 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
35612 "uploads and downloads."
35613 msgstr ""
35614
35615 #. type: =head2
35616 #: ../src/guestfs.pod:2958
35617 msgid "INSPECTION LIMITS"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:2960
35622 msgid ""
35623 "The inspection code has several arbitrary limits on things like the size of "
35624 "Windows Registry hive it will read, and the length of product name.  These "
35625 "are intended to stop a malicious guest from consuming arbitrary amounts of "
35626 "memory and disk space on the host, and should not be reached in practice.  "
35627 "See the source code for more information."
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs.pod:2986
35632 msgid ""
35633 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
35634 "effect as calling C<guestfs_set_verbose (g, 1)>."
35635 msgstr ""
35636
35637 #. type: textblock
35638 #: ../src/guestfs.pod:2998
35639 msgid ""
35640 "Set the path that libguestfs uses to search for a supermin appliance.  See "
35641 "the discussion of paths in section L</PATH> above."
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs.pod:3007
35646 msgid "See also L</QEMU WRAPPERS> above."
35647 msgstr ""
35648
35649 #. type: textblock
35650 #: ../src/guestfs.pod:3011
35651 msgid ""
35652 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
35653 "effect as calling C<guestfs_set_trace (g, 1)>."
35654 msgstr ""
35655
35656 #. type: textblock
35657 #: ../src/guestfs.pod:3029
35658 msgid ""
35659 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
35660 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
35661 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
35662 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
35663 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
35664 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
35665 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
35666 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
35667 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
35668 msgstr ""
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:3059
35672 msgid ""
35673 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
35674 "L<lvm(8)>, L<disktype(1)>."
35675 msgstr ""
35676
35677 #. type: =head1
35678 #: ../src/guestfs.pod:3066 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
35679 msgid "BUGS"
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:3068
35684 msgid "To get a list of bugs against libguestfs use this link:"
35685 msgstr ""
35686
35687 #. type: textblock
35688 #: ../src/guestfs.pod:3070
35689 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:3072
35694 msgid "To report a new bug against libguestfs use this link:"
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:3074
35699 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
35700 msgstr ""
35701
35702 #. type: textblock
35703 #: ../src/guestfs.pod:3076
35704 msgid "When reporting a bug, please check:"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:3082
35709 msgid "That the bug hasn't been reported already."
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:3086
35714 msgid "That you are testing a recent version."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs.pod:3090
35719 msgid "Describe the bug accurately, and give a way to reproduce it."
35720 msgstr ""
35721
35722 #. type: textblock
35723 #: ../src/guestfs.pod:3094
35724 msgid ""
35725 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
35726 "bug report."
35727 msgstr ""
35728
35729 #. type: textblock
35730 #: ../test-tool/libguestfs-test-tool.pod:5
35731 msgid "libguestfs-test-tool - End user tests for libguestfs"
35732 msgstr ""
35733
35734 #. type: verbatim
35735 #: ../test-tool/libguestfs-test-tool.pod:9
35736 #, no-wrap
35737 msgid ""
35738 " libguestfs-test-tool [--options]\n"
35739 "\n"
35740 msgstr ""
35741
35742 #. type: textblock
35743 #: ../test-tool/libguestfs-test-tool.pod:13
35744 msgid ""
35745 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
35746 "and developers, to allow them to check basic libguestfs functionality is "
35747 "working.  This is needed because libguestfs occasionally breaks for reasons "
35748 "beyond our control: usually because of changes in the underlying qemu or "
35749 "kernel packages, or the host environment."
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../test-tool/libguestfs-test-tool.pod:20
35754 msgid "If you suspect a problem in libguestfs, then just run:"
35755 msgstr ""
35756
35757 #. type: verbatim
35758 #: ../test-tool/libguestfs-test-tool.pod:22
35759 #, no-wrap
35760 msgid ""
35761 " libguestfs-test-tool\n"
35762 "\n"
35763 msgstr ""
35764
35765 #. type: textblock
35766 #: ../test-tool/libguestfs-test-tool.pod:24
35767 msgid "It will print lots of diagnostic messages."
35768 msgstr ""
35769
35770 #. type: textblock
35771 #: ../test-tool/libguestfs-test-tool.pod:26
35772 msgid "If it runs to completion successfully, you will see this near the end:"
35773 msgstr ""
35774
35775 #. type: verbatim
35776 #: ../test-tool/libguestfs-test-tool.pod:28
35777 #, no-wrap
35778 msgid ""
35779 " ===== TEST FINISHED OK =====\n"
35780 "\n"
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../test-tool/libguestfs-test-tool.pod:30
35785 msgid "and the test tool will exit with code 0."
35786 msgstr ""
35787
35788 #. type: textblock
35789 #: ../test-tool/libguestfs-test-tool.pod:32
35790 msgid ""
35791 "If it fails (and/or exits with non-zero error code), please paste the "
35792 "B<complete, unedited> output of the test tool into a bug report.  More "
35793 "information about reporting bugs can be found on the "
35794 "L<http://libguestfs.org/> website."
35795 msgstr ""
35796
35797 #. type: =item
35798 #: ../test-tool/libguestfs-test-tool.pod:41
35799 msgid "I<--help>"
35800 msgstr ""
35801
35802 #. type: textblock
35803 #: ../test-tool/libguestfs-test-tool.pod:43
35804 msgid "Display short usage information and exit."
35805 msgstr ""
35806
35807 #. type: =item
35808 #: ../test-tool/libguestfs-test-tool.pod:45
35809 msgid "I<--qemu qemu_binary>"
35810 msgstr ""
35811
35812 #. type: textblock
35813 #: ../test-tool/libguestfs-test-tool.pod:47
35814 msgid ""
35815 "If you have downloaded another qemu binary, point this option at the full "
35816 "path of the binary to try it."
35817 msgstr ""
35818
35819 #. type: =item
35820 #: ../test-tool/libguestfs-test-tool.pod:50
35821 msgid "I<--qemudir qemu_source_dir>"
35822 msgstr ""
35823
35824 #. type: textblock
35825 #: ../test-tool/libguestfs-test-tool.pod:52
35826 msgid ""
35827 "If you have compiled qemu from source, point this option at the source "
35828 "directory to try it."
35829 msgstr ""
35830
35831 #. type: =item
35832 #: ../test-tool/libguestfs-test-tool.pod:55
35833 msgid "I<--timeout N>"
35834 msgstr ""
35835
35836 #. type: textblock
35837 #: ../test-tool/libguestfs-test-tool.pod:57
35838 msgid ""
35839 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
35840 "does not usually need to be adjusted unless your machine is very slow."
35841 msgstr ""
35842
35843 #. type: =head1
35844 #: ../test-tool/libguestfs-test-tool.pod:63
35845 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../test-tool/libguestfs-test-tool.pod:65
35850 msgid ""
35851 "If you have compiled another version of qemu from source and would like to "
35852 "try that, then you can use the I<--qemudir> option to point to the qemu "
35853 "source directory."
35854 msgstr ""
35855
35856 #. type: textblock
35857 #: ../test-tool/libguestfs-test-tool.pod:69
35858 msgid ""
35859 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
35860 "option to point to the binary."
35861 msgstr ""
35862
35863 #. type: textblock
35864 #: ../test-tool/libguestfs-test-tool.pod:72
35865 msgid ""
35866 "When using an alternate qemu with libguestfs, usually you would need to "
35867 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
35868 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
35869 "when you use either of the I<--qemudir> or I<--qemu> options."
35870 msgstr ""
35871
35872 #. type: textblock
35873 #: ../test-tool/libguestfs-test-tool.pod:79
35874 msgid ""
35875 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
35876 "I<1> if there was an error."
35877 msgstr ""
35878
35879 #. type: textblock
35880 #: ../test-tool/libguestfs-test-tool.pod:84
35881 msgid ""
35882 "For the full list of environment variables which may affect libguestfs, "
35883 "please see the L<guestfs(3)> manual page."
35884 msgstr ""
35885
35886 #. type: textblock
35887 #: ../test-tool/libguestfs-test-tool.pod:89
35888 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../tools/virt-list-filesystems.pl:32
35893 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
35894 msgstr ""
35895
35896 #. type: verbatim
35897 #: ../tools/virt-list-filesystems.pl:36
35898 #, no-wrap
35899 msgid ""
35900 " virt-list-filesystems [--options] domname\n"
35901 "\n"
35902 msgstr ""
35903
35904 #. type: verbatim
35905 #: ../tools/virt-list-filesystems.pl:38
35906 #, no-wrap
35907 msgid ""
35908 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
35909 "\n"
35910 msgstr ""
35911
35912 #. type: textblock
35913 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
35914 msgid ""
35915 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
35916 "replacement."
35917 msgstr ""
35918
35919 #. type: textblock
35920 #: ../tools/virt-list-filesystems.pl:45
35921 msgid ""
35922 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
35923 "are contained in a virtual machine or disk image."
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../tools/virt-list-filesystems.pl:49
35928 msgid ""
35929 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
35930 "functionality.  For more complex cases you should look at the "
35931 "L<guestfish(1)> tool."
35932 msgstr ""
35933
35934 #. type: textblock
35935 #: ../tools/virt-list-filesystems.pl:112
35936 msgid ""
35937 "With this option, C<virt-list-filesystems> displays the type of each "
35938 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
35939 msgstr ""
35940
35941 #. type: =item
35942 #: ../tools/virt-list-filesystems.pl:119
35943 msgid "B<-a>"
35944 msgstr ""
35945
35946 #. type: textblock
35947 #: ../tools/virt-list-filesystems.pl:123
35948 msgid ""
35949 "Normally we only show mountable filesystems.  If this option is given then "
35950 "swap devices are shown too."
35951 msgstr ""
35952
35953 #. type: textblock
35954 #: ../tools/virt-list-filesystems.pl:197
35955 msgid ""
35956 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
35957 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
35958 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35959 msgstr ""
35960
35961 #. type: textblock
35962 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
35963 msgid "Copyright (C) 2009 Red Hat Inc."
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../tools/virt-list-partitions.pl:32
35968 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
35969 msgstr ""
35970
35971 #. type: verbatim
35972 #: ../tools/virt-list-partitions.pl:36
35973 #, no-wrap
35974 msgid ""
35975 " virt-list-partitions [--options] domname\n"
35976 "\n"
35977 msgstr ""
35978
35979 #. type: verbatim
35980 #: ../tools/virt-list-partitions.pl:38
35981 #, no-wrap
35982 msgid ""
35983 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35984 "\n"
35985 msgstr ""
35986
35987 #. type: textblock
35988 #: ../tools/virt-list-partitions.pl:45
35989 msgid ""
35990 "C<virt-list-partitions> is a command line tool to list the partitions that "
35991 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35992 "first step to using L<virt-resize(1)>."
35993 msgstr ""
35994
35995 #. type: textblock
35996 #: ../tools/virt-list-partitions.pl:50
35997 msgid ""
35998 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35999 "functionality.  For more complex cases you should look at the "
36000 "L<guestfish(1)> tool."
36001 msgstr ""
36002
36003 #. type: textblock
36004 #: ../tools/virt-list-partitions.pl:113
36005 msgid "Show sizes in human-readable form (eg. \"1G\")."
36006 msgstr ""
36007
36008 #. type: textblock
36009 #: ../tools/virt-list-partitions.pl:123
36010 msgid ""
36011 "With this option, C<virt-list-partitions> displays the type and size of each "
36012 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
36013 msgstr ""
36014
36015 #. type: =item
36016 #: ../tools/virt-list-partitions.pl:130
36017 msgid "B<-t>"
36018 msgstr ""
36019
36020 #. type: =item
36021 #: ../tools/virt-list-partitions.pl:132
36022 msgid "B<--total>"
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../tools/virt-list-partitions.pl:134
36027 msgid "Display the total size of each block device (as a separate row or rows)."
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../tools/virt-list-partitions.pl:267
36032 msgid ""
36033 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
36034 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
36035 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../tools/virt-list-partitions.pl:283
36040 msgid "Copyright (C) 2009-2010 Red Hat Inc."
36041 msgstr ""
36042
36043 #. type: textblock
36044 #: ../tools/virt-make-fs.pl:37
36045 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
36046 msgstr ""
36047
36048 #. type: verbatim
36049 #: ../tools/virt-make-fs.pl:41
36050 #, no-wrap
36051 msgid ""
36052 " virt-make-fs [--options] input.tar output.img\n"
36053 "\n"
36054 msgstr ""
36055
36056 #. type: verbatim
36057 #: ../tools/virt-make-fs.pl:43
36058 #, no-wrap
36059 msgid ""
36060 " virt-make-fs [--options] input.tar.gz output.img\n"
36061 "\n"
36062 msgstr ""
36063
36064 #. type: verbatim
36065 #: ../tools/virt-make-fs.pl:45
36066 #, no-wrap
36067 msgid ""
36068 " virt-make-fs [--options] directory output.img\n"
36069 "\n"
36070 msgstr ""
36071
36072 #. type: textblock
36073 #: ../tools/virt-make-fs.pl:49
36074 msgid ""
36075 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36076 "archive or some files in a directory.  It is similar to tools like "
36077 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
36078 "it can create common filesystem types like ext2/3 or NTFS, which can be "
36079 "useful if you want to attach these filesystems to existing virtual machines "
36080 "(eg. to import large amounts of read-only data to a VM)."
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../tools/virt-make-fs.pl:57
36085 msgid "Basic usage is:"
36086 msgstr ""
36087
36088 #. type: verbatim
36089 #: ../tools/virt-make-fs.pl:59
36090 #, no-wrap
36091 msgid ""
36092 " virt-make-fs input output\n"
36093 "\n"
36094 msgstr ""
36095
36096 #. type: textblock
36097 #: ../tools/virt-make-fs.pl:61
36098 msgid ""
36099 "where C<input> is either a directory containing files that you want to add, "
36100 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36101 "C<output> is a disk image.  The input type is detected automatically.  The "
36102 "output disk image defaults to a raw ext2 image unless you specify extra "
36103 "flags (see L</OPTIONS> below)."
36104 msgstr ""
36105
36106 #. type: =head2
36107 #: ../tools/virt-make-fs.pl:67
36108 msgid "EXTRA SPACE"
36109 msgstr ""
36110
36111 #. type: textblock
36112 #: ../tools/virt-make-fs.pl:69
36113 msgid ""
36114 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36115 "the files that it contains, but might have extra space.  Depending on how "
36116 "you are going to use the output, you might think this extra space is wasted "
36117 "and want to minimize it, or you might want to leave space so that more files "
36118 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36119 "but you can use the I<--size> flag to leave space in the filesystem if you "
36120 "want it."
36121 msgstr ""
36122
36123 #. type: textblock
36124 #: ../tools/virt-make-fs.pl:77
36125 msgid ""
36126 "An alternative way to leave extra space but not make the output image any "
36127 "bigger is to use an alternative disk image format (instead of the default "
36128 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36129 "image format (check your hypervisor supports this before using it).  This "
36130 "allows you to choose a large I<--size> but the extra space won't actually be "
36131 "allocated in the image until you try to store something in it."
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../tools/virt-make-fs.pl:85
36136 msgid ""
36137 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36138 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36139 "to build another image from scratch."
36140 msgstr ""
36141
36142 #. type: =head3
36143 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
36144 msgid "EXAMPLE"
36145 msgstr ""
36146
36147 #. type: verbatim
36148 #: ../tools/virt-make-fs.pl:91
36149 #, no-wrap
36150 msgid ""
36151 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36152 "\n"
36153 msgstr ""
36154
36155 #. type: =head2
36156 #: ../tools/virt-make-fs.pl:93
36157 msgid "FILESYSTEM TYPE"
36158 msgstr ""
36159
36160 #. type: textblock
36161 #: ../tools/virt-make-fs.pl:95
36162 msgid ""
36163 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36164 "libguestfs supports can be used (but I<not> read-only formats like "
36165 "ISO9660).  Here are some of the more common choices:"
36166 msgstr ""
36167
36168 #. type: =item
36169 #: ../tools/virt-make-fs.pl:101
36170 msgid "I<ext3>"
36171 msgstr ""
36172
36173 #. type: textblock
36174 #: ../tools/virt-make-fs.pl:103
36175 msgid ""
36176 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36177 "you are not going to use the filesystem in a way that requires the journal, "
36178 "then this is just wasted overhead."
36179 msgstr ""
36180
36181 #. type: =item
36182 #: ../tools/virt-make-fs.pl:107
36183 msgid "I<ntfs> or I<vfat>"
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../tools/virt-make-fs.pl:109
36188 msgid "Useful if exporting data to a Windows guest."
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../tools/virt-make-fs.pl:111
36193 msgid ""
36194 "I<Note for vfat>: The tar archive or local directory must only contain files "
36195 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36196 "program running within libguestfs is unable to change the ownership of "
36197 "non-root files, since vfat itself does not support this."
36198 msgstr ""
36199
36200 #. type: =item
36201 #: ../tools/virt-make-fs.pl:116
36202 msgid "I<minix>"
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../tools/virt-make-fs.pl:118
36207 msgid ""
36208 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36209 "total filesystem size."
36210 msgstr ""
36211
36212 #. type: verbatim
36213 #: ../tools/virt-make-fs.pl:125
36214 #, no-wrap
36215 msgid ""
36216 " virt-make-fs --type=minix input minixfs.img\n"
36217 "\n"
36218 msgstr ""
36219
36220 #. type: =head2
36221 #: ../tools/virt-make-fs.pl:127
36222 msgid "TO PARTITION OR NOT TO PARTITION"
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../tools/virt-make-fs.pl:129
36227 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../tools/virt-make-fs.pl:131
36232 msgid ""
36233 "Adding a partition can make the disk image more compatible with certain "
36234 "virtualized operating systems which don't expect to see a filesystem "
36235 "directly located on a block device (Linux doesn't care and will happily "
36236 "handle both types)."
36237 msgstr ""
36238
36239 #. type: textblock
36240 #: ../tools/virt-make-fs.pl:136
36241 msgid ""
36242 "On the other hand, if you have a partition table then the output image is no "
36243 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36244 "directly on a partitioned disk image.  (However libguestfs tools such as "
36245 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../tools/virt-make-fs.pl:144
36250 msgid "Add an MBR partition:"
36251 msgstr ""
36252
36253 #. type: verbatim
36254 #: ../tools/virt-make-fs.pl:146
36255 #, no-wrap
36256 msgid ""
36257 " virt-make-fs --partition -- input disk.img\n"
36258 "\n"
36259 msgstr ""
36260
36261 #. type: textblock
36262 #: ../tools/virt-make-fs.pl:148
36263 msgid ""
36264 "If the output disk image could be terabyte-sized or larger, it's better to "
36265 "use an EFI/GPT-compatible partition table:"
36266 msgstr ""
36267
36268 #. type: verbatim
36269 #: ../tools/virt-make-fs.pl:151
36270 #, no-wrap
36271 msgid ""
36272 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36273 "\n"
36274 msgstr ""
36275
36276 #. type: textblock
36277 #: ../tools/virt-make-fs.pl:179
36278 msgid "Enable debugging information."
36279 msgstr ""
36280
36281 #. type: =item
36282 #: ../tools/virt-make-fs.pl:185
36283 msgid "B<--size=E<lt>NE<gt>>"
36284 msgstr ""
36285
36286 #. type: =item
36287 #: ../tools/virt-make-fs.pl:187
36288 msgid "B<--size=+E<lt>NE<gt>>"
36289 msgstr ""
36290
36291 #. type: =item
36292 #: ../tools/virt-make-fs.pl:189
36293 msgid "B<-s E<lt>NE<gt>>"
36294 msgstr ""
36295
36296 #. type: =item
36297 #: ../tools/virt-make-fs.pl:191
36298 msgid "B<-s +E<lt>NE<gt>>"
36299 msgstr ""
36300
36301 #. type: textblock
36302 #: ../tools/virt-make-fs.pl:193
36303 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../tools/virt-make-fs.pl:196
36308 msgid ""
36309 "If this option is I<not> given, then the output image will be just large "
36310 "enough to contain all the files, with not much wasted space."
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../tools/virt-make-fs.pl:199
36315 msgid ""
36316 "To choose a fixed size output disk, specify an absolute number followed by "
36317 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36318 "Petabytes or Exabytes.  This must be large enough to contain all the input "
36319 "files, else you will get an error."
36320 msgstr ""
36321
36322 #. type: textblock
36323 #: ../tools/virt-make-fs.pl:204
36324 msgid ""
36325 "To leave extra space, specify C<+> (plus sign) and a number followed by "
36326 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36327 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
36328 "the input files, and (approximately) an extra 200 MB free space."
36329 msgstr ""
36330
36331 #. type: textblock
36332 #: ../tools/virt-make-fs.pl:210
36333 msgid ""
36334 "Note that virt-make-fs estimates free space, and therefore will not produce "
36335 "filesystems containing precisely the free space requested.  (It is much more "
36336 "expensive and time-consuming to produce a filesystem which has precisely the "
36337 "desired free space)."
36338 msgstr ""
36339
36340 #. type: =item
36341 #: ../tools/virt-make-fs.pl:219
36342 msgid "B<--format=E<lt>fmtE<gt>>"
36343 msgstr ""
36344
36345 #. type: =item
36346 #: ../tools/virt-make-fs.pl:221
36347 msgid "B<-F E<lt>fmtE<gt>>"
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../tools/virt-make-fs.pl:223
36352 msgid "Choose the output disk image format."
36353 msgstr ""
36354
36355 #. type: textblock
36356 #: ../tools/virt-make-fs.pl:225
36357 msgid "The default is C<raw> (raw disk image)."
36358 msgstr ""
36359
36360 #. type: textblock
36361 #: ../tools/virt-make-fs.pl:227
36362 msgid ""
36363 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
36364 "that would really make sense here is C<qcow2>."
36365 msgstr ""
36366
36367 #. type: =item
36368 #: ../tools/virt-make-fs.pl:234
36369 msgid "B<--type=E<lt>fsE<gt>>"
36370 msgstr ""
36371
36372 #. type: =item
36373 #: ../tools/virt-make-fs.pl:236
36374 msgid "B<-t E<lt>fsE<gt>>"
36375 msgstr ""
36376
36377 #. type: textblock
36378 #: ../tools/virt-make-fs.pl:238
36379 msgid "Choose the output filesystem type."
36380 msgstr ""
36381
36382 #. type: textblock
36383 #: ../tools/virt-make-fs.pl:240
36384 msgid "The default is C<ext2>."
36385 msgstr ""
36386
36387 #. type: textblock
36388 #: ../tools/virt-make-fs.pl:242
36389 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
36390 msgstr ""
36391
36392 #. type: =item
36393 #: ../tools/virt-make-fs.pl:249
36394 msgid "B<--partition>"
36395 msgstr ""
36396
36397 #. type: =item
36398 #: ../tools/virt-make-fs.pl:251
36399 msgid "B<--partition=E<lt>parttypeE<gt>>"
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../tools/virt-make-fs.pl:253
36404 msgid ""
36405 "If specified, this flag adds an MBR partition table to the output disk "
36406 "image."
36407 msgstr ""
36408
36409 #. type: textblock
36410 #: ../tools/virt-make-fs.pl:256
36411 msgid ""
36412 "You can change the partition table type, eg. I<--partition=gpt> for large "
36413 "disks."
36414 msgstr ""
36415
36416 #. type: textblock
36417 #: ../tools/virt-make-fs.pl:259
36418 msgid ""
36419 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
36420 "might consider the next parameter to be the partition type.  For example:"
36421 msgstr ""
36422
36423 #. type: verbatim
36424 #: ../tools/virt-make-fs.pl:263
36425 #, no-wrap
36426 msgid ""
36427 " virt-make-fs --partition input.tar ...\n"
36428 "\n"
36429 msgstr ""
36430
36431 #. type: textblock
36432 #: ../tools/virt-make-fs.pl:265
36433 msgid ""
36434 "would cause virt-make-fs to think you wanted to use a partition type of "
36435 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
36436 "dash) between options and the input file argument:"
36437 msgstr ""
36438
36439 #. type: verbatim
36440 #: ../tools/virt-make-fs.pl:269
36441 #, no-wrap
36442 msgid ""
36443 " virt-make-fs --partition -- input.tar ...\n"
36444 "\n"
36445 msgstr ""
36446
36447 #. type: textblock
36448 #: ../tools/virt-make-fs.pl:541
36449 msgid ""
36450 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
36451 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
36452 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
36453 msgstr ""
36454
36455 #. type: textblock
36456 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
36457 msgid ""
36458 "When reporting bugs, please enable debugging and capture the I<complete> "
36459 "output:"
36460 msgstr ""
36461
36462 #. type: verbatim
36463 #: ../tools/virt-make-fs.pl:558
36464 #, no-wrap
36465 msgid ""
36466 " export LIBGUESTFS_DEBUG=1\n"
36467 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
36468 "\n"
36469 msgstr ""
36470
36471 #. type: textblock
36472 #: ../tools/virt-make-fs.pl:561
36473 msgid ""
36474 "Attach /tmp/virt-make-fs.log to a new bug report at "
36475 "L<https://bugzilla.redhat.com/>"
36476 msgstr ""
36477
36478 #. type: textblock
36479 #: ../tools/virt-tar.pl:33
36480 msgid "virt-tar - Extract or upload files to a virtual machine"
36481 msgstr ""
36482
36483 #. type: verbatim
36484 #: ../tools/virt-tar.pl:37
36485 #, no-wrap
36486 msgid ""
36487 " virt-tar [--options] -x domname directory tarball\n"
36488 "\n"
36489 msgstr ""
36490
36491 #. type: verbatim
36492 #: ../tools/virt-tar.pl:39
36493 #, no-wrap
36494 msgid ""
36495 " virt-tar [--options] -u domname tarball directory\n"
36496 "\n"
36497 msgstr ""
36498
36499 #. type: verbatim
36500 #: ../tools/virt-tar.pl:41
36501 #, no-wrap
36502 msgid ""
36503 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
36504 "\n"
36505 msgstr ""
36506
36507 #. type: verbatim
36508 #: ../tools/virt-tar.pl:43
36509 #, no-wrap
36510 msgid ""
36511 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
36512 "\n"
36513 msgstr ""
36514
36515 #. type: =head2
36516 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
36517 msgid "NOTE"
36518 msgstr ""
36519
36520 #. type: textblock
36521 #: ../tools/virt-tar.pl:47
36522 msgid ""
36523 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36524 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
36525 msgstr ""
36526
36527 #. type: textblock
36528 #: ../tools/virt-tar.pl:52
36529 msgid "Download C</home> from the VM into a local tarball:"
36530 msgstr ""
36531
36532 #. type: verbatim
36533 #: ../tools/virt-tar.pl:54
36534 #, no-wrap
36535 msgid ""
36536 " virt-tar -x domname /home home.tar\n"
36537 "\n"
36538 msgstr ""
36539
36540 #. type: verbatim
36541 #: ../tools/virt-tar.pl:56
36542 #, no-wrap
36543 msgid ""
36544 " virt-tar -zx domname /home home.tar.gz\n"
36545 "\n"
36546 msgstr ""
36547
36548 #. type: textblock
36549 #: ../tools/virt-tar.pl:58
36550 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
36551 msgstr ""
36552
36553 #. type: verbatim
36554 #: ../tools/virt-tar.pl:60
36555 #, no-wrap
36556 msgid ""
36557 " virt-tar -u domname uploadstuff.tar /tmp\n"
36558 "\n"
36559 msgstr ""
36560
36561 #. type: verbatim
36562 #: ../tools/virt-tar.pl:62
36563 #, no-wrap
36564 msgid ""
36565 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
36566 "\n"
36567 msgstr ""
36568
36569 #. type: textblock
36570 #: ../tools/virt-tar.pl:66
36571 msgid ""
36572 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
36573 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
36574 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
36575 msgstr ""
36576
36577 #. type: textblock
36578 #: ../tools/virt-tar.pl:71
36579 msgid ""
36580 "You can use I<-x> (extract) on live virtual machines, but you might get "
36581 "inconsistent results or errors if there is filesystem activity inside the "
36582 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
36583 "work, but the only way to guarantee consistent results is if the virtual "
36584 "machine is shut down."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../tools/virt-tar.pl:79
36589 msgid ""
36590 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
36591 "parts of a guest filesystem.  There are many possibilities: making backups, "
36592 "uploading data files, snooping on guest activity, fixing or customizing "
36593 "guests, etc."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../tools/virt-tar.pl:84
36598 msgid ""
36599 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
36600 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
36601 "should look at the L<guestfish(1)> tool."
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../tools/virt-tar.pl:88
36606 msgid ""
36607 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
36608 "its contents (recursively) from the virtual machine into a local tarball.  "
36609 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
36610 "virtual machine.  You cannot use these two options together."
36611 msgstr ""
36612
36613 #. type: textblock
36614 #: ../tools/virt-tar.pl:94
36615 msgid ""
36616 "In addition, you may need to use the I<-z> (gZip) option to enable "
36617 "compression.  When uploading, you have to specify I<-z> if the upload file "
36618 "is compressed because virt-tar won't detect this on its own."
36619 msgstr ""
36620
36621 #. type: textblock
36622 #: ../tools/virt-tar.pl:98
36623 msgid ""
36624 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
36625 "example it cannot do PKZip files or bzip2 compression.  If you want that "
36626 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
36627 "the L<libguestfs(3)> API)."
36628 msgstr ""
36629
36630 #. type: =item
36631 #: ../tools/virt-tar.pl:160
36632 msgid "B<--extract>"
36633 msgstr ""
36634
36635 #. type: =item
36636 #: ../tools/virt-tar.pl:162
36637 msgid "B<--download>"
36638 msgstr ""
36639
36640 #. type: =item
36641 #: ../tools/virt-tar.pl:164
36642 msgid "B<-u>"
36643 msgstr ""
36644
36645 #. type: =item
36646 #: ../tools/virt-tar.pl:166
36647 msgid "B<--upload>"
36648 msgstr ""
36649
36650 #. type: textblock
36651 #: ../tools/virt-tar.pl:168
36652 msgid ""
36653 "Use I<-x> to extract (download) a directory from a virtual machine to a "
36654 "local tarball."
36655 msgstr ""
36656
36657 #. type: textblock
36658 #: ../tools/virt-tar.pl:171
36659 msgid ""
36660 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
36661 "Please read the L</WARNING> section above before using this option."
36662 msgstr ""
36663
36664 #. type: textblock
36665 #: ../tools/virt-tar.pl:175
36666 msgid "You must specify exactly one of these options."
36667 msgstr ""
36668
36669 #. type: =item
36670 #: ../tools/virt-tar.pl:181
36671 msgid "B<-z>"
36672 msgstr ""
36673
36674 #. type: =item
36675 #: ../tools/virt-tar.pl:183
36676 msgid "B<--gzip>"
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../tools/virt-tar.pl:185
36681 msgid "Specify that the input or output tarball is gzip-compressed."
36682 msgstr ""
36683
36684 #. type: textblock
36685 #: ../tools/virt-tar.pl:298
36686 msgid ""
36687 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
36688 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36689 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
36690 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36691 msgstr ""
36692
36693 #. type: textblock
36694 #: ../tools/virt-win-reg.pl:37
36695 msgid ""
36696 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
36697 "guest"
36698 msgstr ""
36699
36700 #. type: verbatim
36701 #: ../tools/virt-win-reg.pl:41
36702 #, no-wrap
36703 msgid ""
36704 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
36705 "\n"
36706 msgstr ""
36707
36708 #. type: verbatim
36709 #: ../tools/virt-win-reg.pl:43
36710 #, no-wrap
36711 msgid ""
36712 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
36713 "\n"
36714 msgstr ""
36715
36716 #. type: verbatim
36717 #: ../tools/virt-win-reg.pl:45
36718 #, no-wrap
36719 msgid ""
36720 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
36721 "\n"
36722 msgstr ""
36723
36724 #. type: verbatim
36725 #: ../tools/virt-win-reg.pl:47
36726 #, no-wrap
36727 msgid ""
36728 " virt-win-reg --merge domname [input.reg ...]\n"
36729 "\n"
36730 msgstr ""
36731
36732 #. type: verbatim
36733 #: ../tools/virt-win-reg.pl:49
36734 #, no-wrap
36735 msgid ""
36736 " virt-win-reg [--options] disk.img ... # instead of domname\n"
36737 "\n"
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../tools/virt-win-reg.pl:53
36742 msgid ""
36743 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
36744 "virtual machines.  If you do this, you I<will> get irreversible disk "
36745 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
36746 "but doesn't catch all cases."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../tools/virt-win-reg.pl:58
36751 msgid ""
36752 "Modifying the Windows Registry is an inherently risky operation.  The format "
36753 "is deliberately obscure and undocumented, and Registry changes can leave the "
36754 "system unbootable.  Therefore when using the I<--merge> option, make sure "
36755 "you have a reliable backup first."
36756 msgstr ""
36757
36758 #. type: textblock
36759 #: ../tools/virt-win-reg.pl:65
36760 msgid ""
36761 "This program can export and merge Windows Registry entries from a Windows "
36762 "guest."
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../tools/virt-win-reg.pl:68
36767 msgid ""
36768 "The first parameter is the libvirt guest name or the raw disk image of a "
36769 "Windows guest."
36770 msgstr ""
36771
36772 #. type: textblock
36773 #: ../tools/virt-win-reg.pl:71
36774 msgid ""
36775 "If I<--merge> is I<not> specified, then the chosen registry key is "
36776 "displayed/exported (recursively).  For example:"
36777 msgstr ""
36778
36779 #. type: verbatim
36780 #: ../tools/virt-win-reg.pl:74
36781 #, no-wrap
36782 msgid ""
36783 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
36784 "\n"
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../tools/virt-win-reg.pl:76
36789 msgid "You can also display single values from within registry keys, for example:"
36790 msgstr ""
36791
36792 #. type: verbatim
36793 #: ../tools/virt-win-reg.pl:79
36794 #, no-wrap
36795 msgid ""
36796 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
36797 " $ virt-win-reg Windows7 $cvkey ProductName\n"
36798 " Windows 7 Enterprise\n"
36799 "\n"
36800 msgstr ""
36801
36802 #. type: textblock
36803 #: ../tools/virt-win-reg.pl:83
36804 msgid ""
36805 "With I<--merge>, you can merge a textual regedit file into the Windows "
36806 "Registry:"
36807 msgstr ""
36808
36809 #. type: verbatim
36810 #: ../tools/virt-win-reg.pl:86
36811 #, no-wrap
36812 msgid ""
36813 " $ virt-win-reg --merge Windows7 changes.reg\n"
36814 "\n"
36815 msgstr ""
36816
36817 #. type: textblock
36818 #: ../tools/virt-win-reg.pl:90
36819 msgid ""
36820 "This program is only meant for simple access to the registry.  If you want "
36821 "to do complicated things with the registry, we suggest you download the "
36822 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
36823 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
36824 "L<hivexregedit(1)>."
36825 msgstr ""
36826
36827 #. type: =item
36828 #: ../tools/virt-win-reg.pl:159
36829 msgid "B<--merge>"
36830 msgstr ""
36831
36832 #. type: textblock
36833 #: ../tools/virt-win-reg.pl:161
36834 msgid ""
36835 "In merge mode, this merges a textual regedit file into the Windows Registry "
36836 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
36837 "displays or exports Registry entries instead."
36838 msgstr ""
36839
36840 #. type: textblock
36841 #: ../tools/virt-win-reg.pl:165
36842 msgid ""
36843 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
36844 "result in disk corruption.  However exporting (without this flag)  is always "
36845 "safe."
36846 msgstr ""
36847
36848 #. type: =item
36849 #: ../tools/virt-win-reg.pl:173
36850 msgid "B<--encoding> UTF-16LE|ASCII"
36851 msgstr ""
36852
36853 #. type: textblock
36854 #: ../tools/virt-win-reg.pl:175
36855 msgid ""
36856 "When merging (only), you may need to specify the encoding for strings to be "
36857 "used in the hive file.  This is explained in detail in "
36858 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
36859 msgstr ""
36860
36861 #. type: textblock
36862 #: ../tools/virt-win-reg.pl:179
36863 msgid ""
36864 "The default is to use UTF-16LE, which should work with recent versions of "
36865 "Windows."
36866 msgstr ""
36867
36868 #. type: =item
36869 #: ../tools/virt-win-reg.pl:186
36870 msgid "B<--unsafe-printable-strings>"
36871 msgstr ""
36872
36873 #. type: textblock
36874 #: ../tools/virt-win-reg.pl:188
36875 msgid ""
36876 "When exporting (only), assume strings are UTF-16LE and print them as strings "
36877 "instead of hex sequences.  Remove the final zero codepoint from strings if "
36878 "present."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../tools/virt-win-reg.pl:192
36883 msgid ""
36884 "This is unsafe and does not preserve the fidelity of strings in the original "
36885 "Registry for various reasons:"
36886 msgstr ""
36887
36888 #. type: textblock
36889 #: ../tools/virt-win-reg.pl:199
36890 msgid ""
36891 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
36892 "other encodings will be corrupted by this transformation."
36893 msgstr ""
36894
36895 #. type: textblock
36896 #: ../tools/virt-win-reg.pl:204
36897 msgid ""
36898 "Assumes that everything which has type 1 or 2 is really a string and that "
36899 "everything else is not a string, but the type field in real Registries is "
36900 "not reliable."
36901 msgstr ""
36902
36903 #. type: textblock
36904 #: ../tools/virt-win-reg.pl:210
36905 msgid ""
36906 "Loses information about whether a zero codepoint followed the string in the "
36907 "Registry or not."
36908 msgstr ""
36909
36910 #. type: textblock
36911 #: ../tools/virt-win-reg.pl:215
36912 msgid ""
36913 "This all happens because the Registry itself contains no information about "
36914 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
36915 msgstr ""
36916
36917 #. type: textblock
36918 #: ../tools/virt-win-reg.pl:219
36919 msgid ""
36920 "You should only use this option for quick hacking and debugging of the "
36921 "Registry contents, and I<never> use it if the output is going to be passed "
36922 "into another program or stored in another Registry."
36923 msgstr ""
36924
36925 #. type: =head1
36926 #: ../tools/virt-win-reg.pl:556
36927 msgid "SUPPORTED SYSTEMS"
36928 msgstr ""
36929
36930 #. type: textblock
36931 #: ../tools/virt-win-reg.pl:558
36932 msgid ""
36933 "The program currently supports Windows NT-derived guests starting with "
36934 "Windows XP through to at least Windows 7."
36935 msgstr ""
36936
36937 #. type: textblock
36938 #: ../tools/virt-win-reg.pl:561
36939 msgid "The following Registry keys are supported:"
36940 msgstr ""
36941
36942 #. type: =item
36943 #: ../tools/virt-win-reg.pl:565
36944 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
36945 msgstr ""
36946
36947 #. type: =item
36948 #: ../tools/virt-win-reg.pl:567
36949 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
36950 msgstr ""
36951
36952 #. type: =item
36953 #: ../tools/virt-win-reg.pl:569
36954 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
36955 msgstr ""
36956
36957 #. type: =item
36958 #: ../tools/virt-win-reg.pl:571
36959 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
36960 msgstr ""
36961
36962 #. type: =item
36963 #: ../tools/virt-win-reg.pl:573
36964 msgid "C<HKEY_USERS\\.DEFAULT>"
36965 msgstr ""
36966
36967 #. type: =item
36968 #: ../tools/virt-win-reg.pl:575
36969 msgid "C<HKEY_USERS\\I<SID>>"
36970 msgstr ""
36971
36972 #. type: textblock
36973 #: ../tools/virt-win-reg.pl:577
36974 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
36975 msgstr ""
36976
36977 #. type: =item
36978 #: ../tools/virt-win-reg.pl:579
36979 msgid "C<HKEY_USERS\\I<username>>"
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../tools/virt-win-reg.pl:581
36984 msgid "where I<username> is a local user name (this is a libguestfs extension)."
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../tools/virt-win-reg.pl:585
36989 msgid ""
36990 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
36991 "C<HKEY_USERS>."
36992 msgstr ""
36993
36994 #. type: textblock
36995 #: ../tools/virt-win-reg.pl:588
36996 msgid ""
36997 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
36998 "supported (there is no \"current user\")."
36999 msgstr ""
37000
37001 #. type: =head1
37002 #: ../tools/virt-win-reg.pl:591
37003 msgid "ENCODING"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../tools/virt-win-reg.pl:593
37008 msgid ""
37009 "C<virt-win-reg> expects that regedit files have already been reencoded in "
37010 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
37011 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
37012 "with Windows-style line endings, you may need to reencode the whole file "
37013 "before or after processing."
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../tools/virt-win-reg.pl:599
37018 msgid ""
37019 "To reencode a file from Windows format to Linux (before processing it with "
37020 "the I<--merge> option), you would do something like this:"
37021 msgstr ""
37022
37023 #. type: verbatim
37024 #: ../tools/virt-win-reg.pl:602
37025 #, no-wrap
37026 msgid ""
37027 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
37028 "\n"
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../tools/virt-win-reg.pl:604
37033 msgid ""
37034 "To go in the opposite direction, after exporting and before sending the file "
37035 "to a Windows user, do something like this:"
37036 msgstr ""
37037
37038 #. type: verbatim
37039 #: ../tools/virt-win-reg.pl:607
37040 #, no-wrap
37041 msgid ""
37042 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
37043 "\n"
37044 msgstr ""
37045
37046 #. type: textblock
37047 #: ../tools/virt-win-reg.pl:609
37048 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
37049 msgstr ""
37050
37051 #. type: textblock
37052 #: ../tools/virt-win-reg.pl:611
37053 msgid ""
37054 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37055 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
37056 "Windows-style (CRLF) line endings, like this:"
37057 msgstr ""
37058
37059 #. type: verbatim
37060 #: ../tools/virt-win-reg.pl:615
37061 #, no-wrap
37062 msgid ""
37063 " $ file software.reg\n"
37064 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37065 " with CRLF line terminators\n"
37066 "\n"
37067 msgstr ""
37068
37069 #. type: textblock
37070 #: ../tools/virt-win-reg.pl:619
37071 msgid "This file would need conversion before you could I<--merge> it."
37072 msgstr ""
37073
37074 #. type: =head1
37075 #: ../tools/virt-win-reg.pl:621
37076 msgid "CurrentControlSet etc."
37077 msgstr ""
37078
37079 #. type: textblock
37080 #: ../tools/virt-win-reg.pl:623
37081 msgid ""
37082 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37083 "Registry at the level of the hive file, and therefore you cannot modify "
37084 "these."
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../tools/virt-win-reg.pl:627
37089 msgid ""
37090 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37091 "circumstances it might refer to another control set.  The way to find out is "
37092 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37093 msgstr ""
37094
37095 #. type: verbatim
37096 #: ../tools/virt-win-reg.pl:631
37097 #, no-wrap
37098 msgid ""
37099 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37100 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37101 " \"Current\"=dword:00000001\n"
37102 " \"Default\"=dword:00000001\n"
37103 " \"Failed\"=dword:00000000\n"
37104 " \"LastKnownGood\"=dword:00000002\n"
37105 "\n"
37106 msgstr ""
37107
37108 #. type: textblock
37109 #: ../tools/virt-win-reg.pl:638
37110 msgid "\"Current\" is the one which Windows will choose when it boots."
37111 msgstr ""
37112
37113 #. type: textblock
37114 #: ../tools/virt-win-reg.pl:640
37115 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
37116 msgstr ""
37117
37118 #. type: =head1
37119 #: ../tools/virt-win-reg.pl:643
37120 msgid "WINDOWS TIPS"
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../tools/virt-win-reg.pl:645
37125 msgid ""
37126 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37127 "be shut off, else you will get disk corruption."
37128 msgstr ""
37129
37130 #. type: =head2
37131 #: ../tools/virt-win-reg.pl:648
37132 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37133 msgstr ""
37134
37135 #. type: textblock
37136 #: ../tools/virt-win-reg.pl:650
37137 msgid ""
37138 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37139 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37140 "is uploaded into C<C:\\>:"
37141 msgstr ""
37142
37143 #. type: verbatim
37144 #: ../tools/virt-win-reg.pl:654
37145 #, no-wrap
37146 msgid ""
37147 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37148 "\n"
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../tools/virt-win-reg.pl:656
37153 msgid "Prepare a regedit file containing the registry change:"
37154 msgstr ""
37155
37156 #. type: verbatim
37157 #: ../tools/virt-win-reg.pl:658
37158 #, no-wrap
37159 msgid ""
37160 " cat > test.reg <<'EOF'\n"
37161 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37162 " \"Test\"=\"c:\\\\test.bat\"\n"
37163 " EOF\n"
37164 "\n"
37165 msgstr ""
37166
37167 #. type: textblock
37168 #: ../tools/virt-win-reg.pl:663
37169 msgid ""
37170 "In this example we use the key C<RunOnce> which means that the script will "
37171 "run precisely once when the first user logs in.  If you want it to run every "
37172 "time a user logs in, replace C<RunOnce> with C<Run>."
37173 msgstr ""
37174
37175 #. type: textblock
37176 #: ../tools/virt-win-reg.pl:667
37177 msgid "Now update the registry:"
37178 msgstr ""
37179
37180 #. type: verbatim
37181 #: ../tools/virt-win-reg.pl:669
37182 #, no-wrap
37183 msgid ""
37184 " virt-win-reg --merge WindowsGuest test.reg\n"
37185 "\n"
37186 msgstr ""
37187
37188 #. type: =head2
37189 #: ../tools/virt-win-reg.pl:671
37190 msgid "INSTALLING A SERVICE"
37191 msgstr ""
37192
37193 #. type: textblock
37194 #: ../tools/virt-win-reg.pl:673
37195 msgid ""
37196 "This section assumes you are familiar with Windows services, and you either "
37197 "have a program which handles the Windows Service Control Protocol directly "
37198 "or you want to run any program using a service wrapper like SrvAny or the "
37199 "free RHSrvAny."
37200 msgstr ""
37201
37202 #. type: textblock
37203 #: ../tools/virt-win-reg.pl:678
37204 msgid ""
37205 "First upload the program and optionally the service wrapper.  In this case "
37206 "the test program is called C<test.exe> and we are using the RHSrvAny "
37207 "wrapper:"
37208 msgstr ""
37209
37210 #. type: verbatim
37211 #: ../tools/virt-win-reg.pl:682
37212 #, no-wrap
37213 msgid ""
37214 " guestfish -i -d WindowsGuest <<EOF\n"
37215 "   upload rhsrvany.exe /rhsrvany.exe\n"
37216 "   upload test.exe /test.exe\n"
37217 " EOF\n"
37218 "\n"
37219 msgstr ""
37220
37221 #. type: textblock
37222 #: ../tools/virt-win-reg.pl:687
37223 msgid ""
37224 "Prepare a regedit file containing the registry changes.  In this example, "
37225 "the first registry change is needed for the service itself or the service "
37226 "wrapper (if used).  The second registry change is only needed because I am "
37227 "using the RHSrvAny service wrapper."
37228 msgstr ""
37229
37230 #. type: verbatim
37231 #: ../tools/virt-win-reg.pl:692
37232 #, no-wrap
37233 msgid ""
37234 " cat > service.reg <<'EOF'\n"
37235 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37236 " \"Type\"=dword:00000010\n"
37237 " \"Start\"=dword:00000002\n"
37238 " \"ErrorControl\"=dword:00000001\n"
37239 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37240 " \"DisplayName\"=\"RHSrvAny\"\n"
37241 " \"ObjectName\"=\"NetworkService\"\n"
37242 " \n"
37243 msgstr ""
37244
37245 #. type: verbatim
37246 #: ../tools/virt-win-reg.pl:701
37247 #, no-wrap
37248 msgid ""
37249 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37250 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37251 " \"PWD\"=\"c:\\\\Temp\"\n"
37252 " EOF\n"
37253 "\n"
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../tools/virt-win-reg.pl:712
37258 msgid ""
37259 "For use of C<ControlSet001> see the section above in this manual page.  You "
37260 "may need to adjust this according to the control set that is in use by the "
37261 "guest."
37262 msgstr ""
37263
37264 #. type: textblock
37265 #: ../tools/virt-win-reg.pl:718
37266 msgid ""
37267 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37268 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37269 "privileged account."
37270 msgstr ""
37271
37272 #. type: textblock
37273 #: ../tools/virt-win-reg.pl:724
37274 msgid ""
37275 "For the meaning of the magic numbers, see this Microsoft KB article: "
37276 "L<http://support.microsoft.com/kb/103000>."
37277 msgstr ""
37278
37279 #. type: textblock
37280 #: ../tools/virt-win-reg.pl:729
37281 msgid "Update the registry:"
37282 msgstr ""
37283
37284 #. type: verbatim
37285 #: ../tools/virt-win-reg.pl:731
37286 #, no-wrap
37287 msgid ""
37288 " virt-win-reg --merge WindowsGuest service.reg\n"
37289 "\n"
37290 msgstr ""
37291
37292 #. type: textblock
37293 #: ../tools/virt-win-reg.pl:735
37294 msgid ""
37295 "Be careful when passing parameters containing C<\\> (backslash) in the "
37296 "shell.  Usually you will have to use 'single quotes' or double backslashes "
37297 "(but not both) to protect them from the shell."
37298 msgstr ""
37299
37300 #. type: textblock
37301 #: ../tools/virt-win-reg.pl:739
37302 msgid "Paths and value names are case-insensitive."
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../tools/virt-win-reg.pl:748
37307 msgid ""
37308 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
37309 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
37310 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
37311 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37312 msgstr ""
37313
37314 #. type: verbatim
37315 #: ../tools/virt-win-reg.pl:766
37316 #, no-wrap
37317 msgid ""
37318 " export LIBGUESTFS_DEBUG=1\n"
37319 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
37320 "\n"
37321 msgstr ""
37322
37323 #. type: textblock
37324 #: ../tools/virt-win-reg.pl:769
37325 msgid ""
37326 "Attach /tmp/virt-win-reg.log to a new bug report at "
37327 "L<https://bugzilla.redhat.com/>"
37328 msgstr ""