Fix 'unknown filesystem' warnings in old inspection code (RHBZ#678231 RHBZ#666578).
[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.3\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-08-07 23:15+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:1007 ../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:1224 ../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:1253 ../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:1258 ../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:1263 ../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:1268 ../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:4183
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:385 ../fish/guestfish-actions.pod:393 ../fish/guestfish-actions.pod:400 ../fish/guestfish-actions.pod:407 ../fish/guestfish-actions.pod:1099 ../fish/guestfish-actions.pod:1103 ../fish/guestfish-actions.pod:1107 ../fish/guestfish-actions.pod:1111 ../fish/guestfish-actions.pod:1119 ../fish/guestfish-actions.pod:1123 ../fish/guestfish-actions.pod:1127 ../fish/guestfish-actions.pod:1137 ../fish/guestfish-actions.pod:1141 ../fish/guestfish-actions.pod:1145 ../fish/guestfish-actions.pod:1235 ../fish/guestfish-actions.pod:1239 ../fish/guestfish-actions.pod:1244 ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1291 ../fish/guestfish-actions.pod:1295 ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1933 ../fish/guestfish-actions.pod:1939 ../fish/guestfish-actions.pod:1947 ../fish/guestfish-actions.pod:1954 ../fish/guestfish-actions.pod:1961 ../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:583 ../src/guestfs-actions.pod:591 ../src/guestfs-actions.pod:598 ../src/guestfs-actions.pod:605 ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1670 ../src/guestfs-actions.pod:1674 ../src/guestfs-actions.pod:1682 ../src/guestfs-actions.pod:1686 ../src/guestfs-actions.pod:1690 ../src/guestfs-actions.pod:1700 ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:1708 ../src/guestfs-actions.pod:1846 ../src/guestfs-actions.pod:1850 ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1921 ../src/guestfs-actions.pod:1925 ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:2859 ../src/guestfs-actions.pod:2865 ../src/guestfs-actions.pod:2873 ../src/guestfs-actions.pod:2880 ../src/guestfs-actions.pod:2887 ../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:1075 ../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:1249 ../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:1251 ../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:1287 ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1917 ../src/guestfs-actions.pod:2855 ../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:986 ../fish/guestfish-actions.pod:1346 ../fish/guestfish-actions.pod:1360 ../fish/guestfish-actions.pod:3085 ../fish/guestfish-actions.pod:3292 ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3454 ../fish/guestfish-actions.pod:4355 ../fish/guestfish-actions.pod:4378 ../fish/guestfish-actions.pod:4400 ../fish/guestfish-actions.pod:4438 ../fish/guestfish-actions.pod:5087 ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2002 ../src/guestfs-actions.pod:2023 ../src/guestfs-actions.pod:4618 ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5150 ../src/guestfs-actions.pod:5250 ../src/guestfs-actions.pod:6516 ../src/guestfs-actions.pod:6560 ../src/guestfs-actions.pod:6594 ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:7589 ../src/guestfs-actions.pod:7698 ../src/guestfs-actions.pod:7873
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:568 ../fish/guestfish-actions.pod:1968 ../fish/guestfish-actions.pod:3134 ../fish/guestfish-actions.pod:3307 ../fish/guestfish-actions.pod:3442
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:3096 ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4655
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 (can be expensive)."
4195 msgstr ""
4196
4197 #. type: =item
4198 #: ../fish/guestfish-actions.pod:266 ../src/guestfs-actions.pod:404
4199 msgid "C<AUG_NO_STDINC> = 8"
4200 msgstr ""
4201
4202 #. type: textblock
4203 #: ../fish/guestfish-actions.pod:268 ../src/guestfs-actions.pod:406
4204 msgid "Do not use standard load path for modules."
4205 msgstr ""
4206
4207 #. type: =item
4208 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:408
4209 msgid "C<AUG_SAVE_NOOP> = 16"
4210 msgstr ""
4211
4212 #. type: textblock
4213 #: ../fish/guestfish-actions.pod:272 ../src/guestfs-actions.pod:410
4214 msgid "Make save a no-op, just record what would have been changed."
4215 msgstr ""
4216
4217 #. type: =item
4218 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:412
4219 msgid "C<AUG_NO_LOAD> = 32"
4220 msgstr ""
4221
4222 #. type: textblock
4223 #: ../fish/guestfish-actions.pod:276
4224 msgid "Do not load the tree in L</aug-init>."
4225 msgstr ""
4226
4227 #. type: textblock
4228 #: ../fish/guestfish-actions.pod:280
4229 msgid "To close the handle, you can call L</aug-close>."
4230 msgstr ""
4231
4232 #. type: textblock
4233 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:420
4234 msgid "To find out more about Augeas, see L<http://augeas.net/>."
4235 msgstr ""
4236
4237 #. type: =head2
4238 #: ../fish/guestfish-actions.pod:284
4239 msgid "aug-insert"
4240 msgstr ""
4241
4242 #. type: verbatim
4243 #: ../fish/guestfish-actions.pod:286
4244 #, no-wrap
4245 msgid ""
4246 " aug-insert augpath label true|false\n"
4247 "\n"
4248 msgstr ""
4249
4250 #. type: textblock
4251 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:434
4252 msgid ""
4253 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
4254 "or after C<path> (depending on the boolean flag C<before>)."
4255 msgstr ""
4256
4257 #. type: textblock
4258 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:438
4259 msgid ""
4260 "C<path> must match exactly one existing node in the tree, and C<label> must "
4261 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
4262 msgstr ""
4263
4264 #. type: =head2
4265 #: ../fish/guestfish-actions.pod:296
4266 msgid "aug-load"
4267 msgstr ""
4268
4269 #. type: verbatim
4270 #: ../fish/guestfish-actions.pod:298
4271 #, no-wrap
4272 msgid ""
4273 " aug-load\n"
4274 "\n"
4275 msgstr ""
4276
4277 #. type: textblock
4278 #: ../fish/guestfish-actions.pod:300 ../src/guestfs-actions.pod:451
4279 msgid "Load files into the tree."
4280 msgstr ""
4281
4282 #. type: textblock
4283 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:453
4284 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
4285 msgstr ""
4286
4287 #. type: =head2
4288 #: ../fish/guestfish-actions.pod:305
4289 msgid "aug-ls"
4290 msgstr ""
4291
4292 #. type: verbatim
4293 #: ../fish/guestfish-actions.pod:307
4294 #, no-wrap
4295 msgid ""
4296 " aug-ls augpath\n"
4297 "\n"
4298 msgstr ""
4299
4300 #. type: textblock
4301 #: ../fish/guestfish-actions.pod:309
4302 msgid ""
4303 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
4304 "resulting nodes into alphabetical order."
4305 msgstr ""
4306
4307 #. type: =head2
4308 #: ../fish/guestfish-actions.pod:312
4309 msgid "aug-match"
4310 msgstr ""
4311
4312 #. type: verbatim
4313 #: ../fish/guestfish-actions.pod:314
4314 #, no-wrap
4315 msgid ""
4316 " aug-match augpath\n"
4317 "\n"
4318 msgstr ""
4319
4320 #. type: textblock
4321 #: ../fish/guestfish-actions.pod:316 ../src/guestfs-actions.pod:481
4322 msgid ""
4323 "Returns a list of paths which match the path expression C<path>.  The "
4324 "returned paths are sufficiently qualified so that they match exactly one "
4325 "node in the current tree."
4326 msgstr ""
4327
4328 #. type: =head2
4329 #: ../fish/guestfish-actions.pod:320
4330 msgid "aug-mv"
4331 msgstr ""
4332
4333 #. type: verbatim
4334 #: ../fish/guestfish-actions.pod:322
4335 #, no-wrap
4336 msgid ""
4337 " aug-mv src dest\n"
4338 "\n"
4339 msgstr ""
4340
4341 #. type: textblock
4342 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:498
4343 msgid ""
4344 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
4345 "C<dest> is overwritten if it exists."
4346 msgstr ""
4347
4348 #. type: =head2
4349 #: ../fish/guestfish-actions.pod:327
4350 msgid "aug-rm"
4351 msgstr ""
4352
4353 #. type: verbatim
4354 #: ../fish/guestfish-actions.pod:329
4355 #, no-wrap
4356 msgid ""
4357 " aug-rm augpath\n"
4358 "\n"
4359 msgstr ""
4360
4361 #. type: textblock
4362 #: ../fish/guestfish-actions.pod:331 ../src/guestfs-actions.pod:511
4363 msgid "Remove C<path> and all of its children."
4364 msgstr ""
4365
4366 #. type: textblock
4367 #: ../fish/guestfish-actions.pod:333 ../src/guestfs-actions.pod:513
4368 msgid "On success this returns the number of entries which were removed."
4369 msgstr ""
4370
4371 #. type: =head2
4372 #: ../fish/guestfish-actions.pod:335
4373 msgid "aug-save"
4374 msgstr ""
4375
4376 #. type: verbatim
4377 #: ../fish/guestfish-actions.pod:337
4378 #, no-wrap
4379 msgid ""
4380 " aug-save\n"
4381 "\n"
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../fish/guestfish-actions.pod:339 ../src/guestfs-actions.pod:524
4386 msgid "This writes all pending changes to disk."
4387 msgstr ""
4388
4389 #. type: textblock
4390 #: ../fish/guestfish-actions.pod:341
4391 msgid ""
4392 "The flags which were passed to L</aug-init> affect exactly how files are "
4393 "saved."
4394 msgstr ""
4395
4396 #. type: =head2
4397 #: ../fish/guestfish-actions.pod:344
4398 msgid "aug-set"
4399 msgstr ""
4400
4401 #. type: verbatim
4402 #: ../fish/guestfish-actions.pod:346
4403 #, no-wrap
4404 msgid ""
4405 " aug-set augpath val\n"
4406 "\n"
4407 msgstr ""
4408
4409 #. type: textblock
4410 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:540
4411 msgid "Set the value associated with C<path> to C<val>."
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../fish/guestfish-actions.pod:350
4416 msgid ""
4417 "In the Augeas API, it is possible to clear a node by setting the value to "
4418 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
4419 "this call.  Instead you must use the L</aug-clear> call."
4420 msgstr ""
4421
4422 #. type: =head2
4423 #: ../fish/guestfish-actions.pod:355
4424 msgid "available"
4425 msgstr ""
4426
4427 #. type: verbatim
4428 #: ../fish/guestfish-actions.pod:357
4429 #, no-wrap
4430 msgid ""
4431 " available 'groups ...'\n"
4432 "\n"
4433 msgstr ""
4434
4435 #. type: textblock
4436 #: ../fish/guestfish-actions.pod:359 ../src/guestfs-actions.pod:557
4437 msgid ""
4438 "This command is used to check the availability of some groups of "
4439 "functionality in the appliance, which not all builds of the libguestfs "
4440 "appliance will be able to provide."
4441 msgstr ""
4442
4443 #. type: textblock
4444 #: ../fish/guestfish-actions.pod:363
4445 msgid ""
4446 "The libguestfs groups, and the functions that those groups correspond to, "
4447 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
4448 "runtime by calling L</available-all-groups>."
4449 msgstr ""
4450
4451 #. type: textblock
4452 #: ../fish/guestfish-actions.pod:368 ../src/guestfs-actions.pod:566
4453 msgid ""
4454 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", "
4455 "\"augeas\"]> would check for the availability of the Linux inotify functions "
4456 "and Augeas (configuration file editing) functions."
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
4461 msgid "The command returns no error if I<all> requested groups are available."
4462 msgstr ""
4463
4464 #. type: textblock
4465 #: ../fish/guestfish-actions.pod:375 ../src/guestfs-actions.pod:573
4466 msgid ""
4467 "It fails with an error if one or more of the requested groups is unavailable "
4468 "in the appliance."
4469 msgstr ""
4470
4471 #. type: textblock
4472 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
4473 msgid ""
4474 "If an unknown group name is included in the list of groups then an error is "
4475 "always returned."
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../fish/guestfish-actions.pod:381 ../src/guestfs-actions.pod:579
4480 msgid "I<Notes:>"
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../fish/guestfish-actions.pod:387
4485 msgid "You must call L</launch> before calling this function."
4486 msgstr ""
4487
4488 #. type: textblock
4489 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:587
4490 msgid ""
4491 "The reason is because we don't know what groups are supported by the "
4492 "appliance/daemon until it is running and can be queried."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:593
4497 msgid ""
4498 "If a group of functions is available, this does not necessarily mean that "
4499 "they will work.  You still have to check for errors when calling individual "
4500 "API functions even if they are available."
4501 msgstr ""
4502
4503 #. type: textblock
4504 #: ../fish/guestfish-actions.pod:402 ../src/guestfs-actions.pod:600
4505 msgid ""
4506 "It is usually the job of distro packagers to build complete functionality "
4507 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
4508 "with all requirements satisfied, will support everything."
4509 msgstr ""
4510
4511 #. type: textblock
4512 #: ../fish/guestfish-actions.pod:409
4513 msgid ""
4514 "This call was added in version C<1.0.80>.  In previous versions of "
4515 "libguestfs all you could do would be to speculatively execute a command to "
4516 "find out if the daemon implemented it.  See also L</version>."
4517 msgstr ""
4518
4519 #. type: =head2
4520 #: ../fish/guestfish-actions.pod:416
4521 msgid "available-all-groups"
4522 msgstr ""
4523
4524 #. type: verbatim
4525 #: ../fish/guestfish-actions.pod:418
4526 #, no-wrap
4527 msgid ""
4528 " available-all-groups\n"
4529 "\n"
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../fish/guestfish-actions.pod:420
4534 msgid ""
4535 "This command returns a list of all optional groups that this daemon knows "
4536 "about.  Note this returns both supported and unsupported groups.  To find "
4537 "out which ones the daemon can actually support you have to call "
4538 "L</available> on each member of the returned list."
4539 msgstr ""
4540
4541 #. type: textblock
4542 #: ../fish/guestfish-actions.pod:426
4543 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
4544 msgstr ""
4545
4546 #. type: =head2
4547 #: ../fish/guestfish-actions.pod:428
4548 msgid "base64-in"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../fish/guestfish-actions.pod:430
4553 #, no-wrap
4554 msgid ""
4555 " base64-in (base64file|-) filename\n"
4556 "\n"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:432 ../src/guestfs-actions.pod:644
4561 msgid "This command uploads base64-encoded data from C<base64file> to C<filename>."
4562 msgstr ""
4563
4564 #. type: textblock
4565 #: ../fish/guestfish-actions.pod:435 ../fish/guestfish-actions.pod:444 ../fish/guestfish-actions.pod:693 ../fish/guestfish-actions.pod:862 ../fish/guestfish-actions.pod:881 ../fish/guestfish-actions.pod:1255 ../fish/guestfish-actions.pod:4658 ../fish/guestfish-actions.pod:4670 ../fish/guestfish-actions.pod:4681 ../fish/guestfish-actions.pod:4692 ../fish/guestfish-actions.pod:4744 ../fish/guestfish-actions.pod:4753 ../fish/guestfish-actions.pod:4807 ../fish/guestfish-actions.pod:4830
4566 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
4567 msgstr ""
4568
4569 #. type: =head2
4570 #: ../fish/guestfish-actions.pod:437
4571 msgid "base64-out"
4572 msgstr ""
4573
4574 #. type: verbatim
4575 #: ../fish/guestfish-actions.pod:439
4576 #, no-wrap
4577 msgid ""
4578 " base64-out filename (base64file|-)\n"
4579 "\n"
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:441 ../src/guestfs-actions.pod:658
4584 msgid ""
4585 "This command downloads the contents of C<filename>, writing it out to local "
4586 "file C<base64file> encoded as base64."
4587 msgstr ""
4588
4589 #. type: =head2
4590 #: ../fish/guestfish-actions.pod:446
4591 msgid "blockdev-flushbufs"
4592 msgstr ""
4593
4594 #. type: verbatim
4595 #: ../fish/guestfish-actions.pod:448
4596 #, no-wrap
4597 msgid ""
4598 " blockdev-flushbufs device\n"
4599 "\n"
4600 msgstr ""
4601
4602 #. type: textblock
4603 #: ../fish/guestfish-actions.pod:450 ../src/guestfs-actions.pod:671
4604 msgid "This tells the kernel to flush internal buffers associated with C<device>."
4605 msgstr ""
4606
4607 #. type: textblock
4608 #: ../fish/guestfish-actions.pod:453 ../fish/guestfish-actions.pod:464 ../fish/guestfish-actions.pod:473 ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:495 ../fish/guestfish-actions.pod:508 ../fish/guestfish-actions.pod:516 ../fish/guestfish-actions.pod:527 ../fish/guestfish-actions.pod:535 ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:691 ../src/guestfs-actions.pod:706 ../src/guestfs-actions.pod:722 ../src/guestfs-actions.pod:740 ../src/guestfs-actions.pod:759 ../src/guestfs-actions.pod:773 ../src/guestfs-actions.pod:791 ../src/guestfs-actions.pod:805 ../src/guestfs-actions.pod:819
4609 msgid "This uses the L<blockdev(8)> command."
4610 msgstr ""
4611
4612 #. type: =head2
4613 #: ../fish/guestfish-actions.pod:455
4614 msgid "blockdev-getbsz"
4615 msgstr ""
4616
4617 #. type: verbatim
4618 #: ../fish/guestfish-actions.pod:457
4619 #, no-wrap
4620 msgid ""
4621 " blockdev-getbsz device\n"
4622 "\n"
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:459 ../src/guestfs-actions.pod:686
4627 msgid "This returns the block size of a device."
4628 msgstr ""
4629
4630 #. type: textblock
4631 #: ../fish/guestfish-actions.pod:461 ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:688 ../src/guestfs-actions.pod:788
4632 msgid ""
4633 "(Note this is different from both I<size in blocks> and I<filesystem block "
4634 "size>)."
4635 msgstr ""
4636
4637 #. type: =head2
4638 #: ../fish/guestfish-actions.pod:466
4639 msgid "blockdev-getro"
4640 msgstr ""
4641
4642 #. type: verbatim
4643 #: ../fish/guestfish-actions.pod:468
4644 #, no-wrap
4645 msgid ""
4646 " blockdev-getro device\n"
4647 "\n"
4648 msgstr ""
4649
4650 #. type: textblock
4651 #: ../fish/guestfish-actions.pod:470 ../src/guestfs-actions.pod:703
4652 msgid ""
4653 "Returns a boolean indicating if the block device is read-only (true if "
4654 "read-only, false if not)."
4655 msgstr ""
4656
4657 #. type: =head2
4658 #: ../fish/guestfish-actions.pod:475
4659 msgid "blockdev-getsize64"
4660 msgstr ""
4661
4662 #. type: verbatim
4663 #: ../fish/guestfish-actions.pod:477
4664 #, no-wrap
4665 msgid ""
4666 " blockdev-getsize64 device\n"
4667 "\n"
4668 msgstr ""
4669
4670 #. type: textblock
4671 #: ../fish/guestfish-actions.pod:479 ../src/guestfs-actions.pod:718
4672 msgid "This returns the size of the device in bytes."
4673 msgstr ""
4674
4675 #. type: textblock
4676 #: ../fish/guestfish-actions.pod:481
4677 msgid "See also L</blockdev-getsz>."
4678 msgstr ""
4679
4680 #. type: =head2
4681 #: ../fish/guestfish-actions.pod:485
4682 msgid "blockdev-getss"
4683 msgstr ""
4684
4685 #. type: verbatim
4686 #: ../fish/guestfish-actions.pod:487
4687 #, no-wrap
4688 msgid ""
4689 " blockdev-getss device\n"
4690 "\n"
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:734
4695 msgid ""
4696 "This returns the size of sectors on a block device.  Usually 512, but can be "
4697 "larger for modern devices."
4698 msgstr ""
4699
4700 #. type: textblock
4701 #: ../fish/guestfish-actions.pod:492
4702 msgid "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
4703 msgstr ""
4704
4705 #. type: =head2
4706 #: ../fish/guestfish-actions.pod:497
4707 msgid "blockdev-getsz"
4708 msgstr ""
4709
4710 #. type: verbatim
4711 #: ../fish/guestfish-actions.pod:499
4712 #, no-wrap
4713 msgid ""
4714 " blockdev-getsz device\n"
4715 "\n"
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:501 ../src/guestfs-actions.pod:752
4720 msgid ""
4721 "This returns the size of the device in units of 512-byte sectors (even if "
4722 "the sectorsize isn't 512 bytes ... weird)."
4723 msgstr ""
4724
4725 #. type: textblock
4726 #: ../fish/guestfish-actions.pod:504
4727 msgid ""
4728 "See also L</blockdev-getss> for the real sector size of the device, and "
4729 "L</blockdev-getsize64> for the more useful I<size in bytes>."
4730 msgstr ""
4731
4732 #. type: =head2
4733 #: ../fish/guestfish-actions.pod:510
4734 msgid "blockdev-rereadpt"
4735 msgstr ""
4736
4737 #. type: verbatim
4738 #: ../fish/guestfish-actions.pod:512
4739 #, no-wrap
4740 msgid ""
4741 " blockdev-rereadpt device\n"
4742 "\n"
4743 msgstr ""
4744
4745 #. type: textblock
4746 #: ../fish/guestfish-actions.pod:514 ../src/guestfs-actions.pod:771
4747 msgid "Reread the partition table on C<device>."
4748 msgstr ""
4749
4750 #. type: =head2
4751 #: ../fish/guestfish-actions.pod:518
4752 msgid "blockdev-setbsz"
4753 msgstr ""
4754
4755 #. type: verbatim
4756 #: ../fish/guestfish-actions.pod:520
4757 #, no-wrap
4758 msgid ""
4759 " blockdev-setbsz device blocksize\n"
4760 "\n"
4761 msgstr ""
4762
4763 #. type: textblock
4764 #: ../fish/guestfish-actions.pod:522 ../src/guestfs-actions.pod:786
4765 msgid "This sets the block size of a device."
4766 msgstr ""
4767
4768 #. type: =head2
4769 #: ../fish/guestfish-actions.pod:529
4770 msgid "blockdev-setro"
4771 msgstr ""
4772
4773 #. type: verbatim
4774 #: ../fish/guestfish-actions.pod:531
4775 #, no-wrap
4776 msgid ""
4777 " blockdev-setro device\n"
4778 "\n"
4779 msgstr ""
4780
4781 #. type: textblock
4782 #: ../fish/guestfish-actions.pod:533 ../src/guestfs-actions.pod:803
4783 msgid "Sets the block device named C<device> to read-only."
4784 msgstr ""
4785
4786 #. type: =head2
4787 #: ../fish/guestfish-actions.pod:537
4788 msgid "blockdev-setrw"
4789 msgstr ""
4790
4791 #. type: verbatim
4792 #: ../fish/guestfish-actions.pod:539
4793 #, no-wrap
4794 msgid ""
4795 " blockdev-setrw device\n"
4796 "\n"
4797 msgstr ""
4798
4799 #. type: textblock
4800 #: ../fish/guestfish-actions.pod:541 ../src/guestfs-actions.pod:817
4801 msgid "Sets the block device named C<device> to read-write."
4802 msgstr ""
4803
4804 #. type: =head2
4805 #: ../fish/guestfish-actions.pod:545
4806 msgid "btrfs-filesystem-resize"
4807 msgstr ""
4808
4809 #. type: verbatim
4810 #: ../fish/guestfish-actions.pod:547
4811 #, no-wrap
4812 msgid ""
4813 " btrfs-filesystem-resize mountpoint [size:..]\n"
4814 "\n"
4815 msgstr ""
4816
4817 #. type: textblock
4818 #: ../fish/guestfish-actions.pod:549 ../src/guestfs-actions.pod:839
4819 msgid "This command resizes a btrfs filesystem."
4820 msgstr ""
4821
4822 #. type: textblock
4823 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:841
4824 msgid ""
4825 "Note that unlike other resize calls, the filesystem has to be mounted and "
4826 "the parameter is the mountpoint not the device (this is a requirement of "
4827 "btrfs itself)."
4828 msgstr ""
4829
4830 #. type: textblock
4831 #: ../fish/guestfish-actions.pod:555 ../fish/guestfish-actions.pod:3417 ../src/guestfs-actions.pod:845 ../src/guestfs-actions.pod:5189
4832 msgid "The optional parameters are:"
4833 msgstr ""
4834
4835 #. type: =item
4836 #: ../fish/guestfish-actions.pod:559 ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:849 ../src/guestfs-actions.pod:5193
4837 msgid "C<size>"
4838 msgstr ""
4839
4840 #. type: textblock
4841 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:851
4842 msgid ""
4843 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
4844 "resized to the maximum size."
4845 msgstr ""
4846
4847 #. type: textblock
4848 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
4849 msgid "See also L<btrfs(8)>."
4850 msgstr ""
4851
4852 #. type: =head2
4853 #: ../fish/guestfish-actions.pod:570
4854 msgid "case-sensitive-path"
4855 msgstr ""
4856
4857 #. type: verbatim
4858 #: ../fish/guestfish-actions.pod:572
4859 #, no-wrap
4860 msgid ""
4861 " case-sensitive-path path\n"
4862 "\n"
4863 msgstr ""
4864
4865 #. type: textblock
4866 #: ../fish/guestfish-actions.pod:574 ../src/guestfs-actions.pod:890
4867 msgid ""
4868 "This can be used to resolve case insensitive paths on a filesystem which is "
4869 "case sensitive.  The use case is to resolve paths which you have read from "
4870 "Windows configuration files or the Windows Registry, to the true path."
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
4875 msgid ""
4876 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
4877 "(and probably others), which is that although the underlying filesystem is "
4878 "case-insensitive, the driver exports the filesystem to Linux as "
4879 "case-sensitive."
4880 msgstr ""
4881
4882 #. type: textblock
4883 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
4884 msgid ""
4885 "One consequence of this is that special directories such as C<c:\\windows> "
4886 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
4887 "precise details of how they were created.  In Windows itself this would not "
4888 "be a problem."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../fish/guestfish-actions.pod:590 ../src/guestfs-actions.pod:906
4893 msgid ""
4894 "Bug or feature? You decide: "
4895 "L<http://www.tuxera.com/community/ntfs-3g-faq/#posixfilenames1>"
4896 msgstr ""
4897
4898 #. type: textblock
4899 #: ../fish/guestfish-actions.pod:593 ../src/guestfs-actions.pod:909
4900 msgid ""
4901 "This function resolves the true case of each element in the path and returns "
4902 "the case-sensitive path."
4903 msgstr ""
4904
4905 #. type: textblock
4906 #: ../fish/guestfish-actions.pod:596
4907 msgid ""
4908 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return "
4909 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
4910 "how the directories were originally created under Windows)."
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:601 ../src/guestfs-actions.pod:917
4915 msgid "I<Note>: This function does not handle drive names, backslashes etc."
4916 msgstr ""
4917
4918 #. type: textblock
4919 #: ../fish/guestfish-actions.pod:604
4920 msgid "See also L</realpath>."
4921 msgstr ""
4922
4923 #. type: =head2
4924 #: ../fish/guestfish-actions.pod:606
4925 msgid "cat"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../fish/guestfish-actions.pod:608
4930 #, no-wrap
4931 msgid ""
4932 " cat path\n"
4933 "\n"
4934 msgstr ""
4935
4936 #. type: textblock
4937 #: ../fish/guestfish-actions.pod:610 ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:933 ../src/guestfs-actions.pod:5832
4938 msgid "Return the contents of the file named C<path>."
4939 msgstr ""
4940
4941 #. type: textblock
4942 #: ../fish/guestfish-actions.pod:612
4943 msgid ""
4944 "Note that this function cannot correctly handle binary files (specifically, "
4945 "files containing C<\\0> character which is treated as end of string).  For "
4946 "those you need to use the L</read-file> or L</download> functions which have "
4947 "a more complex interface."
4948 msgstr ""
4949
4950 #. type: textblock
4951 #: ../fish/guestfish-actions.pod:617 ../fish/guestfish-actions.pod:752 ../fish/guestfish-actions.pod:764 ../fish/guestfish-actions.pod:940 ../fish/guestfish-actions.pod:950 ../fish/guestfish-actions.pod:1017 ../fish/guestfish-actions.pod:1027 ../fish/guestfish-actions.pod:1219 ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:1536 ../fish/guestfish-actions.pod:1564 ../fish/guestfish-actions.pod:1579 ../fish/guestfish-actions.pod:1589 ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722 ../fish/guestfish-actions.pod:3798 ../fish/guestfish-actions.pod:3815 ../fish/guestfish-actions.pod:3830 ../fish/guestfish-actions.pod:4499 ../fish/guestfish-actions.pod:4545 ../fish/guestfish-actions.pod:4630 ../fish/guestfish-actions.pod:4645 ../fish/guestfish-actions.pod:5051 ../fish/guestfish-actions.pod:5063 ../fish/guestfish-actions.pod:5081 ../fish/guestfish-actions.pod:5098 ../fish/guestfish-actions.pod:5108 ../fish/guestfish-actions.pod:5157 ../fish/guestfish-actions.pod:5167 ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:943 ../src/guestfs-actions.pod:1122 ../src/guestfs-actions.pod:1142 ../src/guestfs-actions.pod:1438 ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1560 ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1825 ../src/guestfs-actions.pod:2296 ../src/guestfs-actions.pod:2315 ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:2382 ../src/guestfs-actions.pod:2399 ../src/guestfs-actions.pod:2428 ../src/guestfs-actions.pod:5614 ../src/guestfs-actions.pod:5640 ../src/guestfs-actions.pod:5771 ../src/guestfs-actions.pod:5797 ../src/guestfs-actions.pod:5821 ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6827 ../src/guestfs-actions.pod:6973 ../src/guestfs-actions.pod:6997 ../src/guestfs-actions.pod:7662 ../src/guestfs-actions.pod:7682 ../src/guestfs-actions.pod:7715 ../src/guestfs-actions.pod:7734 ../src/guestfs-actions.pod:7753 ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7904 ../src/guestfs-actions.pod:7923
4952 msgid ""
4953 "Because of the message protocol, there is a transfer limit of somewhere "
4954 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
4955 msgstr ""
4956
4957 #. type: =head2
4958 #: ../fish/guestfish-actions.pod:620
4959 msgid "checksum"
4960 msgstr ""
4961
4962 #. type: verbatim
4963 #: ../fish/guestfish-actions.pod:622
4964 #, no-wrap
4965 msgid ""
4966 " checksum csumtype path\n"
4967 "\n"
4968 msgstr ""
4969
4970 #. type: textblock
4971 #: ../fish/guestfish-actions.pod:624 ../src/guestfs-actions.pod:955
4972 msgid "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
4973 msgstr ""
4974
4975 #. type: textblock
4976 #: ../fish/guestfish-actions.pod:627 ../src/guestfs-actions.pod:958
4977 msgid ""
4978 "The type of checksum to compute is given by the C<csumtype> parameter which "
4979 "must have one of the following values:"
4980 msgstr ""
4981
4982 #. type: =item
4983 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
4984 msgid "C<crc>"
4985 msgstr ""
4986
4987 #. type: textblock
4988 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:965
4989 msgid ""
4990 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
4991 "C<cksum> command."
4992 msgstr ""
4993
4994 #. type: =item
4995 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
4996 msgid "C<md5>"
4997 msgstr ""
4998
4999 #. type: textblock
5000 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5001 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5002 msgstr ""
5003
5004 #. type: =item
5005 #: ../fish/guestfish-actions.pod:641 ../src/guestfs-actions.pod:972
5006 msgid "C<sha1>"
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../fish/guestfish-actions.pod:643 ../src/guestfs-actions.pod:974
5011 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5012 msgstr ""
5013
5014 #. type: =item
5015 #: ../fish/guestfish-actions.pod:645 ../src/guestfs-actions.pod:976
5016 msgid "C<sha224>"
5017 msgstr ""
5018
5019 #. type: textblock
5020 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:978
5021 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5022 msgstr ""
5023
5024 #. type: =item
5025 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:980
5026 msgid "C<sha256>"
5027 msgstr ""
5028
5029 #. type: textblock
5030 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:982
5031 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5032 msgstr ""
5033
5034 #. type: =item
5035 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:984
5036 msgid "C<sha384>"
5037 msgstr ""
5038
5039 #. type: textblock
5040 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:986
5041 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5042 msgstr ""
5043
5044 #. type: =item
5045 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:988
5046 msgid "C<sha512>"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:990
5051 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5052 msgstr ""
5053
5054 #. type: textblock
5055 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:994
5056 msgid "The checksum is returned as a printable string."
5057 msgstr ""
5058
5059 #. type: textblock
5060 #: ../fish/guestfish-actions.pod:665
5061 msgid "To get the checksum for a device, use L</checksum-device>."
5062 msgstr ""
5063
5064 #. type: textblock
5065 #: ../fish/guestfish-actions.pod:667
5066 msgid "To get the checksums for many files, use L</checksums-out>."
5067 msgstr ""
5068
5069 #. type: =head2
5070 #: ../fish/guestfish-actions.pod:669
5071 msgid "checksum-device"
5072 msgstr ""
5073
5074 #. type: verbatim
5075 #: ../fish/guestfish-actions.pod:671
5076 #, no-wrap
5077 msgid ""
5078 " checksum-device csumtype device\n"
5079 "\n"
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../fish/guestfish-actions.pod:673
5084 msgid ""
5085 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5086 "device named C<device>.  For the types of checksums supported see the "
5087 "L</checksum> command."
5088 msgstr ""
5089
5090 #. type: =head2
5091 #: ../fish/guestfish-actions.pod:677
5092 msgid "checksums-out"
5093 msgstr ""
5094
5095 #. type: verbatim
5096 #: ../fish/guestfish-actions.pod:679
5097 #, no-wrap
5098 msgid ""
5099 " checksums-out csumtype directory (sumsfile|-)\n"
5100 "\n"
5101 msgstr ""
5102
5103 #. type: textblock
5104 #: ../fish/guestfish-actions.pod:681 ../src/guestfs-actions.pod:1029
5105 msgid ""
5106 "This command computes the checksums of all regular files in C<directory> and "
5107 "then emits a list of those checksums to the local output file C<sumsfile>."
5108 msgstr ""
5109
5110 #. type: textblock
5111 #: ../fish/guestfish-actions.pod:685 ../src/guestfs-actions.pod:1033
5112 msgid ""
5113 "This can be used for verifying the integrity of a virtual machine.  However "
5114 "to be properly secure you should pay attention to the output of the checksum "
5115 "command (it uses the ones from GNU coreutils).  In particular when the "
5116 "filename is not printable, coreutils uses a special backslash syntax.  For "
5117 "more information, see the GNU coreutils info file."
5118 msgstr ""
5119
5120 #. type: =head2
5121 #: ../fish/guestfish-actions.pod:695
5122 msgid "chmod"
5123 msgstr ""
5124
5125 #. type: verbatim
5126 #: ../fish/guestfish-actions.pod:697
5127 #, no-wrap
5128 msgid ""
5129 " chmod mode path\n"
5130 "\n"
5131 msgstr ""
5132
5133 #. type: textblock
5134 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1052
5135 msgid ""
5136 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
5137 "supported."
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../fish/guestfish-actions.pod:702 ../src/guestfs-actions.pod:1055
5142 msgid ""
5143 "I<Note>: When using this command from guestfish, C<mode> by default would be "
5144 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
5145 "C<700>."
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:706 ../fish/guestfish-actions.pod:3060 ../fish/guestfish-actions.pod:3199 ../fish/guestfish-actions.pod:3209 ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:1059 ../src/guestfs-actions.pod:4586 ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:4833
5150 msgid "The mode actually set is affected by the umask."
5151 msgstr ""
5152
5153 #. type: =head2
5154 #: ../fish/guestfish-actions.pod:708
5155 msgid "chown"
5156 msgstr ""
5157
5158 #. type: verbatim
5159 #: ../fish/guestfish-actions.pod:710
5160 #, no-wrap
5161 msgid ""
5162 " chown owner group path\n"
5163 "\n"
5164 msgstr ""
5165
5166 #. type: textblock
5167 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1073
5168 msgid "Change the file owner to C<owner> and group to C<group>."
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../fish/guestfish-actions.pod:714 ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:1075 ../src/guestfs-actions.pod:3657
5173 msgid ""
5174 "Only numeric uid and gid are supported.  If you want to use names, you will "
5175 "need to locate and parse the password file yourself (Augeas support makes "
5176 "this relatively easy)."
5177 msgstr ""
5178
5179 #. type: =head2
5180 #: ../fish/guestfish-actions.pod:718
5181 msgid "command"
5182 msgstr ""
5183
5184 #. type: verbatim
5185 #: ../fish/guestfish-actions.pod:720
5186 #, no-wrap
5187 msgid ""
5188 " command 'arguments ...'\n"
5189 "\n"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1089
5194 msgid ""
5195 "This call runs a command from the guest filesystem.  The filesystem must be "
5196 "mounted, and must contain a compatible operating system (ie. something "
5197 "Linux, with the same or compatible processor architecture)."
5198 msgstr ""
5199
5200 #. type: textblock
5201 #: ../fish/guestfish-actions.pod:727
5202 msgid ""
5203 "The single parameter is an argv-style list of arguments.  The first element "
5204 "is the name of the program to run.  Subsequent elements are parameters.  The "
5205 "list must be non-empty (ie. must contain a program name).  Note that the "
5206 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../fish/guestfish-actions.pod:734 ../src/guestfs-actions.pod:1101
5211 msgid "The return value is anything printed to I<stdout> by the command."
5212 msgstr ""
5213
5214 #. type: textblock
5215 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1104
5216 msgid ""
5217 "If the command returns a non-zero exit status, then this function returns an "
5218 "error message.  The error message string is the content of I<stderr> from "
5219 "the command."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1108
5224 msgid ""
5225 "The C<$PATH> environment variable will contain at least C</usr/bin> and "
5226 "C</bin>.  If you require a program from another location, you should provide "
5227 "the full path in the first parameter."
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
5232 msgid ""
5233 "Shared libraries and data files required by the program must be available on "
5234 "filesystems which are mounted in the correct places.  It is the caller's "
5235 "responsibility to ensure all filesystems that are needed are mounted at the "
5236 "right locations."
5237 msgstr ""
5238
5239 #. type: =head2
5240 #: ../fish/guestfish-actions.pod:755
5241 msgid "command-lines"
5242 msgstr ""
5243
5244 #. type: verbatim
5245 #: ../fish/guestfish-actions.pod:757
5246 #, no-wrap
5247 msgid ""
5248 " command-lines 'arguments ...'\n"
5249 "\n"
5250 msgstr ""
5251
5252 #. type: textblock
5253 #: ../fish/guestfish-actions.pod:759
5254 msgid "This is the same as L</command>, but splits the result into a list of lines."
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../fish/guestfish-actions.pod:762
5259 msgid "See also: L</sh-lines>"
5260 msgstr ""
5261
5262 #. type: =head2
5263 #: ../fish/guestfish-actions.pod:767
5264 msgid "config"
5265 msgstr ""
5266
5267 #. type: verbatim
5268 #: ../fish/guestfish-actions.pod:769
5269 #, no-wrap
5270 msgid ""
5271 " config qemuparam qemuvalue\n"
5272 "\n"
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../fish/guestfish-actions.pod:771 ../src/guestfs-actions.pod:1154
5277 msgid ""
5278 "This can be used to add arbitrary qemu command line parameters of the form "
5279 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
5280 "setting some parameters which would interfere with parameters that we use."
5281 msgstr ""
5282
5283 #. type: textblock
5284 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
5285 msgid "The first character of C<param> string must be a C<-> (dash)."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1161
5290 msgid "C<value> can be NULL."
5291 msgstr ""
5292
5293 #. type: =head2
5294 #: ../fish/guestfish-actions.pod:780
5295 msgid "copy-size"
5296 msgstr ""
5297
5298 #. type: verbatim
5299 #: ../fish/guestfish-actions.pod:782
5300 #, no-wrap
5301 msgid ""
5302 " copy-size src dest size\n"
5303 "\n"
5304 msgstr ""
5305
5306 #. type: textblock
5307 #: ../fish/guestfish-actions.pod:784 ../src/guestfs-actions.pod:1175
5308 msgid ""
5309 "This command copies exactly C<size> bytes from one source device or file "
5310 "C<src> to another destination device or file C<dest>."
5311 msgstr ""
5312
5313 #. type: textblock
5314 #: ../fish/guestfish-actions.pod:787 ../src/guestfs-actions.pod:1178
5315 msgid ""
5316 "Note this will fail if the source is too short or if the destination is not "
5317 "large enough."
5318 msgstr ""
5319
5320 #. type: =head2
5321 #: ../fish/guestfish-actions.pod:790
5322 msgid "cp"
5323 msgstr ""
5324
5325 #. type: verbatim
5326 #: ../fish/guestfish-actions.pod:792
5327 #, no-wrap
5328 msgid ""
5329 " cp src dest\n"
5330 "\n"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../fish/guestfish-actions.pod:794 ../src/guestfs-actions.pod:1197
5335 msgid ""
5336 "This copies a file from C<src> to C<dest> where C<dest> is either a "
5337 "destination filename or destination directory."
5338 msgstr ""
5339
5340 #. type: =head2
5341 #: ../fish/guestfish-actions.pod:797
5342 msgid "cp-a"
5343 msgstr ""
5344
5345 #. type: verbatim
5346 #: ../fish/guestfish-actions.pod:799
5347 #, no-wrap
5348 msgid ""
5349 " cp-a src dest\n"
5350 "\n"
5351 msgstr ""
5352
5353 #. type: textblock
5354 #: ../fish/guestfish-actions.pod:801 ../src/guestfs-actions.pod:1211
5355 msgid ""
5356 "This copies a file or directory from C<src> to C<dest> recursively using the "
5357 "C<cp -a> command."
5358 msgstr ""
5359
5360 #. type: =head2
5361 #: ../fish/guestfish-actions.pod:804
5362 msgid "dd"
5363 msgstr ""
5364
5365 #. type: verbatim
5366 #: ../fish/guestfish-actions.pod:806
5367 #, no-wrap
5368 msgid ""
5369 " dd src dest\n"
5370 "\n"
5371 msgstr ""
5372
5373 #. type: textblock
5374 #: ../fish/guestfish-actions.pod:808 ../src/guestfs-actions.pod:1225
5375 msgid ""
5376 "This command copies from one source device or file C<src> to another "
5377 "destination device or file C<dest>.  Normally you would use this to copy to "
5378 "or from a device or partition, for example to duplicate a filesystem."
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../fish/guestfish-actions.pod:813
5383 msgid ""
5384 "If the destination is a device, it must be as large or larger than the "
5385 "source file or device, otherwise the copy will fail.  This command cannot do "
5386 "partial copies (see L</copy-size>)."
5387 msgstr ""
5388
5389 #. type: =head2
5390 #: ../fish/guestfish-actions.pod:817
5391 msgid "df"
5392 msgstr ""
5393
5394 #. type: verbatim
5395 #: ../fish/guestfish-actions.pod:819
5396 #, no-wrap
5397 msgid ""
5398 " df\n"
5399 "\n"
5400 msgstr ""
5401
5402 #. type: textblock
5403 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1243
5404 msgid "This command runs the C<df> command to report disk space used."
5405 msgstr ""
5406
5407 #. type: textblock
5408 #: ../fish/guestfish-actions.pod:823 ../fish/guestfish-actions.pod:834
5409 msgid ""
5410 "This command is mostly useful for interactive sessions.  It is I<not> "
5411 "intended that you try to parse the output string.  Use L</statvfs> from "
5412 "programs."
5413 msgstr ""
5414
5415 #. type: =head2
5416 #: ../fish/guestfish-actions.pod:827
5417 msgid "df-h"
5418 msgstr ""
5419
5420 #. type: verbatim
5421 #: ../fish/guestfish-actions.pod:829
5422 #, no-wrap
5423 msgid ""
5424 " df-h\n"
5425 "\n"
5426 msgstr ""
5427
5428 #. type: textblock
5429 #: ../fish/guestfish-actions.pod:831 ../src/guestfs-actions.pod:1259
5430 msgid ""
5431 "This command runs the C<df -h> command to report disk space used in "
5432 "human-readable format."
5433 msgstr ""
5434
5435 #. type: =head2
5436 #: ../fish/guestfish-actions.pod:838
5437 msgid "dmesg"
5438 msgstr ""
5439
5440 #. type: verbatim
5441 #: ../fish/guestfish-actions.pod:840
5442 #, no-wrap
5443 msgid ""
5444 " dmesg\n"
5445 "\n"
5446 msgstr ""
5447
5448 #. type: textblock
5449 #: ../fish/guestfish-actions.pod:842 ../src/guestfs-actions.pod:1276
5450 msgid ""
5451 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
5452 "This is sometimes useful for extended debugging of problems."
5453 msgstr ""
5454
5455 #. type: textblock
5456 #: ../fish/guestfish-actions.pod:846
5457 msgid ""
5458 "Another way to get the same information is to enable verbose messages with "
5459 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
5460 "before running the program."
5461 msgstr ""
5462
5463 #. type: =head2
5464 #: ../fish/guestfish-actions.pod:851
5465 msgid "download"
5466 msgstr ""
5467
5468 #. type: verbatim
5469 #: ../fish/guestfish-actions.pod:853
5470 #, no-wrap
5471 msgid ""
5472 " download remotefilename (filename|-)\n"
5473 "\n"
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../fish/guestfish-actions.pod:855 ../fish/guestfish-actions.pod:868 ../src/guestfs-actions.pod:1297 ../src/guestfs-actions.pod:1322
5478 msgid ""
5479 "Download file C<remotefilename> and save it as C<filename> on the local "
5480 "machine."
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../fish/guestfish-actions.pod:858 ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:7232
5485 msgid "C<filename> can also be a named pipe."
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../fish/guestfish-actions.pod:860
5490 msgid "See also L</upload>, L</cat>."
5491 msgstr ""
5492
5493 #. type: =head2
5494 #: ../fish/guestfish-actions.pod:864
5495 msgid "download-offset"
5496 msgstr ""
5497
5498 #. type: verbatim
5499 #: ../fish/guestfish-actions.pod:866
5500 #, no-wrap
5501 msgid ""
5502 " download-offset remotefilename (filename|-) offset size\n"
5503 "\n"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1325
5508 msgid ""
5509 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
5510 "region must be within the file or device)."
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../fish/guestfish-actions.pod:874
5515 msgid ""
5516 "Note that there is no limit on the amount of data that can be downloaded "
5517 "with this call, unlike with L</pread>, and this call always reads the full "
5518 "amount unless an error occurs."
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../fish/guestfish-actions.pod:879
5523 msgid "See also L</download>, L</pread>."
5524 msgstr ""
5525
5526 #. type: =head2
5527 #: ../fish/guestfish-actions.pod:883
5528 msgid "drop-caches"
5529 msgstr ""
5530
5531 #. type: verbatim
5532 #: ../fish/guestfish-actions.pod:885
5533 #, no-wrap
5534 msgid ""
5535 " drop-caches whattodrop\n"
5536 "\n"
5537 msgstr ""
5538
5539 #. type: textblock
5540 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1350
5541 msgid ""
5542 "This instructs the guest kernel to drop its page cache, and/or dentries and "
5543 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
5544 "to drop, see L<http://linux-mm.org/Drop_Caches>"
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
5549 msgid "Setting C<whattodrop> to 3 should drop everything."
5550 msgstr ""
5551
5552 #. type: textblock
5553 #: ../fish/guestfish-actions.pod:894 ../src/guestfs-actions.pod:1357
5554 msgid ""
5555 "This automatically calls L<sync(2)> before the operation, so that the "
5556 "maximum guest memory is freed."
5557 msgstr ""
5558
5559 #. type: =head2
5560 #: ../fish/guestfish-actions.pod:897
5561 msgid "du"
5562 msgstr ""
5563
5564 #. type: verbatim
5565 #: ../fish/guestfish-actions.pod:899
5566 #, no-wrap
5567 msgid ""
5568 " du path\n"
5569 "\n"
5570 msgstr ""
5571
5572 #. type: textblock
5573 #: ../fish/guestfish-actions.pod:901 ../src/guestfs-actions.pod:1370
5574 msgid ""
5575 "This command runs the C<du -s> command to estimate file space usage for "
5576 "C<path>."
5577 msgstr ""
5578
5579 #. type: textblock
5580 #: ../fish/guestfish-actions.pod:904 ../src/guestfs-actions.pod:1373
5581 msgid ""
5582 "C<path> can be a file or a directory.  If C<path> is a directory then the "
5583 "estimate includes the contents of the directory and all subdirectories "
5584 "(recursively)."
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:908 ../src/guestfs-actions.pod:1377
5589 msgid "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
5590 msgstr ""
5591
5592 #. type: =head2
5593 #: ../fish/guestfish-actions.pod:911
5594 msgid "e2fsck-f"
5595 msgstr ""
5596
5597 #. type: verbatim
5598 #: ../fish/guestfish-actions.pod:913
5599 #, no-wrap
5600 msgid ""
5601 " e2fsck-f device\n"
5602 "\n"
5603 msgstr ""
5604
5605 #. type: textblock
5606 #: ../fish/guestfish-actions.pod:915 ../src/guestfs-actions.pod:1395
5607 msgid ""
5608 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
5609 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
5610 "clean (I<-f>)."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../fish/guestfish-actions.pod:919
5615 msgid ""
5616 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
5617 "should use L</fsck>."
5618 msgstr ""
5619
5620 #. type: =head2
5621 #: ../fish/guestfish-actions.pod:922
5622 msgid "echo-daemon"
5623 msgstr ""
5624
5625 #. type: verbatim
5626 #: ../fish/guestfish-actions.pod:924
5627 #, no-wrap
5628 msgid ""
5629 " echo-daemon 'words ...'\n"
5630 "\n"
5631 msgstr ""
5632
5633 #. type: textblock
5634 #: ../fish/guestfish-actions.pod:926 ../src/guestfs-actions.pod:1412
5635 msgid ""
5636 "This command concatenates the list of C<words> passed with single spaces "
5637 "between them and returns the resulting string."
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../fish/guestfish-actions.pod:929 ../src/guestfs-actions.pod:1415
5642 msgid "You can use this command to test the connection through to the daemon."
5643 msgstr ""
5644
5645 #. type: textblock
5646 #: ../fish/guestfish-actions.pod:931
5647 msgid "See also L</ping-daemon>."
5648 msgstr ""
5649
5650 #. type: =head2
5651 #: ../fish/guestfish-actions.pod:933
5652 msgid "egrep"
5653 msgstr ""
5654
5655 #. type: verbatim
5656 #: ../fish/guestfish-actions.pod:935
5657 #, no-wrap
5658 msgid ""
5659 " egrep regex path\n"
5660 "\n"
5661 msgstr ""
5662
5663 #. type: textblock
5664 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1431
5665 msgid "This calls the external C<egrep> program and returns the matching lines."
5666 msgstr ""
5667
5668 #. type: =head2
5669 #: ../fish/guestfish-actions.pod:943
5670 msgid "egrepi"
5671 msgstr ""
5672
5673 #. type: verbatim
5674 #: ../fish/guestfish-actions.pod:945
5675 #, no-wrap
5676 msgid ""
5677 " egrepi regex path\n"
5678 "\n"
5679 msgstr ""
5680
5681 #. type: textblock
5682 #: ../fish/guestfish-actions.pod:947 ../src/guestfs-actions.pod:1450
5683 msgid "This calls the external C<egrep -i> program and returns the matching lines."
5684 msgstr ""
5685
5686 #. type: =head2
5687 #: ../fish/guestfish-actions.pod:953
5688 msgid "equal"
5689 msgstr ""
5690
5691 #. type: verbatim
5692 #: ../fish/guestfish-actions.pod:955
5693 #, no-wrap
5694 msgid ""
5695 " equal file1 file2\n"
5696 "\n"
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:957 ../src/guestfs-actions.pod:1469
5701 msgid ""
5702 "This compares the two files C<file1> and C<file2> and returns true if their "
5703 "content is exactly equal, or false otherwise."
5704 msgstr ""
5705
5706 #. type: textblock
5707 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1472
5708 msgid "The external L<cmp(1)> program is used for the comparison."
5709 msgstr ""
5710
5711 #. type: =head2
5712 #: ../fish/guestfish-actions.pod:962
5713 msgid "exists"
5714 msgstr ""
5715
5716 #. type: verbatim
5717 #: ../fish/guestfish-actions.pod:964
5718 #, no-wrap
5719 msgid ""
5720 " exists path\n"
5721 "\n"
5722 msgstr ""
5723
5724 #. type: textblock
5725 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1484
5726 msgid ""
5727 "This returns C<true> if and only if there is a file, directory (or anything) "
5728 "with the given C<path> name."
5729 msgstr ""
5730
5731 #. type: textblock
5732 #: ../fish/guestfish-actions.pod:969
5733 msgid "See also L</is-file>, L</is-dir>, L</stat>."
5734 msgstr ""
5735
5736 #. type: =head2
5737 #: ../fish/guestfish-actions.pod:971
5738 msgid "fallocate"
5739 msgstr ""
5740
5741 #. type: verbatim
5742 #: ../fish/guestfish-actions.pod:973
5743 #, no-wrap
5744 msgid ""
5745 " fallocate path len\n"
5746 "\n"
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../fish/guestfish-actions.pod:975 ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1507 ../src/guestfs-actions.pod:1526
5751 msgid ""
5752 "This command preallocates a file (containing zero bytes) named C<path> of "
5753 "size C<len> bytes.  If the file exists already, it is overwritten."
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../fish/guestfish-actions.pod:979 ../src/guestfs-actions.pod:1511
5758 msgid ""
5759 "Do not confuse this with the guestfish-specific C<alloc> command which "
5760 "allocates a file in the host and attaches it as a device."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:983
5765 msgid ""
5766 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
5767 "instead."
5768 msgstr ""
5769
5770 #. type: =head2
5771 #: ../fish/guestfish-actions.pod:990
5772 msgid "fallocate64"
5773 msgstr ""
5774
5775 #. type: verbatim
5776 #: ../fish/guestfish-actions.pod:992
5777 #, no-wrap
5778 msgid ""
5779 " fallocate64 path len\n"
5780 "\n"
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../fish/guestfish-actions.pod:998
5785 msgid ""
5786 "Note that this call allocates disk blocks for the file.  To create a sparse "
5787 "file use L</truncate-size> instead."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../fish/guestfish-actions.pod:1001
5792 msgid ""
5793 "The deprecated call L</fallocate> does the same, but owing to an oversight "
5794 "it only allowed 30 bit lengths to be specified, effectively limiting the "
5795 "maximum size of files created through that call to 1GB."
5796 msgstr ""
5797
5798 #. type: textblock
5799 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1538
5800 msgid ""
5801 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
5802 "commands which create a file in the host and attach it as a device."
5803 msgstr ""
5804
5805 #. type: =head2
5806 #: ../fish/guestfish-actions.pod:1010
5807 msgid "fgrep"
5808 msgstr ""
5809
5810 #. type: verbatim
5811 #: ../fish/guestfish-actions.pod:1012
5812 #, no-wrap
5813 msgid ""
5814 " fgrep pattern path\n"
5815 "\n"
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../fish/guestfish-actions.pod:1014 ../src/guestfs-actions.pod:1553
5820 msgid "This calls the external C<fgrep> program and returns the matching lines."
5821 msgstr ""
5822
5823 #. type: =head2
5824 #: ../fish/guestfish-actions.pod:1020
5825 msgid "fgrepi"
5826 msgstr ""
5827
5828 #. type: verbatim
5829 #: ../fish/guestfish-actions.pod:1022
5830 #, no-wrap
5831 msgid ""
5832 " fgrepi pattern path\n"
5833 "\n"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1572
5838 msgid "This calls the external C<fgrep -i> program and returns the matching lines."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:1030
5843 msgid "file"
5844 msgstr ""
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:1032
5848 #, no-wrap
5849 msgid ""
5850 " file path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1590
5856 msgid ""
5857 "This call uses the standard L<file(1)> command to determine the type or "
5858 "contents of the file."
5859 msgstr ""
5860
5861 #. type: textblock
5862 #: ../fish/guestfish-actions.pod:1037 ../src/guestfs-actions.pod:1593
5863 msgid ""
5864 "This call will also transparently look inside various types of compressed "
5865 "file."
5866 msgstr ""
5867
5868 #. type: textblock
5869 #: ../fish/guestfish-actions.pod:1040 ../src/guestfs-actions.pod:1596
5870 msgid ""
5871 "The exact command which runs is C<file -zb path>.  Note in particular that "
5872 "the filename is not prepended to the output (the I<-b> option)."
5873 msgstr ""
5874
5875 #. type: textblock
5876 #: ../fish/guestfish-actions.pod:1044 ../src/guestfs-actions.pod:1600
5877 msgid ""
5878 "The output depends on the output of the underlying L<file(1)> command and it "
5879 "can change in future in ways beyond our control.  In other words, the output "
5880 "is not guaranteed by the ABI."
5881 msgstr ""
5882
5883 #. type: textblock
5884 #: ../fish/guestfish-actions.pod:1048
5885 msgid ""
5886 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
5887 "(etc), L</is-zero>."
5888 msgstr ""
5889
5890 #. type: =head2
5891 #: ../fish/guestfish-actions.pod:1051
5892 msgid "file-architecture"
5893 msgstr ""
5894
5895 #. type: verbatim
5896 #: ../fish/guestfish-actions.pod:1053
5897 #, no-wrap
5898 msgid ""
5899 " file-architecture filename\n"
5900 "\n"
5901 msgstr ""
5902
5903 #. type: textblock
5904 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1618
5905 msgid ""
5906 "This detects the architecture of the binary C<filename>, and returns it if "
5907 "known."
5908 msgstr ""
5909
5910 #. type: textblock
5911 #: ../fish/guestfish-actions.pod:1058 ../src/guestfs-actions.pod:1621
5912 msgid "Currently defined architectures are:"
5913 msgstr ""
5914
5915 #. type: =item
5916 #: ../fish/guestfish-actions.pod:1062 ../src/guestfs-actions.pod:1625
5917 msgid "\"i386\""
5918 msgstr ""
5919
5920 #. type: textblock
5921 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1627
5922 msgid ""
5923 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
5924 "irrespective of the precise processor requirements of the binary."
5925 msgstr ""
5926
5927 #. type: =item
5928 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
5929 msgid "\"x86_64\""
5930 msgstr ""
5931
5932 #. type: textblock
5933 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
5934 msgid "64 bit x86-64."
5935 msgstr ""
5936
5937 #. type: =item
5938 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1634
5939 msgid "\"sparc\""
5940 msgstr ""
5941
5942 #. type: textblock
5943 #: ../fish/guestfish-actions.pod:1073 ../src/guestfs-actions.pod:1636
5944 msgid "32 bit SPARC."
5945 msgstr ""
5946
5947 #. type: =item
5948 #: ../fish/guestfish-actions.pod:1075 ../src/guestfs-actions.pod:1638
5949 msgid "\"sparc64\""
5950 msgstr ""
5951
5952 #. type: textblock
5953 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1640
5954 msgid "64 bit SPARC V9 and above."
5955 msgstr ""
5956
5957 #. type: =item
5958 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1642
5959 msgid "\"ia64\""
5960 msgstr ""
5961
5962 #. type: textblock
5963 #: ../fish/guestfish-actions.pod:1081 ../src/guestfs-actions.pod:1644
5964 msgid "Intel Itanium."
5965 msgstr ""
5966
5967 #. type: =item
5968 #: ../fish/guestfish-actions.pod:1083 ../src/guestfs-actions.pod:1646
5969 msgid "\"ppc\""
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1648
5974 msgid "32 bit Power PC."
5975 msgstr ""
5976
5977 #. type: =item
5978 #: ../fish/guestfish-actions.pod:1087 ../src/guestfs-actions.pod:1650
5979 msgid "\"ppc64\""
5980 msgstr ""
5981
5982 #. type: textblock
5983 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1652
5984 msgid "64 bit Power PC."
5985 msgstr ""
5986
5987 #. type: textblock
5988 #: ../fish/guestfish-actions.pod:1093 ../src/guestfs-actions.pod:1656
5989 msgid "Libguestfs may return other architecture strings in future."
5990 msgstr ""
5991
5992 #. type: textblock
5993 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1658
5994 msgid "The function works on at least the following types of files:"
5995 msgstr ""
5996
5997 #. type: textblock
5998 #: ../fish/guestfish-actions.pod:1101 ../src/guestfs-actions.pod:1664
5999 msgid "many types of Un*x and Linux binary"
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../fish/guestfish-actions.pod:1105 ../src/guestfs-actions.pod:1668
6004 msgid "many types of Un*x and Linux shared library"
6005 msgstr ""
6006
6007 #. type: textblock
6008 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1672
6009 msgid "Windows Win32 and Win64 binaries"
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1676
6014 msgid "Windows Win32 and Win64 DLLs"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1678
6019 msgid "Win32 binaries and DLLs return C<i386>."
6020 msgstr ""
6021
6022 #. type: textblock
6023 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1680
6024 msgid "Win64 binaries and DLLs return C<x86_64>."
6025 msgstr ""
6026
6027 #. type: textblock
6028 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1684
6029 msgid "Linux kernel modules"
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1688
6034 msgid "Linux new-style initrd images"
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1692
6039 msgid "some non-x86 Linux vmlinuz kernels"
6040 msgstr ""
6041
6042 #. type: textblock
6043 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1696
6044 msgid "What it can't do currently:"
6045 msgstr ""
6046
6047 #. type: textblock
6048 #: ../fish/guestfish-actions.pod:1139 ../src/guestfs-actions.pod:1702
6049 msgid "static libraries (libfoo.a)"
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:1143 ../src/guestfs-actions.pod:1706
6054 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6055 msgstr ""
6056
6057 #. type: textblock
6058 #: ../fish/guestfish-actions.pod:1147 ../src/guestfs-actions.pod:1710
6059 msgid "x86 Linux vmlinuz kernels"
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1712
6064 msgid ""
6065 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6066 "compressed code, and are horribly hard to unpack.  If you want to find the "
6067 "architecture of a kernel, use the architecture of the associated initrd or "
6068 "kernel module(s) instead."
6069 msgstr ""
6070
6071 #. type: =head2
6072 #: ../fish/guestfish-actions.pod:1156
6073 msgid "filesize"
6074 msgstr ""
6075
6076 #. type: verbatim
6077 #: ../fish/guestfish-actions.pod:1158
6078 #, no-wrap
6079 msgid ""
6080 " filesize file\n"
6081 "\n"
6082 msgstr ""
6083
6084 #. type: textblock
6085 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1730
6086 msgid "This command returns the size of C<file> in bytes."
6087 msgstr ""
6088
6089 #. type: textblock
6090 #: ../fish/guestfish-actions.pod:1162
6091 msgid ""
6092 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, "
6093 "L</is-file> etc.  To get the size of block devices, use "
6094 "L</blockdev-getsize64>."
6095 msgstr ""
6096
6097 #. type: =head2
6098 #: ../fish/guestfish-actions.pod:1166
6099 msgid "fill"
6100 msgstr ""
6101
6102 #. type: verbatim
6103 #: ../fish/guestfish-actions.pod:1168
6104 #, no-wrap
6105 msgid ""
6106 " fill c len path\n"
6107 "\n"
6108 msgstr ""
6109
6110 #. type: textblock
6111 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1748
6112 msgid ""
6113 "This command creates a new file called C<path>.  The initial content of the "
6114 "file is C<len> octets of C<c>, where C<c> must be a number in the range "
6115 "C<[0..255]>."
6116 msgstr ""
6117
6118 #. type: textblock
6119 #: ../fish/guestfish-actions.pod:1174
6120 msgid ""
6121 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
6122 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
6123 "L</fill-pattern>."
6124 msgstr ""
6125
6126 #. type: =head2
6127 #: ../fish/guestfish-actions.pod:1179
6128 msgid "fill-pattern"
6129 msgstr ""
6130
6131 #. type: verbatim
6132 #: ../fish/guestfish-actions.pod:1181
6133 #, no-wrap
6134 msgid ""
6135 " fill-pattern pattern len path\n"
6136 "\n"
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../fish/guestfish-actions.pod:1183
6141 msgid ""
6142 "This function is like L</fill> except that it creates a new file of length "
6143 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
6144 "is truncated if necessary to ensure the length of the file is exactly C<len> "
6145 "bytes."
6146 msgstr ""
6147
6148 #. type: =head2
6149 #: ../fish/guestfish-actions.pod:1188
6150 msgid "find"
6151 msgstr ""
6152
6153 #. type: verbatim
6154 #: ../fish/guestfish-actions.pod:1190
6155 #, no-wrap
6156 msgid ""
6157 " find directory\n"
6158 "\n"
6159 msgstr ""
6160
6161 #. type: textblock
6162 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1794
6163 msgid ""
6164 "This command lists out all files and directories, recursively, starting at "
6165 "C<directory>.  It is essentially equivalent to running the shell command "
6166 "C<find directory -print> but some post-processing happens on the output, "
6167 "described below."
6168 msgstr ""
6169
6170 #. type: textblock
6171 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
6172 msgid ""
6173 "This returns a list of strings I<without any prefix>.  Thus if the directory "
6174 "structure was:"
6175 msgstr ""
6176
6177 #. type: verbatim
6178 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1802
6179 #, no-wrap
6180 msgid ""
6181 " /tmp/a\n"
6182 " /tmp/b\n"
6183 " /tmp/c/d\n"
6184 "\n"
6185 msgstr ""
6186
6187 #. type: textblock
6188 #: ../fish/guestfish-actions.pod:1204
6189 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
6190 msgstr ""
6191
6192 #. type: verbatim
6193 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:1809
6194 #, no-wrap
6195 msgid ""
6196 " a\n"
6197 " b\n"
6198 " c\n"
6199 " c/d\n"
6200 "\n"
6201 msgstr ""
6202
6203 #. type: textblock
6204 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
6205 msgid "If C<directory> is not a directory, then this command returns an error."
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1817
6210 msgid "The returned list is sorted."
6211 msgstr ""
6212
6213 #. type: textblock
6214 #: ../fish/guestfish-actions.pod:1217
6215 msgid "See also L</find0>."
6216 msgstr ""
6217
6218 #. type: =head2
6219 #: ../fish/guestfish-actions.pod:1222
6220 msgid "find0"
6221 msgstr ""
6222
6223 #. type: verbatim
6224 #: ../fish/guestfish-actions.pod:1224
6225 #, no-wrap
6226 msgid ""
6227 " find0 directory (files|-)\n"
6228 "\n"
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:1226 ../src/guestfs-actions.pod:1837
6233 msgid ""
6234 "This command lists out all files and directories, recursively, starting at "
6235 "C<directory>, placing the resulting list in the external file called "
6236 "C<files>."
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../fish/guestfish-actions.pod:1230
6241 msgid "This command works the same way as L</find> with the following exceptions:"
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1848
6246 msgid "The resulting list is written to an external file."
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../fish/guestfish-actions.pod:1241 ../src/guestfs-actions.pod:1852
6251 msgid ""
6252 "Items (filenames) in the result are separated by C<\\0> characters.  See "
6253 "L<find(1)> option I<-print0>."
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
6258 msgid "This command is not limited in the number of names that it can return."
6259 msgstr ""
6260
6261 #. type: textblock
6262 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
6263 msgid "The result list is not sorted."
6264 msgstr ""
6265
6266 #. type: =head2
6267 #: ../fish/guestfish-actions.pod:1257
6268 msgid "findfs-label"
6269 msgstr ""
6270
6271 #. type: verbatim
6272 #: ../fish/guestfish-actions.pod:1259
6273 #, no-wrap
6274 msgid ""
6275 " findfs-label label\n"
6276 "\n"
6277 msgstr ""
6278
6279 #. type: textblock
6280 #: ../fish/guestfish-actions.pod:1261 ../src/guestfs-actions.pod:1876
6281 msgid ""
6282 "This command searches the filesystems and returns the one which has the "
6283 "given label.  An error is returned if no such filesystem can be found."
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:1265
6288 msgid "To find the label of a filesystem, use L</vfs-label>."
6289 msgstr ""
6290
6291 #. type: =head2
6292 #: ../fish/guestfish-actions.pod:1267
6293 msgid "findfs-uuid"
6294 msgstr ""
6295
6296 #. type: verbatim
6297 #: ../fish/guestfish-actions.pod:1269
6298 #, no-wrap
6299 msgid ""
6300 " findfs-uuid uuid\n"
6301 "\n"
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1893
6306 msgid ""
6307 "This command searches the filesystems and returns the one which has the "
6308 "given UUID.  An error is returned if no such filesystem can be found."
6309 msgstr ""
6310
6311 #. type: textblock
6312 #: ../fish/guestfish-actions.pod:1275
6313 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
6314 msgstr ""
6315
6316 #. type: =head2
6317 #: ../fish/guestfish-actions.pod:1277
6318 msgid "fsck"
6319 msgstr ""
6320
6321 #. type: verbatim
6322 #: ../fish/guestfish-actions.pod:1279
6323 #, no-wrap
6324 msgid ""
6325 " fsck fstype device\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1911
6331 msgid ""
6332 "This runs the filesystem checker (fsck) on C<device> which should have "
6333 "filesystem type C<fstype>."
6334 msgstr ""
6335
6336 #. type: textblock
6337 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:1914
6338 msgid ""
6339 "The returned integer is the status.  See L<fsck(8)> for the list of status "
6340 "codes from C<fsck>."
6341 msgstr ""
6342
6343 #. type: textblock
6344 #: ../fish/guestfish-actions.pod:1293 ../src/guestfs-actions.pod:1923
6345 msgid "Multiple status codes can be summed together."
6346 msgstr ""
6347
6348 #. type: textblock
6349 #: ../fish/guestfish-actions.pod:1297 ../src/guestfs-actions.pod:1927
6350 msgid ""
6351 "A non-zero return code can mean \"success\", for example if errors have been "
6352 "corrected on the filesystem."
6353 msgstr ""
6354
6355 #. type: textblock
6356 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
6357 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
6362 msgid "This command is entirely equivalent to running C<fsck -a -t fstype device>."
6363 msgstr ""
6364
6365 #. type: =head2
6366 #: ../fish/guestfish-actions.pod:1309
6367 msgid "get-append"
6368 msgstr ""
6369
6370 #. type: verbatim
6371 #: ../fish/guestfish-actions.pod:1311
6372 #, no-wrap
6373 msgid ""
6374 " get-append\n"
6375 "\n"
6376 msgstr ""
6377
6378 #. type: textblock
6379 #: ../fish/guestfish-actions.pod:1313 ../src/guestfs-actions.pod:1948
6380 msgid ""
6381 "Return the additional kernel options which are added to the guest kernel "
6382 "command line."
6383 msgstr ""
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:1951
6387 msgid "If C<NULL> then no options are added."
6388 msgstr ""
6389
6390 #. type: =head2
6391 #: ../fish/guestfish-actions.pod:1318
6392 msgid "get-attach-method"
6393 msgstr ""
6394
6395 #. type: verbatim
6396 #: ../fish/guestfish-actions.pod:1320
6397 #, no-wrap
6398 msgid ""
6399 " get-attach-method\n"
6400 "\n"
6401 msgstr ""
6402
6403 #. type: textblock
6404 #: ../fish/guestfish-actions.pod:1322
6405 msgid "Return the current attach method.  See L</set-attach-method>."
6406 msgstr ""
6407
6408 #. type: =head2
6409 #: ../fish/guestfish-actions.pod:1324
6410 msgid "get-autosync"
6411 msgstr ""
6412
6413 #. type: verbatim
6414 #: ../fish/guestfish-actions.pod:1326
6415 #, no-wrap
6416 msgid ""
6417 " get-autosync\n"
6418 "\n"
6419 msgstr ""
6420
6421 #. type: textblock
6422 #: ../fish/guestfish-actions.pod:1328 ../src/guestfs-actions.pod:1976
6423 msgid "Get the autosync flag."
6424 msgstr ""
6425
6426 #. type: =head2
6427 #: ../fish/guestfish-actions.pod:1330
6428 msgid "get-direct"
6429 msgstr ""
6430
6431 #. type: verbatim
6432 #: ../fish/guestfish-actions.pod:1332
6433 #, no-wrap
6434 msgid ""
6435 " get-direct\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:1334 ../src/guestfs-actions.pod:1987
6441 msgid "Return the direct appliance mode flag."
6442 msgstr ""
6443
6444 #. type: =head2
6445 #: ../fish/guestfish-actions.pod:1336
6446 msgid "get-e2label"
6447 msgstr ""
6448
6449 #. type: verbatim
6450 #: ../fish/guestfish-actions.pod:1338
6451 #, no-wrap
6452 msgid ""
6453 " get-e2label device\n"
6454 "\n"
6455 msgstr ""
6456
6457 #. type: textblock
6458 #: ../fish/guestfish-actions.pod:1340 ../src/guestfs-actions.pod:2006
6459 msgid "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
6460 msgstr ""
6461
6462 #. type: textblock
6463 #: ../fish/guestfish-actions.pod:1343
6464 msgid ""
6465 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
6466 "instead."
6467 msgstr ""
6468
6469 #. type: =head2
6470 #: ../fish/guestfish-actions.pod:1350
6471 msgid "get-e2uuid"
6472 msgstr ""
6473
6474 #. type: verbatim
6475 #: ../fish/guestfish-actions.pod:1352
6476 #, no-wrap
6477 msgid ""
6478 " get-e2uuid device\n"
6479 "\n"
6480 msgstr ""
6481
6482 #. type: textblock
6483 #: ../fish/guestfish-actions.pod:1354 ../src/guestfs-actions.pod:2027
6484 msgid "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
6485 msgstr ""
6486
6487 #. type: textblock
6488 #: ../fish/guestfish-actions.pod:1357
6489 msgid ""
6490 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
6491 "instead."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../fish/guestfish-actions.pod:1364
6496 msgid "get-memsize"
6497 msgstr ""
6498
6499 #. type: verbatim
6500 #: ../fish/guestfish-actions.pod:1366
6501 #, no-wrap
6502 msgid ""
6503 " get-memsize\n"
6504 "\n"
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2040
6509 msgid "This gets the memory size in megabytes allocated to the qemu subprocess."
6510 msgstr ""
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:1371
6514 msgid ""
6515 "If L</set-memsize> was not called on this handle, and if "
6516 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
6517 "value for memsize."
6518 msgstr ""
6519
6520 #. type: textblock
6521 #: ../fish/guestfish-actions.pod:1375 ../fish/guestfish-actions.pod:1432 ../fish/guestfish-actions.pod:4163 ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:2047 ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:6293 ../src/guestfs-actions.pod:6419
6522 msgid "For more information on the architecture of libguestfs, see L<guestfs(3)>."
6523 msgstr ""
6524
6525 #. type: =head2
6526 #: ../fish/guestfish-actions.pod:1378
6527 msgid "get-network"
6528 msgstr ""
6529
6530 #. type: verbatim
6531 #: ../fish/guestfish-actions.pod:1380
6532 #, no-wrap
6533 msgid ""
6534 " get-network\n"
6535 "\n"
6536 msgstr ""
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:1382 ../src/guestfs-actions.pod:2059
6540 msgid "This returns the enable network flag."
6541 msgstr ""
6542
6543 #. type: =head2
6544 #: ../fish/guestfish-actions.pod:1384
6545 msgid "get-path"
6546 msgstr ""
6547
6548 #. type: verbatim
6549 #: ../fish/guestfish-actions.pod:1386
6550 #, no-wrap
6551 msgid ""
6552 " get-path\n"
6553 "\n"
6554 msgstr ""
6555
6556 #. type: textblock
6557 #: ../fish/guestfish-actions.pod:1388 ../src/guestfs-actions.pod:2070
6558 msgid "Return the current search path."
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:1390 ../src/guestfs-actions.pod:2072
6563 msgid ""
6564 "This is always non-NULL.  If it wasn't set already, then this will return "
6565 "the default path."
6566 msgstr ""
6567
6568 #. type: =head2
6569 #: ../fish/guestfish-actions.pod:1393
6570 msgid "get-pgroup"
6571 msgstr ""
6572
6573 #. type: verbatim
6574 #: ../fish/guestfish-actions.pod:1395
6575 #, no-wrap
6576 msgid ""
6577 " get-pgroup\n"
6578 "\n"
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:1397 ../src/guestfs-actions.pod:2085
6583 msgid "This returns the process group flag."
6584 msgstr ""
6585
6586 #. type: =head2
6587 #: ../fish/guestfish-actions.pod:1399
6588 msgid "get-pid"
6589 msgstr ""
6590
6591 #. type: =head2
6592 #: ../fish/guestfish-actions.pod:1401
6593 msgid "pid"
6594 msgstr ""
6595
6596 #. type: verbatim
6597 #: ../fish/guestfish-actions.pod:1403
6598 #, no-wrap
6599 msgid ""
6600 " get-pid\n"
6601 "\n"
6602 msgstr ""
6603
6604 #. type: textblock
6605 #: ../fish/guestfish-actions.pod:1405 ../src/guestfs-actions.pod:2096
6606 msgid ""
6607 "Return the process ID of the qemu subprocess.  If there is no qemu "
6608 "subprocess, then this will return an error."
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2099
6613 msgid "This is an internal call used for debugging and testing."
6614 msgstr ""
6615
6616 #. type: =head2
6617 #: ../fish/guestfish-actions.pod:1410
6618 msgid "get-qemu"
6619 msgstr ""
6620
6621 #. type: verbatim
6622 #: ../fish/guestfish-actions.pod:1412
6623 #, no-wrap
6624 msgid ""
6625 " get-qemu\n"
6626 "\n"
6627 msgstr ""
6628
6629 #. type: textblock
6630 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2110
6631 msgid "Return the current qemu binary."
6632 msgstr ""
6633
6634 #. type: textblock
6635 #: ../fish/guestfish-actions.pod:1416 ../src/guestfs-actions.pod:2112
6636 msgid ""
6637 "This is always non-NULL.  If it wasn't set already, then this will return "
6638 "the default qemu binary name."
6639 msgstr ""
6640
6641 #. type: =head2
6642 #: ../fish/guestfish-actions.pod:1419
6643 msgid "get-recovery-proc"
6644 msgstr ""
6645
6646 #. type: verbatim
6647 #: ../fish/guestfish-actions.pod:1421
6648 #, no-wrap
6649 msgid ""
6650 " get-recovery-proc\n"
6651 "\n"
6652 msgstr ""
6653
6654 #. type: textblock
6655 #: ../fish/guestfish-actions.pod:1423 ../src/guestfs-actions.pod:2125
6656 msgid "Return the recovery process enabled flag."
6657 msgstr ""
6658
6659 #. type: =head2
6660 #: ../fish/guestfish-actions.pod:1425
6661 msgid "get-selinux"
6662 msgstr ""
6663
6664 #. type: verbatim
6665 #: ../fish/guestfish-actions.pod:1427
6666 #, no-wrap
6667 msgid ""
6668 " get-selinux\n"
6669 "\n"
6670 msgstr ""
6671
6672 #. type: textblock
6673 #: ../fish/guestfish-actions.pod:1429
6674 msgid ""
6675 "This returns the current setting of the selinux flag which is passed to the "
6676 "appliance at boot time.  See L</set-selinux>."
6677 msgstr ""
6678
6679 #. type: =head2
6680 #: ../fish/guestfish-actions.pod:1435
6681 msgid "get-state"
6682 msgstr ""
6683
6684 #. type: verbatim
6685 #: ../fish/guestfish-actions.pod:1437
6686 #, no-wrap
6687 msgid ""
6688 " get-state\n"
6689 "\n"
6690 msgstr ""
6691
6692 #. type: textblock
6693 #: ../fish/guestfish-actions.pod:1439 ../src/guestfs-actions.pod:2151
6694 msgid ""
6695 "This returns the current state as an opaque integer.  This is only useful "
6696 "for printing debug and internal error messages."
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:1442 ../fish/guestfish-actions.pod:2362 ../fish/guestfish-actions.pod:2380 ../fish/guestfish-actions.pod:2418 ../fish/guestfish-actions.pod:2434 ../src/guestfs-actions.pod:2154 ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3463 ../src/guestfs-actions.pod:3524 ../src/guestfs-actions.pod:3551
6701 msgid "For more information on states, see L<guestfs(3)>."
6702 msgstr ""
6703
6704 #. type: =head2
6705 #: ../fish/guestfish-actions.pod:1444
6706 msgid "get-trace"
6707 msgstr ""
6708
6709 #. type: verbatim
6710 #: ../fish/guestfish-actions.pod:1446
6711 #, no-wrap
6712 msgid ""
6713 " get-trace\n"
6714 "\n"
6715 msgstr ""
6716
6717 #. type: textblock
6718 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2165
6719 msgid "Return the command trace flag."
6720 msgstr ""
6721
6722 #. type: =head2
6723 #: ../fish/guestfish-actions.pod:1450
6724 msgid "get-umask"
6725 msgstr ""
6726
6727 #. type: verbatim
6728 #: ../fish/guestfish-actions.pod:1452
6729 #, no-wrap
6730 msgid ""
6731 " get-umask\n"
6732 "\n"
6733 msgstr ""
6734
6735 #. type: textblock
6736 #: ../fish/guestfish-actions.pod:1454
6737 msgid ""
6738 "Return the current umask.  By default the umask is C<022> unless it has been "
6739 "set by calling L</umask>."
6740 msgstr ""
6741
6742 #. type: =head2
6743 #: ../fish/guestfish-actions.pod:1457
6744 msgid "get-verbose"
6745 msgstr ""
6746
6747 #. type: verbatim
6748 #: ../fish/guestfish-actions.pod:1459
6749 #, no-wrap
6750 msgid ""
6751 " get-verbose\n"
6752 "\n"
6753 msgstr ""
6754
6755 #. type: textblock
6756 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2188
6757 msgid "This returns the verbose messages flag."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1463
6762 msgid "getcon"
6763 msgstr ""
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1465
6767 #, no-wrap
6768 msgid ""
6769 " getcon\n"
6770 "\n"
6771 msgstr ""
6772
6773 #. type: textblock
6774 #: ../fish/guestfish-actions.pod:1467 ../src/guestfs-actions.pod:2199
6775 msgid "This gets the SELinux security context of the daemon."
6776 msgstr ""
6777
6778 #. type: textblock
6779 #: ../fish/guestfish-actions.pod:1469
6780 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
6781 msgstr ""
6782
6783 #. type: =head2
6784 #: ../fish/guestfish-actions.pod:1472
6785 msgid "getxattr"
6786 msgstr ""
6787
6788 #. type: verbatim
6789 #: ../fish/guestfish-actions.pod:1474
6790 #, no-wrap
6791 msgid ""
6792 " getxattr path name\n"
6793 "\n"
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1476
6798 msgid ""
6799 "Get a single extended attribute from file C<path> named C<name>.  This call "
6800 "follows symlinks.  If you want to lookup an extended attribute for the "
6801 "symlink itself, use L</lgetxattr>."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1480 ../fish/guestfish-actions.pod:2507
6806 msgid ""
6807 "Normally it is better to get all extended attributes from a file in one go "
6808 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
6809 "buggy and do not provide a way to list out attributes.  For these "
6810 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
6811 "attributes you want in advance and call this function."
6812 msgstr ""
6813
6814 #. type: textblock
6815 #: ../fish/guestfish-actions.pod:1487 ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:2228 ../src/guestfs-actions.pod:3684
6816 msgid ""
6817 "Extended attribute values are blobs of binary data.  If there is no extended "
6818 "attribute named C<name>, this returns an error."
6819 msgstr ""
6820
6821 #. type: textblock
6822 #: ../fish/guestfish-actions.pod:1490
6823 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
6824 msgstr ""
6825
6826 #. type: =head2
6827 #: ../fish/guestfish-actions.pod:1492
6828 msgid "getxattrs"
6829 msgstr ""
6830
6831 #. type: verbatim
6832 #: ../fish/guestfish-actions.pod:1494
6833 #, no-wrap
6834 msgid ""
6835 " getxattrs path\n"
6836 "\n"
6837 msgstr ""
6838
6839 #. type: textblock
6840 #: ../fish/guestfish-actions.pod:1496 ../src/guestfs-actions.pod:2245
6841 msgid "This call lists the extended attributes of the file or directory C<path>."
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2248
6846 msgid ""
6847 "At the system call level, this is a combination of the L<listxattr(2)> and "
6848 "L<getxattr(2)> calls."
6849 msgstr ""
6850
6851 #. type: textblock
6852 #: ../fish/guestfish-actions.pod:1502
6853 msgid "See also: L</lgetxattrs>, L<attr(5)>."
6854 msgstr ""
6855
6856 #. type: =head2
6857 #: ../fish/guestfish-actions.pod:1504
6858 msgid "glob-expand"
6859 msgstr ""
6860
6861 #. type: verbatim
6862 #: ../fish/guestfish-actions.pod:1506
6863 #, no-wrap
6864 msgid ""
6865 " glob-expand pattern\n"
6866 "\n"
6867 msgstr ""
6868
6869 #. type: textblock
6870 #: ../fish/guestfish-actions.pod:1508 ../src/guestfs-actions.pod:2265
6871 msgid ""
6872 "This command searches for all the pathnames matching C<pattern> according to "
6873 "the wildcard expansion rules used by the shell."
6874 msgstr ""
6875
6876 #. type: textblock
6877 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2269
6878 msgid "If no paths match, then this returns an empty list (note: not an error)."
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:1515 ../src/guestfs-actions.pod:2272
6883 msgid ""
6884 "It is just a wrapper around the C L<glob(3)> function with flags "
6885 "C<GLOB_MARK|GLOB_BRACE>.  See that manual page for more details."
6886 msgstr ""
6887
6888 #. type: =head2
6889 #: ../fish/guestfish-actions.pod:1519
6890 msgid "grep"
6891 msgstr ""
6892
6893 #. type: verbatim
6894 #: ../fish/guestfish-actions.pod:1521
6895 #, no-wrap
6896 msgid ""
6897 " grep regex path\n"
6898 "\n"
6899 msgstr ""
6900
6901 #. type: textblock
6902 #: ../fish/guestfish-actions.pod:1523 ../src/guestfs-actions.pod:2289
6903 msgid "This calls the external C<grep> program and returns the matching lines."
6904 msgstr ""
6905
6906 #. type: =head2
6907 #: ../fish/guestfish-actions.pod:1529
6908 msgid "grepi"
6909 msgstr ""
6910
6911 #. type: verbatim
6912 #: ../fish/guestfish-actions.pod:1531
6913 #, no-wrap
6914 msgid ""
6915 " grepi regex path\n"
6916 "\n"
6917 msgstr ""
6918
6919 #. type: textblock
6920 #: ../fish/guestfish-actions.pod:1533 ../src/guestfs-actions.pod:2308
6921 msgid "This calls the external C<grep -i> program and returns the matching lines."
6922 msgstr ""
6923
6924 #. type: =head2
6925 #: ../fish/guestfish-actions.pod:1539
6926 msgid "grub-install"
6927 msgstr ""
6928
6929 #. type: verbatim
6930 #: ../fish/guestfish-actions.pod:1541
6931 #, no-wrap
6932 msgid ""
6933 " grub-install root device\n"
6934 "\n"
6935 msgstr ""
6936
6937 #. type: textblock
6938 #: ../fish/guestfish-actions.pod:1543 ../src/guestfs-actions.pod:2327
6939 msgid ""
6940 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
6941 "the root directory being C<root>."
6942 msgstr ""
6943
6944 #. type: textblock
6945 #: ../fish/guestfish-actions.pod:1546 ../src/guestfs-actions.pod:2330
6946 msgid ""
6947 "Note: If grub-install reports the error \"No suitable drive was found in the "
6948 "generated device map.\" it may be that you need to create a "
6949 "C</boot/grub/device.map> file first that contains the mapping between grub "
6950 "device names and Linux device names.  It is usually sufficient to create a "
6951 "file containing:"
6952 msgstr ""
6953
6954 #. type: verbatim
6955 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2337
6956 #, no-wrap
6957 msgid ""
6958 " (hd0) /dev/vda\n"
6959 "\n"
6960 msgstr ""
6961
6962 #. type: textblock
6963 #: ../fish/guestfish-actions.pod:1555 ../src/guestfs-actions.pod:2339
6964 msgid "replacing C</dev/vda> with the name of the installation device."
6965 msgstr ""
6966
6967 #. type: =head2
6968 #: ../fish/guestfish-actions.pod:1557
6969 msgid "head"
6970 msgstr ""
6971
6972 #. type: verbatim
6973 #: ../fish/guestfish-actions.pod:1559
6974 #, no-wrap
6975 msgid ""
6976 " head path\n"
6977 "\n"
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2351
6982 msgid ""
6983 "This command returns up to the first 10 lines of a file as a list of "
6984 "strings."
6985 msgstr ""
6986
6987 #. type: =head2
6988 #: ../fish/guestfish-actions.pod:1567
6989 msgid "head-n"
6990 msgstr ""
6991
6992 #. type: verbatim
6993 #: ../fish/guestfish-actions.pod:1569
6994 #, no-wrap
6995 msgid ""
6996 " head-n nrlines path\n"
6997 "\n"
6998 msgstr ""
6999
7000 #. type: textblock
7001 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2370
7002 msgid ""
7003 "If the parameter C<nrlines> is a positive number, this returns the first "
7004 "C<nrlines> lines of the file C<path>."
7005 msgstr ""
7006
7007 #. type: textblock
7008 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2373
7009 msgid ""
7010 "If the parameter C<nrlines> is a negative number, this returns lines from "
7011 "the file C<path>, excluding the last C<nrlines> lines."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:2376 ../src/guestfs-actions.pod:6991
7016 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
7017 msgstr ""
7018
7019 #. type: =head2
7020 #: ../fish/guestfish-actions.pod:1582
7021 msgid "hexdump"
7022 msgstr ""
7023
7024 #. type: verbatim
7025 #: ../fish/guestfish-actions.pod:1584
7026 #, no-wrap
7027 msgid ""
7028 " hexdump path\n"
7029 "\n"
7030 msgstr ""
7031
7032 #. type: textblock
7033 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2393
7034 msgid ""
7035 "This runs C<hexdump -C> on the given C<path>.  The result is the "
7036 "human-readable, canonical hex dump of the file."
7037 msgstr ""
7038
7039 #. type: =head2
7040 #: ../fish/guestfish-actions.pod:1592
7041 msgid "initrd-cat"
7042 msgstr ""
7043
7044 #. type: verbatim
7045 #: ../fish/guestfish-actions.pod:1594
7046 #, no-wrap
7047 msgid ""
7048 " initrd-cat initrdpath filename\n"
7049 "\n"
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:1596 ../src/guestfs-actions.pod:2412
7054 msgid ""
7055 "This command unpacks the file C<filename> from the initrd file called "
7056 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
7057 "character."
7058 msgstr ""
7059
7060 #. type: textblock
7061 #: ../fish/guestfish-actions.pod:1600 ../src/guestfs-actions.pod:2416
7062 msgid ""
7063 "For example, in guestfish you could use the following command to examine the "
7064 "boot script (usually called C</init>)  contained in a Linux initrd or "
7065 "initramfs image:"
7066 msgstr ""
7067
7068 #. type: verbatim
7069 #: ../fish/guestfish-actions.pod:1604 ../src/guestfs-actions.pod:2420
7070 #, no-wrap
7071 msgid ""
7072 " initrd-cat /boot/initrd-<version>.img init\n"
7073 "\n"
7074 msgstr ""
7075
7076 #. type: textblock
7077 #: ../fish/guestfish-actions.pod:1606
7078 msgid "See also L</initrd-list>."
7079 msgstr ""
7080
7081 #. type: =head2
7082 #: ../fish/guestfish-actions.pod:1611
7083 msgid "initrd-list"
7084 msgstr ""
7085
7086 #. type: verbatim
7087 #: ../fish/guestfish-actions.pod:1613
7088 #, no-wrap
7089 msgid ""
7090 " initrd-list path\n"
7091 "\n"
7092 msgstr ""
7093
7094 #. type: textblock
7095 #: ../fish/guestfish-actions.pod:1615 ../src/guestfs-actions.pod:2439
7096 msgid "This command lists out files contained in an initrd."
7097 msgstr ""
7098
7099 #. type: textblock
7100 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2441
7101 msgid ""
7102 "The files are listed without any initial C</> character.  The files are "
7103 "listed in the order they appear (not necessarily alphabetical).  Directory "
7104 "names are listed as separate items."
7105 msgstr ""
7106
7107 #. type: textblock
7108 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2445
7109 msgid ""
7110 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
7111 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
7112 "files)."
7113 msgstr ""
7114
7115 #. type: =head2
7116 #: ../fish/guestfish-actions.pod:1625
7117 msgid "inotify-add-watch"
7118 msgstr ""
7119
7120 #. type: verbatim
7121 #: ../fish/guestfish-actions.pod:1627
7122 #, no-wrap
7123 msgid ""
7124 " inotify-add-watch path mask\n"
7125 "\n"
7126 msgstr ""
7127
7128 #. type: textblock
7129 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2462
7130 msgid "Watch C<path> for the events listed in C<mask>."
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2464
7135 msgid ""
7136 "Note that if C<path> is a directory then events within that directory are "
7137 "watched, but this does I<not> happen recursively (in subdirectories)."
7138 msgstr ""
7139
7140 #. type: textblock
7141 #: ../fish/guestfish-actions.pod:1635 ../src/guestfs-actions.pod:2468
7142 msgid ""
7143 "Note for non-C or non-Linux callers: the inotify events are defined by the "
7144 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
7145 msgstr ""
7146
7147 #. type: =head2
7148 #: ../fish/guestfish-actions.pod:1639
7149 msgid "inotify-close"
7150 msgstr ""
7151
7152 #. type: verbatim
7153 #: ../fish/guestfish-actions.pod:1641
7154 #, no-wrap
7155 msgid ""
7156 " inotify-close\n"
7157 "\n"
7158 msgstr ""
7159
7160 #. type: textblock
7161 #: ../fish/guestfish-actions.pod:1643 ../src/guestfs-actions.pod:2481
7162 msgid ""
7163 "This closes the inotify handle which was previously opened by inotify_init.  "
7164 "It removes all watches, throws away any pending events, and deallocates all "
7165 "resources."
7166 msgstr ""
7167
7168 #. type: =head2
7169 #: ../fish/guestfish-actions.pod:1647
7170 msgid "inotify-files"
7171 msgstr ""
7172
7173 #. type: verbatim
7174 #: ../fish/guestfish-actions.pod:1649
7175 #, no-wrap
7176 msgid ""
7177 " inotify-files\n"
7178 "\n"
7179 msgstr ""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:1651
7183 msgid ""
7184 "This function is a helpful wrapper around L</inotify-read> which just "
7185 "returns a list of pathnames of objects that were touched.  The returned "
7186 "pathnames are sorted and deduplicated."
7187 msgstr ""
7188
7189 #. type: =head2
7190 #: ../fish/guestfish-actions.pod:1655
7191 msgid "inotify-init"
7192 msgstr ""
7193
7194 #. type: verbatim
7195 #: ../fish/guestfish-actions.pod:1657
7196 #, no-wrap
7197 msgid ""
7198 " inotify-init maxevents\n"
7199 "\n"
7200 msgstr ""
7201
7202 #. type: textblock
7203 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2510
7204 msgid ""
7205 "This command creates a new inotify handle.  The inotify subsystem can be "
7206 "used to notify events which happen to objects in the guest filesystem."
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:1663
7211 msgid ""
7212 "C<maxevents> is the maximum number of events which will be queued up between "
7213 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
7214 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
7215 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
7216 "but records the fact that it threw them away by setting a flag "
7217 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
7218 msgstr ""
7219
7220 #. type: textblock
7221 #: ../fish/guestfish-actions.pod:1673
7222 msgid ""
7223 "Before any events are generated, you have to add some watches to the "
7224 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
7225 "L</inotify-watch-all>."
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:1679
7230 msgid ""
7231 "Queued up events should be read periodically by calling L</inotify-read> (or "
7232 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
7233 "If you don't read the events out often enough then you risk the internal "
7234 "queue overflowing."
7235 msgstr ""
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:1686
7239 msgid ""
7240 "The handle should be closed after use by calling L</inotify-close>.  This "
7241 "also removes any watches automatically."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2541
7246 msgid ""
7247 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
7248 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
7249 "that there is one global inotify handle per libguestfs instance."
7250 msgstr ""
7251
7252 #. type: =head2
7253 #: ../fish/guestfish-actions.pod:1695
7254 msgid "inotify-read"
7255 msgstr ""
7256
7257 #. type: verbatim
7258 #: ../fish/guestfish-actions.pod:1697
7259 #, no-wrap
7260 msgid ""
7261 " inotify-read\n"
7262 "\n"
7263 msgstr ""
7264
7265 #. type: textblock
7266 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2555
7267 msgid ""
7268 "Return the complete queue of events that have happened since the previous "
7269 "read call."
7270 msgstr ""
7271
7272 #. type: textblock
7273 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2558
7274 msgid "If no events have happened, this returns an empty list."
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
7279 msgid ""
7280 "I<Note>: In order to make sure that all events have been read, you must call "
7281 "this function repeatedly until it returns an empty list.  The reason is that "
7282 "the call will read events up to the maximum appliance-to-host message size "
7283 "and leave remaining events in the queue."
7284 msgstr ""
7285
7286 #. type: =head2
7287 #: ../fish/guestfish-actions.pod:1710
7288 msgid "inotify-rm-watch"
7289 msgstr ""
7290
7291 #. type: verbatim
7292 #: ../fish/guestfish-actions.pod:1712
7293 #, no-wrap
7294 msgid ""
7295 " inotify-rm-watch wd\n"
7296 "\n"
7297 msgstr ""
7298
7299 #. type: textblock
7300 #: ../fish/guestfish-actions.pod:1714
7301 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
7302 msgstr ""
7303
7304 #. type: =head2
7305 #: ../fish/guestfish-actions.pod:1717
7306 msgid "inspect-get-arch"
7307 msgstr ""
7308
7309 #. type: verbatim
7310 #: ../fish/guestfish-actions.pod:1719
7311 #, no-wrap
7312 msgid ""
7313 " inspect-get-arch root\n"
7314 "\n"
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:1721
7319 msgid ""
7320 "This returns the architecture of the inspected operating system.  The "
7321 "possible return values are listed under L</file-architecture>."
7322 msgstr ""
7323
7324 #. type: textblock
7325 #: ../fish/guestfish-actions.pod:1725 ../src/guestfs-actions.pod:2595
7326 msgid ""
7327 "If the architecture could not be determined, then the string C<unknown> is "
7328 "returned."
7329 msgstr ""
7330
7331 #. type: textblock
7332 #: ../fish/guestfish-actions.pod:1728 ../fish/guestfish-actions.pod:1811 ../fish/guestfish-actions.pod:1890 ../fish/guestfish-actions.pod:1902 ../fish/guestfish-actions.pod:1986 ../fish/guestfish-actions.pod:2047 ../fish/guestfish-actions.pod:2068 ../fish/guestfish-actions.pod:2082 ../fish/guestfish-actions.pod:2122 ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2167 ../fish/guestfish-actions.pod:2180 ../fish/guestfish-actions.pod:2190 ../fish/guestfish-actions.pod:2200 ../fish/guestfish-actions.pod:2212 ../fish/guestfish-actions.pod:2308 ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2688 ../src/guestfs-actions.pod:2792 ../src/guestfs-actions.pod:2811 ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3025 ../src/guestfs-actions.pod:3053 ../src/guestfs-actions.pod:3074 ../src/guestfs-actions.pod:3127 ../src/guestfs-actions.pod:3167 ../src/guestfs-actions.pod:3187 ../src/guestfs-actions.pod:3207 ../src/guestfs-actions.pod:3224 ../src/guestfs-actions.pod:3240 ../src/guestfs-actions.pod:3258 ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3401
7333 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
7334 msgstr ""
7335
7336 #. type: =head2
7337 #: ../fish/guestfish-actions.pod:1730
7338 msgid "inspect-get-distro"
7339 msgstr ""
7340
7341 #. type: verbatim
7342 #: ../fish/guestfish-actions.pod:1732
7343 #, no-wrap
7344 msgid ""
7345 " inspect-get-distro root\n"
7346 "\n"
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:1734 ../src/guestfs-actions.pod:2611
7351 msgid "This returns the distro (distribution) of the inspected operating system."
7352 msgstr ""
7353
7354 #. type: textblock
7355 #: ../fish/guestfish-actions.pod:1737 ../src/guestfs-actions.pod:2614
7356 msgid "Currently defined distros are:"
7357 msgstr ""
7358
7359 #. type: =item
7360 #: ../fish/guestfish-actions.pod:1741 ../src/guestfs-actions.pod:2618
7361 msgid "\"archlinux\""
7362 msgstr ""
7363
7364 #. type: textblock
7365 #: ../fish/guestfish-actions.pod:1743 ../src/guestfs-actions.pod:2620
7366 msgid "Arch Linux."
7367 msgstr ""
7368
7369 #. type: =item
7370 #: ../fish/guestfish-actions.pod:1745 ../src/guestfs-actions.pod:2622
7371 msgid "\"centos\""
7372 msgstr ""
7373
7374 #. type: textblock
7375 #: ../fish/guestfish-actions.pod:1747 ../src/guestfs-actions.pod:2624
7376 msgid "CentOS."
7377 msgstr ""
7378
7379 #. type: =item
7380 #: ../fish/guestfish-actions.pod:1749 ../src/guestfs-actions.pod:2626
7381 msgid "\"debian\""
7382 msgstr ""
7383
7384 #. type: textblock
7385 #: ../fish/guestfish-actions.pod:1751 ../src/guestfs-actions.pod:2628
7386 msgid "Debian."
7387 msgstr ""
7388
7389 #. type: =item
7390 #: ../fish/guestfish-actions.pod:1753 ../src/guestfs-actions.pod:2630
7391 msgid "\"fedora\""
7392 msgstr ""
7393
7394 #. type: textblock
7395 #: ../fish/guestfish-actions.pod:1755 ../src/guestfs-actions.pod:2632
7396 msgid "Fedora."
7397 msgstr ""
7398
7399 #. type: =item
7400 #: ../fish/guestfish-actions.pod:1757 ../src/guestfs-actions.pod:2634
7401 msgid "\"gentoo\""
7402 msgstr ""
7403
7404 #. type: textblock
7405 #: ../fish/guestfish-actions.pod:1759 ../src/guestfs-actions.pod:2636
7406 msgid "Gentoo."
7407 msgstr ""
7408
7409 #. type: =item
7410 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
7411 msgid "\"linuxmint\""
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2640
7416 msgid "Linux Mint."
7417 msgstr ""
7418
7419 #. type: =item
7420 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2642
7421 msgid "\"mandriva\""
7422 msgstr ""
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2644
7426 msgid "Mandriva."
7427 msgstr ""
7428
7429 #. type: =item
7430 #: ../fish/guestfish-actions.pod:1769 ../src/guestfs-actions.pod:2646
7431 msgid "\"meego\""
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:1771 ../src/guestfs-actions.pod:2648
7436 msgid "MeeGo."
7437 msgstr ""
7438
7439 #. type: =item
7440 #: ../fish/guestfish-actions.pod:1773 ../src/guestfs-actions.pod:2650
7441 msgid "\"pardus\""
7442 msgstr ""
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2652
7446 msgid "Pardus."
7447 msgstr ""
7448
7449 #. type: =item
7450 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2654
7451 msgid "\"redhat-based\""
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:1779 ../src/guestfs-actions.pod:2656
7456 msgid "Some Red Hat-derived distro."
7457 msgstr ""
7458
7459 #. type: =item
7460 #: ../fish/guestfish-actions.pod:1781 ../src/guestfs-actions.pod:2658
7461 msgid "\"rhel\""
7462 msgstr ""
7463
7464 #. type: textblock
7465 #: ../fish/guestfish-actions.pod:1783 ../src/guestfs-actions.pod:2660
7466 msgid "Red Hat Enterprise Linux."
7467 msgstr ""
7468
7469 #. type: =item
7470 #: ../fish/guestfish-actions.pod:1785 ../src/guestfs-actions.pod:2662
7471 msgid "\"scientificlinux\""
7472 msgstr ""
7473
7474 #. type: textblock
7475 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2664
7476 msgid "Scientific Linux."
7477 msgstr ""
7478
7479 #. type: =item
7480 #: ../fish/guestfish-actions.pod:1789 ../src/guestfs-actions.pod:2666
7481 msgid "\"slackware\""
7482 msgstr ""
7483
7484 #. type: textblock
7485 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2668
7486 msgid "Slackware."
7487 msgstr ""
7488
7489 #. type: =item
7490 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2670
7491 msgid "\"ubuntu\""
7492 msgstr ""
7493
7494 #. type: textblock
7495 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2672
7496 msgid "Ubuntu."
7497 msgstr ""
7498
7499 #. type: =item
7500 #: ../fish/guestfish-actions.pod:1797 ../fish/guestfish-actions.pod:1881 ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:2674 ../src/guestfs-actions.pod:2783 ../src/guestfs-actions.pod:3158
7501 msgid "\"unknown\""
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../fish/guestfish-actions.pod:1799 ../src/guestfs-actions.pod:2676
7506 msgid "The distro could not be determined."
7507 msgstr ""
7508
7509 #. type: =item
7510 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:2137 ../src/guestfs-actions.pod:2678 ../src/guestfs-actions.pod:3150
7511 msgid "\"windows\""
7512 msgstr ""
7513
7514 #. type: textblock
7515 #: ../fish/guestfish-actions.pod:1803 ../src/guestfs-actions.pod:2680
7516 msgid ""
7517 "Windows does not have distributions.  This string is returned if the OS type "
7518 "is Windows."
7519 msgstr ""
7520
7521 #. type: textblock
7522 #: ../fish/guestfish-actions.pod:1808 ../fish/guestfish-actions.pod:1887 ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:2789 ../src/guestfs-actions.pod:3164
7523 msgid ""
7524 "Future versions of libguestfs may return other strings here.  The caller "
7525 "should be prepared to handle any string."
7526 msgstr ""
7527
7528 #. type: =head2
7529 #: ../fish/guestfish-actions.pod:1813
7530 msgid "inspect-get-drive-mappings"
7531 msgstr ""
7532
7533 #. type: verbatim
7534 #: ../fish/guestfish-actions.pod:1815
7535 #, no-wrap
7536 msgid ""
7537 " inspect-get-drive-mappings root\n"
7538 "\n"
7539 msgstr ""
7540
7541 #. type: textblock
7542 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2701
7543 msgid ""
7544 "This call is useful for Windows which uses a primitive system of assigning "
7545 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
7546 "Windows Registry to find out how disks/partitions are mapped to drive "
7547 "letters, and returns a hash table as in the example below:"
7548 msgstr ""
7549
7550 #. type: verbatim
7551 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2707
7552 #, no-wrap
7553 msgid ""
7554 " C      =>     /dev/vda2\n"
7555 " E      =>     /dev/vdb1\n"
7556 " F      =>     /dev/vdc1\n"
7557 "\n"
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2711
7562 msgid ""
7563 "Note that keys are drive letters.  For Windows, the key is case insensitive "
7564 "and just contains the drive letter, without the customary colon separator "
7565 "character."
7566 msgstr ""
7567
7568 #. type: textblock
7569 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2715
7570 msgid ""
7571 "In future we may support other operating systems that also used drive "
7572 "letters, but the keys for those might not be case insensitive and might be "
7573 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
7574 "C<h1> etc."
7575 msgstr ""
7576
7577 #. type: textblock
7578 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
7579 msgid ""
7580 "For Windows guests, currently only hard drive mappings are returned.  "
7581 "Removable disks (eg. DVD-ROMs) are ignored."
7582 msgstr ""
7583
7584 #. type: textblock
7585 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2723
7586 msgid ""
7587 "For guests that do not use drive mappings, or if the drive mappings could "
7588 "not be determined, this returns an empty hash table."
7589 msgstr ""
7590
7591 #. type: textblock
7592 #: ../fish/guestfish-actions.pod:1842
7593 msgid ""
7594 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7595 "L</inspect-get-mountpoints>, L</inspect-get-filesystems>."
7596 msgstr ""
7597
7598 #. type: =head2
7599 #: ../fish/guestfish-actions.pod:1846
7600 msgid "inspect-get-filesystems"
7601 msgstr ""
7602
7603 #. type: verbatim
7604 #: ../fish/guestfish-actions.pod:1848
7605 #, no-wrap
7606 msgid ""
7607 " inspect-get-filesystems root\n"
7608 "\n"
7609 msgstr ""
7610
7611 #. type: textblock
7612 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2744
7613 msgid ""
7614 "This returns a list of all the filesystems that we think are associated with "
7615 "this operating system.  This includes the root filesystem, other ordinary "
7616 "filesystems, and non-mounted devices like swap partitions."
7617 msgstr ""
7618
7619 #. type: textblock
7620 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
7621 msgid ""
7622 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
7623 "to be shared between operating systems."
7624 msgstr ""
7625
7626 #. type: textblock
7627 #: ../fish/guestfish-actions.pod:1858
7628 msgid ""
7629 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7630 "L</inspect-get-mountpoints>."
7631 msgstr ""
7632
7633 #. type: =head2
7634 #: ../fish/guestfish-actions.pod:1861
7635 msgid "inspect-get-format"
7636 msgstr ""
7637
7638 #. type: verbatim
7639 #: ../fish/guestfish-actions.pod:1863
7640 #, no-wrap
7641 msgid ""
7642 " inspect-get-format root\n"
7643 "\n"
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2767
7648 msgid ""
7649 "This returns the format of the inspected operating system.  You can use it "
7650 "to detect install images, live CDs and similar."
7651 msgstr ""
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2770
7655 msgid "Currently defined formats are:"
7656 msgstr ""
7657
7658 #. type: =item
7659 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2774
7660 msgid "\"installed\""
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2776
7665 msgid "This is an installed operating system."
7666 msgstr ""
7667
7668 #. type: =item
7669 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2778
7670 msgid "\"installer\""
7671 msgstr ""
7672
7673 #. type: textblock
7674 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2780
7675 msgid ""
7676 "The disk image being inspected is not an installed operating system, but a "
7677 "I<bootable> install disk, live CD, or similar."
7678 msgstr ""
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
7682 msgid "The format of this disk image is not known."
7683 msgstr ""
7684
7685 #. type: =head2
7686 #: ../fish/guestfish-actions.pod:1892
7687 msgid "inspect-get-hostname"
7688 msgstr ""
7689
7690 #. type: verbatim
7691 #: ../fish/guestfish-actions.pod:1894
7692 #, no-wrap
7693 msgid ""
7694 " inspect-get-hostname root\n"
7695 "\n"
7696 msgstr ""
7697
7698 #. type: textblock
7699 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2805
7700 msgid ""
7701 "This function returns the hostname of the operating system as found by "
7702 "inspection of the guest's configuration files."
7703 msgstr ""
7704
7705 #. type: textblock
7706 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2808
7707 msgid ""
7708 "If the hostname could not be determined, then the string C<unknown> is "
7709 "returned."
7710 msgstr ""
7711
7712 #. type: =head2
7713 #: ../fish/guestfish-actions.pod:1904
7714 msgid "inspect-get-icon"
7715 msgstr ""
7716
7717 #. type: verbatim
7718 #: ../fish/guestfish-actions.pod:1906
7719 #, no-wrap
7720 msgid ""
7721 " inspect-get-icon root [favicon:..] [highquality:..]\n"
7722 "\n"
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2834
7727 msgid ""
7728 "This function returns an icon corresponding to the inspected operating "
7729 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
7730 "to PNG if necessary)."
7731 msgstr ""
7732
7733 #. type: textblock
7734 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2838
7735 msgid ""
7736 "If it was not possible to get an icon this function returns a zero-length "
7737 "(non-NULL) buffer.  I<Callers must check for this case>."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:1915 ../src/guestfs-actions.pod:2841
7742 msgid ""
7743 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
7744 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
7745 "this file will be returned.  You can disable favicons by passing the "
7746 "optional C<favicon> boolean as false (default is true)."
7747 msgstr ""
7748
7749 #. type: textblock
7750 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2847
7751 msgid ""
7752 "If finding the favicon fails, then we look in other places in the guest for "
7753 "a suitable icon."
7754 msgstr ""
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2850
7758 msgid ""
7759 "If the optional C<highquality> boolean is true then only high quality icons "
7760 "are returned, which means only icons of high resolution with an alpha "
7761 "channel.  The default (false) is to return any icon we can, even if it is of "
7762 "substandard quality."
7763 msgstr ""
7764
7765 #. type: textblock
7766 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2861
7767 msgid ""
7768 "Unlike most other inspection API calls, the guest's disks must be mounted up "
7769 "before you call this, since it needs to read information from the guest "
7770 "filesystem during the call."
7771 msgstr ""
7772
7773 #. type: textblock
7774 #: ../fish/guestfish-actions.pod:1941 ../src/guestfs-actions.pod:2867
7775 msgid ""
7776 "B<Security:> The icon data comes from the untrusted guest, and should be "
7777 "treated with caution.  PNG files have been known to contain exploits.  "
7778 "Ensure that libpng (or other relevant libraries) are fully up to date before "
7779 "trying to process or display the icon."
7780 msgstr ""
7781
7782 #. type: textblock
7783 #: ../fish/guestfish-actions.pod:1949 ../src/guestfs-actions.pod:2875
7784 msgid ""
7785 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
7786 "tries to return the largest, highest quality icon available.  The "
7787 "application must scale the icon to the required size."
7788 msgstr ""
7789
7790 #. type: textblock
7791 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:2882
7792 msgid ""
7793 "Extracting icons from Windows guests requires the external C<wrestool> "
7794 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
7795 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
7796 "installed separately."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2889
7801 msgid ""
7802 "Operating system icons are usually trademarks.  Seek legal advice before "
7803 "using trademarks in applications."
7804 msgstr ""
7805
7806 #. type: =head2
7807 #: ../fish/guestfish-actions.pod:1970
7808 msgid "inspect-get-major-version"
7809 msgstr ""
7810
7811 #. type: verbatim
7812 #: ../fish/guestfish-actions.pod:1972
7813 #, no-wrap
7814 msgid ""
7815 " inspect-get-major-version root\n"
7816 "\n"
7817 msgstr ""
7818
7819 #. type: textblock
7820 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:2930
7821 msgid "This returns the major version number of the inspected operating system."
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1977 ../src/guestfs-actions.pod:2933
7826 msgid ""
7827 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
7828 "popular public names used by the operating system.  Notably the operating "
7829 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
7830 "1).  You can find out the real versions corresponding to releases of Windows "
7831 "by consulting Wikipedia or MSDN."
7832 msgstr ""
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1984 ../fish/guestfish-actions.pod:1995 ../src/guestfs-actions.pod:2940 ../src/guestfs-actions.pod:2957
7836 msgid "If the version could not be determined, then C<0> is returned."
7837 msgstr ""
7838
7839 #. type: =head2
7840 #: ../fish/guestfish-actions.pod:1988
7841 msgid "inspect-get-minor-version"
7842 msgstr ""
7843
7844 #. type: verbatim
7845 #: ../fish/guestfish-actions.pod:1990
7846 #, no-wrap
7847 msgid ""
7848 " inspect-get-minor-version root\n"
7849 "\n"
7850 msgstr ""
7851
7852 #. type: textblock
7853 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:2954
7854 msgid "This returns the minor version number of the inspected operating system."
7855 msgstr ""
7856
7857 #. type: textblock
7858 #: ../fish/guestfish-actions.pod:1997
7859 msgid ""
7860 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7861 "L</inspect-get-major-version>."
7862 msgstr ""
7863
7864 #. type: =head2
7865 #: ../fish/guestfish-actions.pod:2000
7866 msgid "inspect-get-mountpoints"
7867 msgstr ""
7868
7869 #. type: verbatim
7870 #: ../fish/guestfish-actions.pod:2002
7871 #, no-wrap
7872 msgid ""
7873 " inspect-get-mountpoints root\n"
7874 "\n"
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../fish/guestfish-actions.pod:2004 ../src/guestfs-actions.pod:2972
7879 msgid ""
7880 "This returns a hash of where we think the filesystems associated with this "
7881 "operating system should be mounted.  Callers should note that this is at "
7882 "best an educated guess made by reading configuration files such as "
7883 "C</etc/fstab>.  I<In particular note> that this may return filesystems which "
7884 "are non-existent or not mountable and callers should be prepared to handle "
7885 "or ignore failures if they try to mount them."
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:2981
7890 msgid ""
7891 "Each element in the returned hashtable has a key which is the path of the "
7892 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
7893 "mounted there (eg. C</dev/sda1>)."
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
7898 msgid "Non-mounted devices such as swap devices are I<not> returned in this list."
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:2021
7903 msgid ""
7904 "For operating systems like Windows which still use drive letters, this call "
7905 "will only return an entry for the first drive \"mounted on\" C</>.  For "
7906 "information about the mapping of drive letters to partitions, see "
7907 "L</inspect-get-drive-mappings>."
7908 msgstr ""
7909
7910 #. type: textblock
7911 #: ../fish/guestfish-actions.pod:2027
7912 msgid ""
7913 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
7914 "L</inspect-get-filesystems>."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../fish/guestfish-actions.pod:2030
7919 msgid "inspect-get-package-format"
7920 msgstr ""
7921
7922 #. type: verbatim
7923 #: ../fish/guestfish-actions.pod:2032
7924 #, no-wrap
7925 msgid ""
7926 " inspect-get-package-format root\n"
7927 "\n"
7928 msgstr ""
7929
7930 #. type: textblock
7931 #: ../fish/guestfish-actions.pod:2034
7932 msgid ""
7933 "This function and L</inspect-get-package-management> return the package "
7934 "format and package management tool used by the inspected operating system.  "
7935 "For example for Fedora these functions would return C<rpm> (package format) "
7936 "and C<yum> (package management)."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:2040 ../src/guestfs-actions.pod:3018
7941 msgid ""
7942 "This returns the string C<unknown> if we could not determine the package "
7943 "format I<or> if the operating system does not have a real packaging system "
7944 "(eg. Windows)."
7945 msgstr ""
7946
7947 #. type: textblock
7948 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3022
7949 msgid ""
7950 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
7951 "Future versions of libguestfs may return other strings."
7952 msgstr ""
7953
7954 #. type: =head2
7955 #: ../fish/guestfish-actions.pod:2049
7956 msgid "inspect-get-package-management"
7957 msgstr ""
7958
7959 #. type: verbatim
7960 #: ../fish/guestfish-actions.pod:2051
7961 #, no-wrap
7962 msgid ""
7963 " inspect-get-package-management root\n"
7964 "\n"
7965 msgstr ""
7966
7967 #. type: textblock
7968 #: ../fish/guestfish-actions.pod:2053
7969 msgid ""
7970 "L</inspect-get-package-format> and this function return the package format "
7971 "and package management tool used by the inspected operating system.  For "
7972 "example for Fedora these functions would return C<rpm> (package format) and "
7973 "C<yum> (package management)."
7974 msgstr ""
7975
7976 #. type: textblock
7977 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3044
7978 msgid ""
7979 "This returns the string C<unknown> if we could not determine the package "
7980 "management tool I<or> if the operating system does not have a real packaging "
7981 "system (eg. Windows)."
7982 msgstr ""
7983
7984 #. type: textblock
7985 #: ../fish/guestfish-actions.pod:2063 ../src/guestfs-actions.pod:3048
7986 msgid ""
7987 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
7988 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
7989 "libguestfs may return other strings."
7990 msgstr ""
7991
7992 #. type: =head2
7993 #: ../fish/guestfish-actions.pod:2070
7994 msgid "inspect-get-product-name"
7995 msgstr ""
7996
7997 #. type: verbatim
7998 #: ../fish/guestfish-actions.pod:2072
7999 #, no-wrap
8000 msgid ""
8001 " inspect-get-product-name root\n"
8002 "\n"
8003 msgstr ""
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:2074 ../src/guestfs-actions.pod:3066
8007 msgid ""
8008 "This returns the product name of the inspected operating system.  The "
8009 "product name is generally some freeform string which can be displayed to the "
8010 "user, but should not be parsed by programs."
8011 msgstr ""
8012
8013 #. type: textblock
8014 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
8015 msgid ""
8016 "If the product name could not be determined, then the string C<unknown> is "
8017 "returned."
8018 msgstr ""
8019
8020 #. type: =head2
8021 #: ../fish/guestfish-actions.pod:2084
8022 msgid "inspect-get-product-variant"
8023 msgstr ""
8024
8025 #. type: verbatim
8026 #: ../fish/guestfish-actions.pod:2086
8027 #, no-wrap
8028 msgid ""
8029 " inspect-get-product-variant root\n"
8030 "\n"
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:2088 ../src/guestfs-actions.pod:3087
8035 msgid "This returns the product variant of the inspected operating system."
8036 msgstr ""
8037
8038 #. type: textblock
8039 #: ../fish/guestfish-actions.pod:2091 ../src/guestfs-actions.pod:3090
8040 msgid ""
8041 "For Windows guests, this returns the contents of the Registry key "
8042 "C<HKLM\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> "
8043 "which is usually a string such as C<Client> or C<Server> (other values are "
8044 "possible).  This can be used to distinguish consumer and enterprise versions "
8045 "of Windows that have the same version number (for example, Windows 7 and "
8046 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
8047 "the latter is C<Server>)."
8048 msgstr ""
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:2100 ../src/guestfs-actions.pod:3099
8052 msgid ""
8053 "For enterprise Linux guests, in future we intend this to return the product "
8054 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
8055 "implemented at present."
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:2104 ../src/guestfs-actions.pod:3103
8060 msgid ""
8061 "If the product variant could not be determined, then the string C<unknown> "
8062 "is returned."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:2107
8067 msgid ""
8068 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
8069 "L</inspect-get-product-name>, L</inspect-get-major-version>."
8070 msgstr ""
8071
8072 #. type: =head2
8073 #: ../fish/guestfish-actions.pod:2111
8074 msgid "inspect-get-roots"
8075 msgstr ""
8076
8077 #. type: verbatim
8078 #: ../fish/guestfish-actions.pod:2113
8079 #, no-wrap
8080 msgid ""
8081 " inspect-get-roots\n"
8082 "\n"
8083 msgstr ""
8084
8085 #. type: textblock
8086 #: ../fish/guestfish-actions.pod:2115
8087 msgid ""
8088 "This function is a convenient way to get the list of root devices, as "
8089 "returned from a previous call to L</inspect-os>, but without redoing the "
8090 "whole inspection process."
8091 msgstr ""
8092
8093 #. type: textblock
8094 #: ../fish/guestfish-actions.pod:2119
8095 msgid ""
8096 "This returns an empty list if either no root devices were found or the "
8097 "caller has not called L</inspect-os>."
8098 msgstr ""
8099
8100 #. type: =head2
8101 #: ../fish/guestfish-actions.pod:2124
8102 msgid "inspect-get-type"
8103 msgstr ""
8104
8105 #. type: verbatim
8106 #: ../fish/guestfish-actions.pod:2126
8107 #, no-wrap
8108 msgid ""
8109 " inspect-get-type root\n"
8110 "\n"
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:2128 ../src/guestfs-actions.pod:3141
8115 msgid ""
8116 "This returns the type of the inspected operating system.  Currently defined "
8117 "types are:"
8118 msgstr ""
8119
8120 #. type: =item
8121 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
8122 msgid "\"linux\""
8123 msgstr ""
8124
8125 #. type: textblock
8126 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3148
8127 msgid "Any Linux-based operating system."
8128 msgstr ""
8129
8130 #. type: textblock
8131 #: ../fish/guestfish-actions.pod:2139 ../src/guestfs-actions.pod:3152
8132 msgid "Any Microsoft Windows operating system."
8133 msgstr ""
8134
8135 #. type: =item
8136 #: ../fish/guestfish-actions.pod:2141 ../src/guestfs-actions.pod:3154
8137 msgid "\"freebsd\""
8138 msgstr ""
8139
8140 #. type: textblock
8141 #: ../fish/guestfish-actions.pod:2143 ../src/guestfs-actions.pod:3156
8142 msgid "FreeBSD."
8143 msgstr ""
8144
8145 #. type: textblock
8146 #: ../fish/guestfish-actions.pod:2147 ../src/guestfs-actions.pod:3160
8147 msgid "The operating system type could not be determined."
8148 msgstr ""
8149
8150 #. type: =head2
8151 #: ../fish/guestfish-actions.pod:2156
8152 msgid "inspect-get-windows-current-control-set"
8153 msgstr ""
8154
8155 #. type: verbatim
8156 #: ../fish/guestfish-actions.pod:2158
8157 #, no-wrap
8158 msgid ""
8159 " inspect-get-windows-current-control-set root\n"
8160 "\n"
8161 msgstr ""
8162
8163 #. type: textblock
8164 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3180
8165 msgid ""
8166 "This returns the Windows CurrentControlSet of the inspected guest.  The "
8167 "CurrentControlSet is a registry key name such as C<ControlSet001>."
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3183
8172 msgid ""
8173 "This call assumes that the guest is Windows and that the Registry could be "
8174 "examined by inspection.  If this is not the case then an error is returned."
8175 msgstr ""
8176
8177 #. type: =head2
8178 #: ../fish/guestfish-actions.pod:2169
8179 msgid "inspect-get-windows-systemroot"
8180 msgstr ""
8181
8182 #. type: verbatim
8183 #: ../fish/guestfish-actions.pod:2171
8184 #, no-wrap
8185 msgid ""
8186 " inspect-get-windows-systemroot root\n"
8187 "\n"
8188 msgstr ""
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:2173 ../src/guestfs-actions.pod:3200
8192 msgid ""
8193 "This returns the Windows systemroot of the inspected guest.  The systemroot "
8194 "is a directory path such as C</WINDOWS>."
8195 msgstr ""
8196
8197 #. type: textblock
8198 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3203
8199 msgid ""
8200 "This call assumes that the guest is Windows and that the systemroot could be "
8201 "determined by inspection.  If this is not the case then an error is "
8202 "returned."
8203 msgstr ""
8204
8205 #. type: =head2
8206 #: ../fish/guestfish-actions.pod:2182
8207 msgid "inspect-is-live"
8208 msgstr ""
8209
8210 #. type: verbatim
8211 #: ../fish/guestfish-actions.pod:2184
8212 #, no-wrap
8213 msgid ""
8214 " inspect-is-live root\n"
8215 "\n"
8216 msgstr ""
8217
8218 #. type: textblock
8219 #: ../fish/guestfish-actions.pod:2186
8220 msgid ""
8221 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8222 "then this returns true if a live image was detected on the disk."
8223 msgstr ""
8224
8225 #. type: =head2
8226 #: ../fish/guestfish-actions.pod:2192
8227 msgid "inspect-is-multipart"
8228 msgstr ""
8229
8230 #. type: verbatim
8231 #: ../fish/guestfish-actions.pod:2194
8232 #, no-wrap
8233 msgid ""
8234 " inspect-is-multipart root\n"
8235 "\n"
8236 msgstr ""
8237
8238 #. type: textblock
8239 #: ../fish/guestfish-actions.pod:2196
8240 msgid ""
8241 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8242 "then this returns true if the disk is part of a set."
8243 msgstr ""
8244
8245 #. type: =head2
8246 #: ../fish/guestfish-actions.pod:2202
8247 msgid "inspect-is-netinst"
8248 msgstr ""
8249
8250 #. type: verbatim
8251 #: ../fish/guestfish-actions.pod:2204
8252 #, no-wrap
8253 msgid ""
8254 " inspect-is-netinst root\n"
8255 "\n"
8256 msgstr ""
8257
8258 #. type: textblock
8259 #: ../fish/guestfish-actions.pod:2206
8260 msgid ""
8261 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
8262 "then this returns true if the disk is a network installer, ie. not a "
8263 "self-contained install CD but one which is likely to require network access "
8264 "to complete the install."
8265 msgstr ""
8266
8267 #. type: =head2
8268 #: ../fish/guestfish-actions.pod:2214
8269 msgid "inspect-list-applications"
8270 msgstr ""
8271
8272 #. type: verbatim
8273 #: ../fish/guestfish-actions.pod:2216
8274 #, no-wrap
8275 msgid ""
8276 " inspect-list-applications root\n"
8277 "\n"
8278 msgstr ""
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:2218 ../src/guestfs-actions.pod:3270
8282 msgid "Return the list of applications installed in the operating system."
8283 msgstr ""
8284
8285 #. type: textblock
8286 #: ../fish/guestfish-actions.pod:2220
8287 msgid ""
8288 "I<Note:> This call works differently from other parts of the inspection "
8289 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
8290 "then mount up the disks, before calling this.  Listing applications is a "
8291 "significantly more difficult operation which requires access to the full "
8292 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
8293 "are just returning data cached in the libguestfs handle, this call actually "
8294 "reads parts of the mounted filesystems during the call."
8295 msgstr ""
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:2230 ../src/guestfs-actions.pod:3282
8299 msgid ""
8300 "This returns an empty list if the inspection code was not able to determine "
8301 "the list of applications."
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3285
8306 msgid "The application structure contains the following fields:"
8307 msgstr ""
8308
8309 #. type: =item
8310 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3289
8311 msgid "C<app_name>"
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:2239 ../src/guestfs-actions.pod:3291
8316 msgid ""
8317 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
8318 "guests, this is the package name."
8319 msgstr ""
8320
8321 #. type: =item
8322 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
8323 msgid "C<app_display_name>"
8324 msgstr ""
8325
8326 #. type: textblock
8327 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
8328 msgid ""
8329 "The display name of the application, sometimes localized to the install "
8330 "language of the guest operating system."
8331 msgstr ""
8332
8333 #. type: textblock
8334 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
8335 msgid ""
8336 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
8337 "to display something can use C<app_name> instead."
8338 msgstr ""
8339
8340 #. type: =item
8341 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3302
8342 msgid "C<app_epoch>"
8343 msgstr ""
8344
8345 #. type: textblock
8346 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
8347 msgid ""
8348 "For package managers which use epochs, this contains the epoch of the "
8349 "package (an integer).  If unavailable, this is returned as C<0>."
8350 msgstr ""
8351
8352 #. type: =item
8353 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
8354 msgid "C<app_version>"
8355 msgstr ""
8356
8357 #. type: textblock
8358 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
8359 msgid ""
8360 "The version string of the application or package.  If unavailable this is "
8361 "returned as an empty string C<\"\">."
8362 msgstr ""
8363
8364 #. type: =item
8365 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
8366 msgid "C<app_release>"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
8371 msgid ""
8372 "The release string of the application or package, for package managers that "
8373 "use this.  If unavailable this is returned as an empty string C<\"\">."
8374 msgstr ""
8375
8376 #. type: =item
8377 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3318
8378 msgid "C<app_install_path>"
8379 msgstr ""
8380
8381 #. type: textblock
8382 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
8383 msgid ""
8384 "The installation path of the application (on operating systems such as "
8385 "Windows which use installation paths).  This path is in the format used by "
8386 "the guest operating system, it is not a libguestfs path."
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
8391 msgid "If unavailable this is returned as an empty string C<\"\">."
8392 msgstr ""
8393
8394 #. type: =item
8395 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
8396 msgid "C<app_trans_path>"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:2277 ../src/guestfs-actions.pod:3329
8401 msgid ""
8402 "The install path translated into a libguestfs path.  If unavailable this is "
8403 "returned as an empty string C<\"\">."
8404 msgstr ""
8405
8406 #. type: =item
8407 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
8408 msgid "C<app_publisher>"
8409 msgstr ""
8410
8411 #. type: textblock
8412 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
8413 msgid ""
8414 "The name of the publisher of the application, for package managers that use "
8415 "this.  If unavailable this is returned as an empty string C<\"\">."
8416 msgstr ""
8417
8418 #. type: =item
8419 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
8420 msgid "C<app_url>"
8421 msgstr ""
8422
8423 #. type: textblock
8424 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
8425 msgid ""
8426 "The URL (eg. upstream URL) of the application.  If unavailable this is "
8427 "returned as an empty string C<\"\">."
8428 msgstr ""
8429
8430 #. type: =item
8431 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
8432 msgid "C<app_source_package>"
8433 msgstr ""
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
8437 msgid ""
8438 "For packaging systems which support this, the name of the source package.  "
8439 "If unavailable this is returned as an empty string C<\"\">."
8440 msgstr ""
8441
8442 #. type: =item
8443 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
8444 msgid "C<app_summary>"
8445 msgstr ""
8446
8447 #. type: textblock
8448 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
8449 msgid ""
8450 "A short (usually one line) description of the application or package.  If "
8451 "unavailable this is returned as an empty string C<\"\">."
8452 msgstr ""
8453
8454 #. type: =item
8455 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
8456 msgid "C<app_description>"
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
8461 msgid ""
8462 "A longer description of the application or package.  If unavailable this is "
8463 "returned as an empty string C<\"\">."
8464 msgstr ""
8465
8466 #. type: =head2
8467 #: ../fish/guestfish-actions.pod:2310
8468 msgid "inspect-os"
8469 msgstr ""
8470
8471 #. type: verbatim
8472 #: ../fish/guestfish-actions.pod:2312
8473 #, no-wrap
8474 msgid ""
8475 " inspect-os\n"
8476 "\n"
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3373
8481 msgid ""
8482 "This function uses other libguestfs functions and certain heuristics to "
8483 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
8484 "for operating systems."
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:2318 ../src/guestfs-actions.pod:3377
8489 msgid "The list returned is empty if no operating systems were found."
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3379
8494 msgid ""
8495 "If one operating system was found, then this returns a list with a single "
8496 "element, which is the name of the root filesystem of this operating system.  "
8497 "It is also possible for this function to return a list containing more than "
8498 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
8499 "element being the root filesystem of one of the operating systems."
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../fish/guestfish-actions.pod:2327
8504 msgid ""
8505 "You can pass the root string(s) returned to other L</inspect-get-*> "
8506 "functions in order to query further information about each operating system, "
8507 "such as the name and version."
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:2332
8512 msgid ""
8513 "This function uses other libguestfs features such as L</mount-ro> and "
8514 "L</umount-all> in order to mount and unmount filesystems and look at the "
8515 "contents.  This should be called with no disks currently mounted.  The "
8516 "function may also use Augeas, so any existing Augeas handle will be closed."
8517 msgstr ""
8518
8519 #. type: textblock
8520 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3397
8521 msgid ""
8522 "This function cannot decrypt encrypted disks.  The caller must do that first "
8523 "(supplying the necessary keys) if the disk is encrypted."
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:2344 ../fish/guestfish-actions.pod:2542 ../fish/guestfish-actions.pod:2601
8528 msgid "See also L</list-filesystems>."
8529 msgstr ""
8530
8531 #. type: =head2
8532 #: ../fish/guestfish-actions.pod:2346
8533 msgid "is-blockdev"
8534 msgstr ""
8535
8536 #. type: verbatim
8537 #: ../fish/guestfish-actions.pod:2348
8538 #, no-wrap
8539 msgid ""
8540 " is-blockdev path\n"
8541 "\n"
8542 msgstr ""
8543
8544 #. type: textblock
8545 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3417
8546 msgid ""
8547 "This returns C<true> if and only if there is a block device with the given "
8548 "C<path> name."
8549 msgstr ""
8550
8551 #. type: textblock
8552 #: ../fish/guestfish-actions.pod:2353 ../fish/guestfish-actions.pod:2371 ../fish/guestfish-actions.pod:2390 ../fish/guestfish-actions.pod:2399 ../fish/guestfish-actions.pod:2409 ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2452
8553 msgid "See also L</stat>."
8554 msgstr ""
8555
8556 #. type: =head2
8557 #: ../fish/guestfish-actions.pod:2355
8558 msgid "is-busy"
8559 msgstr ""
8560
8561 #. type: verbatim
8562 #: ../fish/guestfish-actions.pod:2357
8563 #, no-wrap
8564 msgid ""
8565 " is-busy\n"
8566 "\n"
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3431
8571 msgid ""
8572 "This returns true iff this handle is busy processing a command (in the "
8573 "C<BUSY> state)."
8574 msgstr ""
8575
8576 #. type: =head2
8577 #: ../fish/guestfish-actions.pod:2364
8578 msgid "is-chardev"
8579 msgstr ""
8580
8581 #. type: verbatim
8582 #: ../fish/guestfish-actions.pod:2366
8583 #, no-wrap
8584 msgid ""
8585 " is-chardev path\n"
8586 "\n"
8587 msgstr ""
8588
8589 #. type: textblock
8590 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3446
8591 msgid ""
8592 "This returns C<true> if and only if there is a character device with the "
8593 "given C<path> name."
8594 msgstr ""
8595
8596 #. type: =head2
8597 #: ../fish/guestfish-actions.pod:2373
8598 msgid "is-config"
8599 msgstr ""
8600
8601 #. type: verbatim
8602 #: ../fish/guestfish-actions.pod:2375
8603 #, no-wrap
8604 msgid ""
8605 " is-config\n"
8606 "\n"
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:2377 ../src/guestfs-actions.pod:3460
8611 msgid ""
8612 "This returns true iff this handle is being configured (in the C<CONFIG> "
8613 "state)."
8614 msgstr ""
8615
8616 #. type: =head2
8617 #: ../fish/guestfish-actions.pod:2382
8618 msgid "is-dir"
8619 msgstr ""
8620
8621 #. type: verbatim
8622 #: ../fish/guestfish-actions.pod:2384
8623 #, no-wrap
8624 msgid ""
8625 " is-dir path\n"
8626 "\n"
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3475
8631 msgid ""
8632 "This returns C<true> if and only if there is a directory with the given "
8633 "C<path> name.  Note that it returns false for other objects like files."
8634 msgstr ""
8635
8636 #. type: =head2
8637 #: ../fish/guestfish-actions.pod:2392
8638 msgid "is-fifo"
8639 msgstr ""
8640
8641 #. type: verbatim
8642 #: ../fish/guestfish-actions.pod:2394
8643 #, no-wrap
8644 msgid ""
8645 " is-fifo path\n"
8646 "\n"
8647 msgstr ""
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:2396 ../src/guestfs-actions.pod:3491
8651 msgid ""
8652 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
8653 "given C<path> name."
8654 msgstr ""
8655
8656 #. type: =head2
8657 #: ../fish/guestfish-actions.pod:2401
8658 msgid "is-file"
8659 msgstr ""
8660
8661 #. type: verbatim
8662 #: ../fish/guestfish-actions.pod:2403
8663 #, no-wrap
8664 msgid ""
8665 " is-file path\n"
8666 "\n"
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:2405 ../src/guestfs-actions.pod:3506
8671 msgid ""
8672 "This returns C<true> if and only if there is a regular file with the given "
8673 "C<path> name.  Note that it returns false for other objects like "
8674 "directories."
8675 msgstr ""
8676
8677 #. type: =head2
8678 #: ../fish/guestfish-actions.pod:2411
8679 msgid "is-launching"
8680 msgstr ""
8681
8682 #. type: verbatim
8683 #: ../fish/guestfish-actions.pod:2413
8684 #, no-wrap
8685 msgid ""
8686 " is-launching\n"
8687 "\n"
8688 msgstr ""
8689
8690 #. type: textblock
8691 #: ../fish/guestfish-actions.pod:2415 ../src/guestfs-actions.pod:3521
8692 msgid ""
8693 "This returns true iff this handle is launching the subprocess (in the "
8694 "C<LAUNCHING> state)."
8695 msgstr ""
8696
8697 #. type: =head2
8698 #: ../fish/guestfish-actions.pod:2420
8699 msgid "is-lv"
8700 msgstr ""
8701
8702 #. type: verbatim
8703 #: ../fish/guestfish-actions.pod:2422
8704 #, no-wrap
8705 msgid ""
8706 " is-lv device\n"
8707 "\n"
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:2424 ../src/guestfs-actions.pod:3536
8712 msgid ""
8713 "This command tests whether C<device> is a logical volume, and returns true "
8714 "iff this is the case."
8715 msgstr ""
8716
8717 #. type: =head2
8718 #: ../fish/guestfish-actions.pod:2427
8719 msgid "is-ready"
8720 msgstr ""
8721
8722 #. type: verbatim
8723 #: ../fish/guestfish-actions.pod:2429
8724 #, no-wrap
8725 msgid ""
8726 " is-ready\n"
8727 "\n"
8728 msgstr ""
8729
8730 #. type: textblock
8731 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3548
8732 msgid ""
8733 "This returns true iff this handle is ready to accept commands (in the "
8734 "C<READY> state)."
8735 msgstr ""
8736
8737 #. type: =head2
8738 #: ../fish/guestfish-actions.pod:2436
8739 msgid "is-socket"
8740 msgstr ""
8741
8742 #. type: verbatim
8743 #: ../fish/guestfish-actions.pod:2438
8744 #, no-wrap
8745 msgid ""
8746 " is-socket path\n"
8747 "\n"
8748 msgstr ""
8749
8750 #. type: textblock
8751 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3563
8752 msgid ""
8753 "This returns C<true> if and only if there is a Unix domain socket with the "
8754 "given C<path> name."
8755 msgstr ""
8756
8757 #. type: =head2
8758 #: ../fish/guestfish-actions.pod:2445
8759 msgid "is-symlink"
8760 msgstr ""
8761
8762 #. type: verbatim
8763 #: ../fish/guestfish-actions.pod:2447
8764 #, no-wrap
8765 msgid ""
8766 " is-symlink path\n"
8767 "\n"
8768 msgstr ""
8769
8770 #. type: textblock
8771 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3578
8772 msgid ""
8773 "This returns C<true> if and only if there is a symbolic link with the given "
8774 "C<path> name."
8775 msgstr ""
8776
8777 #. type: =head2
8778 #: ../fish/guestfish-actions.pod:2454
8779 msgid "is-zero"
8780 msgstr ""
8781
8782 #. type: verbatim
8783 #: ../fish/guestfish-actions.pod:2456
8784 #, no-wrap
8785 msgid ""
8786 " is-zero path\n"
8787 "\n"
8788 msgstr ""
8789
8790 #. type: textblock
8791 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3593
8792 msgid ""
8793 "This returns true iff the file exists and the file is empty or it contains "
8794 "all zero bytes."
8795 msgstr ""
8796
8797 #. type: =head2
8798 #: ../fish/guestfish-actions.pod:2461
8799 msgid "is-zero-device"
8800 msgstr ""
8801
8802 #. type: verbatim
8803 #: ../fish/guestfish-actions.pod:2463
8804 #, no-wrap
8805 msgid ""
8806 " is-zero-device device\n"
8807 "\n"
8808 msgstr ""
8809
8810 #. type: textblock
8811 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3606
8812 msgid "This returns true iff the device exists and contains all zero bytes."
8813 msgstr ""
8814
8815 #. type: textblock
8816 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3608
8817 msgid "Note that for large devices this can take a long time to run."
8818 msgstr ""
8819
8820 #. type: =head2
8821 #: ../fish/guestfish-actions.pod:2469
8822 msgid "kill-subprocess"
8823 msgstr ""
8824
8825 #. type: verbatim
8826 #: ../fish/guestfish-actions.pod:2471
8827 #, no-wrap
8828 msgid ""
8829 " kill-subprocess\n"
8830 "\n"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:2473 ../src/guestfs-actions.pod:3619
8835 msgid "This kills the qemu subprocess.  You should never need to call this."
8836 msgstr ""
8837
8838 #. type: =head2
8839 #: ../fish/guestfish-actions.pod:2475
8840 msgid "launch"
8841 msgstr ""
8842
8843 #. type: =head2
8844 #: ../fish/guestfish-actions.pod:2477
8845 msgid "run"
8846 msgstr ""
8847
8848 #. type: verbatim
8849 #: ../fish/guestfish-actions.pod:2479
8850 #, no-wrap
8851 msgid ""
8852 " launch\n"
8853 "\n"
8854 msgstr ""
8855
8856 #. type: textblock
8857 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3630
8858 msgid ""
8859 "Internally libguestfs is implemented by running a virtual machine using "
8860 "L<qemu(1)>."
8861 msgstr ""
8862
8863 #. type: textblock
8864 #: ../fish/guestfish-actions.pod:2484 ../src/guestfs-actions.pod:3633
8865 msgid ""
8866 "You should call this after configuring the handle (eg. adding drives) but "
8867 "before performing any actions."
8868 msgstr ""
8869
8870 #. type: =head2
8871 #: ../fish/guestfish-actions.pod:2487
8872 msgid "lchown"
8873 msgstr ""
8874
8875 #. type: verbatim
8876 #: ../fish/guestfish-actions.pod:2489
8877 #, no-wrap
8878 msgid ""
8879 " lchown owner group path\n"
8880 "\n"
8881 msgstr ""
8882
8883 #. type: textblock
8884 #: ../fish/guestfish-actions.pod:2491
8885 msgid ""
8886 "Change the file owner to C<owner> and group to C<group>.  This is like "
8887 "L</chown> but if C<path> is a symlink then the link itself is changed, not "
8888 "the target."
8889 msgstr ""
8890
8891 #. type: =head2
8892 #: ../fish/guestfish-actions.pod:2499
8893 msgid "lgetxattr"
8894 msgstr ""
8895
8896 #. type: verbatim
8897 #: ../fish/guestfish-actions.pod:2501
8898 #, no-wrap
8899 msgid ""
8900 " lgetxattr path name\n"
8901 "\n"
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3673
8906 msgid ""
8907 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
8908 "is a symlink, then this call returns an extended attribute from the symlink."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:2517
8913 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
8914 msgstr ""
8915
8916 #. type: =head2
8917 #: ../fish/guestfish-actions.pod:2519
8918 msgid "lgetxattrs"
8919 msgstr ""
8920
8921 #. type: verbatim
8922 #: ../fish/guestfish-actions.pod:2521
8923 #, no-wrap
8924 msgid ""
8925 " lgetxattrs path\n"
8926 "\n"
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:2523
8931 msgid ""
8932 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
8933 "it returns the extended attributes of the link itself."
8934 msgstr ""
8935
8936 #. type: =head2
8937 #: ../fish/guestfish-actions.pod:2527
8938 msgid "list-9p"
8939 msgstr ""
8940
8941 #. type: verbatim
8942 #: ../fish/guestfish-actions.pod:2529
8943 #, no-wrap
8944 msgid ""
8945 " list-9p\n"
8946 "\n"
8947 msgstr ""
8948
8949 #. type: textblock
8950 #: ../fish/guestfish-actions.pod:2531 ../src/guestfs-actions.pod:3716
8951 msgid ""
8952 "List all 9p filesystems attached to the guest.  A list of mount tags is "
8953 "returned."
8954 msgstr ""
8955
8956 #. type: =head2
8957 #: ../fish/guestfish-actions.pod:2534
8958 msgid "list-devices"
8959 msgstr ""
8960
8961 #. type: verbatim
8962 #: ../fish/guestfish-actions.pod:2536
8963 #, no-wrap
8964 msgid ""
8965 " list-devices\n"
8966 "\n"
8967 msgstr ""
8968
8969 #. type: textblock
8970 #: ../fish/guestfish-actions.pod:2538 ../src/guestfs-actions.pod:3730
8971 msgid "List all the block devices."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:2540 ../src/guestfs-actions.pod:3732
8976 msgid "The full block device names are returned, eg. C</dev/sda>."
8977 msgstr ""
8978
8979 #. type: =head2
8980 #: ../fish/guestfish-actions.pod:2544
8981 msgid "list-dm-devices"
8982 msgstr ""
8983
8984 #. type: verbatim
8985 #: ../fish/guestfish-actions.pod:2546
8986 #, no-wrap
8987 msgid ""
8988 " list-dm-devices\n"
8989 "\n"
8990 msgstr ""
8991
8992 #. type: textblock
8993 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3747
8994 msgid "List all device mapper devices."
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:2550
8999 msgid ""
9000 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
9001 "previous call to L</luks-open>."
9002 msgstr ""
9003
9004 #. type: textblock
9005 #: ../fish/guestfish-actions.pod:2553
9006 msgid ""
9007 "Device mapper devices which correspond to logical volumes are I<not> "
9008 "returned in this list.  Call L</lvs> if you want to list logical volumes."
9009 msgstr ""
9010
9011 #. type: =head2
9012 #: ../fish/guestfish-actions.pod:2557
9013 msgid "list-filesystems"
9014 msgstr ""
9015
9016 #. type: verbatim
9017 #: ../fish/guestfish-actions.pod:2559
9018 #, no-wrap
9019 msgid ""
9020 " list-filesystems\n"
9021 "\n"
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:2561 ../src/guestfs-actions.pod:3767
9026 msgid ""
9027 "This inspection command looks for filesystems on partitions, block devices "
9028 "and logical volumes, returning a list of devices containing filesystems and "
9029 "their type."
9030 msgstr ""
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:2565 ../src/guestfs-actions.pod:3771
9034 msgid ""
9035 "The return value is a hash, where the keys are the devices containing "
9036 "filesystems, and the values are the filesystem types.  For example:"
9037 msgstr ""
9038
9039 #. type: verbatim
9040 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3775
9041 #, no-wrap
9042 msgid ""
9043 " \"/dev/sda1\" => \"ntfs\"\n"
9044 " \"/dev/sda2\" => \"ext2\"\n"
9045 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
9046 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
9047 "\n"
9048 msgstr ""
9049
9050 #. type: textblock
9051 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
9052 msgid ""
9053 "The value can have the special value \"unknown\", meaning the content of the "
9054 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
9055 msgstr ""
9056
9057 #. type: textblock
9058 #: ../fish/guestfish-actions.pod:2578
9059 msgid ""
9060 "This command runs other libguestfs commands, which might include L</mount> "
9061 "and L</umount>, and therefore you should use this soon after launch and only "
9062 "when nothing is mounted."
9063 msgstr ""
9064
9065 #. type: textblock
9066 #: ../fish/guestfish-actions.pod:2582
9067 msgid ""
9068 "Not all of the filesystems returned will be mountable.  In particular, swap "
9069 "partitions are returned in the list.  Also this command does not check that "
9070 "each filesystem found is valid and mountable, and some filesystems might be "
9071 "mountable but require special options.  Filesystems may not all belong to a "
9072 "single logical operating system (use L</inspect-os> to look for OSes)."
9073 msgstr ""
9074
9075 #. type: =head2
9076 #: ../fish/guestfish-actions.pod:2590
9077 msgid "list-partitions"
9078 msgstr ""
9079
9080 #. type: verbatim
9081 #: ../fish/guestfish-actions.pod:2592
9082 #, no-wrap
9083 msgid ""
9084 " list-partitions\n"
9085 "\n"
9086 msgstr ""
9087
9088 #. type: textblock
9089 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3809
9090 msgid "List all the partitions detected on all block devices."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3811
9095 msgid "The full partition device names are returned, eg. C</dev/sda1>"
9096 msgstr ""
9097
9098 #. type: textblock
9099 #: ../fish/guestfish-actions.pod:2598
9100 msgid ""
9101 "This does not return logical volumes.  For that you will need to call "
9102 "L</lvs>."
9103 msgstr ""
9104
9105 #. type: =head2
9106 #: ../fish/guestfish-actions.pod:2603
9107 msgid "ll"
9108 msgstr ""
9109
9110 #. type: verbatim
9111 #: ../fish/guestfish-actions.pod:2605
9112 #, no-wrap
9113 msgid ""
9114 " ll directory\n"
9115 "\n"
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:2607 ../src/guestfs-actions.pod:3830
9120 msgid ""
9121 "List the files in C<directory> (relative to the root directory, there is no "
9122 "cwd) in the format of 'ls -la'."
9123 msgstr ""
9124
9125 #. type: textblock
9126 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3833
9127 msgid ""
9128 "This command is mostly useful for interactive sessions.  It is I<not> "
9129 "intended that you try to parse the output string."
9130 msgstr ""
9131
9132 #. type: =head2
9133 #: ../fish/guestfish-actions.pod:2613
9134 msgid "ln"
9135 msgstr ""
9136
9137 #. type: verbatim
9138 #: ../fish/guestfish-actions.pod:2615
9139 #, no-wrap
9140 msgid ""
9141 " ln target linkname\n"
9142 "\n"
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3848
9147 msgid "This command creates a hard link using the C<ln> command."
9148 msgstr ""
9149
9150 #. type: =head2
9151 #: ../fish/guestfish-actions.pod:2619
9152 msgid "ln-f"
9153 msgstr ""
9154
9155 #. type: verbatim
9156 #: ../fish/guestfish-actions.pod:2621
9157 #, no-wrap
9158 msgid ""
9159 " ln-f target linkname\n"
9160 "\n"
9161 msgstr ""
9162
9163 #. type: textblock
9164 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3861
9165 msgid ""
9166 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
9167 "option removes the link (C<linkname>) if it exists already."
9168 msgstr ""
9169
9170 #. type: =head2
9171 #: ../fish/guestfish-actions.pod:2626
9172 msgid "ln-s"
9173 msgstr ""
9174
9175 #. type: verbatim
9176 #: ../fish/guestfish-actions.pod:2628
9177 #, no-wrap
9178 msgid ""
9179 " ln-s target linkname\n"
9180 "\n"
9181 msgstr ""
9182
9183 #. type: textblock
9184 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3875
9185 msgid "This command creates a symbolic link using the C<ln -s> command."
9186 msgstr ""
9187
9188 #. type: =head2
9189 #: ../fish/guestfish-actions.pod:2632
9190 msgid "ln-sf"
9191 msgstr ""
9192
9193 #. type: verbatim
9194 #: ../fish/guestfish-actions.pod:2634
9195 #, no-wrap
9196 msgid ""
9197 " ln-sf target linkname\n"
9198 "\n"
9199 msgstr ""
9200
9201 #. type: textblock
9202 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:3888
9203 msgid ""
9204 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
9205 "option removes the link (C<linkname>) if it exists already."
9206 msgstr ""
9207
9208 #. type: =head2
9209 #: ../fish/guestfish-actions.pod:2639
9210 msgid "lremovexattr"
9211 msgstr ""
9212
9213 #. type: verbatim
9214 #: ../fish/guestfish-actions.pod:2641
9215 #, no-wrap
9216 msgid ""
9217 " lremovexattr xattr path\n"
9218 "\n"
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:2643
9223 msgid ""
9224 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
9225 "it removes an extended attribute of the link itself."
9226 msgstr ""
9227
9228 #. type: =head2
9229 #: ../fish/guestfish-actions.pod:2647
9230 msgid "ls"
9231 msgstr ""
9232
9233 #. type: verbatim
9234 #: ../fish/guestfish-actions.pod:2649
9235 #, no-wrap
9236 msgid ""
9237 " ls directory\n"
9238 "\n"
9239 msgstr ""
9240
9241 #. type: textblock
9242 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3916
9243 msgid ""
9244 "List the files in C<directory> (relative to the root directory, there is no "
9245 "cwd).  The '.' and '..' entries are not returned, but hidden files are "
9246 "shown."
9247 msgstr ""
9248
9249 #. type: textblock
9250 #: ../fish/guestfish-actions.pod:2655
9251 msgid ""
9252 "This command is mostly useful for interactive sessions.  Programs should "
9253 "probably use L</readdir> instead."
9254 msgstr ""
9255
9256 #. type: =head2
9257 #: ../fish/guestfish-actions.pod:2658
9258 msgid "lsetxattr"
9259 msgstr ""
9260
9261 #. type: verbatim
9262 #: ../fish/guestfish-actions.pod:2660
9263 #, no-wrap
9264 msgid ""
9265 " lsetxattr xattr val vallen path\n"
9266 "\n"
9267 msgstr ""
9268
9269 #. type: textblock
9270 #: ../fish/guestfish-actions.pod:2662
9271 msgid ""
9272 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
9273 "sets an extended attribute of the link itself."
9274 msgstr ""
9275
9276 #. type: =head2
9277 #: ../fish/guestfish-actions.pod:2666
9278 msgid "lstat"
9279 msgstr ""
9280
9281 #. type: verbatim
9282 #: ../fish/guestfish-actions.pod:2668
9283 #, no-wrap
9284 msgid ""
9285 " lstat path\n"
9286 "\n"
9287 msgstr ""
9288
9289 #. type: textblock
9290 #: ../fish/guestfish-actions.pod:2670 ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:6731
9291 msgid "Returns file information for the given C<path>."
9292 msgstr ""
9293
9294 #. type: textblock
9295 #: ../fish/guestfish-actions.pod:2672
9296 msgid ""
9297 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
9298 "the link is stat-ed, not the file it refers to."
9299 msgstr ""
9300
9301 #. type: textblock
9302 #: ../fish/guestfish-actions.pod:2676 ../src/guestfs-actions.pod:3958
9303 msgid "This is the same as the C<lstat(2)> system call."
9304 msgstr ""
9305
9306 #. type: =head2
9307 #: ../fish/guestfish-actions.pod:2678
9308 msgid "lstatlist"
9309 msgstr ""
9310
9311 #. type: verbatim
9312 #: ../fish/guestfish-actions.pod:2680
9313 #, no-wrap
9314 msgid ""
9315 " lstatlist path 'names ...'\n"
9316 "\n"
9317 msgstr ""
9318
9319 #. type: textblock
9320 #: ../fish/guestfish-actions.pod:2682
9321 msgid ""
9322 "This call allows you to perform the L</lstat> operation on multiple files, "
9323 "where all files are in the directory C<path>.  C<names> is the list of files "
9324 "from this directory."
9325 msgstr ""
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3977
9329 msgid ""
9330 "On return you get a list of stat structs, with a one-to-one correspondence "
9331 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
9332 "then the C<ino> field of that structure is set to C<-1>."
9333 msgstr ""
9334
9335 #. type: textblock
9336 #: ../fish/guestfish-actions.pod:2691
9337 msgid ""
9338 "This call is intended for programs that want to efficiently list a directory "
9339 "contents without making many round-trips.  See also L</lxattrlist> for a "
9340 "similarly efficient call for getting extended attributes.  Very long "
9341 "directory listings might cause the protocol message size to be exceeded, "
9342 "causing this call to fail.  The caller must split up such requests into "
9343 "smaller groups of names."
9344 msgstr ""
9345
9346 #. type: =head2
9347 #: ../fish/guestfish-actions.pod:2699
9348 msgid "luks-add-key"
9349 msgstr ""
9350
9351 #. type: verbatim
9352 #: ../fish/guestfish-actions.pod:2701
9353 #, no-wrap
9354 msgid ""
9355 " luks-add-key device keyslot\n"
9356 "\n"
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:2703 ../src/guestfs-actions.pod:4005
9361 msgid ""
9362 "This command adds a new key on LUKS device C<device>.  C<key> is any "
9363 "existing key, and is used to access the device.  C<newkey> is the new key to "
9364 "add.  C<keyslot> is the key slot that will be replaced."
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:2708
9369 msgid ""
9370 "Note that if C<keyslot> already contains a key, then this command will "
9371 "fail.  You have to use L</luks-kill-slot> first to remove that key."
9372 msgstr ""
9373
9374 #. type: textblock
9375 #: ../fish/guestfish-actions.pod:2712 ../fish/guestfish-actions.pod:2734 ../fish/guestfish-actions.pod:2747 ../fish/guestfish-actions.pod:2761 ../fish/guestfish-actions.pod:2787 ../fish/guestfish-actions.pod:2797
9376 msgid ""
9377 "This command has one or more key or passphrase parameters.  Guestfish will "
9378 "prompt for these separately."
9379 msgstr ""
9380
9381 #. type: =head2
9382 #: ../fish/guestfish-actions.pod:2715
9383 msgid "luks-close"
9384 msgstr ""
9385
9386 #. type: verbatim
9387 #: ../fish/guestfish-actions.pod:2717
9388 #, no-wrap
9389 msgid ""
9390 " luks-close device\n"
9391 "\n"
9392 msgstr ""
9393
9394 #. type: textblock
9395 #: ../fish/guestfish-actions.pod:2719
9396 msgid ""
9397 "This closes a LUKS device that was created earlier by L</luks-open> or "
9398 "L</luks-open-ro>.  The C<device> parameter must be the name of the LUKS "
9399 "mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
9400 "underlying block device."
9401 msgstr ""
9402
9403 #. type: =head2
9404 #: ../fish/guestfish-actions.pod:2725
9405 msgid "luks-format"
9406 msgstr ""
9407
9408 #. type: verbatim
9409 #: ../fish/guestfish-actions.pod:2727
9410 #, no-wrap
9411 msgid ""
9412 " luks-format device keyslot\n"
9413 "\n"
9414 msgstr ""
9415
9416 #. type: textblock
9417 #: ../fish/guestfish-actions.pod:2729 ../src/guestfs-actions.pod:4046
9418 msgid ""
9419 "This command erases existing data on C<device> and formats the device as a "
9420 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
9421 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
9422 msgstr ""
9423
9424 #. type: textblock
9425 #: ../fish/guestfish-actions.pod:2737 ../fish/guestfish-actions.pod:2750 ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:3498 ../fish/guestfish-actions.pod:4024 ../fish/guestfish-actions.pod:4349 ../fish/guestfish-actions.pod:4372 ../fish/guestfish-actions.pod:4394 ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:4053 ../src/guestfs-actions.pod:4076 ../src/guestfs-actions.pod:4219 ../src/guestfs-actions.pod:5322 ../src/guestfs-actions.pod:6110 ../src/guestfs-actions.pod:6545 ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7799
9426 msgid ""
9427 "B<This command is dangerous.  Without careful use you can easily destroy all "
9428 "your data>."
9429 msgstr ""
9430
9431 #. type: =head2
9432 #: ../fish/guestfish-actions.pod:2740
9433 msgid "luks-format-cipher"
9434 msgstr ""
9435
9436 #. type: verbatim
9437 #: ../fish/guestfish-actions.pod:2742
9438 #, no-wrap
9439 msgid ""
9440 " luks-format-cipher device keyslot cipher\n"
9441 "\n"
9442 msgstr ""
9443
9444 #. type: textblock
9445 #: ../fish/guestfish-actions.pod:2744
9446 msgid ""
9447 "This command is the same as L</luks-format> but it also allows you to set "
9448 "the C<cipher> used."
9449 msgstr ""
9450
9451 #. type: =head2
9452 #: ../fish/guestfish-actions.pod:2753
9453 msgid "luks-kill-slot"
9454 msgstr ""
9455
9456 #. type: verbatim
9457 #: ../fish/guestfish-actions.pod:2755
9458 #, no-wrap
9459 msgid ""
9460 " luks-kill-slot device keyslot\n"
9461 "\n"
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:2757 ../src/guestfs-actions.pod:4093
9466 msgid ""
9467 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
9468 "device C<device>.  C<key> must be one of the I<other> keys."
9469 msgstr ""
9470
9471 #. type: =head2
9472 #: ../fish/guestfish-actions.pod:2764
9473 msgid "luks-open"
9474 msgstr ""
9475
9476 #. type: verbatim
9477 #: ../fish/guestfish-actions.pod:2766
9478 #, no-wrap
9479 msgid ""
9480 " luks-open device mapname\n"
9481 "\n"
9482 msgstr ""
9483
9484 #. type: textblock
9485 #: ../fish/guestfish-actions.pod:2768 ../src/guestfs-actions.pod:4113
9486 msgid ""
9487 "This command opens a block device which has been encrypted according to the "
9488 "Linux Unified Key Setup (LUKS) standard."
9489 msgstr ""
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:2771 ../src/guestfs-actions.pod:4116
9493 msgid "C<device> is the encrypted block device or partition."
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
9498 msgid ""
9499 "The caller must supply one of the keys associated with the LUKS block "
9500 "device, in the C<key> parameter."
9501 msgstr ""
9502
9503 #. type: textblock
9504 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
9505 msgid ""
9506 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
9507 "writes to this block device are decrypted from and encrypted to the "
9508 "underlying C<device> respectively."
9509 msgstr ""
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2780
9513 msgid ""
9514 "If this block device contains LVM volume groups, then calling L</vgscan> "
9515 "followed by L</vg-activate-all> will make them visible."
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:2784
9520 msgid "Use L</list-dm-devices> to list all device mapper devices."
9521 msgstr ""
9522
9523 #. type: =head2
9524 #: ../fish/guestfish-actions.pod:2790
9525 msgid "luks-open-ro"
9526 msgstr ""
9527
9528 #. type: verbatim
9529 #: ../fish/guestfish-actions.pod:2792
9530 #, no-wrap
9531 msgid ""
9532 " luks-open-ro device mapname\n"
9533 "\n"
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:2794
9538 msgid ""
9539 "This is the same as L</luks-open> except that a read-only mapping is "
9540 "created."
9541 msgstr ""
9542
9543 #. type: =head2
9544 #: ../fish/guestfish-actions.pod:2800
9545 msgid "lvcreate"
9546 msgstr ""
9547
9548 #. type: verbatim
9549 #: ../fish/guestfish-actions.pod:2802
9550 #, no-wrap
9551 msgid ""
9552 " lvcreate logvol volgroup mbytes\n"
9553 "\n"
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4167
9558 msgid ""
9559 "This creates an LVM logical volume called C<logvol> on the volume group "
9560 "C<volgroup>, with C<size> megabytes."
9561 msgstr ""
9562
9563 #. type: =head2
9564 #: ../fish/guestfish-actions.pod:2807
9565 msgid "lvm-canonical-lv-name"
9566 msgstr ""
9567
9568 #. type: verbatim
9569 #: ../fish/guestfish-actions.pod:2809
9570 #, no-wrap
9571 msgid ""
9572 " lvm-canonical-lv-name lvname\n"
9573 "\n"
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../fish/guestfish-actions.pod:2811 ../src/guestfs-actions.pod:4180
9578 msgid ""
9579 "This converts alternative naming schemes for LVs that you might find to the "
9580 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to "
9581 "C</dev/VG/LV>."
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2815 ../src/guestfs-actions.pod:4184
9586 msgid ""
9587 "This command returns an error if the C<lvname> parameter does not refer to a "
9588 "logical volume."
9589 msgstr ""
9590
9591 #. type: textblock
9592 #: ../fish/guestfish-actions.pod:2818
9593 msgid "See also L</is-lv>."
9594 msgstr ""
9595
9596 #. type: =head2
9597 #: ../fish/guestfish-actions.pod:2820
9598 msgid "lvm-clear-filter"
9599 msgstr ""
9600
9601 #. type: verbatim
9602 #: ../fish/guestfish-actions.pod:2822
9603 #, no-wrap
9604 msgid ""
9605 " lvm-clear-filter\n"
9606 "\n"
9607 msgstr ""
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:2824
9611 msgid ""
9612 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
9613 "block device."
9614 msgstr ""
9615
9616 #. type: textblock
9617 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4202 ../src/guestfs-actions.pod:4244
9618 msgid "This command also clears the LVM cache and performs a volume group scan."
9619 msgstr ""
9620
9621 #. type: =head2
9622 #: ../fish/guestfish-actions.pod:2830
9623 msgid "lvm-remove-all"
9624 msgstr ""
9625
9626 #. type: verbatim
9627 #: ../fish/guestfish-actions.pod:2832
9628 #, no-wrap
9629 msgid ""
9630 " lvm-remove-all\n"
9631 "\n"
9632 msgstr ""
9633
9634 #. type: textblock
9635 #: ../fish/guestfish-actions.pod:2834 ../src/guestfs-actions.pod:4214
9636 msgid ""
9637 "This command removes all LVM logical volumes, volume groups and physical "
9638 "volumes."
9639 msgstr ""
9640
9641 #. type: =head2
9642 #: ../fish/guestfish-actions.pod:2840
9643 msgid "lvm-set-filter"
9644 msgstr ""
9645
9646 #. type: verbatim
9647 #: ../fish/guestfish-actions.pod:2842
9648 #, no-wrap
9649 msgid ""
9650 " lvm-set-filter 'devices ...'\n"
9651 "\n"
9652 msgstr ""
9653
9654 #. type: textblock
9655 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4230
9656 msgid ""
9657 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
9658 "block devices in the list C<devices>, and will ignore all other attached "
9659 "block devices."
9660 msgstr ""
9661
9662 #. type: textblock
9663 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4234
9664 msgid ""
9665 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
9666 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
9667 "there are two types of duplication possible: either cloned PVs/VGs which "
9668 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
9669 "same name.  In normal operation you cannot create this situation, but you "
9670 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
9671 "inside the LVM metadata."
9672 msgstr ""
9673
9674 #. type: textblock
9675 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4247
9676 msgid "You can filter whole block devices or individual partitions."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4249
9681 msgid ""
9682 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
9683 "filesystem), even if you are not filtering out that VG."
9684 msgstr ""
9685
9686 #. type: =head2
9687 #: ../fish/guestfish-actions.pod:2867
9688 msgid "lvremove"
9689 msgstr ""
9690
9691 #. type: verbatim
9692 #: ../fish/guestfish-actions.pod:2869
9693 #, no-wrap
9694 msgid ""
9695 " lvremove device\n"
9696 "\n"
9697 msgstr ""
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2871 ../src/guestfs-actions.pod:4263
9701 msgid ""
9702 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
9703 "LV, such as C</dev/VG/LV>."
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:2874 ../src/guestfs-actions.pod:4266
9708 msgid ""
9709 "You can also remove all LVs in a volume group by specifying the VG name, "
9710 "C</dev/VG>."
9711 msgstr ""
9712
9713 #. type: =head2
9714 #: ../fish/guestfish-actions.pod:2877
9715 msgid "lvrename"
9716 msgstr ""
9717
9718 #. type: verbatim
9719 #: ../fish/guestfish-actions.pod:2879
9720 #, no-wrap
9721 msgid ""
9722 " lvrename logvol newlogvol\n"
9723 "\n"
9724 msgstr ""
9725
9726 #. type: textblock
9727 #: ../fish/guestfish-actions.pod:2881 ../src/guestfs-actions.pod:4280
9728 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
9729 msgstr ""
9730
9731 #. type: =head2
9732 #: ../fish/guestfish-actions.pod:2883
9733 msgid "lvresize"
9734 msgstr ""
9735
9736 #. type: verbatim
9737 #: ../fish/guestfish-actions.pod:2885
9738 #, no-wrap
9739 msgid ""
9740 " lvresize device mbytes\n"
9741 "\n"
9742 msgstr ""
9743
9744 #. type: textblock
9745 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4293
9746 msgid ""
9747 "This resizes (expands or shrinks) an existing LVM logical volume to "
9748 "C<mbytes>.  When reducing, data in the reduced part is lost."
9749 msgstr ""
9750
9751 #. type: =head2
9752 #: ../fish/guestfish-actions.pod:2891
9753 msgid "lvresize-free"
9754 msgstr ""
9755
9756 #. type: verbatim
9757 #: ../fish/guestfish-actions.pod:2893
9758 #, no-wrap
9759 msgid ""
9760 " lvresize-free lv percent\n"
9761 "\n"
9762 msgstr ""
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:2895 ../src/guestfs-actions.pod:4308
9766 msgid ""
9767 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
9768 "remaining free space in the volume group.  Commonly you would call this with "
9769 "pc = 100 which expands the logical volume as much as possible, using all "
9770 "remaining free space in the volume group."
9771 msgstr ""
9772
9773 #. type: =head2
9774 #: ../fish/guestfish-actions.pod:2901
9775 msgid "lvs"
9776 msgstr ""
9777
9778 #. type: verbatim
9779 #: ../fish/guestfish-actions.pod:2903
9780 #, no-wrap
9781 msgid ""
9782 " lvs\n"
9783 "\n"
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4323
9788 msgid ""
9789 "List all the logical volumes detected.  This is the equivalent of the "
9790 "L<lvs(8)> command."
9791 msgstr ""
9792
9793 #. type: textblock
9794 #: ../fish/guestfish-actions.pod:2908 ../src/guestfs-actions.pod:4326
9795 msgid ""
9796 "This returns a list of the logical volume device names "
9797 "(eg. C</dev/VolGroup00/LogVol00>)."
9798 msgstr ""
9799
9800 #. type: textblock
9801 #: ../fish/guestfish-actions.pod:2911
9802 msgid "See also L</lvs-full>, L</list-filesystems>."
9803 msgstr ""
9804
9805 #. type: =head2
9806 #: ../fish/guestfish-actions.pod:2913
9807 msgid "lvs-full"
9808 msgstr ""
9809
9810 #. type: verbatim
9811 #: ../fish/guestfish-actions.pod:2915
9812 #, no-wrap
9813 msgid ""
9814 " lvs-full\n"
9815 "\n"
9816 msgstr ""
9817
9818 #. type: textblock
9819 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4342
9820 msgid ""
9821 "List all the logical volumes detected.  This is the equivalent of the "
9822 "L<lvs(8)> command.  The \"full\" version includes all fields."
9823 msgstr ""
9824
9825 #. type: =head2
9826 #: ../fish/guestfish-actions.pod:2920
9827 msgid "lvuuid"
9828 msgstr ""
9829
9830 #. type: verbatim
9831 #: ../fish/guestfish-actions.pod:2922
9832 #, no-wrap
9833 msgid ""
9834 " lvuuid device\n"
9835 "\n"
9836 msgstr ""
9837
9838 #. type: textblock
9839 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4357
9840 msgid "This command returns the UUID of the LVM LV C<device>."
9841 msgstr ""
9842
9843 #. type: =head2
9844 #: ../fish/guestfish-actions.pod:2926
9845 msgid "lxattrlist"
9846 msgstr ""
9847
9848 #. type: verbatim
9849 #: ../fish/guestfish-actions.pod:2928
9850 #, no-wrap
9851 msgid ""
9852 " lxattrlist path 'names ...'\n"
9853 "\n"
9854 msgstr ""
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2930 ../src/guestfs-actions.pod:4371
9858 msgid ""
9859 "This call allows you to get the extended attributes of multiple files, where "
9860 "all files are in the directory C<path>.  C<names> is the list of files from "
9861 "this directory."
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4375
9866 msgid ""
9867 "On return you get a flat list of xattr structs which must be interpreted "
9868 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
9869 "C<attrval> in this struct is zero-length to indicate there was an error "
9870 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
9871 "number (the number of following attributes for this file, which could be "
9872 "C<\"0\">).  Then after the first xattr struct are the zero or more "
9873 "attributes for the first named file.  This repeats for the second and "
9874 "subsequent files."
9875 msgstr ""
9876
9877 #. type: textblock
9878 #: ../fish/guestfish-actions.pod:2944
9879 msgid ""
9880 "This call is intended for programs that want to efficiently list a directory "
9881 "contents without making many round-trips.  See also L</lstatlist> for a "
9882 "similarly efficient call for getting standard stats.  Very long directory "
9883 "listings might cause the protocol message size to be exceeded, causing this "
9884 "call to fail.  The caller must split up such requests into smaller groups of "
9885 "names."
9886 msgstr ""
9887
9888 #. type: =head2
9889 #: ../fish/guestfish-actions.pod:2952
9890 msgid "mkdir"
9891 msgstr ""
9892
9893 #. type: verbatim
9894 #: ../fish/guestfish-actions.pod:2954
9895 #, no-wrap
9896 msgid ""
9897 " mkdir path\n"
9898 "\n"
9899 msgstr ""
9900
9901 #. type: textblock
9902 #: ../fish/guestfish-actions.pod:2956 ../src/guestfs-actions.pod:4405
9903 msgid "Create a directory named C<path>."
9904 msgstr ""
9905
9906 #. type: =head2
9907 #: ../fish/guestfish-actions.pod:2958
9908 msgid "mkdir-mode"
9909 msgstr ""
9910
9911 #. type: verbatim
9912 #: ../fish/guestfish-actions.pod:2960
9913 #, no-wrap
9914 msgid ""
9915 " mkdir-mode path mode\n"
9916 "\n"
9917 msgstr ""
9918
9919 #. type: textblock
9920 #: ../fish/guestfish-actions.pod:2962 ../src/guestfs-actions.pod:4418
9921 msgid ""
9922 "This command creates a directory, setting the initial permissions of the "
9923 "directory to C<mode>."
9924 msgstr ""
9925
9926 #. type: textblock
9927 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4421
9928 msgid ""
9929 "For common Linux filesystems, the actual mode which is set will be C<mode & "
9930 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
9931 "other ways."
9932 msgstr ""
9933
9934 #. type: textblock
9935 #: ../fish/guestfish-actions.pod:2969
9936 msgid "See also L</mkdir>, L</umask>"
9937 msgstr ""
9938
9939 #. type: =head2
9940 #: ../fish/guestfish-actions.pod:2971
9941 msgid "mkdir-p"
9942 msgstr ""
9943
9944 #. type: verbatim
9945 #: ../fish/guestfish-actions.pod:2973
9946 #, no-wrap
9947 msgid ""
9948 " mkdir-p path\n"
9949 "\n"
9950 msgstr ""
9951
9952 #. type: textblock
9953 #: ../fish/guestfish-actions.pod:2975 ../src/guestfs-actions.pod:4437
9954 msgid ""
9955 "Create a directory named C<path>, creating any parent directories as "
9956 "necessary.  This is like the C<mkdir -p> shell command."
9957 msgstr ""
9958
9959 #. type: =head2
9960 #: ../fish/guestfish-actions.pod:2978
9961 msgid "mkdtemp"
9962 msgstr ""
9963
9964 #. type: verbatim
9965 #: ../fish/guestfish-actions.pod:2980
9966 #, no-wrap
9967 msgid ""
9968 " mkdtemp template\n"
9969 "\n"
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:2982 ../src/guestfs-actions.pod:4450
9974 msgid ""
9975 "This command creates a temporary directory.  The C<template> parameter "
9976 "should be a full pathname for the temporary directory name with the final "
9977 "six characters being \"XXXXXX\"."
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
9982 msgid ""
9983 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
9984 "being suitable for Windows filesystems."
9985 msgstr ""
9986
9987 #. type: textblock
9988 #: ../fish/guestfish-actions.pod:2990 ../src/guestfs-actions.pod:4458
9989 msgid "The name of the temporary directory that was created is returned."
9990 msgstr ""
9991
9992 #. type: textblock
9993 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4461
9994 msgid "The temporary directory is created with mode 0700 and is owned by root."
9995 msgstr ""
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4464
9999 msgid ""
10000 "The caller is responsible for deleting the temporary directory and its "
10001 "contents after use."
10002 msgstr ""
10003
10004 #. type: textblock
10005 #: ../fish/guestfish-actions.pod:2999 ../src/guestfs-actions.pod:4467
10006 msgid "See also: L<mkdtemp(3)>"
10007 msgstr ""
10008
10009 #. type: =head2
10010 #: ../fish/guestfish-actions.pod:3001
10011 msgid "mke2fs-J"
10012 msgstr ""
10013
10014 #. type: verbatim
10015 #: ../fish/guestfish-actions.pod:3003
10016 #, no-wrap
10017 msgid ""
10018 " mke2fs-J fstype blocksize device journal\n"
10019 "\n"
10020 msgstr ""
10021
10022 #. type: textblock
10023 #: ../fish/guestfish-actions.pod:3005 ../src/guestfs-actions.pod:4483
10024 msgid ""
10025 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10026 "C<journal>.  It is equivalent to the command:"
10027 msgstr ""
10028
10029 #. type: verbatim
10030 #: ../fish/guestfish-actions.pod:3009 ../src/guestfs-actions.pod:4487
10031 #, no-wrap
10032 msgid ""
10033 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
10034 "\n"
10035 msgstr ""
10036
10037 #. type: textblock
10038 #: ../fish/guestfish-actions.pod:3011
10039 msgid "See also L</mke2journal>."
10040 msgstr ""
10041
10042 #. type: =head2
10043 #: ../fish/guestfish-actions.pod:3013
10044 msgid "mke2fs-JL"
10045 msgstr ""
10046
10047 #. type: verbatim
10048 #: ../fish/guestfish-actions.pod:3015
10049 #, no-wrap
10050 msgid ""
10051 " mke2fs-JL fstype blocksize device label\n"
10052 "\n"
10053 msgstr ""
10054
10055 #. type: textblock
10056 #: ../fish/guestfish-actions.pod:3017 ../src/guestfs-actions.pod:4504
10057 msgid ""
10058 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10059 "the journal labeled C<label>."
10060 msgstr ""
10061
10062 #. type: textblock
10063 #: ../fish/guestfish-actions.pod:3020
10064 msgid "See also L</mke2journal-L>."
10065 msgstr ""
10066
10067 #. type: =head2
10068 #: ../fish/guestfish-actions.pod:3022
10069 msgid "mke2fs-JU"
10070 msgstr ""
10071
10072 #. type: verbatim
10073 #: ../fish/guestfish-actions.pod:3024
10074 #, no-wrap
10075 msgid ""
10076 " mke2fs-JU fstype blocksize device uuid\n"
10077 "\n"
10078 msgstr ""
10079
10080 #. type: textblock
10081 #: ../fish/guestfish-actions.pod:3026 ../src/guestfs-actions.pod:4522
10082 msgid ""
10083 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
10084 "the journal with UUID C<uuid>."
10085 msgstr ""
10086
10087 #. type: textblock
10088 #: ../fish/guestfish-actions.pod:3029
10089 msgid "See also L</mke2journal-U>."
10090 msgstr ""
10091
10092 #. type: =head2
10093 #: ../fish/guestfish-actions.pod:3031
10094 msgid "mke2journal"
10095 msgstr ""
10096
10097 #. type: verbatim
10098 #: ../fish/guestfish-actions.pod:3033
10099 #, no-wrap
10100 msgid ""
10101 " mke2journal blocksize device\n"
10102 "\n"
10103 msgstr ""
10104
10105 #. type: textblock
10106 #: ../fish/guestfish-actions.pod:3035 ../src/guestfs-actions.pod:4538
10107 msgid ""
10108 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
10109 "command:"
10110 msgstr ""
10111
10112 #. type: verbatim
10113 #: ../fish/guestfish-actions.pod:3038 ../src/guestfs-actions.pod:4541
10114 #, no-wrap
10115 msgid ""
10116 " mke2fs -O journal_dev -b blocksize device\n"
10117 "\n"
10118 msgstr ""
10119
10120 #. type: =head2
10121 #: ../fish/guestfish-actions.pod:3040
10122 msgid "mke2journal-L"
10123 msgstr ""
10124
10125 #. type: verbatim
10126 #: ../fish/guestfish-actions.pod:3042
10127 #, no-wrap
10128 msgid ""
10129 " mke2journal-L blocksize label device\n"
10130 "\n"
10131 msgstr ""
10132
10133 #. type: textblock
10134 #: ../fish/guestfish-actions.pod:3044 ../src/guestfs-actions.pod:4555
10135 msgid "This creates an ext2 external journal on C<device> with label C<label>."
10136 msgstr ""
10137
10138 #. type: =head2
10139 #: ../fish/guestfish-actions.pod:3046
10140 msgid "mke2journal-U"
10141 msgstr ""
10142
10143 #. type: verbatim
10144 #: ../fish/guestfish-actions.pod:3048
10145 #, no-wrap
10146 msgid ""
10147 " mke2journal-U blocksize uuid device\n"
10148 "\n"
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:3050 ../src/guestfs-actions.pod:4569
10153 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
10154 msgstr ""
10155
10156 #. type: =head2
10157 #: ../fish/guestfish-actions.pod:3052
10158 msgid "mkfifo"
10159 msgstr ""
10160
10161 #. type: verbatim
10162 #: ../fish/guestfish-actions.pod:3054
10163 #, no-wrap
10164 msgid ""
10165 " mkfifo mode path\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:3056
10171 msgid ""
10172 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
10173 "is just a convenient wrapper around L</mknod>."
10174 msgstr ""
10175
10176 #. type: =head2
10177 #: ../fish/guestfish-actions.pod:3062
10178 msgid "mkfs"
10179 msgstr ""
10180
10181 #. type: verbatim
10182 #: ../fish/guestfish-actions.pod:3064
10183 #, no-wrap
10184 msgid ""
10185 " mkfs fstype device\n"
10186 "\n"
10187 msgstr ""
10188
10189 #. type: textblock
10190 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4599
10191 msgid ""
10192 "This creates a filesystem on C<device> (usually a partition or LVM logical "
10193 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
10194 msgstr ""
10195
10196 #. type: =head2
10197 #: ../fish/guestfish-actions.pod:3070
10198 msgid "mkfs-b"
10199 msgstr ""
10200
10201 #. type: verbatim
10202 #: ../fish/guestfish-actions.pod:3072
10203 #, no-wrap
10204 msgid ""
10205 " mkfs-b fstype blocksize device\n"
10206 "\n"
10207 msgstr ""
10208
10209 #. type: textblock
10210 #: ../fish/guestfish-actions.pod:3074
10211 msgid ""
10212 "This call is similar to L</mkfs>, but it allows you to control the block "
10213 "size of the resulting filesystem.  Supported block sizes depend on the "
10214 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
10215 msgstr ""
10216
10217 #. type: textblock
10218 #: ../fish/guestfish-actions.pod:3079 ../fish/guestfish-actions.pod:3106 ../src/guestfs-actions.pod:4627 ../src/guestfs-actions.pod:4665
10219 msgid ""
10220 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
10221 "cluster size."
10222 msgstr ""
10223
10224 #. type: textblock
10225 #: ../fish/guestfish-actions.pod:3082
10226 msgid ""
10227 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
10228 "instead."
10229 msgstr ""
10230
10231 #. type: =head2
10232 #: ../fish/guestfish-actions.pod:3089
10233 msgid "mkfs-opts"
10234 msgstr ""
10235
10236 #. type: verbatim
10237 #: ../fish/guestfish-actions.pod:3091
10238 #, no-wrap
10239 msgid ""
10240 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] "
10241 "[sectorsize:..]\n"
10242 "\n"
10243 msgstr ""
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:3093 ../src/guestfs-actions.pod:4652
10247 msgid ""
10248 "This function creates a filesystem on C<device>.  The filesystem type is "
10249 "C<fstype>, for example C<ext3>."
10250 msgstr ""
10251
10252 #. type: =item
10253 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4659
10254 msgid "C<blocksize>"
10255 msgstr ""
10256
10257 #. type: textblock
10258 #: ../fish/guestfish-actions.pod:3102 ../src/guestfs-actions.pod:4661
10259 msgid ""
10260 "The filesystem block size.  Supported block sizes depend on the filesystem "
10261 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
10262 "filesystems."
10263 msgstr ""
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:3109 ../src/guestfs-actions.pod:4668
10267 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
10268 msgstr ""
10269
10270 #. type: =item
10271 #: ../fish/guestfish-actions.pod:3111 ../src/guestfs-actions.pod:4670
10272 msgid "C<features>"
10273 msgstr ""
10274
10275 #. type: textblock
10276 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4672
10277 msgid "This passes the I<-O> parameter to the external mkfs program."
10278 msgstr ""
10279
10280 #. type: textblock
10281 #: ../fish/guestfish-actions.pod:3115 ../src/guestfs-actions.pod:4674
10282 msgid ""
10283 "For certain filesystem types, this allows extra filesystem features to be "
10284 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
10285 msgstr ""
10286
10287 #. type: textblock
10288 #: ../fish/guestfish-actions.pod:3119 ../src/guestfs-actions.pod:4678
10289 msgid ""
10290 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
10291 "type."
10292 msgstr ""
10293
10294 #. type: =item
10295 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4681
10296 msgid "C<inode>"
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
10301 msgid ""
10302 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
10303 "sets the inode size (only for ext2/3/4 filesystems at present)."
10304 msgstr ""
10305
10306 #. type: =item
10307 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
10308 msgid "C<sectorsize>"
10309 msgstr ""
10310
10311 #. type: textblock
10312 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
10313 msgid ""
10314 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
10315 "sets sector size for ufs filesystem."
10316 msgstr ""
10317
10318 #. type: =head2
10319 #: ../fish/guestfish-actions.pod:3136
10320 msgid "mkmountpoint"
10321 msgstr ""
10322
10323 #. type: verbatim
10324 #: ../fish/guestfish-actions.pod:3138
10325 #, no-wrap
10326 msgid ""
10327 " mkmountpoint exemptpath\n"
10328 "\n"
10329 msgstr ""
10330
10331 #. type: textblock
10332 #: ../fish/guestfish-actions.pod:3140
10333 msgid ""
10334 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
10335 "to create extra mountpoints before mounting the first filesystem."
10336 msgstr ""
10337
10338 #. type: textblock
10339 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4731
10340 msgid ""
10341 "These calls are I<only> necessary in some very limited circumstances, mainly "
10342 "the case where you want to mount a mix of unrelated and/or read-only "
10343 "filesystems together."
10344 msgstr ""
10345
10346 #. type: textblock
10347 #: ../fish/guestfish-actions.pod:3148 ../src/guestfs-actions.pod:4735
10348 msgid ""
10349 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
10350 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
10351 "inside that.  You can unpack this as follows in guestfish:"
10352 msgstr ""
10353
10354 #. type: verbatim
10355 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
10356 #, no-wrap
10357 msgid ""
10358 " add-ro Fedora-11-i686-Live.iso\n"
10359 " run\n"
10360 " mkmountpoint /cd\n"
10361 " mkmountpoint /sqsh\n"
10362 " mkmountpoint /ext3fs\n"
10363 " mount /dev/sda /cd\n"
10364 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
10365 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
10366 "\n"
10367 msgstr ""
10368
10369 #. type: textblock
10370 #: ../fish/guestfish-actions.pod:3162 ../src/guestfs-actions.pod:4749
10371 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
10372 msgstr ""
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:3164
10376 msgid ""
10377 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
10378 "unexpected errors if you try to mix these calls.  It is safest to manually "
10379 "unmount filesystems and remove mountpoints after use."
10380 msgstr ""
10381
10382 #. type: textblock
10383 #: ../fish/guestfish-actions.pod:3168
10384 msgid ""
10385 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
10386 "for this to work for manual mountpoints, you must ensure that the innermost "
10387 "mountpoints have the longest pathnames, as in the example code above."
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:3173 ../src/guestfs-actions.pod:4760
10392 msgid "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
10393 msgstr ""
10394
10395 #. type: textblock
10396 #: ../fish/guestfish-actions.pod:3175
10397 msgid ""
10398 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
10399 "L</umount-all> to be called when the handle is closed which can also trigger "
10400 "these issues."
10401 msgstr ""
10402
10403 #. type: =head2
10404 #: ../fish/guestfish-actions.pod:3179
10405 msgid "mknod"
10406 msgstr ""
10407
10408 #. type: verbatim
10409 #: ../fish/guestfish-actions.pod:3181
10410 #, no-wrap
10411 msgid ""
10412 " mknod mode devmajor devminor path\n"
10413 "\n"
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4779
10418 msgid ""
10419 "This call creates block or character special devices, or named pipes "
10420 "(FIFOs)."
10421 msgstr ""
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4782
10425 msgid ""
10426 "The C<mode> parameter should be the mode, using the standard constants.  "
10427 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
10428 "used when creating block and character special devices."
10429 msgstr ""
10430
10431 #. type: textblock
10432 #: ../fish/guestfish-actions.pod:3191
10433 msgid ""
10434 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
10435 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
10436 "regular file).  These constants are available in the standard Linux header "
10437 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
10438 "wrappers around this command which bitwise OR in the appropriate constant "
10439 "for you."
10440 msgstr ""
10441
10442 #. type: =head2
10443 #: ../fish/guestfish-actions.pod:3201
10444 msgid "mknod-b"
10445 msgstr ""
10446
10447 #. type: verbatim
10448 #: ../fish/guestfish-actions.pod:3203
10449 #, no-wrap
10450 msgid ""
10451 " mknod-b mode devmajor devminor path\n"
10452 "\n"
10453 msgstr ""
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:3205
10457 msgid ""
10458 "This call creates a block device node called C<path> with mode C<mode> and "
10459 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10460 "wrapper around L</mknod>."
10461 msgstr ""
10462
10463 #. type: =head2
10464 #: ../fish/guestfish-actions.pod:3211
10465 msgid "mknod-c"
10466 msgstr ""
10467
10468 #. type: verbatim
10469 #: ../fish/guestfish-actions.pod:3213
10470 #, no-wrap
10471 msgid ""
10472 " mknod-c mode devmajor devminor path\n"
10473 "\n"
10474 msgstr ""
10475
10476 #. type: textblock
10477 #: ../fish/guestfish-actions.pod:3215
10478 msgid ""
10479 "This call creates a char device node called C<path> with mode C<mode> and "
10480 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
10481 "wrapper around L</mknod>."
10482 msgstr ""
10483
10484 #. type: =head2
10485 #: ../fish/guestfish-actions.pod:3221
10486 msgid "mkswap"
10487 msgstr ""
10488
10489 #. type: verbatim
10490 #: ../fish/guestfish-actions.pod:3223
10491 #, no-wrap
10492 msgid ""
10493 " mkswap device\n"
10494 "\n"
10495 msgstr ""
10496
10497 #. type: textblock
10498 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4845
10499 msgid "Create a swap partition on C<device>."
10500 msgstr ""
10501
10502 #. type: =head2
10503 #: ../fish/guestfish-actions.pod:3227
10504 msgid "mkswap-L"
10505 msgstr ""
10506
10507 #. type: verbatim
10508 #: ../fish/guestfish-actions.pod:3229
10509 #, no-wrap
10510 msgid ""
10511 " mkswap-L label device\n"
10512 "\n"
10513 msgstr ""
10514
10515 #. type: textblock
10516 #: ../fish/guestfish-actions.pod:3231 ../src/guestfs-actions.pod:4858
10517 msgid "Create a swap partition on C<device> with label C<label>."
10518 msgstr ""
10519
10520 #. type: textblock
10521 #: ../fish/guestfish-actions.pod:3233 ../src/guestfs-actions.pod:4860
10522 msgid ""
10523 "Note that you cannot attach a swap label to a block device "
10524 "(eg. C</dev/sda>), just to a partition.  This appears to be a limitation of "
10525 "the kernel or swap tools."
10526 msgstr ""
10527
10528 #. type: =head2
10529 #: ../fish/guestfish-actions.pod:3237
10530 msgid "mkswap-U"
10531 msgstr ""
10532
10533 #. type: verbatim
10534 #: ../fish/guestfish-actions.pod:3239
10535 #, no-wrap
10536 msgid ""
10537 " mkswap-U uuid device\n"
10538 "\n"
10539 msgstr ""
10540
10541 #. type: textblock
10542 #: ../fish/guestfish-actions.pod:3241 ../src/guestfs-actions.pod:4875
10543 msgid "Create a swap partition on C<device> with UUID C<uuid>."
10544 msgstr ""
10545
10546 #. type: =head2
10547 #: ../fish/guestfish-actions.pod:3243
10548 msgid "mkswap-file"
10549 msgstr ""
10550
10551 #. type: verbatim
10552 #: ../fish/guestfish-actions.pod:3245
10553 #, no-wrap
10554 msgid ""
10555 " mkswap-file path\n"
10556 "\n"
10557 msgstr ""
10558
10559 #. type: textblock
10560 #: ../fish/guestfish-actions.pod:3247 ../src/guestfs-actions.pod:4887
10561 msgid "Create a swap file."
10562 msgstr ""
10563
10564 #. type: textblock
10565 #: ../fish/guestfish-actions.pod:3249
10566 msgid ""
10567 "This command just writes a swap file signature to an existing file.  To "
10568 "create the file itself, use something like L</fallocate>."
10569 msgstr ""
10570
10571 #. type: =head2
10572 #: ../fish/guestfish-actions.pod:3252
10573 msgid "modprobe"
10574 msgstr ""
10575
10576 #. type: verbatim
10577 #: ../fish/guestfish-actions.pod:3254
10578 #, no-wrap
10579 msgid ""
10580 " modprobe modulename\n"
10581 "\n"
10582 msgstr ""
10583
10584 #. type: textblock
10585 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4902
10586 msgid "This loads a kernel module in the appliance."
10587 msgstr ""
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4904
10591 msgid ""
10592 "The kernel module must have been whitelisted when libguestfs was built (see "
10593 "C<appliance/kmod.whitelist.in> in the source)."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:3261
10598 msgid "mount"
10599 msgstr ""
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:3263
10603 #, no-wrap
10604 msgid ""
10605 " mount device mountpoint\n"
10606 "\n"
10607 msgstr ""
10608
10609 #. type: textblock
10610 #: ../fish/guestfish-actions.pod:3265 ../src/guestfs-actions.pod:4925
10611 msgid ""
10612 "Mount a guest disk at a position in the filesystem.  Block devices are named "
10613 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
10614 "those block devices contain partitions, they will have the usual names "
10615 "(eg. C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
10616 msgstr ""
10617
10618 #. type: textblock
10619 #: ../fish/guestfish-actions.pod:3271 ../src/guestfs-actions.pod:4931
10620 msgid ""
10621 "The rules are the same as for L<mount(2)>: A filesystem must first be "
10622 "mounted on C</> before others can be mounted.  Other filesystems can only be "
10623 "mounted on directories which already exist."
10624 msgstr ""
10625
10626 #. type: textblock
10627 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
10628 msgid ""
10629 "The mounted filesystem is writable, if we have sufficient permissions on the "
10630 "underlying device."
10631 msgstr ""
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:3279
10635 msgid ""
10636 "B<Important note:> When you use this call, the filesystem options C<sync> "
10637 "and C<noatime> are set implicitly.  This was originally done because we "
10638 "thought it would improve reliability, but it turns out that I<-o sync> has a "
10639 "very large negative performance impact and negligible effect on "
10640 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
10641 "code that needs performance, and instead use L</mount-options> (use an empty "
10642 "string for the first parameter if you don't want any options)."
10643 msgstr ""
10644
10645 #. type: textblock
10646 #: ../fish/guestfish-actions.pod:3289
10647 msgid ""
10648 "I<This function is deprecated.> In new code, use the L</mount_options> call "
10649 "instead."
10650 msgstr ""
10651
10652 #. type: =head2
10653 #: ../fish/guestfish-actions.pod:3296
10654 msgid "mount-9p"
10655 msgstr ""
10656
10657 #. type: verbatim
10658 #: ../fish/guestfish-actions.pod:3298
10659 #, no-wrap
10660 msgid ""
10661 " mount-9p mounttag mountpoint [options:..]\n"
10662 "\n"
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:4968
10667 msgid ""
10668 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
10669 "C<mountpoint>."
10670 msgstr ""
10671
10672 #. type: textblock
10673 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:4971
10674 msgid ""
10675 "If required, C<trans=virtio> will be automatically added to the options.  "
10676 "Any other options required can be passed in the optional C<options> "
10677 "parameter."
10678 msgstr ""
10679
10680 #. type: =head2
10681 #: ../fish/guestfish-actions.pod:3309
10682 msgid "mount-loop"
10683 msgstr ""
10684
10685 #. type: verbatim
10686 #: ../fish/guestfish-actions.pod:3311
10687 #, no-wrap
10688 msgid ""
10689 " mount-loop file mountpoint\n"
10690 "\n"
10691 msgstr ""
10692
10693 #. type: textblock
10694 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5010
10695 msgid ""
10696 "This command lets you mount C<file> (a filesystem image in a file) on a "
10697 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
10698 "mountpoint>."
10699 msgstr ""
10700
10701 #. type: =head2
10702 #: ../fish/guestfish-actions.pod:3317
10703 msgid "mount-options"
10704 msgstr ""
10705
10706 #. type: verbatim
10707 #: ../fish/guestfish-actions.pod:3319
10708 #, no-wrap
10709 msgid ""
10710 " mount-options options device mountpoint\n"
10711 "\n"
10712 msgstr ""
10713
10714 #. type: textblock
10715 #: ../fish/guestfish-actions.pod:3321
10716 msgid ""
10717 "This is the same as the L</mount> command, but it allows you to set the "
10718 "mount options as for the L<mount(8)> I<-o> flag."
10719 msgstr ""
10720
10721 #. type: textblock
10722 #: ../fish/guestfish-actions.pod:3325 ../src/guestfs-actions.pod:5030
10723 msgid ""
10724 "If the C<options> parameter is an empty string, then no options are passed "
10725 "(all options default to whatever the filesystem uses)."
10726 msgstr ""
10727
10728 #. type: =head2
10729 #: ../fish/guestfish-actions.pod:3329
10730 msgid "mount-ro"
10731 msgstr ""
10732
10733 #. type: verbatim
10734 #: ../fish/guestfish-actions.pod:3331
10735 #, no-wrap
10736 msgid ""
10737 " mount-ro device mountpoint\n"
10738 "\n"
10739 msgstr ""
10740
10741 #. type: textblock
10742 #: ../fish/guestfish-actions.pod:3333
10743 msgid ""
10744 "This is the same as the L</mount> command, but it mounts the filesystem with "
10745 "the read-only (I<-o ro>) flag."
10746 msgstr ""
10747
10748 #. type: =head2
10749 #: ../fish/guestfish-actions.pod:3336
10750 msgid "mount-vfs"
10751 msgstr ""
10752
10753 #. type: verbatim
10754 #: ../fish/guestfish-actions.pod:3338
10755 #, no-wrap
10756 msgid ""
10757 " mount-vfs options vfstype device mountpoint\n"
10758 "\n"
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:3340
10763 msgid ""
10764 "This is the same as the L</mount> command, but it allows you to set both the "
10765 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
10766 msgstr ""
10767
10768 #. type: =head2
10769 #: ../fish/guestfish-actions.pod:3344
10770 msgid "mountpoints"
10771 msgstr ""
10772
10773 #. type: verbatim
10774 #: ../fish/guestfish-actions.pod:3346
10775 #, no-wrap
10776 msgid ""
10777 " mountpoints\n"
10778 "\n"
10779 msgstr ""
10780
10781 #. type: textblock
10782 #: ../fish/guestfish-actions.pod:3348
10783 msgid ""
10784 "This call is similar to L</mounts>.  That call returns a list of devices.  "
10785 "This one returns a hash table (map) of device name to directory where the "
10786 "device is mounted."
10787 msgstr ""
10788
10789 #. type: =head2
10790 #: ../fish/guestfish-actions.pod:3352
10791 msgid "mounts"
10792 msgstr ""
10793
10794 #. type: verbatim
10795 #: ../fish/guestfish-actions.pod:3354
10796 #, no-wrap
10797 msgid ""
10798 " mounts\n"
10799 "\n"
10800 msgstr ""
10801
10802 #. type: textblock
10803 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5091
10804 msgid ""
10805 "This returns the list of currently mounted filesystems.  It returns the list "
10806 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
10807 msgstr ""
10808
10809 #. type: textblock
10810 #: ../fish/guestfish-actions.pod:3359 ../src/guestfs-actions.pod:5094
10811 msgid "Some internal mounts are not shown."
10812 msgstr ""
10813
10814 #. type: textblock
10815 #: ../fish/guestfish-actions.pod:3361
10816 msgid "See also: L</mountpoints>"
10817 msgstr ""
10818
10819 #. type: =head2
10820 #: ../fish/guestfish-actions.pod:3363
10821 msgid "mv"
10822 msgstr ""
10823
10824 #. type: verbatim
10825 #: ../fish/guestfish-actions.pod:3365
10826 #, no-wrap
10827 msgid ""
10828 " mv src dest\n"
10829 "\n"
10830 msgstr ""
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:3367 ../src/guestfs-actions.pod:5111
10834 msgid ""
10835 "This moves a file from C<src> to C<dest> where C<dest> is either a "
10836 "destination filename or destination directory."
10837 msgstr ""
10838
10839 #. type: =head2
10840 #: ../fish/guestfish-actions.pod:3370
10841 msgid "ntfs-3g-probe"
10842 msgstr ""
10843
10844 #. type: verbatim
10845 #: ../fish/guestfish-actions.pod:3372
10846 #, no-wrap
10847 msgid ""
10848 " ntfs-3g-probe true|false device\n"
10849 "\n"
10850 msgstr ""
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:3374 ../src/guestfs-actions.pod:5125
10854 msgid ""
10855 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
10856 "C<device> for mountability.  (Not all NTFS volumes can be mounted "
10857 "read-write, and some cannot be mounted at all)."
10858 msgstr ""
10859
10860 #. type: textblock
10861 #: ../fish/guestfish-actions.pod:3378 ../src/guestfs-actions.pod:5129
10862 msgid ""
10863 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
10864 "can be mounted read-write.  Set it to false if you want to test if the "
10865 "volume can be mounted read-only."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:3382 ../src/guestfs-actions.pod:5133
10870 msgid ""
10871 "The return value is an integer which C<0> if the operation would succeed, or "
10872 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
10873 msgstr ""
10874
10875 #. type: =head2
10876 #: ../fish/guestfish-actions.pod:3386
10877 msgid "ntfsresize"
10878 msgstr ""
10879
10880 #. type: verbatim
10881 #: ../fish/guestfish-actions.pod:3388
10882 #, no-wrap
10883 msgid ""
10884 " ntfsresize device\n"
10885 "\n"
10886 msgstr ""
10887
10888 #. type: textblock
10889 #: ../fish/guestfish-actions.pod:3390 ../fish/guestfish-actions.pod:3414 ../src/guestfs-actions.pod:5154 ../src/guestfs-actions.pod:5186
10890 msgid ""
10891 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
10892 "size of the underlying device."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5157
10897 msgid ""
10898 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
10899 "consistency check (for safety).  You have to boot into Windows to perform "
10900 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
10901 "resize filesystems which have been marked in this way.  So in effect it is "
10902 "not possible to call ntfsresize multiple times on a single filesystem "
10903 "without booting into Windows between each resize."
10904 msgstr ""
10905
10906 #. type: textblock
10907 #: ../fish/guestfish-actions.pod:3401 ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5165 ../src/guestfs-actions.pod:5212
10908 msgid "See also L<ntfsresize(8)>."
10909 msgstr ""
10910
10911 #. type: textblock
10912 #: ../fish/guestfish-actions.pod:3403 ../fish/guestfish-actions.pod:3451
10913 msgid ""
10914 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
10915 "call instead."
10916 msgstr ""
10917
10918 #. type: =head2
10919 #: ../fish/guestfish-actions.pod:3410
10920 msgid "ntfsresize-opts"
10921 msgstr ""
10922
10923 #. type: verbatim
10924 #: ../fish/guestfish-actions.pod:3412
10925 #, no-wrap
10926 msgid ""
10927 " ntfsresize-opts device [size:..] [force:..]\n"
10928 "\n"
10929 msgstr ""
10930
10931 #. type: textblock
10932 #: ../fish/guestfish-actions.pod:3423 ../src/guestfs-actions.pod:5195
10933 msgid ""
10934 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
10935 "resized to fit the container (eg. partition)."
10936 msgstr ""
10937
10938 #. type: =item
10939 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5198
10940 msgid "C<force>"
10941 msgstr ""
10942
10943 #. type: textblock
10944 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
10945 msgid ""
10946 "If this option is true, then force the resize of the filesystem even if the "
10947 "filesystem is marked as requiring a consistency check."
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:3431
10952 msgid ""
10953 "After the resize operation, the filesystem is always marked as requiring a "
10954 "consistency check (for safety).  You have to boot into Windows to perform "
10955 "this check and clear this condition.  If you I<don't> set the C<force> "
10956 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
10957 "a single filesystem without booting into Windows between each resize."
10958 msgstr ""
10959
10960 #. type: =head2
10961 #: ../fish/guestfish-actions.pod:3444
10962 msgid "ntfsresize-size"
10963 msgstr ""
10964
10965 #. type: verbatim
10966 #: ../fish/guestfish-actions.pod:3446
10967 #, no-wrap
10968 msgid ""
10969 " ntfsresize-size device size\n"
10970 "\n"
10971 msgstr ""
10972
10973 #. type: textblock
10974 #: ../fish/guestfish-actions.pod:3448
10975 msgid ""
10976 "This command is the same as L</ntfsresize> except that it allows you to "
10977 "specify the new size (in bytes) explicitly."
10978 msgstr ""
10979
10980 #. type: =head2
10981 #: ../fish/guestfish-actions.pod:3458
10982 msgid "part-add"
10983 msgstr ""
10984
10985 #. type: verbatim
10986 #: ../fish/guestfish-actions.pod:3460
10987 #, no-wrap
10988 msgid ""
10989 " part-add device prlogex startsect endsect\n"
10990 "\n"
10991 msgstr ""
10992
10993 #. type: textblock
10994 #: ../fish/guestfish-actions.pod:3462
10995 msgid ""
10996 "This command adds a partition to C<device>.  If there is no partition table "
10997 "on the device, call L</part-init> first."
10998 msgstr ""
10999
11000 #. type: textblock
11001 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5273
11002 msgid ""
11003 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
11004 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
11005 "C<logical>) and C<e> (or C<extended>) partition types."
11006 msgstr ""
11007
11008 #. type: textblock
11009 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
11010 msgid ""
11011 "C<startsect> and C<endsect> are the start and end of the partition in "
11012 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
11013 "from the end of the disk (C<-1> is the last sector)."
11014 msgstr ""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:3474
11018 msgid ""
11019 "Creating a partition which covers the whole disk is not so easy.  Use "
11020 "L</part-disk> to do that."
11021 msgstr ""
11022
11023 #. type: =head2
11024 #: ../fish/guestfish-actions.pod:3477
11025 msgid "part-del"
11026 msgstr ""
11027
11028 #. type: verbatim
11029 #: ../fish/guestfish-actions.pod:3479
11030 #, no-wrap
11031 msgid ""
11032 " part-del device partnum\n"
11033 "\n"
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:3481 ../src/guestfs-actions.pod:5296
11038 msgid "This command deletes the partition numbered C<partnum> on C<device>."
11039 msgstr ""
11040
11041 #. type: textblock
11042 #: ../fish/guestfish-actions.pod:3483 ../src/guestfs-actions.pod:5298
11043 msgid ""
11044 "Note that in the case of MBR partitioning, deleting an extended partition "
11045 "also deletes any logical partitions it contains."
11046 msgstr ""
11047
11048 #. type: =head2
11049 #: ../fish/guestfish-actions.pod:3487
11050 msgid "part-disk"
11051 msgstr ""
11052
11053 #. type: verbatim
11054 #: ../fish/guestfish-actions.pod:3489
11055 #, no-wrap
11056 msgid ""
11057 " part-disk device parttype\n"
11058 "\n"
11059 msgstr ""
11060
11061 #. type: textblock
11062 #: ../fish/guestfish-actions.pod:3491
11063 msgid ""
11064 "This command is simply a combination of L</part-init> followed by "
11065 "L</part-add> to create a single primary partition covering the whole disk."
11066 msgstr ""
11067
11068 #. type: textblock
11069 #: ../fish/guestfish-actions.pod:3495
11070 msgid ""
11071 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
11072 "possible values are described in L</part-init>."
11073 msgstr ""
11074
11075 #. type: =head2
11076 #: ../fish/guestfish-actions.pod:3501
11077 msgid "part-get-bootable"
11078 msgstr ""
11079
11080 #. type: verbatim
11081 #: ../fish/guestfish-actions.pod:3503
11082 #, no-wrap
11083 msgid ""
11084 " part-get-bootable device partnum\n"
11085 "\n"
11086 msgstr ""
11087
11088 #. type: textblock
11089 #: ../fish/guestfish-actions.pod:3505 ../src/guestfs-actions.pod:5334
11090 msgid ""
11091 "This command returns true if the partition C<partnum> on C<device> has the "
11092 "bootable flag set."
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:3508
11097 msgid "See also L</part-set-bootable>."
11098 msgstr ""
11099
11100 #. type: =head2
11101 #: ../fish/guestfish-actions.pod:3510
11102 msgid "part-get-mbr-id"
11103 msgstr ""
11104
11105 #. type: verbatim
11106 #: ../fish/guestfish-actions.pod:3512
11107 #, no-wrap
11108 msgid ""
11109 " part-get-mbr-id device partnum\n"
11110 "\n"
11111 msgstr ""
11112
11113 #. type: textblock
11114 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5350
11115 msgid ""
11116 "Returns the MBR type byte (also known as the ID byte) from the numbered "
11117 "partition C<partnum>."
11118 msgstr ""
11119
11120 #. type: textblock
11121 #: ../fish/guestfish-actions.pod:3517 ../fish/guestfish-actions.pod:3661
11122 msgid ""
11123 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
11124 "undefined results for other partition table types (see "
11125 "L</part-get-parttype>)."
11126 msgstr ""
11127
11128 #. type: =head2
11129 #: ../fish/guestfish-actions.pod:3521
11130 msgid "part-get-parttype"
11131 msgstr ""
11132
11133 #. type: verbatim
11134 #: ../fish/guestfish-actions.pod:3523
11135 #, no-wrap
11136 msgid ""
11137 " part-get-parttype device\n"
11138 "\n"
11139 msgstr ""
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:3525 ../src/guestfs-actions.pod:5367
11143 msgid ""
11144 "This command examines the partition table on C<device> and returns the "
11145 "partition table type (format) being used."
11146 msgstr ""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:3528
11150 msgid ""
11151 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
11152 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
11153 "possible, although unusual.  See L</part-init> for a full list."
11154 msgstr ""
11155
11156 #. type: =head2
11157 #: ../fish/guestfish-actions.pod:3533
11158 msgid "part-init"
11159 msgstr ""
11160
11161 #. type: verbatim
11162 #: ../fish/guestfish-actions.pod:3535
11163 #, no-wrap
11164 msgid ""
11165 " part-init device parttype\n"
11166 "\n"
11167 msgstr ""
11168
11169 #. type: textblock
11170 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5387
11171 msgid ""
11172 "This creates an empty partition table on C<device> of one of the partition "
11173 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
11174 "(for large disks)."
11175 msgstr ""
11176
11177 #. type: textblock
11178 #: ../fish/guestfish-actions.pod:3541
11179 msgid ""
11180 "Initially there are no partitions.  Following this, you should call "
11181 "L</part-add> for each partition required."
11182 msgstr ""
11183
11184 #. type: textblock
11185 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5394
11186 msgid "Possible values for C<parttype> are:"
11187 msgstr ""
11188
11189 #. type: =item
11190 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5398
11191 msgid "B<efi>"
11192 msgstr ""
11193
11194 #. type: =item
11195 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5400
11196 msgid "B<gpt>"
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:3552 ../src/guestfs-actions.pod:5402
11201 msgid "Intel EFI / GPT partition table."
11202 msgstr ""
11203
11204 #. type: textblock
11205 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5404
11206 msgid ""
11207 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
11208 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
11209 "the C<mbr> format."
11210 msgstr ""
11211
11212 #. type: =item
11213 #: ../fish/guestfish-actions.pod:3558 ../src/guestfs-actions.pod:5408
11214 msgid "B<mbr>"
11215 msgstr ""
11216
11217 #. type: =item
11218 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5410
11219 msgid "B<msdos>"
11220 msgstr ""
11221
11222 #. type: textblock
11223 #: ../fish/guestfish-actions.pod:3562 ../src/guestfs-actions.pod:5412
11224 msgid ""
11225 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
11226 "Windows.  This partition type will B<only> work for device sizes up to 2 "
11227 "TB.  For large disks we recommend using C<gpt>."
11228 msgstr ""
11229
11230 #. type: textblock
11231 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5419
11232 msgid "Other partition table types that may work but are not supported include:"
11233 msgstr ""
11234
11235 #. type: =item
11236 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
11237 msgid "B<aix>"
11238 msgstr ""
11239
11240 #. type: textblock
11241 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5426
11242 msgid "AIX disk labels."
11243 msgstr ""
11244
11245 #. type: =item
11246 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5428
11247 msgid "B<amiga>"
11248 msgstr ""
11249
11250 #. type: =item
11251 #: ../fish/guestfish-actions.pod:3580 ../src/guestfs-actions.pod:5430
11252 msgid "B<rdb>"
11253 msgstr ""
11254
11255 #. type: textblock
11256 #: ../fish/guestfish-actions.pod:3582 ../src/guestfs-actions.pod:5432
11257 msgid "Amiga \"Rigid Disk Block\" format."
11258 msgstr ""
11259
11260 #. type: =item
11261 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5434
11262 msgid "B<bsd>"
11263 msgstr ""
11264
11265 #. type: textblock
11266 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5436
11267 msgid "BSD disk labels."
11268 msgstr ""
11269
11270 #. type: =item
11271 #: ../fish/guestfish-actions.pod:3588 ../src/guestfs-actions.pod:5438
11272 msgid "B<dasd>"
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:3590 ../src/guestfs-actions.pod:5440
11277 msgid "DASD, used on IBM mainframes."
11278 msgstr ""
11279
11280 #. type: =item
11281 #: ../fish/guestfish-actions.pod:3592 ../src/guestfs-actions.pod:5442
11282 msgid "B<dvh>"
11283 msgstr ""
11284
11285 #. type: textblock
11286 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5444
11287 msgid "MIPS/SGI volumes."
11288 msgstr ""
11289
11290 #. type: =item
11291 #: ../fish/guestfish-actions.pod:3596 ../src/guestfs-actions.pod:5446
11292 msgid "B<mac>"
11293 msgstr ""
11294
11295 #. type: textblock
11296 #: ../fish/guestfish-actions.pod:3598 ../src/guestfs-actions.pod:5448
11297 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
11298 msgstr ""
11299
11300 #. type: =item
11301 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
11302 msgid "B<pc98>"
11303 msgstr ""
11304
11305 #. type: textblock
11306 #: ../fish/guestfish-actions.pod:3602 ../src/guestfs-actions.pod:5452
11307 msgid "NEC PC-98 format, common in Japan apparently."
11308 msgstr ""
11309
11310 #. type: =item
11311 #: ../fish/guestfish-actions.pod:3604 ../src/guestfs-actions.pod:5454
11312 msgid "B<sun>"
11313 msgstr ""
11314
11315 #. type: textblock
11316 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5456
11317 msgid "Sun disk labels."
11318 msgstr ""
11319
11320 #. type: =head2
11321 #: ../fish/guestfish-actions.pod:3610
11322 msgid "part-list"
11323 msgstr ""
11324
11325 #. type: verbatim
11326 #: ../fish/guestfish-actions.pod:3612
11327 #, no-wrap
11328 msgid ""
11329 " part-list device\n"
11330 "\n"
11331 msgstr ""
11332
11333 #. type: textblock
11334 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5470
11335 msgid ""
11336 "This command parses the partition table on C<device> and returns the list of "
11337 "partitions found."
11338 msgstr ""
11339
11340 #. type: textblock
11341 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5473
11342 msgid "The fields in the returned structure are:"
11343 msgstr ""
11344
11345 #. type: =item
11346 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5477
11347 msgid "B<part_num>"
11348 msgstr ""
11349
11350 #. type: textblock
11351 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5479
11352 msgid "Partition number, counting from 1."
11353 msgstr ""
11354
11355 #. type: =item
11356 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5481
11357 msgid "B<part_start>"
11358 msgstr ""
11359
11360 #. type: textblock
11361 #: ../fish/guestfish-actions.pod:3627
11362 msgid ""
11363 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
11364 "the device's sector size, see L</blockdev-getss>."
11365 msgstr ""
11366
11367 #. type: =item
11368 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
11369 msgid "B<part_end>"
11370 msgstr ""
11371
11372 #. type: textblock
11373 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5488
11374 msgid "End of the partition in bytes."
11375 msgstr ""
11376
11377 #. type: =item
11378 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5490
11379 msgid "B<part_size>"
11380 msgstr ""
11381
11382 #. type: textblock
11383 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5492
11384 msgid "Size of the partition in bytes."
11385 msgstr ""
11386
11387 #. type: =head2
11388 #: ../fish/guestfish-actions.pod:3640
11389 msgid "part-set-bootable"
11390 msgstr ""
11391
11392 #. type: verbatim
11393 #: ../fish/guestfish-actions.pod:3642
11394 #, no-wrap
11395 msgid ""
11396 " part-set-bootable device partnum true|false\n"
11397 "\n"
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5510
11402 msgid ""
11403 "This sets the bootable flag on partition numbered C<partnum> on device "
11404 "C<device>.  Note that partitions are numbered from 1."
11405 msgstr ""
11406
11407 #. type: textblock
11408 #: ../fish/guestfish-actions.pod:3647 ../src/guestfs-actions.pod:5513
11409 msgid ""
11410 "The bootable flag is used by some operating systems (notably Windows) to "
11411 "determine which partition to boot from.  It is by no means universally "
11412 "recognized."
11413 msgstr ""
11414
11415 #. type: =head2
11416 #: ../fish/guestfish-actions.pod:3651
11417 msgid "part-set-mbr-id"
11418 msgstr ""
11419
11420 #. type: verbatim
11421 #: ../fish/guestfish-actions.pod:3653
11422 #, no-wrap
11423 msgid ""
11424 " part-set-mbr-id device partnum idbyte\n"
11425 "\n"
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:3655 ../src/guestfs-actions.pod:5529
11430 msgid ""
11431 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
11432 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
11433 "documentation are in fact hexadecimal numbers, but usually documented "
11434 "without any leading \"0x\" which might be confusing."
11435 msgstr ""
11436
11437 #. type: =head2
11438 #: ../fish/guestfish-actions.pod:3665
11439 msgid "part-set-name"
11440 msgstr ""
11441
11442 #. type: verbatim
11443 #: ../fish/guestfish-actions.pod:3667
11444 #, no-wrap
11445 msgid ""
11446 " part-set-name device partnum name\n"
11447 "\n"
11448 msgstr ""
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:3669 ../src/guestfs-actions.pod:5551
11452 msgid ""
11453 "This sets the partition name on partition numbered C<partnum> on device "
11454 "C<device>.  Note that partitions are numbered from 1."
11455 msgstr ""
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5554
11459 msgid ""
11460 "The partition name can only be set on certain types of partition table.  "
11461 "This works on C<gpt> but not on C<mbr> partitions."
11462 msgstr ""
11463
11464 #. type: =head2
11465 #: ../fish/guestfish-actions.pod:3675
11466 msgid "part-to-dev"
11467 msgstr ""
11468
11469 #. type: verbatim
11470 #: ../fish/guestfish-actions.pod:3677
11471 #, no-wrap
11472 msgid ""
11473 " part-to-dev partition\n"
11474 "\n"
11475 msgstr ""
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5567
11479 msgid ""
11480 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
11481 "partition number, returning the device name (eg. \"/dev/sdb\")."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3683
11486 msgid ""
11487 "The named partition must exist, for example as a string returned from "
11488 "L</list-partitions>."
11489 msgstr ""
11490
11491 #. type: =head2
11492 #: ../fish/guestfish-actions.pod:3686
11493 msgid "ping-daemon"
11494 msgstr ""
11495
11496 #. type: verbatim
11497 #: ../fish/guestfish-actions.pod:3688
11498 #, no-wrap
11499 msgid ""
11500 " ping-daemon\n"
11501 "\n"
11502 msgstr ""
11503
11504 #. type: textblock
11505 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5584
11506 msgid ""
11507 "This is a test probe into the guestfs daemon running inside the qemu "
11508 "subprocess.  Calling this function checks that the daemon responds to the "
11509 "ping message, without affecting the daemon or attached block device(s) in "
11510 "any other way."
11511 msgstr ""
11512
11513 #. type: =head2
11514 #: ../fish/guestfish-actions.pod:3695
11515 msgid "pread"
11516 msgstr ""
11517
11518 #. type: verbatim
11519 #: ../fish/guestfish-actions.pod:3697
11520 #, no-wrap
11521 msgid ""
11522 " pread path count offset\n"
11523 "\n"
11524 msgstr ""
11525
11526 #. type: textblock
11527 #: ../fish/guestfish-actions.pod:3699 ../src/guestfs-actions.pod:5602
11528 msgid ""
11529 "This command lets you read part of a file.  It reads C<count> bytes of the "
11530 "file, starting at C<offset>, from file C<path>."
11531 msgstr ""
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:3702 ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5605 ../src/guestfs-actions.pod:5631
11535 msgid ""
11536 "This may read fewer bytes than requested.  For further details see the "
11537 "L<pread(2)> system call."
11538 msgstr ""
11539
11540 #. type: textblock
11541 #: ../fish/guestfish-actions.pod:3705
11542 msgid "See also L</pwrite>, L</pread-device>."
11543 msgstr ""
11544
11545 #. type: =head2
11546 #: ../fish/guestfish-actions.pod:3710
11547 msgid "pread-device"
11548 msgstr ""
11549
11550 #. type: verbatim
11551 #: ../fish/guestfish-actions.pod:3712
11552 #, no-wrap
11553 msgid ""
11554 " pread-device device count offset\n"
11555 "\n"
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5628
11560 msgid ""
11561 "This command lets you read part of a file.  It reads C<count> bytes of "
11562 "C<device>, starting at C<offset>."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../fish/guestfish-actions.pod:3720
11567 msgid "See also L</pread>."
11568 msgstr ""
11569
11570 #. type: =head2
11571 #: ../fish/guestfish-actions.pod:3725
11572 msgid "pvcreate"
11573 msgstr ""
11574
11575 #. type: verbatim
11576 #: ../fish/guestfish-actions.pod:3727
11577 #, no-wrap
11578 msgid ""
11579 " pvcreate device\n"
11580 "\n"
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../fish/guestfish-actions.pod:3729 ../src/guestfs-actions.pod:5651
11585 msgid ""
11586 "This creates an LVM physical volume on the named C<device>, where C<device> "
11587 "should usually be a partition name such as C</dev/sda1>."
11588 msgstr ""
11589
11590 #. type: =head2
11591 #: ../fish/guestfish-actions.pod:3733
11592 msgid "pvremove"
11593 msgstr ""
11594
11595 #. type: verbatim
11596 #: ../fish/guestfish-actions.pod:3735
11597 #, no-wrap
11598 msgid ""
11599 " pvremove device\n"
11600 "\n"
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:3737 ../src/guestfs-actions.pod:5665
11605 msgid ""
11606 "This wipes a physical volume C<device> so that LVM will no longer recognise "
11607 "it."
11608 msgstr ""
11609
11610 #. type: textblock
11611 #: ../fish/guestfish-actions.pod:3740 ../src/guestfs-actions.pod:5668
11612 msgid ""
11613 "The implementation uses the C<pvremove> command which refuses to wipe "
11614 "physical volumes that contain any volume groups, so you have to remove those "
11615 "first."
11616 msgstr ""
11617
11618 #. type: =head2
11619 #: ../fish/guestfish-actions.pod:3744
11620 msgid "pvresize"
11621 msgstr ""
11622
11623 #. type: verbatim
11624 #: ../fish/guestfish-actions.pod:3746
11625 #, no-wrap
11626 msgid ""
11627 " pvresize device\n"
11628 "\n"
11629 msgstr ""
11630
11631 #. type: textblock
11632 #: ../fish/guestfish-actions.pod:3748 ../src/guestfs-actions.pod:5682
11633 msgid ""
11634 "This resizes (expands or shrinks) an existing LVM physical volume to match "
11635 "the new size of the underlying device."
11636 msgstr ""
11637
11638 #. type: =head2
11639 #: ../fish/guestfish-actions.pod:3751
11640 msgid "pvresize-size"
11641 msgstr ""
11642
11643 #. type: verbatim
11644 #: ../fish/guestfish-actions.pod:3753
11645 #, no-wrap
11646 msgid ""
11647 " pvresize-size device size\n"
11648 "\n"
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:3755
11653 msgid ""
11654 "This command is the same as L</pvresize> except that it allows you to "
11655 "specify the new size (in bytes) explicitly."
11656 msgstr ""
11657
11658 #. type: =head2
11659 #: ../fish/guestfish-actions.pod:3758
11660 msgid "pvs"
11661 msgstr ""
11662
11663 #. type: verbatim
11664 #: ../fish/guestfish-actions.pod:3760
11665 #, no-wrap
11666 msgid ""
11667 " pvs\n"
11668 "\n"
11669 msgstr ""
11670
11671 #. type: textblock
11672 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5708
11673 msgid ""
11674 "List all the physical volumes detected.  This is the equivalent of the "
11675 "L<pvs(8)> command."
11676 msgstr ""
11677
11678 #. type: textblock
11679 #: ../fish/guestfish-actions.pod:3765 ../src/guestfs-actions.pod:5711
11680 msgid ""
11681 "This returns a list of just the device names that contain PVs "
11682 "(eg. C</dev/sda2>)."
11683 msgstr ""
11684
11685 #. type: textblock
11686 #: ../fish/guestfish-actions.pod:3768
11687 msgid "See also L</pvs-full>."
11688 msgstr ""
11689
11690 #. type: =head2
11691 #: ../fish/guestfish-actions.pod:3770
11692 msgid "pvs-full"
11693 msgstr ""
11694
11695 #. type: verbatim
11696 #: ../fish/guestfish-actions.pod:3772
11697 #, no-wrap
11698 msgid ""
11699 " pvs-full\n"
11700 "\n"
11701 msgstr ""
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:3774 ../src/guestfs-actions.pod:5727
11705 msgid ""
11706 "List all the physical volumes detected.  This is the equivalent of the "
11707 "L<pvs(8)> command.  The \"full\" version includes all fields."
11708 msgstr ""
11709
11710 #. type: =head2
11711 #: ../fish/guestfish-actions.pod:3777
11712 msgid "pvuuid"
11713 msgstr ""
11714
11715 #. type: verbatim
11716 #: ../fish/guestfish-actions.pod:3779
11717 #, no-wrap
11718 msgid ""
11719 " pvuuid device\n"
11720 "\n"
11721 msgstr ""
11722
11723 #. type: textblock
11724 #: ../fish/guestfish-actions.pod:3781 ../src/guestfs-actions.pod:5742
11725 msgid "This command returns the UUID of the LVM PV C<device>."
11726 msgstr ""
11727
11728 #. type: =head2
11729 #: ../fish/guestfish-actions.pod:3783
11730 msgid "pwrite"
11731 msgstr ""
11732
11733 #. type: verbatim
11734 #: ../fish/guestfish-actions.pod:3785
11735 #, no-wrap
11736 msgid ""
11737 " pwrite path content offset\n"
11738 "\n"
11739 msgstr ""
11740
11741 #. type: textblock
11742 #: ../fish/guestfish-actions.pod:3787 ../src/guestfs-actions.pod:5758
11743 msgid ""
11744 "This command writes to part of a file.  It writes the data buffer C<content> "
11745 "to the file C<path> starting at offset C<offset>."
11746 msgstr ""
11747
11748 #. type: textblock
11749 #: ../fish/guestfish-actions.pod:3790 ../src/guestfs-actions.pod:5761
11750 msgid ""
11751 "This command implements the L<pwrite(2)> system call, and like that system "
11752 "call it may not write the full data requested.  The return value is the "
11753 "number of bytes that were actually written to the file.  This could even be "
11754 "0, although short writes are unlikely for regular files in ordinary "
11755 "circumstances."
11756 msgstr ""
11757
11758 #. type: textblock
11759 #: ../fish/guestfish-actions.pod:3796
11760 msgid "See also L</pread>, L</pwrite-device>."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:3801
11765 msgid "pwrite-device"
11766 msgstr ""
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:3803
11770 #, no-wrap
11771 msgid ""
11772 " pwrite-device device content offset\n"
11773 "\n"
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5785
11778 msgid ""
11779 "This command writes to part of a device.  It writes the data buffer "
11780 "C<content> to C<device> starting at offset C<offset>."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5788
11785 msgid ""
11786 "This command implements the L<pwrite(2)> system call, and like that system "
11787 "call it may not write the full data requested (although short writes to disk "
11788 "devices and partitions are probably impossible with standard Linux kernels)."
11789 msgstr ""
11790
11791 #. type: textblock
11792 #: ../fish/guestfish-actions.pod:3813
11793 msgid "See also L</pwrite>."
11794 msgstr ""
11795
11796 #. type: =head2
11797 #: ../fish/guestfish-actions.pod:3818
11798 msgid "read-file"
11799 msgstr ""
11800
11801 #. type: verbatim
11802 #: ../fish/guestfish-actions.pod:3820
11803 #, no-wrap
11804 msgid ""
11805 " read-file path\n"
11806 "\n"
11807 msgstr ""
11808
11809 #. type: textblock
11810 #: ../fish/guestfish-actions.pod:3822 ../src/guestfs-actions.pod:5809
11811 msgid "This calls returns the contents of the file C<path> as a buffer."
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../fish/guestfish-actions.pod:3825
11816 msgid ""
11817 "Unlike L</cat>, this function can correctly handle files that contain "
11818 "embedded ASCII NUL characters.  However unlike L</download>, this function "
11819 "is limited in the total size of file that can be handled."
11820 msgstr ""
11821
11822 #. type: =head2
11823 #: ../fish/guestfish-actions.pod:3833
11824 msgid "read-lines"
11825 msgstr ""
11826
11827 #. type: verbatim
11828 #: ../fish/guestfish-actions.pod:3835
11829 #, no-wrap
11830 msgid ""
11831 " read-lines path\n"
11832 "\n"
11833 msgstr ""
11834
11835 #. type: textblock
11836 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5834
11837 msgid ""
11838 "The file contents are returned as a list of lines.  Trailing C<LF> and "
11839 "C<CRLF> character sequences are I<not> returned."
11840 msgstr ""
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:3842
11844 msgid ""
11845 "Note that this function cannot correctly handle binary files (specifically, "
11846 "files containing C<\\0> character which is treated as end of line).  For "
11847 "those you need to use the L</read-file> function which has a more complex "
11848 "interface."
11849 msgstr ""
11850
11851 #. type: =head2
11852 #: ../fish/guestfish-actions.pod:3847
11853 msgid "readdir"
11854 msgstr ""
11855
11856 #. type: verbatim
11857 #: ../fish/guestfish-actions.pod:3849
11858 #, no-wrap
11859 msgid ""
11860 " readdir dir\n"
11861 "\n"
11862 msgstr ""
11863
11864 #. type: textblock
11865 #: ../fish/guestfish-actions.pod:3851 ../src/guestfs-actions.pod:5854
11866 msgid "This returns the list of directory entries in directory C<dir>."
11867 msgstr ""
11868
11869 #. type: textblock
11870 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5856
11871 msgid ""
11872 "All entries in the directory are returned, including C<.> and C<..>.  The "
11873 "entries are I<not> sorted, but returned in the same order as the underlying "
11874 "filesystem."
11875 msgstr ""
11876
11877 #. type: textblock
11878 #: ../fish/guestfish-actions.pod:3857 ../src/guestfs-actions.pod:5860
11879 msgid ""
11880 "Also this call returns basic file type information about each file.  The "
11881 "C<ftyp> field will contain one of the following characters:"
11882 msgstr ""
11883
11884 #. type: =item
11885 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
11886 msgid "'b'"
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../fish/guestfish-actions.pod:3864 ../src/guestfs-actions.pod:5867
11891 msgid "Block special"
11892 msgstr ""
11893
11894 #. type: =item
11895 #: ../fish/guestfish-actions.pod:3866 ../src/guestfs-actions.pod:5869
11896 msgid "'c'"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:5871
11901 msgid "Char special"
11902 msgstr ""
11903
11904 #. type: =item
11905 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5873
11906 msgid "'d'"
11907 msgstr ""
11908
11909 #. type: textblock
11910 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:5875
11911 msgid "Directory"
11912 msgstr ""
11913
11914 #. type: =item
11915 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:5877
11916 msgid "'f'"
11917 msgstr ""
11918
11919 #. type: textblock
11920 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:5879
11921 msgid "FIFO (named pipe)"
11922 msgstr ""
11923
11924 #. type: =item
11925 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:5881
11926 msgid "'l'"
11927 msgstr ""
11928
11929 #. type: textblock
11930 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5883
11931 msgid "Symbolic link"
11932 msgstr ""
11933
11934 #. type: =item
11935 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
11936 msgid "'r'"
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
11941 msgid "Regular file"
11942 msgstr ""
11943
11944 #. type: =item
11945 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:5889
11946 msgid "'s'"
11947 msgstr ""
11948
11949 #. type: textblock
11950 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
11951 msgid "Socket"
11952 msgstr ""
11953
11954 #. type: =item
11955 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:5893
11956 msgid "'u'"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:5895
11961 msgid "Unknown file type"
11962 msgstr ""
11963
11964 #. type: =item
11965 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5897
11966 msgid "'?'"
11967 msgstr ""
11968
11969 #. type: textblock
11970 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:5899
11971 msgid "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
11972 msgstr ""
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:3901
11976 msgid ""
11977 "This function is primarily intended for use by programs.  To get a simple "
11978 "list of names, use L</ls>.  To get a printable directory for human "
11979 "consumption, use L</ll>."
11980 msgstr ""
11981
11982 #. type: =head2
11983 #: ../fish/guestfish-actions.pod:3905
11984 msgid "readlink"
11985 msgstr ""
11986
11987 #. type: verbatim
11988 #: ../fish/guestfish-actions.pod:3907
11989 #, no-wrap
11990 msgid ""
11991 " readlink path\n"
11992 "\n"
11993 msgstr ""
11994
11995 #. type: textblock
11996 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5920
11997 msgid "This command reads the target of a symbolic link."
11998 msgstr ""
11999
12000 #. type: =head2
12001 #: ../fish/guestfish-actions.pod:3911
12002 msgid "readlinklist"
12003 msgstr ""
12004
12005 #. type: verbatim
12006 #: ../fish/guestfish-actions.pod:3913
12007 #, no-wrap
12008 msgid ""
12009 " readlinklist path 'names ...'\n"
12010 "\n"
12011 msgstr ""
12012
12013 #. type: textblock
12014 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5934
12015 msgid ""
12016 "This call allows you to do a C<readlink> operation on multiple files, where "
12017 "all files are in the directory C<path>.  C<names> is the list of files from "
12018 "this directory."
12019 msgstr ""
12020
12021 #. type: textblock
12022 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5938
12023 msgid ""
12024 "On return you get a list of strings, with a one-to-one correspondence to the "
12025 "C<names> list.  Each string is the value of the symbolic link."
12026 msgstr ""
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5942
12030 msgid ""
12031 "If the C<readlink(2)> operation fails on any name, then the corresponding "
12032 "result string is the empty string C<\"\">.  However the whole operation is "
12033 "completed even if there were C<readlink(2)> errors, and so you can call this "
12034 "function with names where you don't know if they are symbolic links already "
12035 "(albeit slightly less efficient)."
12036 msgstr ""
12037
12038 #. type: textblock
12039 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:5949
12040 msgid ""
12041 "This call is intended for programs that want to efficiently list a directory "
12042 "contents without making many round-trips.  Very long directory listings "
12043 "might cause the protocol message size to be exceeded, causing this call to "
12044 "fail.  The caller must split up such requests into smaller groups of names."
12045 msgstr ""
12046
12047 #. type: =head2
12048 #: ../fish/guestfish-actions.pod:3937
12049 msgid "realpath"
12050 msgstr ""
12051
12052 #. type: verbatim
12053 #: ../fish/guestfish-actions.pod:3939
12054 #, no-wrap
12055 msgid ""
12056 " realpath path\n"
12057 "\n"
12058 msgstr ""
12059
12060 #. type: textblock
12061 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:5968
12062 msgid ""
12063 "Return the canonicalized absolute pathname of C<path>.  The returned path "
12064 "has no C<.>, C<..> or symbolic link path elements."
12065 msgstr ""
12066
12067 #. type: =head2
12068 #: ../fish/guestfish-actions.pod:3944
12069 msgid "removexattr"
12070 msgstr ""
12071
12072 #. type: verbatim
12073 #: ../fish/guestfish-actions.pod:3946
12074 #, no-wrap
12075 msgid ""
12076 " removexattr xattr path\n"
12077 "\n"
12078 msgstr ""
12079
12080 #. type: textblock
12081 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:5983
12082 msgid "This call removes the extended attribute named C<xattr> of the file C<path>."
12083 msgstr ""
12084
12085 #. type: textblock
12086 #: ../fish/guestfish-actions.pod:3951
12087 msgid "See also: L</lremovexattr>, L<attr(5)>."
12088 msgstr ""
12089
12090 #. type: =head2
12091 #: ../fish/guestfish-actions.pod:3953
12092 msgid "resize2fs"
12093 msgstr ""
12094
12095 #. type: verbatim
12096 #: ../fish/guestfish-actions.pod:3955
12097 #, no-wrap
12098 msgid ""
12099 " resize2fs device\n"
12100 "\n"
12101 msgstr ""
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:3957 ../src/guestfs-actions.pod:5998
12105 msgid ""
12106 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
12107 "underlying device."
12108 msgstr ""
12109
12110 #. type: textblock
12111 #: ../fish/guestfish-actions.pod:3960
12112 msgid ""
12113 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
12114 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
12115 "gives an error about this and sometimes not.  In any case, it is always safe "
12116 "to call L</e2fsck-f> before calling this function."
12117 msgstr ""
12118
12119 #. type: =head2
12120 #: ../fish/guestfish-actions.pod:3966
12121 msgid "resize2fs-M"
12122 msgstr ""
12123
12124 #. type: verbatim
12125 #: ../fish/guestfish-actions.pod:3968
12126 #, no-wrap
12127 msgid ""
12128 " resize2fs-M device\n"
12129 "\n"
12130 msgstr ""
12131
12132 #. type: textblock
12133 #: ../fish/guestfish-actions.pod:3970
12134 msgid ""
12135 "This command is the same as L</resize2fs>, but the filesystem is resized to "
12136 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
12137 "command."
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3974
12142 msgid ""
12143 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
12144 "and read the C<Block size> and C<Block count> values.  These two numbers, "
12145 "multiplied together, give the resulting size of the minimal filesystem in "
12146 "bytes."
12147 msgstr ""
12148
12149 #. type: =head2
12150 #: ../fish/guestfish-actions.pod:3979
12151 msgid "resize2fs-size"
12152 msgstr ""
12153
12154 #. type: verbatim
12155 #: ../fish/guestfish-actions.pod:3981
12156 #, no-wrap
12157 msgid ""
12158 " resize2fs-size device size\n"
12159 "\n"
12160 msgstr ""
12161
12162 #. type: textblock
12163 #: ../fish/guestfish-actions.pod:3983
12164 msgid ""
12165 "This command is the same as L</resize2fs> except that it allows you to "
12166 "specify the new size (in bytes) explicitly."
12167 msgstr ""
12168
12169 #. type: =head2
12170 #: ../fish/guestfish-actions.pod:3986
12171 msgid "rm"
12172 msgstr ""
12173
12174 #. type: verbatim
12175 #: ../fish/guestfish-actions.pod:3988
12176 #, no-wrap
12177 msgid ""
12178 " rm path\n"
12179 "\n"
12180 msgstr ""
12181
12182 #. type: textblock
12183 #: ../fish/guestfish-actions.pod:3990 ../src/guestfs-actions.pod:6050
12184 msgid "Remove the single file C<path>."
12185 msgstr ""
12186
12187 #. type: =head2
12188 #: ../fish/guestfish-actions.pod:3992
12189 msgid "rm-rf"
12190 msgstr ""
12191
12192 #. type: verbatim
12193 #: ../fish/guestfish-actions.pod:3994
12194 #, no-wrap
12195 msgid ""
12196 " rm-rf path\n"
12197 "\n"
12198 msgstr ""
12199
12200 #. type: textblock
12201 #: ../fish/guestfish-actions.pod:3996 ../src/guestfs-actions.pod:6062
12202 msgid ""
12203 "Remove the file or directory C<path>, recursively removing the contents if "
12204 "its a directory.  This is like the C<rm -rf> shell command."
12205 msgstr ""
12206
12207 #. type: =head2
12208 #: ../fish/guestfish-actions.pod:4000
12209 msgid "rmdir"
12210 msgstr ""
12211
12212 #. type: verbatim
12213 #: ../fish/guestfish-actions.pod:4002
12214 #, no-wrap
12215 msgid ""
12216 " rmdir path\n"
12217 "\n"
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6076
12222 msgid "Remove the single directory C<path>."
12223 msgstr ""
12224
12225 #. type: =head2
12226 #: ../fish/guestfish-actions.pod:4006
12227 msgid "rmmountpoint"
12228 msgstr ""
12229
12230 #. type: verbatim
12231 #: ../fish/guestfish-actions.pod:4008
12232 #, no-wrap
12233 msgid ""
12234 " rmmountpoint exemptpath\n"
12235 "\n"
12236 msgstr ""
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:4010
12240 msgid ""
12241 "This calls removes a mountpoint that was previously created with "
12242 "L</mkmountpoint>.  See L</mkmountpoint> for full details."
12243 msgstr ""
12244
12245 #. type: =head2
12246 #: ../fish/guestfish-actions.pod:4014
12247 msgid "scrub-device"
12248 msgstr ""
12249
12250 #. type: verbatim
12251 #: ../fish/guestfish-actions.pod:4016
12252 #, no-wrap
12253 msgid ""
12254 " scrub-device device\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:4018 ../src/guestfs-actions.pod:6102
12260 msgid ""
12261 "This command writes patterns over C<device> to make data retrieval more "
12262 "difficult."
12263 msgstr ""
12264
12265 #. type: textblock
12266 #: ../fish/guestfish-actions.pod:4021 ../fish/guestfish-actions.pod:4036 ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6105 ../src/guestfs-actions.pod:6126 ../src/guestfs-actions.pod:6145
12267 msgid ""
12268 "It is an interface to the L<scrub(1)> program.  See that manual page for "
12269 "more details."
12270 msgstr ""
12271
12272 #. type: =head2
12273 #: ../fish/guestfish-actions.pod:4027
12274 msgid "scrub-file"
12275 msgstr ""
12276
12277 #. type: verbatim
12278 #: ../fish/guestfish-actions.pod:4029
12279 #, no-wrap
12280 msgid ""
12281 " scrub-file file\n"
12282 "\n"
12283 msgstr ""
12284
12285 #. type: textblock
12286 #: ../fish/guestfish-actions.pod:4031 ../src/guestfs-actions.pod:6121
12287 msgid ""
12288 "This command writes patterns over a file to make data retrieval more "
12289 "difficult."
12290 msgstr ""
12291
12292 #. type: textblock
12293 #: ../fish/guestfish-actions.pod:4034 ../src/guestfs-actions.pod:6124
12294 msgid "The file is I<removed> after scrubbing."
12295 msgstr ""
12296
12297 #. type: =head2
12298 #: ../fish/guestfish-actions.pod:4039
12299 msgid "scrub-freespace"
12300 msgstr ""
12301
12302 #. type: verbatim
12303 #: ../fish/guestfish-actions.pod:4041
12304 #, no-wrap
12305 msgid ""
12306 " scrub-freespace dir\n"
12307 "\n"
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:4043
12312 msgid ""
12313 "This command creates the directory C<dir> and then fills it with files until "
12314 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
12315 "deletes them.  The intention is to scrub any free space on the partition "
12316 "containing C<dir>."
12317 msgstr ""
12318
12319 #. type: =head2
12320 #: ../fish/guestfish-actions.pod:4052
12321 msgid "set-append"
12322 msgstr ""
12323
12324 #. type: =head2
12325 #: ../fish/guestfish-actions.pod:4054
12326 msgid "append"
12327 msgstr ""
12328
12329 #. type: verbatim
12330 #: ../fish/guestfish-actions.pod:4056
12331 #, no-wrap
12332 msgid ""
12333 " set-append append\n"
12334 "\n"
12335 msgstr ""
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6158
12339 msgid ""
12340 "This function is used to add additional options to the guest kernel command "
12341 "line."
12342 msgstr ""
12343
12344 #. type: textblock
12345 #: ../fish/guestfish-actions.pod:4061 ../src/guestfs-actions.pod:6161
12346 msgid ""
12347 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
12348 "environment variable."
12349 msgstr ""
12350
12351 #. type: textblock
12352 #: ../fish/guestfish-actions.pod:4064 ../src/guestfs-actions.pod:6164
12353 msgid ""
12354 "Setting C<append> to C<NULL> means I<no> additional options are passed "
12355 "(libguestfs always adds a few of its own)."
12356 msgstr ""
12357
12358 #. type: =head2
12359 #: ../fish/guestfish-actions.pod:4067
12360 msgid "set-attach-method"
12361 msgstr ""
12362
12363 #. type: =head2
12364 #: ../fish/guestfish-actions.pod:4069
12365 msgid "attach-method"
12366 msgstr ""
12367
12368 #. type: verbatim
12369 #: ../fish/guestfish-actions.pod:4071
12370 #, no-wrap
12371 msgid ""
12372 " set-attach-method attachmethod\n"
12373 "\n"
12374 msgstr ""
12375
12376 #. type: textblock
12377 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6177
12378 msgid ""
12379 "Set the method that libguestfs uses to connect to the back end guestfsd "
12380 "daemon.  Possible methods are:"
12381 msgstr ""
12382
12383 #. type: =item
12384 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182 ../src/guestfs.pod:2688
12385 msgid "C<appliance>"
12386 msgstr ""
12387
12388 #. type: textblock
12389 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6184
12390 msgid ""
12391 "Launch an appliance and connect to it.  This is the ordinary method and the "
12392 "default."
12393 msgstr ""
12394
12395 #. type: =item
12396 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
12397 msgid "C<unix:I<path>>"
12398 msgstr ""
12399
12400 #. type: textblock
12401 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
12402 msgid "Connect to the Unix domain socket I<path>."
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:4087 ../src/guestfs-actions.pod:6191
12407 msgid ""
12408 "This method lets you connect to an existing daemon or (using virtio-serial) "
12409 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
12410 "RUNNING DAEMONS>."
12411 msgstr ""
12412
12413 #. type: =head2
12414 #: ../fish/guestfish-actions.pod:4093
12415 msgid "set-autosync"
12416 msgstr ""
12417
12418 #. type: =head2
12419 #: ../fish/guestfish-actions.pod:4095
12420 msgid "autosync"
12421 msgstr ""
12422
12423 #. type: verbatim
12424 #: ../fish/guestfish-actions.pod:4097
12425 #, no-wrap
12426 msgid ""
12427 " set-autosync true|false\n"
12428 "\n"
12429 msgstr ""
12430
12431 #. type: textblock
12432 #: ../fish/guestfish-actions.pod:4099 ../src/guestfs-actions.pod:6207
12433 msgid ""
12434 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
12435 "effort attempt to make filesystems consistent and synchronized when the "
12436 "handle is closed (also if the program exits without closing handles)."
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
12441 msgid ""
12442 "This is enabled by default (since libguestfs 1.5.24, previously it was "
12443 "disabled by default)."
12444 msgstr ""
12445
12446 #. type: =head2
12447 #: ../fish/guestfish-actions.pod:4107
12448 msgid "set-direct"
12449 msgstr ""
12450
12451 #. type: =head2
12452 #: ../fish/guestfish-actions.pod:4109
12453 msgid "direct"
12454 msgstr ""
12455
12456 #. type: verbatim
12457 #: ../fish/guestfish-actions.pod:4111
12458 #, no-wrap
12459 msgid ""
12460 " set-direct true|false\n"
12461 "\n"
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6225
12466 msgid ""
12467 "If the direct appliance mode flag is enabled, then stdin and stdout are "
12468 "passed directly through to the appliance once it is launched."
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:4117
12473 msgid ""
12474 "One consequence of this is that log messages aren't caught by the library "
12475 "and handled by L</set-log-message-callback>, but go straight to stdout."
12476 msgstr ""
12477
12478 #. type: textblock
12479 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6233
12480 msgid "You probably don't want to use this unless you know what you are doing."
12481 msgstr ""
12482
12483 #. type: textblock
12484 #: ../fish/guestfish-actions.pod:4124 ../src/guestfs-actions.pod:6236
12485 msgid "The default is disabled."
12486 msgstr ""
12487
12488 #. type: =head2
12489 #: ../fish/guestfish-actions.pod:4126
12490 msgid "set-e2label"
12491 msgstr ""
12492
12493 #. type: verbatim
12494 #: ../fish/guestfish-actions.pod:4128
12495 #, no-wrap
12496 msgid ""
12497 " set-e2label device label\n"
12498 "\n"
12499 msgstr ""
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6249
12503 msgid ""
12504 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
12505 "C<label>.  Filesystem labels are limited to 16 characters."
12506 msgstr ""
12507
12508 #. type: textblock
12509 #: ../fish/guestfish-actions.pod:4134
12510 msgid ""
12511 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
12512 "label on a filesystem."
12513 msgstr ""
12514
12515 #. type: =head2
12516 #: ../fish/guestfish-actions.pod:4137
12517 msgid "set-e2uuid"
12518 msgstr ""
12519
12520 #. type: verbatim
12521 #: ../fish/guestfish-actions.pod:4139
12522 #, no-wrap
12523 msgid ""
12524 " set-e2uuid device uuid\n"
12525 "\n"
12526 msgstr ""
12527
12528 #. type: textblock
12529 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6267
12530 msgid ""
12531 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
12532 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
12533 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:4146
12538 msgid ""
12539 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
12540 "UUID of a filesystem."
12541 msgstr ""
12542
12543 #. type: =head2
12544 #: ../fish/guestfish-actions.pod:4149
12545 msgid "set-memsize"
12546 msgstr ""
12547
12548 #. type: =head2
12549 #: ../fish/guestfish-actions.pod:4151
12550 msgid "memsize"
12551 msgstr ""
12552
12553 #. type: verbatim
12554 #: ../fish/guestfish-actions.pod:4153
12555 #, no-wrap
12556 msgid ""
12557 " set-memsize memsize\n"
12558 "\n"
12559 msgstr ""
12560
12561 #. type: textblock
12562 #: ../fish/guestfish-actions.pod:4155
12563 msgid ""
12564 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
12565 "This only has any effect if called before L</launch>."
12566 msgstr ""
12567
12568 #. type: textblock
12569 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6289
12570 msgid ""
12571 "You can also change this by setting the environment variable "
12572 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
12573 msgstr ""
12574
12575 #. type: =head2
12576 #: ../fish/guestfish-actions.pod:4166
12577 msgid "set-network"
12578 msgstr ""
12579
12580 #. type: =head2
12581 #: ../fish/guestfish-actions.pod:4168
12582 msgid "network"
12583 msgstr ""
12584
12585 #. type: verbatim
12586 #: ../fish/guestfish-actions.pod:4170
12587 #, no-wrap
12588 msgid ""
12589 " set-network true|false\n"
12590 "\n"
12591 msgstr ""
12592
12593 #. type: textblock
12594 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6306
12595 msgid ""
12596 "If C<network> is true, then the network is enabled in the libguestfs "
12597 "appliance.  The default is false."
12598 msgstr ""
12599
12600 #. type: textblock
12601 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6309
12602 msgid ""
12603 "This affects whether commands are able to access the network (see "
12604 "L<guestfs(3)/RUNNING COMMANDS>)."
12605 msgstr ""
12606
12607 #. type: textblock
12608 #: ../fish/guestfish-actions.pod:4178
12609 msgid "You must call this before calling L</launch>, otherwise it has no effect."
12610 msgstr ""
12611
12612 #. type: =head2
12613 #: ../fish/guestfish-actions.pod:4181
12614 msgid "set-path"
12615 msgstr ""
12616
12617 #. type: verbatim
12618 #: ../fish/guestfish-actions.pod:4185
12619 #, no-wrap
12620 msgid ""
12621 " set-path searchpath\n"
12622 "\n"
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:4187 ../src/guestfs-actions.pod:6325
12627 msgid "Set the path that libguestfs searches for kernel and initrd.img."
12628 msgstr ""
12629
12630 #. type: textblock
12631 #: ../fish/guestfish-actions.pod:4189 ../src/guestfs-actions.pod:6327
12632 msgid ""
12633 "The default is C<$libdir/guestfs> unless overridden by setting "
12634 "C<LIBGUESTFS_PATH> environment variable."
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
12639 msgid "Setting C<path> to C<NULL> restores the default path."
12640 msgstr ""
12641
12642 #. type: =head2
12643 #: ../fish/guestfish-actions.pod:4194
12644 msgid "set-pgroup"
12645 msgstr ""
12646
12647 #. type: =head2
12648 #: ../fish/guestfish-actions.pod:4196
12649 msgid "pgroup"
12650 msgstr ""
12651
12652 #. type: verbatim
12653 #: ../fish/guestfish-actions.pod:4198
12654 #, no-wrap
12655 msgid ""
12656 " set-pgroup true|false\n"
12657 "\n"
12658 msgstr ""
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6342
12662 msgid ""
12663 "If C<pgroup> is true, child processes are placed into their own process "
12664 "group."
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6345
12669 msgid ""
12670 "The practical upshot of this is that signals like C<SIGINT> (from users "
12671 "pressing C<^C>) won't be received by the child process."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6348
12676 msgid ""
12677 "The default for this flag is false, because usually you want C<^C> to kill "
12678 "the subprocess."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:4209
12683 msgid "set-qemu"
12684 msgstr ""
12685
12686 #. type: =head2
12687 #: ../fish/guestfish-actions.pod:4211
12688 msgid "qemu"
12689 msgstr ""
12690
12691 #. type: verbatim
12692 #: ../fish/guestfish-actions.pod:4213
12693 #, no-wrap
12694 msgid ""
12695 " set-qemu qemu\n"
12696 "\n"
12697 msgstr ""
12698
12699 #. type: textblock
12700 #: ../fish/guestfish-actions.pod:4215 ../src/guestfs-actions.pod:6361
12701 msgid "Set the qemu binary that we will use."
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6363
12706 msgid "The default is chosen when the library was compiled by the configure script."
12707 msgstr ""
12708
12709 #. type: textblock
12710 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
12711 msgid ""
12712 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
12713 "variable."
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6369
12718 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
12719 msgstr ""
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
12723 msgid ""
12724 "Note that you should call this function as early as possible after creating "
12725 "the handle.  This is because some pre-launch operations depend on testing "
12726 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
12727 "don't retest features, and so you might see inconsistent results.  Using the "
12728 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
12729 "the qemu binary at the same time as the handle is created."
12730 msgstr ""
12731
12732 #. type: =head2
12733 #: ../fish/guestfish-actions.pod:4233
12734 msgid "set-recovery-proc"
12735 msgstr ""
12736
12737 #. type: =head2
12738 #: ../fish/guestfish-actions.pod:4235
12739 msgid "recovery-proc"
12740 msgstr ""
12741
12742 #. type: verbatim
12743 #: ../fish/guestfish-actions.pod:4237
12744 #, no-wrap
12745 msgid ""
12746 " set-recovery-proc true|false\n"
12747 "\n"
12748 msgstr ""
12749
12750 #. type: textblock
12751 #: ../fish/guestfish-actions.pod:4239
12752 msgid ""
12753 "If this is called with the parameter C<false> then L</launch> does not "
12754 "create a recovery process.  The purpose of the recovery process is to stop "
12755 "runaway qemu processes in the case where the main program aborts abruptly."
12756 msgstr ""
12757
12758 #. type: textblock
12759 #: ../fish/guestfish-actions.pod:4244
12760 msgid ""
12761 "This only has any effect if called before L</launch>, and the default is "
12762 "true."
12763 msgstr ""
12764
12765 #. type: textblock
12766 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6397
12767 msgid ""
12768 "About the only time when you would want to disable this is if the main "
12769 "process will fork itself into the background (\"daemonize\" itself).  In "
12770 "this case the recovery process thinks that the main program has disappeared "
12771 "and so kills qemu, which is not very helpful."
12772 msgstr ""
12773
12774 #. type: =head2
12775 #: ../fish/guestfish-actions.pod:4253
12776 msgid "set-selinux"
12777 msgstr ""
12778
12779 #. type: =head2
12780 #: ../fish/guestfish-actions.pod:4255
12781 msgid "selinux"
12782 msgstr ""
12783
12784 #. type: verbatim
12785 #: ../fish/guestfish-actions.pod:4257
12786 #, no-wrap
12787 msgid ""
12788 " set-selinux true|false\n"
12789 "\n"
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6413
12794 msgid ""
12795 "This sets the selinux flag that is passed to the appliance at boot time.  "
12796 "The default is C<selinux=0> (disabled)."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6416
12801 msgid ""
12802 "Note that if SELinux is enabled, it is always in Permissive mode "
12803 "(C<enforcing=0>)."
12804 msgstr ""
12805
12806 #. type: =head2
12807 #: ../fish/guestfish-actions.pod:4268
12808 msgid "set-trace"
12809 msgstr ""
12810
12811 #. type: =head2
12812 #: ../fish/guestfish-actions.pod:4270
12813 msgid "trace"
12814 msgstr ""
12815
12816 #. type: verbatim
12817 #: ../fish/guestfish-actions.pod:4272
12818 #, no-wrap
12819 msgid ""
12820 " set-trace true|false\n"
12821 "\n"
12822 msgstr ""
12823
12824 #. type: textblock
12825 #: ../fish/guestfish-actions.pod:4274 ../src/guestfs-actions.pod:6432
12826 msgid ""
12827 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
12828 "return values are traced."
12829 msgstr ""
12830
12831 #. type: textblock
12832 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6435
12833 msgid ""
12834 "If you want to trace C API calls into libguestfs (and other libraries) then "
12835 "possibly a better way is to use the external ltrace(1) command."
12836 msgstr ""
12837
12838 #. type: textblock
12839 #: ../fish/guestfish-actions.pod:4281 ../src/guestfs-actions.pod:6439
12840 msgid ""
12841 "Command traces are disabled unless the environment variable "
12842 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
12843 msgstr ""
12844
12845 #. type: textblock
12846 #: ../fish/guestfish-actions.pod:4284
12847 msgid ""
12848 "Trace messages are normally sent to C<stderr>, unless you register a "
12849 "callback to send them somewhere else (see L</set-event-callback>)."
12850 msgstr ""
12851
12852 #. type: =head2
12853 #: ../fish/guestfish-actions.pod:4288
12854 msgid "set-verbose"
12855 msgstr ""
12856
12857 #. type: =head2
12858 #: ../fish/guestfish-actions.pod:4290
12859 msgid "verbose"
12860 msgstr ""
12861
12862 #. type: verbatim
12863 #: ../fish/guestfish-actions.pod:4292
12864 #, no-wrap
12865 msgid ""
12866 " set-verbose true|false\n"
12867 "\n"
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:4294 ../src/guestfs-actions.pod:6456
12872 msgid "If C<verbose> is true, this turns on verbose messages."
12873 msgstr ""
12874
12875 #. type: textblock
12876 #: ../fish/guestfish-actions.pod:4296 ../src/guestfs-actions.pod:6458
12877 msgid ""
12878 "Verbose messages are disabled unless the environment variable "
12879 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
12880 msgstr ""
12881
12882 #. type: textblock
12883 #: ../fish/guestfish-actions.pod:4299
12884 msgid ""
12885 "Verbose messages are normally sent to C<stderr>, unless you register a "
12886 "callback to send them somewhere else (see L</set-event-callback>)."
12887 msgstr ""
12888
12889 #. type: =head2
12890 #: ../fish/guestfish-actions.pod:4303
12891 msgid "setcon"
12892 msgstr ""
12893
12894 #. type: verbatim
12895 #: ../fish/guestfish-actions.pod:4305
12896 #, no-wrap
12897 msgid ""
12898 " setcon context\n"
12899 "\n"
12900 msgstr ""
12901
12902 #. type: textblock
12903 #: ../fish/guestfish-actions.pod:4307 ../src/guestfs-actions.pod:6475
12904 msgid ""
12905 "This sets the SELinux security context of the daemon to the string "
12906 "C<context>."
12907 msgstr ""
12908
12909 #. type: textblock
12910 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6478
12911 msgid "See the documentation about SELINUX in L<guestfs(3)>."
12912 msgstr ""
12913
12914 #. type: =head2
12915 #: ../fish/guestfish-actions.pod:4312
12916 msgid "setxattr"
12917 msgstr ""
12918
12919 #. type: verbatim
12920 #: ../fish/guestfish-actions.pod:4314
12921 #, no-wrap
12922 msgid ""
12923 " setxattr xattr val vallen path\n"
12924 "\n"
12925 msgstr ""
12926
12927 #. type: textblock
12928 #: ../fish/guestfish-actions.pod:4316 ../src/guestfs-actions.pod:6493
12929 msgid ""
12930 "This call sets the extended attribute named C<xattr> of the file C<path> to "
12931 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
12932 msgstr ""
12933
12934 #. type: textblock
12935 #: ../fish/guestfish-actions.pod:4320
12936 msgid "See also: L</lsetxattr>, L<attr(5)>."
12937 msgstr ""
12938
12939 #. type: =head2
12940 #: ../fish/guestfish-actions.pod:4322
12941 msgid "sfdisk"
12942 msgstr ""
12943
12944 #. type: verbatim
12945 #: ../fish/guestfish-actions.pod:4324
12946 #, no-wrap
12947 msgid ""
12948 " sfdisk device cyls heads sectors 'lines ...'\n"
12949 "\n"
12950 msgstr ""
12951
12952 #. type: textblock
12953 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6520
12954 msgid ""
12955 "This is a direct interface to the L<sfdisk(8)> program for creating "
12956 "partitions on block devices."
12957 msgstr ""
12958
12959 #. type: textblock
12960 #: ../fish/guestfish-actions.pod:4329 ../src/guestfs-actions.pod:6523
12961 msgid "C<device> should be a block device, for example C</dev/sda>."
12962 msgstr ""
12963
12964 #. type: textblock
12965 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
12966 msgid ""
12967 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
12968 "sectors on the device, which are passed directly to sfdisk as the I<-C>, "
12969 "I<-H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
12970 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
12971 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
12972 "the kernel) cannot work out the right geometry and you will need to tell it."
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6533
12977 msgid ""
12978 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
12979 "refer to the L<sfdisk(8)> manpage."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6536
12984 msgid ""
12985 "To create a single partition occupying the whole disk, you would pass "
12986 "C<lines> as a single element list, when the single element being the string "
12987 "C<,> (comma)."
12988 msgstr ""
12989
12990 #. type: textblock
12991 #: ../fish/guestfish-actions.pod:4346
12992 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
12993 msgstr ""
12994
12995 #. type: textblock
12996 #: ../fish/guestfish-actions.pod:4352 ../fish/guestfish-actions.pod:4375 ../fish/guestfish-actions.pod:4397
12997 msgid ""
12998 "I<This function is deprecated.> In new code, use the L</part_add> call "
12999 "instead."
13000 msgstr ""
13001
13002 #. type: =head2
13003 #: ../fish/guestfish-actions.pod:4359
13004 msgid "sfdiskM"
13005 msgstr ""
13006
13007 #. type: verbatim
13008 #: ../fish/guestfish-actions.pod:4361
13009 #, no-wrap
13010 msgid ""
13011 " sfdiskM device 'lines ...'\n"
13012 "\n"
13013 msgstr ""
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:4363
13017 msgid ""
13018 "This is a simplified interface to the L</sfdisk> command, where partition "
13019 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
13020 "you don't need to specify the cyls, heads and sectors parameters which were "
13021 "rarely if ever used anyway."
13022 msgstr ""
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:4369
13026 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:4382
13031 msgid "sfdisk-N"
13032 msgstr ""
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:4384
13036 #, no-wrap
13037 msgid ""
13038 " sfdisk-N device partnum cyls heads sectors line\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6598
13044 msgid ""
13045 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
13046 "(note: C<n> counts from 1)."
13047 msgstr ""
13048
13049 #. type: textblock
13050 #: ../fish/guestfish-actions.pod:4389
13051 msgid ""
13052 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
13053 "cyls/heads/sectors parameters."
13054 msgstr ""
13055
13056 #. type: textblock
13057 #: ../fish/guestfish-actions.pod:4392
13058 msgid "See also: L</part-add>"
13059 msgstr ""
13060
13061 #. type: =head2
13062 #: ../fish/guestfish-actions.pod:4404
13063 msgid "sfdisk-disk-geometry"
13064 msgstr ""
13065
13066 #. type: verbatim
13067 #: ../fish/guestfish-actions.pod:4406
13068 #, no-wrap
13069 msgid ""
13070 " sfdisk-disk-geometry device\n"
13071 "\n"
13072 msgstr ""
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:4408
13076 msgid ""
13077 "This displays the disk geometry of C<device> read from the partition table.  "
13078 "Especially in the case where the underlying block device has been resized, "
13079 "this can be different from the kernel's idea of the geometry (see "
13080 "L</sfdisk-kernel-geometry>)."
13081 msgstr ""
13082
13083 #. type: textblock
13084 #: ../fish/guestfish-actions.pod:4413 ../fish/guestfish-actions.pod:4422 ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6640
13085 msgid "The result is in human-readable format, and not designed to be parsed."
13086 msgstr ""
13087
13088 #. type: =head2
13089 #: ../fish/guestfish-actions.pod:4416
13090 msgid "sfdisk-kernel-geometry"
13091 msgstr ""
13092
13093 #. type: verbatim
13094 #: ../fish/guestfish-actions.pod:4418
13095 #, no-wrap
13096 msgid ""
13097 " sfdisk-kernel-geometry device\n"
13098 "\n"
13099 msgstr ""
13100
13101 #. type: textblock
13102 #: ../fish/guestfish-actions.pod:4420 ../src/guestfs-actions.pod:6638
13103 msgid "This displays the kernel's idea of the geometry of C<device>."
13104 msgstr ""
13105
13106 #. type: =head2
13107 #: ../fish/guestfish-actions.pod:4425
13108 msgid "sfdisk-l"
13109 msgstr ""
13110
13111 #. type: verbatim
13112 #: ../fish/guestfish-actions.pod:4427
13113 #, no-wrap
13114 msgid ""
13115 " sfdisk-l device\n"
13116 "\n"
13117 msgstr ""
13118
13119 #. type: textblock
13120 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6661
13121 msgid ""
13122 "This displays the partition table on C<device>, in the human-readable output "
13123 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
13124 msgstr ""
13125
13126 #. type: textblock
13127 #: ../fish/guestfish-actions.pod:4433
13128 msgid "See also: L</part-list>"
13129 msgstr ""
13130
13131 #. type: textblock
13132 #: ../fish/guestfish-actions.pod:4435
13133 msgid ""
13134 "I<This function is deprecated.> In new code, use the L</part_list> call "
13135 "instead."
13136 msgstr ""
13137
13138 #. type: =head2
13139 #: ../fish/guestfish-actions.pod:4442
13140 msgid "sh"
13141 msgstr ""
13142
13143 #. type: verbatim
13144 #: ../fish/guestfish-actions.pod:4444
13145 #, no-wrap
13146 msgid ""
13147 " sh command\n"
13148 "\n"
13149 msgstr ""
13150
13151 #. type: textblock
13152 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6678
13153 msgid ""
13154 "This call runs a command from the guest filesystem via the guest's "
13155 "C</bin/sh>."
13156 msgstr ""
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:4449
13160 msgid "This is like L</command>, but passes the command to:"
13161 msgstr ""
13162
13163 #. type: verbatim
13164 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
13165 #, no-wrap
13166 msgid ""
13167 " /bin/sh -c \"command\"\n"
13168 "\n"
13169 msgstr ""
13170
13171 #. type: textblock
13172 #: ../fish/guestfish-actions.pod:4453 ../src/guestfs-actions.pod:6685
13173 msgid ""
13174 "Depending on the guest's shell, this usually results in wildcards being "
13175 "expanded, shell expressions being interpolated and so on."
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:4457
13180 msgid "All the provisos about L</command> apply to this call."
13181 msgstr ""
13182
13183 #. type: =head2
13184 #: ../fish/guestfish-actions.pod:4459
13185 msgid "sh-lines"
13186 msgstr ""
13187
13188 #. type: verbatim
13189 #: ../fish/guestfish-actions.pod:4461
13190 #, no-wrap
13191 msgid ""
13192 " sh-lines command\n"
13193 "\n"
13194 msgstr ""
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:4463
13198 msgid "This is the same as L</sh>, but splits the result into a list of lines."
13199 msgstr ""
13200
13201 #. type: textblock
13202 #: ../fish/guestfish-actions.pod:4466
13203 msgid "See also: L</command-lines>"
13204 msgstr ""
13205
13206 #. type: =head2
13207 #: ../fish/guestfish-actions.pod:4468
13208 msgid "sleep"
13209 msgstr ""
13210
13211 #. type: verbatim
13212 #: ../fish/guestfish-actions.pod:4470
13213 #, no-wrap
13214 msgid ""
13215 " sleep secs\n"
13216 "\n"
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:4472 ../src/guestfs-actions.pod:6719
13221 msgid "Sleep for C<secs> seconds."
13222 msgstr ""
13223
13224 #. type: =head2
13225 #: ../fish/guestfish-actions.pod:4474
13226 msgid "stat"
13227 msgstr ""
13228
13229 #. type: verbatim
13230 #: ../fish/guestfish-actions.pod:4476
13231 #, no-wrap
13232 msgid ""
13233 " stat path\n"
13234 "\n"
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6733
13239 msgid "This is the same as the C<stat(2)> system call."
13240 msgstr ""
13241
13242 #. type: =head2
13243 #: ../fish/guestfish-actions.pod:4482
13244 msgid "statvfs"
13245 msgstr ""
13246
13247 #. type: verbatim
13248 #: ../fish/guestfish-actions.pod:4484
13249 #, no-wrap
13250 msgid ""
13251 " statvfs path\n"
13252 "\n"
13253 msgstr ""
13254
13255 #. type: textblock
13256 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6747
13257 msgid ""
13258 "Returns file system statistics for any mounted file system.  C<path> should "
13259 "be a file or directory in the mounted file system (typically it is the mount "
13260 "point itself, but it doesn't need to be)."
13261 msgstr ""
13262
13263 #. type: textblock
13264 #: ../fish/guestfish-actions.pod:4490 ../src/guestfs-actions.pod:6751
13265 msgid "This is the same as the C<statvfs(2)> system call."
13266 msgstr ""
13267
13268 #. type: =head2
13269 #: ../fish/guestfish-actions.pod:4492
13270 msgid "strings"
13271 msgstr ""
13272
13273 #. type: verbatim
13274 #: ../fish/guestfish-actions.pod:4494
13275 #, no-wrap
13276 msgid ""
13277 " strings path\n"
13278 "\n"
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:4496 ../src/guestfs-actions.pod:6765
13283 msgid ""
13284 "This runs the L<strings(1)> command on a file and returns the list of "
13285 "printable strings found."
13286 msgstr ""
13287
13288 #. type: =head2
13289 #: ../fish/guestfish-actions.pod:4502
13290 msgid "strings-e"
13291 msgstr ""
13292
13293 #. type: verbatim
13294 #: ../fish/guestfish-actions.pod:4504
13295 #, no-wrap
13296 msgid ""
13297 " strings-e encoding path\n"
13298 "\n"
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:4506
13303 msgid ""
13304 "This is like the L</strings> command, but allows you to specify the encoding "
13305 "of strings that are looked for in the source file C<path>."
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:4510 ../src/guestfs-actions.pod:6788
13310 msgid "Allowed encodings are:"
13311 msgstr ""
13312
13313 #. type: =item
13314 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6792
13315 msgid "s"
13316 msgstr ""
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:4516
13320 msgid ""
13321 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
13322 "ISO-8859-X (this is what L</strings> uses)."
13323 msgstr ""
13324
13325 #. type: =item
13326 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
13327 msgid "S"
13328 msgstr ""
13329
13330 #. type: textblock
13331 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6799
13332 msgid "Single 8-bit-byte characters."
13333 msgstr ""
13334
13335 #. type: =item
13336 #: ../fish/guestfish-actions.pod:4523 ../src/guestfs-actions.pod:6801
13337 msgid "b"
13338 msgstr ""
13339
13340 #. type: textblock
13341 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6803
13342 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
13343 msgstr ""
13344
13345 #. type: =item
13346 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
13347 msgid "l (lower case letter L)"
13348 msgstr ""
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
13352 msgid ""
13353 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
13354 "examining binaries in Windows guests."
13355 msgstr ""
13356
13357 #. type: =item
13358 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
13359 msgid "B"
13360 msgstr ""
13361
13362 #. type: textblock
13363 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
13364 msgid "32-bit big endian such as UCS-4BE."
13365 msgstr ""
13366
13367 #. type: =item
13368 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6815
13369 msgid "L"
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../fish/guestfish-actions.pod:4539 ../src/guestfs-actions.pod:6817
13374 msgid "32-bit little endian such as UCS-4LE."
13375 msgstr ""
13376
13377 #. type: textblock
13378 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6821
13379 msgid "The returned strings are transcoded to UTF-8."
13380 msgstr ""
13381
13382 #. type: =head2
13383 #: ../fish/guestfish-actions.pod:4548
13384 msgid "swapoff-device"
13385 msgstr ""
13386
13387 #. type: verbatim
13388 #: ../fish/guestfish-actions.pod:4550
13389 #, no-wrap
13390 msgid ""
13391 " swapoff-device device\n"
13392 "\n"
13393 msgstr ""
13394
13395 #. type: textblock
13396 #: ../fish/guestfish-actions.pod:4552
13397 msgid ""
13398 "This command disables the libguestfs appliance swap device or partition "
13399 "named C<device>.  See L</swapon-device>."
13400 msgstr ""
13401
13402 #. type: =head2
13403 #: ../fish/guestfish-actions.pod:4556
13404 msgid "swapoff-file"
13405 msgstr ""
13406
13407 #. type: verbatim
13408 #: ../fish/guestfish-actions.pod:4558
13409 #, no-wrap
13410 msgid ""
13411 " swapoff-file file\n"
13412 "\n"
13413 msgstr ""
13414
13415 #. type: textblock
13416 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6852
13417 msgid "This command disables the libguestfs appliance swap on file."
13418 msgstr ""
13419
13420 #. type: =head2
13421 #: ../fish/guestfish-actions.pod:4562
13422 msgid "swapoff-label"
13423 msgstr ""
13424
13425 #. type: verbatim
13426 #: ../fish/guestfish-actions.pod:4564
13427 #, no-wrap
13428 msgid ""
13429 " swapoff-label label\n"
13430 "\n"
13431 msgstr ""
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6864
13435 msgid ""
13436 "This command disables the libguestfs appliance swap on labeled swap "
13437 "partition."
13438 msgstr ""
13439
13440 #. type: =head2
13441 #: ../fish/guestfish-actions.pod:4569
13442 msgid "swapoff-uuid"
13443 msgstr ""
13444
13445 #. type: verbatim
13446 #: ../fish/guestfish-actions.pod:4571
13447 #, no-wrap
13448 msgid ""
13449 " swapoff-uuid uuid\n"
13450 "\n"
13451 msgstr ""
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:6877
13455 msgid ""
13456 "This command disables the libguestfs appliance swap partition with the given "
13457 "UUID."
13458 msgstr ""
13459
13460 #. type: =head2
13461 #: ../fish/guestfish-actions.pod:4576
13462 msgid "swapon-device"
13463 msgstr ""
13464
13465 #. type: verbatim
13466 #: ../fish/guestfish-actions.pod:4578
13467 #, no-wrap
13468 msgid ""
13469 " swapon-device device\n"
13470 "\n"
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:4580
13475 msgid ""
13476 "This command enables the libguestfs appliance to use the swap device or "
13477 "partition named C<device>.  The increased memory is made available for all "
13478 "commands, for example those run using L</command> or L</sh>."
13479 msgstr ""
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:6895
13483 msgid ""
13484 "Note that you should not swap to existing guest swap partitions unless you "
13485 "know what you are doing.  They may contain hibernation information, or other "
13486 "information that the guest doesn't want you to trash.  You also risk leaking "
13487 "information about the host to the guest this way.  Instead, attach a new "
13488 "host device to the guest and swap on that."
13489 msgstr ""
13490
13491 #. type: =head2
13492 #: ../fish/guestfish-actions.pod:4592
13493 msgid "swapon-file"
13494 msgstr ""
13495
13496 #. type: verbatim
13497 #: ../fish/guestfish-actions.pod:4594
13498 #, no-wrap
13499 msgid ""
13500 " swapon-file file\n"
13501 "\n"
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:4596
13506 msgid "This command enables swap to a file.  See L</swapon-device> for other notes."
13507 msgstr ""
13508
13509 #. type: =head2
13510 #: ../fish/guestfish-actions.pod:4599
13511 msgid "swapon-label"
13512 msgstr ""
13513
13514 #. type: verbatim
13515 #: ../fish/guestfish-actions.pod:4601
13516 #, no-wrap
13517 msgid ""
13518 " swapon-label label\n"
13519 "\n"
13520 msgstr ""
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:4603
13524 msgid ""
13525 "This command enables swap to a labeled swap partition.  See "
13526 "L</swapon-device> for other notes."
13527 msgstr ""
13528
13529 #. type: =head2
13530 #: ../fish/guestfish-actions.pod:4606
13531 msgid "swapon-uuid"
13532 msgstr ""
13533
13534 #. type: verbatim
13535 #: ../fish/guestfish-actions.pod:4608
13536 #, no-wrap
13537 msgid ""
13538 " swapon-uuid uuid\n"
13539 "\n"
13540 msgstr ""
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:4610
13544 msgid ""
13545 "This command enables swap to a swap partition with the given UUID.  See "
13546 "L</swapon-device> for other notes."
13547 msgstr ""
13548
13549 #. type: =head2
13550 #: ../fish/guestfish-actions.pod:4613
13551 msgid "sync"
13552 msgstr ""
13553
13554 #. type: verbatim
13555 #: ../fish/guestfish-actions.pod:4615
13556 #, no-wrap
13557 msgid ""
13558 " sync\n"
13559 "\n"
13560 msgstr ""
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6950
13564 msgid ""
13565 "This syncs the disk, so that any writes are flushed through to the "
13566 "underlying disk image."
13567 msgstr ""
13568
13569 #. type: textblock
13570 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6953
13571 msgid ""
13572 "You should always call this if you have modified a disk image, before "
13573 "closing the handle."
13574 msgstr ""
13575
13576 #. type: =head2
13577 #: ../fish/guestfish-actions.pod:4623
13578 msgid "tail"
13579 msgstr ""
13580
13581 #. type: verbatim
13582 #: ../fish/guestfish-actions.pod:4625
13583 #, no-wrap
13584 msgid ""
13585 " tail path\n"
13586 "\n"
13587 msgstr ""
13588
13589 #. type: textblock
13590 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6966
13591 msgid "This command returns up to the last 10 lines of a file as a list of strings."
13592 msgstr ""
13593
13594 #. type: =head2
13595 #: ../fish/guestfish-actions.pod:4633
13596 msgid "tail-n"
13597 msgstr ""
13598
13599 #. type: verbatim
13600 #: ../fish/guestfish-actions.pod:4635
13601 #, no-wrap
13602 msgid ""
13603 " tail-n nrlines path\n"
13604 "\n"
13605 msgstr ""
13606
13607 #. type: textblock
13608 #: ../fish/guestfish-actions.pod:4637 ../src/guestfs-actions.pod:6985
13609 msgid ""
13610 "If the parameter C<nrlines> is a positive number, this returns the last "
13611 "C<nrlines> lines of the file C<path>."
13612 msgstr ""
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:6988
13616 msgid ""
13617 "If the parameter C<nrlines> is a negative number, this returns lines from "
13618 "the file C<path>, starting with the C<-nrlines>th line."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:4648
13623 msgid "tar-in"
13624 msgstr ""
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:4650
13628 #, no-wrap
13629 msgid ""
13630 " tar-in (tarfile|-) directory\n"
13631 "\n"
13632 msgstr ""
13633
13634 #. type: textblock
13635 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7009
13636 msgid ""
13637 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
13638 "tar file) into C<directory>."
13639 msgstr ""
13640
13641 #. type: textblock
13642 #: ../fish/guestfish-actions.pod:4655
13643 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
13644 msgstr ""
13645
13646 #. type: =head2
13647 #: ../fish/guestfish-actions.pod:4660
13648 msgid "tar-out"
13649 msgstr ""
13650
13651 #. type: verbatim
13652 #: ../fish/guestfish-actions.pod:4662
13653 #, no-wrap
13654 msgid ""
13655 " tar-out directory (tarfile|-)\n"
13656 "\n"
13657 msgstr ""
13658
13659 #. type: textblock
13660 #: ../fish/guestfish-actions.pod:4664 ../src/guestfs-actions.pod:7026
13661 msgid ""
13662 "This command packs the contents of C<directory> and downloads it to local "
13663 "file C<tarfile>."
13664 msgstr ""
13665
13666 #. type: textblock
13667 #: ../fish/guestfish-actions.pod:4667
13668 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
13669 msgstr ""
13670
13671 #. type: =head2
13672 #: ../fish/guestfish-actions.pod:4672
13673 msgid "tgz-in"
13674 msgstr ""
13675
13676 #. type: verbatim
13677 #: ../fish/guestfish-actions.pod:4674
13678 #, no-wrap
13679 msgid ""
13680 " tgz-in (tarball|-) directory\n"
13681 "\n"
13682 msgstr ""
13683
13684 #. type: textblock
13685 #: ../fish/guestfish-actions.pod:4676 ../src/guestfs-actions.pod:7043
13686 msgid ""
13687 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
13688 "tar file) into C<directory>."
13689 msgstr ""
13690
13691 #. type: textblock
13692 #: ../fish/guestfish-actions.pod:4679
13693 msgid "To upload an uncompressed tarball, use L</tar-in>."
13694 msgstr ""
13695
13696 #. type: =head2
13697 #: ../fish/guestfish-actions.pod:4683
13698 msgid "tgz-out"
13699 msgstr ""
13700
13701 #. type: verbatim
13702 #: ../fish/guestfish-actions.pod:4685
13703 #, no-wrap
13704 msgid ""
13705 " tgz-out directory (tarball|-)\n"
13706 "\n"
13707 msgstr ""
13708
13709 #. type: textblock
13710 #: ../fish/guestfish-actions.pod:4687 ../src/guestfs-actions.pod:7059
13711 msgid ""
13712 "This command packs the contents of C<directory> and downloads it to local "
13713 "file C<tarball>."
13714 msgstr ""
13715
13716 #. type: textblock
13717 #: ../fish/guestfish-actions.pod:4690
13718 msgid "To download an uncompressed tarball, use L</tar-out>."
13719 msgstr ""
13720
13721 #. type: =head2
13722 #: ../fish/guestfish-actions.pod:4694
13723 msgid "touch"
13724 msgstr ""
13725
13726 #. type: verbatim
13727 #: ../fish/guestfish-actions.pod:4696
13728 #, no-wrap
13729 msgid ""
13730 " touch path\n"
13731 "\n"
13732 msgstr ""
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:4698 ../src/guestfs-actions.pod:7074
13736 msgid ""
13737 "Touch acts like the L<touch(1)> command.  It can be used to update the "
13738 "timestamps on a file, or, if the file does not exist, to create a new "
13739 "zero-length file."
13740 msgstr ""
13741
13742 #. type: textblock
13743 #: ../fish/guestfish-actions.pod:4702 ../src/guestfs-actions.pod:7078
13744 msgid ""
13745 "This command only works on regular files, and will fail on other file types "
13746 "such as directories, symbolic links, block special etc."
13747 msgstr ""
13748
13749 #. type: =head2
13750 #: ../fish/guestfish-actions.pod:4705
13751 msgid "truncate"
13752 msgstr ""
13753
13754 #. type: verbatim
13755 #: ../fish/guestfish-actions.pod:4707
13756 #, no-wrap
13757 msgid ""
13758 " truncate path\n"
13759 "\n"
13760 msgstr ""
13761
13762 #. type: textblock
13763 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7091
13764 msgid ""
13765 "This command truncates C<path> to a zero-length file.  The file must exist "
13766 "already."
13767 msgstr ""
13768
13769 #. type: =head2
13770 #: ../fish/guestfish-actions.pod:4712
13771 msgid "truncate-size"
13772 msgstr ""
13773
13774 #. type: verbatim
13775 #: ../fish/guestfish-actions.pod:4714
13776 #, no-wrap
13777 msgid ""
13778 " truncate-size path size\n"
13779 "\n"
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:4716 ../src/guestfs-actions.pod:7105
13784 msgid ""
13785 "This command truncates C<path> to size C<size> bytes.  The file must exist "
13786 "already."
13787 msgstr ""
13788
13789 #. type: textblock
13790 #: ../fish/guestfish-actions.pod:4719
13791 msgid ""
13792 "If the current file size is less than C<size> then the file is extended to "
13793 "the required size with zero bytes.  This creates a sparse file (ie. disk "
13794 "blocks are not allocated for the file until you write to it).  To create a "
13795 "non-sparse file of zeroes, use L</fallocate64> instead."
13796 msgstr ""
13797
13798 #. type: =head2
13799 #: ../fish/guestfish-actions.pod:4725
13800 msgid "tune2fs-l"
13801 msgstr ""
13802
13803 #. type: verbatim
13804 #: ../fish/guestfish-actions.pod:4727
13805 #, no-wrap
13806 msgid ""
13807 " tune2fs-l device\n"
13808 "\n"
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7124
13813 msgid ""
13814 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
13815 "C<device>."
13816 msgstr ""
13817
13818 #. type: textblock
13819 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7127
13820 msgid ""
13821 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
13822 "for more details.  The list of fields returned isn't clearly defined, and "
13823 "depends on both the version of C<tune2fs> that libguestfs was built against, "
13824 "and the filesystem itself."
13825 msgstr ""
13826
13827 #. type: =head2
13828 #: ../fish/guestfish-actions.pod:4737
13829 msgid "txz-in"
13830 msgstr ""
13831
13832 #. type: verbatim
13833 #: ../fish/guestfish-actions.pod:4739
13834 #, no-wrap
13835 msgid ""
13836 " txz-in (tarball|-) directory\n"
13837 "\n"
13838 msgstr ""
13839
13840 #. type: textblock
13841 #: ../fish/guestfish-actions.pod:4741 ../src/guestfs-actions.pod:7147
13842 msgid ""
13843 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
13844 "tar file) into C<directory>."
13845 msgstr ""
13846
13847 #. type: =head2
13848 #: ../fish/guestfish-actions.pod:4746
13849 msgid "txz-out"
13850 msgstr ""
13851
13852 #. type: verbatim
13853 #: ../fish/guestfish-actions.pod:4748
13854 #, no-wrap
13855 msgid ""
13856 " txz-out directory (tarball|-)\n"
13857 "\n"
13858 msgstr ""
13859
13860 #. type: textblock
13861 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7161
13862 msgid ""
13863 "This command packs the contents of C<directory> and downloads it to local "
13864 "file C<tarball> (as an xz compressed tar archive)."
13865 msgstr ""
13866
13867 #. type: =head2
13868 #: ../fish/guestfish-actions.pod:4755
13869 msgid "umask"
13870 msgstr ""
13871
13872 #. type: verbatim
13873 #: ../fish/guestfish-actions.pod:4757
13874 #, no-wrap
13875 msgid ""
13876 " umask mask\n"
13877 "\n"
13878 msgstr ""
13879
13880 #. type: textblock
13881 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7174
13882 msgid ""
13883 "This function sets the mask used for creating new files and device nodes to "
13884 "C<mask & 0777>."
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:4762 ../src/guestfs-actions.pod:7177
13889 msgid ""
13890 "Typical umask values would be C<022> which creates new files with "
13891 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
13892 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
13893 msgstr ""
13894
13895 #. type: textblock
13896 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
13897 msgid ""
13898 "The default umask is C<022>.  This is important because it means that "
13899 "directories and device nodes will be created with C<0644> or C<0755> mode "
13900 "even if you specify C<0777>."
13901 msgstr ""
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:4771
13905 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
13906 msgstr ""
13907
13908 #. type: textblock
13909 #: ../fish/guestfish-actions.pod:4774 ../src/guestfs-actions.pod:7189
13910 msgid "This call returns the previous umask."
13911 msgstr ""
13912
13913 #. type: =head2
13914 #: ../fish/guestfish-actions.pod:4776
13915 msgid "umount"
13916 msgstr ""
13917
13918 #. type: =head2
13919 #: ../fish/guestfish-actions.pod:4778
13920 msgid "unmount"
13921 msgstr ""
13922
13923 #. type: verbatim
13924 #: ../fish/guestfish-actions.pod:4780
13925 #, no-wrap
13926 msgid ""
13927 " umount pathordevice\n"
13928 "\n"
13929 msgstr ""
13930
13931 #. type: textblock
13932 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7201
13933 msgid ""
13934 "This unmounts the given filesystem.  The filesystem may be specified either "
13935 "by its mountpoint (path) or the device which contains the filesystem."
13936 msgstr ""
13937
13938 #. type: =head2
13939 #: ../fish/guestfish-actions.pod:4786
13940 msgid "umount-all"
13941 msgstr ""
13942
13943 #. type: =head2
13944 #: ../fish/guestfish-actions.pod:4788
13945 msgid "unmount-all"
13946 msgstr ""
13947
13948 #. type: verbatim
13949 #: ../fish/guestfish-actions.pod:4790
13950 #, no-wrap
13951 msgid ""
13952 " umount-all\n"
13953 "\n"
13954 msgstr ""
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:4792 ../src/guestfs-actions.pod:7214
13958 msgid "This unmounts all mounted filesystems."
13959 msgstr ""
13960
13961 #. type: textblock
13962 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7216
13963 msgid "Some internal mounts are not unmounted by this call."
13964 msgstr ""
13965
13966 #. type: =head2
13967 #: ../fish/guestfish-actions.pod:4796
13968 msgid "upload"
13969 msgstr ""
13970
13971 #. type: verbatim
13972 #: ../fish/guestfish-actions.pod:4798
13973 #, no-wrap
13974 msgid ""
13975 " upload (filename|-) remotefilename\n"
13976 "\n"
13977 msgstr ""
13978
13979 #. type: textblock
13980 #: ../fish/guestfish-actions.pod:4800 ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7229 ../src/guestfs-actions.pod:7253
13981 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4805
13986 msgid "See also L</download>."
13987 msgstr ""
13988
13989 #. type: =head2
13990 #: ../fish/guestfish-actions.pod:4809
13991 msgid "upload-offset"
13992 msgstr ""
13993
13994 #. type: verbatim
13995 #: ../fish/guestfish-actions.pod:4811
13996 #, no-wrap
13997 msgid ""
13998 " upload-offset (filename|-) remotefilename offset\n"
13999 "\n"
14000 msgstr ""
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7256
14004 msgid ""
14005 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
14006 "The intention is to overwrite parts of existing files or devices, although "
14007 "if a non-existant file is specified then it is created with a \"hole\" "
14008 "before C<offset>.  The size of the data written is implicit in the size of "
14009 "the source C<filename>."
14010 msgstr ""
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:4823
14014 msgid ""
14015 "Note that there is no limit on the amount of data that can be uploaded with "
14016 "this call, unlike with L</pwrite>, and this call always writes the full "
14017 "amount unless an error occurs."
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:4828
14022 msgid "See also L</upload>, L</pwrite>."
14023 msgstr ""
14024
14025 #. type: =head2
14026 #: ../fish/guestfish-actions.pod:4832
14027 msgid "utimens"
14028 msgstr ""
14029
14030 #. type: verbatim
14031 #: ../fish/guestfish-actions.pod:4834
14032 #, no-wrap
14033 msgid ""
14034 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
14035 "\n"
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7289
14040 msgid "This command sets the timestamps of a file with nanosecond precision."
14041 msgstr ""
14042
14043 #. type: textblock
14044 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7292
14045 msgid ""
14046 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
14047 "from the epoch."
14048 msgstr ""
14049
14050 #. type: textblock
14051 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7295
14052 msgid ""
14053 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
14054 "nanoseconds from the epoch."
14055 msgstr ""
14056
14057 #. type: textblock
14058 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7298
14059 msgid ""
14060 "If the C<*nsecs> field contains the special value C<-1> then the "
14061 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
14062 "ignored in this case)."
14063 msgstr ""
14064
14065 #. type: textblock
14066 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7302
14067 msgid ""
14068 "If the C<*nsecs> field contains the special value C<-2> then the "
14069 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
14070 "in this case)."
14071 msgstr ""
14072
14073 #. type: =head2
14074 #: ../fish/guestfish-actions.pod:4853
14075 msgid "version"
14076 msgstr ""
14077
14078 #. type: verbatim
14079 #: ../fish/guestfish-actions.pod:4855
14080 #, no-wrap
14081 msgid ""
14082 " version\n"
14083 "\n"
14084 msgstr ""
14085
14086 #. type: textblock
14087 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7315
14088 msgid "Return the libguestfs version number that the program is linked against."
14089 msgstr ""
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:4860 ../src/guestfs-actions.pod:7318
14093 msgid ""
14094 "Note that because of dynamic linking this is not necessarily the version of "
14095 "libguestfs that you compiled against.  You can compile the program, and then "
14096 "at runtime dynamically link against a completely different C<libguestfs.so> "
14097 "library."
14098 msgstr ""
14099
14100 #. type: textblock
14101 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
14102 msgid ""
14103 "This call was added in version C<1.0.58>.  In previous versions of "
14104 "libguestfs there was no way to get the version number.  From C code you can "
14105 "use dynamic linker functions to find out if this symbol exists (if it "
14106 "doesn't, then it's an earlier version)."
14107 msgstr ""
14108
14109 #. type: textblock
14110 #: ../fish/guestfish-actions.pod:4871 ../src/guestfs-actions.pod:7329
14111 msgid ""
14112 "The call returns a structure with four elements.  The first three (C<major>, "
14113 "C<minor> and C<release>) are numbers and correspond to the usual version "
14114 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
14115 "but may be used for distro-specific information."
14116 msgstr ""
14117
14118 #. type: textblock
14119 #: ../fish/guestfish-actions.pod:4877 ../src/guestfs-actions.pod:7335
14120 msgid "To construct the original version string: C<$major.$minor.$release$extra>"
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7338
14125 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
14126 msgstr ""
14127
14128 #. type: textblock
14129 #: ../fish/guestfish-actions.pod:4882
14130 msgid ""
14131 "I<Note:> Don't use this call to test for availability of features.  In "
14132 "enterprise distributions we backport features from later versions into "
14133 "earlier versions, making this an unreliable way to test for features.  Use "
14134 "L</available> instead."
14135 msgstr ""
14136
14137 #. type: =head2
14138 #: ../fish/guestfish-actions.pod:4888
14139 msgid "vfs-label"
14140 msgstr ""
14141
14142 #. type: verbatim
14143 #: ../fish/guestfish-actions.pod:4890
14144 #, no-wrap
14145 msgid ""
14146 " vfs-label device\n"
14147 "\n"
14148 msgstr ""
14149
14150 #. type: textblock
14151 #: ../fish/guestfish-actions.pod:4892 ../src/guestfs-actions.pod:7358
14152 msgid "This returns the filesystem label of the filesystem on C<device>."
14153 msgstr ""
14154
14155 #. type: textblock
14156 #: ../fish/guestfish-actions.pod:4895 ../src/guestfs-actions.pod:7361
14157 msgid "If the filesystem is unlabeled, this returns the empty string."
14158 msgstr ""
14159
14160 #. type: textblock
14161 #: ../fish/guestfish-actions.pod:4897
14162 msgid "To find a filesystem from the label, use L</findfs-label>."
14163 msgstr ""
14164
14165 #. type: =head2
14166 #: ../fish/guestfish-actions.pod:4899
14167 msgid "vfs-type"
14168 msgstr ""
14169
14170 #. type: verbatim
14171 #: ../fish/guestfish-actions.pod:4901
14172 #, no-wrap
14173 msgid ""
14174 " vfs-type device\n"
14175 "\n"
14176 msgstr ""
14177
14178 #. type: textblock
14179 #: ../fish/guestfish-actions.pod:4903 ../src/guestfs-actions.pod:7376
14180 msgid ""
14181 "This command gets the filesystem type corresponding to the filesystem on "
14182 "C<device>."
14183 msgstr ""
14184
14185 #. type: textblock
14186 #: ../fish/guestfish-actions.pod:4906 ../src/guestfs-actions.pod:7379
14187 msgid ""
14188 "For most filesystems, the result is the name of the Linux VFS module which "
14189 "would be used to mount this filesystem if you mounted it without specifying "
14190 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
14191 msgstr ""
14192
14193 #. type: =head2
14194 #: ../fish/guestfish-actions.pod:4911
14195 msgid "vfs-uuid"
14196 msgstr ""
14197
14198 #. type: verbatim
14199 #: ../fish/guestfish-actions.pod:4913
14200 #, no-wrap
14201 msgid ""
14202 " vfs-uuid device\n"
14203 "\n"
14204 msgstr ""
14205
14206 #. type: textblock
14207 #: ../fish/guestfish-actions.pod:4915 ../src/guestfs-actions.pod:7395
14208 msgid "This returns the filesystem UUID of the filesystem on C<device>."
14209 msgstr ""
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:4918 ../src/guestfs-actions.pod:7398
14213 msgid "If the filesystem does not have a UUID, this returns the empty string."
14214 msgstr ""
14215
14216 #. type: textblock
14217 #: ../fish/guestfish-actions.pod:4920
14218 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
14219 msgstr ""
14220
14221 #. type: =head2
14222 #: ../fish/guestfish-actions.pod:4922
14223 msgid "vg-activate"
14224 msgstr ""
14225
14226 #. type: verbatim
14227 #: ../fish/guestfish-actions.pod:4924
14228 #, no-wrap
14229 msgid ""
14230 " vg-activate true|false 'volgroups ...'\n"
14231 "\n"
14232 msgstr ""
14233
14234 #. type: textblock
14235 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7414
14236 msgid ""
14237 "This command activates or (if C<activate> is false) deactivates all logical "
14238 "volumes in the listed volume groups C<volgroups>."
14239 msgstr ""
14240
14241 #. type: textblock
14242 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7417
14243 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
14244 msgstr ""
14245
14246 #. type: textblock
14247 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
14248 msgid ""
14249 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
14250 "activated or deactivated."
14251 msgstr ""
14252
14253 #. type: =head2
14254 #: ../fish/guestfish-actions.pod:4934
14255 msgid "vg-activate-all"
14256 msgstr ""
14257
14258 #. type: verbatim
14259 #: ../fish/guestfish-actions.pod:4936
14260 #, no-wrap
14261 msgid ""
14262 " vg-activate-all true|false\n"
14263 "\n"
14264 msgstr ""
14265
14266 #. type: textblock
14267 #: ../fish/guestfish-actions.pod:4938 ../src/guestfs-actions.pod:7432
14268 msgid ""
14269 "This command activates or (if C<activate> is false) deactivates all logical "
14270 "volumes in all volume groups."
14271 msgstr ""
14272
14273 #. type: textblock
14274 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7435
14275 msgid "This command is the same as running C<vgchange -a y|n>"
14276 msgstr ""
14277
14278 #. type: =head2
14279 #: ../fish/guestfish-actions.pod:4943
14280 msgid "vgcreate"
14281 msgstr ""
14282
14283 #. type: verbatim
14284 #: ../fish/guestfish-actions.pod:4945
14285 #, no-wrap
14286 msgid ""
14287 " vgcreate volgroup 'physvols ...'\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:4947 ../src/guestfs-actions.pod:7448
14293 msgid ""
14294 "This creates an LVM volume group called C<volgroup> from the non-empty list "
14295 "of physical volumes C<physvols>."
14296 msgstr ""
14297
14298 #. type: =head2
14299 #: ../fish/guestfish-actions.pod:4950
14300 msgid "vglvuuids"
14301 msgstr ""
14302
14303 #. type: verbatim
14304 #: ../fish/guestfish-actions.pod:4952
14305 #, no-wrap
14306 msgid ""
14307 " vglvuuids vgname\n"
14308 "\n"
14309 msgstr ""
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7461
14313 msgid ""
14314 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
14315 "volumes created in this volume group."
14316 msgstr ""
14317
14318 #. type: textblock
14319 #: ../fish/guestfish-actions.pod:4957
14320 msgid ""
14321 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
14322 "logical volumes and volume groups."
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:4960
14327 msgid "See also L</vgpvuuids>."
14328 msgstr ""
14329
14330 #. type: =head2
14331 #: ../fish/guestfish-actions.pod:4962
14332 msgid "vgpvuuids"
14333 msgstr ""
14334
14335 #. type: verbatim
14336 #: ../fish/guestfish-actions.pod:4964
14337 #, no-wrap
14338 msgid ""
14339 " vgpvuuids vgname\n"
14340 "\n"
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7481
14345 msgid ""
14346 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
14347 "volumes that this volume group resides on."
14348 msgstr ""
14349
14350 #. type: textblock
14351 #: ../fish/guestfish-actions.pod:4969
14352 msgid ""
14353 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
14354 "physical volumes and volume groups."
14355 msgstr ""
14356
14357 #. type: textblock
14358 #: ../fish/guestfish-actions.pod:4972
14359 msgid "See also L</vglvuuids>."
14360 msgstr ""
14361
14362 #. type: =head2
14363 #: ../fish/guestfish-actions.pod:4974
14364 msgid "vgremove"
14365 msgstr ""
14366
14367 #. type: verbatim
14368 #: ../fish/guestfish-actions.pod:4976
14369 #, no-wrap
14370 msgid ""
14371 " vgremove vgname\n"
14372 "\n"
14373 msgstr ""
14374
14375 #. type: textblock
14376 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7501
14377 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
14378 msgstr ""
14379
14380 #. type: textblock
14381 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7503
14382 msgid "This also forcibly removes all logical volumes in the volume group (if any)."
14383 msgstr ""
14384
14385 #. type: =head2
14386 #: ../fish/guestfish-actions.pod:4983
14387 msgid "vgrename"
14388 msgstr ""
14389
14390 #. type: verbatim
14391 #: ../fish/guestfish-actions.pod:4985
14392 #, no-wrap
14393 msgid ""
14394 " vgrename volgroup newvolgroup\n"
14395 "\n"
14396 msgstr ""
14397
14398 #. type: textblock
14399 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7517
14400 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
14401 msgstr ""
14402
14403 #. type: =head2
14404 #: ../fish/guestfish-actions.pod:4989
14405 msgid "vgs"
14406 msgstr ""
14407
14408 #. type: verbatim
14409 #: ../fish/guestfish-actions.pod:4991
14410 #, no-wrap
14411 msgid ""
14412 " vgs\n"
14413 "\n"
14414 msgstr ""
14415
14416 #. type: textblock
14417 #: ../fish/guestfish-actions.pod:4993 ../src/guestfs-actions.pod:7528
14418 msgid ""
14419 "List all the volumes groups detected.  This is the equivalent of the "
14420 "L<vgs(8)> command."
14421 msgstr ""
14422
14423 #. type: textblock
14424 #: ../fish/guestfish-actions.pod:4996 ../src/guestfs-actions.pod:7531
14425 msgid ""
14426 "This returns a list of just the volume group names that were detected "
14427 "(eg. C<VolGroup00>)."
14428 msgstr ""
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:4999
14432 msgid "See also L</vgs-full>."
14433 msgstr ""
14434
14435 #. type: =head2
14436 #: ../fish/guestfish-actions.pod:5001
14437 msgid "vgs-full"
14438 msgstr ""
14439
14440 #. type: verbatim
14441 #: ../fish/guestfish-actions.pod:5003
14442 #, no-wrap
14443 msgid ""
14444 " vgs-full\n"
14445 "\n"
14446 msgstr ""
14447
14448 #. type: textblock
14449 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7547
14450 msgid ""
14451 "List all the volumes groups detected.  This is the equivalent of the "
14452 "L<vgs(8)> command.  The \"full\" version includes all fields."
14453 msgstr ""
14454
14455 #. type: =head2
14456 #: ../fish/guestfish-actions.pod:5008
14457 msgid "vgscan"
14458 msgstr ""
14459
14460 #. type: verbatim
14461 #: ../fish/guestfish-actions.pod:5010
14462 #, no-wrap
14463 msgid ""
14464 " vgscan\n"
14465 "\n"
14466 msgstr ""
14467
14468 #. type: textblock
14469 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7561
14470 msgid ""
14471 "This rescans all block devices and rebuilds the list of LVM physical "
14472 "volumes, volume groups and logical volumes."
14473 msgstr ""
14474
14475 #. type: =head2
14476 #: ../fish/guestfish-actions.pod:5015
14477 msgid "vguuid"
14478 msgstr ""
14479
14480 #. type: verbatim
14481 #: ../fish/guestfish-actions.pod:5017
14482 #, no-wrap
14483 msgid ""
14484 " vguuid vgname\n"
14485 "\n"
14486 msgstr ""
14487
14488 #. type: textblock
14489 #: ../fish/guestfish-actions.pod:5019 ../src/guestfs-actions.pod:7574
14490 msgid "This command returns the UUID of the LVM VG named C<vgname>."
14491 msgstr ""
14492
14493 #. type: =head2
14494 #: ../fish/guestfish-actions.pod:5021
14495 msgid "wc-c"
14496 msgstr ""
14497
14498 #. type: verbatim
14499 #: ../fish/guestfish-actions.pod:5023
14500 #, no-wrap
14501 msgid ""
14502 " wc-c path\n"
14503 "\n"
14504 msgstr ""
14505
14506 #. type: textblock
14507 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7614
14508 msgid ""
14509 "This command counts the characters in a file, using the C<wc -c> external "
14510 "command."
14511 msgstr ""
14512
14513 #. type: =head2
14514 #: ../fish/guestfish-actions.pod:5028
14515 msgid "wc-l"
14516 msgstr ""
14517
14518 #. type: verbatim
14519 #: ../fish/guestfish-actions.pod:5030
14520 #, no-wrap
14521 msgid ""
14522 " wc-l path\n"
14523 "\n"
14524 msgstr ""
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:5032 ../src/guestfs-actions.pod:7627
14528 msgid ""
14529 "This command counts the lines in a file, using the C<wc -l> external "
14530 "command."
14531 msgstr ""
14532
14533 #. type: =head2
14534 #: ../fish/guestfish-actions.pod:5035
14535 msgid "wc-w"
14536 msgstr ""
14537
14538 #. type: verbatim
14539 #: ../fish/guestfish-actions.pod:5037
14540 #, no-wrap
14541 msgid ""
14542 " wc-w path\n"
14543 "\n"
14544 msgstr ""
14545
14546 #. type: textblock
14547 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7640
14548 msgid ""
14549 "This command counts the words in a file, using the C<wc -w> external "
14550 "command."
14551 msgstr ""
14552
14553 #. type: =head2
14554 #: ../fish/guestfish-actions.pod:5042
14555 msgid "write"
14556 msgstr ""
14557
14558 #. type: verbatim
14559 #: ../fish/guestfish-actions.pod:5044
14560 #, no-wrap
14561 msgid ""
14562 " write path content\n"
14563 "\n"
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7655
14568 msgid ""
14569 "This call creates a file called C<path>.  The content of the file is the "
14570 "string C<content> (which can contain any 8 bit data)."
14571 msgstr ""
14572
14573 #. type: textblock
14574 #: ../fish/guestfish-actions.pod:5049
14575 msgid "See also L</write-append>."
14576 msgstr ""
14577
14578 #. type: =head2
14579 #: ../fish/guestfish-actions.pod:5054
14580 msgid "write-append"
14581 msgstr ""
14582
14583 #. type: verbatim
14584 #: ../fish/guestfish-actions.pod:5056
14585 #, no-wrap
14586 msgid ""
14587 " write-append path content\n"
14588 "\n"
14589 msgstr ""
14590
14591 #. type: textblock
14592 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7675
14593 msgid ""
14594 "This call appends C<content> to the end of file C<path>.  If C<path> does "
14595 "not exist, then a new file is created."
14596 msgstr ""
14597
14598 #. type: textblock
14599 #: ../fish/guestfish-actions.pod:5061
14600 msgid "See also L</write>."
14601 msgstr ""
14602
14603 #. type: =head2
14604 #: ../fish/guestfish-actions.pod:5066
14605 msgid "write-file"
14606 msgstr ""
14607
14608 #. type: verbatim
14609 #: ../fish/guestfish-actions.pod:5068
14610 #, no-wrap
14611 msgid ""
14612 " write-file path content size\n"
14613 "\n"
14614 msgstr ""
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7702
14618 msgid ""
14619 "This call creates a file called C<path>.  The contents of the file is the "
14620 "string C<content> (which can contain any 8 bit data), with length C<size>."
14621 msgstr ""
14622
14623 #. type: textblock
14624 #: ../fish/guestfish-actions.pod:5074 ../src/guestfs-actions.pod:7706
14625 msgid ""
14626 "As a special case, if C<size> is C<0> then the length is calculated using "
14627 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
14628 msgstr ""
14629
14630 #. type: textblock
14631 #: ../fish/guestfish-actions.pod:5078 ../src/guestfs-actions.pod:7710
14632 msgid ""
14633 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
14634 "I<not> work, even if the length is specified."
14635 msgstr ""
14636
14637 #. type: textblock
14638 #: ../fish/guestfish-actions.pod:5084
14639 msgid "I<This function is deprecated.> In new code, use the L</write> call instead."
14640 msgstr ""
14641
14642 #. type: =head2
14643 #: ../fish/guestfish-actions.pod:5091
14644 msgid "zegrep"
14645 msgstr ""
14646
14647 #. type: verbatim
14648 #: ../fish/guestfish-actions.pod:5093
14649 #, no-wrap
14650 msgid ""
14651 " zegrep regex path\n"
14652 "\n"
14653 msgstr ""
14654
14655 #. type: textblock
14656 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7727
14657 msgid "This calls the external C<zegrep> program and returns the matching lines."
14658 msgstr ""
14659
14660 #. type: =head2
14661 #: ../fish/guestfish-actions.pod:5101
14662 msgid "zegrepi"
14663 msgstr ""
14664
14665 #. type: verbatim
14666 #: ../fish/guestfish-actions.pod:5103
14667 #, no-wrap
14668 msgid ""
14669 " zegrepi regex path\n"
14670 "\n"
14671 msgstr ""
14672
14673 #. type: textblock
14674 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7746
14675 msgid "This calls the external C<zegrep -i> program and returns the matching lines."
14676 msgstr ""
14677
14678 #. type: =head2
14679 #: ../fish/guestfish-actions.pod:5111
14680 msgid "zero"
14681 msgstr ""
14682
14683 #. type: verbatim
14684 #: ../fish/guestfish-actions.pod:5113
14685 #, no-wrap
14686 msgid ""
14687 " zero device\n"
14688 "\n"
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:5115 ../src/guestfs-actions.pod:7764
14693 msgid "This command writes zeroes over the first few blocks of C<device>."
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7766
14698 msgid ""
14699 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
14700 "securely wipe the device).  It should be sufficient to remove any partition "
14701 "tables, filesystem superblocks and so on."
14702 msgstr ""
14703
14704 #. type: textblock
14705 #: ../fish/guestfish-actions.pod:5121
14706 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
14707 msgstr ""
14708
14709 #. type: =head2
14710 #: ../fish/guestfish-actions.pod:5124
14711 msgid "zero-device"
14712 msgstr ""
14713
14714 #. type: verbatim
14715 #: ../fish/guestfish-actions.pod:5126
14716 #, no-wrap
14717 msgid ""
14718 " zero-device device\n"
14719 "\n"
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:5128
14724 msgid ""
14725 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
14726 "which just zeroes the first few blocks of a device."
14727 msgstr ""
14728
14729 #. type: =head2
14730 #: ../fish/guestfish-actions.pod:5135
14731 msgid "zerofree"
14732 msgstr ""
14733
14734 #. type: verbatim
14735 #: ../fish/guestfish-actions.pod:5137
14736 #, no-wrap
14737 msgid ""
14738 " zerofree device\n"
14739 "\n"
14740 msgstr ""
14741
14742 #. type: textblock
14743 #: ../fish/guestfish-actions.pod:5139 ../src/guestfs-actions.pod:7810
14744 msgid ""
14745 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
14746 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
14747 "possible to compress the filesystem more effectively."
14748 msgstr ""
14749
14750 #. type: textblock
14751 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7815
14752 msgid "You should B<not> run this program if the filesystem is mounted."
14753 msgstr ""
14754
14755 #. type: textblock
14756 #: ../fish/guestfish-actions.pod:5147 ../src/guestfs-actions.pod:7818
14757 msgid ""
14758 "It is possible that using this program can damage the filesystem or data on "
14759 "the filesystem."
14760 msgstr ""
14761
14762 #. type: =head2
14763 #: ../fish/guestfish-actions.pod:5150
14764 msgid "zfgrep"
14765 msgstr ""
14766
14767 #. type: verbatim
14768 #: ../fish/guestfish-actions.pod:5152
14769 #, no-wrap
14770 msgid ""
14771 " zfgrep pattern path\n"
14772 "\n"
14773 msgstr ""
14774
14775 #. type: textblock
14776 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7832
14777 msgid "This calls the external C<zfgrep> program and returns the matching lines."
14778 msgstr ""
14779
14780 #. type: =head2
14781 #: ../fish/guestfish-actions.pod:5160
14782 msgid "zfgrepi"
14783 msgstr ""
14784
14785 #. type: verbatim
14786 #: ../fish/guestfish-actions.pod:5162
14787 #, no-wrap
14788 msgid ""
14789 " zfgrepi pattern path\n"
14790 "\n"
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:5164 ../src/guestfs-actions.pod:7851
14795 msgid "This calls the external C<zfgrep -i> program and returns the matching lines."
14796 msgstr ""
14797
14798 #. type: =head2
14799 #: ../fish/guestfish-actions.pod:5170
14800 msgid "zfile"
14801 msgstr ""
14802
14803 #. type: verbatim
14804 #: ../fish/guestfish-actions.pod:5172
14805 #, no-wrap
14806 msgid ""
14807 " zfile meth path\n"
14808 "\n"
14809 msgstr ""
14810
14811 #. type: textblock
14812 #: ../fish/guestfish-actions.pod:5174 ../src/guestfs-actions.pod:7877
14813 msgid "This command runs C<file> after first decompressing C<path> using C<method>."
14814 msgstr ""
14815
14816 #. type: textblock
14817 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7880
14818 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../fish/guestfish-actions.pod:5179
14823 msgid "Since 1.0.63, use L</file> instead which can now process compressed files."
14824 msgstr ""
14825
14826 #. type: textblock
14827 #: ../fish/guestfish-actions.pod:5182
14828 msgid "I<This function is deprecated.> In new code, use the L</file> call instead."
14829 msgstr ""
14830
14831 #. type: =head2
14832 #: ../fish/guestfish-actions.pod:5189
14833 msgid "zgrep"
14834 msgstr ""
14835
14836 #. type: verbatim
14837 #: ../fish/guestfish-actions.pod:5191
14838 #, no-wrap
14839 msgid ""
14840 " zgrep regex path\n"
14841 "\n"
14842 msgstr ""
14843
14844 #. type: textblock
14845 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7897
14846 msgid "This calls the external C<zgrep> program and returns the matching lines."
14847 msgstr ""
14848
14849 #. type: =head2
14850 #: ../fish/guestfish-actions.pod:5199
14851 msgid "zgrepi"
14852 msgstr ""
14853
14854 #. type: verbatim
14855 #: ../fish/guestfish-actions.pod:5201
14856 #, no-wrap
14857 msgid ""
14858 " zgrepi regex path\n"
14859 "\n"
14860 msgstr ""
14861
14862 #. type: textblock
14863 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7916
14864 msgid "This calls the external C<zgrep -i> program and returns the matching lines."
14865 msgstr ""
14866
14867 #. type: =head2
14868 #: ../fish/guestfish-commands.pod:1
14869 msgid "alloc"
14870 msgstr ""
14871
14872 #. type: =head2
14873 #: ../fish/guestfish-commands.pod:3
14874 msgid "allocate"
14875 msgstr ""
14876
14877 #. type: verbatim
14878 #: ../fish/guestfish-commands.pod:5
14879 #, no-wrap
14880 msgid ""
14881 " alloc filename size\n"
14882 "\n"
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-commands.pod:7
14887 msgid ""
14888 "This creates an empty (zeroed) file of the given size, and then adds so it "
14889 "can be further examined."
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
14894 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
14895 msgstr ""
14896
14897 #. type: textblock
14898 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
14899 msgid "Size can be specified using standard suffixes, eg. C<1M>."
14900 msgstr ""
14901
14902 #. type: textblock
14903 #: ../fish/guestfish-commands.pod:14
14904 msgid ""
14905 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
14906 "image, see L</PREPARED DISK IMAGES>."
14907 msgstr ""
14908
14909 #. type: =head2
14910 #: ../fish/guestfish-commands.pod:17
14911 msgid "copy-in"
14912 msgstr ""
14913
14914 #. type: verbatim
14915 #: ../fish/guestfish-commands.pod:19
14916 #, no-wrap
14917 msgid ""
14918 " copy-in local [local ...] /remotedir\n"
14919 "\n"
14920 msgstr ""
14921
14922 #. type: textblock
14923 #: ../fish/guestfish-commands.pod:21
14924 msgid ""
14925 "C<copy-in> copies local files or directories recursively into the disk "
14926 "image, placing them in the directory called C</remotedir> (which must "
14927 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
14928 "other commands as necessary."
14929 msgstr ""
14930
14931 #. type: textblock
14932 #: ../fish/guestfish-commands.pod:26
14933 msgid ""
14934 "Multiple local files and directories can be specified, but the last "
14935 "parameter must always be a remote directory.  Wildcards cannot be used."
14936 msgstr ""
14937
14938 #. type: =head2
14939 #: ../fish/guestfish-commands.pod:30
14940 msgid "copy-out"
14941 msgstr ""
14942
14943 #. type: verbatim
14944 #: ../fish/guestfish-commands.pod:32
14945 #, no-wrap
14946 msgid ""
14947 " copy-out remote [remote ...] localdir\n"
14948 "\n"
14949 msgstr ""
14950
14951 #. type: textblock
14952 #: ../fish/guestfish-commands.pod:34
14953 msgid ""
14954 "C<copy-out> copies remote files or directories recursively out of the disk "
14955 "image, placing them on the host disk in a local directory called C<localdir> "
14956 "(which must exist).  This guestfish meta-command turns into a sequence of "
14957 "L</download>, L</tar-out> and other commands as necessary."
14958 msgstr ""
14959
14960 #. type: textblock
14961 #: ../fish/guestfish-commands.pod:40
14962 msgid ""
14963 "Multiple remote files and directories can be specified, but the last "
14964 "parameter must always be a local directory.  To download to the current "
14965 "directory, use C<.> as in:"
14966 msgstr ""
14967
14968 #. type: verbatim
14969 #: ../fish/guestfish-commands.pod:44
14970 #, no-wrap
14971 msgid ""
14972 " copy-out /home .\n"
14973 "\n"
14974 msgstr ""
14975
14976 #. type: textblock
14977 #: ../fish/guestfish-commands.pod:46
14978 msgid ""
14979 "Wildcards cannot be used in the ordinary command, but you can use them with "
14980 "the help of L</glob> like this:"
14981 msgstr ""
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-commands.pod:49
14985 #, no-wrap
14986 msgid ""
14987 " glob copy-out /home/* .\n"
14988 "\n"
14989 msgstr ""
14990
14991 #. type: =head2
14992 #: ../fish/guestfish-commands.pod:51
14993 msgid "display"
14994 msgstr ""
14995
14996 #. type: verbatim
14997 #: ../fish/guestfish-commands.pod:53
14998 #, no-wrap
14999 msgid ""
15000 " display filename\n"
15001 "\n"
15002 msgstr ""
15003
15004 #. type: textblock
15005 #: ../fish/guestfish-commands.pod:55
15006 msgid ""
15007 "Use C<display> (a graphical display program) to display an image file.  It "
15008 "downloads the file, and runs C<display> on it."
15009 msgstr ""
15010
15011 #. type: textblock
15012 #: ../fish/guestfish-commands.pod:58
15013 msgid ""
15014 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
15015 "environment variable.  For example to use the GNOME display program:"
15016 msgstr ""
15017
15018 #. type: verbatim
15019 #: ../fish/guestfish-commands.pod:61
15020 #, no-wrap
15021 msgid ""
15022 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
15023 "\n"
15024 msgstr ""
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-commands.pod:63
15028 msgid "See also L<display(1)>."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-commands.pod:65
15033 msgid "echo"
15034 msgstr ""
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-commands.pod:67
15038 #, no-wrap
15039 msgid ""
15040 " echo [params ...]\n"
15041 "\n"
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-commands.pod:69
15046 msgid "This echos the parameters to the terminal."
15047 msgstr ""
15048
15049 #. type: =head2
15050 #: ../fish/guestfish-commands.pod:71
15051 msgid "edit"
15052 msgstr ""
15053
15054 #. type: =head2
15055 #: ../fish/guestfish-commands.pod:73
15056 msgid "vi"
15057 msgstr ""
15058
15059 #. type: =head2
15060 #: ../fish/guestfish-commands.pod:75
15061 msgid "emacs"
15062 msgstr ""
15063
15064 #. type: verbatim
15065 #: ../fish/guestfish-commands.pod:77
15066 #, no-wrap
15067 msgid ""
15068 " edit filename\n"
15069 "\n"
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-commands.pod:79
15074 msgid ""
15075 "This is used to edit a file.  It downloads the file, edits it locally using "
15076 "your editor, then uploads the result."
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-commands.pod:82
15081 msgid ""
15082 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
15083 "or C<emacs> you will get those corresponding editors."
15084 msgstr ""
15085
15086 #. type: =head2
15087 #: ../fish/guestfish-commands.pod:86
15088 msgid "glob"
15089 msgstr ""
15090
15091 #. type: verbatim
15092 #: ../fish/guestfish-commands.pod:88
15093 #, no-wrap
15094 msgid ""
15095 " glob command args...\n"
15096 "\n"
15097 msgstr ""
15098
15099 #. type: textblock
15100 #: ../fish/guestfish-commands.pod:90
15101 msgid ""
15102 "Expand wildcards in any paths in the args list, and run C<command> "
15103 "repeatedly on each matching path."
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-commands.pod:93
15108 msgid "See L</WILDCARDS AND GLOBBING>."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-commands.pod:95
15113 msgid "hexedit"
15114 msgstr ""
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-commands.pod:97
15118 #, no-wrap
15119 msgid ""
15120 " hexedit <filename|device>\n"
15121 " hexedit <filename|device> <max>\n"
15122 " hexedit <filename|device> <start> <max>\n"
15123 "\n"
15124 msgstr ""
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-commands.pod:101
15128 msgid ""
15129 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
15130 "device."
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-commands.pod:104
15135 msgid ""
15136 "This command works by downloading potentially the whole file or device, "
15137 "editing it locally, then uploading it.  If the file or device is large, you "
15138 "have to specify which part you wish to edit by using C<max> and/or C<start> "
15139 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
15140 "usual modifiers allowed such as C<1M> (1 megabyte)."
15141 msgstr ""
15142
15143 #. type: textblock
15144 #: ../fish/guestfish-commands.pod:111
15145 msgid "For example to edit the first few sectors of a disk you might do:"
15146 msgstr ""
15147
15148 #. type: verbatim
15149 #: ../fish/guestfish-commands.pod:114
15150 #, no-wrap
15151 msgid ""
15152 " hexedit /dev/sda 1M\n"
15153 "\n"
15154 msgstr ""
15155
15156 #. type: textblock
15157 #: ../fish/guestfish-commands.pod:116
15158 msgid ""
15159 "which would allow you to edit anywhere within the first megabyte of the "
15160 "disk."
15161 msgstr ""
15162
15163 #. type: textblock
15164 #: ../fish/guestfish-commands.pod:119
15165 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
15166 msgstr ""
15167
15168 #. type: verbatim
15169 #: ../fish/guestfish-commands.pod:121
15170 #, no-wrap
15171 msgid ""
15172 " hexedit /dev/sda1 0x400 0x400\n"
15173 "\n"
15174 msgstr ""
15175
15176 #. type: textblock
15177 #: ../fish/guestfish-commands.pod:123
15178 msgid "(assuming the superblock is in the standard location)."
15179 msgstr ""
15180
15181 #. type: textblock
15182 #: ../fish/guestfish-commands.pod:125
15183 msgid ""
15184 "This command requires the external L<hexedit(1)> program.  You can specify "
15185 "another program to use by setting the C<HEXEDITOR> environment variable."
15186 msgstr ""
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-commands.pod:129
15190 msgid "See also L</hexdump>."
15191 msgstr ""
15192
15193 #. type: =head2
15194 #: ../fish/guestfish-commands.pod:131
15195 msgid "lcd"
15196 msgstr ""
15197
15198 #. type: verbatim
15199 #: ../fish/guestfish-commands.pod:133
15200 #, no-wrap
15201 msgid ""
15202 " lcd directory\n"
15203 "\n"
15204 msgstr ""
15205
15206 #. type: textblock
15207 #: ../fish/guestfish-commands.pod:135
15208 msgid "Change the local directory, ie. the current directory of guestfish itself."
15209 msgstr ""
15210
15211 #. type: textblock
15212 #: ../fish/guestfish-commands.pod:138
15213 msgid "Note that C<!cd> won't do what you might expect."
15214 msgstr ""
15215
15216 #. type: =head2
15217 #: ../fish/guestfish-commands.pod:140
15218 msgid "man"
15219 msgstr ""
15220
15221 #. type: =head2
15222 #: ../fish/guestfish-commands.pod:142
15223 msgid "manual"
15224 msgstr ""
15225
15226 #. type: verbatim
15227 #: ../fish/guestfish-commands.pod:144
15228 #, no-wrap
15229 msgid ""
15230 "  man\n"
15231 "\n"
15232 msgstr ""
15233
15234 #. type: textblock
15235 #: ../fish/guestfish-commands.pod:146
15236 msgid "Opens the manual page for guestfish."
15237 msgstr ""
15238
15239 #. type: =head2
15240 #: ../fish/guestfish-commands.pod:148
15241 msgid "more"
15242 msgstr ""
15243
15244 #. type: =head2
15245 #: ../fish/guestfish-commands.pod:150
15246 msgid "less"
15247 msgstr ""
15248
15249 #. type: verbatim
15250 #: ../fish/guestfish-commands.pod:152
15251 #, no-wrap
15252 msgid ""
15253 " more filename\n"
15254 "\n"
15255 msgstr ""
15256
15257 #. type: verbatim
15258 #: ../fish/guestfish-commands.pod:154
15259 #, no-wrap
15260 msgid ""
15261 " less filename\n"
15262 "\n"
15263 msgstr ""
15264
15265 #. type: textblock
15266 #: ../fish/guestfish-commands.pod:156
15267 msgid "This is used to view a file."
15268 msgstr ""
15269
15270 #. type: textblock
15271 #: ../fish/guestfish-commands.pod:158
15272 msgid ""
15273 "The default viewer is C<$PAGER>.  However if you use the alternate command "
15274 "C<less> you will get the C<less> command specifically."
15275 msgstr ""
15276
15277 #. type: =head2
15278 #: ../fish/guestfish-commands.pod:161
15279 msgid "reopen"
15280 msgstr ""
15281
15282 #. type: verbatim
15283 #: ../fish/guestfish-commands.pod:163
15284 #, no-wrap
15285 msgid ""
15286 "  reopen\n"
15287 "\n"
15288 msgstr ""
15289
15290 #. type: textblock
15291 #: ../fish/guestfish-commands.pod:165
15292 msgid ""
15293 "Close and reopen the libguestfs handle.  It is not necessary to use this "
15294 "normally, because the handle is closed properly when guestfish exits.  "
15295 "However this is occasionally useful for testing."
15296 msgstr ""
15297
15298 #. type: =head2
15299 #: ../fish/guestfish-commands.pod:169
15300 msgid "setenv"
15301 msgstr ""
15302
15303 #. type: verbatim
15304 #: ../fish/guestfish-commands.pod:171
15305 #, no-wrap
15306 msgid ""
15307 "  setenv VAR value\n"
15308 "\n"
15309 msgstr ""
15310
15311 #. type: textblock
15312 #: ../fish/guestfish-commands.pod:173
15313 msgid "Set the environment variable C<VAR> to the string C<value>."
15314 msgstr ""
15315
15316 #. type: textblock
15317 #: ../fish/guestfish-commands.pod:175
15318 msgid "To print the value of an environment variable use a shell command such as:"
15319 msgstr ""
15320
15321 #. type: verbatim
15322 #: ../fish/guestfish-commands.pod:178
15323 #, no-wrap
15324 msgid ""
15325 " !echo $VAR\n"
15326 "\n"
15327 msgstr ""
15328
15329 #. type: =head2
15330 #: ../fish/guestfish-commands.pod:180
15331 msgid "sparse"
15332 msgstr ""
15333
15334 #. type: verbatim
15335 #: ../fish/guestfish-commands.pod:182
15336 #, no-wrap
15337 msgid ""
15338 " sparse filename size\n"
15339 "\n"
15340 msgstr ""
15341
15342 #. type: textblock
15343 #: ../fish/guestfish-commands.pod:184
15344 msgid ""
15345 "This creates an empty sparse file of the given size, and then adds so it can "
15346 "be further examined."
15347 msgstr ""
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-commands.pod:187
15351 msgid ""
15352 "In all respects it works the same as the L</alloc> command, except that the "
15353 "image file is allocated sparsely, which means that disk blocks are not "
15354 "assigned to the file until they are needed.  Sparse disk files only use "
15355 "space when written to, but they are slower and there is a danger you could "
15356 "run out of real disk space during a write operation."
15357 msgstr ""
15358
15359 #. type: =head2
15360 #: ../fish/guestfish-commands.pod:197
15361 msgid "supported"
15362 msgstr ""
15363
15364 #. type: verbatim
15365 #: ../fish/guestfish-commands.pod:199
15366 #, no-wrap
15367 msgid ""
15368 " supported\n"
15369 "\n"
15370 msgstr ""
15371
15372 #. type: textblock
15373 #: ../fish/guestfish-commands.pod:201
15374 msgid ""
15375 "This command returns a list of the optional groups known to the daemon, and "
15376 "indicates which ones are supported by this build of the libguestfs "
15377 "appliance."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-commands.pod:205
15382 msgid "See also L<guestfs(3)/AVAILABILITY>."
15383 msgstr ""
15384
15385 #. type: =head2
15386 #: ../fish/guestfish-commands.pod:207
15387 msgid "time"
15388 msgstr ""
15389
15390 #. type: verbatim
15391 #: ../fish/guestfish-commands.pod:209
15392 #, no-wrap
15393 msgid ""
15394 " time command args...\n"
15395 "\n"
15396 msgstr ""
15397
15398 #. type: textblock
15399 #: ../fish/guestfish-commands.pod:211
15400 msgid ""
15401 "Run the command as usual, but print the elapsed time afterwards.  This can "
15402 "be useful for benchmarking operations."
15403 msgstr ""
15404
15405 #. type: =head2
15406 #: ../fish/guestfish-commands.pod:214
15407 msgid "unsetenv"
15408 msgstr ""
15409
15410 #. type: verbatim
15411 #: ../fish/guestfish-commands.pod:216
15412 #, no-wrap
15413 msgid ""
15414 "  unsetenv VAR\n"
15415 "\n"
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-commands.pod:218
15420 msgid "Remove C<VAR> from the environment."
15421 msgstr ""
15422
15423 #. type: textblock
15424 #: ../fish/guestfish.pod:5
15425 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
15426 msgstr ""
15427
15428 #. type: verbatim
15429 #: ../fish/guestfish.pod:9
15430 #, no-wrap
15431 msgid ""
15432 " guestfish [--options] [commands]\n"
15433 "\n"
15434 msgstr ""
15435
15436 #. type: verbatim
15437 #: ../fish/guestfish.pod:11
15438 #, no-wrap
15439 msgid ""
15440 " guestfish\n"
15441 "\n"
15442 msgstr ""
15443
15444 #. type: verbatim
15445 #: ../fish/guestfish.pod:13
15446 #, no-wrap
15447 msgid ""
15448 " guestfish [--ro|--rw] -a disk.img\n"
15449 "\n"
15450 msgstr ""
15451
15452 #. type: verbatim
15453 #: ../fish/guestfish.pod:15
15454 #, no-wrap
15455 msgid ""
15456 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
15457 "\n"
15458 msgstr ""
15459
15460 #. type: verbatim
15461 #: ../fish/guestfish.pod:17
15462 #, no-wrap
15463 msgid ""
15464 " guestfish -d libvirt-domain\n"
15465 "\n"
15466 msgstr ""
15467
15468 #. type: verbatim
15469 #: ../fish/guestfish.pod:19
15470 #, no-wrap
15471 msgid ""
15472 " guestfish [--ro|--rw] -a disk.img -i\n"
15473 "\n"
15474 msgstr ""
15475
15476 #. type: verbatim
15477 #: ../fish/guestfish.pod:21
15478 #, no-wrap
15479 msgid ""
15480 " guestfish -d libvirt-domain -i\n"
15481 "\n"
15482 msgstr ""
15483
15484 #. type: textblock
15485 #: ../fish/guestfish.pod:25
15486 msgid ""
15487 "Using guestfish in read/write mode on live virtual machines can be "
15488 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
15489 "option to use guestfish safely if the disk image or virtual machine might be "
15490 "live."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish.pod:32
15495 msgid ""
15496 "Guestfish is a shell and command-line tool for examining and modifying "
15497 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
15498 "functionality of the guestfs API, see L<guestfs(3)>."
15499 msgstr ""
15500
15501 #. type: textblock
15502 #: ../fish/guestfish.pod:36
15503 msgid ""
15504 "Guestfish gives you structured access to the libguestfs API, from shell "
15505 "scripts or the command line or interactively.  If you want to rescue a "
15506 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
15507 "command."
15508 msgstr ""
15509
15510 #. type: =head2
15511 #: ../fish/guestfish.pod:43
15512 msgid "As an interactive shell"
15513 msgstr ""
15514
15515 #. type: verbatim
15516 #: ../fish/guestfish.pod:45
15517 #, no-wrap
15518 msgid ""
15519 " $ guestfish\n"
15520 " \n"
15521 msgstr ""
15522
15523 #. type: verbatim
15524 #: ../fish/guestfish.pod:47
15525 #, no-wrap
15526 msgid ""
15527 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
15528 " editing virtual machine filesystems.\n"
15529 " \n"
15530 msgstr ""
15531
15532 #. type: verbatim
15533 #: ../fish/guestfish.pod:50
15534 #, no-wrap
15535 msgid ""
15536 " Type: 'help' for a list of commands\n"
15537 "       'man' to read the manual\n"
15538 "       'quit' to quit the shell\n"
15539 " \n"
15540 msgstr ""
15541
15542 #. type: verbatim
15543 #: ../fish/guestfish.pod:54
15544 #, no-wrap
15545 msgid ""
15546 " ><fs> add-ro disk.img\n"
15547 " ><fs> run\n"
15548 " ><fs> list-filesystems\n"
15549 " /dev/sda1: ext4\n"
15550 " /dev/vg_guest/lv_root: ext4\n"
15551 " /dev/vg_guest/lv_swap: swap\n"
15552 " ><fs> mount /dev/vg_guest/lv_root /\n"
15553 " ><fs> cat /etc/fstab\n"
15554 " # /etc/fstab\n"
15555 " # Created by anaconda\n"
15556 " [...]\n"
15557 " ><fs> exit\n"
15558 "\n"
15559 msgstr ""
15560
15561 #. type: =head2
15562 #: ../fish/guestfish.pod:67
15563 msgid "From shell scripts"
15564 msgstr ""
15565
15566 #. type: textblock
15567 #: ../fish/guestfish.pod:69
15568 msgid "Create a new C</etc/motd> file in a guest or disk image:"
15569 msgstr ""
15570
15571 #. type: verbatim
15572 #: ../fish/guestfish.pod:71
15573 #, no-wrap
15574 msgid ""
15575 " guestfish <<_EOF_\n"
15576 " add disk.img\n"
15577 " run\n"
15578 " mount /dev/vg_guest/lv_root /\n"
15579 " write /etc/motd \"Welcome, new users\"\n"
15580 " _EOF_\n"
15581 "\n"
15582 msgstr ""
15583
15584 #. type: textblock
15585 #: ../fish/guestfish.pod:78
15586 msgid "List the LVM logical volumes in a disk image:"
15587 msgstr ""
15588
15589 #. type: verbatim
15590 #: ../fish/guestfish.pod:80
15591 #, no-wrap
15592 msgid ""
15593 " guestfish -a disk.img --ro <<_EOF_\n"
15594 " run\n"
15595 " lvs\n"
15596 " _EOF_\n"
15597 "\n"
15598 msgstr ""
15599
15600 #. type: textblock
15601 #: ../fish/guestfish.pod:85
15602 msgid "List all the filesystems in a disk image:"
15603 msgstr ""
15604
15605 #. type: verbatim
15606 #: ../fish/guestfish.pod:87
15607 #, no-wrap
15608 msgid ""
15609 " guestfish -a disk.img --ro <<_EOF_\n"
15610 " run\n"
15611 " list-filesystems\n"
15612 " _EOF_\n"
15613 "\n"
15614 msgstr ""
15615
15616 #. type: =head2
15617 #: ../fish/guestfish.pod:92
15618 msgid "On one command line"
15619 msgstr ""
15620
15621 #. type: textblock
15622 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
15623 msgid "Update C</etc/resolv.conf> in a guest:"
15624 msgstr ""
15625
15626 #. type: verbatim
15627 #: ../fish/guestfish.pod:96
15628 #, no-wrap
15629 msgid ""
15630 " guestfish \\\n"
15631 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
15632 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
15633 "\n"
15634 msgstr ""
15635
15636 #. type: textblock
15637 #: ../fish/guestfish.pod:100
15638 msgid "Edit C</boot/grub/grub.conf> interactively:"
15639 msgstr ""
15640
15641 #. type: verbatim
15642 #: ../fish/guestfish.pod:102
15643 #, no-wrap
15644 msgid ""
15645 " guestfish --rw --add disk.img \\\n"
15646 "   --mount /dev/vg_guest/lv_root \\\n"
15647 "   --mount /dev/sda1:/boot \\\n"
15648 "   edit /boot/grub/grub.conf\n"
15649 "\n"
15650 msgstr ""
15651
15652 #. type: =head2
15653 #: ../fish/guestfish.pod:107
15654 msgid "Mount disks automatically"
15655 msgstr ""
15656
15657 #. type: textblock
15658 #: ../fish/guestfish.pod:109
15659 msgid ""
15660 "Use the I<-i> option to automatically mount the disks from a virtual "
15661 "machine:"
15662 msgstr ""
15663
15664 #. type: verbatim
15665 #: ../fish/guestfish.pod:112
15666 #, no-wrap
15667 msgid ""
15668 " guestfish --ro -a disk.img -i cat /etc/group\n"
15669 "\n"
15670 msgstr ""
15671
15672 #. type: verbatim
15673 #: ../fish/guestfish.pod:114
15674 #, no-wrap
15675 msgid ""
15676 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
15677 "\n"
15678 msgstr ""
15679
15680 #. type: textblock
15681 #: ../fish/guestfish.pod:116
15682 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
15683 msgstr ""
15684
15685 #. type: verbatim
15686 #: ../fish/guestfish.pod:118
15687 #, no-wrap
15688 msgid ""
15689 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
15690 "\n"
15691 msgstr ""
15692
15693 #. type: =head2
15694 #: ../fish/guestfish.pod:120
15695 msgid "As a script interpreter"
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish.pod:122
15700 msgid "Create a 100MB disk containing an ext2-formatted partition:"
15701 msgstr ""
15702
15703 #. type: verbatim
15704 #: ../fish/guestfish.pod:124
15705 #, no-wrap
15706 msgid ""
15707 " #!/usr/bin/guestfish -f\n"
15708 " sparse test1.img 100M\n"
15709 " run\n"
15710 " part-disk /dev/sda mbr\n"
15711 " mkfs ext2 /dev/sda1\n"
15712 "\n"
15713 msgstr ""
15714
15715 #. type: =head2
15716 #: ../fish/guestfish.pod:130
15717 msgid "Start with a prepared disk"
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish.pod:132
15722 msgid ""
15723 "An alternate way to create a 100MB disk called C<test1.img> containing a "
15724 "single ext2-formatted partition:"
15725 msgstr ""
15726
15727 #. type: verbatim
15728 #: ../fish/guestfish.pod:135
15729 #, no-wrap
15730 msgid ""
15731 " guestfish -N fs\n"
15732 "\n"
15733 msgstr ""
15734
15735 #. type: textblock
15736 #: ../fish/guestfish.pod:137
15737 msgid "To list what is available do:"
15738 msgstr ""
15739
15740 #. type: verbatim
15741 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:998
15742 #, no-wrap
15743 msgid ""
15744 " guestfish -N help | less\n"
15745 "\n"
15746 msgstr ""
15747
15748 #. type: =head2
15749 #: ../fish/guestfish.pod:141
15750 msgid "Remote control"
15751 msgstr ""
15752
15753 #. type: verbatim
15754 #: ../fish/guestfish.pod:143
15755 #, no-wrap
15756 msgid ""
15757 " eval \"`guestfish --listen`\"\n"
15758 " guestfish --remote add-ro disk.img\n"
15759 " guestfish --remote run\n"
15760 " guestfish --remote lvs\n"
15761 "\n"
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish.pod:154
15766 msgid "Displays general help on options."
15767 msgstr ""
15768
15769 #. type: =item
15770 #: ../fish/guestfish.pod:158
15771 msgid "B<--cmd-help>"
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish.pod:160
15776 msgid "Lists all available guestfish commands."
15777 msgstr ""
15778
15779 #. type: =item
15780 #: ../fish/guestfish.pod:162
15781 msgid "B<-h cmd>"
15782 msgstr ""
15783
15784 #. type: =item
15785 #: ../fish/guestfish.pod:164
15786 msgid "B<--cmd-help cmd>"
15787 msgstr ""
15788
15789 #. type: textblock
15790 #: ../fish/guestfish.pod:166
15791 msgid "Displays detailed help on a single command C<cmd>."
15792 msgstr ""
15793
15794 #. type: =item
15795 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
15796 msgid "B<-a image>"
15797 msgstr ""
15798
15799 #. type: =item
15800 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
15801 msgid "B<--add image>"
15802 msgstr ""
15803
15804 #. type: textblock
15805 #: ../fish/guestfish.pod:172
15806 msgid "Add a block device or virtual machine image to the shell."
15807 msgstr ""
15808
15809 #. type: textblock
15810 #: ../fish/guestfish.pod:177
15811 msgid ""
15812 "Using this flag is mostly equivalent to using the C<add> command, with "
15813 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
15814 "the I<--format=...> flag was given."
15815 msgstr ""
15816
15817 #. type: textblock
15818 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
15819 msgid ""
15820 "When used in conjunction with the I<-d> option, this specifies the libvirt "
15821 "URI to use.  The default is to use the default libvirt connection."
15822 msgstr ""
15823
15824 #. type: =item
15825 #: ../fish/guestfish.pod:189
15826 msgid "B<--csh>"
15827 msgstr ""
15828
15829 #. type: textblock
15830 #: ../fish/guestfish.pod:191
15831 msgid ""
15832 "If using the I<--listen> option and a csh-like shell, use this option.  See "
15833 "section L</REMOTE CONTROL AND CSH> below."
15834 msgstr ""
15835
15836 #. type: =item
15837 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
15838 msgid "B<-d libvirt-domain>"
15839 msgstr ""
15840
15841 #. type: =item
15842 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
15843 msgid "B<--domain libvirt-domain>"
15844 msgstr ""
15845
15846 #. type: textblock
15847 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
15848 msgid ""
15849 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
15850 "used, then any libvirt domain can be used.  However in write mode, only "
15851 "libvirt domains which are shut down can be named here."
15852 msgstr ""
15853
15854 #. type: textblock
15855 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
15856 msgid "Domain UUIDs can be used instead of names."
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../fish/guestfish.pod:204
15861 msgid ""
15862 "Using this flag is mostly equivalent to using the C<add-domain> command, "
15863 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
15864 "if the I<--format:...> flag was given."
15865 msgstr ""
15866
15867 #. type: =item
15868 #: ../fish/guestfish.pod:208
15869 msgid "B<-D>"
15870 msgstr ""
15871
15872 #. type: =item
15873 #: ../fish/guestfish.pod:210
15874 msgid "B<--no-dest-paths>"
15875 msgstr ""
15876
15877 #. type: textblock
15878 #: ../fish/guestfish.pod:212
15879 msgid ""
15880 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
15881 "to hit the tab key to complete paths on the guest filesystem, but this "
15882 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
15883 "allow this feature to be disabled."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
15888 msgid ""
15889 "When prompting for keys and passphrases, guestfish normally turns echoing "
15890 "off so you cannot see what you are typing.  If you are not worried about "
15891 "Tempest attacks and there is no one else in the room you can specify this "
15892 "flag to see what you are typing."
15893 msgstr ""
15894
15895 #. type: =item
15896 #: ../fish/guestfish.pod:224
15897 msgid "B<-f file>"
15898 msgstr ""
15899
15900 #. type: =item
15901 #: ../fish/guestfish.pod:226
15902 msgid "B<--file file>"
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish.pod:228
15907 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
15908 msgstr ""
15909
15910 #. type: verbatim
15911 #: ../fish/guestfish.pod:231
15912 #, no-wrap
15913 msgid ""
15914 " #!/usr/bin/guestfish -f\n"
15915 "\n"
15916 msgstr ""
15917
15918 #. type: verbatim
15919 #: ../fish/guestfish.pod:244
15920 #, no-wrap
15921 msgid ""
15922 " guestfish --format=raw -a disk.img\n"
15923 "\n"
15924 msgstr ""
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish.pod:248
15928 #, no-wrap
15929 msgid ""
15930 " guestfish --format=raw -a disk.img --format -a another.img\n"
15931 "\n"
15932 msgstr ""
15933
15934 #. type: textblock
15935 #: ../fish/guestfish.pod:253
15936 msgid ""
15937 "If you have untrusted raw-format guest disk images, you should use this "
15938 "option to specify the disk format.  This avoids a possible security problem "
15939 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
15940 msgstr ""
15941
15942 #. type: =item
15943 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
15944 msgid "B<--inspector>"
15945 msgstr ""
15946
15947 #. type: textblock
15948 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
15949 msgid ""
15950 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
15951 "system and mount filesystems as they would be mounted on the real virtual "
15952 "machine."
15953 msgstr ""
15954
15955 #. type: textblock
15956 #: ../fish/guestfish.pod:266
15957 msgid "Typical usage is either:"
15958 msgstr ""
15959
15960 #. type: verbatim
15961 #: ../fish/guestfish.pod:268
15962 #, no-wrap
15963 msgid ""
15964 " guestfish -d myguest -i\n"
15965 "\n"
15966 msgstr ""
15967
15968 #. type: textblock
15969 #: ../fish/guestfish.pod:270
15970 msgid "(for an inactive libvirt domain called I<myguest>), or:"
15971 msgstr ""
15972
15973 #. type: verbatim
15974 #: ../fish/guestfish.pod:272
15975 #, no-wrap
15976 msgid ""
15977 " guestfish --ro -d myguest -i\n"
15978 "\n"
15979 msgstr ""
15980
15981 #. type: textblock
15982 #: ../fish/guestfish.pod:274
15983 msgid "(for active domains, readonly), or specify the block device directly:"
15984 msgstr ""
15985
15986 #. type: verbatim
15987 #: ../fish/guestfish.pod:276
15988 #, no-wrap
15989 msgid ""
15990 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
15991 "\n"
15992 msgstr ""
15993
15994 #. type: textblock
15995 #: ../fish/guestfish.pod:278
15996 msgid ""
15997 "Note that the command line syntax changed slightly over older versions of "
15998 "guestfish.  You can still use the old syntax:"
15999 msgstr ""
16000
16001 #. type: verbatim
16002 #: ../fish/guestfish.pod:281
16003 #, no-wrap
16004 msgid ""
16005 " guestfish [--ro] -i disk.img\n"
16006 "\n"
16007 msgstr ""
16008
16009 #. type: verbatim
16010 #: ../fish/guestfish.pod:283
16011 #, no-wrap
16012 msgid ""
16013 " guestfish [--ro] -i libvirt-domain\n"
16014 "\n"
16015 msgstr ""
16016
16017 #. type: textblock
16018 #: ../fish/guestfish.pod:285
16019 msgid ""
16020 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
16021 "then using other commands to mount the filesystems that were found."
16022 msgstr ""
16023
16024 #. type: =item
16025 #: ../fish/guestfish.pod:294
16026 msgid "B<--listen>"
16027 msgstr ""
16028
16029 #. type: textblock
16030 #: ../fish/guestfish.pod:296
16031 msgid ""
16032 "Fork into the background and listen for remote commands.  See section "
16033 "L</REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
16034 msgstr ""
16035
16036 #. type: =item
16037 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
16038 msgid "B<--live>"
16039 msgstr ""
16040
16041 #. type: textblock
16042 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
16043 msgid ""
16044 "Connect to a live virtual machine.  (Experimental, see "
16045 "L<guestfs(3)/ATTACHING TO RUNNING DAEMONS>)."
16046 msgstr ""
16047
16048 #. type: =item
16049 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
16050 msgid "B<-m dev[:mountpoint[:options]]>"
16051 msgstr ""
16052
16053 #. type: =item
16054 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
16055 msgid "B<--mount dev[:mountpoint[:options]]>"
16056 msgstr ""
16057
16058 #. type: textblock
16059 #: ../fish/guestfish.pod:308
16060 msgid "Mount the named partition or logical volume on the given mountpoint."
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../fish/guestfish.pod:310
16065 msgid "If the mountpoint is omitted, it defaults to C</>."
16066 msgstr ""
16067
16068 #. type: textblock
16069 #: ../fish/guestfish.pod:312
16070 msgid "You have to mount something on C</> before most commands will work."
16071 msgstr ""
16072
16073 #. type: textblock
16074 #: ../fish/guestfish.pod:314
16075 msgid ""
16076 "If any I<-m> or I<--mount> options are given, the guest is automatically "
16077 "launched."
16078 msgstr ""
16079
16080 #. type: textblock
16081 #: ../fish/guestfish.pod:317
16082 msgid ""
16083 "If you don't know what filesystems a disk image contains, you can either run "
16084 "guestfish without this option, then list the partitions, filesystems and LVs "
16085 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
16086 "commands), or you can use the L<virt-filesystems(1)> program."
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
16091 msgid ""
16092 "The third (and rarely used) part of the mount parameter is the list of mount "
16093 "options used to mount the underlying filesystem.  If this is not given, then "
16094 "the mount options are either the empty string or C<ro> (the latter if the "
16095 "I<--ro> flag is used).  By specifying the mount options, you override this "
16096 "default choice.  Probably the only time you would use this is to enable ACLs "
16097 "and/or extended attributes if the filesystem can support them:"
16098 msgstr ""
16099
16100 #. type: verbatim
16101 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
16102 #, no-wrap
16103 msgid ""
16104 " -m /dev/sda1:/:acl,user_xattr\n"
16105 "\n"
16106 msgstr ""
16107
16108 #. type: textblock
16109 #: ../fish/guestfish.pod:333
16110 msgid "Using this flag is equivalent to using the C<mount-options> command."
16111 msgstr ""
16112
16113 #. type: =item
16114 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193 ../resize/virt-resize.pod:352
16115 msgid "B<-n>"
16116 msgstr ""
16117
16118 #. type: =item
16119 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
16120 msgid "B<--no-sync>"
16121 msgstr ""
16122
16123 #. type: textblock
16124 #: ../fish/guestfish.pod:339
16125 msgid ""
16126 "Disable autosync.  This is enabled by default.  See the discussion of "
16127 "autosync in the L<guestfs(3)> manpage."
16128 msgstr ""
16129
16130 #. type: =item
16131 #: ../fish/guestfish.pod:342
16132 msgid "B<-N type>"
16133 msgstr ""
16134
16135 #. type: =item
16136 #: ../fish/guestfish.pod:344
16137 msgid "B<--new type>"
16138 msgstr ""
16139
16140 #. type: =item
16141 #: ../fish/guestfish.pod:346
16142 msgid "B<-N help>"
16143 msgstr ""
16144
16145 #. type: textblock
16146 #: ../fish/guestfish.pod:348
16147 msgid ""
16148 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
16149 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
16150 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
16151 "IMAGES> below."
16152 msgstr ""
16153
16154 #. type: =item
16155 #: ../fish/guestfish.pod:353
16156 msgid "B<--progress-bars>"
16157 msgstr ""
16158
16159 #. type: textblock
16160 #: ../fish/guestfish.pod:355
16161 msgid "Enable progress bars, even when guestfish is used non-interactively."
16162 msgstr ""
16163
16164 #. type: textblock
16165 #: ../fish/guestfish.pod:357
16166 msgid ""
16167 "Progress bars are enabled by default when guestfish is used as an "
16168 "interactive shell."
16169 msgstr ""
16170
16171 #. type: =item
16172 #: ../fish/guestfish.pod:360
16173 msgid "B<--no-progress-bars>"
16174 msgstr ""
16175
16176 #. type: textblock
16177 #: ../fish/guestfish.pod:362
16178 msgid "Disable progress bars."
16179 msgstr ""
16180
16181 #. type: =item
16182 #: ../fish/guestfish.pod:364
16183 msgid "B<--remote[=pid]>"
16184 msgstr ""
16185
16186 #. type: textblock
16187 #: ../fish/guestfish.pod:366
16188 msgid ""
16189 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
16190 "CONTROL GUESTFISH OVER A SOCKET> below."
16191 msgstr ""
16192
16193 #. type: =item
16194 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239 ../rescue/virt-rescue.pod:161
16195 msgid "B<-r>"
16196 msgstr ""
16197
16198 #. type: =item
16199 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241 ../rescue/virt-rescue.pod:163
16200 msgid "B<--ro>"
16201 msgstr ""
16202
16203 #. type: textblock
16204 #: ../fish/guestfish.pod:373
16205 msgid ""
16206 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16207 "mounts are done read-only."
16208 msgstr ""
16209
16210 #. type: textblock
16211 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
16212 msgid ""
16213 "The option must always be used if the disk image or virtual machine might be "
16214 "running, and is generally recommended in cases where you don't need write "
16215 "access to the disk."
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../fish/guestfish.pod:380
16220 msgid ""
16221 "Note that prepared disk images created with I<-N> are not affected by this "
16222 "option.  Also commands like C<add> are not affected - you have to specify "
16223 "the C<readonly:true> option explicitly if you need it."
16224 msgstr ""
16225
16226 #. type: textblock
16227 #: ../fish/guestfish.pod:384
16228 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
16229 msgstr ""
16230
16231 #. type: =item
16232 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253 ../rescue/virt-rescue.pod:173
16233 msgid "B<--selinux>"
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish.pod:388
16238 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
16239 msgstr ""
16240
16241 #. type: textblock
16242 #: ../fish/guestfish.pod:394
16243 msgid ""
16244 "Enable very verbose messages.  This is particularly useful if you find a "
16245 "bug."
16246 msgstr ""
16247
16248 #. type: textblock
16249 #: ../fish/guestfish.pod:401
16250 msgid "Display the guestfish / libguestfs version number and exit."
16251 msgstr ""
16252
16253 #. type: =item
16254 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269 ../rescue/virt-rescue.pod:190
16255 msgid "B<-w>"
16256 msgstr ""
16257
16258 #. type: =item
16259 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271 ../rescue/virt-rescue.pod:192
16260 msgid "B<--rw>"
16261 msgstr ""
16262
16263 #. type: textblock
16264 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
16265 msgid ""
16266 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
16267 "mounts are done read-write."
16268 msgstr ""
16269
16270 #. type: textblock
16271 #: ../fish/guestfish.pod:410
16272 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
16273 msgstr ""
16274
16275 #. type: textblock
16276 #: ../fish/guestfish.pod:414
16277 msgid "Echo each command before executing it."
16278 msgstr ""
16279
16280 #. type: =head1
16281 #: ../fish/guestfish.pod:418
16282 msgid "COMMANDS ON COMMAND LINE"
16283 msgstr ""
16284
16285 #. type: textblock
16286 #: ../fish/guestfish.pod:420
16287 msgid "Any additional (non-option) arguments are treated as commands to execute."
16288 msgstr ""
16289
16290 #. type: textblock
16291 #: ../fish/guestfish.pod:423
16292 msgid ""
16293 "Commands to execute should be separated by a colon (C<:>), where the colon "
16294 "is a separate parameter.  Thus:"
16295 msgstr ""
16296
16297 #. type: verbatim
16298 #: ../fish/guestfish.pod:426
16299 #, no-wrap
16300 msgid ""
16301 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
16302 "\n"
16303 msgstr ""
16304
16305 #. type: textblock
16306 #: ../fish/guestfish.pod:428
16307 msgid ""
16308 "If there are no additional arguments, then we enter a shell, either an "
16309 "interactive shell with a prompt (if the input is a terminal) or a "
16310 "non-interactive shell."
16311 msgstr ""
16312
16313 #. type: textblock
16314 #: ../fish/guestfish.pod:432
16315 msgid ""
16316 "In either command line mode or non-interactive shell, the first command that "
16317 "gives an error causes the whole shell to exit.  In interactive mode (with a "
16318 "prompt) if a command fails, you can continue to enter commands."
16319 msgstr ""
16320
16321 #. type: =head1
16322 #: ../fish/guestfish.pod:437
16323 msgid "USING launch (OR run)"
16324 msgstr ""
16325
16326 #. type: textblock
16327 #: ../fish/guestfish.pod:439
16328 msgid ""
16329 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
16330 "then launch it, then mount any disks you need, and finally issue "
16331 "actions/commands.  So the general order of the day is:"
16332 msgstr ""
16333
16334 #. type: textblock
16335 #: ../fish/guestfish.pod:447
16336 msgid "add or -a/--add"
16337 msgstr ""
16338
16339 #. type: textblock
16340 #: ../fish/guestfish.pod:451
16341 msgid "launch (aka run)"
16342 msgstr ""
16343
16344 #. type: textblock
16345 #: ../fish/guestfish.pod:455
16346 msgid "mount or -m/--mount"
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish.pod:459
16351 msgid "any other commands"
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../fish/guestfish.pod:463
16356 msgid ""
16357 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
16358 "guest before mounting or performing any other commands."
16359 msgstr ""
16360
16361 #. type: textblock
16362 #: ../fish/guestfish.pod:466
16363 msgid ""
16364 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
16365 "I<--new> options were given then C<run> is done automatically, simply "
16366 "because guestfish can't perform the action you asked for without doing this."
16367 msgstr ""
16368
16369 #. type: =head1
16370 #: ../fish/guestfish.pod:471
16371 msgid "OPENING DISKS FOR READ AND WRITE"
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish.pod:473
16376 msgid ""
16377 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
16378 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
16379 "I<-i> and I<-m> open disk images read-only or for writing."
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish.pod:478
16384 msgid ""
16385 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
16386 "opening disk images supplied on the command line for write.  To open a disk "
16387 "image read-only you have to do I<-a image --ro>."
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish.pod:482
16392 msgid ""
16393 "This matters: If you accidentally open a live VM disk image writable then "
16394 "you will cause irreversible disk corruption."
16395 msgstr ""
16396
16397 #. type: textblock
16398 #: ../fish/guestfish.pod:485
16399 msgid ""
16400 "In a future libguestfs we intend to change the default the other way.  Disk "
16401 "images will be opened read-only.  You will have to either specify "
16402 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
16403 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
16404 "access for disk images specified by those other command line options."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish.pod:492
16409 msgid ""
16410 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
16411 "which does nothing (it is already the default).  However it is highly "
16412 "recommended that you use this option to indicate that you need write access, "
16413 "and prepare your scripts for the day when this option will be required for "
16414 "write access."
16415 msgstr ""
16416
16417 #. type: textblock
16418 #: ../fish/guestfish.pod:498
16419 msgid ""
16420 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
16421 "other libguestfs program apart from guestfish and guestmount."
16422 msgstr ""
16423
16424 #. type: =head1
16425 #: ../fish/guestfish.pod:501
16426 msgid "QUOTING"
16427 msgstr ""
16428
16429 #. type: textblock
16430 #: ../fish/guestfish.pod:503
16431 msgid ""
16432 "You can quote ordinary parameters using either single or double quotes.  For "
16433 "example:"
16434 msgstr ""
16435
16436 #. type: verbatim
16437 #: ../fish/guestfish.pod:506
16438 #, no-wrap
16439 msgid ""
16440 " add \"file with a space.img\"\n"
16441 "\n"
16442 msgstr ""
16443
16444 #. type: verbatim
16445 #: ../fish/guestfish.pod:508
16446 #, no-wrap
16447 msgid ""
16448 " rm '/file name'\n"
16449 "\n"
16450 msgstr ""
16451
16452 #. type: verbatim
16453 #: ../fish/guestfish.pod:510
16454 #, no-wrap
16455 msgid ""
16456 " rm '/\"'\n"
16457 "\n"
16458 msgstr ""
16459
16460 #. type: textblock
16461 #: ../fish/guestfish.pod:512
16462 msgid ""
16463 "A few commands require a list of strings to be passed.  For these, use a "
16464 "whitespace-separated list, enclosed in quotes.  Strings containing "
16465 "whitespace to be passed through must be enclosed in single quotes.  A "
16466 "literal single quote must be escaped with a backslash."
16467 msgstr ""
16468
16469 #. type: verbatim
16470 #: ../fish/guestfish.pod:517
16471 #, no-wrap
16472 msgid ""
16473 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
16474 " command \"/bin/echo 'foo      bar'\"\n"
16475 " command \"/bin/echo \\'foo\\'\"\n"
16476 "\n"
16477 msgstr ""
16478
16479 #. type: =head2
16480 #: ../fish/guestfish.pod:521
16481 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
16482 msgstr ""
16483
16484 #. type: textblock
16485 #: ../fish/guestfish.pod:523
16486 msgid ""
16487 "In double-quoted arguments (only) use backslash to insert special "
16488 "characters:"
16489 msgstr ""
16490
16491 #. type: =item
16492 #: ../fish/guestfish.pod:528
16493 msgid "C<\\a>"
16494 msgstr ""
16495
16496 #. type: textblock
16497 #: ../fish/guestfish.pod:530
16498 msgid "Alert (bell) character."
16499 msgstr ""
16500
16501 #. type: =item
16502 #: ../fish/guestfish.pod:532
16503 msgid "C<\\b>"
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../fish/guestfish.pod:534
16508 msgid "Backspace character."
16509 msgstr ""
16510
16511 #. type: =item
16512 #: ../fish/guestfish.pod:536
16513 msgid "C<\\f>"
16514 msgstr ""
16515
16516 #. type: textblock
16517 #: ../fish/guestfish.pod:538
16518 msgid "Form feed character."
16519 msgstr ""
16520
16521 #. type: =item
16522 #: ../fish/guestfish.pod:540
16523 msgid "C<\\n>"
16524 msgstr ""
16525
16526 #. type: textblock
16527 #: ../fish/guestfish.pod:542
16528 msgid "Newline character."
16529 msgstr ""
16530
16531 #. type: =item
16532 #: ../fish/guestfish.pod:544
16533 msgid "C<\\r>"
16534 msgstr ""
16535
16536 #. type: textblock
16537 #: ../fish/guestfish.pod:546
16538 msgid "Carriage return character."
16539 msgstr ""
16540
16541 #. type: =item
16542 #: ../fish/guestfish.pod:548
16543 msgid "C<\\t>"
16544 msgstr ""
16545
16546 #. type: textblock
16547 #: ../fish/guestfish.pod:550
16548 msgid "Horizontal tab character."
16549 msgstr ""
16550
16551 #. type: =item
16552 #: ../fish/guestfish.pod:552
16553 msgid "C<\\v>"
16554 msgstr ""
16555
16556 #. type: textblock
16557 #: ../fish/guestfish.pod:554
16558 msgid "Vertical tab character."
16559 msgstr ""
16560
16561 #. type: =item
16562 #: ../fish/guestfish.pod:556
16563 msgid "C<\\\">"
16564 msgstr ""
16565
16566 #. type: textblock
16567 #: ../fish/guestfish.pod:558
16568 msgid "A literal double quote character."
16569 msgstr ""
16570
16571 #. type: =item
16572 #: ../fish/guestfish.pod:560
16573 msgid "C<\\ooo>"
16574 msgstr ""
16575
16576 #. type: textblock
16577 #: ../fish/guestfish.pod:562
16578 msgid ""
16579 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
16580 "(unlike C)."
16581 msgstr ""
16582
16583 #. type: =item
16584 #: ../fish/guestfish.pod:565
16585 msgid "C<\\xhh>"
16586 msgstr ""
16587
16588 #. type: textblock
16589 #: ../fish/guestfish.pod:567
16590 msgid "A character with hex value I<hh>.  There must be precisely 2 hex digits."
16591 msgstr ""
16592
16593 #. type: textblock
16594 #: ../fish/guestfish.pod:570
16595 msgid ""
16596 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
16597 "strings."
16598 msgstr ""
16599
16600 #. type: =item
16601 #: ../fish/guestfish.pod:573
16602 msgid "C<\\\\>"
16603 msgstr ""
16604
16605 #. type: textblock
16606 #: ../fish/guestfish.pod:575
16607 msgid "A literal backslash character."
16608 msgstr ""
16609
16610 #. type: =head1
16611 #: ../fish/guestfish.pod:579
16612 msgid "OPTIONAL ARGUMENTS"
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish.pod:581
16617 msgid ""
16618 "Some commands take optional arguments.  These arguments appear in this "
16619 "documentation as C<[argname:..]>.  You can use them as in these examples:"
16620 msgstr ""
16621
16622 #. type: verbatim
16623 #: ../fish/guestfish.pod:585
16624 #, no-wrap
16625 msgid ""
16626 " add-drive-opts filename\n"
16627 "\n"
16628 msgstr ""
16629
16630 #. type: verbatim
16631 #: ../fish/guestfish.pod:587
16632 #, no-wrap
16633 msgid ""
16634 " add-drive-opts filename readonly:true\n"
16635 "\n"
16636 msgstr ""
16637
16638 #. type: verbatim
16639 #: ../fish/guestfish.pod:589
16640 #, no-wrap
16641 msgid ""
16642 " add-drive-opts filename format:qcow2 readonly:false\n"
16643 "\n"
16644 msgstr ""
16645
16646 #. type: textblock
16647 #: ../fish/guestfish.pod:591
16648 msgid ""
16649 "Each optional argument can appear at most once.  All optional arguments must "
16650 "appear after the required ones."
16651 msgstr ""
16652
16653 #. type: =head1
16654 #: ../fish/guestfish.pod:594
16655 msgid "NUMBERS"
16656 msgstr ""
16657
16658 #. type: textblock
16659 #: ../fish/guestfish.pod:596
16660 msgid "This section applies to all commands which can take integers as parameters."
16661 msgstr ""
16662
16663 #. type: =head2
16664 #: ../fish/guestfish.pod:599
16665 msgid "SIZE SUFFIX"
16666 msgstr ""
16667
16668 #. type: textblock
16669 #: ../fish/guestfish.pod:601
16670 msgid ""
16671 "When the command takes a parameter measured in bytes, you can use one of the "
16672 "following suffixes to specify kilobytes, megabytes and larger sizes:"
16673 msgstr ""
16674
16675 #. type: =item
16676 #: ../fish/guestfish.pod:607
16677 msgid "B<k> or B<K> or B<KiB>"
16678 msgstr ""
16679
16680 #. type: textblock
16681 #: ../fish/guestfish.pod:609
16682 msgid "The size in kilobytes (multiplied by 1024)."
16683 msgstr ""
16684
16685 #. type: =item
16686 #: ../fish/guestfish.pod:611
16687 msgid "B<KB>"
16688 msgstr ""
16689
16690 #. type: textblock
16691 #: ../fish/guestfish.pod:613
16692 msgid "The size in SI 1000 byte units."
16693 msgstr ""
16694
16695 #. type: =item
16696 #: ../fish/guestfish.pod:615
16697 msgid "B<M> or B<MiB>"
16698 msgstr ""
16699
16700 #. type: textblock
16701 #: ../fish/guestfish.pod:617
16702 msgid "The size in megabytes (multiplied by 1048576)."
16703 msgstr ""
16704
16705 #. type: =item
16706 #: ../fish/guestfish.pod:619
16707 msgid "B<MB>"
16708 msgstr ""
16709
16710 #. type: textblock
16711 #: ../fish/guestfish.pod:621
16712 msgid "The size in SI 1000000 byte units."
16713 msgstr ""
16714
16715 #. type: =item
16716 #: ../fish/guestfish.pod:623
16717 msgid "B<G> or B<GiB>"
16718 msgstr ""
16719
16720 #. type: textblock
16721 #: ../fish/guestfish.pod:625
16722 msgid "The size in gigabytes (multiplied by 2**30)."
16723 msgstr ""
16724
16725 #. type: =item
16726 #: ../fish/guestfish.pod:627
16727 msgid "B<GB>"
16728 msgstr ""
16729
16730 #. type: textblock
16731 #: ../fish/guestfish.pod:629
16732 msgid "The size in SI 10**9 byte units."
16733 msgstr ""
16734
16735 #. type: =item
16736 #: ../fish/guestfish.pod:631
16737 msgid "B<T> or B<TiB>"
16738 msgstr ""
16739
16740 #. type: textblock
16741 #: ../fish/guestfish.pod:633
16742 msgid "The size in terabytes (multiplied by 2**40)."
16743 msgstr ""
16744
16745 #. type: =item
16746 #: ../fish/guestfish.pod:635
16747 msgid "B<TB>"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish.pod:637
16752 msgid "The size in SI 10**12 byte units."
16753 msgstr ""
16754
16755 #. type: =item
16756 #: ../fish/guestfish.pod:639
16757 msgid "B<P> or B<PiB>"
16758 msgstr ""
16759
16760 #. type: textblock
16761 #: ../fish/guestfish.pod:641
16762 msgid "The size in petabytes (multiplied by 2**50)."
16763 msgstr ""
16764
16765 #. type: =item
16766 #: ../fish/guestfish.pod:643
16767 msgid "B<PB>"
16768 msgstr ""
16769
16770 #. type: textblock
16771 #: ../fish/guestfish.pod:645
16772 msgid "The size in SI 10**15 byte units."
16773 msgstr ""
16774
16775 #. type: =item
16776 #: ../fish/guestfish.pod:647
16777 msgid "B<E> or B<EiB>"
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish.pod:649
16782 msgid "The size in exabytes (multiplied by 2**60)."
16783 msgstr ""
16784
16785 #. type: =item
16786 #: ../fish/guestfish.pod:651
16787 msgid "B<EB>"
16788 msgstr ""
16789
16790 #. type: textblock
16791 #: ../fish/guestfish.pod:653
16792 msgid "The size in SI 10**18 byte units."
16793 msgstr ""
16794
16795 #. type: =item
16796 #: ../fish/guestfish.pod:655
16797 msgid "B<Z> or B<ZiB>"
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../fish/guestfish.pod:657
16802 msgid "The size in zettabytes (multiplied by 2**70)."
16803 msgstr ""
16804
16805 #. type: =item
16806 #: ../fish/guestfish.pod:659
16807 msgid "B<ZB>"
16808 msgstr ""
16809
16810 #. type: textblock
16811 #: ../fish/guestfish.pod:661
16812 msgid "The size in SI 10**21 byte units."
16813 msgstr ""
16814
16815 #. type: =item
16816 #: ../fish/guestfish.pod:663
16817 msgid "B<Y> or B<YiB>"
16818 msgstr ""
16819
16820 #. type: textblock
16821 #: ../fish/guestfish.pod:665
16822 msgid "The size in yottabytes (multiplied by 2**80)."
16823 msgstr ""
16824
16825 #. type: =item
16826 #: ../fish/guestfish.pod:667
16827 msgid "B<YB>"
16828 msgstr ""
16829
16830 #. type: textblock
16831 #: ../fish/guestfish.pod:669
16832 msgid "The size in SI 10**24 byte units."
16833 msgstr ""
16834
16835 #. type: verbatim
16836 #: ../fish/guestfish.pod:675
16837 #, no-wrap
16838 msgid ""
16839 " truncate-size /file 1G\n"
16840 "\n"
16841 msgstr ""
16842
16843 #. type: textblock
16844 #: ../fish/guestfish.pod:677
16845 msgid "would truncate the file to 1 gigabyte."
16846 msgstr ""
16847
16848 #. type: textblock
16849 #: ../fish/guestfish.pod:679
16850 msgid ""
16851 "Be careful because a few commands take sizes in kilobytes or megabytes "
16852 "(eg. the parameter to L</memsize> is specified in megabytes already).  "
16853 "Adding a suffix will probably not do what you expect."
16854 msgstr ""
16855
16856 #. type: =head2
16857 #: ../fish/guestfish.pod:683
16858 msgid "OCTAL AND HEXADECIMAL NUMBERS"
16859 msgstr ""
16860
16861 #. type: textblock
16862 #: ../fish/guestfish.pod:685
16863 msgid ""
16864 "For specifying the radix (base) use the C convention: C<0> to prefix an "
16865 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
16866 msgstr ""
16867
16868 #. type: verbatim
16869 #: ../fish/guestfish.pod:688
16870 #, no-wrap
16871 msgid ""
16872 " 1234      decimal number 1234\n"
16873 " 02322     octal number, equivalent to decimal 1234\n"
16874 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
16875 "\n"
16876 msgstr ""
16877
16878 #. type: textblock
16879 #: ../fish/guestfish.pod:692
16880 msgid ""
16881 "When using the C<chmod> command, you almost always want to specify an octal "
16882 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
16883 "L<chmod(1)> program):"
16884 msgstr ""
16885
16886 #. type: verbatim
16887 #: ../fish/guestfish.pod:696
16888 #, no-wrap
16889 msgid ""
16890 " chmod 0777 /public  # OK\n"
16891 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
16892 "\n"
16893 msgstr ""
16894
16895 #. type: textblock
16896 #: ../fish/guestfish.pod:699
16897 msgid ""
16898 "Commands that return numbers usually print them in decimal, but some "
16899 "commands print numbers in other radices (eg. C<umask> prints the mode in "
16900 "octal, preceeded by C<0>)."
16901 msgstr ""
16902
16903 #. type: =head1
16904 #: ../fish/guestfish.pod:703
16905 msgid "WILDCARDS AND GLOBBING"
16906 msgstr ""
16907
16908 #. type: textblock
16909 #: ../fish/guestfish.pod:705
16910 msgid ""
16911 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
16912 "(globbing) by default.  So for example the following will not do what you "
16913 "expect:"
16914 msgstr ""
16915
16916 #. type: verbatim
16917 #: ../fish/guestfish.pod:709
16918 #, no-wrap
16919 msgid ""
16920 " rm-rf /home/*\n"
16921 "\n"
16922 msgstr ""
16923
16924 #. type: textblock
16925 #: ../fish/guestfish.pod:711
16926 msgid ""
16927 "Assuming you don't have a directory called literally C</home/*> then the "
16928 "above command will return an error."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish.pod:714
16933 msgid "To perform wildcard expansion, use the C<glob> command."
16934 msgstr ""
16935
16936 #. type: verbatim
16937 #: ../fish/guestfish.pod:716
16938 #, no-wrap
16939 msgid ""
16940 " glob rm-rf /home/*\n"
16941 "\n"
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish.pod:718
16946 msgid ""
16947 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
16948 "many times), equivalent to:"
16949 msgstr ""
16950
16951 #. type: verbatim
16952 #: ../fish/guestfish.pod:721
16953 #, no-wrap
16954 msgid ""
16955 " rm-rf /home/jim\n"
16956 " rm-rf /home/joe\n"
16957 " rm-rf /home/mary\n"
16958 "\n"
16959 msgstr ""
16960
16961 #. type: textblock
16962 #: ../fish/guestfish.pod:725
16963 msgid "C<glob> only works on simple guest paths and not on device names."
16964 msgstr ""
16965
16966 #. type: textblock
16967 #: ../fish/guestfish.pod:727
16968 msgid ""
16969 "If you have several parameters, each containing a wildcard, then glob will "
16970 "perform a Cartesian product."
16971 msgstr ""
16972
16973 #. type: =head1
16974 #: ../fish/guestfish.pod:730
16975 msgid "COMMENTS"
16976 msgstr ""
16977
16978 #. type: textblock
16979 #: ../fish/guestfish.pod:732
16980 msgid ""
16981 "Any line which starts with a I<#> character is treated as a comment and "
16982 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
16983 "a command.  For example:"
16984 msgstr ""
16985
16986 #. type: verbatim
16987 #: ../fish/guestfish.pod:736
16988 #, no-wrap
16989 msgid ""
16990 " # this is a comment\n"
16991 "         # this is a comment\n"
16992 " foo # NOT a comment\n"
16993 "\n"
16994 msgstr ""
16995
16996 #. type: textblock
16997 #: ../fish/guestfish.pod:740
16998 msgid "Blank lines are also ignored."
16999 msgstr ""
17000
17001 #. type: =head1
17002 #: ../fish/guestfish.pod:742
17003 msgid "RUNNING COMMANDS LOCALLY"
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish.pod:744
17008 msgid ""
17009 "Any line which starts with a I<!> character is treated as a command sent to "
17010 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
17011 msgstr ""
17012
17013 #. type: verbatim
17014 #: ../fish/guestfish.pod:748
17015 #, no-wrap
17016 msgid ""
17017 " !mkdir local\n"
17018 " tgz-out /remote local/remote-data.tar.gz\n"
17019 "\n"
17020 msgstr ""
17021
17022 #. type: textblock
17023 #: ../fish/guestfish.pod:751
17024 msgid ""
17025 "will create a directory C<local> on the host, and then export the contents "
17026 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
17027 "(See C<tgz-out>)."
17028 msgstr ""
17029
17030 #. type: textblock
17031 #: ../fish/guestfish.pod:755
17032 msgid ""
17033 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
17034 "effect, due to the way that subprocesses work in Unix."
17035 msgstr ""
17036
17037 #. type: =head2
17038 #: ../fish/guestfish.pod:758
17039 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
17040 msgstr ""
17041
17042 #. type: textblock
17043 #: ../fish/guestfish.pod:760
17044 msgid ""
17045 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
17046 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
17047 "and executed as guestfish commands."
17048 msgstr ""
17049
17050 #. type: textblock
17051 #: ../fish/guestfish.pod:764
17052 msgid ""
17053 "Thus you can use shell script to construct arbitrary guestfish commands "
17054 "which are then parsed by guestfish."
17055 msgstr ""
17056
17057 #. type: textblock
17058 #: ../fish/guestfish.pod:767
17059 msgid ""
17060 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
17061 "through C</foo.100>) using guestfish commands alone.  However this is simple "
17062 "if we use a shell script to create the guestfish commands for us:"
17063 msgstr ""
17064
17065 #. type: verbatim
17066 #: ../fish/guestfish.pod:772
17067 #, no-wrap
17068 msgid ""
17069 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
17070 "\n"
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../fish/guestfish.pod:774
17075 msgid "or with names like C</foo.001>:"
17076 msgstr ""
17077
17078 #. type: verbatim
17079 #: ../fish/guestfish.pod:776
17080 #, no-wrap
17081 msgid ""
17082 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
17083 "\n"
17084 msgstr ""
17085
17086 #. type: textblock
17087 #: ../fish/guestfish.pod:778
17088 msgid ""
17089 "When using guestfish interactively it can be helpful to just run the shell "
17090 "script first (ie. remove the initial C<E<lt>> character so it is just an "
17091 "ordinary I<!> local command), see what guestfish commands it would run, and "
17092 "when you are happy with those prepend the C<E<lt>> character to run the "
17093 "guestfish commands for real."
17094 msgstr ""
17095
17096 #. type: =head1
17097 #: ../fish/guestfish.pod:784
17098 msgid "PIPES"
17099 msgstr ""
17100
17101 #. type: textblock
17102 #: ../fish/guestfish.pod:786
17103 msgid ""
17104 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
17105 "command (a guestfish command) to the second command (any host command).  For "
17106 "example:"
17107 msgstr ""
17108
17109 #. type: verbatim
17110 #: ../fish/guestfish.pod:790
17111 #, no-wrap
17112 msgid ""
17113 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
17114 "\n"
17115 msgstr ""
17116
17117 #. type: textblock
17118 #: ../fish/guestfish.pod:792
17119 msgid ""
17120 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
17121 "program).  The above command would list all accounts in the guest filesystem "
17122 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
17123 msgstr ""
17124
17125 #. type: verbatim
17126 #: ../fish/guestfish.pod:797
17127 #, no-wrap
17128 msgid ""
17129 " hexdump /bin/ls | head\n"
17130 " list-devices | tail -1\n"
17131 " tgz-out / - | tar ztf -\n"
17132 "\n"
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish.pod:801
17137 msgid ""
17138 "The space before the pipe symbol is required, any space after the pipe "
17139 "symbol is optional.  Everything after the pipe symbol is just passed "
17140 "straight to the host shell, so it can contain redirections, globs and "
17141 "anything else that makes sense on the host side."
17142 msgstr ""
17143
17144 #. type: textblock
17145 #: ../fish/guestfish.pod:806
17146 msgid ""
17147 "To use a literal argument which begins with a pipe symbol, you have to quote "
17148 "it, eg:"
17149 msgstr ""
17150
17151 #. type: verbatim
17152 #: ../fish/guestfish.pod:809
17153 #, no-wrap
17154 msgid ""
17155 " echo \"|\"\n"
17156 "\n"
17157 msgstr ""
17158
17159 #. type: =head1
17160 #: ../fish/guestfish.pod:811
17161 msgid "HOME DIRECTORIES"
17162 msgstr ""
17163
17164 #. type: textblock
17165 #: ../fish/guestfish.pod:813
17166 msgid ""
17167 "If a parameter starts with the character C<~> then the tilde may be expanded "
17168 "as a home directory path (either C<~> for the current user's home directory, "
17169 "or C<~user> for another user)."
17170 msgstr ""
17171
17172 #. type: textblock
17173 #: ../fish/guestfish.pod:817
17174 msgid ""
17175 "Note that home directory expansion happens for users known I<on the host>, "
17176 "not in the guest filesystem."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish.pod:820
17181 msgid ""
17182 "To use a literal argument which begins with a tilde, you have to quote it, "
17183 "eg:"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish.pod:823
17188 #, no-wrap
17189 msgid ""
17190 " echo \"~\"\n"
17191 "\n"
17192 msgstr ""
17193
17194 #. type: =head2
17195 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
17196 msgid "ENCRYPTED DISKS"
17197 msgstr ""
17198
17199 #. type: textblock
17200 #: ../fish/guestfish.pod:827
17201 msgid ""
17202 "Libguestfs has some support for Linux guests encrypted according to the "
17203 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
17204 "disk encryption systems used by modern Linux guests.  Currently only "
17205 "LVM-on-LUKS is supported."
17206 msgstr ""
17207
17208 #. type: textblock
17209 #: ../fish/guestfish.pod:832
17210 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
17211 msgstr ""
17212
17213 #. type: verbatim
17214 #: ../fish/guestfish.pod:834
17215 #, no-wrap
17216 msgid ""
17217 " ><fs> vfs-type /dev/sda2\n"
17218 " crypto_LUKS\n"
17219 "\n"
17220 msgstr ""
17221
17222 #. type: textblock
17223 #: ../fish/guestfish.pod:837
17224 msgid ""
17225 "Then open those devices using L</luks-open>.  This creates a device-mapper "
17226 "device called C</dev/mapper/luksdev>."
17227 msgstr ""
17228
17229 #. type: verbatim
17230 #: ../fish/guestfish.pod:840
17231 #, no-wrap
17232 msgid ""
17233 " ><fs> luks-open /dev/sda2 luksdev\n"
17234 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
17235 "\n"
17236 msgstr ""
17237
17238 #. type: textblock
17239 #: ../fish/guestfish.pod:843
17240 msgid ""
17241 "Finally you have to tell LVM to scan for volume groups on the newly created "
17242 "mapper device:"
17243 msgstr ""
17244
17245 #. type: verbatim
17246 #: ../fish/guestfish.pod:846
17247 #, no-wrap
17248 msgid ""
17249 " vgscan\n"
17250 " vg-activate-all true\n"
17251 "\n"
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish.pod:849
17256 msgid "The logical volume(s) can now be mounted in the usual way."
17257 msgstr ""
17258
17259 #. type: textblock
17260 #: ../fish/guestfish.pod:851
17261 msgid ""
17262 "Before closing a LUKS device you must unmount any logical volumes on it and "
17263 "deactivate the volume groups by calling C<vg-activate false VG> on each "
17264 "one.  Then you can close the mapper device:"
17265 msgstr ""
17266
17267 #. type: verbatim
17268 #: ../fish/guestfish.pod:855
17269 #, no-wrap
17270 msgid ""
17271 " vg-activate false /dev/VG\n"
17272 " luks-close /dev/mapper/luksdev\n"
17273 "\n"
17274 msgstr ""
17275
17276 #. type: textblock
17277 #: ../fish/guestfish.pod:860
17278 msgid ""
17279 "If a path is prefixed with C<win:> then you can use Windows-style drive "
17280 "letters and paths (with some limitations).  The following commands are "
17281 "equivalent:"
17282 msgstr ""
17283
17284 #. type: verbatim
17285 #: ../fish/guestfish.pod:864
17286 #, no-wrap
17287 msgid ""
17288 " file /WINDOWS/system32/config/system.LOG\n"
17289 "\n"
17290 msgstr ""
17291
17292 #. type: verbatim
17293 #: ../fish/guestfish.pod:866
17294 #, no-wrap
17295 msgid ""
17296 " file win:\\windows\\system32\\config\\system.log\n"
17297 "\n"
17298 msgstr ""
17299
17300 #. type: verbatim
17301 #: ../fish/guestfish.pod:868
17302 #, no-wrap
17303 msgid ""
17304 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
17305 "\n"
17306 msgstr ""
17307
17308 #. type: textblock
17309 #: ../fish/guestfish.pod:870
17310 msgid ""
17311 "The parameter is rewritten \"behind the scenes\" by looking up the position "
17312 "where the drive is mounted, prepending that to the path, changing all "
17313 "backslash characters to forward slash, then resolving the result using "
17314 "L</case-sensitive-path>.  For example if the E: drive was mounted on C</e> "
17315 "then the parameter might be rewritten like this:"
17316 msgstr ""
17317
17318 #. type: verbatim
17319 #: ../fish/guestfish.pod:876
17320 #, no-wrap
17321 msgid ""
17322 " win:e:\\foo\\bar => /e/FOO/bar\n"
17323 "\n"
17324 msgstr ""
17325
17326 #. type: textblock
17327 #: ../fish/guestfish.pod:878
17328 msgid "This only works in argument positions that expect a path."
17329 msgstr ""
17330
17331 #. type: =head1
17332 #: ../fish/guestfish.pod:880
17333 msgid "UPLOADING AND DOWNLOADING FILES"
17334 msgstr ""
17335
17336 #. type: textblock
17337 #: ../fish/guestfish.pod:882
17338 msgid ""
17339 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
17340 "others which upload from or download to a local file, you can use the "
17341 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
17342 msgstr ""
17343
17344 #. type: verbatim
17345 #: ../fish/guestfish.pod:886
17346 #, no-wrap
17347 msgid ""
17348 " upload - /foo\n"
17349 "\n"
17350 msgstr ""
17351
17352 #. type: textblock
17353 #: ../fish/guestfish.pod:888
17354 msgid "reads stdin and creates from that a file C</foo> in the disk image, and:"
17355 msgstr ""
17356
17357 #. type: verbatim
17358 #: ../fish/guestfish.pod:891
17359 #, no-wrap
17360 msgid ""
17361 " tar-out /etc - | tar tf -\n"
17362 "\n"
17363 msgstr ""
17364
17365 #. type: textblock
17366 #: ../fish/guestfish.pod:893
17367 msgid ""
17368 "writes the tarball to stdout and then pipes that into the external \"tar\" "
17369 "command (see L</PIPES>)."
17370 msgstr ""
17371
17372 #. type: textblock
17373 #: ../fish/guestfish.pod:896
17374 msgid ""
17375 "When using C<-> to read from stdin, the input is read up to the end of "
17376 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
17377 "some arbitrary end marker:"
17378 msgstr ""
17379
17380 #. type: verbatim
17381 #: ../fish/guestfish.pod:900
17382 #, no-wrap
17383 msgid ""
17384 " upload -<<END /foo\n"
17385 " input line 1\n"
17386 " input line 2\n"
17387 " input line 3\n"
17388 " END\n"
17389 "\n"
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../fish/guestfish.pod:906
17394 msgid ""
17395 "Any string of characters can be used instead of C<END>.  The end marker must "
17396 "appear on a line of its own, without any preceeding or following characters "
17397 "(not even spaces)."
17398 msgstr ""
17399
17400 #. type: textblock
17401 #: ../fish/guestfish.pod:910
17402 msgid ""
17403 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
17404 "upload local files (so-called \"FileIn\" parameters in the generator)."
17405 msgstr ""
17406
17407 #. type: =head1
17408 #: ../fish/guestfish.pod:913
17409 msgid "EXIT ON ERROR BEHAVIOUR"
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish.pod:915
17414 msgid ""
17415 "By default, guestfish will ignore any errors when in interactive mode "
17416 "(ie. taking commands from a human over a tty), and will exit on the first "
17417 "error in non-interactive mode (scripts, commands given on the command line)."
17418 msgstr ""
17419
17420 #. type: textblock
17421 #: ../fish/guestfish.pod:920
17422 msgid ""
17423 "If you prefix a command with a I<-> character, then that command will not "
17424 "cause guestfish to exit, even if that (one) command returns an error."
17425 msgstr ""
17426
17427 #. type: =head1
17428 #: ../fish/guestfish.pod:924
17429 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
17430 msgstr ""
17431
17432 #. type: textblock
17433 #: ../fish/guestfish.pod:926
17434 msgid ""
17435 "Guestfish can be remote-controlled over a socket.  This is useful "
17436 "particularly in shell scripts where you want to make several different "
17437 "changes to a filesystem, but you don't want the overhead of starting up a "
17438 "guestfish process each time."
17439 msgstr ""
17440
17441 #. type: textblock
17442 #: ../fish/guestfish.pod:931
17443 msgid "Start a guestfish server process using:"
17444 msgstr ""
17445
17446 #. type: verbatim
17447 #: ../fish/guestfish.pod:933
17448 #, no-wrap
17449 msgid ""
17450 " eval \"`guestfish --listen`\"\n"
17451 "\n"
17452 msgstr ""
17453
17454 #. type: textblock
17455 #: ../fish/guestfish.pod:935
17456 msgid "and then send it commands by doing:"
17457 msgstr ""
17458
17459 #. type: verbatim
17460 #: ../fish/guestfish.pod:937
17461 #, no-wrap
17462 msgid ""
17463 " guestfish --remote cmd [...]\n"
17464 "\n"
17465 msgstr ""
17466
17467 #. type: textblock
17468 #: ../fish/guestfish.pod:939
17469 msgid "To cause the server to exit, send it the exit command:"
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../fish/guestfish.pod:943
17474 msgid ""
17475 "Note that the server will normally exit if there is an error in a command.  "
17476 "You can change this in the usual way.  See section L</EXIT ON ERROR "
17477 "BEHAVIOUR>."
17478 msgstr ""
17479
17480 #. type: =head2
17481 #: ../fish/guestfish.pod:947
17482 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
17483 msgstr ""
17484
17485 #. type: textblock
17486 #: ../fish/guestfish.pod:949
17487 msgid ""
17488 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
17489 "is how the I<--remote> option knows where to send the commands.  You can "
17490 "have several guestfish listener processes running using:"
17491 msgstr ""
17492
17493 #. type: verbatim
17494 #: ../fish/guestfish.pod:953
17495 #, no-wrap
17496 msgid ""
17497 " eval \"`guestfish --listen`\"\n"
17498 " pid1=$GUESTFISH_PID\n"
17499 " eval \"`guestfish --listen`\"\n"
17500 " pid2=$GUESTFISH_PID\n"
17501 " ...\n"
17502 " guestfish --remote=$pid1 cmd\n"
17503 " guestfish --remote=$pid2 cmd\n"
17504 "\n"
17505 msgstr ""
17506
17507 #. type: =head2
17508 #: ../fish/guestfish.pod:961
17509 msgid "REMOTE CONTROL AND CSH"
17510 msgstr ""
17511
17512 #. type: textblock
17513 #: ../fish/guestfish.pod:963
17514 msgid ""
17515 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
17516 "option:"
17517 msgstr ""
17518
17519 #. type: verbatim
17520 #: ../fish/guestfish.pod:966
17521 #, no-wrap
17522 msgid ""
17523 " eval \"`guestfish --listen --csh`\"\n"
17524 "\n"
17525 msgstr ""
17526
17527 #. type: =head2
17528 #: ../fish/guestfish.pod:968
17529 msgid "REMOTE CONTROL DETAILS"
17530 msgstr ""
17531
17532 #. type: textblock
17533 #: ../fish/guestfish.pod:970
17534 msgid ""
17535 "Remote control happens over a Unix domain socket called "
17536 "C</tmp/.guestfish-$UID/socket-$PID>, where C<$UID> is the effective user ID "
17537 "of the process, and C<$PID> is the process ID of the server."
17538 msgstr ""
17539
17540 #. type: textblock
17541 #: ../fish/guestfish.pod:974
17542 msgid "Guestfish client and server versions must match exactly."
17543 msgstr ""
17544
17545 #. type: =head1
17546 #: ../fish/guestfish.pod:976
17547 msgid "PREPARED DISK IMAGES"
17548 msgstr ""
17549
17550 #. type: textblock
17551 #: ../fish/guestfish.pod:978
17552 msgid ""
17553 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
17554 "preformatted disk images that guestfish can make for you to save typing.  "
17555 "This is particularly useful for testing purposes.  This option is used "
17556 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
17557 "can be mixed with I<-a>)."
17558 msgstr ""
17559
17560 #. type: textblock
17561 #: ../fish/guestfish.pod:984
17562 msgid ""
17563 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
17564 "the second and so on.  Existing files in the current directory are "
17565 "I<overwritten>."
17566 msgstr ""
17567
17568 #. type: textblock
17569 #: ../fish/guestfish.pod:988
17570 msgid ""
17571 "The type briefly describes how the disk should be sized, partitioned, how "
17572 "filesystem(s) should be created, and how content should be added.  "
17573 "Optionally the type can be followed by extra parameters, separated by C<:> "
17574 "(colon) characters.  For example, I<-N fs> creates a default 100MB, "
17575 "sparsely-allocated disk, containing a single partition, with the partition "
17576 "formatted as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem "
17577 "on a 1GB disk instead."
17578 msgstr ""
17579
17580 #. type: textblock
17581 #: ../fish/guestfish.pod:996
17582 msgid "To list the available types and any extra parameters they take, run:"
17583 msgstr ""
17584
17585 #. type: textblock
17586 #: ../fish/guestfish.pod:1000
17587 msgid ""
17588 "Note that the prepared filesystem is not mounted.  You would usually have to "
17589 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
17590 msgstr ""
17591
17592 #. type: textblock
17593 #: ../fish/guestfish.pod:1004
17594 msgid ""
17595 "If any I<-N> or I<--new> options are given, the guest is automatically "
17596 "launched."
17597 msgstr ""
17598
17599 #. type: textblock
17600 #: ../fish/guestfish.pod:1009
17601 msgid "Create a 100MB disk with an ext4-formatted partition:"
17602 msgstr ""
17603
17604 #. type: verbatim
17605 #: ../fish/guestfish.pod:1011
17606 #, no-wrap
17607 msgid ""
17608 " guestfish -N fs:ext4\n"
17609 "\n"
17610 msgstr ""
17611
17612 #. type: textblock
17613 #: ../fish/guestfish.pod:1013
17614 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
17615 msgstr ""
17616
17617 #. type: verbatim
17618 #: ../fish/guestfish.pod:1015
17619 #, no-wrap
17620 msgid ""
17621 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
17622 "\n"
17623 msgstr ""
17624
17625 #. type: textblock
17626 #: ../fish/guestfish.pod:1017
17627 msgid "Create a blank 200MB disk:"
17628 msgstr ""
17629
17630 #. type: verbatim
17631 #: ../fish/guestfish.pod:1019
17632 #, no-wrap
17633 msgid ""
17634 " guestfish -N disk:200M\n"
17635 "\n"
17636 msgstr ""
17637
17638 #. type: =head1
17639 #: ../fish/guestfish.pod:1021
17640 msgid "PROGRESS BARS"
17641 msgstr ""
17642
17643 #. type: textblock
17644 #: ../fish/guestfish.pod:1023
17645 msgid ""
17646 "Some (not all) long-running commands send progress notification messages as "
17647 "they are running.  Guestfish turns these messages into progress bars."
17648 msgstr ""
17649
17650 #. type: textblock
17651 #: ../fish/guestfish.pod:1027
17652 msgid ""
17653 "When a command that supports progress bars takes longer than two seconds to "
17654 "run, and if progress bars are enabled, then you will see one appearing below "
17655 "the command:"
17656 msgstr ""
17657
17658 #. type: verbatim
17659 #: ../fish/guestfish.pod:1031
17660 #, no-wrap
17661 msgid ""
17662 " ><fs> copy-size /large-file /another-file 2048M\n"
17663 " / 10% [#####-----------------------------------------] 00:30\n"
17664 "\n"
17665 msgstr ""
17666
17667 #. type: textblock
17668 #: ../fish/guestfish.pod:1034
17669 msgid ""
17670 "The spinner on the left hand side moves round once for every progress "
17671 "notification received from the backend.  This is a (reasonably) golden "
17672 "assurance that the command is \"doing something\" even if the progress bar "
17673 "is not moving, because the command is able to send the progress "
17674 "notifications.  When the bar reaches 100% and the command finishes, the "
17675 "spinner disappears."
17676 msgstr ""
17677
17678 #. type: textblock
17679 #: ../fish/guestfish.pod:1041
17680 msgid ""
17681 "Progress bars are enabled by default when guestfish is used interactively.  "
17682 "You can enable them even for non-interactive modes using I<--progress-bars>, "
17683 "and you can disable them completely using I<--no-progress-bars>."
17684 msgstr ""
17685
17686 #. type: =head1
17687 #: ../fish/guestfish.pod:1046
17688 msgid "GUESTFISH COMMANDS"
17689 msgstr ""
17690
17691 #. type: textblock
17692 #: ../fish/guestfish.pod:1048
17693 msgid ""
17694 "The commands in this section are guestfish convenience commands, in other "
17695 "words, they are not part of the L<guestfs(3)> API."
17696 msgstr ""
17697
17698 #. type: =head2
17699 #: ../fish/guestfish.pod:1051
17700 msgid "help"
17701 msgstr ""
17702
17703 #. type: verbatim
17704 #: ../fish/guestfish.pod:1053
17705 #, no-wrap
17706 msgid ""
17707 " help\n"
17708 " help cmd\n"
17709 "\n"
17710 msgstr ""
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:1056
17714 msgid "Without any parameter, this provides general help."
17715 msgstr ""
17716
17717 #. type: textblock
17718 #: ../fish/guestfish.pod:1058
17719 msgid "With a C<cmd> parameter, this displays detailed help for that command."
17720 msgstr ""
17721
17722 #. type: =head2
17723 #: ../fish/guestfish.pod:1060
17724 msgid "quit | exit"
17725 msgstr ""
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:1062
17729 msgid "This exits guestfish.  You can also use C<^D> key."
17730 msgstr ""
17731
17732 #. type: textblock
17733 #: ../fish/guestfish.pod:1064
17734 msgid "@FISH_COMMANDS@"
17735 msgstr ""
17736
17737 #. type: =head1
17738 #: ../fish/guestfish.pod:1066
17739 msgid "COMMANDS"
17740 msgstr ""
17741
17742 #. type: textblock
17743 #: ../fish/guestfish.pod:1068 ../src/guestfs.pod:1475
17744 msgid "@ACTIONS@"
17745 msgstr ""
17746
17747 #. type: =head1
17748 #: ../fish/guestfish.pod:1070 ../test-tool/libguestfs-test-tool.pod:77
17749 msgid "EXIT CODE"
17750 msgstr ""
17751
17752 #. type: textblock
17753 #: ../fish/guestfish.pod:1072
17754 msgid ""
17755 "guestfish returns 0 if the commands completed without error, or 1 if there "
17756 "was an error."
17757 msgstr ""
17758
17759 #. type: =item
17760 #: ../fish/guestfish.pod:1079
17761 msgid "EDITOR"
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish.pod:1081
17766 msgid ""
17767 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
17768 "C<vi>."
17769 msgstr ""
17770
17771 #. type: =item
17772 #: ../fish/guestfish.pod:1084 ../src/guestfs.pod:2970
17773 msgid "FEBOOTSTRAP_KERNEL"
17774 msgstr ""
17775
17776 #. type: =item
17777 #: ../fish/guestfish.pod:1086 ../src/guestfs.pod:2972
17778 msgid "FEBOOTSTRAP_MODULES"
17779 msgstr ""
17780
17781 #. type: textblock
17782 #: ../fish/guestfish.pod:1088 ../src/guestfs.pod:2974
17783 msgid ""
17784 "These two environment variables allow the kernel that libguestfs uses in the "
17785 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
17786 "most recent host kernel is chosen.  For more information about kernel "
17787 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
17788 "available in febootstrap E<ge> 3.8."
17789 msgstr ""
17790
17791 #. type: =item
17792 #: ../fish/guestfish.pod:1094
17793 msgid "GUESTFISH_DISPLAY_IMAGE"
17794 msgstr ""
17795
17796 #. type: textblock
17797 #: ../fish/guestfish.pod:1096
17798 msgid ""
17799 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
17800 "If not set, it uses L<display(1)>."
17801 msgstr ""
17802
17803 #. type: =item
17804 #: ../fish/guestfish.pod:1099
17805 msgid "GUESTFISH_PID"
17806 msgstr ""
17807
17808 #. type: textblock
17809 #: ../fish/guestfish.pod:1101
17810 msgid ""
17811 "Used with the I<--remote> option to specify the remote guestfish process to "
17812 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
17813 msgstr ""
17814
17815 #. type: =item
17816 #: ../fish/guestfish.pod:1105
17817 msgid "HEXEDITOR"
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish.pod:1107
17822 msgid ""
17823 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
17824 "not specified, the external L<hexedit(1)> program is used."
17825 msgstr ""
17826
17827 #. type: =item
17828 #: ../fish/guestfish.pod:1111
17829 msgid "HOME"
17830 msgstr ""
17831
17832 #. type: textblock
17833 #: ../fish/guestfish.pod:1113
17834 msgid ""
17835 "If compiled with GNU readline support, various files in the home directory "
17836 "can be used.  See L</FILES>."
17837 msgstr ""
17838
17839 #. type: =item
17840 #: ../fish/guestfish.pod:1116 ../src/guestfs.pod:2980
17841 msgid "LIBGUESTFS_APPEND"
17842 msgstr ""
17843
17844 #. type: textblock
17845 #: ../fish/guestfish.pod:1118 ../src/guestfs.pod:2982
17846 msgid "Pass additional options to the guest kernel."
17847 msgstr ""
17848
17849 #. type: =item
17850 #: ../fish/guestfish.pod:1120 ../src/guestfs.pod:2984
17851 msgid "LIBGUESTFS_DEBUG"
17852 msgstr ""
17853
17854 #. type: textblock
17855 #: ../fish/guestfish.pod:1122
17856 msgid ""
17857 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
17858 "effect as using the B<-v> option."
17859 msgstr ""
17860
17861 #. type: =item
17862 #: ../fish/guestfish.pod:1125 ../src/guestfs.pod:2989
17863 msgid "LIBGUESTFS_MEMSIZE"
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2991
17868 msgid "Set the memory allocated to the qemu process, in megabytes.  For example:"
17869 msgstr ""
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:2994
17873 #, no-wrap
17874 msgid ""
17875 " LIBGUESTFS_MEMSIZE=700\n"
17876 "\n"
17877 msgstr ""
17878
17879 #. type: =item
17880 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:2996
17881 msgid "LIBGUESTFS_PATH"
17882 msgstr ""
17883
17884 #. type: textblock
17885 #: ../fish/guestfish.pod:1134
17886 msgid ""
17887 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
17888 "the discussion of paths in L<guestfs(3)>."
17889 msgstr ""
17890
17891 #. type: =item
17892 #: ../fish/guestfish.pod:1137 ../src/guestfs.pod:3001
17893 msgid "LIBGUESTFS_QEMU"
17894 msgstr ""
17895
17896 #. type: textblock
17897 #: ../fish/guestfish.pod:1139 ../src/guestfs.pod:3003
17898 msgid ""
17899 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
17900 "which was found at compile time by the configure script is used."
17901 msgstr ""
17902
17903 #. type: =item
17904 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3009
17905 msgid "LIBGUESTFS_TRACE"
17906 msgstr ""
17907
17908 #. type: textblock
17909 #: ../fish/guestfish.pod:1145
17910 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
17911 msgstr ""
17912
17913 #. type: =item
17914 #: ../fish/guestfish.pod:1147
17915 msgid "PAGER"
17916 msgstr ""
17917
17918 #. type: textblock
17919 #: ../fish/guestfish.pod:1149
17920 msgid ""
17921 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
17922 "C<more>."
17923 msgstr ""
17924
17925 #. type: =item
17926 #: ../fish/guestfish.pod:1152 ../src/guestfs.pod:3014
17927 msgid "TMPDIR"
17928 msgstr ""
17929
17930 #. type: textblock
17931 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3016
17932 msgid ""
17933 "Location of temporary directory, defaults to C</tmp> except for the cached "
17934 "supermin appliance which defaults to C</var/tmp>."
17935 msgstr ""
17936
17937 #. type: textblock
17938 #: ../fish/guestfish.pod:1157 ../src/guestfs.pod:3019
17939 msgid ""
17940 "If libguestfs was compiled to use the supermin appliance then the real "
17941 "appliance is cached in this directory, shared between all handles belonging "
17942 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
17943 "use in case C</var/tmp> is not large enough."
17944 msgstr ""
17945
17946 #. type: =head1
17947 #: ../fish/guestfish.pod:1165 ../fuse/guestmount.pod:288 ../rescue/virt-rescue.pod:269
17948 msgid "FILES"
17949 msgstr ""
17950
17951 #. type: =item
17952 #: ../fish/guestfish.pod:1169 ../fuse/guestmount.pod:292 ../rescue/virt-rescue.pod:273
17953 msgid "$HOME/.libguestfs-tools.rc"
17954 msgstr ""
17955
17956 #. type: =item
17957 #: ../fish/guestfish.pod:1171 ../fuse/guestmount.pod:294 ../rescue/virt-rescue.pod:275
17958 msgid "/etc/libguestfs-tools.conf"
17959 msgstr ""
17960
17961 #. type: textblock
17962 #: ../fish/guestfish.pod:1173 ../fuse/guestmount.pod:296 ../rescue/virt-rescue.pod:277
17963 msgid ""
17964 "This configuration file controls the default read-only or read-write mode "
17965 "(I<--ro> or I<--rw>)."
17966 msgstr ""
17967
17968 #. type: textblock
17969 #: ../fish/guestfish.pod:1176
17970 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
17971 msgstr ""
17972
17973 #. type: =item
17974 #: ../fish/guestfish.pod:1178
17975 msgid "$HOME/.guestfish"
17976 msgstr ""
17977
17978 #. type: textblock
17979 #: ../fish/guestfish.pod:1180
17980 msgid ""
17981 "If compiled with GNU readline support, then the command history is saved in "
17982 "this file."
17983 msgstr ""
17984
17985 #. type: =item
17986 #: ../fish/guestfish.pod:1183
17987 msgid "$HOME/.inputrc"
17988 msgstr ""
17989
17990 #. type: =item
17991 #: ../fish/guestfish.pod:1185
17992 msgid "/etc/inputrc"
17993 msgstr ""
17994
17995 #. type: textblock
17996 #: ../fish/guestfish.pod:1187
17997 msgid ""
17998 "If compiled with GNU readline support, then these files can be used to "
17999 "configure readline.  For further information, please see "
18000 "L<readline(3)/INITIALIZATION FILE>."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish.pod:1191
18005 msgid "To write rules which only apply to guestfish, use:"
18006 msgstr ""
18007
18008 #. type: verbatim
18009 #: ../fish/guestfish.pod:1193
18010 #, no-wrap
18011 msgid ""
18012 " $if guestfish\n"
18013 " ...\n"
18014 " $endif\n"
18015 "\n"
18016 msgstr ""
18017
18018 #. type: textblock
18019 #: ../fish/guestfish.pod:1197
18020 msgid ""
18021 "Variables that you can set in inputrc that change the behaviour of guestfish "
18022 "in useful ways include:"
18023 msgstr ""
18024
18025 #. type: =item
18026 #: ../fish/guestfish.pod:1202
18027 msgid "completion-ignore-case (default: on)"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:1204
18032 msgid ""
18033 "By default, guestfish will ignore case when tab-completing paths on the "
18034 "disk.  Use:"
18035 msgstr ""
18036
18037 #. type: verbatim
18038 #: ../fish/guestfish.pod:1207
18039 #, no-wrap
18040 msgid ""
18041 " set completion-ignore-case off\n"
18042 "\n"
18043 msgstr ""
18044
18045 #. type: textblock
18046 #: ../fish/guestfish.pod:1209
18047 msgid "to make guestfish case sensitive."
18048 msgstr ""
18049
18050 #. type: =item
18051 #: ../fish/guestfish.pod:1213
18052 msgid "test1.img"
18053 msgstr ""
18054
18055 #. type: =item
18056 #: ../fish/guestfish.pod:1215
18057 msgid "test2.img (etc)"
18058 msgstr ""
18059
18060 #. type: textblock
18061 #: ../fish/guestfish.pod:1217
18062 msgid ""
18063 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
18064 "will be created in the file C<test1.img> in the current directory.  The "
18065 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
18066 "the same name will be overwritten."
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:1226
18071 msgid ""
18072 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, "
18073 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
18074 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
18075 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
18076 "L<virt-rescue(1)>, L<virt-resize(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
18077 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit(1)>, "
18078 "L<febootstrap-supermin-helper(8)>."
18079 msgstr ""
18080
18081 #. type: textblock
18082 #: ../fish/guestfish.pod:1255 ../src/guestfs.pod:3105 ../test-tool/libguestfs-test-tool.pod:99
18083 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../fish/virt-copy-in.pod:5
18088 msgid "virt-copy-in - Copy files and directories into a virtual machine disk image."
18089 msgstr ""
18090
18091 #. type: verbatim
18092 #: ../fish/virt-copy-in.pod:9
18093 #, no-wrap
18094 msgid ""
18095 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
18096 "\n"
18097 msgstr ""
18098
18099 #. type: verbatim
18100 #: ../fish/virt-copy-in.pod:11
18101 #, no-wrap
18102 msgid ""
18103 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
18104 "\n"
18105 msgstr ""
18106
18107 #. type: textblock
18108 #: ../fish/virt-copy-in.pod:15
18109 msgid ""
18110 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
18111 "causing disk corruption.  The virtual machine must be shut down before you "
18112 "use this command."
18113 msgstr ""
18114
18115 #. type: textblock
18116 #: ../fish/virt-copy-in.pod:21
18117 msgid ""
18118 "C<virt-copy-in> copies files and directories from the local disk into a "
18119 "virtual machine disk image or named libvirt domain."
18120 msgstr ""
18121
18122 #. type: textblock
18123 #: ../fish/virt-copy-in.pod:24
18124 msgid ""
18125 "You can give one of more filenames and directories on the command line.  "
18126 "Directories are copied in recursively.  The final parameter must be the "
18127 "destination directory in the disk image which must be an absolute path "
18128 "starting with a C</> character."
18129 msgstr ""
18130
18131 #. type: verbatim
18132 #: ../fish/virt-copy-in.pod:33
18133 #, no-wrap
18134 msgid ""
18135 " virt-copy-in -d MyGuest resolv.conf /etc\n"
18136 "\n"
18137 msgstr ""
18138
18139 #. type: textblock
18140 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
18141 msgid "Upload a home directory to a guest:"
18142 msgstr ""
18143
18144 #. type: verbatim
18145 #: ../fish/virt-copy-in.pod:37
18146 #, no-wrap
18147 msgid ""
18148 " virt-copy-in -d MyGuest skel /home\n"
18149 "\n"
18150 msgstr ""
18151
18152 #. type: =head1
18153 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28 ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
18154 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
18155 msgstr ""
18156
18157 #. type: textblock
18158 #: ../fish/virt-copy-in.pod:41
18159 msgid ""
18160 "This command is just a simple shell script wrapper around the "
18161 "L<guestfish(1)> C<copy-in> command.  For anything more complex than a "
18162 "trivial copy, you are probably better off using guestfish directly."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36 ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
18167 msgid ""
18168 "Since the shell script just passes options straight to guestfish, read "
18169 "L<guestfish(1)> to see the full list of options."
18170 msgstr ""
18171
18172 #. type: textblock
18173 #: ../fish/virt-copy-in.pod:52
18174 msgid ""
18175 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
18176 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18177 msgstr ""
18178
18179 #. type: textblock
18180 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55 ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
18181 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
18182 msgstr ""
18183
18184 #. type: textblock
18185 #: ../fish/virt-copy-out.pod:5
18186 msgid ""
18187 "virt-copy-out - Copy files and directories out of a virtual machine disk "
18188 "image."
18189 msgstr ""
18190
18191 #. type: verbatim
18192 #: ../fish/virt-copy-out.pod:9
18193 #, no-wrap
18194 msgid ""
18195 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
18196 "\n"
18197 msgstr ""
18198
18199 #. type: verbatim
18200 #: ../fish/virt-copy-out.pod:11
18201 #, no-wrap
18202 msgid ""
18203 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
18204 "\n"
18205 msgstr ""
18206
18207 #. type: textblock
18208 #: ../fish/virt-copy-out.pod:15
18209 msgid ""
18210 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
18211 "image or named libvirt domain."
18212 msgstr ""
18213
18214 #. type: textblock
18215 #: ../fish/virt-copy-out.pod:18
18216 msgid ""
18217 "You can give one of more filenames and directories on the command line.  "
18218 "Directories are copied out recursively."
18219 msgstr ""
18220
18221 #. type: textblock
18222 #: ../fish/virt-copy-out.pod:23
18223 msgid "Download the home directories from a virtual machine:"
18224 msgstr ""
18225
18226 #. type: verbatim
18227 #: ../fish/virt-copy-out.pod:25
18228 #, no-wrap
18229 msgid ""
18230 " mkdir homes\n"
18231 " virt-copy-out -d MyGuest /home homes\n"
18232 "\n"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/virt-copy-out.pod:30
18237 msgid ""
18238 "This command is just a simple shell script wrapper around the "
18239 "L<guestfish(1)> C<copy-out> command.  For anything more complex than a "
18240 "trivial copy, you are probably better off using guestfish directly."
18241 msgstr ""
18242
18243 #. type: textblock
18244 #: ../fish/virt-copy-out.pod:41
18245 msgid ""
18246 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, "
18247 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
18248 msgstr ""
18249
18250 #. type: textblock
18251 #: ../fish/virt-tar-in.pod:5
18252 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
18253 msgstr ""
18254
18255 #. type: verbatim
18256 #: ../fish/virt-tar-in.pod:9
18257 #, no-wrap
18258 msgid ""
18259 " virt-tar-in -a disk.img data.tar /destination\n"
18260 "\n"
18261 msgstr ""
18262
18263 #. type: verbatim
18264 #: ../fish/virt-tar-in.pod:11
18265 #, no-wrap
18266 msgid ""
18267 " virt-tar-in -d domain data.tar /destination\n"
18268 "\n"
18269 msgstr ""
18270
18271 #. type: verbatim
18272 #: ../fish/virt-tar-in.pod:13
18273 #, no-wrap
18274 msgid ""
18275 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
18276 "\n"
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/virt-tar-in.pod:17
18281 msgid ""
18282 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
18283 "causing disk corruption.  The virtual machine must be shut down before you "
18284 "use this command."
18285 msgstr ""
18286
18287 #. type: textblock
18288 #: ../fish/virt-tar-in.pod:23
18289 msgid ""
18290 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
18291 "image or named libvirt domain."
18292 msgstr ""
18293
18294 #. type: textblock
18295 #: ../fish/virt-tar-in.pod:26
18296 msgid ""
18297 "The first parameter is the tar file.  Use C<-> to read the tar file from "
18298 "standard input.  The second parameter is the absolute target directory to "
18299 "unpack into."
18300 msgstr ""
18301
18302 #. type: verbatim
18303 #: ../fish/virt-tar-in.pod:34
18304 #, no-wrap
18305 msgid ""
18306 " virt-tar-in -d MyGuest homes.tar /home\n"
18307 "\n"
18308 msgstr ""
18309
18310 #. type: textblock
18311 #: ../fish/virt-tar-in.pod:38
18312 msgid ""
18313 "This command is just a simple shell script wrapper around the "
18314 "L<guestfish(1)> C<tar-in> command.  For anything more complex than a trivial "
18315 "copy, you are probably better off using guestfish directly."
18316 msgstr ""
18317
18318 #. type: textblock
18319 #: ../fish/virt-tar-in.pod:49
18320 msgid ""
18321 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18322 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, "
18323 "L<http://libguestfs.org/>."
18324 msgstr ""
18325
18326 #. type: textblock
18327 #: ../fish/virt-tar-out.pod:5
18328 msgid "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
18329 msgstr ""
18330
18331 #. type: verbatim
18332 #: ../fish/virt-tar-out.pod:9
18333 #, no-wrap
18334 msgid ""
18335 " virt-tar-out -a disk.img /dir files.tar\n"
18336 "\n"
18337 msgstr ""
18338
18339 #. type: verbatim
18340 #: ../fish/virt-tar-out.pod:11
18341 #, no-wrap
18342 msgid ""
18343 " virt-tar-out -d domain /dir files.tar\n"
18344 "\n"
18345 msgstr ""
18346
18347 #. type: verbatim
18348 #: ../fish/virt-tar-out.pod:13
18349 #, no-wrap
18350 msgid ""
18351 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
18352 "\n"
18353 msgstr ""
18354
18355 #. type: textblock
18356 #: ../fish/virt-tar-out.pod:17
18357 msgid "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
18358 msgstr ""
18359
18360 #. type: textblock
18361 #: ../fish/virt-tar-out.pod:20
18362 msgid ""
18363 "The first parameter is the absolute path of the virtual machine directory.  "
18364 "The second parameter is the tar file to write.  Use C<-> to write to "
18365 "standard output."
18366 msgstr ""
18367
18368 #. type: textblock
18369 #: ../fish/virt-tar-out.pod:26
18370 msgid "Download the home directories from a guest:"
18371 msgstr ""
18372
18373 #. type: verbatim
18374 #: ../fish/virt-tar-out.pod:28
18375 #, no-wrap
18376 msgid ""
18377 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
18378 "\n"
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/virt-tar-out.pod:32
18383 msgid ""
18384 "This command is just a simple shell script wrapper around the "
18385 "L<guestfish(1)> C<tar-out> command.  For anything more complex than a "
18386 "trivial copy, you are probably better off using guestfish directly."
18387 msgstr ""
18388
18389 #. type: textblock
18390 #: ../fish/virt-tar-out.pod:43
18391 msgid ""
18392 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
18393 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
18394 msgstr ""
18395
18396 #. type: textblock
18397 #: ../fuse/guestmount.pod:5
18398 msgid "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
18399 msgstr ""
18400
18401 #. type: verbatim
18402 #: ../fuse/guestmount.pod:9
18403 #, no-wrap
18404 msgid ""
18405 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
18406 "\n"
18407 msgstr ""
18408
18409 #. type: verbatim
18410 #: ../fuse/guestmount.pod:11
18411 #, no-wrap
18412 msgid ""
18413 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
18414 "\n"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fuse/guestmount.pod:13
18419 #, no-wrap
18420 msgid ""
18421 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
18422 "\n"
18423 msgstr ""
18424
18425 #. type: textblock
18426 #: ../fuse/guestmount.pod:17
18427 msgid ""
18428 "You must I<not> use C<guestmount> in read-write mode on live virtual "
18429 "machines.  If you do this, you risk disk corruption in the VM."
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fuse/guestmount.pod:22
18434 msgid ""
18435 "The guestmount program can be used to mount virtual machine filesystems and "
18436 "other disk images on the host.  It uses libguestfs for access to the guest "
18437 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
18438 "a mountable device."
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fuse/guestmount.pod:27
18443 msgid ""
18444 "Along with other options, you have to give at least one device (I<-a> "
18445 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
18446 "option) or use the I<-i> inspection option.  How this works is better "
18447 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
18448 "below."
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../fuse/guestmount.pod:33
18453 msgid ""
18454 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
18455 "by you, and the filesystem will not be visible to any other users unless you "
18456 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
18457 "the filesystem, use the C<fusermount -u> command."
18458 msgstr ""
18459
18460 #. type: textblock
18461 #: ../fuse/guestmount.pod:41
18462 msgid ""
18463 "For a typical Windows guest which has its main filesystem on the first "
18464 "partition:"
18465 msgstr ""
18466
18467 #. type: verbatim
18468 #: ../fuse/guestmount.pod:44
18469 #, no-wrap
18470 msgid ""
18471 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
18472 "\n"
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fuse/guestmount.pod:46
18477 msgid ""
18478 "For a typical Linux guest which has a /boot filesystem on the first "
18479 "partition, and the root filesystem on a logical volume:"
18480 msgstr ""
18481
18482 #. type: verbatim
18483 #: ../fuse/guestmount.pod:49
18484 #, no-wrap
18485 msgid ""
18486 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
18487 "\n"
18488 msgstr ""
18489
18490 #. type: textblock
18491 #: ../fuse/guestmount.pod:51
18492 msgid "To get libguestfs to detect guest mountpoints for you:"
18493 msgstr ""
18494
18495 #. type: verbatim
18496 #: ../fuse/guestmount.pod:53
18497 #, no-wrap
18498 msgid ""
18499 " guestmount -a guest.img -i --ro /mnt\n"
18500 "\n"
18501 msgstr ""
18502
18503 #. type: textblock
18504 #: ../fuse/guestmount.pod:55
18505 msgid "For a libvirt guest called \"Guest\" you could do:"
18506 msgstr ""
18507
18508 #. type: verbatim
18509 #: ../fuse/guestmount.pod:57
18510 #, no-wrap
18511 msgid ""
18512 " guestmount -d Guest -i --ro /mnt\n"
18513 "\n"
18514 msgstr ""
18515
18516 #. type: textblock
18517 #: ../fuse/guestmount.pod:59
18518 msgid ""
18519 "If you don't know what filesystems are contained in a guest or disk image, "
18520 "use L<virt-filesystems(1)> first:"
18521 msgstr ""
18522
18523 #. type: verbatim
18524 #: ../fuse/guestmount.pod:62
18525 #, no-wrap
18526 msgid ""
18527 " virt-filesystems MyGuest\n"
18528 "\n"
18529 msgstr ""
18530
18531 #. type: textblock
18532 #: ../fuse/guestmount.pod:64
18533 msgid ""
18534 "If you want to trace the libguestfs calls but without excessive debugging "
18535 "information, we recommend:"
18536 msgstr ""
18537
18538 #. type: verbatim
18539 #: ../fuse/guestmount.pod:67
18540 #, no-wrap
18541 msgid ""
18542 " guestmount [...] --trace /mnt\n"
18543 "\n"
18544 msgstr ""
18545
18546 #. type: textblock
18547 #: ../fuse/guestmount.pod:69
18548 msgid "If you want to debug the program, we recommend:"
18549 msgstr ""
18550
18551 #. type: verbatim
18552 #: ../fuse/guestmount.pod:71
18553 #, no-wrap
18554 msgid ""
18555 " guestmount [...] --trace --verbose /mnt\n"
18556 "\n"
18557 msgstr ""
18558
18559 #. type: =head1
18560 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68 ../resize/virt-resize.pod:486
18561 msgid "NOTES"
18562 msgstr ""
18563
18564 #. type: =head2
18565 #: ../fuse/guestmount.pod:75
18566 msgid "Other users cannot see the filesystem by default"
18567 msgstr ""
18568
18569 #. type: textblock
18570 #: ../fuse/guestmount.pod:77
18571 msgid ""
18572 "If you mount a filesystem as one user (eg. root), then other users will not "
18573 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
18574 "option when mounting:"
18575 msgstr ""
18576
18577 #. type: verbatim
18578 #: ../fuse/guestmount.pod:81
18579 #, no-wrap
18580 msgid ""
18581 " sudo guestmount [...] -o allow_other /mnt\n"
18582 "\n"
18583 msgstr ""
18584
18585 #. type: textblock
18586 #: ../fuse/guestmount.pod:91
18587 msgid "Add a block device or virtual machine image."
18588 msgstr ""
18589
18590 #. type: =item
18591 #: ../fuse/guestmount.pod:114
18592 msgid "B<--dir-cache-timeout N>"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fuse/guestmount.pod:116
18597 msgid ""
18598 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
18599 "seconds.  The readdir cache [actually, there are several semi-independent "
18600 "caches] is populated after a readdir(2) call with the stat and extended "
18601 "attributes of the files in the directory, in anticipation that they will be "
18602 "requested soon after."
18603 msgstr ""
18604
18605 #. type: textblock
18606 #: ../fuse/guestmount.pod:122
18607 msgid ""
18608 "There is also a different attribute cache implemented by FUSE (see the FUSE "
18609 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
18610 "requests, only cache existing ones."
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fuse/guestmount.pod:142
18615 msgid ""
18616 "If you have untrusted raw-format guest disk images, you should use this "
18617 "option to specify the disk format.  This avoids a possible security problem "
18618 "with malicious guests (CVE-2010-3851).  See also "
18619 "L<guestfs(3)/guestfs_add_drive_opts>."
18620 msgstr ""
18621
18622 #. type: =item
18623 #: ../fuse/guestmount.pod:147
18624 msgid "B<--fuse-help>"
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fuse/guestmount.pod:149
18629 msgid "Display help on special FUSE options (see I<-o> below)."
18630 msgstr ""
18631
18632 #. type: textblock
18633 #: ../fuse/guestmount.pod:153
18634 msgid "Display brief help and exit."
18635 msgstr ""
18636
18637 #. type: textblock
18638 #: ../fuse/guestmount.pod:177
18639 msgid ""
18640 "Mount the named partition or logical volume on the given mountpoint B<in the "
18641 "guest> (this has nothing to do with mountpoints in the host)."
18642 msgstr ""
18643
18644 #. type: textblock
18645 #: ../fuse/guestmount.pod:180
18646 msgid ""
18647 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
18648 "something on C</>."
18649 msgstr ""
18650
18651 #. type: textblock
18652 #: ../fuse/guestmount.pod:197
18653 msgid ""
18654 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
18655 "unmounted.  If you specify this option, then we don't attempt to sync the "
18656 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
18657 msgstr ""
18658
18659 #. type: =item
18660 #: ../fuse/guestmount.pod:202
18661 msgid "B<-o option>"
18662 msgstr ""
18663
18664 #. type: =item
18665 #: ../fuse/guestmount.pod:204
18666 msgid "B<--option option>"
18667 msgstr ""
18668
18669 #. type: textblock
18670 #: ../fuse/guestmount.pod:206
18671 msgid "Pass extra options to FUSE."
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fuse/guestmount.pod:208
18676 msgid ""
18677 "To get a list of all the extra options supported by FUSE, use the command "
18678 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
18679 "of them are a good idea."
18680 msgstr ""
18681
18682 #. type: verbatim
18683 #: ../fuse/guestmount.pod:212
18684 #, no-wrap
18685 msgid ""
18686 " guestmount --fuse-help\n"
18687 "\n"
18688 msgstr ""
18689
18690 #. type: textblock
18691 #: ../fuse/guestmount.pod:214
18692 msgid "Some potentially useful FUSE options:"
18693 msgstr ""
18694
18695 #. type: =item
18696 #: ../fuse/guestmount.pod:218
18697 msgid "B<-o allow_other>"
18698 msgstr ""
18699
18700 #. type: textblock
18701 #: ../fuse/guestmount.pod:220
18702 msgid "Allow other users to see the filesystem."
18703 msgstr ""
18704
18705 #. type: =item
18706 #: ../fuse/guestmount.pod:222
18707 msgid "B<-o attr_timeout=N>"
18708 msgstr ""
18709
18710 #. type: textblock
18711 #: ../fuse/guestmount.pod:224
18712 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
18713 msgstr ""
18714
18715 #. type: =item
18716 #: ../fuse/guestmount.pod:226
18717 msgid "B<-o kernel_cache>"
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../fuse/guestmount.pod:228
18722 msgid ""
18723 "Allow the kernel to cache files (reduces the number of reads that have to go "
18724 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
18725 "afford the extra memory usage."
18726 msgstr ""
18727
18728 #. type: =item
18729 #: ../fuse/guestmount.pod:232
18730 msgid "B<-o uid=N> B<-o gid=N>"
18731 msgstr ""
18732
18733 #. type: textblock
18734 #: ../fuse/guestmount.pod:234
18735 msgid ""
18736 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
18737 "the chosen values."
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fuse/guestmount.pod:243
18742 msgid ""
18743 "Add devices and mount everything read-only.  Also disallow writes and make "
18744 "the disk appear read-only to FUSE."
18745 msgstr ""
18746
18747 #. type: textblock
18748 #: ../fuse/guestmount.pod:246
18749 msgid ""
18750 "This is highly recommended if you are not going to edit the guest disk.  If "
18751 "the guest is running and this option is I<not> supplied, then there is a "
18752 "strong risk of disk corruption in the guest.  We try to prevent this from "
18753 "happening, but it is not always possible."
18754 msgstr ""
18755
18756 #. type: textblock
18757 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
18758 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fuse/guestmount.pod:255
18763 msgid "Enable SELinux support for the guest."
18764 msgstr ""
18765
18766 #. type: textblock
18767 #: ../fuse/guestmount.pod:261
18768 msgid "Enable verbose messages from underlying libguestfs."
18769 msgstr ""
18770
18771 #. type: textblock
18772 #: ../fuse/guestmount.pod:267
18773 msgid "Display the program version and exit."
18774 msgstr ""
18775
18776 #. type: textblock
18777 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299 ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
18778 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
18779 msgstr ""
18780
18781 #. type: =item
18782 #: ../fuse/guestmount.pod:280
18783 msgid "B<--trace>"
18784 msgstr ""
18785
18786 #. type: textblock
18787 #: ../fuse/guestmount.pod:282
18788 msgid "Trace libguestfs calls and entry into each FUSE function."
18789 msgstr ""
18790
18791 #. type: textblock
18792 #: ../fuse/guestmount.pod:284
18793 msgid "This also stops the daemon from forking into the background."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fuse/guestmount.pod:305
18798 msgid ""
18799 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
18800 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, "
18801 "L<http://fuse.sf.net/>."
18802 msgstr ""
18803
18804 #. type: textblock
18805 #: ../fuse/guestmount.pod:320
18806 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
18807 msgstr ""
18808
18809 #. type: textblock
18810 #: ../inspector/virt-inspector.pod:5
18811 msgid ""
18812 "virt-inspector - Display operating system version and other information "
18813 "about a virtual machine"
18814 msgstr ""
18815
18816 #. type: verbatim
18817 #: ../inspector/virt-inspector.pod:9
18818 #, no-wrap
18819 msgid ""
18820 " virt-inspector [--options] -d domname\n"
18821 "\n"
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../inspector/virt-inspector.pod:11
18826 #, no-wrap
18827 msgid ""
18828 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
18829 "\n"
18830 msgstr ""
18831
18832 #. type: verbatim
18833 #: ../inspector/virt-inspector.pod:15
18834 #, no-wrap
18835 msgid ""
18836 " virt-inspector domname\n"
18837 "\n"
18838 msgstr ""
18839
18840 #. type: verbatim
18841 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
18842 #, no-wrap
18843 msgid ""
18844 " virt-inspector disk.img [disk.img ...]\n"
18845 "\n"
18846 msgstr ""
18847
18848 #. type: textblock
18849 #: ../inspector/virt-inspector.pod:21
18850 msgid ""
18851 "B<virt-inspector> examines a virtual machine or disk image and tries to "
18852 "determine the version of the operating system and other information about "
18853 "the virtual machine."
18854 msgstr ""
18855
18856 #. type: textblock
18857 #: ../inspector/virt-inspector.pod:25
18858 msgid "Virt-inspector produces XML output for feeding into other programs."
18859 msgstr ""
18860
18861 #. type: textblock
18862 #: ../inspector/virt-inspector.pod:27
18863 msgid ""
18864 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
18865 "the libvirt domain (see: C<virsh list --all>)."
18866 msgstr ""
18867
18868 #. type: textblock
18869 #: ../inspector/virt-inspector.pod:30
18870 msgid ""
18871 "You can also run virt-inspector directly on disk images from a single "
18872 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
18873 "has several block devices, in which case you should list several I<-a> "
18874 "options one after another, with the first corresponding to the guest's "
18875 "C</dev/sda>, the second to the guest's C</dev/sdb> and so on."
18876 msgstr ""
18877
18878 #. type: textblock
18879 #: ../inspector/virt-inspector.pod:37
18880 msgid ""
18881 "You can also run virt-inspector on install disks, live CDs, bootable USB "
18882 "keys and similar."
18883 msgstr ""
18884
18885 #. type: textblock
18886 #: ../inspector/virt-inspector.pod:40
18887 msgid ""
18888 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
18889 "inspect several virtual machines, you have to run virt-inspector several "
18890 "times (for example, from a shell script for-loop)."
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../inspector/virt-inspector.pod:45
18895 msgid ""
18896 "Because virt-inspector needs direct access to guest images, it won't "
18897 "normally work over remote libvirt connections."
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../inspector/virt-inspector.pod:48
18902 msgid ""
18903 "All of the information available from virt-inspector is also available "
18904 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
18905 "The same information can also be fetched using guestfish or via libguestfs "
18906 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
18907 "WITH OTHER PROGRAMMING LANGUAGES>)."
18908 msgstr ""
18909
18910 #. type: textblock
18911 #: ../inspector/virt-inspector.pod:81
18912 msgid ""
18913 "Libvirt is only used if you specify a C<domname> on the command line.  If "
18914 "you specify guest block devices directly (I<-a>), then libvirt is not used "
18915 "at all."
18916 msgstr ""
18917
18918 #. type: textblock
18919 #: ../inspector/virt-inspector.pod:94
18920 msgid ""
18921 "When prompting for keys and passphrases, virt-inspector normally turns "
18922 "echoing off so you cannot see what you are typing.  If you are not worried "
18923 "about Tempest attacks and there is no one else in the room you can specify "
18924 "this flag to see what you are typing."
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../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
18929 msgid ""
18930 "Specify the format of disk images given on the command line.  If this is "
18931 "omitted then the format is autodetected from the content of the disk image."
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../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
18936 msgid ""
18937 "If disk images are requested from libvirt, then this program asks libvirt "
18938 "for this information.  In this case, the value of the format parameter is "
18939 "ignored."
18940 msgstr ""
18941
18942 #. type: textblock
18943 #: ../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
18944 msgid ""
18945 "If working with untrusted raw-format guest disk images, you should ensure "
18946 "the format is always specified."
18947 msgstr ""
18948
18949 #. type: textblock
18950 #: ../inspector/virt-inspector.pod:139
18951 msgid "Previous versions of virt-inspector allowed you to write either:"
18952 msgstr ""
18953
18954 #. type: verbatim
18955 #: ../inspector/virt-inspector.pod:145
18956 #, no-wrap
18957 msgid ""
18958 " virt-inspector guestname\n"
18959 "\n"
18960 msgstr ""
18961
18962 #. type: =head1
18963 #: ../inspector/virt-inspector.pod:153
18964 msgid "XML FORMAT"
18965 msgstr ""
18966
18967 #. type: textblock
18968 #: ../inspector/virt-inspector.pod:155
18969 msgid ""
18970 "The virt-inspector XML is described precisely in a RELAX NG schema file "
18971 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
18972 "just an overview."
18973 msgstr ""
18974
18975 #. type: textblock
18976 #: ../inspector/virt-inspector.pod:159
18977 msgid ""
18978 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
18979 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
18980 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
18981 "which is vanishingly rare in real world VMs."
18982 msgstr ""
18983
18984 #. type: =head2
18985 #: ../inspector/virt-inspector.pod:164
18986 msgid "E<lt>operatingsystemE<gt>"
18987 msgstr ""
18988
18989 #. type: textblock
18990 #: ../inspector/virt-inspector.pod:166
18991 msgid ""
18992 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
18993 "describe the operating system, its architecture, the descriptive \"product "
18994 "name\" string, the type of OS and so on, as in this example:"
18995 msgstr ""
18996
18997 #. type: verbatim
18998 #: ../inspector/virt-inspector.pod:170
18999 #, no-wrap
19000 msgid ""
19001 " <operatingsystems>\n"
19002 "   <operatingsystem>\n"
19003 "     <root>/dev/sda2</root>\n"
19004 "     <name>windows</name>\n"
19005 "     <arch>i386</arch>\n"
19006 "     <distro>windows</distro>\n"
19007 "     <product_name>Windows 7 Enterprise</product_name>\n"
19008 "     <product_variant>Client</product_variant>\n"
19009 "     <major_version>6</major_version>\n"
19010 "     <minor_version>1</minor_version>\n"
19011 "     <windows_systemroot>/Windows</windows_systemroot>\n"
19012 "     <format>installed</format>\n"
19013 "\n"
19014 msgstr ""
19015
19016 #. type: textblock
19017 #: ../inspector/virt-inspector.pod:183
19018 msgid ""
19019 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
19020 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
19021 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
19022 "architecture.  The other fields are fairly self-explanatory, but because "
19023 "these fields are taken directly from the libguestfs inspection API you can "
19024 "find precise information from L<guestfs(3)/INSPECTION>."
19025 msgstr ""
19026
19027 #. type: textblock
19028 #: ../inspector/virt-inspector.pod:191
19029 msgid ""
19030 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
19031 "of view of libguestfs (block devices may have completely different names "
19032 "inside the VM itself)."
19033 msgstr ""
19034
19035 #. type: =head2
19036 #: ../inspector/virt-inspector.pod:195
19037 msgid "E<lt>mountpointsE<gt>"
19038 msgstr ""
19039
19040 #. type: textblock
19041 #: ../inspector/virt-inspector.pod:197
19042 msgid ""
19043 "Un*x-like guests typically have multiple filesystems which are mounted at "
19044 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
19045 "element which looks like this:"
19046 msgstr ""
19047
19048 #. type: verbatim
19049 #: ../inspector/virt-inspector.pod:201
19050 #, no-wrap
19051 msgid ""
19052 " <operatingsystems>\n"
19053 "   <operatingsystem>\n"
19054 "     ...\n"
19055 "     <mountpoints>\n"
19056 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
19057 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
19058 "     </mountpoints>\n"
19059 "\n"
19060 msgstr ""
19061
19062 #. type: textblock
19063 #: ../inspector/virt-inspector.pod:209
19064 msgid ""
19065 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
19066 "and may have completely different names inside the guest.  Only mountable "
19067 "filesystems appear in this list, not things like swap devices."
19068 msgstr ""
19069
19070 #. type: =head2
19071 #: ../inspector/virt-inspector.pod:214
19072 msgid "E<lt>filesystemsE<gt>"
19073 msgstr ""
19074
19075 #. type: textblock
19076 #: ../inspector/virt-inspector.pod:216
19077 msgid ""
19078 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
19079 "filesystems belonging to the guest, including swap and empty partitions.  "
19080 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
19081 "this OS or shared with this OS and other OSes)."
19082 msgstr ""
19083
19084 #. type: textblock
19085 #: ../inspector/virt-inspector.pod:222
19086 msgid "You might see something like this:"
19087 msgstr ""
19088
19089 #. type: verbatim
19090 #: ../inspector/virt-inspector.pod:224
19091 #, no-wrap
19092 msgid ""
19093 " <operatingsystems>\n"
19094 "   <operatingsystem>\n"
19095 "     ...\n"
19096 "     <filesystems>\n"
19097 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19098 "         <type>ext4</type>\n"
19099 "         <label>Fedora-13-x86_64</label>\n"
19100 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
19101 "       </filesystem>\n"
19102 "\n"
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../inspector/virt-inspector.pod:234
19107 msgid ""
19108 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
19109 "the label, and the UUID."
19110 msgstr ""
19111
19112 #. type: =head2
19113 #: ../inspector/virt-inspector.pod:237
19114 msgid "E<lt>applicationsE<gt>"
19115 msgstr ""
19116
19117 #. type: textblock
19118 #: ../inspector/virt-inspector.pod:239
19119 msgid ""
19120 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
19121 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
19122 "machine."
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../inspector/virt-inspector.pod:243
19127 msgid ""
19128 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
19129 "Typical values would be C<rpm> and C<deb>."
19130 msgstr ""
19131
19132 #. type: textblock
19133 #: ../inspector/virt-inspector.pod:246
19134 msgid ""
19135 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
19136 "Typical values include C<yum>, C<up2date> and C<apt>"
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../inspector/virt-inspector.pod:249
19141 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
19142 msgstr ""
19143
19144 #. type: verbatim
19145 #: ../inspector/virt-inspector.pod:252
19146 #, no-wrap
19147 msgid ""
19148 " <operatingsystems>\n"
19149 "   <operatingsystem>\n"
19150 "     ...\n"
19151 "     <applications>\n"
19152 "       <application>\n"
19153 "         <name>coreutils</name>\n"
19154 "         <version>8.5</version>\n"
19155 "         <release>1</release>\n"
19156 "       </application>\n"
19157 "\n"
19158 msgstr ""
19159
19160 #. type: textblock
19161 #: ../inspector/virt-inspector.pod:262
19162 msgid ""
19163 "The version and release fields may not be available for some types guests.  "
19164 "Other fields are possible, see "
19165 "L<guestfs(3)/guestfs_inspect_list_applications>."
19166 msgstr ""
19167
19168 #. type: =head2
19169 #: ../inspector/virt-inspector.pod:266
19170 msgid "E<lt>drive_mappingsE<gt>"
19171 msgstr ""
19172
19173 #. type: textblock
19174 #: ../inspector/virt-inspector.pod:268
19175 msgid ""
19176 "For operating systems like Windows which use drive letters, virt-inspector "
19177 "is able to find out how drive letters map to filesystems."
19178 msgstr ""
19179
19180 #. type: verbatim
19181 #: ../inspector/virt-inspector.pod:272
19182 #, no-wrap
19183 msgid ""
19184 " <operatingsystems>\n"
19185 "   <operatingsystem>\n"
19186 "     ...\n"
19187 "     <drive_mappings>\n"
19188 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
19189 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
19190 "     </drive_mappings>\n"
19191 "\n"
19192 msgstr ""
19193
19194 #. type: textblock
19195 #: ../inspector/virt-inspector.pod:280
19196 msgid ""
19197 "In the example above, drive C maps to the filesystem on the second partition "
19198 "on the first disk, and drive E maps to the filesystem on the first partition "
19199 "on the second disk."
19200 msgstr ""
19201
19202 #. type: textblock
19203 #: ../inspector/virt-inspector.pod:284
19204 msgid ""
19205 "Note that this only covers permanent local filesystem mappings, not things "
19206 "like network shares.  Furthermore NTFS volume mount points may not be listed "
19207 "here."
19208 msgstr ""
19209
19210 #. type: =head2
19211 #: ../inspector/virt-inspector.pod:288
19212 msgid "E<lt>iconE<gt>"
19213 msgstr ""
19214
19215 #. type: textblock
19216 #: ../inspector/virt-inspector.pod:290
19217 msgid ""
19218 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
19219 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
19220 "very large and high quality."
19221 msgstr ""
19222
19223 #. type: verbatim
19224 #: ../inspector/virt-inspector.pod:294
19225 #, no-wrap
19226 msgid ""
19227 " <operatingsystems>\n"
19228 "   <operatingsystem>\n"
19229 "     ...\n"
19230 "     <icon>\n"
19231 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
19232 "       [... many lines of base64 data ...]\n"
19233 "     </icon>\n"
19234 "\n"
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../inspector/virt-inspector.pod:302
19239 msgid ""
19240 "To display the icon, you have to extract it and convert the base64 data back "
19241 "to a binary file.  Use an XPath query or simply an editor to extract the "
19242 "data, then use the coreutils L<base64(1)> program to do the conversion back "
19243 "to a PNG file:"
19244 msgstr ""
19245
19246 #. type: verbatim
19247 #: ../inspector/virt-inspector.pod:307
19248 #, no-wrap
19249 msgid ""
19250 " base64 -i -d < icon.data > icon.png\n"
19251 "\n"
19252 msgstr ""
19253
19254 #. type: =head2
19255 #: ../inspector/virt-inspector.pod:309
19256 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
19257 msgstr ""
19258
19259 #. type: textblock
19260 #: ../inspector/virt-inspector.pod:311
19261 msgid ""
19262 "Virt-inspector can detect some operating system installers on install disks, "
19263 "live CDs, bootable USB keys and more."
19264 msgstr ""
19265
19266 #. type: textblock
19267 #: ../inspector/virt-inspector.pod:314
19268 msgid ""
19269 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
19270 "fields may be present to indicate a live CD, network installer, or one part "
19271 "of a multipart CD.  For example:"
19272 msgstr ""
19273
19274 #. type: verbatim
19275 #: ../inspector/virt-inspector.pod:318
19276 #, no-wrap
19277 msgid ""
19278 " <operatingsystems>\n"
19279 "   <operatingsystem>\n"
19280 "     <root>/dev/sda</root>\n"
19281 "     <name>linux</name>\n"
19282 "     <arch>i386</arch>\n"
19283 "     <distro>ubuntu</distro>\n"
19284 "     <product_name>Ubuntu 10.10 &quot;Maverick "
19285 "Meerkat&quot;</product_name>\n"
19286 "     <major_version>10</major_version>\n"
19287 "     <minor_version>10</minor_version>\n"
19288 "     <format>installer</format>\n"
19289 "     <live/>\n"
19290 "\n"
19291 msgstr ""
19292
19293 #. type: =head1
19294 #: ../inspector/virt-inspector.pod:330
19295 msgid "USING XPATH"
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../inspector/virt-inspector.pod:332
19300 msgid ""
19301 "You can use the XPath query language, and/or the xpath tool, in order to "
19302 "select parts of the XML."
19303 msgstr ""
19304
19305 #. type: verbatim
19306 #: ../inspector/virt-inspector.pod:337
19307 #, no-wrap
19308 msgid ""
19309 " $ virt-inspector -d Guest | xpath //filesystems\n"
19310 " Found 1 nodes:\n"
19311 " -- NODE --\n"
19312 " <filesystems>\n"
19313 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
19314 "        <type>ext4</type>\n"
19315 " [etc]\n"
19316 "\n"
19317 msgstr ""
19318
19319 #. type: verbatim
19320 #: ../inspector/virt-inspector.pod:345
19321 #, no-wrap
19322 msgid ""
19323 " $ virt-inspector -d Guest | \\\n"
19324 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
19325 " Query didn't return a nodeset. Value: ext4\n"
19326 "\n"
19327 msgstr ""
19328
19329 #. type: =head1
19330 #: ../inspector/virt-inspector.pod:356
19331 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../inspector/virt-inspector.pod:358
19336 msgid ""
19337 "Early versions of libguestfs shipped with a different virt-inspector program "
19338 "written in Perl (the current version is written in C).  The XML output of "
19339 "the Perl virt-inspector was different and it could also output in other "
19340 "formats like text."
19341 msgstr ""
19342
19343 #. type: textblock
19344 #: ../inspector/virt-inspector.pod:363
19345 msgid "The old virt-inspector is no longer supported or shipped with libguestfs."
19346 msgstr ""
19347
19348 #. type: textblock
19349 #: ../inspector/virt-inspector.pod:366
19350 msgid ""
19351 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
19352 "versions of virt-inspector with different names:"
19353 msgstr ""
19354
19355 #. type: verbatim
19356 #: ../inspector/virt-inspector.pod:369
19357 #, no-wrap
19358 msgid ""
19359 " virt-inspector     Old Perl version.\n"
19360 " virt-inspector2    New C version.\n"
19361 "\n"
19362 msgstr ""
19363
19364 #. type: textblock
19365 #: ../inspector/virt-inspector.pod:374
19366 msgid ""
19367 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, "
19368 "L<base64(1)>, L<http://libguestfs.org/>."
19369 msgstr ""
19370
19371 #. type: textblock
19372 #: ../inspector/virt-inspector.pod:390
19373 msgid "Matthew Booth L<mbooth@redhat.com>"
19374 msgstr ""
19375
19376 #. type: textblock
19377 #: ../java/examples/guestfs-java.pod:5
19378 msgid "guestfs-java - How to use libguestfs from Java"
19379 msgstr ""
19380
19381 #. type: verbatim
19382 #: ../java/examples/guestfs-java.pod:9
19383 #, no-wrap
19384 msgid ""
19385 " import com.redhat.et.libguestfs.*;\n"
19386 " \n"
19387 msgstr ""
19388
19389 #. type: verbatim
19390 #: ../java/examples/guestfs-java.pod:11
19391 #, no-wrap
19392 msgid ""
19393 " GuestFS g = new GuestFS ();\n"
19394 " g.add_drive_opts (\"disk.img\", null);\n"
19395 " g.launch ();\n"
19396 "\n"
19397 msgstr ""
19398
19399 #. type: textblock
19400 #: ../java/examples/guestfs-java.pod:17
19401 msgid ""
19402 "This manual page documents how to call libguestfs from the Java programming "
19403 "language.  This page just documents the differences from the C API and gives "
19404 "some examples.  If you are not familiar with using libguestfs, you also need "
19405 "to read L<guestfs(3)>."
19406 msgstr ""
19407
19408 #. type: =head2
19409 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
19410 msgid "CLOSING THE HANDLE"
19411 msgstr ""
19412
19413 #. type: textblock
19414 #: ../java/examples/guestfs-java.pod:24
19415 msgid ""
19416 "The handle is closed when it is reaped by the garbage collector.  Because "
19417 "libguestfs handles include a lot of state, it is also possible to close (and "
19418 "hence free) them explicitly by calling the C<close> method."
19419 msgstr ""
19420
19421 #. type: =head2
19422 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60 ../python/examples/guestfs-python.pod:21 ../ruby/examples/guestfs-ruby.pod:22
19423 msgid "EXCEPTIONS"
19424 msgstr ""
19425
19426 #. type: textblock
19427 #: ../java/examples/guestfs-java.pod:31
19428 msgid ""
19429 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
19430 "exception.  This has a single parameter which is the error message (a "
19431 "C<String>)."
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../java/examples/guestfs-java.pod:35
19436 msgid "Calling any method on a closed handle raises the same exception."
19437 msgstr ""
19438
19439 #. type: textblock
19440 #: ../java/examples/guestfs-java.pod:47
19441 msgid ""
19442 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, "
19443 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19444 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
19449 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
19450 msgstr ""
19451
19452 #. type: textblock
19453 #: ../ocaml/examples/guestfs-ocaml.pod:5
19454 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
19455 msgstr ""
19456
19457 #. type: textblock
19458 #: ../ocaml/examples/guestfs-ocaml.pod:9
19459 msgid "Module style:"
19460 msgstr ""
19461
19462 #. type: verbatim
19463 #: ../ocaml/examples/guestfs-ocaml.pod:11
19464 #, no-wrap
19465 msgid ""
19466 " let g = Guestfs.create () in\n"
19467 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19468 " Guestfs.launch g;\n"
19469 "\n"
19470 msgstr ""
19471
19472 #. type: textblock
19473 #: ../ocaml/examples/guestfs-ocaml.pod:15
19474 msgid "Object-oriented style:"
19475 msgstr ""
19476
19477 #. type: verbatim
19478 #: ../ocaml/examples/guestfs-ocaml.pod:17
19479 #, no-wrap
19480 msgid ""
19481 " let g = new Guestfs.guestfs () in\n"
19482 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
19483 " g#launch ();\n"
19484 "\n"
19485 msgstr ""
19486
19487 #. type: verbatim
19488 #: ../ocaml/examples/guestfs-ocaml.pod:21
19489 #, no-wrap
19490 msgid ""
19491 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
19492 "or:\n"
19493 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
19494 "\n"
19495 msgstr ""
19496
19497 #. type: textblock
19498 #: ../ocaml/examples/guestfs-ocaml.pod:27
19499 msgid ""
19500 "This manual page documents how to call libguestfs from the OCaml programming "
19501 "language.  This page just documents the differences from the C API and gives "
19502 "some examples.  If you are not familiar with using libguestfs, you also need "
19503 "to read L<guestfs(3)>."
19504 msgstr ""
19505
19506 #. type: =head2
19507 #: ../ocaml/examples/guestfs-ocaml.pod:32
19508 msgid "PROGRAMMING STYLES"
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../ocaml/examples/guestfs-ocaml.pod:34
19513 msgid ""
19514 "There are two different programming styles supported by the OCaml bindings.  "
19515 "You can use a module style, with each C function mapped to an OCaml "
19516 "function:"
19517 msgstr ""
19518
19519 #. type: verbatim
19520 #: ../ocaml/examples/guestfs-ocaml.pod:38
19521 #, no-wrap
19522 msgid ""
19523 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
19524 "\n"
19525 msgstr ""
19526
19527 #. type: textblock
19528 #: ../ocaml/examples/guestfs-ocaml.pod:40
19529 msgid "becomes:"
19530 msgstr ""
19531
19532 #. type: verbatim
19533 #: ../ocaml/examples/guestfs-ocaml.pod:42
19534 #, no-wrap
19535 msgid ""
19536 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
19537 "\n"
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../ocaml/examples/guestfs-ocaml.pod:44
19542 msgid ""
19543 "Alternately you can use an object-oriented style, calling methods on the "
19544 "class C<Guestfs.guestfs>:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../ocaml/examples/guestfs-ocaml.pod:47
19549 #, no-wrap
19550 msgid ""
19551 " method set_verbose : bool -> unit\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../ocaml/examples/guestfs-ocaml.pod:49
19557 msgid ""
19558 "The object-oriented style is usually briefer, and the minor performance "
19559 "penalty isn't noticable in the general overhead of performing libguestfs "
19560 "functions."
19561 msgstr ""
19562
19563 #. type: textblock
19564 #: ../ocaml/examples/guestfs-ocaml.pod:55
19565 msgid ""
19566 "The handle is closed when it is reaped by the garbage collector.  Because "
19567 "libguestfs handles include a lot of state, it is also possible to close (and "
19568 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
19569 "method."
19570 msgstr ""
19571
19572 #. type: textblock
19573 #: ../ocaml/examples/guestfs-ocaml.pod:62
19574 msgid ""
19575 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
19576 "exception.  This has a single parameter which is the error message (a "
19577 "string)."
19578 msgstr ""
19579
19580 #. type: textblock
19581 #: ../ocaml/examples/guestfs-ocaml.pod:66
19582 msgid ""
19583 "Calling any function/method on a closed handle raises "
19584 "C<Guestfs.Handle_closed>.  The single parameter is the name of the function "
19585 "that you called."
19586 msgstr ""
19587
19588 #. type: textblock
19589 #: ../ocaml/examples/guestfs-ocaml.pod:80
19590 msgid ""
19591 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19592 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
19593 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
19594 msgstr ""
19595
19596 #. type: textblock
19597 #: ../perl/examples/guestfs-perl.pod:5
19598 msgid "guestfs-perl - How to use libguestfs from Perl"
19599 msgstr ""
19600
19601 #. type: verbatim
19602 #: ../perl/examples/guestfs-perl.pod:9
19603 #, no-wrap
19604 msgid ""
19605 " use Sys::Guestfs;\n"
19606 " \n"
19607 msgstr ""
19608
19609 #. type: verbatim
19610 #: ../perl/examples/guestfs-perl.pod:11
19611 #, no-wrap
19612 msgid ""
19613 " my $h = Sys::Guestfs->new ();\n"
19614 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
19615 " $h->launch ();\n"
19616 " $h->mount_options ('', '/dev/sda1', '/');\n"
19617 " $h->touch ('/hello');\n"
19618 " $h->sync ();\n"
19619 "\n"
19620 msgstr ""
19621
19622 #. type: textblock
19623 #: ../perl/examples/guestfs-perl.pod:20
19624 msgid ""
19625 "This manual page documents how to call libguestfs from the Perl programming "
19626 "language.  This page just documents the differences from the C API and gives "
19627 "some examples.  If you are not familiar with using libguestfs, you also need "
19628 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
19629 msgstr ""
19630
19631 #. type: =head2
19632 #: ../perl/examples/guestfs-perl.pod:26
19633 msgid "ERRORS"
19634 msgstr ""
19635
19636 #. type: textblock
19637 #: ../perl/examples/guestfs-perl.pod:28
19638 msgid ""
19639 "Errors from libguestfs functions turn into calls to C<croak> (see "
19640 "L<Carp(3)>)."
19641 msgstr ""
19642
19643 #. type: textblock
19644 #: ../perl/examples/guestfs-perl.pod:41
19645 msgid ""
19646 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, "
19647 "L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
19648 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19649 msgstr ""
19650
19651 #. type: textblock
19652 #: ../python/examples/guestfs-python.pod:5
19653 msgid "guestfs-python - How to use libguestfs from Python"
19654 msgstr ""
19655
19656 #. type: verbatim
19657 #: ../python/examples/guestfs-python.pod:9
19658 #, no-wrap
19659 msgid ""
19660 " import guestfs\n"
19661 " g = guestfs.GuestFS ()\n"
19662 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
19663 " g.launch\n"
19664 "\n"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../python/examples/guestfs-python.pod:16
19669 msgid ""
19670 "This manual page documents how to call libguestfs from the Python "
19671 "programming language.  This page just documents the differences from the C "
19672 "API and gives some examples.  If you are not familiar with using libguestfs, "
19673 "you also need to read L<guestfs(3)>."
19674 msgstr ""
19675
19676 #. type: textblock
19677 #: ../python/examples/guestfs-python.pod:23
19678 msgid ""
19679 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
19680 "single string argument which is the error message."
19681 msgstr ""
19682
19683 #. type: =head2
19684 #: ../python/examples/guestfs-python.pod:26
19685 msgid "MORE DOCUMENTATION"
19686 msgstr ""
19687
19688 #. type: textblock
19689 #: ../python/examples/guestfs-python.pod:28
19690 msgid "Type:"
19691 msgstr ""
19692
19693 #. type: verbatim
19694 #: ../python/examples/guestfs-python.pod:30
19695 #, no-wrap
19696 msgid ""
19697 " $ python\n"
19698 " >>> import guestfs\n"
19699 " >>> help (guestfs)\n"
19700 "\n"
19701 msgstr ""
19702
19703 #. type: textblock
19704 #: ../python/examples/guestfs-python.pod:44
19705 msgid ""
19706 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
19707 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
19708 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
19709 msgstr ""
19710
19711 #. type: textblock
19712 #: ../rescue/virt-rescue.pod:5
19713 msgid "virt-rescue - Run a rescue shell on a virtual machine"
19714 msgstr ""
19715
19716 #. type: verbatim
19717 #: ../rescue/virt-rescue.pod:9
19718 #, no-wrap
19719 msgid ""
19720 " virt-rescue [--options] -d domname\n"
19721 "\n"
19722 msgstr ""
19723
19724 #. type: verbatim
19725 #: ../rescue/virt-rescue.pod:11
19726 #, no-wrap
19727 msgid ""
19728 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
19729 "\n"
19730 msgstr ""
19731
19732 #. type: verbatim
19733 #: ../rescue/virt-rescue.pod:15
19734 #, no-wrap
19735 msgid ""
19736 " virt-rescue [--options] domname\n"
19737 "\n"
19738 msgstr ""
19739
19740 #. type: verbatim
19741 #: ../rescue/virt-rescue.pod:17
19742 #, no-wrap
19743 msgid ""
19744 " virt-rescue [--options] disk.img [disk.img ...]\n"
19745 "\n"
19746 msgstr ""
19747
19748 #. type: textblock
19749 #: ../rescue/virt-rescue.pod:21
19750 msgid ""
19751 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
19752 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
19753 "you from doing this, but doesn't catch all cases."
19754 msgstr ""
19755
19756 #. type: textblock
19757 #: ../rescue/virt-rescue.pod:25
19758 msgid ""
19759 "However if you use the I<--ro> (read only) option, then you can attach a "
19760 "shell to a live virtual machine.  The results might be strange or "
19761 "inconsistent at times but you won't get disk corruption."
19762 msgstr ""
19763
19764 #. type: textblock
19765 #: ../rescue/virt-rescue.pod:31
19766 msgid ""
19767 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
19768 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
19769 "recovery tools which you can use to examine or rescue a virtual machine or "
19770 "disk image."
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../rescue/virt-rescue.pod:36
19775 msgid ""
19776 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
19777 "on disk image(s):"
19778 msgstr ""
19779
19780 #. type: verbatim
19781 #: ../rescue/virt-rescue.pod:39
19782 #, no-wrap
19783 msgid ""
19784 " virt-rescue -d GuestName\n"
19785 "\n"
19786 msgstr ""
19787
19788 #. type: verbatim
19789 #: ../rescue/virt-rescue.pod:41
19790 #, no-wrap
19791 msgid ""
19792 " virt-rescue --ro -a /path/to/disk.img\n"
19793 "\n"
19794 msgstr ""
19795
19796 #. type: verbatim
19797 #: ../rescue/virt-rescue.pod:43
19798 #, no-wrap
19799 msgid ""
19800 " virt-rescue -a /dev/sdc\n"
19801 "\n"
19802 msgstr ""
19803
19804 #. type: textblock
19805 #: ../rescue/virt-rescue.pod:45
19806 msgid "For live VMs you I<must> use the --ro option."
19807 msgstr ""
19808
19809 #. type: textblock
19810 #: ../rescue/virt-rescue.pod:47
19811 msgid ""
19812 "When you run virt-rescue on a virtual machine or disk image, you are placed "
19813 "in an interactive bash shell where you can use many ordinary Linux "
19814 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
19815 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
19816 "is an empty directory called C</sysroot> where you can mount filesystems."
19817 msgstr ""
19818
19819 #. type: textblock
19820 #: ../rescue/virt-rescue.pod:54
19821 msgid ""
19822 "In the example below, we list logical volumes, then choose one to mount "
19823 "under C</sysroot>:"
19824 msgstr ""
19825
19826 #. type: verbatim
19827 #: ../rescue/virt-rescue.pod:57
19828 #, no-wrap
19829 msgid ""
19830 " ><rescue> lvs\n"
19831 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
19832 " lv_root vg_f11x64 -wi-a-   8.83G\n"
19833 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
19834 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
19835 " ><rescue> ls /sysroot\n"
19836 "\n"
19837 msgstr ""
19838
19839 #. type: textblock
19840 #: ../rescue/virt-rescue.pod:64
19841 msgid ""
19842 "If you don't know what filesystems are available on the virtual machine then "
19843 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../rescue/virt-rescue.pod:70
19848 msgid ""
19849 "Virt-rescue can be used on I<any> disk image file or device, not just a "
19850 "virtual machine.  For example you can use it on a blank file if you want to "
19851 "partition that file (although we would recommend using L<guestfish(1)> "
19852 "instead as it is more suitable for this purpose).  You can even use "
19853 "virt-rescue on things like SD cards."
19854 msgstr ""
19855
19856 #. type: textblock
19857 #: ../rescue/virt-rescue.pod:76
19858 msgid ""
19859 "Virt-rescue does not require root.  You only need to run it as root if you "
19860 "need root to open the disk image."
19861 msgstr ""
19862
19863 #. type: textblock
19864 #: ../rescue/virt-rescue.pod:79
19865 msgid ""
19866 "This tool is just designed for quick interactive hacking on a virtual "
19867 "machine.  For more structured access to a virtual machine disk image, you "
19868 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
19869 "make scripted changes to guests, use L<guestfish(1)>."
19870 msgstr ""
19871
19872 #. type: =item
19873 #: ../rescue/virt-rescue.pod:103
19874 msgid "B<--append kernelopts>"
19875 msgstr ""
19876
19877 #. type: textblock
19878 #: ../rescue/virt-rescue.pod:105
19879 msgid "Pass additional options to the rescue kernel."
19880 msgstr ""
19881
19882 #. type: verbatim
19883 #: ../rescue/virt-rescue.pod:135
19884 #, no-wrap
19885 msgid ""
19886 " virt-rescue --format=raw -a disk.img\n"
19887 "\n"
19888 msgstr ""
19889
19890 #. type: verbatim
19891 #: ../rescue/virt-rescue.pod:139
19892 #, no-wrap
19893 msgid ""
19894 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
19895 "\n"
19896 msgstr ""
19897
19898 #. type: =item
19899 #: ../rescue/virt-rescue.pod:148
19900 msgid "B<-m MB>"
19901 msgstr ""
19902
19903 #. type: =item
19904 #: ../rescue/virt-rescue.pod:150
19905 msgid "B<--memsize MB>"
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../rescue/virt-rescue.pod:152
19910 msgid ""
19911 "Change the amount of memory allocated to the rescue system.  The default is "
19912 "set by libguestfs and is small but adequate for running system tools.  The "
19913 "occasional program might need more memory.  The parameter is specified in "
19914 "megabytes."
19915 msgstr ""
19916
19917 #. type: =item
19918 #: ../rescue/virt-rescue.pod:157
19919 msgid "B<--network>"
19920 msgstr ""
19921
19922 #. type: textblock
19923 #: ../rescue/virt-rescue.pod:159
19924 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
19925 msgstr ""
19926
19927 #. type: textblock
19928 #: ../rescue/virt-rescue.pod:165
19929 msgid "Open the image read-only."
19930 msgstr ""
19931
19932 #. type: textblock
19933 #: ../rescue/virt-rescue.pod:175
19934 msgid ""
19935 "Enable SELinux in the rescue appliance.  You should read "
19936 "L<guestfs(3)/SELINUX> before using this option."
19937 msgstr ""
19938
19939 #. type: textblock
19940 #: ../rescue/virt-rescue.pod:194
19941 msgid ""
19942 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
19943 "are done read-write."
19944 msgstr ""
19945
19946 #. type: textblock
19947 #: ../rescue/virt-rescue.pod:207
19948 msgid "Previous versions of virt-rescue allowed you to write either:"
19949 msgstr ""
19950
19951 #. type: verbatim
19952 #: ../rescue/virt-rescue.pod:209
19953 #, no-wrap
19954 msgid ""
19955 " virt-rescue disk.img [disk.img ...]\n"
19956 "\n"
19957 msgstr ""
19958
19959 #. type: verbatim
19960 #: ../rescue/virt-rescue.pod:213
19961 #, no-wrap
19962 msgid ""
19963 " virt-rescue guestname\n"
19964 "\n"
19965 msgstr ""
19966
19967 #. type: =head1
19968 #: ../rescue/virt-rescue.pod:221
19969 msgid "NETWORK"
19970 msgstr ""
19971
19972 #. type: textblock
19973 #: ../rescue/virt-rescue.pod:223
19974 msgid ""
19975 "Adding the I<--network> option enables QEMU user networking in the rescue "
19976 "appliance.  There are some differences between user networking and ordinary "
19977 "networking:"
19978 msgstr ""
19979
19980 #. type: =item
19981 #: ../rescue/virt-rescue.pod:229
19982 msgid "ping does not work"
19983 msgstr ""
19984
19985 #. type: textblock
19986 #: ../rescue/virt-rescue.pod:231
19987 msgid ""
19988 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
19989 "send the ping packets, and because virt-rescue must be able to run as "
19990 "non-root, QEMU user networking is not able to emulate the L<ping(8)> "
19991 "command.  The ping command will appear to resolve addresses but will not be "
19992 "able to send or receive any packets.  This does not mean that the network is "
19993 "not working."
19994 msgstr ""
19995
19996 #. type: =item
19997 #: ../rescue/virt-rescue.pod:238
19998 msgid "cannot receive connections"
19999 msgstr ""
20000
20001 #. type: textblock
20002 #: ../rescue/virt-rescue.pod:240
20003 msgid "QEMU user networking cannot receive incoming connections."
20004 msgstr ""
20005
20006 #. type: =item
20007 #: ../rescue/virt-rescue.pod:242
20008 msgid "making TCP connections"
20009 msgstr ""
20010
20011 #. type: textblock
20012 #: ../rescue/virt-rescue.pod:244
20013 msgid ""
20014 "The virt-rescue appliance needs to be small and so does not include many "
20015 "network tools.  In particular there is no L<telnet(1)> command.  You can "
20016 "make TCP connections from the shell using the magical "
20017 "C</dev/tcp/E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
20018 msgstr ""
20019
20020 #. type: verbatim
20021 #: ../rescue/virt-rescue.pod:249
20022 #, no-wrap
20023 msgid ""
20024 " exec 3<>/dev/tcp/redhat.com/80\n"
20025 " echo \"GET /\" >&3\n"
20026 " cat <&3\n"
20027 "\n"
20028 msgstr ""
20029
20030 #. type: textblock
20031 #: ../rescue/virt-rescue.pod:253
20032 msgid "See L<bash(1)> for more details."
20033 msgstr ""
20034
20035 #. type: textblock
20036 #: ../rescue/virt-rescue.pod:259
20037 msgid ""
20038 "Several environment variables affect virt-rescue.  See "
20039 "L<guestfs(3)/ENVIRONMENT VARIABLES> for the complete list."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../rescue/virt-rescue.pod:286
20044 msgid ""
20045 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20046 "L<http://libguestfs.org/>."
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../resize/virt-resize.pod:5
20051 msgid "virt-resize - Resize a virtual machine disk"
20052 msgstr ""
20053
20054 #. type: verbatim
20055 #: ../resize/virt-resize.pod:9
20056 #, no-wrap
20057 msgid ""
20058 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
20059 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
20060 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
20061 "\n"
20062 msgstr ""
20063
20064 #. type: textblock
20065 #: ../resize/virt-resize.pod:15
20066 msgid ""
20067 "Virt-resize is a tool which can resize a virtual machine disk, making it "
20068 "larger or smaller overall, and resizing or deleting any partitions contained "
20069 "within."
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../resize/virt-resize.pod:19
20074 msgid ""
20075 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
20076 "not> be used on live virtual machines - for consistent results, shut the "
20077 "virtual machine down before resizing it."
20078 msgstr ""
20079
20080 #. type: textblock
20081 #: ../resize/virt-resize.pod:23
20082 msgid ""
20083 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
20084 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
20085 msgstr ""
20086
20087 #. type: =item
20088 #: ../resize/virt-resize.pod:31 ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396 ../src/guestfs.pod:2466
20089 msgid "1."
20090 msgstr ""
20091
20092 #. type: textblock
20093 #: ../resize/virt-resize.pod:33
20094 msgid ""
20095 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
20096 "fill the extra 5GB of space."
20097 msgstr ""
20098
20099 #. type: verbatim
20100 #: ../resize/virt-resize.pod:36
20101 #, no-wrap
20102 msgid ""
20103 " virt-filesystems --long -h --all -a olddisk\n"
20104 " \n"
20105 msgstr ""
20106
20107 #. type: verbatim
20108 #: ../resize/virt-resize.pod:38
20109 #, no-wrap
20110 msgid ""
20111 " truncate -r olddisk newdisk\n"
20112 " truncate -s +5G newdisk\n"
20113 " \n"
20114 msgstr ""
20115
20116 #. type: verbatim
20117 #: ../resize/virt-resize.pod:41
20118 #, no-wrap
20119 msgid ""
20120 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
20121 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
20122 "\n"
20123 msgstr ""
20124
20125 #. type: =item
20126 #: ../resize/virt-resize.pod:44 ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400 ../src/guestfs.pod:2491
20127 msgid "2."
20128 msgstr ""
20129
20130 #. type: textblock
20131 #: ../resize/virt-resize.pod:46
20132 msgid ""
20133 "As above, but make the /boot partition 200MB bigger, while giving the "
20134 "remaining space to /dev/sda2:"
20135 msgstr ""
20136
20137 #. type: verbatim
20138 #: ../resize/virt-resize.pod:49
20139 #, no-wrap
20140 msgid ""
20141 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20142 "   olddisk newdisk\n"
20143 "\n"
20144 msgstr ""
20145
20146 #. type: =item
20147 #: ../resize/virt-resize.pod:52 ../src/guestfs.pod:486 ../src/guestfs.pod:1406
20148 msgid "3."
20149 msgstr ""
20150
20151 #. type: textblock
20152 #: ../resize/virt-resize.pod:54
20153 msgid ""
20154 "As in the first example, but expand a logical volume as the final step.  "
20155 "This is what you would typically use for Linux guests that use LVM:"
20156 msgstr ""
20157
20158 #. type: verbatim
20159 #: ../resize/virt-resize.pod:58
20160 #, no-wrap
20161 msgid ""
20162 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
20163 "   olddisk newdisk\n"
20164 "\n"
20165 msgstr ""
20166
20167 #. type: =item
20168 #: ../resize/virt-resize.pod:61
20169 msgid "4."
20170 msgstr ""
20171
20172 #. type: textblock
20173 #: ../resize/virt-resize.pod:63
20174 msgid ""
20175 "As in the first example, but the output format will be qcow2 instead of a "
20176 "raw disk:"
20177 msgstr ""
20178
20179 #. type: verbatim
20180 #: ../resize/virt-resize.pod:66
20181 #, no-wrap
20182 msgid ""
20183 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
20184 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
20185 "\n"
20186 msgstr ""
20187
20188 #. type: =head1
20189 #: ../resize/virt-resize.pod:71
20190 msgid "DETAILED USAGE"
20191 msgstr ""
20192
20193 #. type: =head2
20194 #: ../resize/virt-resize.pod:73
20195 msgid "EXPANDING A VIRTUAL MACHINE DISK"
20196 msgstr ""
20197
20198 #. type: =item
20199 #: ../resize/virt-resize.pod:77
20200 msgid "1. Shut down the virtual machine"
20201 msgstr ""
20202
20203 #. type: =item
20204 #: ../resize/virt-resize.pod:79
20205 msgid "2. Locate input disk image"
20206 msgstr ""
20207
20208 #. type: textblock
20209 #: ../resize/virt-resize.pod:81
20210 msgid ""
20211 "Locate the input disk image (ie. the file or device on the host containing "
20212 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
20213 "dumpxml> like this to find the disk image name:"
20214 msgstr ""
20215
20216 #. type: verbatim
20217 #: ../resize/virt-resize.pod:85
20218 #, no-wrap
20219 msgid ""
20220 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
20221 " Found 1 nodes:\n"
20222 " -- NODE --\n"
20223 " <source dev=\"/dev/vg/lv_guest\" />\n"
20224 "\n"
20225 msgstr ""
20226
20227 #. type: =item
20228 #: ../resize/virt-resize.pod:90
20229 msgid "3. Look at current sizing"
20230 msgstr ""
20231
20232 #. type: textblock
20233 #: ../resize/virt-resize.pod:92
20234 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
20235 msgstr ""
20236
20237 #. type: verbatim
20238 #: ../resize/virt-resize.pod:95
20239 #, no-wrap
20240 msgid ""
20241 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
20242 " Name       Type       Size  Parent\n"
20243 " /dev/sda1  partition  101M  /dev/sda\n"
20244 " /dev/sda2  partition  7.9G  /dev/sda\n"
20245 " /dev/sda   device     8.0G  -\n"
20246 "\n"
20247 msgstr ""
20248
20249 #. type: textblock
20250 #: ../resize/virt-resize.pod:101
20251 msgid ""
20252 "(This example is a virtual machine with an 8 GB disk which we would like to "
20253 "expand up to 10 GB)."
20254 msgstr ""
20255
20256 #. type: =item
20257 #: ../resize/virt-resize.pod:104
20258 msgid "4. Create output disk"
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../resize/virt-resize.pod:106
20263 msgid ""
20264 "Virt-resize cannot do in-place disk modifications.  You have to have space "
20265 "to store the resized output disk."
20266 msgstr ""
20267
20268 #. type: textblock
20269 #: ../resize/virt-resize.pod:109
20270 msgid "To store the resized disk image in a file, create a file of a suitable size:"
20271 msgstr ""
20272
20273 #. type: verbatim
20274 #: ../resize/virt-resize.pod:112
20275 #, no-wrap
20276 msgid ""
20277 " # rm -f outdisk\n"
20278 " # truncate -s 10G outdisk\n"
20279 "\n"
20280 msgstr ""
20281
20282 #. type: textblock
20283 #: ../resize/virt-resize.pod:115
20284 msgid "Or use L<lvcreate(1)> to create a logical volume:"
20285 msgstr ""
20286
20287 #. type: verbatim
20288 #: ../resize/virt-resize.pod:117
20289 #, no-wrap
20290 msgid ""
20291 " # lvcreate -L 10G -n lv_name vg_name\n"
20292 "\n"
20293 msgstr ""
20294
20295 #. type: textblock
20296 #: ../resize/virt-resize.pod:119
20297 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
20298 msgstr ""
20299
20300 #. type: verbatim
20301 #: ../resize/virt-resize.pod:121
20302 #, no-wrap
20303 msgid ""
20304 " # virsh pool-list\n"
20305 " # virsh vol-create-as poolname newvol 10G\n"
20306 "\n"
20307 msgstr ""
20308
20309 #. type: =item
20310 #: ../resize/virt-resize.pod:124
20311 msgid "5. Resize"
20312 msgstr ""
20313
20314 #. type: textblock
20315 #: ../resize/virt-resize.pod:126
20316 msgid ""
20317 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
20318 "file) and the output disk.  The output disk is the one created in the "
20319 "previous step."
20320 msgstr ""
20321
20322 #. type: verbatim
20323 #: ../resize/virt-resize.pod:130
20324 #, no-wrap
20325 msgid ""
20326 " # virt-resize indisk outdisk\n"
20327 "\n"
20328 msgstr ""
20329
20330 #. type: textblock
20331 #: ../resize/virt-resize.pod:132
20332 msgid ""
20333 "This command just copies disk image C<indisk> to disk image C<outdisk> "
20334 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
20335 "larger, then an extra, empty partition is created at the end of the disk "
20336 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
20337 "error."
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../resize/virt-resize.pod:138
20342 msgid ""
20343 "More realistically you'd want to expand existing partitions in the disk "
20344 "image by passing extra options (for the full list see the L</OPTIONS> "
20345 "section below)."
20346 msgstr ""
20347
20348 #. type: textblock
20349 #: ../resize/virt-resize.pod:142
20350 msgid ""
20351 "L</--expand> is the most useful option.  It expands the named partition "
20352 "within the disk to fill any extra space:"
20353 msgstr ""
20354
20355 #. type: verbatim
20356 #: ../resize/virt-resize.pod:145
20357 #, no-wrap
20358 msgid ""
20359 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
20360 "\n"
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../resize/virt-resize.pod:147
20365 msgid ""
20366 "(In this case, an extra partition is I<not> created at the end of the disk, "
20367 "because there will be no unused space)."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../resize/virt-resize.pod:150
20372 msgid ""
20373 "L</--resize> is the other commonly used option.  The following would "
20374 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
20375 "rest of the available space:"
20376 msgstr ""
20377
20378 #. type: verbatim
20379 #: ../resize/virt-resize.pod:154
20380 #, no-wrap
20381 msgid ""
20382 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
20383 "     indisk outdisk\n"
20384 "\n"
20385 msgstr ""
20386
20387 #. type: textblock
20388 #: ../resize/virt-resize.pod:157
20389 msgid ""
20390 "If the expanded partition in the image contains a filesystem or LVM PV, then "
20391 "if virt-resize knows how, it will resize the contents, the equivalent of "
20392 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
20393 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
20394 "filesystems, so you would have to online resize them after booting the "
20395 "guest."
20396 msgstr ""
20397
20398 #. type: textblock
20399 #: ../resize/virt-resize.pod:164
20400 msgid "Other options are covered below."
20401 msgstr ""
20402
20403 #. type: =item
20404 #: ../resize/virt-resize.pod:166
20405 msgid "6. Test"
20406 msgstr ""
20407
20408 #. type: textblock
20409 #: ../resize/virt-resize.pod:168
20410 msgid "Thoroughly test the new disk image I<before> discarding the old one."
20411 msgstr ""
20412
20413 #. type: textblock
20414 #: ../resize/virt-resize.pod:170
20415 msgid "If you are using libvirt, edit the XML to point at the new disk:"
20416 msgstr ""
20417
20418 #. type: verbatim
20419 #: ../resize/virt-resize.pod:172
20420 #, no-wrap
20421 msgid ""
20422 " # virsh edit guestname\n"
20423 "\n"
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../resize/virt-resize.pod:174
20428 msgid ""
20429 "Change E<lt>source ...E<gt>, see "
20430 "L<http://libvirt.org/formatdomain.html#elementsDisks>"
20431 msgstr ""
20432
20433 #. type: textblock
20434 #: ../resize/virt-resize.pod:177
20435 msgid "Then start up the domain with the new, resized disk:"
20436 msgstr ""
20437
20438 #. type: verbatim
20439 #: ../resize/virt-resize.pod:179
20440 #, no-wrap
20441 msgid ""
20442 " # virsh start guestname\n"
20443 "\n"
20444 msgstr ""
20445
20446 #. type: textblock
20447 #: ../resize/virt-resize.pod:181
20448 msgid ""
20449 "and check that it still works.  See also the L</NOTES> section below for "
20450 "additional information."
20451 msgstr ""
20452
20453 #. type: =item
20454 #: ../resize/virt-resize.pod:184
20455 msgid "7. Resize LVs etc inside the guest"
20456 msgstr ""
20457
20458 #. type: textblock
20459 #: ../resize/virt-resize.pod:186
20460 msgid "(This can also be done offline using L<guestfish(1)>)"
20461 msgstr ""
20462
20463 #. type: textblock
20464 #: ../resize/virt-resize.pod:188
20465 msgid ""
20466 "Once the guest has booted you should see the new space available, at least "
20467 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
20468 "may need to resize LVs inside PVs, and also resize filesystem types that "
20469 "virt-resize does not know how to expand."
20470 msgstr ""
20471
20472 #. type: =head2
20473 #: ../resize/virt-resize.pod:195
20474 msgid "SHRINKING A VIRTUAL MACHINE DISK"
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../resize/virt-resize.pod:197
20479 msgid ""
20480 "Shrinking is somewhat more complex than expanding, and only an overview is "
20481 "given here."
20482 msgstr ""
20483
20484 #. type: textblock
20485 #: ../resize/virt-resize.pod:200
20486 msgid ""
20487 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
20488 "filesystems).  The user has to shrink content before passing the disk image "
20489 "to virt-resize, and virt-resize will check that the content has been shrunk "
20490 "properly."
20491 msgstr ""
20492
20493 #. type: textblock
20494 #: ../resize/virt-resize.pod:205
20495 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
20496 msgstr ""
20497
20498 #. type: textblock
20499 #: ../resize/virt-resize.pod:207
20500 msgid ""
20501 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
20502 "steps 3 and 4 above to allocate a new disk image."
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../resize/virt-resize.pod:210
20507 msgid "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
20508 msgstr ""
20509
20510 #. type: =head2
20511 #: ../resize/virt-resize.pod:213
20512 msgid "IGNORING OR DELETING PARTITIONS"
20513 msgstr ""
20514
20515 #. type: textblock
20516 #: ../resize/virt-resize.pod:215
20517 msgid ""
20518 "virt-resize also gives a convenient way to ignore or delete partitions when "
20519 "copying from the input disk to the output disk.  Ignoring a partition speeds "
20520 "up the copy where you don't care about the existing contents of a "
20521 "partition.  Deleting a partition removes it completely, but note that it "
20522 "also renumbers any partitions after the one which is deleted, which can "
20523 "leave some guests unbootable."
20524 msgstr ""
20525
20526 #. type: =head2
20527 #: ../resize/virt-resize.pod:222
20528 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../resize/virt-resize.pod:224
20533 msgid ""
20534 "If the input disk is in qcow2 format, then you may prefer that the output is "
20535 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
20536 "the fly.  The output format is simply determined by the format of the empty "
20537 "output container that you provide.  Thus to create qcow2 output, use:"
20538 msgstr ""
20539
20540 #. type: verbatim
20541 #: ../resize/virt-resize.pod:230
20542 #, no-wrap
20543 msgid ""
20544 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
20545 "\n"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../resize/virt-resize.pod:232
20550 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
20551 msgstr ""
20552
20553 #. type: textblock
20554 #: ../resize/virt-resize.pod:234
20555 msgid "Similarly, to get non-sparse raw output use:"
20556 msgstr ""
20557
20558 #. type: verbatim
20559 #: ../resize/virt-resize.pod:236
20560 #, no-wrap
20561 msgid ""
20562 " fallocate -l size outdisk\n"
20563 "\n"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../resize/virt-resize.pod:238
20568 msgid ""
20569 "(on older systems that don't have the L<fallocate(1)> command use C<dd "
20570 "if=/dev/zero of=outdisk bs=1M count=..>)"
20571 msgstr ""
20572
20573 #. type: textblock
20574 #: ../resize/virt-resize.pod:247
20575 msgid "Display help."
20576 msgstr ""
20577
20578 #. type: =item
20579 #: ../resize/virt-resize.pod:249
20580 msgid "B<-d>"
20581 msgstr ""
20582
20583 #. type: =item
20584 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177 ../tools/virt-win-reg.pl:120
20585 msgid "B<--debug>"
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
20590 msgid "Enable debugging messages."
20591 msgstr ""
20592
20593 #. type: =item
20594 #: ../resize/virt-resize.pod:255
20595 msgid "B<--delete part>"
20596 msgstr ""
20597
20598 #. type: textblock
20599 #: ../resize/virt-resize.pod:257
20600 msgid ""
20601 "Delete the named partition.  It would be more accurate to describe this as "
20602 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
20603 "the original disk image is left intact."
20604 msgstr ""
20605
20606 #. type: textblock
20607 #: ../resize/virt-resize.pod:261
20608 msgid ""
20609 "Note that when you delete a partition, then anything contained in the "
20610 "partition is also deleted.  Furthermore, this causes any partitions that "
20611 "come after to be I<renumbered>, which can easily make your guest unbootable."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327 ../resize/virt-resize.pod:448
20616 msgid "You can give this option multiple times."
20617 msgstr ""
20618
20619 #. type: =item
20620 #: ../resize/virt-resize.pod:268
20621 msgid "B<--expand part>"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../resize/virt-resize.pod:270
20626 msgid ""
20627 "Expand the named partition so it uses up all extra space (space left over "
20628 "after any other resize changes that you request have been done)."
20629 msgstr ""
20630
20631 #. type: textblock
20632 #: ../resize/virt-resize.pod:273
20633 msgid ""
20634 "If virt-resize knows how, it will expand the direct content of the "
20635 "partition.  For example, if the partition is an LVM PV, it will expand the "
20636 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
20637 "content it doesn't know about alone."
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../resize/virt-resize.pod:278
20642 msgid "Currently virt-resize can resize:"
20643 msgstr ""
20644
20645 #. type: textblock
20646 #: ../resize/virt-resize.pod:284
20647 msgid "ext2, ext3 and ext4 filesystems."
20648 msgstr ""
20649
20650 #. type: textblock
20651 #: ../resize/virt-resize.pod:288
20652 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
20653 msgstr ""
20654
20655 #. type: textblock
20656 #: ../resize/virt-resize.pod:290
20657 msgid ""
20658 "The filesystem must have been shut down consistently last time it was used.  "
20659 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
20660 "consistency check, so at the first boot after resizing Windows will check "
20661 "the disk."
20662 msgstr ""
20663
20664 #. type: textblock
20665 #: ../resize/virt-resize.pod:297
20666 msgid ""
20667 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
20668 "inside the PV, but see the I<--LV-expand> option.  The user could also "
20669 "resize LVs as desired after boot."
20670 msgstr ""
20671
20672 #. type: textblock
20673 #: ../resize/virt-resize.pod:303
20674 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
20675 msgstr ""
20676
20677 #. type: textblock
20678 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:476
20679 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
20680 msgstr ""
20681
20682 #. type: =item
20683 #: ../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
20684 msgid "B<--format> raw"
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../resize/virt-resize.pod:311
20689 msgid ""
20690 "Specify the format of the input disk image.  If this flag is not given then "
20691 "it is auto-detected from the image itself."
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../resize/virt-resize.pod:317
20696 msgid ""
20697 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
20698 "AND NON-SPARSE RAW FORMATS>."
20699 msgstr ""
20700
20701 #. type: =item
20702 #: ../resize/virt-resize.pod:320
20703 msgid "B<--ignore part>"
20704 msgstr ""
20705
20706 #. type: textblock
20707 #: ../resize/virt-resize.pod:322
20708 msgid ""
20709 "Ignore the named partition.  Effectively this means the partition is "
20710 "allocated on the destination disk, but the content is not copied across from "
20711 "the source disk.  The content of the partition will be blank (all zero "
20712 "bytes)."
20713 msgstr ""
20714
20715 #. type: =item
20716 #: ../resize/virt-resize.pod:329
20717 msgid "B<--LV-expand logvol>"
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../resize/virt-resize.pod:331
20722 msgid ""
20723 "This takes the logical volume and, as a final step, expands it to fill all "
20724 "the space available in its volume group.  A typical usage, assuming a Linux "
20725 "guest with a single PV C</dev/sda2> and a root device called "
20726 "C</dev/vg_guest/lv_root> would be:"
20727 msgstr ""
20728
20729 #. type: verbatim
20730 #: ../resize/virt-resize.pod:336
20731 #, no-wrap
20732 msgid ""
20733 " virt-resize indisk outdisk \\\n"
20734 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
20735 "\n"
20736 msgstr ""
20737
20738 #. type: textblock
20739 #: ../resize/virt-resize.pod:339
20740 msgid ""
20741 "This would first expand the partition (and PV), and then expand the root "
20742 "device to fill the extra space in the PV."
20743 msgstr ""
20744
20745 #. type: textblock
20746 #: ../resize/virt-resize.pod:342
20747 msgid ""
20748 "The contents of the LV are also resized if virt-resize knows how to do "
20749 "that.  You can stop virt-resize from trying to expand the content by using "
20750 "the option I<--no-expand-content>."
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../resize/virt-resize.pod:346
20755 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
20756 msgstr ""
20757
20758 #. type: textblock
20759 #: ../resize/virt-resize.pod:348
20760 msgid ""
20761 "You can give this option multiple times, I<but> it doesn't make sense to do "
20762 "this unless the logical volumes you specify are all in different volume "
20763 "groups."
20764 msgstr ""
20765
20766 #. type: =item
20767 #: ../resize/virt-resize.pod:354
20768 msgid "B<--dryrun>"
20769 msgstr ""
20770
20771 #. type: textblock
20772 #: ../resize/virt-resize.pod:356
20773 msgid "Print a summary of what would be done, but don't do anything."
20774 msgstr ""
20775
20776 #. type: =item
20777 #: ../resize/virt-resize.pod:358
20778 msgid "B<--no-copy-boot-loader>"
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../resize/virt-resize.pod:360
20783 msgid ""
20784 "By default, virt-resize copies over some sectors at the start of the disk "
20785 "(up to the beginning of the first partition).  Commonly these sectors "
20786 "contain the Master Boot Record (MBR) and the boot loader, and are required "
20787 "in order for the guest to boot correctly."
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../resize/virt-resize.pod:365
20792 msgid ""
20793 "If you specify this flag, then this initial copy is not done.  You may need "
20794 "to reinstall the boot loader in this case."
20795 msgstr ""
20796
20797 #. type: =item
20798 #: ../resize/virt-resize.pod:368
20799 msgid "B<--no-extra-partition>"
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../resize/virt-resize.pod:370
20804 msgid ""
20805 "By default, virt-resize creates an extra partition if there is any extra, "
20806 "unused space after all resizing has happened.  Use this option to prevent "
20807 "the extra partition from being created.  If you do this then the extra space "
20808 "will be inaccessible until you run fdisk, parted, or some other partitioning "
20809 "tool in the guest."
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../resize/virt-resize.pod:376
20814 msgid ""
20815 "Note that if the surplus space is smaller than 10 MB, no extra partition "
20816 "will be created."
20817 msgstr ""
20818
20819 #. type: =item
20820 #: ../resize/virt-resize.pod:379
20821 msgid "B<--no-expand-content>"
20822 msgstr ""
20823
20824 #. type: textblock
20825 #: ../resize/virt-resize.pod:381
20826 msgid ""
20827 "By default, virt-resize will try to expand the direct contents of "
20828 "partitions, if it knows how (see I<--expand> option above)."
20829 msgstr ""
20830
20831 #. type: textblock
20832 #: ../resize/virt-resize.pod:384
20833 msgid ""
20834 "If you give the I<--no-expand-content> option then virt-resize will not "
20835 "attempt this."
20836 msgstr ""
20837
20838 #. type: =item
20839 #: ../resize/virt-resize.pod:387
20840 msgid "B<--ntfsresize-force>"
20841 msgstr ""
20842
20843 #. type: textblock
20844 #: ../resize/virt-resize.pod:389
20845 msgid ""
20846 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
20847 "the NTFS disk is marked as needing a consistency check.  You have to use "
20848 "this option if you want to resize a Windows guest multiple times without "
20849 "booting into Windows between each resize."
20850 msgstr ""
20851
20852 #. type: =item
20853 #: ../resize/virt-resize.pod:395
20854 msgid "B<--output-format> raw"
20855 msgstr ""
20856
20857 #. type: textblock
20858 #: ../resize/virt-resize.pod:397
20859 msgid ""
20860 "Specify the format of the output disk image.  If this flag is not given then "
20861 "it is auto-detected from the image itself."
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../resize/virt-resize.pod:403
20866 msgid ""
20867 "Note that this option I<does not create> the output format.  This option "
20868 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
20869 "need to create the output disk with the right format.  See L</QCOW2 AND "
20870 "NON-SPARSE RAW FORMATS>."
20871 msgstr ""
20872
20873 #. type: =item
20874 #: ../resize/virt-resize.pod:408
20875 msgid "B<-q>"
20876 msgstr ""
20877
20878 #. type: =item
20879 #: ../resize/virt-resize.pod:410
20880 msgid "B<--quiet>"
20881 msgstr ""
20882
20883 #. type: textblock
20884 #: ../resize/virt-resize.pod:412
20885 msgid "Don't print the summary."
20886 msgstr ""
20887
20888 #. type: =item
20889 #: ../resize/virt-resize.pod:414
20890 msgid "B<--resize part=size>"
20891 msgstr ""
20892
20893 #. type: textblock
20894 #: ../resize/virt-resize.pod:416
20895 msgid ""
20896 "Resize the named partition (expanding or shrinking it) so that it has the "
20897 "given size."
20898 msgstr ""
20899
20900 #. type: textblock
20901 #: ../resize/virt-resize.pod:419
20902 msgid ""
20903 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
20904 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
20905 "size; or as a relative number or percentage.  For example:"
20906 msgstr ""
20907
20908 #. type: verbatim
20909 #: ../resize/virt-resize.pod:425
20910 #, no-wrap
20911 msgid ""
20912 " --resize /dev/sda2=10G\n"
20913 "\n"
20914 msgstr ""
20915
20916 #. type: verbatim
20917 #: ../resize/virt-resize.pod:427
20918 #, no-wrap
20919 msgid ""
20920 " --resize /dev/sda4=90%\n"
20921 "\n"
20922 msgstr ""
20923
20924 #. type: verbatim
20925 #: ../resize/virt-resize.pod:429
20926 #, no-wrap
20927 msgid ""
20928 " --resize /dev/sda2=+1G\n"
20929 "\n"
20930 msgstr ""
20931
20932 #. type: verbatim
20933 #: ../resize/virt-resize.pod:431
20934 #, no-wrap
20935 msgid ""
20936 " --resize /dev/sda2=-200M\n"
20937 "\n"
20938 msgstr ""
20939
20940 #. type: verbatim
20941 #: ../resize/virt-resize.pod:433
20942 #, no-wrap
20943 msgid ""
20944 " --resize /dev/sda1=+128K\n"
20945 "\n"
20946 msgstr ""
20947
20948 #. type: verbatim
20949 #: ../resize/virt-resize.pod:435
20950 #, no-wrap
20951 msgid ""
20952 " --resize /dev/sda1=+10%\n"
20953 "\n"
20954 msgstr ""
20955
20956 #. type: verbatim
20957 #: ../resize/virt-resize.pod:437
20958 #, no-wrap
20959 msgid ""
20960 " --resize /dev/sda1=-10%\n"
20961 "\n"
20962 msgstr ""
20963
20964 #. type: textblock
20965 #: ../resize/virt-resize.pod:439
20966 msgid ""
20967 "You can increase the size of any partition.  Virt-resize will expand the "
20968 "direct content of the partition if it knows how (see I<--expand> below)."
20969 msgstr ""
20970
20971 #. type: textblock
20972 #: ../resize/virt-resize.pod:443
20973 msgid ""
20974 "You can only I<decrease> the size of partitions that contain filesystems or "
20975 "PVs which have already been shrunk.  Virt-resize will check this has been "
20976 "done before proceeding, or else will print an error (see also "
20977 "I<--resize-force>)."
20978 msgstr ""
20979
20980 #. type: =item
20981 #: ../resize/virt-resize.pod:450
20982 msgid "B<--resize-force part=size>"
20983 msgstr ""
20984
20985 #. type: textblock
20986 #: ../resize/virt-resize.pod:452
20987 msgid ""
20988 "This is the same as I<--resize> except that it will let you decrease the "
20989 "size of any partition.  Generally this means you will lose any data which "
20990 "was at the end of the partition you shrink, but you may not care about that "
20991 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
20992 "as a swap partition)."
20993 msgstr ""
20994
20995 #. type: textblock
20996 #: ../resize/virt-resize.pod:458
20997 msgid "See also the I<--ignore> option."
20998 msgstr ""
20999
21000 #. type: =item
21001 #: ../resize/virt-resize.pod:460
21002 msgid "B<--shrink part>"
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../resize/virt-resize.pod:462
21007 msgid ""
21008 "Shrink the named partition until the overall disk image fits in the "
21009 "destination.  The named partition B<must> contain a filesystem or PV which "
21010 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
21011 "online tools).  Virt-resize will check this and give an error if it has not "
21012 "been done."
21013 msgstr ""
21014
21015 #. type: textblock
21016 #: ../resize/virt-resize.pod:468
21017 msgid ""
21018 "The amount by which the overall disk must be shrunk (after carrying out all "
21019 "other operations requested by the user) is called the \"deficit\".  For "
21020 "example, a straight copy (assume no other operations)  from a 5GB disk image "
21021 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
21022 "would give an error unless the user specified a partition to shrink and that "
21023 "partition had more than a gigabyte of free space."
21024 msgstr ""
21025
21026 #. type: =head2
21027 #: ../resize/virt-resize.pod:488
21028 msgid "\"Partition 1 does not end on cylinder boundary.\""
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../resize/virt-resize.pod:490
21033 msgid ""
21034 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
21035 "means the partitions will not be aligned to the ancient CHS geometry.  "
21036 "However CHS geometry is meaningless for disks manufactured since the early "
21037 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
21038 "cylinders is not required by any modern operating system."
21039 msgstr ""
21040
21041 #. type: =head2
21042 #: ../resize/virt-resize.pod:497
21043 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../resize/virt-resize.pod:499
21048 msgid ""
21049 "In Windows Vista and later versions, Microsoft switched to using a separate "
21050 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
21051 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
21052 "the boot partition.  Doing so seems to break the guest completely.  However "
21053 "expanding the second partition (ie. C: drive) should work."
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../resize/virt-resize.pod:506
21058 msgid ""
21059 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
21060 "NTFS partitions have been expanded.  This is just a safety check and (unless "
21061 "it find errors) is nothing to worry about."
21062 msgstr ""
21063
21064 #. type: =head2
21065 #: ../resize/virt-resize.pod:510
21066 msgid "GUEST BOOT STUCK AT \"GRUB\""
21067 msgstr ""
21068
21069 #. type: textblock
21070 #: ../resize/virt-resize.pod:512
21071 msgid ""
21072 "If a Linux guest does not boot after resizing, and the boot is stuck after "
21073 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
21074 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
21075 "although we think is to do with partition alignment."
21076 msgstr ""
21077
21078 #. type: verbatim
21079 #: ../resize/virt-resize.pod:517
21080 #, no-wrap
21081 msgid ""
21082 " guestfish -i -a newdisk\n"
21083 " ><fs> cat /boot/grub/device.map\n"
21084 " # check the contents of this file are sensible or\n"
21085 " # edit the file if necessary\n"
21086 " ><fs> grub-install / /dev/vda\n"
21087 " ><fs> exit\n"
21088 "\n"
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../resize/virt-resize.pod:524
21093 msgid ""
21094 "For more flexible guest reconfiguration, including if you need to specify "
21095 "other parameters to grub-install, use L<virt-rescue(1)>."
21096 msgstr ""
21097
21098 #. type: =head1
21099 #: ../resize/virt-resize.pod:527
21100 msgid "ALTERNATIVE TOOLS"
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../resize/virt-resize.pod:529
21105 msgid ""
21106 "There are several proprietary tools for resizing partitions.  We won't "
21107 "mention any here."
21108 msgstr ""
21109
21110 #. type: textblock
21111 #: ../resize/virt-resize.pod:532
21112 msgid ""
21113 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
21114 "operations on disk images.  They can resize and move partitions, but I don't "
21115 "think they can do anything with the contents, and they certainly don't "
21116 "understand LVM."
21117 msgstr ""
21118
21119 #. type: textblock
21120 #: ../resize/virt-resize.pod:537
21121 msgid ""
21122 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
21123 "but at a much lower level.  You will probably end up hand-calculating sector "
21124 "offsets, which is something that virt-resize was designed to avoid.  If you "
21125 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
21126 "I<--debug> flag."
21127 msgstr ""
21128
21129 #. type: textblock
21130 #: ../resize/virt-resize.pod:552
21131 msgid ""
21132 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, "
21133 "L<lvm(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, "
21134 "L<ntfsresize(8)>, L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, "
21135 "L<fallocate(1)>, L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, "
21136 "L<http://libguestfs.org/>."
21137 msgstr ""
21138
21139 #. type: textblock
21140 #: ../ruby/examples/guestfs-ruby.pod:5
21141 msgid "guestfs-ruby - How to use libguestfs from Ruby"
21142 msgstr ""
21143
21144 #. type: verbatim
21145 #: ../ruby/examples/guestfs-ruby.pod:9
21146 #, no-wrap
21147 msgid ""
21148 " require 'guestfs'\n"
21149 " g = Guestfs::Guestfs.new()\n"
21150 " g.add_drive_opts(\"disk.img\",\n"
21151 "                  :readonly => 1, :format => \"raw\")\n"
21152 " g.launch()\n"
21153 "\n"
21154 msgstr ""
21155
21156 #. type: textblock
21157 #: ../ruby/examples/guestfs-ruby.pod:17
21158 msgid ""
21159 "This manual page documents how to call libguestfs from the Ruby programming "
21160 "language.  This page just documents the differences from the C API and gives "
21161 "some examples.  If you are not familiar with using libguestfs, you also need "
21162 "to read L<guestfs(3)>."
21163 msgstr ""
21164
21165 #. type: textblock
21166 #: ../ruby/examples/guestfs-ruby.pod:24
21167 msgid ""
21168 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
21169 "This has a single parameter which is the error message (a string)."
21170 msgstr ""
21171
21172 #. type: textblock
21173 #: ../ruby/examples/guestfs-ruby.pod:38
21174 msgid ""
21175 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
21176 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
21177 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
21178 msgstr ""
21179
21180 #. type: =head2
21181 #: ../src/guestfs-actions.pod:1
21182 msgid "guestfs_add_cdrom"
21183 msgstr ""
21184
21185 #. type: verbatim
21186 #: ../src/guestfs-actions.pod:3
21187 #, no-wrap
21188 msgid ""
21189 " int\n"
21190 " guestfs_add_cdrom (guestfs_h *g,\n"
21191 "                    const char *filename);\n"
21192 "\n"
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249 ../src/guestfs-actions.pod:270
21197 msgid ""
21198 "I<This function is deprecated.> In new code, use the "
21199 "L</guestfs_add_drive_opts> call instead."
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../src/guestfs-actions.pod:24
21204 msgid ""
21205 "This call checks for the existence of C<filename>.  This stops you from "
21206 "specifying other types of drive which are supported by qemu such as C<nbd:> "
21207 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
21208 "instead."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../src/guestfs-actions.pod:31
21213 msgid ""
21214 "If you just want to add an ISO file (often you use this as an efficient way "
21215 "to transfer large files into the guest), then you should probably use "
21216 "C<guestfs_add_drive_ro> instead."
21217 msgstr ""
21218
21219 #. type: textblock
21220 #: ../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:422 ../src/guestfs-actions.pod:442 ../src/guestfs-actions.pod:456 ../src/guestfs-actions.pod:501 ../src/guestfs-actions.pod:529 ../src/guestfs-actions.pod:547 ../src/guestfs-actions.pod:614 ../src/guestfs-actions.pod:647 ../src/guestfs-actions.pod:661 ../src/guestfs-actions.pod:676 ../src/guestfs-actions.pod:775 ../src/guestfs-actions.pod:793 ../src/guestfs-actions.pod:807 ../src/guestfs-actions.pod:821 ../src/guestfs-actions.pod:858 ../src/guestfs-actions.pod:1041 ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1079 ../src/guestfs-actions.pod:1163 ../src/guestfs-actions.pod:1181 ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1214 ../src/guestfs-actions.pod:1234 ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:1335 ../src/guestfs-actions.pod:1360 ../src/guestfs-actions.pod:1402 ../src/guestfs-actions.pod:1515 ../src/guestfs-actions.pod:1542 ../src/guestfs-actions.pod:1757 ../src/guestfs-actions.pod:1779 ../src/guestfs-actions.pod:1866 ../src/guestfs-actions.pod:2341 ../src/guestfs-actions.pod:2485 ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:2581 ../src/guestfs-actions.pod:3621 ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3661 ../src/guestfs-actions.pod:3850 ../src/guestfs-actions.pod:3864 ../src/guestfs-actions.pod:3877 ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3906 ../src/guestfs-actions.pod:3942 ../src/guestfs-actions.pod:4014 ../src/guestfs-actions.pod:4034 ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4097 ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4151 ../src/guestfs-actions.pod:4170 ../src/guestfs-actions.pod:4205 ../src/guestfs-actions.pod:4217 ../src/guestfs-actions.pod:4253 ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4297 ../src/guestfs-actions.pod:4314 ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4427 ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4491 ../src/guestfs-actions.pod:4509 ../src/guestfs-actions.pod:4527 ../src/guestfs-actions.pod:4543 ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4571 ../src/guestfs-actions.pod:4588 ../src/guestfs-actions.pod:4603 ../src/guestfs-actions.pod:4630 ../src/guestfs-actions.pod:4693 ../src/guestfs-actions.pod:4766 ../src/guestfs-actions.pod:4797 ../src/guestfs-actions.pod:4816 ../src/guestfs-actions.pod:4835 ../src/guestfs-actions.pod:4847 ../src/guestfs-actions.pod:4864 ../src/guestfs-actions.pod:4877 ../src/guestfs-actions.pod:4892 ../src/guestfs-actions.pod:4907 ../src/guestfs-actions.pod:4949 ../src/guestfs-actions.pod:4975 ../src/guestfs-actions.pod:5014 ../src/guestfs-actions.pod:5034 ../src/guestfs-actions.pod:5048 ../src/guestfs-actions.pod:5065 ../src/guestfs-actions.pod:5114 ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5214 ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5285 ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5320 ../src/guestfs-actions.pod:5460 ../src/guestfs-actions.pod:5517 ../src/guestfs-actions.pod:5539 ../src/guestfs-actions.pod:5557 ../src/guestfs-actions.pod:5589 ../src/guestfs-actions.pod:5655 ../src/guestfs-actions.pod:5672 ../src/guestfs-actions.pod:5685 ../src/guestfs-actions.pod:5699 ../src/guestfs-actions.pod:5988 ../src/guestfs-actions.pod:6007 ../src/guestfs-actions.pod:6026 ../src/guestfs-actions.pod:6040 ../src/guestfs-actions.pod:6052 ../src/guestfs-actions.pod:6066 ../src/guestfs-actions.pod:6078 ../src/guestfs-actions.pod:6092 ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6129 ../src/guestfs-actions.pod:6148 ../src/guestfs-actions.pod:6167 ../src/guestfs-actions.pod:6197 ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6238 ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6296 ../src/guestfs-actions.pod:6315 ../src/guestfs-actions.pod:6332 ../src/guestfs-actions.pod:6351 ../src/guestfs-actions.pod:6379 ../src/guestfs-actions.pod:6403 ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6446 ../src/guestfs-actions.pod:6465 ../src/guestfs-actions.pod:6480 ../src/guestfs-actions.pod:6499 ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6573 ../src/guestfs-actions.pod:6606 ../src/guestfs-actions.pod:6721 ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:6854 ../src/guestfs-actions.pod:6867 ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:6902 ../src/guestfs-actions.pod:6915 ../src/guestfs-actions.pod:6928 ../src/guestfs-actions.pod:6941 ../src/guestfs-actions.pod:6956 ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7064 ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7094 ../src/guestfs-actions.pod:7114 ../src/guestfs-actions.pod:7150 ../src/guestfs-actions.pod:7164 ../src/guestfs-actions.pod:7205 ../src/guestfs-actions.pod:7218 ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7270 ../src/guestfs-actions.pod:7306 ../src/guestfs-actions.pod:7422 ../src/guestfs-actions.pod:7437 ../src/guestfs-actions.pod:7451 ../src/guestfs-actions.pod:7506 ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7564 ../src/guestfs-actions.pod:7604 ../src/guestfs-actions.pod:7660 ../src/guestfs-actions.pod:7680 ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7773 ../src/guestfs-actions.pod:7792 ../src/guestfs-actions.pod:7821
21221 msgid "This function returns 0 on success or -1 on error."
21222 msgstr ""
21223
21224 #. type: textblock
21225 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142 ../src/guestfs-actions.pod:1165 ../src/guestfs-actions.pod:1980 ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2192 ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:4951 ../src/guestfs-actions.pod:6217 ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6467 ../src/guestfs-actions.pod:6958 ../src/guestfs-actions.pod:7083 ../src/guestfs-actions.pod:7606
21226 msgid "(Added in 0.3)"
21227 msgstr ""
21228
21229 #. type: =head2
21230 #: ../src/guestfs-actions.pod:41
21231 msgid "guestfs_add_domain"
21232 msgstr ""
21233
21234 #. type: verbatim
21235 #: ../src/guestfs-actions.pod:43
21236 #, no-wrap
21237 msgid ""
21238 " int\n"
21239 " guestfs_add_domain (guestfs_h *g,\n"
21240 "                     const char *dom,\n"
21241 "                     ...);\n"
21242 "\n"
21243 msgstr ""
21244
21245 #. type: textblock
21246 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151 ../src/guestfs-actions.pod:832 ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:4642 ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:5178
21247 msgid ""
21248 "You may supply a list of optional arguments to this call.  Use zero or more "
21249 "of the following pairs of parameters, and terminate the list with C<-1> on "
21250 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
21251 msgstr ""
21252
21253 #. type: verbatim
21254 #: ../src/guestfs-actions.pod:53
21255 #, no-wrap
21256 msgid ""
21257 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
21258 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
21259 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
21260 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
21261 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
21262 "\n"
21263 msgstr ""
21264
21265 #. type: textblock
21266 #: ../src/guestfs-actions.pod:59
21267 msgid ""
21268 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
21269 "It works by connecting to libvirt, requesting the domain and domain XML from "
21270 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
21271 "one."
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../src/guestfs-actions.pod:94
21276 msgid ""
21277 "The other optional parameters are passed directly through to "
21278 "C<guestfs_add_drive_opts>."
21279 msgstr ""
21280
21281 #. type: textblock
21282 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350 ../src/guestfs-actions.pod:515 ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:724 ../src/guestfs-actions.pod:742 ../src/guestfs-actions.pod:761 ../src/guestfs-actions.pod:1380 ../src/guestfs-actions.pod:1736 ../src/guestfs-actions.pod:1939 ../src/guestfs-actions.pod:2050 ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2156 ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:2472 ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:2962 ../src/guestfs-actions.pod:5137 ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5769 ../src/guestfs-actions.pod:5795 ../src/guestfs-actions.pod:7191 ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7643
21283 msgid "On error this function returns -1."
21284 msgstr ""
21285
21286 #. type: textblock
21287 #: ../src/guestfs-actions.pod:99
21288 msgid "(Added in 1.7.4)"
21289 msgstr ""
21290
21291 #. type: =head2
21292 #: ../src/guestfs-actions.pod:101
21293 msgid "guestfs_add_domain_va"
21294 msgstr ""
21295
21296 #. type: verbatim
21297 #: ../src/guestfs-actions.pod:103
21298 #, no-wrap
21299 msgid ""
21300 " int\n"
21301 " guestfs_add_domain_va (guestfs_h *g,\n"
21302 "                        const char *dom,\n"
21303 "                        va_list args);\n"
21304 "\n"
21305 msgstr ""
21306
21307 #. type: textblock
21308 #: ../src/guestfs-actions.pod:108
21309 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
21310 msgstr ""
21311
21312 #. type: textblock
21313 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225 ../src/guestfs-actions.pod:871 ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:2910 ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:4707 ../src/guestfs-actions.pod:4719 ../src/guestfs-actions.pod:4989 ../src/guestfs-actions.pod:5001 ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5238
21314 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
21315 msgstr ""
21316
21317 #. type: =head2
21318 #: ../src/guestfs-actions.pod:112
21319 msgid "guestfs_add_domain_argv"
21320 msgstr ""
21321
21322 #. type: verbatim
21323 #: ../src/guestfs-actions.pod:114
21324 #, no-wrap
21325 msgid ""
21326 " int\n"
21327 " guestfs_add_domain_argv (guestfs_h *g,\n"
21328 "                          const char *dom,\n"
21329 "                          const struct guestfs_add_domain_argv *optargs);\n"
21330 "\n"
21331 msgstr ""
21332
21333 #. type: textblock
21334 #: ../src/guestfs-actions.pod:119
21335 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
21336 msgstr ""
21337
21338 #. type: =head2
21339 #: ../src/guestfs-actions.pod:123
21340 msgid "guestfs_add_drive"
21341 msgstr ""
21342
21343 #. type: verbatim
21344 #: ../src/guestfs-actions.pod:125
21345 #, no-wrap
21346 msgid ""
21347 " int\n"
21348 " guestfs_add_drive (guestfs_h *g,\n"
21349 "                    const char *filename);\n"
21350 "\n"
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../src/guestfs-actions.pod:129
21355 msgid ""
21356 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
21357 "optional parameters, so the disk is added writable, with the format being "
21358 "detected automatically."
21359 msgstr ""
21360
21361 #. type: textblock
21362 #: ../src/guestfs-actions.pod:133
21363 msgid ""
21364 "Automatic detection of the format opens you up to a potential security hole "
21365 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
21366 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
21367 "you should think about replacing calls to this function with calls to "
21368 "C<guestfs_add_drive_opts>, and specifying the format."
21369 msgstr ""
21370
21371 #. type: =head2
21372 #: ../src/guestfs-actions.pod:144
21373 msgid "guestfs_add_drive_opts"
21374 msgstr ""
21375
21376 #. type: verbatim
21377 #: ../src/guestfs-actions.pod:146
21378 #, no-wrap
21379 msgid ""
21380 " int\n"
21381 " guestfs_add_drive_opts (guestfs_h *g,\n"
21382 "                         const char *filename,\n"
21383 "                         ...);\n"
21384 "\n"
21385 msgstr ""
21386
21387 #. type: verbatim
21388 #: ../src/guestfs-actions.pod:156
21389 #, no-wrap
21390 msgid ""
21391 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
21392 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
21393 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
21394 "\n"
21395 msgstr ""
21396
21397 #. type: textblock
21398 #: ../src/guestfs-actions.pod:185
21399 msgid ""
21400 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
21401 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
21402 "Possible formats include C<raw> and C<qcow2>."
21403 msgstr ""
21404
21405 #. type: textblock
21406 #: ../src/guestfs-actions.pod:196
21407 msgid ""
21408 "This rarely-used option lets you emulate the behaviour of the deprecated "
21409 "C<guestfs_add_drive_with_if> call (q.v.)"
21410 msgstr ""
21411
21412 #. type: textblock
21413 #: ../src/guestfs-actions.pod:203
21414 msgid "(Added in 1.5.23)"
21415 msgstr ""
21416
21417 #. type: =head2
21418 #: ../src/guestfs-actions.pod:205
21419 msgid "guestfs_add_drive_opts_va"
21420 msgstr ""
21421
21422 #. type: verbatim
21423 #: ../src/guestfs-actions.pod:207
21424 #, no-wrap
21425 msgid ""
21426 " int\n"
21427 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
21428 "                            const char *filename,\n"
21429 "                            va_list args);\n"
21430 "\n"
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../src/guestfs-actions.pod:212
21435 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
21436 msgstr ""
21437
21438 #. type: =head2
21439 #: ../src/guestfs-actions.pod:216
21440 msgid "guestfs_add_drive_opts_argv"
21441 msgstr ""
21442
21443 #. type: verbatim
21444 #: ../src/guestfs-actions.pod:218
21445 #, no-wrap
21446 msgid ""
21447 " int\n"
21448 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
21449 "                              const char *filename,\n"
21450 "                              const struct guestfs_add_drive_opts_argv "
21451 "*optargs);\n"
21452 "\n"
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../src/guestfs-actions.pod:223
21457 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
21458 msgstr ""
21459
21460 #. type: =head2
21461 #: ../src/guestfs-actions.pod:227
21462 msgid "guestfs_add_drive_ro"
21463 msgstr ""
21464
21465 #. type: verbatim
21466 #: ../src/guestfs-actions.pod:229
21467 #, no-wrap
21468 msgid ""
21469 " int\n"
21470 " guestfs_add_drive_ro (guestfs_h *g,\n"
21471 "                       const char *filename);\n"
21472 "\n"
21473 msgstr ""
21474
21475 #. type: textblock
21476 #: ../src/guestfs-actions.pod:233
21477 msgid ""
21478 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
21479 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
21480 "disk is added read-only, with the format being detected automatically."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../src/guestfs-actions.pod:240
21485 msgid "(Added in 1.0.38)"
21486 msgstr ""
21487
21488 #. type: =head2
21489 #: ../src/guestfs-actions.pod:242
21490 msgid "guestfs_add_drive_ro_with_if"
21491 msgstr ""
21492
21493 #. type: verbatim
21494 #: ../src/guestfs-actions.pod:244
21495 #, no-wrap
21496 msgid ""
21497 " int\n"
21498 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
21499 "                               const char *filename,\n"
21500 "                               const char *iface);\n"
21501 "\n"
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../src/guestfs-actions.pod:256
21506 msgid ""
21507 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
21508 "QEMU interface emulation to use at run time."
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282 ../src/guestfs-actions.pod:2431
21513 msgid "(Added in 1.0.84)"
21514 msgstr ""
21515
21516 #. type: =head2
21517 #: ../src/guestfs-actions.pod:263
21518 msgid "guestfs_add_drive_with_if"
21519 msgstr ""
21520
21521 #. type: verbatim
21522 #: ../src/guestfs-actions.pod:265
21523 #, no-wrap
21524 msgid ""
21525 " int\n"
21526 " guestfs_add_drive_with_if (guestfs_h *g,\n"
21527 "                            const char *filename,\n"
21528 "                            const char *iface);\n"
21529 "\n"
21530 msgstr ""
21531
21532 #. type: textblock
21533 #: ../src/guestfs-actions.pod:277
21534 msgid ""
21535 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
21536 "QEMU interface emulation to use at run time."
21537 msgstr ""
21538
21539 #. type: =head2
21540 #: ../src/guestfs-actions.pod:284
21541 msgid "guestfs_aug_clear"
21542 msgstr ""
21543
21544 #. type: verbatim
21545 #: ../src/guestfs-actions.pod:286
21546 #, no-wrap
21547 msgid ""
21548 " int\n"
21549 " guestfs_aug_clear (guestfs_h *g,\n"
21550 "                    const char *augpath);\n"
21551 "\n"
21552 msgstr ""
21553
21554 #. type: textblock
21555 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2181
21556 msgid "(Added in 1.3.4)"
21557 msgstr ""
21558
21559 #. type: =head2
21560 #: ../src/guestfs-actions.pod:297
21561 msgid "guestfs_aug_close"
21562 msgstr ""
21563
21564 #. type: verbatim
21565 #: ../src/guestfs-actions.pod:299
21566 #, no-wrap
21567 msgid ""
21568 " int\n"
21569 " guestfs_aug_close (guestfs_h *g);\n"
21570 "\n"
21571 msgstr ""
21572
21573 #. type: textblock
21574 #: ../src/guestfs-actions.pod:302
21575 msgid ""
21576 "Close the current Augeas handle and free up any resources used by it.  After "
21577 "calling this, you have to call C<guestfs_aug_init> again before you can use "
21578 "any other Augeas functions."
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334 ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366 ../src/guestfs-actions.pod:424 ../src/guestfs-actions.pod:444 ../src/guestfs-actions.pod:458 ../src/guestfs-actions.pod:489 ../src/guestfs-actions.pod:503 ../src/guestfs-actions.pod:517 ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:549 ../src/guestfs-actions.pod:5846
21583 msgid "(Added in 0.7)"
21584 msgstr ""
21585
21586 #. type: =head2
21587 #: ../src/guestfs-actions.pod:311
21588 msgid "guestfs_aug_defnode"
21589 msgstr ""
21590
21591 #. type: verbatim
21592 #: ../src/guestfs-actions.pod:313
21593 #, no-wrap
21594 msgid ""
21595 " struct guestfs_int_bool *\n"
21596 " guestfs_aug_defnode (guestfs_h *g,\n"
21597 "                      const char *name,\n"
21598 "                      const char *expr,\n"
21599 "                      const char *val);\n"
21600 "\n"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../src/guestfs-actions.pod:322
21605 msgid ""
21606 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
21607 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
21608 "containing that single node."
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../src/guestfs-actions.pod:330
21613 msgid ""
21614 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
21615 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
21616 msgstr ""
21617
21618 #. type: =head2
21619 #: ../src/guestfs-actions.pod:336
21620 msgid "guestfs_aug_defvar"
21621 msgstr ""
21622
21623 #. type: verbatim
21624 #: ../src/guestfs-actions.pod:338
21625 #, no-wrap
21626 msgid ""
21627 " int\n"
21628 " guestfs_aug_defvar (guestfs_h *g,\n"
21629 "                     const char *name,\n"
21630 "                     const char *expr);\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: =head2
21635 #: ../src/guestfs-actions.pod:354
21636 msgid "guestfs_aug_get"
21637 msgstr ""
21638
21639 #. type: verbatim
21640 #: ../src/guestfs-actions.pod:356
21641 #, no-wrap
21642 msgid ""
21643 " char *\n"
21644 " guestfs_aug_get (guestfs_h *g,\n"
21645 "                  const char *augpath);\n"
21646 "\n"
21647 msgstr ""
21648
21649 #. type: textblock
21650 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:922 ../src/guestfs-actions.pod:940 ../src/guestfs-actions.pod:1000 ../src/guestfs-actions.pod:1016 ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1249 ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1607 ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1882 ../src/guestfs-actions.pod:1899 ../src/guestfs-actions.pod:1966 ../src/guestfs-actions.pod:2009 ../src/guestfs-actions.pod:2030 ../src/guestfs-actions.pod:2204 ../src/guestfs-actions.pod:2396 ../src/guestfs-actions.pod:2600 ../src/guestfs-actions.pod:2690 ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:2813 ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3055 ../src/guestfs-actions.pod:3076 ../src/guestfs-actions.pod:3110 ../src/guestfs-actions.pod:3169 ../src/guestfs-actions.pod:3189 ../src/guestfs-actions.pod:3209 ../src/guestfs-actions.pod:3836 ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4359 ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:5375 ../src/guestfs-actions.pod:5574 ../src/guestfs-actions.pod:5744 ../src/guestfs-actions.pod:5922 ../src/guestfs-actions.pod:5971 ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:7365 ../src/guestfs-actions.pod:7384 ../src/guestfs-actions.pod:7402 ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7885
21651 msgid ""
21652 "This function returns a string, or NULL on error.  I<The caller must free "
21653 "the returned string after use>."
21654 msgstr ""
21655
21656 #. type: =head2
21657 #: ../src/guestfs-actions.pod:368
21658 msgid "guestfs_aug_init"
21659 msgstr ""
21660
21661 #. type: verbatim
21662 #: ../src/guestfs-actions.pod:370
21663 #, no-wrap
21664 msgid ""
21665 " int\n"
21666 " guestfs_aug_init (guestfs_h *g,\n"
21667 "                   const char *root,\n"
21668 "                   int flags);\n"
21669 "\n"
21670 msgstr ""
21671
21672 #. type: textblock
21673 #: ../src/guestfs-actions.pod:379
21674 msgid "You must call this before using any other C<guestfs_aug_*> commands."
21675 msgstr ""
21676
21677 #. type: textblock
21678 #: ../src/guestfs-actions.pod:414
21679 msgid "Do not load the tree in C<guestfs_aug_init>."
21680 msgstr ""
21681
21682 #. type: textblock
21683 #: ../src/guestfs-actions.pod:418
21684 msgid "To close the handle, you can call C<guestfs_aug_close>."
21685 msgstr ""
21686
21687 #. type: =head2
21688 #: ../src/guestfs-actions.pod:426
21689 msgid "guestfs_aug_insert"
21690 msgstr ""
21691
21692 #. type: verbatim
21693 #: ../src/guestfs-actions.pod:428
21694 #, no-wrap
21695 msgid ""
21696 " int\n"
21697 " guestfs_aug_insert (guestfs_h *g,\n"
21698 "                     const char *augpath,\n"
21699 "                     const char *label,\n"
21700 "                     int before);\n"
21701 "\n"
21702 msgstr ""
21703
21704 #. type: =head2
21705 #: ../src/guestfs-actions.pod:446
21706 msgid "guestfs_aug_load"
21707 msgstr ""
21708
21709 #. type: verbatim
21710 #: ../src/guestfs-actions.pod:448
21711 #, no-wrap
21712 msgid ""
21713 " int\n"
21714 " guestfs_aug_load (guestfs_h *g);\n"
21715 "\n"
21716 msgstr ""
21717
21718 #. type: =head2
21719 #: ../src/guestfs-actions.pod:460
21720 msgid "guestfs_aug_ls"
21721 msgstr ""
21722
21723 #. type: verbatim
21724 #: ../src/guestfs-actions.pod:462
21725 #, no-wrap
21726 msgid ""
21727 " char **\n"
21728 " guestfs_aug_ls (guestfs_h *g,\n"
21729 "                 const char *augpath);\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../src/guestfs-actions.pod:466
21735 msgid ""
21736 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
21737 "sorting the resulting nodes into alphabetical order."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:485 ../src/guestfs-actions.pod:631 ../src/guestfs-actions.pod:1138 ../src/guestfs-actions.pod:1434 ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575 ../src/guestfs-actions.pod:1821 ../src/guestfs-actions.pod:2276 ../src/guestfs-actions.pod:2292 ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:2449 ../src/guestfs-actions.pod:2498 ../src/guestfs-actions.pod:2755 ../src/guestfs-actions.pod:3129 ../src/guestfs-actions.pod:3405 ../src/guestfs-actions.pod:3719 ../src/guestfs-actions.pod:3736 ../src/guestfs-actions.pod:3756 ../src/guestfs-actions.pod:3818 ../src/guestfs-actions.pod:3923 ../src/guestfs-actions.pod:4331 ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5842 ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:6768 ../src/guestfs-actions.pod:6823 ../src/guestfs-actions.pod:6969 ../src/guestfs-actions.pod:6993 ../src/guestfs-actions.pod:7469 ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7536 ../src/guestfs-actions.pod:7730 ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7835 ../src/guestfs-actions.pod:7854 ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7919
21742 msgid ""
21743 "This function returns a NULL-terminated array of strings (like "
21744 "L<environ(3)>), or NULL if there was an error.  I<The caller must free the "
21745 "strings and the array after use>."
21746 msgstr ""
21747
21748 #. type: textblock
21749 #: ../src/guestfs-actions.pod:473 ../src/guestfs-actions.pod:1063 ../src/guestfs-actions.pod:1081 ../src/guestfs-actions.pod:1491 ../src/guestfs-actions.pod:3483 ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:4172 ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4409 ../src/guestfs-actions.pod:4442 ../src/guestfs-actions.pod:4605 ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5657 ../src/guestfs-actions.pod:6054 ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6080 ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7453 ../src/guestfs-actions.pod:7718
21750 msgid "(Added in 0.8)"
21751 msgstr ""
21752
21753 #. type: =head2
21754 #: ../src/guestfs-actions.pod:475
21755 msgid "guestfs_aug_match"
21756 msgstr ""
21757
21758 #. type: verbatim
21759 #: ../src/guestfs-actions.pod:477
21760 #, no-wrap
21761 msgid ""
21762 " char **\n"
21763 " guestfs_aug_match (guestfs_h *g,\n"
21764 "                    const char *augpath);\n"
21765 "\n"
21766 msgstr ""
21767
21768 #. type: =head2
21769 #: ../src/guestfs-actions.pod:491
21770 msgid "guestfs_aug_mv"
21771 msgstr ""
21772
21773 #. type: verbatim
21774 #: ../src/guestfs-actions.pod:493
21775 #, no-wrap
21776 msgid ""
21777 " int\n"
21778 " guestfs_aug_mv (guestfs_h *g,\n"
21779 "                 const char *src,\n"
21780 "                 const char *dest);\n"
21781 "\n"
21782 msgstr ""
21783
21784 #. type: =head2
21785 #: ../src/guestfs-actions.pod:505
21786 msgid "guestfs_aug_rm"
21787 msgstr ""
21788
21789 #. type: verbatim
21790 #: ../src/guestfs-actions.pod:507
21791 #, no-wrap
21792 msgid ""
21793 " int\n"
21794 " guestfs_aug_rm (guestfs_h *g,\n"
21795 "                 const char *augpath);\n"
21796 "\n"
21797 msgstr ""
21798
21799 #. type: =head2
21800 #: ../src/guestfs-actions.pod:519
21801 msgid "guestfs_aug_save"
21802 msgstr ""
21803
21804 #. type: verbatim
21805 #: ../src/guestfs-actions.pod:521
21806 #, no-wrap
21807 msgid ""
21808 " int\n"
21809 " guestfs_aug_save (guestfs_h *g);\n"
21810 "\n"
21811 msgstr ""
21812
21813 #. type: textblock
21814 #: ../src/guestfs-actions.pod:526
21815 msgid ""
21816 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
21817 "are saved."
21818 msgstr ""
21819
21820 #. type: =head2
21821 #: ../src/guestfs-actions.pod:533
21822 msgid "guestfs_aug_set"
21823 msgstr ""
21824
21825 #. type: verbatim
21826 #: ../src/guestfs-actions.pod:535
21827 #, no-wrap
21828 msgid ""
21829 " int\n"
21830 " guestfs_aug_set (guestfs_h *g,\n"
21831 "                  const char *augpath,\n"
21832 "                  const char *val);\n"
21833 "\n"
21834 msgstr ""
21835
21836 #. type: textblock
21837 #: ../src/guestfs-actions.pod:542
21838 msgid ""
21839 "In the Augeas API, it is possible to clear a node by setting the value to "
21840 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
21841 "this call.  Instead you must use the C<guestfs_aug_clear> call."
21842 msgstr ""
21843
21844 #. type: =head2
21845 #: ../src/guestfs-actions.pod:551
21846 msgid "guestfs_available"
21847 msgstr ""
21848
21849 #. type: verbatim
21850 #: ../src/guestfs-actions.pod:553
21851 #, no-wrap
21852 msgid ""
21853 " int\n"
21854 " guestfs_available (guestfs_h *g,\n"
21855 "                    char *const *groups);\n"
21856 "\n"
21857 msgstr ""
21858
21859 #. type: textblock
21860 #: ../src/guestfs-actions.pod:561
21861 msgid ""
21862 "The libguestfs groups, and the functions that those groups correspond to, "
21863 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
21864 "runtime by calling C<guestfs_available_all_groups>."
21865 msgstr ""
21866
21867 #. type: textblock
21868 #: ../src/guestfs-actions.pod:585
21869 msgid "You must call C<guestfs_launch> before calling this function."
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../src/guestfs-actions.pod:607
21874 msgid ""
21875 "This call was added in version C<1.0.80>.  In previous versions of "
21876 "libguestfs all you could do would be to speculatively execute a command to "
21877 "find out if the daemon implemented it.  See also C<guestfs_version>."
21878 msgstr ""
21879
21880 #. type: textblock
21881 #: ../src/guestfs-actions.pod:616 ../src/guestfs-actions.pod:1236
21882 msgid "(Added in 1.0.80)"
21883 msgstr ""
21884
21885 #. type: =head2
21886 #: ../src/guestfs-actions.pod:618
21887 msgid "guestfs_available_all_groups"
21888 msgstr ""
21889
21890 #. type: verbatim
21891 #: ../src/guestfs-actions.pod:620
21892 #, no-wrap
21893 msgid ""
21894 " char **\n"
21895 " guestfs_available_all_groups (guestfs_h *g);\n"
21896 "\n"
21897 msgstr ""
21898
21899 #. type: textblock
21900 #: ../src/guestfs-actions.pod:623
21901 msgid ""
21902 "This command returns a list of all optional groups that this daemon knows "
21903 "about.  Note this returns both supported and unsupported groups.  To find "
21904 "out which ones the daemon can actually support you have to call "
21905 "C<guestfs_available> on each member of the returned list."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../src/guestfs-actions.pod:629
21910 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../src/guestfs-actions.pod:635
21915 msgid "(Added in 1.3.15)"
21916 msgstr ""
21917
21918 #. type: =head2
21919 #: ../src/guestfs-actions.pod:637
21920 msgid "guestfs_base64_in"
21921 msgstr ""
21922
21923 #. type: verbatim
21924 #: ../src/guestfs-actions.pod:639
21925 #, no-wrap
21926 msgid ""
21927 " int\n"
21928 " guestfs_base64_in (guestfs_h *g,\n"
21929 "                    const char *base64file,\n"
21930 "                    const char *filename);\n"
21931 "\n"
21932 msgstr ""
21933
21934 #. type: textblock
21935 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:663
21936 msgid "(Added in 1.3.5)"
21937 msgstr ""
21938
21939 #. type: =head2
21940 #: ../src/guestfs-actions.pod:651
21941 msgid "guestfs_base64_out"
21942 msgstr ""
21943
21944 #. type: verbatim
21945 #: ../src/guestfs-actions.pod:653
21946 #, no-wrap
21947 msgid ""
21948 " int\n"
21949 " guestfs_base64_out (guestfs_h *g,\n"
21950 "                     const char *filename,\n"
21951 "                     const char *base64file);\n"
21952 "\n"
21953 msgstr ""
21954
21955 #. type: =head2
21956 #: ../src/guestfs-actions.pod:665
21957 msgid "guestfs_blockdev_flushbufs"
21958 msgstr ""
21959
21960 #. type: verbatim
21961 #: ../src/guestfs-actions.pod:667
21962 #, no-wrap
21963 msgid ""
21964 " int\n"
21965 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
21966 "                             const char *device);\n"
21967 "\n"
21968 msgstr ""
21969
21970 #. type: textblock
21971 #: ../src/guestfs-actions.pod:678 ../src/guestfs-actions.pod:695 ../src/guestfs-actions.pod:710 ../src/guestfs-actions.pod:726 ../src/guestfs-actions.pod:744 ../src/guestfs-actions.pod:763 ../src/guestfs-actions.pod:777 ../src/guestfs-actions.pod:795 ../src/guestfs-actions.pod:809 ../src/guestfs-actions.pod:823
21972 msgid "(Added in 0.9.3)"
21973 msgstr ""
21974
21975 #. type: =head2
21976 #: ../src/guestfs-actions.pod:680
21977 msgid "guestfs_blockdev_getbsz"
21978 msgstr ""
21979
21980 #. type: verbatim
21981 #: ../src/guestfs-actions.pod:682
21982 #, no-wrap
21983 msgid ""
21984 " int\n"
21985 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
21986 "                          const char *device);\n"
21987 "\n"
21988 msgstr ""
21989
21990 #. type: =head2
21991 #: ../src/guestfs-actions.pod:697
21992 msgid "guestfs_blockdev_getro"
21993 msgstr ""
21994
21995 #. type: verbatim
21996 #: ../src/guestfs-actions.pod:699
21997 #, no-wrap
21998 msgid ""
21999 " int\n"
22000 " guestfs_blockdev_getro (guestfs_h *g,\n"
22001 "                         const char *device);\n"
22002 "\n"
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../src/guestfs-actions.pod:708 ../src/guestfs-actions.pod:1474 ../src/guestfs-actions.pod:1489 ../src/guestfs-actions.pod:1978 ../src/guestfs-actions.pod:1989 ../src/guestfs-actions.pod:2061 ../src/guestfs-actions.pod:2087 ../src/guestfs-actions.pod:2127 ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2167 ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:3226 ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3260 ../src/guestfs-actions.pod:3422 ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3481 ../src/guestfs-actions.pod:3496 ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3526 ../src/guestfs-actions.pod:3539 ../src/guestfs-actions.pod:3553 ../src/guestfs-actions.pod:3568 ../src/guestfs-actions.pod:3583 ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3610 ../src/guestfs-actions.pod:5339
22007 msgid "This function returns a C truth value on success or -1 on error."
22008 msgstr ""
22009
22010 #. type: =head2
22011 #: ../src/guestfs-actions.pod:712
22012 msgid "guestfs_blockdev_getsize64"
22013 msgstr ""
22014
22015 #. type: verbatim
22016 #: ../src/guestfs-actions.pod:714
22017 #, no-wrap
22018 msgid ""
22019 " int64_t\n"
22020 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
22021 "                             const char *device);\n"
22022 "\n"
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../src/guestfs-actions.pod:720
22027 msgid "See also C<guestfs_blockdev_getsz>."
22028 msgstr ""
22029
22030 #. type: =head2
22031 #: ../src/guestfs-actions.pod:728
22032 msgid "guestfs_blockdev_getss"
22033 msgstr ""
22034
22035 #. type: verbatim
22036 #: ../src/guestfs-actions.pod:730
22037 #, no-wrap
22038 msgid ""
22039 " int\n"
22040 " guestfs_blockdev_getss (guestfs_h *g,\n"
22041 "                         const char *device);\n"
22042 "\n"
22043 msgstr ""
22044
22045 #. type: textblock
22046 #: ../src/guestfs-actions.pod:737
22047 msgid ""
22048 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
22049 "that)."
22050 msgstr ""
22051
22052 #. type: =head2
22053 #: ../src/guestfs-actions.pod:746
22054 msgid "guestfs_blockdev_getsz"
22055 msgstr ""
22056
22057 #. type: verbatim
22058 #: ../src/guestfs-actions.pod:748
22059 #, no-wrap
22060 msgid ""
22061 " int64_t\n"
22062 " guestfs_blockdev_getsz (guestfs_h *g,\n"
22063 "                         const char *device);\n"
22064 "\n"
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../src/guestfs-actions.pod:755
22069 msgid ""
22070 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
22071 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
22072 msgstr ""
22073
22074 #. type: =head2
22075 #: ../src/guestfs-actions.pod:765
22076 msgid "guestfs_blockdev_rereadpt"
22077 msgstr ""
22078
22079 #. type: verbatim
22080 #: ../src/guestfs-actions.pod:767
22081 #, no-wrap
22082 msgid ""
22083 " int\n"
22084 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
22085 "                            const char *device);\n"
22086 "\n"
22087 msgstr ""
22088
22089 #. type: =head2
22090 #: ../src/guestfs-actions.pod:779
22091 msgid "guestfs_blockdev_setbsz"
22092 msgstr ""
22093
22094 #. type: verbatim
22095 #: ../src/guestfs-actions.pod:781
22096 #, no-wrap
22097 msgid ""
22098 " int\n"
22099 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
22100 "                          const char *device,\n"
22101 "                          int blocksize);\n"
22102 "\n"
22103 msgstr ""
22104
22105 #. type: =head2
22106 #: ../src/guestfs-actions.pod:797
22107 msgid "guestfs_blockdev_setro"
22108 msgstr ""
22109
22110 #. type: verbatim
22111 #: ../src/guestfs-actions.pod:799
22112 #, no-wrap
22113 msgid ""
22114 " int\n"
22115 " guestfs_blockdev_setro (guestfs_h *g,\n"
22116 "                         const char *device);\n"
22117 "\n"
22118 msgstr ""
22119
22120 #. type: =head2
22121 #: ../src/guestfs-actions.pod:811
22122 msgid "guestfs_blockdev_setrw"
22123 msgstr ""
22124
22125 #. type: verbatim
22126 #: ../src/guestfs-actions.pod:813
22127 #, no-wrap
22128 msgid ""
22129 " int\n"
22130 " guestfs_blockdev_setrw (guestfs_h *g,\n"
22131 "                         const char *device);\n"
22132 "\n"
22133 msgstr ""
22134
22135 #. type: =head2
22136 #: ../src/guestfs-actions.pod:825
22137 msgid "guestfs_btrfs_filesystem_resize"
22138 msgstr ""
22139
22140 #. type: verbatim
22141 #: ../src/guestfs-actions.pod:827
22142 #, no-wrap
22143 msgid ""
22144 " int\n"
22145 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
22146 "                                  const char *mountpoint,\n"
22147 "                                  ...);\n"
22148 "\n"
22149 msgstr ""
22150
22151 #. type: verbatim
22152 #: ../src/guestfs-actions.pod:837
22153 #, no-wrap
22154 msgid ""
22155 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
22156 "\n"
22157 msgstr ""
22158
22159 #. type: textblock
22160 #: ../src/guestfs-actions.pod:860
22161 msgid "(Added in 1.11.17)"
22162 msgstr ""
22163
22164 #. type: =head2
22165 #: ../src/guestfs-actions.pod:862
22166 msgid "guestfs_btrfs_filesystem_resize_va"
22167 msgstr ""
22168
22169 #. type: verbatim
22170 #: ../src/guestfs-actions.pod:864
22171 #, no-wrap
22172 msgid ""
22173 " int\n"
22174 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
22175 "                                     const char *mountpoint,\n"
22176 "                                     va_list args);\n"
22177 "\n"
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../src/guestfs-actions.pod:869
22182 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
22183 msgstr ""
22184
22185 #. type: =head2
22186 #: ../src/guestfs-actions.pod:873
22187 msgid "guestfs_btrfs_filesystem_resize_argv"
22188 msgstr ""
22189
22190 #. type: verbatim
22191 #: ../src/guestfs-actions.pod:875
22192 #, no-wrap
22193 msgid ""
22194 " int\n"
22195 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
22196 "                                       const char *mountpoint,\n"
22197 "                                       const struct "
22198 "guestfs_btrfs_filesystem_resize_argv *optargs);\n"
22199 "\n"
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../src/guestfs-actions.pod:880
22204 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
22205 msgstr ""
22206
22207 #. type: =head2
22208 #: ../src/guestfs-actions.pod:884
22209 msgid "guestfs_case_sensitive_path"
22210 msgstr ""
22211
22212 #. type: verbatim
22213 #: ../src/guestfs-actions.pod:886
22214 #, no-wrap
22215 msgid ""
22216 " char *\n"
22217 " guestfs_case_sensitive_path (guestfs_h *g,\n"
22218 "                              const char *path);\n"
22219 "\n"
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../src/guestfs-actions.pod:912
22224 msgid ""
22225 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return "
22226 "C<\"/WINDOWS/system32\"> (the exact return value would depend on details of "
22227 "how the directories were originally created under Windows)."
22228 msgstr ""
22229
22230 #. type: textblock
22231 #: ../src/guestfs-actions.pod:920
22232 msgid "See also C<guestfs_realpath>."
22233 msgstr ""
22234
22235 #. type: textblock
22236 #: ../src/guestfs-actions.pod:925 ../src/guestfs-actions.pod:7387
22237 msgid "(Added in 1.0.75)"
22238 msgstr ""
22239
22240 #. type: =head2
22241 #: ../src/guestfs-actions.pod:927
22242 msgid "guestfs_cat"
22243 msgstr ""
22244
22245 #. type: verbatim
22246 #: ../src/guestfs-actions.pod:929
22247 #, no-wrap
22248 msgid ""
22249 " char *\n"
22250 " guestfs_cat (guestfs_h *g,\n"
22251 "              const char *path);\n"
22252 "\n"
22253 msgstr ""
22254
22255 #. type: textblock
22256 #: ../src/guestfs-actions.pod:935
22257 msgid ""
22258 "Note that this function cannot correctly handle binary files (specifically, "
22259 "files containing C<\\0> character which is treated as end of string).  For "
22260 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
22261 "functions which have a more complex interface."
22262 msgstr ""
22263
22264 #. type: textblock
22265 #: ../src/guestfs-actions.pod:946 ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3822 ../src/guestfs-actions.pod:3839 ../src/guestfs-actions.pod:3927 ../src/guestfs-actions.pod:4335 ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:5720 ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:7540 ../src/guestfs-actions.pod:7554
22266 msgid "(Added in 0.4)"
22267 msgstr ""
22268
22269 #. type: =head2
22270 #: ../src/guestfs-actions.pod:948
22271 msgid "guestfs_checksum"
22272 msgstr ""
22273
22274 #. type: verbatim
22275 #: ../src/guestfs-actions.pod:950
22276 #, no-wrap
22277 msgid ""
22278 " char *\n"
22279 " guestfs_checksum (guestfs_h *g,\n"
22280 "                   const char *csumtype,\n"
22281 "                   const char *path);\n"
22282 "\n"
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../src/guestfs-actions.pod:996
22287 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../src/guestfs-actions.pod:998
22292 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
22293 msgstr ""
22294
22295 #. type: textblock
22296 #: ../src/guestfs-actions.pod:1003 ../src/guestfs-actions.pod:1311 ../src/guestfs-actions.pod:2158 ../src/guestfs-actions.pod:3438 ../src/guestfs-actions.pod:3467 ../src/guestfs-actions.pod:3528 ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:7243
22297 msgid "(Added in 1.0.2)"
22298 msgstr ""
22299
22300 #. type: =head2
22301 #: ../src/guestfs-actions.pod:1005
22302 msgid "guestfs_checksum_device"
22303 msgstr ""
22304
22305 #. type: verbatim
22306 #: ../src/guestfs-actions.pod:1007
22307 #, no-wrap
22308 msgid ""
22309 " char *\n"
22310 " guestfs_checksum_device (guestfs_h *g,\n"
22311 "                          const char *csumtype,\n"
22312 "                          const char *device);\n"
22313 "\n"
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../src/guestfs-actions.pod:1012
22318 msgid ""
22319 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
22320 "device named C<device>.  For the types of checksums supported see the "
22321 "C<guestfs_checksum> command."
22322 msgstr ""
22323
22324 #. type: textblock
22325 #: ../src/guestfs-actions.pod:1019 ../src/guestfs-actions.pod:5169 ../src/guestfs-actions.pod:5304 ../src/guestfs-actions.pod:5341 ../src/guestfs-actions.pod:5359 ../src/guestfs-actions.pod:5541 ../src/guestfs-actions.pod:7152 ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7566
22326 msgid "(Added in 1.3.2)"
22327 msgstr ""
22328
22329 #. type: =head2
22330 #: ../src/guestfs-actions.pod:1021
22331 msgid "guestfs_checksums_out"
22332 msgstr ""
22333
22334 #. type: verbatim
22335 #: ../src/guestfs-actions.pod:1023
22336 #, no-wrap
22337 msgid ""
22338 " int\n"
22339 " guestfs_checksums_out (guestfs_h *g,\n"
22340 "                        const char *csumtype,\n"
22341 "                        const char *directory,\n"
22342 "                        const char *sumsfile);\n"
22343 "\n"
22344 msgstr ""
22345
22346 #. type: textblock
22347 #: ../src/guestfs-actions.pod:1043
22348 msgid "(Added in 1.3.7)"
22349 msgstr ""
22350
22351 #. type: =head2
22352 #: ../src/guestfs-actions.pod:1045
22353 msgid "guestfs_chmod"
22354 msgstr ""
22355
22356 #. type: verbatim
22357 #: ../src/guestfs-actions.pod:1047
22358 #, no-wrap
22359 msgid ""
22360 " int\n"
22361 " guestfs_chmod (guestfs_h *g,\n"
22362 "                int mode,\n"
22363 "                const char *path);\n"
22364 "\n"
22365 msgstr ""
22366
22367 #. type: =head2
22368 #: ../src/guestfs-actions.pod:1065
22369 msgid "guestfs_chown"
22370 msgstr ""
22371
22372 #. type: verbatim
22373 #: ../src/guestfs-actions.pod:1067
22374 #, no-wrap
22375 msgid ""
22376 " int\n"
22377 " guestfs_chown (guestfs_h *g,\n"
22378 "                int owner,\n"
22379 "                int group,\n"
22380 "                const char *path);\n"
22381 "\n"
22382 msgstr ""
22383
22384 #. type: =head2
22385 #: ../src/guestfs-actions.pod:1083
22386 msgid "guestfs_command"
22387 msgstr ""
22388
22389 #. type: verbatim
22390 #: ../src/guestfs-actions.pod:1085
22391 #, no-wrap
22392 msgid ""
22393 " char *\n"
22394 " guestfs_command (guestfs_h *g,\n"
22395 "                  char *const *arguments);\n"
22396 "\n"
22397 msgstr ""
22398
22399 #. type: textblock
22400 #: ../src/guestfs-actions.pod:1094
22401 msgid ""
22402 "The single parameter is an argv-style list of arguments.  The first element "
22403 "is the name of the program to run.  Subsequent elements are parameters.  The "
22404 "list must be non-empty (ie. must contain a program name).  Note that the "
22405 "command runs directly, and is I<not> invoked via the shell (see "
22406 "C<guestfs_sh>)."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../src/guestfs-actions.pod:1125 ../src/guestfs-actions.pod:1145 ../src/guestfs-actions.pod:1610
22411 msgid "(Added in 0.9.1)"
22412 msgstr ""
22413
22414 #. type: =head2
22415 #: ../src/guestfs-actions.pod:1127
22416 msgid "guestfs_command_lines"
22417 msgstr ""
22418
22419 #. type: verbatim
22420 #: ../src/guestfs-actions.pod:1129
22421 #, no-wrap
22422 msgid ""
22423 " char **\n"
22424 " guestfs_command_lines (guestfs_h *g,\n"
22425 "                        char *const *arguments);\n"
22426 "\n"
22427 msgstr ""
22428
22429 #. type: textblock
22430 #: ../src/guestfs-actions.pod:1133
22431 msgid ""
22432 "This is the same as C<guestfs_command>, but splits the result into a list of "
22433 "lines."
22434 msgstr ""
22435
22436 #. type: textblock
22437 #: ../src/guestfs-actions.pod:1136
22438 msgid "See also: C<guestfs_sh_lines>"
22439 msgstr ""
22440
22441 #. type: =head2
22442 #: ../src/guestfs-actions.pod:1147
22443 msgid "guestfs_config"
22444 msgstr ""
22445
22446 #. type: verbatim
22447 #: ../src/guestfs-actions.pod:1149
22448 #, no-wrap
22449 msgid ""
22450 " int\n"
22451 " guestfs_config (guestfs_h *g,\n"
22452 "                 const char *qemuparam,\n"
22453 "                 const char *qemuvalue);\n"
22454 "\n"
22455 msgstr ""
22456
22457 #. type: =head2
22458 #: ../src/guestfs-actions.pod:1167
22459 msgid "guestfs_copy_size"
22460 msgstr ""
22461
22462 #. type: verbatim
22463 #: ../src/guestfs-actions.pod:1169
22464 #, no-wrap
22465 msgid ""
22466 " int\n"
22467 " guestfs_copy_size (guestfs_h *g,\n"
22468 "                    const char *src,\n"
22469 "                    const char *dest,\n"
22470 "                    int64_t size);\n"
22471 "\n"
22472 msgstr ""
22473
22474 #. type: textblock
22475 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1306 ../src/guestfs-actions.pod:1337 ../src/guestfs-actions.pod:1382 ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:1781 ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:7238 ../src/guestfs-actions.pod:7272 ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7794
22476 msgid ""
22477 "This long-running command can generate progress notification messages so "
22478 "that the caller can display a progress bar or indicator.  To receive these "
22479 "messages, the caller must register a progress event callback.  See "
22480 "L<guestfs(3)/GUESTFS_EVENT_PROGRESS>."
22481 msgstr ""
22482
22483 #. type: textblock
22484 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:7473 ../src/guestfs-actions.pod:7493 ../src/guestfs-actions.pod:7579
22485 msgid "(Added in 1.0.87)"
22486 msgstr ""
22487
22488 #. type: =head2
22489 #: ../src/guestfs-actions.pod:1190
22490 msgid "guestfs_cp"
22491 msgstr ""
22492
22493 #. type: verbatim
22494 #: ../src/guestfs-actions.pod:1192
22495 #, no-wrap
22496 msgid ""
22497 " int\n"
22498 " guestfs_cp (guestfs_h *g,\n"
22499 "             const char *src,\n"
22500 "             const char *dest);\n"
22501 "\n"
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../src/guestfs-actions.pod:1202 ../src/guestfs-actions.pod:1216 ../src/guestfs-actions.pod:1288 ../src/guestfs-actions.pod:1362 ../src/guestfs-actions.pod:1476 ../src/guestfs-actions.pod:5116 ../src/guestfs-actions.pod:5591
22506 msgid "(Added in 1.0.18)"
22507 msgstr ""
22508
22509 #. type: =head2
22510 #: ../src/guestfs-actions.pod:1204
22511 msgid "guestfs_cp_a"
22512 msgstr ""
22513
22514 #. type: verbatim
22515 #: ../src/guestfs-actions.pod:1206
22516 #, no-wrap
22517 msgid ""
22518 " int\n"
22519 " guestfs_cp_a (guestfs_h *g,\n"
22520 "               const char *src,\n"
22521 "               const char *dest);\n"
22522 "\n"
22523 msgstr ""
22524
22525 #. type: =head2
22526 #: ../src/guestfs-actions.pod:1218
22527 msgid "guestfs_dd"
22528 msgstr ""
22529
22530 #. type: verbatim
22531 #: ../src/guestfs-actions.pod:1220
22532 #, no-wrap
22533 msgid ""
22534 " int\n"
22535 " guestfs_dd (guestfs_h *g,\n"
22536 "             const char *src,\n"
22537 "             const char *dest);\n"
22538 "\n"
22539 msgstr ""
22540
22541 #. type: textblock
22542 #: ../src/guestfs-actions.pod:1230
22543 msgid ""
22544 "If the destination is a device, it must be as large or larger than the "
22545 "source file or device, otherwise the copy will fail.  This command cannot do "
22546 "partial copies (see C<guestfs_copy_size>)."
22547 msgstr ""
22548
22549 #. type: =head2
22550 #: ../src/guestfs-actions.pod:1238
22551 msgid "guestfs_df"
22552 msgstr ""
22553
22554 #. type: verbatim
22555 #: ../src/guestfs-actions.pod:1240
22556 #, no-wrap
22557 msgid ""
22558 " char *\n"
22559 " guestfs_df (guestfs_h *g);\n"
22560 "\n"
22561 msgstr ""
22562
22563 #. type: textblock
22564 #: ../src/guestfs-actions.pod:1245 ../src/guestfs-actions.pod:1262
22565 msgid ""
22566 "This command is mostly useful for interactive sessions.  It is I<not> "
22567 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
22568 "from programs."
22569 msgstr ""
22570
22571 #. type: textblock
22572 #: ../src/guestfs-actions.pod:1252 ../src/guestfs-actions.pod:1269 ../src/guestfs-actions.pod:1387 ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2453 ../src/guestfs-actions.pod:4472 ../src/guestfs-actions.pod:5016 ../src/guestfs-actions.pod:6976 ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7619 ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:7645
22573 msgid "(Added in 1.0.54)"
22574 msgstr ""
22575
22576 #. type: =head2
22577 #: ../src/guestfs-actions.pod:1254
22578 msgid "guestfs_df_h"
22579 msgstr ""
22580
22581 #. type: verbatim
22582 #: ../src/guestfs-actions.pod:1256
22583 #, no-wrap
22584 msgid ""
22585 " char *\n"
22586 " guestfs_df_h (guestfs_h *g);\n"
22587 "\n"
22588 msgstr ""
22589
22590 #. type: =head2
22591 #: ../src/guestfs-actions.pod:1271
22592 msgid "guestfs_dmesg"
22593 msgstr ""
22594
22595 #. type: verbatim
22596 #: ../src/guestfs-actions.pod:1273
22597 #, no-wrap
22598 msgid ""
22599 " char *\n"
22600 " guestfs_dmesg (guestfs_h *g);\n"
22601 "\n"
22602 msgstr ""
22603
22604 #. type: textblock
22605 #: ../src/guestfs-actions.pod:1280
22606 msgid ""
22607 "Another way to get the same information is to enable verbose messages with "
22608 "C<guestfs_set_verbose> or by setting the environment variable "
22609 "C<LIBGUESTFS_DEBUG=1> before running the program."
22610 msgstr ""
22611
22612 #. type: =head2
22613 #: ../src/guestfs-actions.pod:1290
22614 msgid "guestfs_download"
22615 msgstr ""
22616
22617 #. type: verbatim
22618 #: ../src/guestfs-actions.pod:1292
22619 #, no-wrap
22620 msgid ""
22621 " int\n"
22622 " guestfs_download (guestfs_h *g,\n"
22623 "                   const char *remotefilename,\n"
22624 "                   const char *filename);\n"
22625 "\n"
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../src/guestfs-actions.pod:1302
22630 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
22631 msgstr ""
22632
22633 #. type: =head2
22634 #: ../src/guestfs-actions.pod:1313
22635 msgid "guestfs_download_offset"
22636 msgstr ""
22637
22638 #. type: verbatim
22639 #: ../src/guestfs-actions.pod:1315
22640 #, no-wrap
22641 msgid ""
22642 " int\n"
22643 " guestfs_download_offset (guestfs_h *g,\n"
22644 "                          const char *remotefilename,\n"
22645 "                          const char *filename,\n"
22646 "                          int64_t offset,\n"
22647 "                          int64_t size);\n"
22648 "\n"
22649 msgstr ""
22650
22651 #. type: textblock
22652 #: ../src/guestfs-actions.pod:1328
22653 msgid ""
22654 "Note that there is no limit on the amount of data that can be downloaded "
22655 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
22656 "full amount unless an error occurs."
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../src/guestfs-actions.pod:1333
22661 msgid "See also C<guestfs_download>, C<guestfs_pread>."
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:7277
22666 msgid "(Added in 1.5.17)"
22667 msgstr ""
22668
22669 #. type: =head2
22670 #: ../src/guestfs-actions.pod:1344
22671 msgid "guestfs_drop_caches"
22672 msgstr ""
22673
22674 #. type: verbatim
22675 #: ../src/guestfs-actions.pod:1346
22676 #, no-wrap
22677 msgid ""
22678 " int\n"
22679 " guestfs_drop_caches (guestfs_h *g,\n"
22680 "                      int whattodrop);\n"
22681 "\n"
22682 msgstr ""
22683
22684 #. type: =head2
22685 #: ../src/guestfs-actions.pod:1364
22686 msgid "guestfs_du"
22687 msgstr ""
22688
22689 #. type: verbatim
22690 #: ../src/guestfs-actions.pod:1366
22691 #, no-wrap
22692 msgid ""
22693 " int64_t\n"
22694 " guestfs_du (guestfs_h *g,\n"
22695 "             const char *path);\n"
22696 "\n"
22697 msgstr ""
22698
22699 #. type: =head2
22700 #: ../src/guestfs-actions.pod:1389
22701 msgid "guestfs_e2fsck_f"
22702 msgstr ""
22703
22704 #. type: verbatim
22705 #: ../src/guestfs-actions.pod:1391
22706 #, no-wrap
22707 msgid ""
22708 " int\n"
22709 " guestfs_e2fsck_f (guestfs_h *g,\n"
22710 "                   const char *device);\n"
22711 "\n"
22712 msgstr ""
22713
22714 #. type: textblock
22715 #: ../src/guestfs-actions.pod:1399
22716 msgid ""
22717 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
22718 "Normally you should use C<guestfs_fsck>."
22719 msgstr ""
22720
22721 #. type: textblock
22722 #: ../src/guestfs-actions.pod:1404
22723 msgid "(Added in 1.0.29)"
22724 msgstr ""
22725
22726 #. type: =head2
22727 #: ../src/guestfs-actions.pod:1406
22728 msgid "guestfs_echo_daemon"
22729 msgstr ""
22730
22731 #. type: verbatim
22732 #: ../src/guestfs-actions.pod:1408
22733 #, no-wrap
22734 msgid ""
22735 " char *\n"
22736 " guestfs_echo_daemon (guestfs_h *g,\n"
22737 "                      char *const *words);\n"
22738 "\n"
22739 msgstr ""
22740
22741 #. type: textblock
22742 #: ../src/guestfs-actions.pod:1417
22743 msgid "See also C<guestfs_ping_daemon>."
22744 msgstr ""
22745
22746 #. type: textblock
22747 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:6448
22748 msgid "(Added in 1.0.69)"
22749 msgstr ""
22750
22751 #. type: =head2
22752 #: ../src/guestfs-actions.pod:1424
22753 msgid "guestfs_egrep"
22754 msgstr ""
22755
22756 #. type: verbatim
22757 #: ../src/guestfs-actions.pod:1426
22758 #, no-wrap
22759 msgid ""
22760 " char **\n"
22761 " guestfs_egrep (guestfs_h *g,\n"
22762 "                const char *regex,\n"
22763 "                const char *path);\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../src/guestfs-actions.pod:1441 ../src/guestfs-actions.pod:1460 ../src/guestfs-actions.pod:1517 ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582 ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2318 ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2487 ../src/guestfs-actions.pod:2502 ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2583 ../src/guestfs-actions.pod:3852 ../src/guestfs-actions.pod:3866 ../src/guestfs-actions.pod:3879 ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:4894 ../src/guestfs-actions.pod:5925 ../src/guestfs-actions.pod:5974 ../src/guestfs-actions.pod:6844 ../src/guestfs-actions.pod:6856 ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:6904 ../src/guestfs-actions.pod:6917 ../src/guestfs-actions.pod:6930 ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7756 ../src/guestfs-actions.pod:7842 ../src/guestfs-actions.pod:7861 ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7926
22769 msgid "(Added in 1.0.66)"
22770 msgstr ""
22771
22772 #. type: =head2
22773 #: ../src/guestfs-actions.pod:1443
22774 msgid "guestfs_egrepi"
22775 msgstr ""
22776
22777 #. type: verbatim
22778 #: ../src/guestfs-actions.pod:1445
22779 #, no-wrap
22780 msgid ""
22781 " char **\n"
22782 " guestfs_egrepi (guestfs_h *g,\n"
22783 "                 const char *regex,\n"
22784 "                 const char *path);\n"
22785 "\n"
22786 msgstr ""
22787
22788 #. type: =head2
22789 #: ../src/guestfs-actions.pod:1462
22790 msgid "guestfs_equal"
22791 msgstr ""
22792
22793 #. type: verbatim
22794 #: ../src/guestfs-actions.pod:1464
22795 #, no-wrap
22796 msgid ""
22797 " int\n"
22798 " guestfs_equal (guestfs_h *g,\n"
22799 "                const char *file1,\n"
22800 "                const char *file2);\n"
22801 "\n"
22802 msgstr ""
22803
22804 #. type: =head2
22805 #: ../src/guestfs-actions.pod:1478
22806 msgid "guestfs_exists"
22807 msgstr ""
22808
22809 #. type: verbatim
22810 #: ../src/guestfs-actions.pod:1480
22811 #, no-wrap
22812 msgid ""
22813 " int\n"
22814 " guestfs_exists (guestfs_h *g,\n"
22815 "                 const char *path);\n"
22816 "\n"
22817 msgstr ""
22818
22819 #. type: textblock
22820 #: ../src/guestfs-actions.pod:1487
22821 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
22822 msgstr ""
22823
22824 #. type: =head2
22825 #: ../src/guestfs-actions.pod:1493
22826 msgid "guestfs_fallocate"
22827 msgstr ""
22828
22829 #. type: verbatim
22830 #: ../src/guestfs-actions.pod:1495
22831 #, no-wrap
22832 msgid ""
22833 " int\n"
22834 " guestfs_fallocate (guestfs_h *g,\n"
22835 "                    const char *path,\n"
22836 "                    int len);\n"
22837 "\n"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../src/guestfs-actions.pod:1500
22842 msgid ""
22843 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
22844 "call instead."
22845 msgstr ""
22846
22847 #. type: =head2
22848 #: ../src/guestfs-actions.pod:1519
22849 msgid "guestfs_fallocate64"
22850 msgstr ""
22851
22852 #. type: verbatim
22853 #: ../src/guestfs-actions.pod:1521
22854 #, no-wrap
22855 msgid ""
22856 " int\n"
22857 " guestfs_fallocate64 (guestfs_h *g,\n"
22858 "                      const char *path,\n"
22859 "                      int64_t len);\n"
22860 "\n"
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../src/guestfs-actions.pod:1530
22865 msgid ""
22866 "Note that this call allocates disk blocks for the file.  To create a sparse "
22867 "file use C<guestfs_truncate_size> instead."
22868 msgstr ""
22869
22870 #. type: textblock
22871 #: ../src/guestfs-actions.pod:1533
22872 msgid ""
22873 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
22874 "oversight it only allowed 30 bit lengths to be specified, effectively "
22875 "limiting the maximum size of files created through that call to 1GB."
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../src/guestfs-actions.pod:1544
22880 msgid "(Added in 1.3.17)"
22881 msgstr ""
22882
22883 #. type: =head2
22884 #: ../src/guestfs-actions.pod:1546
22885 msgid "guestfs_fgrep"
22886 msgstr ""
22887
22888 #. type: verbatim
22889 #: ../src/guestfs-actions.pod:1548
22890 #, no-wrap
22891 msgid ""
22892 " char **\n"
22893 " guestfs_fgrep (guestfs_h *g,\n"
22894 "                const char *pattern,\n"
22895 "                const char *path);\n"
22896 "\n"
22897 msgstr ""
22898
22899 #. type: =head2
22900 #: ../src/guestfs-actions.pod:1565
22901 msgid "guestfs_fgrepi"
22902 msgstr ""
22903
22904 #. type: verbatim
22905 #: ../src/guestfs-actions.pod:1567
22906 #, no-wrap
22907 msgid ""
22908 " char **\n"
22909 " guestfs_fgrepi (guestfs_h *g,\n"
22910 "                 const char *pattern,\n"
22911 "                 const char *path);\n"
22912 "\n"
22913 msgstr ""
22914
22915 #. type: =head2
22916 #: ../src/guestfs-actions.pod:1584
22917 msgid "guestfs_file"
22918 msgstr ""
22919
22920 #. type: verbatim
22921 #: ../src/guestfs-actions.pod:1586
22922 #, no-wrap
22923 msgid ""
22924 " char *\n"
22925 " guestfs_file (guestfs_h *g,\n"
22926 "               const char *path);\n"
22927 "\n"
22928 msgstr ""
22929
22930 #. type: textblock
22931 #: ../src/guestfs-actions.pod:1604
22932 msgid ""
22933 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
22934 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
22935 msgstr ""
22936
22937 #. type: =head2
22938 #: ../src/guestfs-actions.pod:1612
22939 msgid "guestfs_file_architecture"
22940 msgstr ""
22941
22942 #. type: verbatim
22943 #: ../src/guestfs-actions.pod:1614
22944 #, no-wrap
22945 msgid ""
22946 " char *\n"
22947 " guestfs_file_architecture (guestfs_h *g,\n"
22948 "                            const char *filename);\n"
22949 "\n"
22950 msgstr ""
22951
22952 #. type: textblock
22953 #: ../src/guestfs-actions.pod:1722 ../src/guestfs-actions.pod:1885 ../src/guestfs-actions.pod:1902 ../src/guestfs-actions.pod:2603 ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2759 ../src/guestfs-actions.pod:2946 ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3004 ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3409 ../src/guestfs-actions.pod:3541
22954 msgid "(Added in 1.5.3)"
22955 msgstr ""
22956
22957 #. type: =head2
22958 #: ../src/guestfs-actions.pod:1724
22959 msgid "guestfs_filesize"
22960 msgstr ""
22961
22962 #. type: verbatim
22963 #: ../src/guestfs-actions.pod:1726
22964 #, no-wrap
22965 msgid ""
22966 " int64_t\n"
22967 " guestfs_filesize (guestfs_h *g,\n"
22968 "                   const char *file);\n"
22969 "\n"
22970 msgstr ""
22971
22972 #. type: textblock
22973 #: ../src/guestfs-actions.pod:1732
22974 msgid ""
22975 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
22976 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
22977 "devices, use C<guestfs_blockdev_getsize64>."
22978 msgstr ""
22979
22980 #. type: textblock
22981 #: ../src/guestfs-actions.pod:1738
22982 msgid "(Added in 1.0.82)"
22983 msgstr ""
22984
22985 #. type: =head2
22986 #: ../src/guestfs-actions.pod:1740
22987 msgid "guestfs_fill"
22988 msgstr ""
22989
22990 #. type: verbatim
22991 #: ../src/guestfs-actions.pod:1742
22992 #, no-wrap
22993 msgid ""
22994 " int\n"
22995 " guestfs_fill (guestfs_h *g,\n"
22996 "               int c,\n"
22997 "               int len,\n"
22998 "               const char *path);\n"
22999 "\n"
23000 msgstr ""
23001
23002 #. type: textblock
23003 #: ../src/guestfs-actions.pod:1752
23004 msgid ""
23005 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
23006 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
23007 "bytes use C<guestfs_fill_pattern>."
23008 msgstr ""
23009
23010 #. type: textblock
23011 #: ../src/guestfs-actions.pod:1764
23012 msgid "(Added in 1.0.79)"
23013 msgstr ""
23014
23015 #. type: =head2
23016 #: ../src/guestfs-actions.pod:1766
23017 msgid "guestfs_fill_pattern"
23018 msgstr ""
23019
23020 #. type: verbatim
23021 #: ../src/guestfs-actions.pod:1768
23022 #, no-wrap
23023 msgid ""
23024 " int\n"
23025 " guestfs_fill_pattern (guestfs_h *g,\n"
23026 "                       const char *pattern,\n"
23027 "                       int len,\n"
23028 "                       const char *path);\n"
23029 "\n"
23030 msgstr ""
23031
23032 #. type: textblock
23033 #: ../src/guestfs-actions.pod:1774
23034 msgid ""
23035 "This function is like C<guestfs_fill> except that it creates a new file of "
23036 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
23037 "pattern is truncated if necessary to ensure the length of the file is "
23038 "exactly C<len> bytes."
23039 msgstr ""
23040
23041 #. type: textblock
23042 #: ../src/guestfs-actions.pod:1786
23043 msgid "(Added in 1.3.12)"
23044 msgstr ""
23045
23046 #. type: =head2
23047 #: ../src/guestfs-actions.pod:1788
23048 msgid "guestfs_find"
23049 msgstr ""
23050
23051 #. type: verbatim
23052 #: ../src/guestfs-actions.pod:1790
23053 #, no-wrap
23054 msgid ""
23055 " char **\n"
23056 " guestfs_find (guestfs_h *g,\n"
23057 "               const char *directory);\n"
23058 "\n"
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../src/guestfs-actions.pod:1806
23063 msgid "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
23064 msgstr ""
23065
23066 #. type: textblock
23067 #: ../src/guestfs-actions.pod:1819
23068 msgid "See also C<guestfs_find0>."
23069 msgstr ""
23070
23071 #. type: textblock
23072 #: ../src/guestfs-actions.pod:1828 ../src/guestfs-actions.pod:4299 ../src/guestfs-actions.pod:6009
23073 msgid "(Added in 1.0.27)"
23074 msgstr ""
23075
23076 #. type: =head2
23077 #: ../src/guestfs-actions.pod:1830
23078 msgid "guestfs_find0"
23079 msgstr ""
23080
23081 #. type: verbatim
23082 #: ../src/guestfs-actions.pod:1832
23083 #, no-wrap
23084 msgid ""
23085 " int\n"
23086 " guestfs_find0 (guestfs_h *g,\n"
23087 "                const char *directory,\n"
23088 "                const char *files);\n"
23089 "\n"
23090 msgstr ""
23091
23092 #. type: textblock
23093 #: ../src/guestfs-actions.pod:1841
23094 msgid ""
23095 "This command works the same way as C<guestfs_find> with the following "
23096 "exceptions:"
23097 msgstr ""
23098
23099 #. type: textblock
23100 #: ../src/guestfs-actions.pod:1868
23101 msgid "(Added in 1.0.74)"
23102 msgstr ""
23103
23104 #. type: =head2
23105 #: ../src/guestfs-actions.pod:1870
23106 msgid "guestfs_findfs_label"
23107 msgstr ""
23108
23109 #. type: verbatim
23110 #: ../src/guestfs-actions.pod:1872
23111 #, no-wrap
23112 msgid ""
23113 " char *\n"
23114 " guestfs_findfs_label (guestfs_h *g,\n"
23115 "                       const char *label);\n"
23116 "\n"
23117 msgstr ""
23118
23119 #. type: textblock
23120 #: ../src/guestfs-actions.pod:1880
23121 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
23122 msgstr ""
23123
23124 #. type: =head2
23125 #: ../src/guestfs-actions.pod:1887
23126 msgid "guestfs_findfs_uuid"
23127 msgstr ""
23128
23129 #. type: verbatim
23130 #: ../src/guestfs-actions.pod:1889
23131 #, no-wrap
23132 msgid ""
23133 " char *\n"
23134 " guestfs_findfs_uuid (guestfs_h *g,\n"
23135 "                      const char *uuid);\n"
23136 "\n"
23137 msgstr ""
23138
23139 #. type: textblock
23140 #: ../src/guestfs-actions.pod:1897
23141 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
23142 msgstr ""
23143
23144 #. type: =head2
23145 #: ../src/guestfs-actions.pod:1904
23146 msgid "guestfs_fsck"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../src/guestfs-actions.pod:1906
23151 #, no-wrap
23152 msgid ""
23153 " int\n"
23154 " guestfs_fsck (guestfs_h *g,\n"
23155 "               const char *fstype,\n"
23156 "               const char *device);\n"
23157 "\n"
23158 msgstr ""
23159
23160 #. type: textblock
23161 #: ../src/guestfs-actions.pod:1941 ../src/guestfs-actions.pod:7780
23162 msgid "(Added in 1.0.16)"
23163 msgstr ""
23164
23165 #. type: =head2
23166 #: ../src/guestfs-actions.pod:1943
23167 msgid "guestfs_get_append"
23168 msgstr ""
23169
23170 #. type: verbatim
23171 #: ../src/guestfs-actions.pod:1945
23172 #, no-wrap
23173 msgid ""
23174 " const char *\n"
23175 " guestfs_get_append (guestfs_h *g);\n"
23176 "\n"
23177 msgstr ""
23178
23179 #. type: textblock
23180 #: ../src/guestfs-actions.pod:1953
23181 msgid ""
23182 "This function returns a string which may be NULL.  There is no way to return "
23183 "an error from this function.  The string is owned by the guest handle and "
23184 "must I<not> be freed."
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../src/guestfs-actions.pod:1957 ../src/guestfs-actions.pod:5687 ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6630 ../src/guestfs-actions.pod:6646 ../src/guestfs-actions.pod:6670 ../src/guestfs-actions.pod:7424 ../src/guestfs-actions.pod:7439 ../src/guestfs-actions.pod:7823
23189 msgid "(Added in 1.0.26)"
23190 msgstr ""
23191
23192 #. type: =head2
23193 #: ../src/guestfs-actions.pod:1959
23194 msgid "guestfs_get_attach_method"
23195 msgstr ""
23196
23197 #. type: verbatim
23198 #: ../src/guestfs-actions.pod:1961
23199 #, no-wrap
23200 msgid ""
23201 " char *\n"
23202 " guestfs_get_attach_method (guestfs_h *g);\n"
23203 "\n"
23204 msgstr ""
23205
23206 #. type: textblock
23207 #: ../src/guestfs-actions.pod:1964
23208 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../src/guestfs-actions.pod:1969 ../src/guestfs-actions.pod:6199
23213 msgid "(Added in 1.9.8)"
23214 msgstr ""
23215
23216 #. type: =head2
23217 #: ../src/guestfs-actions.pod:1971
23218 msgid "guestfs_get_autosync"
23219 msgstr ""
23220
23221 #. type: verbatim
23222 #: ../src/guestfs-actions.pod:1973
23223 #, no-wrap
23224 msgid ""
23225 " int\n"
23226 " guestfs_get_autosync (guestfs_h *g);\n"
23227 "\n"
23228 msgstr ""
23229
23230 #. type: =head2
23231 #: ../src/guestfs-actions.pod:1982
23232 msgid "guestfs_get_direct"
23233 msgstr ""
23234
23235 #. type: verbatim
23236 #: ../src/guestfs-actions.pod:1984
23237 #, no-wrap
23238 msgid ""
23239 " int\n"
23240 " guestfs_get_direct (guestfs_h *g);\n"
23241 "\n"
23242 msgstr ""
23243
23244 #. type: textblock
23245 #: ../src/guestfs-actions.pod:1991 ../src/guestfs-actions.pod:6240
23246 msgid "(Added in 1.0.72)"
23247 msgstr ""
23248
23249 #. type: =head2
23250 #: ../src/guestfs-actions.pod:1993
23251 msgid "guestfs_get_e2label"
23252 msgstr ""
23253
23254 #. type: verbatim
23255 #: ../src/guestfs-actions.pod:1995
23256 #, no-wrap
23257 msgid ""
23258 " char *\n"
23259 " guestfs_get_e2label (guestfs_h *g,\n"
23260 "                      const char *device);\n"
23261 "\n"
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../src/guestfs-actions.pod:1999
23266 msgid ""
23267 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
23268 "call instead."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../src/guestfs-actions.pod:2012 ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:6258 ../src/guestfs-actions.pod:6277
23273 msgid "(Added in 1.0.15)"
23274 msgstr ""
23275
23276 #. type: =head2
23277 #: ../src/guestfs-actions.pod:2014
23278 msgid "guestfs_get_e2uuid"
23279 msgstr ""
23280
23281 #. type: verbatim
23282 #: ../src/guestfs-actions.pod:2016
23283 #, no-wrap
23284 msgid ""
23285 " char *\n"
23286 " guestfs_get_e2uuid (guestfs_h *g,\n"
23287 "                     const char *device);\n"
23288 "\n"
23289 msgstr ""
23290
23291 #. type: textblock
23292 #: ../src/guestfs-actions.pod:2020
23293 msgid ""
23294 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
23295 "call instead."
23296 msgstr ""
23297
23298 #. type: =head2
23299 #: ../src/guestfs-actions.pod:2035
23300 msgid "guestfs_get_memsize"
23301 msgstr ""
23302
23303 #. type: verbatim
23304 #: ../src/guestfs-actions.pod:2037
23305 #, no-wrap
23306 msgid ""
23307 " int\n"
23308 " guestfs_get_memsize (guestfs_h *g);\n"
23309 "\n"
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../src/guestfs-actions.pod:2043
23314 msgid ""
23315 "If C<guestfs_set_memsize> was not called on this handle, and if "
23316 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
23317 "value for memsize."
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4818 ../src/guestfs-actions.pod:4837 ../src/guestfs-actions.pod:4849 ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6578 ../src/guestfs-actions.pod:7193
23322 msgid "(Added in 1.0.55)"
23323 msgstr ""
23324
23325 #. type: =head2
23326 #: ../src/guestfs-actions.pod:2054
23327 msgid "guestfs_get_network"
23328 msgstr ""
23329
23330 #. type: verbatim
23331 #: ../src/guestfs-actions.pod:2056
23332 #, no-wrap
23333 msgid ""
23334 " int\n"
23335 " guestfs_get_network (guestfs_h *g);\n"
23336 "\n"
23337 msgstr ""
23338
23339 #. type: textblock
23340 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:6317
23341 msgid "(Added in 1.5.4)"
23342 msgstr ""
23343
23344 #. type: =head2
23345 #: ../src/guestfs-actions.pod:2065
23346 msgid "guestfs_get_path"
23347 msgstr ""
23348
23349 #. type: verbatim
23350 #: ../src/guestfs-actions.pod:2067
23351 #, no-wrap
23352 msgid ""
23353 " const char *\n"
23354 " guestfs_get_path (guestfs_h *g);\n"
23355 "\n"
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../src/guestfs-actions.pod:2075 ../src/guestfs-actions.pod:2115
23360 msgid ""
23361 "This function returns a string, or NULL on error.  The string is owned by "
23362 "the guest handle and must I<not> be freed."
23363 msgstr ""
23364
23365 #. type: =head2
23366 #: ../src/guestfs-actions.pod:2080
23367 msgid "guestfs_get_pgroup"
23368 msgstr ""
23369
23370 #. type: verbatim
23371 #: ../src/guestfs-actions.pod:2082
23372 #, no-wrap
23373 msgid ""
23374 " int\n"
23375 " guestfs_get_pgroup (guestfs_h *g);\n"
23376 "\n"
23377 msgstr ""
23378
23379 #. type: textblock
23380 #: ../src/guestfs-actions.pod:2089 ../src/guestfs-actions.pod:6353 ../src/guestfs-actions.pod:7685
23381 msgid "(Added in 1.11.18)"
23382 msgstr ""
23383
23384 #. type: =head2
23385 #: ../src/guestfs-actions.pod:2091
23386 msgid "guestfs_get_pid"
23387 msgstr ""
23388
23389 #. type: verbatim
23390 #: ../src/guestfs-actions.pod:2093
23391 #, no-wrap
23392 msgid ""
23393 " int\n"
23394 " guestfs_get_pid (guestfs_h *g);\n"
23395 "\n"
23396 msgstr ""
23397
23398 #. type: textblock
23399 #: ../src/guestfs-actions.pod:2103
23400 msgid "(Added in 1.0.56)"
23401 msgstr ""
23402
23403 #. type: =head2
23404 #: ../src/guestfs-actions.pod:2105
23405 msgid "guestfs_get_qemu"
23406 msgstr ""
23407
23408 #. type: verbatim
23409 #: ../src/guestfs-actions.pod:2107
23410 #, no-wrap
23411 msgid ""
23412 " const char *\n"
23413 " guestfs_get_qemu (guestfs_h *g);\n"
23414 "\n"
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../src/guestfs-actions.pod:2118 ../src/guestfs-actions.pod:6381
23419 msgid "(Added in 1.0.6)"
23420 msgstr ""
23421
23422 #. type: =head2
23423 #: ../src/guestfs-actions.pod:2120
23424 msgid "guestfs_get_recovery_proc"
23425 msgstr ""
23426
23427 #. type: verbatim
23428 #: ../src/guestfs-actions.pod:2122
23429 #, no-wrap
23430 msgid ""
23431 " int\n"
23432 " guestfs_get_recovery_proc (guestfs_h *g);\n"
23433 "\n"
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../src/guestfs-actions.pod:2129 ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4397 ../src/guestfs-actions.pod:4429 ../src/guestfs-actions.pod:5617 ../src/guestfs-actions.pod:5960 ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:7096 ../src/guestfs-actions.pod:7116 ../src/guestfs-actions.pod:7308
23438 msgid "(Added in 1.0.77)"
23439 msgstr ""
23440
23441 #. type: =head2
23442 #: ../src/guestfs-actions.pod:2131
23443 msgid "guestfs_get_selinux"
23444 msgstr ""
23445
23446 #. type: verbatim
23447 #: ../src/guestfs-actions.pod:2133
23448 #, no-wrap
23449 msgid ""
23450 " int\n"
23451 " guestfs_get_selinux (guestfs_h *g);\n"
23452 "\n"
23453 msgstr ""
23454
23455 #. type: textblock
23456 #: ../src/guestfs-actions.pod:2136
23457 msgid ""
23458 "This returns the current setting of the selinux flag which is passed to the "
23459 "appliance at boot time.  See C<guestfs_set_selinux>."
23460 msgstr ""
23461
23462 #. type: textblock
23463 #: ../src/guestfs-actions.pod:2144 ../src/guestfs-actions.pod:2207 ../src/guestfs-actions.pod:6424 ../src/guestfs-actions.pod:6482
23464 msgid "(Added in 1.0.67)"
23465 msgstr ""
23466
23467 #. type: =head2
23468 #: ../src/guestfs-actions.pod:2146
23469 msgid "guestfs_get_state"
23470 msgstr ""
23471
23472 #. type: verbatim
23473 #: ../src/guestfs-actions.pod:2148
23474 #, no-wrap
23475 msgid ""
23476 " int\n"
23477 " guestfs_get_state (guestfs_h *g);\n"
23478 "\n"
23479 msgstr ""
23480
23481 #. type: =head2
23482 #: ../src/guestfs-actions.pod:2160
23483 msgid "guestfs_get_trace"
23484 msgstr ""
23485
23486 #. type: verbatim
23487 #: ../src/guestfs-actions.pod:2162
23488 #, no-wrap
23489 msgid ""
23490 " int\n"
23491 " guestfs_get_trace (guestfs_h *g);\n"
23492 "\n"
23493 msgstr ""
23494
23495 #. type: =head2
23496 #: ../src/guestfs-actions.pod:2171
23497 msgid "guestfs_get_umask"
23498 msgstr ""
23499
23500 #. type: verbatim
23501 #: ../src/guestfs-actions.pod:2173
23502 #, no-wrap
23503 msgid ""
23504 " int\n"
23505 " guestfs_get_umask (guestfs_h *g);\n"
23506 "\n"
23507 msgstr ""
23508
23509 #. type: textblock
23510 #: ../src/guestfs-actions.pod:2176
23511 msgid ""
23512 "Return the current umask.  By default the umask is C<022> unless it has been "
23513 "set by calling C<guestfs_umask>."
23514 msgstr ""
23515
23516 #. type: =head2
23517 #: ../src/guestfs-actions.pod:2183
23518 msgid "guestfs_get_verbose"
23519 msgstr ""
23520
23521 #. type: verbatim
23522 #: ../src/guestfs-actions.pod:2185
23523 #, no-wrap
23524 msgid ""
23525 " int\n"
23526 " guestfs_get_verbose (guestfs_h *g);\n"
23527 "\n"
23528 msgstr ""
23529
23530 #. type: =head2
23531 #: ../src/guestfs-actions.pod:2194
23532 msgid "guestfs_getcon"
23533 msgstr ""
23534
23535 #. type: verbatim
23536 #: ../src/guestfs-actions.pod:2196
23537 #, no-wrap
23538 msgid ""
23539 " char *\n"
23540 " guestfs_getcon (guestfs_h *g);\n"
23541 "\n"
23542 msgstr ""
23543
23544 #. type: textblock
23545 #: ../src/guestfs-actions.pod:2201
23546 msgid "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
23547 msgstr ""
23548
23549 #. type: =head2
23550 #: ../src/guestfs-actions.pod:2209
23551 msgid "guestfs_getxattr"
23552 msgstr ""
23553
23554 #. type: verbatim
23555 #: ../src/guestfs-actions.pod:2211
23556 #, no-wrap
23557 msgid ""
23558 " char *\n"
23559 " guestfs_getxattr (guestfs_h *g,\n"
23560 "                   const char *path,\n"
23561 "                   const char *name,\n"
23562 "                   size_t *size_r);\n"
23563 "\n"
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../src/guestfs-actions.pod:2217
23568 msgid ""
23569 "Get a single extended attribute from file C<path> named C<name>.  This call "
23570 "follows symlinks.  If you want to lookup an extended attribute for the "
23571 "symlink itself, use C<guestfs_lgetxattr>."
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../src/guestfs-actions.pod:2221 ../src/guestfs-actions.pod:3677
23576 msgid ""
23577 "Normally it is better to get all extended attributes from a file in one go "
23578 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
23579 "implementations are buggy and do not provide a way to list out attributes.  "
23580 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
23581 "extended attributes you want in advance and call this function."
23582 msgstr ""
23583
23584 #. type: textblock
23585 #: ../src/guestfs-actions.pod:2231
23586 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
23587 msgstr ""
23588
23589 #. type: textblock
23590 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:2424 ../src/guestfs-actions.pod:2894 ../src/guestfs-actions.pod:3689 ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:5817
23591 msgid ""
23592 "This function returns a buffer, or NULL on error.  The size of the returned "
23593 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
23594 "after use>."
23595 msgstr ""
23596
23597 #. type: textblock
23598 #: ../src/guestfs-actions.pod:2237 ../src/guestfs-actions.pod:3693
23599 msgid "(Added in 1.7.24)"
23600 msgstr ""
23601
23602 #. type: =head2
23603 #: ../src/guestfs-actions.pod:2239
23604 msgid "guestfs_getxattrs"
23605 msgstr ""
23606
23607 #. type: verbatim
23608 #: ../src/guestfs-actions.pod:2241
23609 #, no-wrap
23610 msgid ""
23611 " struct guestfs_xattr_list *\n"
23612 " guestfs_getxattrs (guestfs_h *g,\n"
23613 "                    const char *path);\n"
23614 "\n"
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../src/guestfs-actions.pod:2251
23619 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
23620 msgstr ""
23621
23622 #. type: textblock
23623 #: ../src/guestfs-actions.pod:2253 ../src/guestfs-actions.pod:3705 ../src/guestfs-actions.pod:4393
23624 msgid ""
23625 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
23626 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
23627 msgstr ""
23628
23629 #. type: textblock
23630 #: ../src/guestfs-actions.pod:2257 ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3944 ../src/guestfs-actions.pod:5990 ../src/guestfs-actions.pod:6501 ../src/guestfs-actions.pod:7888
23631 msgid "(Added in 1.0.59)"
23632 msgstr ""
23633
23634 #. type: =head2
23635 #: ../src/guestfs-actions.pod:2259
23636 msgid "guestfs_glob_expand"
23637 msgstr ""
23638
23639 #. type: verbatim
23640 #: ../src/guestfs-actions.pod:2261
23641 #, no-wrap
23642 msgid ""
23643 " char **\n"
23644 " guestfs_glob_expand (guestfs_h *g,\n"
23645 "                      const char *pattern);\n"
23646 "\n"
23647 msgstr ""
23648
23649 #. type: textblock
23650 #: ../src/guestfs-actions.pod:2280 ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6711
23651 msgid "(Added in 1.0.50)"
23652 msgstr ""
23653
23654 #. type: =head2
23655 #: ../src/guestfs-actions.pod:2282
23656 msgid "guestfs_grep"
23657 msgstr ""
23658
23659 #. type: verbatim
23660 #: ../src/guestfs-actions.pod:2284
23661 #, no-wrap
23662 msgid ""
23663 " char **\n"
23664 " guestfs_grep (guestfs_h *g,\n"
23665 "               const char *regex,\n"
23666 "               const char *path);\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: =head2
23671 #: ../src/guestfs-actions.pod:2301
23672 msgid "guestfs_grepi"
23673 msgstr ""
23674
23675 #. type: verbatim
23676 #: ../src/guestfs-actions.pod:2303
23677 #, no-wrap
23678 msgid ""
23679 " char **\n"
23680 " guestfs_grepi (guestfs_h *g,\n"
23681 "                const char *regex,\n"
23682 "                const char *path);\n"
23683 "\n"
23684 msgstr ""
23685
23686 #. type: =head2
23687 #: ../src/guestfs-actions.pod:2320
23688 msgid "guestfs_grub_install"
23689 msgstr ""
23690
23691 #. type: verbatim
23692 #: ../src/guestfs-actions.pod:2322
23693 #, no-wrap
23694 msgid ""
23695 " int\n"
23696 " guestfs_grub_install (guestfs_h *g,\n"
23697 "                       const char *root,\n"
23698 "                       const char *device);\n"
23699 "\n"
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../src/guestfs-actions.pod:2343
23704 msgid "(Added in 1.0.17)"
23705 msgstr ""
23706
23707 #. type: =head2
23708 #: ../src/guestfs-actions.pod:2345
23709 msgid "guestfs_head"
23710 msgstr ""
23711
23712 #. type: verbatim
23713 #: ../src/guestfs-actions.pod:2347
23714 #, no-wrap
23715 msgid ""
23716 " char **\n"
23717 " guestfs_head (guestfs_h *g,\n"
23718 "               const char *path);\n"
23719 "\n"
23720 msgstr ""
23721
23722 #. type: =head2
23723 #: ../src/guestfs-actions.pod:2363
23724 msgid "guestfs_head_n"
23725 msgstr ""
23726
23727 #. type: verbatim
23728 #: ../src/guestfs-actions.pod:2365
23729 #, no-wrap
23730 msgid ""
23731 " char **\n"
23732 " guestfs_head_n (guestfs_h *g,\n"
23733 "                 int nrlines,\n"
23734 "                 const char *path);\n"
23735 "\n"
23736 msgstr ""
23737
23738 #. type: =head2
23739 #: ../src/guestfs-actions.pod:2387
23740 msgid "guestfs_hexdump"
23741 msgstr ""
23742
23743 #. type: verbatim
23744 #: ../src/guestfs-actions.pod:2389
23745 #, no-wrap
23746 msgid ""
23747 " char *\n"
23748 " guestfs_hexdump (guestfs_h *g,\n"
23749 "                  const char *path);\n"
23750 "\n"
23751 msgstr ""
23752
23753 #. type: textblock
23754 #: ../src/guestfs-actions.pod:2402 ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6830
23755 msgid "(Added in 1.0.22)"
23756 msgstr ""
23757
23758 #. type: =head2
23759 #: ../src/guestfs-actions.pod:2404
23760 msgid "guestfs_initrd_cat"
23761 msgstr ""
23762
23763 #. type: verbatim
23764 #: ../src/guestfs-actions.pod:2406
23765 #, no-wrap
23766 msgid ""
23767 " char *\n"
23768 " guestfs_initrd_cat (guestfs_h *g,\n"
23769 "                     const char *initrdpath,\n"
23770 "                     const char *filename,\n"
23771 "                     size_t *size_r);\n"
23772 "\n"
23773 msgstr ""
23774
23775 #. type: textblock
23776 #: ../src/guestfs-actions.pod:2422
23777 msgid "See also C<guestfs_initrd_list>."
23778 msgstr ""
23779
23780 #. type: =head2
23781 #: ../src/guestfs-actions.pod:2433
23782 msgid "guestfs_initrd_list"
23783 msgstr ""
23784
23785 #. type: verbatim
23786 #: ../src/guestfs-actions.pod:2435
23787 #, no-wrap
23788 msgid ""
23789 " char **\n"
23790 " guestfs_initrd_list (guestfs_h *g,\n"
23791 "                      const char *path);\n"
23792 "\n"
23793 msgstr ""
23794
23795 #. type: =head2
23796 #: ../src/guestfs-actions.pod:2455
23797 msgid "guestfs_inotify_add_watch"
23798 msgstr ""
23799
23800 #. type: verbatim
23801 #: ../src/guestfs-actions.pod:2457
23802 #, no-wrap
23803 msgid ""
23804 " int64_t\n"
23805 " guestfs_inotify_add_watch (guestfs_h *g,\n"
23806 "                            const char *path,\n"
23807 "                            int mask);\n"
23808 "\n"
23809 msgstr ""
23810
23811 #. type: =head2
23812 #: ../src/guestfs-actions.pod:2476
23813 msgid "guestfs_inotify_close"
23814 msgstr ""
23815
23816 #. type: verbatim
23817 #: ../src/guestfs-actions.pod:2478
23818 #, no-wrap
23819 msgid ""
23820 " int\n"
23821 " guestfs_inotify_close (guestfs_h *g);\n"
23822 "\n"
23823 msgstr ""
23824
23825 #. type: =head2
23826 #: ../src/guestfs-actions.pod:2489
23827 msgid "guestfs_inotify_files"
23828 msgstr ""
23829
23830 #. type: verbatim
23831 #: ../src/guestfs-actions.pod:2491
23832 #, no-wrap
23833 msgid ""
23834 " char **\n"
23835 " guestfs_inotify_files (guestfs_h *g);\n"
23836 "\n"
23837 msgstr ""
23838
23839 #. type: textblock
23840 #: ../src/guestfs-actions.pod:2494
23841 msgid ""
23842 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
23843 "returns a list of pathnames of objects that were touched.  The returned "
23844 "pathnames are sorted and deduplicated."
23845 msgstr ""
23846
23847 #. type: =head2
23848 #: ../src/guestfs-actions.pod:2504
23849 msgid "guestfs_inotify_init"
23850 msgstr ""
23851
23852 #. type: verbatim
23853 #: ../src/guestfs-actions.pod:2506
23854 #, no-wrap
23855 msgid ""
23856 " int\n"
23857 " guestfs_inotify_init (guestfs_h *g,\n"
23858 "                       int maxevents);\n"
23859 "\n"
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../src/guestfs-actions.pod:2514
23864 msgid ""
23865 "C<maxevents> is the maximum number of events which will be queued up between "
23866 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
23867 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
23868 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
23869 "throws away events, but records the fact that it threw them away by setting "
23870 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
23871 "C<guestfs_inotify_read>)."
23872 msgstr ""
23873
23874 #. type: textblock
23875 #: ../src/guestfs-actions.pod:2524
23876 msgid ""
23877 "Before any events are generated, you have to add some watches to the "
23878 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
23879 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
23880 msgstr ""
23881
23882 #. type: textblock
23883 #: ../src/guestfs-actions.pod:2530
23884 msgid ""
23885 "Queued up events should be read periodically by calling "
23886 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
23887 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
23888 "often enough then you risk the internal queue overflowing."
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../src/guestfs-actions.pod:2537
23893 msgid ""
23894 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
23895 "This also removes any watches automatically."
23896 msgstr ""
23897
23898 #. type: =head2
23899 #: ../src/guestfs-actions.pod:2550
23900 msgid "guestfs_inotify_read"
23901 msgstr ""
23902
23903 #. type: verbatim
23904 #: ../src/guestfs-actions.pod:2552
23905 #, no-wrap
23906 msgid ""
23907 " struct guestfs_inotify_event_list *\n"
23908 " guestfs_inotify_read (guestfs_h *g);\n"
23909 "\n"
23910 msgstr ""
23911
23912 #. type: textblock
23913 #: ../src/guestfs-actions.pod:2566
23914 msgid ""
23915 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
23916 "there was an error.  I<The caller must call "
23917 "C<guestfs_free_inotify_event_list> after use>."
23918 msgstr ""
23919
23920 #. type: =head2
23921 #: ../src/guestfs-actions.pod:2572
23922 msgid "guestfs_inotify_rm_watch"
23923 msgstr ""
23924
23925 #. type: verbatim
23926 #: ../src/guestfs-actions.pod:2574
23927 #, no-wrap
23928 msgid ""
23929 " int\n"
23930 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
23931 "                           int wd);\n"
23932 "\n"
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../src/guestfs-actions.pod:2578
23937 msgid ""
23938 "Remove a previously defined inotify watch.  See "
23939 "C<guestfs_inotify_add_watch>."
23940 msgstr ""
23941
23942 #. type: =head2
23943 #: ../src/guestfs-actions.pod:2585
23944 msgid "guestfs_inspect_get_arch"
23945 msgstr ""
23946
23947 #. type: verbatim
23948 #: ../src/guestfs-actions.pod:2587
23949 #, no-wrap
23950 msgid ""
23951 " char *\n"
23952 " guestfs_inspect_get_arch (guestfs_h *g,\n"
23953 "                           const char *root);\n"
23954 "\n"
23955 msgstr ""
23956
23957 #. type: textblock
23958 #: ../src/guestfs-actions.pod:2591
23959 msgid ""
23960 "This returns the architecture of the inspected operating system.  The "
23961 "possible return values are listed under C<guestfs_file_architecture>."
23962 msgstr ""
23963
23964 #. type: =head2
23965 #: ../src/guestfs-actions.pod:2605
23966 msgid "guestfs_inspect_get_distro"
23967 msgstr ""
23968
23969 #. type: verbatim
23970 #: ../src/guestfs-actions.pod:2607
23971 #, no-wrap
23972 msgid ""
23973 " char *\n"
23974 " guestfs_inspect_get_distro (guestfs_h *g,\n"
23975 "                             const char *root);\n"
23976 "\n"
23977 msgstr ""
23978
23979 #. type: =head2
23980 #: ../src/guestfs-actions.pod:2695
23981 msgid "guestfs_inspect_get_drive_mappings"
23982 msgstr ""
23983
23984 #. type: verbatim
23985 #: ../src/guestfs-actions.pod:2697
23986 #, no-wrap
23987 msgid ""
23988 " char **\n"
23989 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
23990 "                                     const char *root);\n"
23991 "\n"
23992 msgstr ""
23993
23994 #. type: textblock
23995 #: ../src/guestfs-actions.pod:2726
23996 msgid ""
23997 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
23998 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
23999 msgstr ""
24000
24001 #. type: textblock
24002 #: ../src/guestfs-actions.pod:2730 ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3796 ../src/guestfs-actions.pod:5078 ../src/guestfs-actions.pod:7132
24003 msgid ""
24004 "This function returns a NULL-terminated array of strings, or NULL if there "
24005 "was an error.  The array of strings will always have length C<2n+1>, where "
24006 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
24007 "caller must free the strings and the array after use>."
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../src/guestfs-actions.pod:2736 ../src/guestfs-actions.pod:3192
24012 msgid "(Added in 1.9.17)"
24013 msgstr ""
24014
24015 #. type: =head2
24016 #: ../src/guestfs-actions.pod:2738
24017 msgid "guestfs_inspect_get_filesystems"
24018 msgstr ""
24019
24020 #. type: verbatim
24021 #: ../src/guestfs-actions.pod:2740
24022 #, no-wrap
24023 msgid ""
24024 " char **\n"
24025 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
24026 "                                  const char *root);\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../src/guestfs-actions.pod:2752
24032 msgid ""
24033 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24034 "C<guestfs_inspect_get_mountpoints>."
24035 msgstr ""
24036
24037 #. type: =head2
24038 #: ../src/guestfs-actions.pod:2761
24039 msgid "guestfs_inspect_get_format"
24040 msgstr ""
24041
24042 #. type: verbatim
24043 #: ../src/guestfs-actions.pod:2763
24044 #, no-wrap
24045 msgid ""
24046 " char *\n"
24047 " guestfs_inspect_get_format (guestfs_h *g,\n"
24048 "                             const char *root);\n"
24049 "\n"
24050 msgstr ""
24051
24052 #. type: textblock
24053 #: ../src/guestfs-actions.pod:2797 ../src/guestfs-actions.pod:3228 ../src/guestfs-actions.pod:3244 ../src/guestfs-actions.pod:3262 ../src/guestfs-actions.pod:6028
24054 msgid "(Added in 1.9.4)"
24055 msgstr ""
24056
24057 #. type: =head2
24058 #: ../src/guestfs-actions.pod:2799
24059 msgid "guestfs_inspect_get_hostname"
24060 msgstr ""
24061
24062 #. type: verbatim
24063 #: ../src/guestfs-actions.pod:2801
24064 #, no-wrap
24065 msgid ""
24066 " char *\n"
24067 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
24068 "                               const char *root);\n"
24069 "\n"
24070 msgstr ""
24071
24072 #. type: textblock
24073 #: ../src/guestfs-actions.pod:2816
24074 msgid "(Added in 1.7.9)"
24075 msgstr ""
24076
24077 #. type: =head2
24078 #: ../src/guestfs-actions.pod:2818
24079 msgid "guestfs_inspect_get_icon"
24080 msgstr ""
24081
24082 #. type: verbatim
24083 #: ../src/guestfs-actions.pod:2820
24084 #, no-wrap
24085 msgid ""
24086 " char *\n"
24087 " guestfs_inspect_get_icon (guestfs_h *g,\n"
24088 "                           const char *root,\n"
24089 "                           size_t *size_r,\n"
24090 "                           ...);\n"
24091 "\n"
24092 msgstr ""
24093
24094 #. type: verbatim
24095 #: ../src/guestfs-actions.pod:2831
24096 #, no-wrap
24097 msgid ""
24098 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
24099 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
24100 "\n"
24101 msgstr ""
24102
24103 #. type: textblock
24104 #: ../src/guestfs-actions.pod:2898 ../src/guestfs-actions.pod:3723 ../src/guestfs-actions.pod:4977
24105 msgid "(Added in 1.11.12)"
24106 msgstr ""
24107
24108 #. type: =head2
24109 #: ../src/guestfs-actions.pod:2900
24110 msgid "guestfs_inspect_get_icon_va"
24111 msgstr ""
24112
24113 #. type: verbatim
24114 #: ../src/guestfs-actions.pod:2902
24115 #, no-wrap
24116 msgid ""
24117 " char *\n"
24118 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
24119 "                              const char *root,\n"
24120 "                              size_t *size_r,\n"
24121 "                              va_list args);\n"
24122 "\n"
24123 msgstr ""
24124
24125 #. type: textblock
24126 #: ../src/guestfs-actions.pod:2908
24127 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
24128 msgstr ""
24129
24130 #. type: =head2
24131 #: ../src/guestfs-actions.pod:2912
24132 msgid "guestfs_inspect_get_icon_argv"
24133 msgstr ""
24134
24135 #. type: verbatim
24136 #: ../src/guestfs-actions.pod:2914
24137 #, no-wrap
24138 msgid ""
24139 " char *\n"
24140 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
24141 "                                const char *root,\n"
24142 "                                size_t *size_r,\n"
24143 "                                const struct guestfs_inspect_get_icon_argv "
24144 "*optargs);\n"
24145 "\n"
24146 msgstr ""
24147
24148 #. type: textblock
24149 #: ../src/guestfs-actions.pod:2920
24150 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
24151 msgstr ""
24152
24153 #. type: =head2
24154 #: ../src/guestfs-actions.pod:2924
24155 msgid "guestfs_inspect_get_major_version"
24156 msgstr ""
24157
24158 #. type: verbatim
24159 #: ../src/guestfs-actions.pod:2926
24160 #, no-wrap
24161 msgid ""
24162 " int\n"
24163 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
24164 "                                    const char *root);\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: =head2
24169 #: ../src/guestfs-actions.pod:2948
24170 msgid "guestfs_inspect_get_minor_version"
24171 msgstr ""
24172
24173 #. type: verbatim
24174 #: ../src/guestfs-actions.pod:2950
24175 #, no-wrap
24176 msgid ""
24177 " int\n"
24178 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
24179 "                                    const char *root);\n"
24180 "\n"
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../src/guestfs-actions.pod:2959
24185 msgid ""
24186 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24187 "C<guestfs_inspect_get_major_version>."
24188 msgstr ""
24189
24190 #. type: =head2
24191 #: ../src/guestfs-actions.pod:2966
24192 msgid "guestfs_inspect_get_mountpoints"
24193 msgstr ""
24194
24195 #. type: verbatim
24196 #: ../src/guestfs-actions.pod:2968
24197 #, no-wrap
24198 msgid ""
24199 " char **\n"
24200 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
24201 "                                  const char *root);\n"
24202 "\n"
24203 msgstr ""
24204
24205 #. type: textblock
24206 #: ../src/guestfs-actions.pod:2989
24207 msgid ""
24208 "For operating systems like Windows which still use drive letters, this call "
24209 "will only return an entry for the first drive \"mounted on\" C</>.  For "
24210 "information about the mapping of drive letters to partitions, see "
24211 "C<guestfs_inspect_get_drive_mappings>."
24212 msgstr ""
24213
24214 #. type: textblock
24215 #: ../src/guestfs-actions.pod:2995
24216 msgid ""
24217 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24218 "C<guestfs_inspect_get_filesystems>."
24219 msgstr ""
24220
24221 #. type: =head2
24222 #: ../src/guestfs-actions.pod:3006
24223 msgid "guestfs_inspect_get_package_format"
24224 msgstr ""
24225
24226 #. type: verbatim
24227 #: ../src/guestfs-actions.pod:3008
24228 #, no-wrap
24229 msgid ""
24230 " char *\n"
24231 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
24232 "                                     const char *root);\n"
24233 "\n"
24234 msgstr ""
24235
24236 #. type: textblock
24237 #: ../src/guestfs-actions.pod:3012
24238 msgid ""
24239 "This function and C<guestfs_inspect_get_package_management> return the "
24240 "package format and package management tool used by the inspected operating "
24241 "system.  For example for Fedora these functions would return C<rpm> (package "
24242 "format) and C<yum> (package management)."
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
24247 msgid "(Added in 1.7.5)"
24248 msgstr ""
24249
24250 #. type: =head2
24251 #: ../src/guestfs-actions.pod:3032
24252 msgid "guestfs_inspect_get_package_management"
24253 msgstr ""
24254
24255 #. type: verbatim
24256 #: ../src/guestfs-actions.pod:3034
24257 #, no-wrap
24258 msgid ""
24259 " char *\n"
24260 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
24261 "                                         const char *root);\n"
24262 "\n"
24263 msgstr ""
24264
24265 #. type: textblock
24266 #: ../src/guestfs-actions.pod:3038
24267 msgid ""
24268 "C<guestfs_inspect_get_package_format> and this function return the package "
24269 "format and package management tool used by the inspected operating system.  "
24270 "For example for Fedora these functions would return C<rpm> (package format) "
24271 "and C<yum> (package management)."
24272 msgstr ""
24273
24274 #. type: =head2
24275 #: ../src/guestfs-actions.pod:3060
24276 msgid "guestfs_inspect_get_product_name"
24277 msgstr ""
24278
24279 #. type: verbatim
24280 #: ../src/guestfs-actions.pod:3062
24281 #, no-wrap
24282 msgid ""
24283 " char *\n"
24284 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
24285 "                                   const char *root);\n"
24286 "\n"
24287 msgstr ""
24288
24289 #. type: =head2
24290 #: ../src/guestfs-actions.pod:3081
24291 msgid "guestfs_inspect_get_product_variant"
24292 msgstr ""
24293
24294 #. type: verbatim
24295 #: ../src/guestfs-actions.pod:3083
24296 #, no-wrap
24297 msgid ""
24298 " char *\n"
24299 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
24300 "                                      const char *root);\n"
24301 "\n"
24302 msgstr ""
24303
24304 #. type: textblock
24305 #: ../src/guestfs-actions.pod:3106
24306 msgid ""
24307 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
24308 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
24309 msgstr ""
24310
24311 #. type: textblock
24312 #: ../src/guestfs-actions.pod:3113
24313 msgid "(Added in 1.9.13)"
24314 msgstr ""
24315
24316 #. type: =head2
24317 #: ../src/guestfs-actions.pod:3115
24318 msgid "guestfs_inspect_get_roots"
24319 msgstr ""
24320
24321 #. type: verbatim
24322 #: ../src/guestfs-actions.pod:3117
24323 #, no-wrap
24324 msgid ""
24325 " char **\n"
24326 " guestfs_inspect_get_roots (guestfs_h *g);\n"
24327 "\n"
24328 msgstr ""
24329
24330 #. type: textblock
24331 #: ../src/guestfs-actions.pod:3120
24332 msgid ""
24333 "This function is a convenient way to get the list of root devices, as "
24334 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
24335 "the whole inspection process."
24336 msgstr ""
24337
24338 #. type: textblock
24339 #: ../src/guestfs-actions.pod:3124
24340 msgid ""
24341 "This returns an empty list if either no root devices were found or the "
24342 "caller has not called C<guestfs_inspect_os>."
24343 msgstr ""
24344
24345 #. type: textblock
24346 #: ../src/guestfs-actions.pod:3133
24347 msgid "(Added in 1.7.3)"
24348 msgstr ""
24349
24350 #. type: =head2
24351 #: ../src/guestfs-actions.pod:3135
24352 msgid "guestfs_inspect_get_type"
24353 msgstr ""
24354
24355 #. type: verbatim
24356 #: ../src/guestfs-actions.pod:3137
24357 #, no-wrap
24358 msgid ""
24359 " char *\n"
24360 " guestfs_inspect_get_type (guestfs_h *g,\n"
24361 "                           const char *root);\n"
24362 "\n"
24363 msgstr ""
24364
24365 #. type: =head2
24366 #: ../src/guestfs-actions.pod:3174
24367 msgid "guestfs_inspect_get_windows_current_control_set"
24368 msgstr ""
24369
24370 #. type: verbatim
24371 #: ../src/guestfs-actions.pod:3176
24372 #, no-wrap
24373 msgid ""
24374 " char *\n"
24375 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
24376 "                                                  const char *root);\n"
24377 "\n"
24378 msgstr ""
24379
24380 #. type: =head2
24381 #: ../src/guestfs-actions.pod:3194
24382 msgid "guestfs_inspect_get_windows_systemroot"
24383 msgstr ""
24384
24385 #. type: verbatim
24386 #: ../src/guestfs-actions.pod:3196
24387 #, no-wrap
24388 msgid ""
24389 " char *\n"
24390 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
24391 "                                         const char *root);\n"
24392 "\n"
24393 msgstr ""
24394
24395 #. type: textblock
24396 #: ../src/guestfs-actions.pod:3212
24397 msgid "(Added in 1.5.25)"
24398 msgstr ""
24399
24400 #. type: =head2
24401 #: ../src/guestfs-actions.pod:3214
24402 msgid "guestfs_inspect_is_live"
24403 msgstr ""
24404
24405 #. type: verbatim
24406 #: ../src/guestfs-actions.pod:3216
24407 #, no-wrap
24408 msgid ""
24409 " int\n"
24410 " guestfs_inspect_is_live (guestfs_h *g,\n"
24411 "                          const char *root);\n"
24412 "\n"
24413 msgstr ""
24414
24415 #. type: textblock
24416 #: ../src/guestfs-actions.pod:3220
24417 msgid ""
24418 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24419 "disk), then this returns true if a live image was detected on the disk."
24420 msgstr ""
24421
24422 #. type: =head2
24423 #: ../src/guestfs-actions.pod:3230
24424 msgid "guestfs_inspect_is_multipart"
24425 msgstr ""
24426
24427 #. type: verbatim
24428 #: ../src/guestfs-actions.pod:3232
24429 #, no-wrap
24430 msgid ""
24431 " int\n"
24432 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
24433 "                               const char *root);\n"
24434 "\n"
24435 msgstr ""
24436
24437 #. type: textblock
24438 #: ../src/guestfs-actions.pod:3236
24439 msgid ""
24440 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24441 "disk), then this returns true if the disk is part of a set."
24442 msgstr ""
24443
24444 #. type: =head2
24445 #: ../src/guestfs-actions.pod:3246
24446 msgid "guestfs_inspect_is_netinst"
24447 msgstr ""
24448
24449 #. type: verbatim
24450 #: ../src/guestfs-actions.pod:3248
24451 #, no-wrap
24452 msgid ""
24453 " int\n"
24454 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
24455 "                             const char *root);\n"
24456 "\n"
24457 msgstr ""
24458
24459 #. type: textblock
24460 #: ../src/guestfs-actions.pod:3252
24461 msgid ""
24462 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
24463 "disk), then this returns true if the disk is a network installer, ie. not a "
24464 "self-contained install CD but one which is likely to require network access "
24465 "to complete the install."
24466 msgstr ""
24467
24468 #. type: =head2
24469 #: ../src/guestfs-actions.pod:3264
24470 msgid "guestfs_inspect_list_applications"
24471 msgstr ""
24472
24473 #. type: verbatim
24474 #: ../src/guestfs-actions.pod:3266
24475 #, no-wrap
24476 msgid ""
24477 " struct guestfs_application_list *\n"
24478 " guestfs_inspect_list_applications (guestfs_h *g,\n"
24479 "                                    const char *root);\n"
24480 "\n"
24481 msgstr ""
24482
24483 #. type: textblock
24484 #: ../src/guestfs-actions.pod:3272
24485 msgid ""
24486 "I<Note:> This call works differently from other parts of the inspection "
24487 "API.  You have to call C<guestfs_inspect_os>, then "
24488 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
24489 "this.  Listing applications is a significantly more difficult operation "
24490 "which requires access to the full filesystem.  Also note that unlike the "
24491 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
24492 "the libguestfs handle, this call actually reads parts of the mounted "
24493 "filesystems during the call."
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../src/guestfs-actions.pod:3362
24498 msgid ""
24499 "This function returns a C<struct guestfs_application_list *>, or NULL if "
24500 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
24501 "after use>."
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../src/guestfs-actions.pod:3366
24506 msgid "(Added in 1.7.8)"
24507 msgstr ""
24508
24509 #. type: =head2
24510 #: ../src/guestfs-actions.pod:3368
24511 msgid "guestfs_inspect_os"
24512 msgstr ""
24513
24514 #. type: verbatim
24515 #: ../src/guestfs-actions.pod:3370
24516 #, no-wrap
24517 msgid ""
24518 " char **\n"
24519 " guestfs_inspect_os (guestfs_h *g);\n"
24520 "\n"
24521 msgstr ""
24522
24523 #. type: textblock
24524 #: ../src/guestfs-actions.pod:3386
24525 msgid ""
24526 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
24527 "functions in order to query further information about each operating system, "
24528 "such as the name and version."
24529 msgstr ""
24530
24531 #. type: textblock
24532 #: ../src/guestfs-actions.pod:3391
24533 msgid ""
24534 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
24535 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
24536 "the contents.  This should be called with no disks currently mounted.  The "
24537 "function may also use Augeas, so any existing Augeas handle will be closed."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../src/guestfs-actions.pod:3403 ../src/guestfs-actions.pod:3734 ../src/guestfs-actions.pod:3816
24542 msgid "See also C<guestfs_list_filesystems>."
24543 msgstr ""
24544
24545 #. type: =head2
24546 #: ../src/guestfs-actions.pod:3411
24547 msgid "guestfs_is_blockdev"
24548 msgstr ""
24549
24550 #. type: verbatim
24551 #: ../src/guestfs-actions.pod:3413
24552 #, no-wrap
24553 msgid ""
24554 " int\n"
24555 " guestfs_is_blockdev (guestfs_h *g,\n"
24556 "                      const char *path);\n"
24557 "\n"
24558 msgstr ""
24559
24560 #. type: textblock
24561 #: ../src/guestfs-actions.pod:3420 ../src/guestfs-actions.pod:3449 ../src/guestfs-actions.pod:3479 ../src/guestfs-actions.pod:3494 ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3566 ../src/guestfs-actions.pod:3581
24562 msgid "See also C<guestfs_stat>."
24563 msgstr ""
24564
24565 #. type: textblock
24566 #: ../src/guestfs-actions.pod:3424 ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:3585
24567 msgid "(Added in 1.5.10)"
24568 msgstr ""
24569
24570 #. type: =head2
24571 #: ../src/guestfs-actions.pod:3426
24572 msgid "guestfs_is_busy"
24573 msgstr ""
24574
24575 #. type: verbatim
24576 #: ../src/guestfs-actions.pod:3428
24577 #, no-wrap
24578 msgid ""
24579 " int\n"
24580 " guestfs_is_busy (guestfs_h *g);\n"
24581 "\n"
24582 msgstr ""
24583
24584 #. type: =head2
24585 #: ../src/guestfs-actions.pod:3440
24586 msgid "guestfs_is_chardev"
24587 msgstr ""
24588
24589 #. type: verbatim
24590 #: ../src/guestfs-actions.pod:3442
24591 #, no-wrap
24592 msgid ""
24593 " int\n"
24594 " guestfs_is_chardev (guestfs_h *g,\n"
24595 "                     const char *path);\n"
24596 "\n"
24597 msgstr ""
24598
24599 #. type: =head2
24600 #: ../src/guestfs-actions.pod:3455
24601 msgid "guestfs_is_config"
24602 msgstr ""
24603
24604 #. type: verbatim
24605 #: ../src/guestfs-actions.pod:3457
24606 #, no-wrap
24607 msgid ""
24608 " int\n"
24609 " guestfs_is_config (guestfs_h *g);\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: =head2
24614 #: ../src/guestfs-actions.pod:3469
24615 msgid "guestfs_is_dir"
24616 msgstr ""
24617
24618 #. type: verbatim
24619 #: ../src/guestfs-actions.pod:3471
24620 #, no-wrap
24621 msgid ""
24622 " int\n"
24623 " guestfs_is_dir (guestfs_h *g,\n"
24624 "                 const char *path);\n"
24625 "\n"
24626 msgstr ""
24627
24628 #. type: =head2
24629 #: ../src/guestfs-actions.pod:3485
24630 msgid "guestfs_is_fifo"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../src/guestfs-actions.pod:3487
24635 #, no-wrap
24636 msgid ""
24637 " int\n"
24638 " guestfs_is_fifo (guestfs_h *g,\n"
24639 "                  const char *path);\n"
24640 "\n"
24641 msgstr ""
24642
24643 #. type: =head2
24644 #: ../src/guestfs-actions.pod:3500
24645 msgid "guestfs_is_file"
24646 msgstr ""
24647
24648 #. type: verbatim
24649 #: ../src/guestfs-actions.pod:3502
24650 #, no-wrap
24651 msgid ""
24652 " int\n"
24653 " guestfs_is_file (guestfs_h *g,\n"
24654 "                  const char *path);\n"
24655 "\n"
24656 msgstr ""
24657
24658 #. type: =head2
24659 #: ../src/guestfs-actions.pod:3516
24660 msgid "guestfs_is_launching"
24661 msgstr ""
24662
24663 #. type: verbatim
24664 #: ../src/guestfs-actions.pod:3518
24665 #, no-wrap
24666 msgid ""
24667 " int\n"
24668 " guestfs_is_launching (guestfs_h *g);\n"
24669 "\n"
24670 msgstr ""
24671
24672 #. type: =head2
24673 #: ../src/guestfs-actions.pod:3530
24674 msgid "guestfs_is_lv"
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../src/guestfs-actions.pod:3532
24679 #, no-wrap
24680 msgid ""
24681 " int\n"
24682 " guestfs_is_lv (guestfs_h *g,\n"
24683 "                const char *device);\n"
24684 "\n"
24685 msgstr ""
24686
24687 #. type: =head2
24688 #: ../src/guestfs-actions.pod:3543
24689 msgid "guestfs_is_ready"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../src/guestfs-actions.pod:3545
24694 #, no-wrap
24695 msgid ""
24696 " int\n"
24697 " guestfs_is_ready (guestfs_h *g);\n"
24698 "\n"
24699 msgstr ""
24700
24701 #. type: =head2
24702 #: ../src/guestfs-actions.pod:3557
24703 msgid "guestfs_is_socket"
24704 msgstr ""
24705
24706 #. type: verbatim
24707 #: ../src/guestfs-actions.pod:3559
24708 #, no-wrap
24709 msgid ""
24710 " int\n"
24711 " guestfs_is_socket (guestfs_h *g,\n"
24712 "                    const char *path);\n"
24713 "\n"
24714 msgstr ""
24715
24716 #. type: =head2
24717 #: ../src/guestfs-actions.pod:3572
24718 msgid "guestfs_is_symlink"
24719 msgstr ""
24720
24721 #. type: verbatim
24722 #: ../src/guestfs-actions.pod:3574
24723 #, no-wrap
24724 msgid ""
24725 " int\n"
24726 " guestfs_is_symlink (guestfs_h *g,\n"
24727 "                     const char *path);\n"
24728 "\n"
24729 msgstr ""
24730
24731 #. type: =head2
24732 #: ../src/guestfs-actions.pod:3587
24733 msgid "guestfs_is_zero"
24734 msgstr ""
24735
24736 #. type: verbatim
24737 #: ../src/guestfs-actions.pod:3589
24738 #, no-wrap
24739 msgid ""
24740 " int\n"
24741 " guestfs_is_zero (guestfs_h *g,\n"
24742 "                  const char *path);\n"
24743 "\n"
24744 msgstr ""
24745
24746 #. type: textblock
24747 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
24748 msgid "(Added in 1.11.8)"
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../src/guestfs-actions.pod:3600
24753 msgid "guestfs_is_zero_device"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../src/guestfs-actions.pod:3602
24758 #, no-wrap
24759 msgid ""
24760 " int\n"
24761 " guestfs_is_zero_device (guestfs_h *g,\n"
24762 "                         const char *device);\n"
24763 "\n"
24764 msgstr ""
24765
24766 #. type: =head2
24767 #: ../src/guestfs-actions.pod:3614
24768 msgid "guestfs_kill_subprocess"
24769 msgstr ""
24770
24771 #. type: verbatim
24772 #: ../src/guestfs-actions.pod:3616
24773 #, no-wrap
24774 msgid ""
24775 " int\n"
24776 " guestfs_kill_subprocess (guestfs_h *g);\n"
24777 "\n"
24778 msgstr ""
24779
24780 #. type: =head2
24781 #: ../src/guestfs-actions.pod:3625
24782 msgid "guestfs_launch"
24783 msgstr ""
24784
24785 #. type: verbatim
24786 #: ../src/guestfs-actions.pod:3627
24787 #, no-wrap
24788 msgid ""
24789 " int\n"
24790 " guestfs_launch (guestfs_h *g);\n"
24791 "\n"
24792 msgstr ""
24793
24794 #. type: =head2
24795 #: ../src/guestfs-actions.pod:3645
24796 msgid "guestfs_lchown"
24797 msgstr ""
24798
24799 #. type: verbatim
24800 #: ../src/guestfs-actions.pod:3647
24801 #, no-wrap
24802 msgid ""
24803 " int\n"
24804 " guestfs_lchown (guestfs_h *g,\n"
24805 "                 int owner,\n"
24806 "                 int group,\n"
24807 "                 const char *path);\n"
24808 "\n"
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../src/guestfs-actions.pod:3653
24813 msgid ""
24814 "Change the file owner to C<owner> and group to C<group>.  This is like "
24815 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
24816 "changed, not the target."
24817 msgstr ""
24818
24819 #. type: =head2
24820 #: ../src/guestfs-actions.pod:3665
24821 msgid "guestfs_lgetxattr"
24822 msgstr ""
24823
24824 #. type: verbatim
24825 #: ../src/guestfs-actions.pod:3667
24826 #, no-wrap
24827 msgid ""
24828 " char *\n"
24829 " guestfs_lgetxattr (guestfs_h *g,\n"
24830 "                    const char *path,\n"
24831 "                    const char *name,\n"
24832 "                    size_t *size_r);\n"
24833 "\n"
24834 msgstr ""
24835
24836 #. type: textblock
24837 #: ../src/guestfs-actions.pod:3687
24838 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
24839 msgstr ""
24840
24841 #. type: =head2
24842 #: ../src/guestfs-actions.pod:3695
24843 msgid "guestfs_lgetxattrs"
24844 msgstr ""
24845
24846 #. type: verbatim
24847 #: ../src/guestfs-actions.pod:3697
24848 #, no-wrap
24849 msgid ""
24850 " struct guestfs_xattr_list *\n"
24851 " guestfs_lgetxattrs (guestfs_h *g,\n"
24852 "                     const char *path);\n"
24853 "\n"
24854 msgstr ""
24855
24856 #. type: textblock
24857 #: ../src/guestfs-actions.pod:3701
24858 msgid ""
24859 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
24860 "then it returns the extended attributes of the link itself."
24861 msgstr ""
24862
24863 #. type: =head2
24864 #: ../src/guestfs-actions.pod:3711
24865 msgid "guestfs_list_9p"
24866 msgstr ""
24867
24868 #. type: verbatim
24869 #: ../src/guestfs-actions.pod:3713
24870 #, no-wrap
24871 msgid ""
24872 " char **\n"
24873 " guestfs_list_9p (guestfs_h *g);\n"
24874 "\n"
24875 msgstr ""
24876
24877 #. type: =head2
24878 #: ../src/guestfs-actions.pod:3725
24879 msgid "guestfs_list_devices"
24880 msgstr ""
24881
24882 #. type: verbatim
24883 #: ../src/guestfs-actions.pod:3727
24884 #, no-wrap
24885 msgid ""
24886 " char **\n"
24887 " guestfs_list_devices (guestfs_h *g);\n"
24888 "\n"
24889 msgstr ""
24890
24891 #. type: =head2
24892 #: ../src/guestfs-actions.pod:3742
24893 msgid "guestfs_list_dm_devices"
24894 msgstr ""
24895
24896 #. type: verbatim
24897 #: ../src/guestfs-actions.pod:3744
24898 #, no-wrap
24899 msgid ""
24900 " char **\n"
24901 " guestfs_list_dm_devices (guestfs_h *g);\n"
24902 "\n"
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../src/guestfs-actions.pod:3749
24907 msgid ""
24908 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
24909 "previous call to C<guestfs_luks_open>."
24910 msgstr ""
24911
24912 #. type: textblock
24913 #: ../src/guestfs-actions.pod:3752
24914 msgid ""
24915 "Device mapper devices which correspond to logical volumes are I<not> "
24916 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
24917 "volumes."
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../src/guestfs-actions.pod:3760 ../src/guestfs-actions.pod:5216
24922 msgid "(Added in 1.11.15)"
24923 msgstr ""
24924
24925 #. type: =head2
24926 #: ../src/guestfs-actions.pod:3762
24927 msgid "guestfs_list_filesystems"
24928 msgstr ""
24929
24930 #. type: verbatim
24931 #: ../src/guestfs-actions.pod:3764
24932 #, no-wrap
24933 msgid ""
24934 " char **\n"
24935 " guestfs_list_filesystems (guestfs_h *g);\n"
24936 "\n"
24937 msgstr ""
24938
24939 #. type: textblock
24940 #: ../src/guestfs-actions.pod:3784
24941 msgid ""
24942 "This command runs other libguestfs commands, which might include "
24943 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
24944 "soon after launch and only when nothing is mounted."
24945 msgstr ""
24946
24947 #. type: textblock
24948 #: ../src/guestfs-actions.pod:3788
24949 msgid ""
24950 "Not all of the filesystems returned will be mountable.  In particular, swap "
24951 "partitions are returned in the list.  Also this command does not check that "
24952 "each filesystem found is valid and mountable, and some filesystems might be "
24953 "mountable but require special options.  Filesystems may not all belong to a "
24954 "single logical operating system (use C<guestfs_inspect_os> to look for "
24955 "OSes)."
24956 msgstr ""
24957
24958 #. type: textblock
24959 #: ../src/guestfs-actions.pod:3802 ../src/guestfs-actions.pod:5577
24960 msgid "(Added in 1.5.15)"
24961 msgstr ""
24962
24963 #. type: =head2
24964 #: ../src/guestfs-actions.pod:3804
24965 msgid "guestfs_list_partitions"
24966 msgstr ""
24967
24968 #. type: verbatim
24969 #: ../src/guestfs-actions.pod:3806
24970 #, no-wrap
24971 msgid ""
24972 " char **\n"
24973 " guestfs_list_partitions (guestfs_h *g);\n"
24974 "\n"
24975 msgstr ""
24976
24977 #. type: textblock
24978 #: ../src/guestfs-actions.pod:3813
24979 msgid ""
24980 "This does not return logical volumes.  For that you will need to call "
24981 "C<guestfs_lvs>."
24982 msgstr ""
24983
24984 #. type: =head2
24985 #: ../src/guestfs-actions.pod:3824
24986 msgid "guestfs_ll"
24987 msgstr ""
24988
24989 #. type: verbatim
24990 #: ../src/guestfs-actions.pod:3826
24991 #, no-wrap
24992 msgid ""
24993 " char *\n"
24994 " guestfs_ll (guestfs_h *g,\n"
24995 "             const char *directory);\n"
24996 "\n"
24997 msgstr ""
24998
24999 #. type: =head2
25000 #: ../src/guestfs-actions.pod:3841
25001 msgid "guestfs_ln"
25002 msgstr ""
25003
25004 #. type: verbatim
25005 #: ../src/guestfs-actions.pod:3843
25006 #, no-wrap
25007 msgid ""
25008 " int\n"
25009 " guestfs_ln (guestfs_h *g,\n"
25010 "             const char *target,\n"
25011 "             const char *linkname);\n"
25012 "\n"
25013 msgstr ""
25014
25015 #. type: =head2
25016 #: ../src/guestfs-actions.pod:3854
25017 msgid "guestfs_ln_f"
25018 msgstr ""
25019
25020 #. type: verbatim
25021 #: ../src/guestfs-actions.pod:3856
25022 #, no-wrap
25023 msgid ""
25024 " int\n"
25025 " guestfs_ln_f (guestfs_h *g,\n"
25026 "               const char *target,\n"
25027 "               const char *linkname);\n"
25028 "\n"
25029 msgstr ""
25030
25031 #. type: =head2
25032 #: ../src/guestfs-actions.pod:3868
25033 msgid "guestfs_ln_s"
25034 msgstr ""
25035
25036 #. type: verbatim
25037 #: ../src/guestfs-actions.pod:3870
25038 #, no-wrap
25039 msgid ""
25040 " int\n"
25041 " guestfs_ln_s (guestfs_h *g,\n"
25042 "               const char *target,\n"
25043 "               const char *linkname);\n"
25044 "\n"
25045 msgstr ""
25046
25047 #. type: =head2
25048 #: ../src/guestfs-actions.pod:3881
25049 msgid "guestfs_ln_sf"
25050 msgstr ""
25051
25052 #. type: verbatim
25053 #: ../src/guestfs-actions.pod:3883
25054 #, no-wrap
25055 msgid ""
25056 " int\n"
25057 " guestfs_ln_sf (guestfs_h *g,\n"
25058 "                const char *target,\n"
25059 "                const char *linkname);\n"
25060 "\n"
25061 msgstr ""
25062
25063 #. type: =head2
25064 #: ../src/guestfs-actions.pod:3895
25065 msgid "guestfs_lremovexattr"
25066 msgstr ""
25067
25068 #. type: verbatim
25069 #: ../src/guestfs-actions.pod:3897
25070 #, no-wrap
25071 msgid ""
25072 " int\n"
25073 " guestfs_lremovexattr (guestfs_h *g,\n"
25074 "                       const char *xattr,\n"
25075 "                       const char *path);\n"
25076 "\n"
25077 msgstr ""
25078
25079 #. type: textblock
25080 #: ../src/guestfs-actions.pod:3902
25081 msgid ""
25082 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
25083 "link, then it removes an extended attribute of the link itself."
25084 msgstr ""
25085
25086 #. type: =head2
25087 #: ../src/guestfs-actions.pod:3910
25088 msgid "guestfs_ls"
25089 msgstr ""
25090
25091 #. type: verbatim
25092 #: ../src/guestfs-actions.pod:3912
25093 #, no-wrap
25094 msgid ""
25095 " char **\n"
25096 " guestfs_ls (guestfs_h *g,\n"
25097 "             const char *directory);\n"
25098 "\n"
25099 msgstr ""
25100
25101 #. type: textblock
25102 #: ../src/guestfs-actions.pod:3920
25103 msgid ""
25104 "This command is mostly useful for interactive sessions.  Programs should "
25105 "probably use C<guestfs_readdir> instead."
25106 msgstr ""
25107
25108 #. type: =head2
25109 #: ../src/guestfs-actions.pod:3929
25110 msgid "guestfs_lsetxattr"
25111 msgstr ""
25112
25113 #. type: verbatim
25114 #: ../src/guestfs-actions.pod:3931
25115 #, no-wrap
25116 msgid ""
25117 " int\n"
25118 " guestfs_lsetxattr (guestfs_h *g,\n"
25119 "                    const char *xattr,\n"
25120 "                    const char *val,\n"
25121 "                    int vallen,\n"
25122 "                    const char *path);\n"
25123 "\n"
25124 msgstr ""
25125
25126 #. type: textblock
25127 #: ../src/guestfs-actions.pod:3938
25128 msgid ""
25129 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
25130 "then it sets an extended attribute of the link itself."
25131 msgstr ""
25132
25133 #. type: =head2
25134 #: ../src/guestfs-actions.pod:3946
25135 msgid "guestfs_lstat"
25136 msgstr ""
25137
25138 #. type: verbatim
25139 #: ../src/guestfs-actions.pod:3948
25140 #, no-wrap
25141 msgid ""
25142 " struct guestfs_stat *\n"
25143 " guestfs_lstat (guestfs_h *g,\n"
25144 "                const char *path);\n"
25145 "\n"
25146 msgstr ""
25147
25148 #. type: textblock
25149 #: ../src/guestfs-actions.pod:3954
25150 msgid ""
25151 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
25152 "link, then the link is stat-ed, not the file it refers to."
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../src/guestfs-actions.pod:3960 ../src/guestfs-actions.pod:6735
25157 msgid ""
25158 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
25159 "error.  I<The caller must call C<guestfs_free_stat> after use>."
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:3964 ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757 ../src/guestfs-actions.pod:7138
25164 msgid "(Added in 0.9.2)"
25165 msgstr ""
25166
25167 #. type: =head2
25168 #: ../src/guestfs-actions.pod:3966
25169 msgid "guestfs_lstatlist"
25170 msgstr ""
25171
25172 #. type: verbatim
25173 #: ../src/guestfs-actions.pod:3968
25174 #, no-wrap
25175 msgid ""
25176 " struct guestfs_stat_list *\n"
25177 " guestfs_lstatlist (guestfs_h *g,\n"
25178 "                    const char *path,\n"
25179 "                    char *const *names);\n"
25180 "\n"
25181 msgstr ""
25182
25183 #. type: textblock
25184 #: ../src/guestfs-actions.pod:3973
25185 msgid ""
25186 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
25187 "files, where all files are in the directory C<path>.  C<names> is the list "
25188 "of files from this directory."
25189 msgstr ""
25190
25191 #. type: textblock
25192 #: ../src/guestfs-actions.pod:3982
25193 msgid ""
25194 "This call is intended for programs that want to efficiently list a directory "
25195 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
25196 "for a similarly efficient call for getting extended attributes.  Very long "
25197 "directory listings might cause the protocol message size to be exceeded, "
25198 "causing this call to fail.  The caller must split up such requests into "
25199 "smaller groups of names."
25200 msgstr ""
25201
25202 #. type: textblock
25203 #: ../src/guestfs-actions.pod:3990
25204 msgid ""
25205 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
25206 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
25207 msgstr ""
25208
25209 #. type: =head2
25210 #: ../src/guestfs-actions.pod:3996
25211 msgid "guestfs_luks_add_key"
25212 msgstr ""
25213
25214 #. type: verbatim
25215 #: ../src/guestfs-actions.pod:3998
25216 #, no-wrap
25217 msgid ""
25218 " int\n"
25219 " guestfs_luks_add_key (guestfs_h *g,\n"
25220 "                       const char *device,\n"
25221 "                       const char *key,\n"
25222 "                       const char *newkey,\n"
25223 "                       int keyslot);\n"
25224 "\n"
25225 msgstr ""
25226
25227 #. type: textblock
25228 #: ../src/guestfs-actions.pod:4010
25229 msgid ""
25230 "Note that if C<keyslot> already contains a key, then this command will "
25231 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../src/guestfs-actions.pod:4016 ../src/guestfs-actions.pod:4056 ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4134 ../src/guestfs-actions.pod:4153
25236 msgid ""
25237 "This function takes a key or passphrase parameter which could contain "
25238 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
25239 "information."
25240 msgstr ""
25241
25242 #. type: textblock
25243 #: ../src/guestfs-actions.pod:4020 ../src/guestfs-actions.pod:4060 ../src/guestfs-actions.pod:4083 ../src/guestfs-actions.pod:4103
25244 msgid "(Added in 1.5.2)"
25245 msgstr ""
25246
25247 #. type: =head2
25248 #: ../src/guestfs-actions.pod:4022
25249 msgid "guestfs_luks_close"
25250 msgstr ""
25251
25252 #. type: verbatim
25253 #: ../src/guestfs-actions.pod:4024
25254 #, no-wrap
25255 msgid ""
25256 " int\n"
25257 " guestfs_luks_close (guestfs_h *g,\n"
25258 "                     const char *device);\n"
25259 "\n"
25260 msgstr ""
25261
25262 #. type: textblock
25263 #: ../src/guestfs-actions.pod:4028
25264 msgid ""
25265 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
25266 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
25267 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
25268 "underlying block device."
25269 msgstr ""
25270
25271 #. type: textblock
25272 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4138 ../src/guestfs-actions.pod:4157 ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4255
25273 msgid "(Added in 1.5.1)"
25274 msgstr ""
25275
25276 #. type: =head2
25277 #: ../src/guestfs-actions.pod:4038
25278 msgid "guestfs_luks_format"
25279 msgstr ""
25280
25281 #. type: verbatim
25282 #: ../src/guestfs-actions.pod:4040
25283 #, no-wrap
25284 msgid ""
25285 " int\n"
25286 " guestfs_luks_format (guestfs_h *g,\n"
25287 "                      const char *device,\n"
25288 "                      const char *key,\n"
25289 "                      int keyslot);\n"
25290 "\n"
25291 msgstr ""
25292
25293 #. type: =head2
25294 #: ../src/guestfs-actions.pod:4062
25295 msgid "guestfs_luks_format_cipher"
25296 msgstr ""
25297
25298 #. type: verbatim
25299 #: ../src/guestfs-actions.pod:4064
25300 #, no-wrap
25301 msgid ""
25302 " int\n"
25303 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25304 "                             const char *device,\n"
25305 "                             const char *key,\n"
25306 "                             int keyslot,\n"
25307 "                             const char *cipher);\n"
25308 "\n"
25309 msgstr ""
25310
25311 #. type: textblock
25312 #: ../src/guestfs-actions.pod:4071
25313 msgid ""
25314 "This command is the same as C<guestfs_luks_format> but it also allows you to "
25315 "set the C<cipher> used."
25316 msgstr ""
25317
25318 #. type: =head2
25319 #: ../src/guestfs-actions.pod:4085
25320 msgid "guestfs_luks_kill_slot"
25321 msgstr ""
25322
25323 #. type: verbatim
25324 #: ../src/guestfs-actions.pod:4087
25325 #, no-wrap
25326 msgid ""
25327 " int\n"
25328 " guestfs_luks_kill_slot (guestfs_h *g,\n"
25329 "                         const char *device,\n"
25330 "                         const char *key,\n"
25331 "                         int keyslot);\n"
25332 "\n"
25333 msgstr ""
25334
25335 #. type: =head2
25336 #: ../src/guestfs-actions.pod:4105
25337 msgid "guestfs_luks_open"
25338 msgstr ""
25339
25340 #. type: verbatim
25341 #: ../src/guestfs-actions.pod:4107
25342 #, no-wrap
25343 msgid ""
25344 " int\n"
25345 " guestfs_luks_open (guestfs_h *g,\n"
25346 "                    const char *device,\n"
25347 "                    const char *key,\n"
25348 "                    const char *mapname);\n"
25349 "\n"
25350 msgstr ""
25351
25352 #. type: textblock
25353 #: ../src/guestfs-actions.pod:4125
25354 msgid ""
25355 "If this block device contains LVM volume groups, then calling "
25356 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
25357 "visible."
25358 msgstr ""
25359
25360 #. type: textblock
25361 #: ../src/guestfs-actions.pod:4129
25362 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
25363 msgstr ""
25364
25365 #. type: =head2
25366 #: ../src/guestfs-actions.pod:4140
25367 msgid "guestfs_luks_open_ro"
25368 msgstr ""
25369
25370 #. type: verbatim
25371 #: ../src/guestfs-actions.pod:4142
25372 #, no-wrap
25373 msgid ""
25374 " int\n"
25375 " guestfs_luks_open_ro (guestfs_h *g,\n"
25376 "                       const char *device,\n"
25377 "                       const char *key,\n"
25378 "                       const char *mapname);\n"
25379 "\n"
25380 msgstr ""
25381
25382 #. type: textblock
25383 #: ../src/guestfs-actions.pod:4148
25384 msgid ""
25385 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
25386 "created."
25387 msgstr ""
25388
25389 #. type: =head2
25390 #: ../src/guestfs-actions.pod:4159
25391 msgid "guestfs_lvcreate"
25392 msgstr ""
25393
25394 #. type: verbatim
25395 #: ../src/guestfs-actions.pod:4161
25396 #, no-wrap
25397 msgid ""
25398 " int\n"
25399 " guestfs_lvcreate (guestfs_h *g,\n"
25400 "                   const char *logvol,\n"
25401 "                   const char *volgroup,\n"
25402 "                   int mbytes);\n"
25403 "\n"
25404 msgstr ""
25405
25406 #. type: =head2
25407 #: ../src/guestfs-actions.pod:4174
25408 msgid "guestfs_lvm_canonical_lv_name"
25409 msgstr ""
25410
25411 #. type: verbatim
25412 #: ../src/guestfs-actions.pod:4176
25413 #, no-wrap
25414 msgid ""
25415 " char *\n"
25416 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
25417 "                                const char *lvname);\n"
25418 "\n"
25419 msgstr ""
25420
25421 #. type: textblock
25422 #: ../src/guestfs-actions.pod:4187
25423 msgid "See also C<guestfs_is_lv>."
25424 msgstr ""
25425
25426 #. type: textblock
25427 #: ../src/guestfs-actions.pod:4192
25428 msgid "(Added in 1.5.24)"
25429 msgstr ""
25430
25431 #. type: =head2
25432 #: ../src/guestfs-actions.pod:4194
25433 msgid "guestfs_lvm_clear_filter"
25434 msgstr ""
25435
25436 #. type: verbatim
25437 #: ../src/guestfs-actions.pod:4196
25438 #, no-wrap
25439 msgid ""
25440 " int\n"
25441 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
25442 "\n"
25443 msgstr ""
25444
25445 #. type: textblock
25446 #: ../src/guestfs-actions.pod:4199
25447 msgid ""
25448 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
25449 "see every block device."
25450 msgstr ""
25451
25452 #. type: =head2
25453 #: ../src/guestfs-actions.pod:4209
25454 msgid "guestfs_lvm_remove_all"
25455 msgstr ""
25456
25457 #. type: verbatim
25458 #: ../src/guestfs-actions.pod:4211
25459 #, no-wrap
25460 msgid ""
25461 " int\n"
25462 " guestfs_lvm_remove_all (guestfs_h *g);\n"
25463 "\n"
25464 msgstr ""
25465
25466 #. type: =head2
25467 #: ../src/guestfs-actions.pod:4224
25468 msgid "guestfs_lvm_set_filter"
25469 msgstr ""
25470
25471 #. type: verbatim
25472 #: ../src/guestfs-actions.pod:4226
25473 #, no-wrap
25474 msgid ""
25475 " int\n"
25476 " guestfs_lvm_set_filter (guestfs_h *g,\n"
25477 "                         char *const *devices);\n"
25478 "\n"
25479 msgstr ""
25480
25481 #. type: =head2
25482 #: ../src/guestfs-actions.pod:4257
25483 msgid "guestfs_lvremove"
25484 msgstr ""
25485
25486 #. type: verbatim
25487 #: ../src/guestfs-actions.pod:4259
25488 #, no-wrap
25489 msgid ""
25490 " int\n"
25491 " guestfs_lvremove (guestfs_h *g,\n"
25492 "                   const char *device);\n"
25493 "\n"
25494 msgstr ""
25495
25496 #. type: textblock
25497 #: ../src/guestfs-actions.pod:4271 ../src/guestfs-actions.pod:5674 ../src/guestfs-actions.pod:7508
25498 msgid "(Added in 1.0.13)"
25499 msgstr ""
25500
25501 #. type: =head2
25502 #: ../src/guestfs-actions.pod:4273
25503 msgid "guestfs_lvrename"
25504 msgstr ""
25505
25506 #. type: verbatim
25507 #: ../src/guestfs-actions.pod:4275
25508 #, no-wrap
25509 msgid ""
25510 " int\n"
25511 " guestfs_lvrename (guestfs_h *g,\n"
25512 "                   const char *logvol,\n"
25513 "                   const char *newlogvol);\n"
25514 "\n"
25515 msgstr ""
25516
25517 #. type: textblock
25518 #: ../src/guestfs-actions.pod:4284 ../src/guestfs-actions.pod:7521
25519 msgid "(Added in 1.0.83)"
25520 msgstr ""
25521
25522 #. type: =head2
25523 #: ../src/guestfs-actions.pod:4286
25524 msgid "guestfs_lvresize"
25525 msgstr ""
25526
25527 #. type: verbatim
25528 #: ../src/guestfs-actions.pod:4288
25529 #, no-wrap
25530 msgid ""
25531 " int\n"
25532 " guestfs_lvresize (guestfs_h *g,\n"
25533 "                   const char *device,\n"
25534 "                   int mbytes);\n"
25535 "\n"
25536 msgstr ""
25537
25538 #. type: =head2
25539 #: ../src/guestfs-actions.pod:4301
25540 msgid "guestfs_lvresize_free"
25541 msgstr ""
25542
25543 #. type: verbatim
25544 #: ../src/guestfs-actions.pod:4303
25545 #, no-wrap
25546 msgid ""
25547 " int\n"
25548 " guestfs_lvresize_free (guestfs_h *g,\n"
25549 "                        const char *lv,\n"
25550 "                        int percent);\n"
25551 "\n"
25552 msgstr ""
25553
25554 #. type: textblock
25555 #: ../src/guestfs-actions.pod:4316
25556 msgid "(Added in 1.3.3)"
25557 msgstr ""
25558
25559 #. type: =head2
25560 #: ../src/guestfs-actions.pod:4318
25561 msgid "guestfs_lvs"
25562 msgstr ""
25563
25564 #. type: verbatim
25565 #: ../src/guestfs-actions.pod:4320
25566 #, no-wrap
25567 msgid ""
25568 " char **\n"
25569 " guestfs_lvs (guestfs_h *g);\n"
25570 "\n"
25571 msgstr ""
25572
25573 #. type: textblock
25574 #: ../src/guestfs-actions.pod:4329
25575 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
25576 msgstr ""
25577
25578 #. type: =head2
25579 #: ../src/guestfs-actions.pod:4337
25580 msgid "guestfs_lvs_full"
25581 msgstr ""
25582
25583 #. type: verbatim
25584 #: ../src/guestfs-actions.pod:4339
25585 #, no-wrap
25586 msgid ""
25587 " struct guestfs_lvm_lv_list *\n"
25588 " guestfs_lvs_full (guestfs_h *g);\n"
25589 "\n"
25590 msgstr ""
25591
25592 #. type: textblock
25593 #: ../src/guestfs-actions.pod:4345
25594 msgid ""
25595 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
25596 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after "
25597 "use>."
25598 msgstr ""
25599
25600 #. type: =head2
25601 #: ../src/guestfs-actions.pod:4351
25602 msgid "guestfs_lvuuid"
25603 msgstr ""
25604
25605 #. type: verbatim
25606 #: ../src/guestfs-actions.pod:4353
25607 #, no-wrap
25608 msgid ""
25609 " char *\n"
25610 " guestfs_lvuuid (guestfs_h *g,\n"
25611 "                 const char *device);\n"
25612 "\n"
25613 msgstr ""
25614
25615 #. type: =head2
25616 #: ../src/guestfs-actions.pod:4364
25617 msgid "guestfs_lxattrlist"
25618 msgstr ""
25619
25620 #. type: verbatim
25621 #: ../src/guestfs-actions.pod:4366
25622 #, no-wrap
25623 msgid ""
25624 " struct guestfs_xattr_list *\n"
25625 " guestfs_lxattrlist (guestfs_h *g,\n"
25626 "                     const char *path,\n"
25627 "                     char *const *names);\n"
25628 "\n"
25629 msgstr ""
25630
25631 #. type: textblock
25632 #: ../src/guestfs-actions.pod:4385
25633 msgid ""
25634 "This call is intended for programs that want to efficiently list a directory "
25635 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
25636 "a similarly efficient call for getting standard stats.  Very long directory "
25637 "listings might cause the protocol message size to be exceeded, causing this "
25638 "call to fail.  The caller must split up such requests into smaller groups of "
25639 "names."
25640 msgstr ""
25641
25642 #. type: =head2
25643 #: ../src/guestfs-actions.pod:4399
25644 msgid "guestfs_mkdir"
25645 msgstr ""
25646
25647 #. type: verbatim
25648 #: ../src/guestfs-actions.pod:4401
25649 #, no-wrap
25650 msgid ""
25651 " int\n"
25652 " guestfs_mkdir (guestfs_h *g,\n"
25653 "                const char *path);\n"
25654 "\n"
25655 msgstr ""
25656
25657 #. type: =head2
25658 #: ../src/guestfs-actions.pod:4411
25659 msgid "guestfs_mkdir_mode"
25660 msgstr ""
25661
25662 #. type: verbatim
25663 #: ../src/guestfs-actions.pod:4413
25664 #, no-wrap
25665 msgid ""
25666 " int\n"
25667 " guestfs_mkdir_mode (guestfs_h *g,\n"
25668 "                     const char *path,\n"
25669 "                     int mode);\n"
25670 "\n"
25671 msgstr ""
25672
25673 #. type: textblock
25674 #: ../src/guestfs-actions.pod:4425
25675 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
25676 msgstr ""
25677
25678 #. type: =head2
25679 #: ../src/guestfs-actions.pod:4431
25680 msgid "guestfs_mkdir_p"
25681 msgstr ""
25682
25683 #. type: verbatim
25684 #: ../src/guestfs-actions.pod:4433
25685 #, no-wrap
25686 msgid ""
25687 " int\n"
25688 " guestfs_mkdir_p (guestfs_h *g,\n"
25689 "                  const char *path);\n"
25690 "\n"
25691 msgstr ""
25692
25693 #. type: =head2
25694 #: ../src/guestfs-actions.pod:4444
25695 msgid "guestfs_mkdtemp"
25696 msgstr ""
25697
25698 #. type: verbatim
25699 #: ../src/guestfs-actions.pod:4446
25700 #, no-wrap
25701 msgid ""
25702 " char *\n"
25703 " guestfs_mkdtemp (guestfs_h *g,\n"
25704 "                  const char *template);\n"
25705 "\n"
25706 msgstr ""
25707
25708 #. type: =head2
25709 #: ../src/guestfs-actions.pod:4474
25710 msgid "guestfs_mke2fs_J"
25711 msgstr ""
25712
25713 #. type: verbatim
25714 #: ../src/guestfs-actions.pod:4476
25715 #, no-wrap
25716 msgid ""
25717 " int\n"
25718 " guestfs_mke2fs_J (guestfs_h *g,\n"
25719 "                   const char *fstype,\n"
25720 "                   int blocksize,\n"
25721 "                   const char *device,\n"
25722 "                   const char *journal);\n"
25723 "\n"
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:4489
25728 msgid "See also C<guestfs_mke2journal>."
25729 msgstr ""
25730
25731 #. type: textblock
25732 #: ../src/guestfs-actions.pod:4493 ../src/guestfs-actions.pod:4511 ../src/guestfs-actions.pod:4529 ../src/guestfs-actions.pod:4545 ../src/guestfs-actions.pod:4559 ../src/guestfs-actions.pod:4573 ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4909
25733 msgid "(Added in 1.0.68)"
25734 msgstr ""
25735
25736 #. type: =head2
25737 #: ../src/guestfs-actions.pod:4495
25738 msgid "guestfs_mke2fs_JL"
25739 msgstr ""
25740
25741 #. type: verbatim
25742 #: ../src/guestfs-actions.pod:4497
25743 #, no-wrap
25744 msgid ""
25745 " int\n"
25746 " guestfs_mke2fs_JL (guestfs_h *g,\n"
25747 "                    const char *fstype,\n"
25748 "                    int blocksize,\n"
25749 "                    const char *device,\n"
25750 "                    const char *label);\n"
25751 "\n"
25752 msgstr ""
25753
25754 #. type: textblock
25755 #: ../src/guestfs-actions.pod:4507
25756 msgid "See also C<guestfs_mke2journal_L>."
25757 msgstr ""
25758
25759 #. type: =head2
25760 #: ../src/guestfs-actions.pod:4513
25761 msgid "guestfs_mke2fs_JU"
25762 msgstr ""
25763
25764 #. type: verbatim
25765 #: ../src/guestfs-actions.pod:4515
25766 #, no-wrap
25767 msgid ""
25768 " int\n"
25769 " guestfs_mke2fs_JU (guestfs_h *g,\n"
25770 "                    const char *fstype,\n"
25771 "                    int blocksize,\n"
25772 "                    const char *device,\n"
25773 "                    const char *uuid);\n"
25774 "\n"
25775 msgstr ""
25776
25777 #. type: textblock
25778 #: ../src/guestfs-actions.pod:4525
25779 msgid "See also C<guestfs_mke2journal_U>."
25780 msgstr ""
25781
25782 #. type: =head2
25783 #: ../src/guestfs-actions.pod:4531
25784 msgid "guestfs_mke2journal"
25785 msgstr ""
25786
25787 #. type: verbatim
25788 #: ../src/guestfs-actions.pod:4533
25789 #, no-wrap
25790 msgid ""
25791 " int\n"
25792 " guestfs_mke2journal (guestfs_h *g,\n"
25793 "                      int blocksize,\n"
25794 "                      const char *device);\n"
25795 "\n"
25796 msgstr ""
25797
25798 #. type: =head2
25799 #: ../src/guestfs-actions.pod:4547
25800 msgid "guestfs_mke2journal_L"
25801 msgstr ""
25802
25803 #. type: verbatim
25804 #: ../src/guestfs-actions.pod:4549
25805 #, no-wrap
25806 msgid ""
25807 " int\n"
25808 " guestfs_mke2journal_L (guestfs_h *g,\n"
25809 "                        int blocksize,\n"
25810 "                        const char *label,\n"
25811 "                        const char *device);\n"
25812 "\n"
25813 msgstr ""
25814
25815 #. type: =head2
25816 #: ../src/guestfs-actions.pod:4561
25817 msgid "guestfs_mke2journal_U"
25818 msgstr ""
25819
25820 #. type: verbatim
25821 #: ../src/guestfs-actions.pod:4563
25822 #, no-wrap
25823 msgid ""
25824 " int\n"
25825 " guestfs_mke2journal_U (guestfs_h *g,\n"
25826 "                        int blocksize,\n"
25827 "                        const char *uuid,\n"
25828 "                        const char *device);\n"
25829 "\n"
25830 msgstr ""
25831
25832 #. type: =head2
25833 #: ../src/guestfs-actions.pod:4575
25834 msgid "guestfs_mkfifo"
25835 msgstr ""
25836
25837 #. type: verbatim
25838 #: ../src/guestfs-actions.pod:4577
25839 #, no-wrap
25840 msgid ""
25841 " int\n"
25842 " guestfs_mkfifo (guestfs_h *g,\n"
25843 "                 int mode,\n"
25844 "                 const char *path);\n"
25845 "\n"
25846 msgstr ""
25847
25848 #. type: textblock
25849 #: ../src/guestfs-actions.pod:4582
25850 msgid ""
25851 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
25852 "is just a convenient wrapper around C<guestfs_mknod>."
25853 msgstr ""
25854
25855 #. type: =head2
25856 #: ../src/guestfs-actions.pod:4592
25857 msgid "guestfs_mkfs"
25858 msgstr ""
25859
25860 #. type: verbatim
25861 #: ../src/guestfs-actions.pod:4594
25862 #, no-wrap
25863 msgid ""
25864 " int\n"
25865 " guestfs_mkfs (guestfs_h *g,\n"
25866 "               const char *fstype,\n"
25867 "               const char *device);\n"
25868 "\n"
25869 msgstr ""
25870
25871 #. type: =head2
25872 #: ../src/guestfs-actions.pod:4607
25873 msgid "guestfs_mkfs_b"
25874 msgstr ""
25875
25876 #. type: verbatim
25877 #: ../src/guestfs-actions.pod:4609
25878 #, no-wrap
25879 msgid ""
25880 " int\n"
25881 " guestfs_mkfs_b (guestfs_h *g,\n"
25882 "                 const char *fstype,\n"
25883 "                 int blocksize,\n"
25884 "                 const char *device);\n"
25885 "\n"
25886 msgstr ""
25887
25888 #. type: textblock
25889 #: ../src/guestfs-actions.pod:4615
25890 msgid ""
25891 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
25892 "call instead."
25893 msgstr ""
25894
25895 #. type: textblock
25896 #: ../src/guestfs-actions.pod:4622
25897 msgid ""
25898 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
25899 "block size of the resulting filesystem.  Supported block sizes depend on the "
25900 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
25901 msgstr ""
25902
25903 #. type: =head2
25904 #: ../src/guestfs-actions.pod:4634
25905 msgid "guestfs_mkfs_opts"
25906 msgstr ""
25907
25908 #. type: verbatim
25909 #: ../src/guestfs-actions.pod:4636
25910 #, no-wrap
25911 msgid ""
25912 " int\n"
25913 " guestfs_mkfs_opts (guestfs_h *g,\n"
25914 "                    const char *fstype,\n"
25915 "                    const char *device,\n"
25916 "                    ...);\n"
25917 "\n"
25918 msgstr ""
25919
25920 #. type: verbatim
25921 #: ../src/guestfs-actions.pod:4647
25922 #, no-wrap
25923 msgid ""
25924 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
25925 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
25926 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
25927 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
25928 "\n"
25929 msgstr ""
25930
25931 #. type: textblock
25932 #: ../src/guestfs-actions.pod:4695
25933 msgid "(Added in 1.7.19)"
25934 msgstr ""
25935
25936 #. type: =head2
25937 #: ../src/guestfs-actions.pod:4697
25938 msgid "guestfs_mkfs_opts_va"
25939 msgstr ""
25940
25941 #. type: verbatim
25942 #: ../src/guestfs-actions.pod:4699
25943 #, no-wrap
25944 msgid ""
25945 " int\n"
25946 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
25947 "                       const char *fstype,\n"
25948 "                       const char *device,\n"
25949 "                       va_list args);\n"
25950 "\n"
25951 msgstr ""
25952
25953 #. type: textblock
25954 #: ../src/guestfs-actions.pod:4705
25955 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
25956 msgstr ""
25957
25958 #. type: =head2
25959 #: ../src/guestfs-actions.pod:4709
25960 msgid "guestfs_mkfs_opts_argv"
25961 msgstr ""
25962
25963 #. type: verbatim
25964 #: ../src/guestfs-actions.pod:4711
25965 #, no-wrap
25966 msgid ""
25967 " int\n"
25968 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25969 "                         const char *fstype,\n"
25970 "                         const char *device,\n"
25971 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25972 "\n"
25973 msgstr ""
25974
25975 #. type: textblock
25976 #: ../src/guestfs-actions.pod:4717
25977 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
25978 msgstr ""
25979
25980 #. type: =head2
25981 #: ../src/guestfs-actions.pod:4721
25982 msgid "guestfs_mkmountpoint"
25983 msgstr ""
25984
25985 #. type: verbatim
25986 #: ../src/guestfs-actions.pod:4723
25987 #, no-wrap
25988 msgid ""
25989 " int\n"
25990 " guestfs_mkmountpoint (guestfs_h *g,\n"
25991 "                       const char *exemptpath);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../src/guestfs-actions.pod:4727
25997 msgid ""
25998 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
25999 "that can be used to create extra mountpoints before mounting the first "
26000 "filesystem."
26001 msgstr ""
26002
26003 #. type: textblock
26004 #: ../src/guestfs-actions.pod:4751
26005 msgid ""
26006 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
26007 "may get unexpected errors if you try to mix these calls.  It is safest to "
26008 "manually unmount filesystems and remove mountpoints after use."
26009 msgstr ""
26010
26011 #. type: textblock
26012 #: ../src/guestfs-actions.pod:4755
26013 msgid ""
26014 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
26015 "first, so for this to work for manual mountpoints, you must ensure that the "
26016 "innermost mountpoints have the longest pathnames, as in the example code "
26017 "above."
26018 msgstr ""
26019
26020 #. type: textblock
26021 #: ../src/guestfs-actions.pod:4762
26022 msgid ""
26023 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
26024 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
26025 "can also trigger these issues."
26026 msgstr ""
26027
26028 #. type: textblock
26029 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:5084 ../src/guestfs-actions.pod:6094
26030 msgid "(Added in 1.0.62)"
26031 msgstr ""
26032
26033 #. type: =head2
26034 #: ../src/guestfs-actions.pod:4770
26035 msgid "guestfs_mknod"
26036 msgstr ""
26037
26038 #. type: verbatim
26039 #: ../src/guestfs-actions.pod:4772
26040 #, no-wrap
26041 msgid ""
26042 " int\n"
26043 " guestfs_mknod (guestfs_h *g,\n"
26044 "                int mode,\n"
26045 "                int devmajor,\n"
26046 "                int devminor,\n"
26047 "                const char *path);\n"
26048 "\n"
26049 msgstr ""
26050
26051 #. type: textblock
26052 #: ../src/guestfs-actions.pod:4787
26053 msgid ""
26054 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
26055 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
26056 "regular file).  These constants are available in the standard Linux header "
26057 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
26058 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
26059 "the appropriate constant for you."
26060 msgstr ""
26061
26062 #. type: =head2
26063 #: ../src/guestfs-actions.pod:4801
26064 msgid "guestfs_mknod_b"
26065 msgstr ""
26066
26067 #. type: verbatim
26068 #: ../src/guestfs-actions.pod:4803
26069 #, no-wrap
26070 msgid ""
26071 " int\n"
26072 " guestfs_mknod_b (guestfs_h *g,\n"
26073 "                  int mode,\n"
26074 "                  int devmajor,\n"
26075 "                  int devminor,\n"
26076 "                  const char *path);\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: textblock
26081 #: ../src/guestfs-actions.pod:4810
26082 msgid ""
26083 "This call creates a block device node called C<path> with mode C<mode> and "
26084 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26085 "wrapper around C<guestfs_mknod>."
26086 msgstr ""
26087
26088 #. type: =head2
26089 #: ../src/guestfs-actions.pod:4820
26090 msgid "guestfs_mknod_c"
26091 msgstr ""
26092
26093 #. type: verbatim
26094 #: ../src/guestfs-actions.pod:4822
26095 #, no-wrap
26096 msgid ""
26097 " int\n"
26098 " guestfs_mknod_c (guestfs_h *g,\n"
26099 "                  int mode,\n"
26100 "                  int devmajor,\n"
26101 "                  int devminor,\n"
26102 "                  const char *path);\n"
26103 "\n"
26104 msgstr ""
26105
26106 #. type: textblock
26107 #: ../src/guestfs-actions.pod:4829
26108 msgid ""
26109 "This call creates a char device node called C<path> with mode C<mode> and "
26110 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
26111 "wrapper around C<guestfs_mknod>."
26112 msgstr ""
26113
26114 #. type: =head2
26115 #: ../src/guestfs-actions.pod:4839
26116 msgid "guestfs_mkswap"
26117 msgstr ""
26118
26119 #. type: verbatim
26120 #: ../src/guestfs-actions.pod:4841
26121 #, no-wrap
26122 msgid ""
26123 " int\n"
26124 " guestfs_mkswap (guestfs_h *g,\n"
26125 "                 const char *device);\n"
26126 "\n"
26127 msgstr ""
26128
26129 #. type: =head2
26130 #: ../src/guestfs-actions.pod:4851
26131 msgid "guestfs_mkswap_L"
26132 msgstr ""
26133
26134 #. type: verbatim
26135 #: ../src/guestfs-actions.pod:4853
26136 #, no-wrap
26137 msgid ""
26138 " int\n"
26139 " guestfs_mkswap_L (guestfs_h *g,\n"
26140 "                   const char *label,\n"
26141 "                   const char *device);\n"
26142 "\n"
26143 msgstr ""
26144
26145 #. type: =head2
26146 #: ../src/guestfs-actions.pod:4868
26147 msgid "guestfs_mkswap_U"
26148 msgstr ""
26149
26150 #. type: verbatim
26151 #: ../src/guestfs-actions.pod:4870
26152 #, no-wrap
26153 msgid ""
26154 " int\n"
26155 " guestfs_mkswap_U (guestfs_h *g,\n"
26156 "                   const char *uuid,\n"
26157 "                   const char *device);\n"
26158 "\n"
26159 msgstr ""
26160
26161 #. type: =head2
26162 #: ../src/guestfs-actions.pod:4881
26163 msgid "guestfs_mkswap_file"
26164 msgstr ""
26165
26166 #. type: verbatim
26167 #: ../src/guestfs-actions.pod:4883
26168 #, no-wrap
26169 msgid ""
26170 " int\n"
26171 " guestfs_mkswap_file (guestfs_h *g,\n"
26172 "                      const char *path);\n"
26173 "\n"
26174 msgstr ""
26175
26176 #. type: textblock
26177 #: ../src/guestfs-actions.pod:4889
26178 msgid ""
26179 "This command just writes a swap file signature to an existing file.  To "
26180 "create the file itself, use something like C<guestfs_fallocate>."
26181 msgstr ""
26182
26183 #. type: =head2
26184 #: ../src/guestfs-actions.pod:4896
26185 msgid "guestfs_modprobe"
26186 msgstr ""
26187
26188 #. type: verbatim
26189 #: ../src/guestfs-actions.pod:4898
26190 #, no-wrap
26191 msgid ""
26192 " int\n"
26193 " guestfs_modprobe (guestfs_h *g,\n"
26194 "                   const char *modulename);\n"
26195 "\n"
26196 msgstr ""
26197
26198 #. type: =head2
26199 #: ../src/guestfs-actions.pod:4911
26200 msgid "guestfs_mount"
26201 msgstr ""
26202
26203 #. type: verbatim
26204 #: ../src/guestfs-actions.pod:4913
26205 #, no-wrap
26206 msgid ""
26207 " int\n"
26208 " guestfs_mount (guestfs_h *g,\n"
26209 "                const char *device,\n"
26210 "                const char *mountpoint);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../src/guestfs-actions.pod:4918
26216 msgid ""
26217 "I<This function is deprecated.> In new code, use the "
26218 "L</guestfs_mount_options> call instead."
26219 msgstr ""
26220
26221 #. type: textblock
26222 #: ../src/guestfs-actions.pod:4939
26223 msgid ""
26224 "B<Important note:> When you use this call, the filesystem options C<sync> "
26225 "and C<noatime> are set implicitly.  This was originally done because we "
26226 "thought it would improve reliability, but it turns out that I<-o sync> has a "
26227 "very large negative performance impact and negligible effect on "
26228 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
26229 "in any code that needs performance, and instead use C<guestfs_mount_options> "
26230 "(use an empty string for the first parameter if you don't want any options)."
26231 msgstr ""
26232
26233 #. type: =head2
26234 #: ../src/guestfs-actions.pod:4953
26235 msgid "guestfs_mount_9p"
26236 msgstr ""
26237
26238 #. type: verbatim
26239 #: ../src/guestfs-actions.pod:4955
26240 #, no-wrap
26241 msgid ""
26242 " int\n"
26243 " guestfs_mount_9p (guestfs_h *g,\n"
26244 "                   const char *mounttag,\n"
26245 "                   const char *mountpoint,\n"
26246 "                   ...);\n"
26247 "\n"
26248 msgstr ""
26249
26250 #. type: verbatim
26251 #: ../src/guestfs-actions.pod:4966
26252 #, no-wrap
26253 msgid ""
26254 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
26255 "\n"
26256 msgstr ""
26257
26258 #. type: =head2
26259 #: ../src/guestfs-actions.pod:4979
26260 msgid "guestfs_mount_9p_va"
26261 msgstr ""
26262
26263 #. type: verbatim
26264 #: ../src/guestfs-actions.pod:4981
26265 #, no-wrap
26266 msgid ""
26267 " int\n"
26268 " guestfs_mount_9p_va (guestfs_h *g,\n"
26269 "                      const char *mounttag,\n"
26270 "                      const char *mountpoint,\n"
26271 "                      va_list args);\n"
26272 "\n"
26273 msgstr ""
26274
26275 #. type: textblock
26276 #: ../src/guestfs-actions.pod:4987
26277 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
26278 msgstr ""
26279
26280 #. type: =head2
26281 #: ../src/guestfs-actions.pod:4991
26282 msgid "guestfs_mount_9p_argv"
26283 msgstr ""
26284
26285 #. type: verbatim
26286 #: ../src/guestfs-actions.pod:4993
26287 #, no-wrap
26288 msgid ""
26289 " int\n"
26290 " guestfs_mount_9p_argv (guestfs_h *g,\n"
26291 "                        const char *mounttag,\n"
26292 "                        const char *mountpoint,\n"
26293 "                        const struct guestfs_mount_9p_argv *optargs);\n"
26294 "\n"
26295 msgstr ""
26296
26297 #. type: textblock
26298 #: ../src/guestfs-actions.pod:4999
26299 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
26300 msgstr ""
26301
26302 #. type: =head2
26303 #: ../src/guestfs-actions.pod:5003
26304 msgid "guestfs_mount_loop"
26305 msgstr ""
26306
26307 #. type: verbatim
26308 #: ../src/guestfs-actions.pod:5005
26309 #, no-wrap
26310 msgid ""
26311 " int\n"
26312 " guestfs_mount_loop (guestfs_h *g,\n"
26313 "                     const char *file,\n"
26314 "                     const char *mountpoint);\n"
26315 "\n"
26316 msgstr ""
26317
26318 #. type: =head2
26319 #: ../src/guestfs-actions.pod:5018
26320 msgid "guestfs_mount_options"
26321 msgstr ""
26322
26323 #. type: verbatim
26324 #: ../src/guestfs-actions.pod:5020
26325 #, no-wrap
26326 msgid ""
26327 " int\n"
26328 " guestfs_mount_options (guestfs_h *g,\n"
26329 "                        const char *options,\n"
26330 "                        const char *device,\n"
26331 "                        const char *mountpoint);\n"
26332 "\n"
26333 msgstr ""
26334
26335 #. type: textblock
26336 #: ../src/guestfs-actions.pod:5026
26337 msgid ""
26338 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26339 "the mount options as for the L<mount(8)> I<-o> flag."
26340 msgstr ""
26341
26342 #. type: textblock
26343 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5050 ../src/guestfs-actions.pod:5067
26344 msgid "(Added in 1.0.10)"
26345 msgstr ""
26346
26347 #. type: =head2
26348 #: ../src/guestfs-actions.pod:5038
26349 msgid "guestfs_mount_ro"
26350 msgstr ""
26351
26352 #. type: verbatim
26353 #: ../src/guestfs-actions.pod:5040
26354 #, no-wrap
26355 msgid ""
26356 " int\n"
26357 " guestfs_mount_ro (guestfs_h *g,\n"
26358 "                   const char *device,\n"
26359 "                   const char *mountpoint);\n"
26360 "\n"
26361 msgstr ""
26362
26363 #. type: textblock
26364 #: ../src/guestfs-actions.pod:5045
26365 msgid ""
26366 "This is the same as the C<guestfs_mount> command, but it mounts the "
26367 "filesystem with the read-only (I<-o ro>) flag."
26368 msgstr ""
26369
26370 #. type: =head2
26371 #: ../src/guestfs-actions.pod:5052
26372 msgid "guestfs_mount_vfs"
26373 msgstr ""
26374
26375 #. type: verbatim
26376 #: ../src/guestfs-actions.pod:5054
26377 #, no-wrap
26378 msgid ""
26379 " int\n"
26380 " guestfs_mount_vfs (guestfs_h *g,\n"
26381 "                    const char *options,\n"
26382 "                    const char *vfstype,\n"
26383 "                    const char *device,\n"
26384 "                    const char *mountpoint);\n"
26385 "\n"
26386 msgstr ""
26387
26388 #. type: textblock
26389 #: ../src/guestfs-actions.pod:5061
26390 msgid ""
26391 "This is the same as the C<guestfs_mount> command, but it allows you to set "
26392 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and "
26393 "I<-t> flags."
26394 msgstr ""
26395
26396 #. type: =head2
26397 #: ../src/guestfs-actions.pod:5069
26398 msgid "guestfs_mountpoints"
26399 msgstr ""
26400
26401 #. type: verbatim
26402 #: ../src/guestfs-actions.pod:5071
26403 #, no-wrap
26404 msgid ""
26405 " char **\n"
26406 " guestfs_mountpoints (guestfs_h *g);\n"
26407 "\n"
26408 msgstr ""
26409
26410 #. type: textblock
26411 #: ../src/guestfs-actions.pod:5074
26412 msgid ""
26413 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
26414 "devices.  This one returns a hash table (map) of device name to directory "
26415 "where the device is mounted."
26416 msgstr ""
26417
26418 #. type: =head2
26419 #: ../src/guestfs-actions.pod:5086
26420 msgid "guestfs_mounts"
26421 msgstr ""
26422
26423 #. type: verbatim
26424 #: ../src/guestfs-actions.pod:5088
26425 #, no-wrap
26426 msgid ""
26427 " char **\n"
26428 " guestfs_mounts (guestfs_h *g);\n"
26429 "\n"
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:5096
26434 msgid "See also: C<guestfs_mountpoints>"
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:5104
26439 msgid "guestfs_mv"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:5106
26444 #, no-wrap
26445 msgid ""
26446 " int\n"
26447 " guestfs_mv (guestfs_h *g,\n"
26448 "             const char *src,\n"
26449 "             const char *dest);\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: =head2
26454 #: ../src/guestfs-actions.pod:5118
26455 msgid "guestfs_ntfs_3g_probe"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../src/guestfs-actions.pod:5120
26460 #, no-wrap
26461 msgid ""
26462 " int\n"
26463 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
26464 "                        int rw,\n"
26465 "                        const char *device);\n"
26466 "\n"
26467 msgstr ""
26468
26469 #. type: textblock
26470 #: ../src/guestfs-actions.pod:5139
26471 msgid "(Added in 1.0.43)"
26472 msgstr ""
26473
26474 #. type: =head2
26475 #: ../src/guestfs-actions.pod:5141
26476 msgid "guestfs_ntfsresize"
26477 msgstr ""
26478
26479 #. type: verbatim
26480 #: ../src/guestfs-actions.pod:5143
26481 #, no-wrap
26482 msgid ""
26483 " int\n"
26484 " guestfs_ntfsresize (guestfs_h *g,\n"
26485 "                     const char *device);\n"
26486 "\n"
26487 msgstr ""
26488
26489 #. type: textblock
26490 #: ../src/guestfs-actions.pod:5147 ../src/guestfs-actions.pod:5247
26491 msgid ""
26492 "I<This function is deprecated.> In new code, use the "
26493 "L</guestfs_ntfsresize_opts> call instead."
26494 msgstr ""
26495
26496 #. type: =head2
26497 #: ../src/guestfs-actions.pod:5171
26498 msgid "guestfs_ntfsresize_opts"
26499 msgstr ""
26500
26501 #. type: verbatim
26502 #: ../src/guestfs-actions.pod:5173
26503 #, no-wrap
26504 msgid ""
26505 " int\n"
26506 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
26507 "                          const char *device,\n"
26508 "                          ...);\n"
26509 "\n"
26510 msgstr ""
26511
26512 #. type: verbatim
26513 #: ../src/guestfs-actions.pod:5183
26514 #, no-wrap
26515 msgid ""
26516 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
26517 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
26518 "\n"
26519 msgstr ""
26520
26521 #. type: textblock
26522 #: ../src/guestfs-actions.pod:5203
26523 msgid ""
26524 "After the resize operation, the filesystem is always marked as requiring a "
26525 "consistency check (for safety).  You have to boot into Windows to perform "
26526 "this check and clear this condition.  If you I<don't> set the C<force> "
26527 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
26528 "times on a single filesystem without booting into Windows between each "
26529 "resize."
26530 msgstr ""
26531
26532 #. type: =head2
26533 #: ../src/guestfs-actions.pod:5218
26534 msgid "guestfs_ntfsresize_opts_va"
26535 msgstr ""
26536
26537 #. type: verbatim
26538 #: ../src/guestfs-actions.pod:5220
26539 #, no-wrap
26540 msgid ""
26541 " int\n"
26542 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
26543 "                             const char *device,\n"
26544 "                             va_list args);\n"
26545 "\n"
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../src/guestfs-actions.pod:5225
26550 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
26551 msgstr ""
26552
26553 #. type: =head2
26554 #: ../src/guestfs-actions.pod:5229
26555 msgid "guestfs_ntfsresize_opts_argv"
26556 msgstr ""
26557
26558 #. type: verbatim
26559 #: ../src/guestfs-actions.pod:5231
26560 #, no-wrap
26561 msgid ""
26562 " int\n"
26563 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
26564 "                               const char *device,\n"
26565 "                               const struct guestfs_ntfsresize_opts_argv "
26566 "*optargs);\n"
26567 "\n"
26568 msgstr ""
26569
26570 #. type: textblock
26571 #: ../src/guestfs-actions.pod:5236
26572 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
26573 msgstr ""
26574
26575 #. type: =head2
26576 #: ../src/guestfs-actions.pod:5240
26577 msgid "guestfs_ntfsresize_size"
26578 msgstr ""
26579
26580 #. type: verbatim
26581 #: ../src/guestfs-actions.pod:5242
26582 #, no-wrap
26583 msgid ""
26584 " int\n"
26585 " guestfs_ntfsresize_size (guestfs_h *g,\n"
26586 "                          const char *device,\n"
26587 "                          int64_t size);\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../src/guestfs-actions.pod:5254
26593 msgid ""
26594 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
26595 "to specify the new size (in bytes) explicitly."
26596 msgstr ""
26597
26598 #. type: textblock
26599 #: ../src/guestfs-actions.pod:5259 ../src/guestfs-actions.pod:5701 ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:6042 ../src/guestfs-actions.pod:7665
26600 msgid "(Added in 1.3.14)"
26601 msgstr ""
26602
26603 #. type: =head2
26604 #: ../src/guestfs-actions.pod:5261
26605 msgid "guestfs_part_add"
26606 msgstr ""
26607
26608 #. type: verbatim
26609 #: ../src/guestfs-actions.pod:5263
26610 #, no-wrap
26611 msgid ""
26612 " int\n"
26613 " guestfs_part_add (guestfs_h *g,\n"
26614 "                   const char *device,\n"
26615 "                   const char *prlogex,\n"
26616 "                   int64_t startsect,\n"
26617 "                   int64_t endsect);\n"
26618 "\n"
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:5270
26623 msgid ""
26624 "This command adds a partition to C<device>.  If there is no partition table "
26625 "on the device, call C<guestfs_part_init> first."
26626 msgstr ""
26627
26628 #. type: textblock
26629 #: ../src/guestfs-actions.pod:5282
26630 msgid ""
26631 "Creating a partition which covers the whole disk is not so easy.  Use "
26632 "C<guestfs_part_disk> to do that."
26633 msgstr ""
26634
26635 #. type: textblock
26636 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5378 ../src/guestfs-actions.pod:5462 ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5519 ../src/guestfs-actions.pod:5559
26637 msgid "(Added in 1.0.78)"
26638 msgstr ""
26639
26640 #. type: =head2
26641 #: ../src/guestfs-actions.pod:5289
26642 msgid "guestfs_part_del"
26643 msgstr ""
26644
26645 #. type: verbatim
26646 #: ../src/guestfs-actions.pod:5291
26647 #, no-wrap
26648 msgid ""
26649 " int\n"
26650 " guestfs_part_del (guestfs_h *g,\n"
26651 "                   const char *device,\n"
26652 "                   int partnum);\n"
26653 "\n"
26654 msgstr ""
26655
26656 #. type: =head2
26657 #: ../src/guestfs-actions.pod:5306
26658 msgid "guestfs_part_disk"
26659 msgstr ""
26660
26661 #. type: verbatim
26662 #: ../src/guestfs-actions.pod:5308
26663 #, no-wrap
26664 msgid ""
26665 " int\n"
26666 " guestfs_part_disk (guestfs_h *g,\n"
26667 "                    const char *device,\n"
26668 "                    const char *parttype);\n"
26669 "\n"
26670 msgstr ""
26671
26672 #. type: textblock
26673 #: ../src/guestfs-actions.pod:5313
26674 msgid ""
26675 "This command is simply a combination of C<guestfs_part_init> followed by "
26676 "C<guestfs_part_add> to create a single primary partition covering the whole "
26677 "disk."
26678 msgstr ""
26679
26680 #. type: textblock
26681 #: ../src/guestfs-actions.pod:5317
26682 msgid ""
26683 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
26684 "possible values are described in C<guestfs_part_init>."
26685 msgstr ""
26686
26687 #. type: =head2
26688 #: ../src/guestfs-actions.pod:5327
26689 msgid "guestfs_part_get_bootable"
26690 msgstr ""
26691
26692 #. type: verbatim
26693 #: ../src/guestfs-actions.pod:5329
26694 #, no-wrap
26695 msgid ""
26696 " int\n"
26697 " guestfs_part_get_bootable (guestfs_h *g,\n"
26698 "                            const char *device,\n"
26699 "                            int partnum);\n"
26700 "\n"
26701 msgstr ""
26702
26703 #. type: textblock
26704 #: ../src/guestfs-actions.pod:5337
26705 msgid "See also C<guestfs_part_set_bootable>."
26706 msgstr ""
26707
26708 #. type: =head2
26709 #: ../src/guestfs-actions.pod:5343
26710 msgid "guestfs_part_get_mbr_id"
26711 msgstr ""
26712
26713 #. type: verbatim
26714 #: ../src/guestfs-actions.pod:5345
26715 #, no-wrap
26716 msgid ""
26717 " int\n"
26718 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
26719 "                          const char *device,\n"
26720 "                          int partnum);\n"
26721 "\n"
26722 msgstr ""
26723
26724 #. type: textblock
26725 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:5535
26726 msgid ""
26727 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
26728 "undefined results for other partition table types (see "
26729 "C<guestfs_part_get_parttype>)."
26730 msgstr ""
26731
26732 #. type: =head2
26733 #: ../src/guestfs-actions.pod:5361
26734 msgid "guestfs_part_get_parttype"
26735 msgstr ""
26736
26737 #. type: verbatim
26738 #: ../src/guestfs-actions.pod:5363
26739 #, no-wrap
26740 msgid ""
26741 " char *\n"
26742 " guestfs_part_get_parttype (guestfs_h *g,\n"
26743 "                            const char *device);\n"
26744 "\n"
26745 msgstr ""
26746
26747 #. type: textblock
26748 #: ../src/guestfs-actions.pod:5370
26749 msgid ""
26750 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
26751 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
26752 "possible, although unusual.  See C<guestfs_part_init> for a full list."
26753 msgstr ""
26754
26755 #. type: =head2
26756 #: ../src/guestfs-actions.pod:5380
26757 msgid "guestfs_part_init"
26758 msgstr ""
26759
26760 #. type: verbatim
26761 #: ../src/guestfs-actions.pod:5382
26762 #, no-wrap
26763 msgid ""
26764 " int\n"
26765 " guestfs_part_init (guestfs_h *g,\n"
26766 "                    const char *device,\n"
26767 "                    const char *parttype);\n"
26768 "\n"
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:5391
26773 msgid ""
26774 "Initially there are no partitions.  Following this, you should call "
26775 "C<guestfs_part_add> for each partition required."
26776 msgstr ""
26777
26778 #. type: =head2
26779 #: ../src/guestfs-actions.pod:5464
26780 msgid "guestfs_part_list"
26781 msgstr ""
26782
26783 #. type: verbatim
26784 #: ../src/guestfs-actions.pod:5466
26785 #, no-wrap
26786 msgid ""
26787 " struct guestfs_partition_list *\n"
26788 " guestfs_part_list (guestfs_h *g,\n"
26789 "                    const char *device);\n"
26790 "\n"
26791 msgstr ""
26792
26793 #. type: textblock
26794 #: ../src/guestfs-actions.pod:5483
26795 msgid ""
26796 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
26797 "the device's sector size, see C<guestfs_blockdev_getss>."
26798 msgstr ""
26799
26800 #. type: textblock
26801 #: ../src/guestfs-actions.pod:5496
26802 msgid ""
26803 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
26804 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
26805 "use>."
26806 msgstr ""
26807
26808 #. type: =head2
26809 #: ../src/guestfs-actions.pod:5502
26810 msgid "guestfs_part_set_bootable"
26811 msgstr ""
26812
26813 #. type: verbatim
26814 #: ../src/guestfs-actions.pod:5504
26815 #, no-wrap
26816 msgid ""
26817 " int\n"
26818 " guestfs_part_set_bootable (guestfs_h *g,\n"
26819 "                            const char *device,\n"
26820 "                            int partnum,\n"
26821 "                            int bootable);\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: =head2
26826 #: ../src/guestfs-actions.pod:5521
26827 msgid "guestfs_part_set_mbr_id"
26828 msgstr ""
26829
26830 #. type: verbatim
26831 #: ../src/guestfs-actions.pod:5523
26832 #, no-wrap
26833 msgid ""
26834 " int\n"
26835 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
26836 "                          const char *device,\n"
26837 "                          int partnum,\n"
26838 "                          int idbyte);\n"
26839 "\n"
26840 msgstr ""
26841
26842 #. type: =head2
26843 #: ../src/guestfs-actions.pod:5543
26844 msgid "guestfs_part_set_name"
26845 msgstr ""
26846
26847 #. type: verbatim
26848 #: ../src/guestfs-actions.pod:5545
26849 #, no-wrap
26850 msgid ""
26851 " int\n"
26852 " guestfs_part_set_name (guestfs_h *g,\n"
26853 "                        const char *device,\n"
26854 "                        int partnum,\n"
26855 "                        const char *name);\n"
26856 "\n"
26857 msgstr ""
26858
26859 #. type: =head2
26860 #: ../src/guestfs-actions.pod:5561
26861 msgid "guestfs_part_to_dev"
26862 msgstr ""
26863
26864 #. type: verbatim
26865 #: ../src/guestfs-actions.pod:5563
26866 #, no-wrap
26867 msgid ""
26868 " char *\n"
26869 " guestfs_part_to_dev (guestfs_h *g,\n"
26870 "                      const char *partition);\n"
26871 "\n"
26872 msgstr ""
26873
26874 #. type: textblock
26875 #: ../src/guestfs-actions.pod:5571
26876 msgid ""
26877 "The named partition must exist, for example as a string returned from "
26878 "C<guestfs_list_partitions>."
26879 msgstr ""
26880
26881 #. type: =head2
26882 #: ../src/guestfs-actions.pod:5579
26883 msgid "guestfs_ping_daemon"
26884 msgstr ""
26885
26886 #. type: verbatim
26887 #: ../src/guestfs-actions.pod:5581
26888 #, no-wrap
26889 msgid ""
26890 " int\n"
26891 " guestfs_ping_daemon (guestfs_h *g);\n"
26892 "\n"
26893 msgstr ""
26894
26895 #. type: =head2
26896 #: ../src/guestfs-actions.pod:5593
26897 msgid "guestfs_pread"
26898 msgstr ""
26899
26900 #. type: verbatim
26901 #: ../src/guestfs-actions.pod:5595
26902 #, no-wrap
26903 msgid ""
26904 " char *\n"
26905 " guestfs_pread (guestfs_h *g,\n"
26906 "                const char *path,\n"
26907 "                int count,\n"
26908 "                int64_t offset,\n"
26909 "                size_t *size_r);\n"
26910 "\n"
26911 msgstr ""
26912
26913 #. type: textblock
26914 #: ../src/guestfs-actions.pod:5608
26915 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
26916 msgstr ""
26917
26918 #. type: =head2
26919 #: ../src/guestfs-actions.pod:5619
26920 msgid "guestfs_pread_device"
26921 msgstr ""
26922
26923 #. type: verbatim
26924 #: ../src/guestfs-actions.pod:5621
26925 #, no-wrap
26926 msgid ""
26927 " char *\n"
26928 " guestfs_pread_device (guestfs_h *g,\n"
26929 "                       const char *device,\n"
26930 "                       int count,\n"
26931 "                       int64_t offset,\n"
26932 "                       size_t *size_r);\n"
26933 "\n"
26934 msgstr ""
26935
26936 #. type: textblock
26937 #: ../src/guestfs-actions.pod:5634
26938 msgid "See also C<guestfs_pread>."
26939 msgstr ""
26940
26941 #. type: textblock
26942 #: ../src/guestfs-actions.pod:5643
26943 msgid "(Added in 1.5.21)"
26944 msgstr ""
26945
26946 #. type: =head2
26947 #: ../src/guestfs-actions.pod:5645
26948 msgid "guestfs_pvcreate"
26949 msgstr ""
26950
26951 #. type: verbatim
26952 #: ../src/guestfs-actions.pod:5647
26953 #, no-wrap
26954 msgid ""
26955 " int\n"
26956 " guestfs_pvcreate (guestfs_h *g,\n"
26957 "                   const char *device);\n"
26958 "\n"
26959 msgstr ""
26960
26961 #. type: =head2
26962 #: ../src/guestfs-actions.pod:5659
26963 msgid "guestfs_pvremove"
26964 msgstr ""
26965
26966 #. type: verbatim
26967 #: ../src/guestfs-actions.pod:5661
26968 #, no-wrap
26969 msgid ""
26970 " int\n"
26971 " guestfs_pvremove (guestfs_h *g,\n"
26972 "                   const char *device);\n"
26973 "\n"
26974 msgstr ""
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:5676
26978 msgid "guestfs_pvresize"
26979 msgstr ""
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:5678
26983 #, no-wrap
26984 msgid ""
26985 " int\n"
26986 " guestfs_pvresize (guestfs_h *g,\n"
26987 "                   const char *device);\n"
26988 "\n"
26989 msgstr ""
26990
26991 #. type: =head2
26992 #: ../src/guestfs-actions.pod:5689
26993 msgid "guestfs_pvresize_size"
26994 msgstr ""
26995
26996 #. type: verbatim
26997 #: ../src/guestfs-actions.pod:5691
26998 #, no-wrap
26999 msgid ""
27000 " int\n"
27001 " guestfs_pvresize_size (guestfs_h *g,\n"
27002 "                        const char *device,\n"
27003 "                        int64_t size);\n"
27004 "\n"
27005 msgstr ""
27006
27007 #. type: textblock
27008 #: ../src/guestfs-actions.pod:5696
27009 msgid ""
27010 "This command is the same as C<guestfs_pvresize> except that it allows you to "
27011 "specify the new size (in bytes) explicitly."
27012 msgstr ""
27013
27014 #. type: =head2
27015 #: ../src/guestfs-actions.pod:5703
27016 msgid "guestfs_pvs"
27017 msgstr ""
27018
27019 #. type: verbatim
27020 #: ../src/guestfs-actions.pod:5705
27021 #, no-wrap
27022 msgid ""
27023 " char **\n"
27024 " guestfs_pvs (guestfs_h *g);\n"
27025 "\n"
27026 msgstr ""
27027
27028 #. type: textblock
27029 #: ../src/guestfs-actions.pod:5714
27030 msgid "See also C<guestfs_pvs_full>."
27031 msgstr ""
27032
27033 #. type: =head2
27034 #: ../src/guestfs-actions.pod:5722
27035 msgid "guestfs_pvs_full"
27036 msgstr ""
27037
27038 #. type: verbatim
27039 #: ../src/guestfs-actions.pod:5724
27040 #, no-wrap
27041 msgid ""
27042 " struct guestfs_lvm_pv_list *\n"
27043 " guestfs_pvs_full (guestfs_h *g);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:5730
27049 msgid ""
27050 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
27051 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after "
27052 "use>."
27053 msgstr ""
27054
27055 #. type: =head2
27056 #: ../src/guestfs-actions.pod:5736
27057 msgid "guestfs_pvuuid"
27058 msgstr ""
27059
27060 #. type: verbatim
27061 #: ../src/guestfs-actions.pod:5738
27062 #, no-wrap
27063 msgid ""
27064 " char *\n"
27065 " guestfs_pvuuid (guestfs_h *g,\n"
27066 "                 const char *device);\n"
27067 "\n"
27068 msgstr ""
27069
27070 #. type: =head2
27071 #: ../src/guestfs-actions.pod:5749
27072 msgid "guestfs_pwrite"
27073 msgstr ""
27074
27075 #. type: verbatim
27076 #: ../src/guestfs-actions.pod:5751
27077 #, no-wrap
27078 msgid ""
27079 " int\n"
27080 " guestfs_pwrite (guestfs_h *g,\n"
27081 "                 const char *path,\n"
27082 "                 const char *content,\n"
27083 "                 size_t content_size,\n"
27084 "                 int64_t offset);\n"
27085 "\n"
27086 msgstr ""
27087
27088 #. type: textblock
27089 #: ../src/guestfs-actions.pod:5767
27090 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
27091 msgstr ""
27092
27093 #. type: =head2
27094 #: ../src/guestfs-actions.pod:5776
27095 msgid "guestfs_pwrite_device"
27096 msgstr ""
27097
27098 #. type: verbatim
27099 #: ../src/guestfs-actions.pod:5778
27100 #, no-wrap
27101 msgid ""
27102 " int\n"
27103 " guestfs_pwrite_device (guestfs_h *g,\n"
27104 "                        const char *device,\n"
27105 "                        const char *content,\n"
27106 "                        size_t content_size,\n"
27107 "                        int64_t offset);\n"
27108 "\n"
27109 msgstr ""
27110
27111 #. type: textblock
27112 #: ../src/guestfs-actions.pod:5793
27113 msgid "See also C<guestfs_pwrite>."
27114 msgstr ""
27115
27116 #. type: textblock
27117 #: ../src/guestfs-actions.pod:5800
27118 msgid "(Added in 1.5.20)"
27119 msgstr ""
27120
27121 #. type: =head2
27122 #: ../src/guestfs-actions.pod:5802
27123 msgid "guestfs_read_file"
27124 msgstr ""
27125
27126 #. type: verbatim
27127 #: ../src/guestfs-actions.pod:5804
27128 #, no-wrap
27129 msgid ""
27130 " char *\n"
27131 " guestfs_read_file (guestfs_h *g,\n"
27132 "                    const char *path,\n"
27133 "                    size_t *size_r);\n"
27134 "\n"
27135 msgstr ""
27136
27137 #. type: textblock
27138 #: ../src/guestfs-actions.pod:5812
27139 msgid ""
27140 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
27141 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
27142 "function is limited in the total size of file that can be handled."
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../src/guestfs-actions.pod:5824
27147 msgid "(Added in 1.0.63)"
27148 msgstr ""
27149
27150 #. type: =head2
27151 #: ../src/guestfs-actions.pod:5826
27152 msgid "guestfs_read_lines"
27153 msgstr ""
27154
27155 #. type: verbatim
27156 #: ../src/guestfs-actions.pod:5828
27157 #, no-wrap
27158 msgid ""
27159 " char **\n"
27160 " guestfs_read_lines (guestfs_h *g,\n"
27161 "                     const char *path);\n"
27162 "\n"
27163 msgstr ""
27164
27165 #. type: textblock
27166 #: ../src/guestfs-actions.pod:5837
27167 msgid ""
27168 "Note that this function cannot correctly handle binary files (specifically, "
27169 "files containing C<\\0> character which is treated as end of line).  For "
27170 "those you need to use the C<guestfs_read_file> function which has a more "
27171 "complex interface."
27172 msgstr ""
27173
27174 #. type: =head2
27175 #: ../src/guestfs-actions.pod:5848
27176 msgid "guestfs_readdir"
27177 msgstr ""
27178
27179 #. type: verbatim
27180 #: ../src/guestfs-actions.pod:5850
27181 #, no-wrap
27182 msgid ""
27183 " struct guestfs_dirent_list *\n"
27184 " guestfs_readdir (guestfs_h *g,\n"
27185 "                  const char *dir);\n"
27186 "\n"
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:5904
27191 msgid ""
27192 "This function is primarily intended for use by programs.  To get a simple "
27193 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
27194 "consumption, use C<guestfs_ll>."
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:5908
27199 msgid ""
27200 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
27201 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after "
27202 "use>."
27203 msgstr ""
27204
27205 #. type: =head2
27206 #: ../src/guestfs-actions.pod:5914
27207 msgid "guestfs_readlink"
27208 msgstr ""
27209
27210 #. type: verbatim
27211 #: ../src/guestfs-actions.pod:5916
27212 #, no-wrap
27213 msgid ""
27214 " char *\n"
27215 " guestfs_readlink (guestfs_h *g,\n"
27216 "                   const char *path);\n"
27217 "\n"
27218 msgstr ""
27219
27220 #. type: =head2
27221 #: ../src/guestfs-actions.pod:5927
27222 msgid "guestfs_readlinklist"
27223 msgstr ""
27224
27225 #. type: verbatim
27226 #: ../src/guestfs-actions.pod:5929
27227 #, no-wrap
27228 msgid ""
27229 " char **\n"
27230 " guestfs_readlinklist (guestfs_h *g,\n"
27231 "                       const char *path,\n"
27232 "                       char *const *names);\n"
27233 "\n"
27234 msgstr ""
27235
27236 #. type: =head2
27237 #: ../src/guestfs-actions.pod:5962
27238 msgid "guestfs_realpath"
27239 msgstr ""
27240
27241 #. type: verbatim
27242 #: ../src/guestfs-actions.pod:5964
27243 #, no-wrap
27244 msgid ""
27245 " char *\n"
27246 " guestfs_realpath (guestfs_h *g,\n"
27247 "                   const char *path);\n"
27248 "\n"
27249 msgstr ""
27250
27251 #. type: =head2
27252 #: ../src/guestfs-actions.pod:5976
27253 msgid "guestfs_removexattr"
27254 msgstr ""
27255
27256 #. type: verbatim
27257 #: ../src/guestfs-actions.pod:5978
27258 #, no-wrap
27259 msgid ""
27260 " int\n"
27261 " guestfs_removexattr (guestfs_h *g,\n"
27262 "                      const char *xattr,\n"
27263 "                      const char *path);\n"
27264 "\n"
27265 msgstr ""
27266
27267 #. type: textblock
27268 #: ../src/guestfs-actions.pod:5986
27269 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
27270 msgstr ""
27271
27272 #. type: =head2
27273 #: ../src/guestfs-actions.pod:5992
27274 msgid "guestfs_resize2fs"
27275 msgstr ""
27276
27277 #. type: verbatim
27278 #: ../src/guestfs-actions.pod:5994
27279 #, no-wrap
27280 msgid ""
27281 " int\n"
27282 " guestfs_resize2fs (guestfs_h *g,\n"
27283 "                    const char *device);\n"
27284 "\n"
27285 msgstr ""
27286
27287 #. type: textblock
27288 #: ../src/guestfs-actions.pod:6001
27289 msgid ""
27290 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
27291 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
27292 "sometimes gives an error about this and sometimes not.  In any case, it is "
27293 "always safe to call C<guestfs_e2fsck_f> before calling this function."
27294 msgstr ""
27295
27296 #. type: =head2
27297 #: ../src/guestfs-actions.pod:6011
27298 msgid "guestfs_resize2fs_M"
27299 msgstr ""
27300
27301 #. type: verbatim
27302 #: ../src/guestfs-actions.pod:6013
27303 #, no-wrap
27304 msgid ""
27305 " int\n"
27306 " guestfs_resize2fs_M (guestfs_h *g,\n"
27307 "                      const char *device);\n"
27308 "\n"
27309 msgstr ""
27310
27311 #. type: textblock
27312 #: ../src/guestfs-actions.pod:6017
27313 msgid ""
27314 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
27315 "resized to its minimum size.  This works like the I<-M> option to the "
27316 "C<resize2fs> command."
27317 msgstr ""
27318
27319 #. type: textblock
27320 #: ../src/guestfs-actions.pod:6021
27321 msgid ""
27322 "To get the resulting size of the filesystem you should call "
27323 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
27324 "These two numbers, multiplied together, give the resulting size of the "
27325 "minimal filesystem in bytes."
27326 msgstr ""
27327
27328 #. type: =head2
27329 #: ../src/guestfs-actions.pod:6030
27330 msgid "guestfs_resize2fs_size"
27331 msgstr ""
27332
27333 #. type: verbatim
27334 #: ../src/guestfs-actions.pod:6032
27335 #, no-wrap
27336 msgid ""
27337 " int\n"
27338 " guestfs_resize2fs_size (guestfs_h *g,\n"
27339 "                         const char *device,\n"
27340 "                         int64_t size);\n"
27341 "\n"
27342 msgstr ""
27343
27344 #. type: textblock
27345 #: ../src/guestfs-actions.pod:6037
27346 msgid ""
27347 "This command is the same as C<guestfs_resize2fs> except that it allows you "
27348 "to specify the new size (in bytes) explicitly."
27349 msgstr ""
27350
27351 #. type: =head2
27352 #: ../src/guestfs-actions.pod:6044
27353 msgid "guestfs_rm"
27354 msgstr ""
27355
27356 #. type: verbatim
27357 #: ../src/guestfs-actions.pod:6046
27358 #, no-wrap
27359 msgid ""
27360 " int\n"
27361 " guestfs_rm (guestfs_h *g,\n"
27362 "             const char *path);\n"
27363 "\n"
27364 msgstr ""
27365
27366 #. type: =head2
27367 #: ../src/guestfs-actions.pod:6056
27368 msgid "guestfs_rm_rf"
27369 msgstr ""
27370
27371 #. type: verbatim
27372 #: ../src/guestfs-actions.pod:6058
27373 #, no-wrap
27374 msgid ""
27375 " int\n"
27376 " guestfs_rm_rf (guestfs_h *g,\n"
27377 "                const char *path);\n"
27378 "\n"
27379 msgstr ""
27380
27381 #. type: =head2
27382 #: ../src/guestfs-actions.pod:6070
27383 msgid "guestfs_rmdir"
27384 msgstr ""
27385
27386 #. type: verbatim
27387 #: ../src/guestfs-actions.pod:6072
27388 #, no-wrap
27389 msgid ""
27390 " int\n"
27391 " guestfs_rmdir (guestfs_h *g,\n"
27392 "                const char *path);\n"
27393 "\n"
27394 msgstr ""
27395
27396 #. type: =head2
27397 #: ../src/guestfs-actions.pod:6082
27398 msgid "guestfs_rmmountpoint"
27399 msgstr ""
27400
27401 #. type: verbatim
27402 #: ../src/guestfs-actions.pod:6084
27403 #, no-wrap
27404 msgid ""
27405 " int\n"
27406 " guestfs_rmmountpoint (guestfs_h *g,\n"
27407 "                       const char *exemptpath);\n"
27408 "\n"
27409 msgstr ""
27410
27411 #. type: textblock
27412 #: ../src/guestfs-actions.pod:6088
27413 msgid ""
27414 "This calls removes a mountpoint that was previously created with "
27415 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
27416 msgstr ""
27417
27418 #. type: =head2
27419 #: ../src/guestfs-actions.pod:6096
27420 msgid "guestfs_scrub_device"
27421 msgstr ""
27422
27423 #. type: verbatim
27424 #: ../src/guestfs-actions.pod:6098
27425 #, no-wrap
27426 msgid ""
27427 " int\n"
27428 " guestfs_scrub_device (guestfs_h *g,\n"
27429 "                       const char *device);\n"
27430 "\n"
27431 msgstr ""
27432
27433 #. type: textblock
27434 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
27435 msgid "(Added in 1.0.52)"
27436 msgstr ""
27437
27438 #. type: =head2
27439 #: ../src/guestfs-actions.pod:6115
27440 msgid "guestfs_scrub_file"
27441 msgstr ""
27442
27443 #. type: verbatim
27444 #: ../src/guestfs-actions.pod:6117
27445 #, no-wrap
27446 msgid ""
27447 " int\n"
27448 " guestfs_scrub_file (guestfs_h *g,\n"
27449 "                     const char *file);\n"
27450 "\n"
27451 msgstr ""
27452
27453 #. type: =head2
27454 #: ../src/guestfs-actions.pod:6133
27455 msgid "guestfs_scrub_freespace"
27456 msgstr ""
27457
27458 #. type: verbatim
27459 #: ../src/guestfs-actions.pod:6135
27460 #, no-wrap
27461 msgid ""
27462 " int\n"
27463 " guestfs_scrub_freespace (guestfs_h *g,\n"
27464 "                          const char *dir);\n"
27465 "\n"
27466 msgstr ""
27467
27468 #. type: textblock
27469 #: ../src/guestfs-actions.pod:6139
27470 msgid ""
27471 "This command creates the directory C<dir> and then fills it with files until "
27472 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
27473 "and deletes them.  The intention is to scrub any free space on the partition "
27474 "containing C<dir>."
27475 msgstr ""
27476
27477 #. type: =head2
27478 #: ../src/guestfs-actions.pod:6152
27479 msgid "guestfs_set_append"
27480 msgstr ""
27481
27482 #. type: verbatim
27483 #: ../src/guestfs-actions.pod:6154
27484 #, no-wrap
27485 msgid ""
27486 " int\n"
27487 " guestfs_set_append (guestfs_h *g,\n"
27488 "                     const char *append);\n"
27489 "\n"
27490 msgstr ""
27491
27492 #. type: =head2
27493 #: ../src/guestfs-actions.pod:6171
27494 msgid "guestfs_set_attach_method"
27495 msgstr ""
27496
27497 #. type: verbatim
27498 #: ../src/guestfs-actions.pod:6173
27499 #, no-wrap
27500 msgid ""
27501 " int\n"
27502 " guestfs_set_attach_method (guestfs_h *g,\n"
27503 "                            const char *attachmethod);\n"
27504 "\n"
27505 msgstr ""
27506
27507 #. type: =head2
27508 #: ../src/guestfs-actions.pod:6201
27509 msgid "guestfs_set_autosync"
27510 msgstr ""
27511
27512 #. type: verbatim
27513 #: ../src/guestfs-actions.pod:6203
27514 #, no-wrap
27515 msgid ""
27516 " int\n"
27517 " guestfs_set_autosync (guestfs_h *g,\n"
27518 "                       int autosync);\n"
27519 "\n"
27520 msgstr ""
27521
27522 #. type: =head2
27523 #: ../src/guestfs-actions.pod:6219
27524 msgid "guestfs_set_direct"
27525 msgstr ""
27526
27527 #. type: verbatim
27528 #: ../src/guestfs-actions.pod:6221
27529 #, no-wrap
27530 msgid ""
27531 " int\n"
27532 " guestfs_set_direct (guestfs_h *g,\n"
27533 "                     int direct);\n"
27534 "\n"
27535 msgstr ""
27536
27537 #. type: textblock
27538 #: ../src/guestfs-actions.pod:6229
27539 msgid ""
27540 "One consequence of this is that log messages aren't caught by the library "
27541 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
27542 "stdout."
27543 msgstr ""
27544
27545 #. type: =head2
27546 #: ../src/guestfs-actions.pod:6242
27547 msgid "guestfs_set_e2label"
27548 msgstr ""
27549
27550 #. type: verbatim
27551 #: ../src/guestfs-actions.pod:6244
27552 #, no-wrap
27553 msgid ""
27554 " int\n"
27555 " guestfs_set_e2label (guestfs_h *g,\n"
27556 "                      const char *device,\n"
27557 "                      const char *label);\n"
27558 "\n"
27559 msgstr ""
27560
27561 #. type: textblock
27562 #: ../src/guestfs-actions.pod:6253
27563 msgid ""
27564 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
27565 "the existing label on a filesystem."
27566 msgstr ""
27567
27568 #. type: =head2
27569 #: ../src/guestfs-actions.pod:6260
27570 msgid "guestfs_set_e2uuid"
27571 msgstr ""
27572
27573 #. type: verbatim
27574 #: ../src/guestfs-actions.pod:6262
27575 #, no-wrap
27576 msgid ""
27577 " int\n"
27578 " guestfs_set_e2uuid (guestfs_h *g,\n"
27579 "                     const char *device,\n"
27580 "                     const char *uuid);\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: textblock
27585 #: ../src/guestfs-actions.pod:6272
27586 msgid ""
27587 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
27588 "the existing UUID of a filesystem."
27589 msgstr ""
27590
27591 #. type: =head2
27592 #: ../src/guestfs-actions.pod:6279
27593 msgid "guestfs_set_memsize"
27594 msgstr ""
27595
27596 #. type: verbatim
27597 #: ../src/guestfs-actions.pod:6281
27598 #, no-wrap
27599 msgid ""
27600 " int\n"
27601 " guestfs_set_memsize (guestfs_h *g,\n"
27602 "                      int memsize);\n"
27603 "\n"
27604 msgstr ""
27605
27606 #. type: textblock
27607 #: ../src/guestfs-actions.pod:6285
27608 msgid ""
27609 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
27610 "This only has any effect if called before C<guestfs_launch>."
27611 msgstr ""
27612
27613 #. type: =head2
27614 #: ../src/guestfs-actions.pod:6300
27615 msgid "guestfs_set_network"
27616 msgstr ""
27617
27618 #. type: verbatim
27619 #: ../src/guestfs-actions.pod:6302
27620 #, no-wrap
27621 msgid ""
27622 " int\n"
27623 " guestfs_set_network (guestfs_h *g,\n"
27624 "                      int network);\n"
27625 "\n"
27626 msgstr ""
27627
27628 #. type: textblock
27629 #: ../src/guestfs-actions.pod:6312
27630 msgid ""
27631 "You must call this before calling C<guestfs_launch>, otherwise it has no "
27632 "effect."
27633 msgstr ""
27634
27635 #. type: =head2
27636 #: ../src/guestfs-actions.pod:6319
27637 msgid "guestfs_set_path"
27638 msgstr ""
27639
27640 #. type: verbatim
27641 #: ../src/guestfs-actions.pod:6321
27642 #, no-wrap
27643 msgid ""
27644 " int\n"
27645 " guestfs_set_path (guestfs_h *g,\n"
27646 "                   const char *searchpath);\n"
27647 "\n"
27648 msgstr ""
27649
27650 #. type: =head2
27651 #: ../src/guestfs-actions.pod:6336
27652 msgid "guestfs_set_pgroup"
27653 msgstr ""
27654
27655 #. type: verbatim
27656 #: ../src/guestfs-actions.pod:6338
27657 #, no-wrap
27658 msgid ""
27659 " int\n"
27660 " guestfs_set_pgroup (guestfs_h *g,\n"
27661 "                     int pgroup);\n"
27662 "\n"
27663 msgstr ""
27664
27665 #. type: =head2
27666 #: ../src/guestfs-actions.pod:6355
27667 msgid "guestfs_set_qemu"
27668 msgstr ""
27669
27670 #. type: verbatim
27671 #: ../src/guestfs-actions.pod:6357
27672 #, no-wrap
27673 msgid ""
27674 " int\n"
27675 " guestfs_set_qemu (guestfs_h *g,\n"
27676 "                   const char *qemu);\n"
27677 "\n"
27678 msgstr ""
27679
27680 #. type: =head2
27681 #: ../src/guestfs-actions.pod:6383
27682 msgid "guestfs_set_recovery_proc"
27683 msgstr ""
27684
27685 #. type: verbatim
27686 #: ../src/guestfs-actions.pod:6385
27687 #, no-wrap
27688 msgid ""
27689 " int\n"
27690 " guestfs_set_recovery_proc (guestfs_h *g,\n"
27691 "                            int recoveryproc);\n"
27692 "\n"
27693 msgstr ""
27694
27695 #. type: textblock
27696 #: ../src/guestfs-actions.pod:6389
27697 msgid ""
27698 "If this is called with the parameter C<false> then C<guestfs_launch> does "
27699 "not create a recovery process.  The purpose of the recovery process is to "
27700 "stop runaway qemu processes in the case where the main program aborts "
27701 "abruptly."
27702 msgstr ""
27703
27704 #. type: textblock
27705 #: ../src/guestfs-actions.pod:6394
27706 msgid ""
27707 "This only has any effect if called before C<guestfs_launch>, and the default "
27708 "is true."
27709 msgstr ""
27710
27711 #. type: =head2
27712 #: ../src/guestfs-actions.pod:6407
27713 msgid "guestfs_set_selinux"
27714 msgstr ""
27715
27716 #. type: verbatim
27717 #: ../src/guestfs-actions.pod:6409
27718 #, no-wrap
27719 msgid ""
27720 " int\n"
27721 " guestfs_set_selinux (guestfs_h *g,\n"
27722 "                      int selinux);\n"
27723 "\n"
27724 msgstr ""
27725
27726 #. type: =head2
27727 #: ../src/guestfs-actions.pod:6426
27728 msgid "guestfs_set_trace"
27729 msgstr ""
27730
27731 #. type: verbatim
27732 #: ../src/guestfs-actions.pod:6428
27733 #, no-wrap
27734 msgid ""
27735 " int\n"
27736 " guestfs_set_trace (guestfs_h *g,\n"
27737 "                    int trace);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:6442
27743 msgid ""
27744 "Trace messages are normally sent to C<stderr>, unless you register a "
27745 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27746 msgstr ""
27747
27748 #. type: =head2
27749 #: ../src/guestfs-actions.pod:6450
27750 msgid "guestfs_set_verbose"
27751 msgstr ""
27752
27753 #. type: verbatim
27754 #: ../src/guestfs-actions.pod:6452
27755 #, no-wrap
27756 msgid ""
27757 " int\n"
27758 " guestfs_set_verbose (guestfs_h *g,\n"
27759 "                      int verbose);\n"
27760 "\n"
27761 msgstr ""
27762
27763 #. type: textblock
27764 #: ../src/guestfs-actions.pod:6461
27765 msgid ""
27766 "Verbose messages are normally sent to C<stderr>, unless you register a "
27767 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
27768 msgstr ""
27769
27770 #. type: =head2
27771 #: ../src/guestfs-actions.pod:6469
27772 msgid "guestfs_setcon"
27773 msgstr ""
27774
27775 #. type: verbatim
27776 #: ../src/guestfs-actions.pod:6471
27777 #, no-wrap
27778 msgid ""
27779 " int\n"
27780 " guestfs_setcon (guestfs_h *g,\n"
27781 "                 const char *context);\n"
27782 "\n"
27783 msgstr ""
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:6484
27787 msgid "guestfs_setxattr"
27788 msgstr ""
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:6486
27792 #, no-wrap
27793 msgid ""
27794 " int\n"
27795 " guestfs_setxattr (guestfs_h *g,\n"
27796 "                   const char *xattr,\n"
27797 "                   const char *val,\n"
27798 "                   int vallen,\n"
27799 "                   const char *path);\n"
27800 "\n"
27801 msgstr ""
27802
27803 #. type: textblock
27804 #: ../src/guestfs-actions.pod:6497
27805 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
27806 msgstr ""
27807
27808 #. type: =head2
27809 #: ../src/guestfs-actions.pod:6503
27810 msgid "guestfs_sfdisk"
27811 msgstr ""
27812
27813 #. type: verbatim
27814 #: ../src/guestfs-actions.pod:6505
27815 #, no-wrap
27816 msgid ""
27817 " int\n"
27818 " guestfs_sfdisk (guestfs_h *g,\n"
27819 "                 const char *device,\n"
27820 "                 int cyls,\n"
27821 "                 int heads,\n"
27822 "                 int sectors,\n"
27823 "                 char *const *lines);\n"
27824 "\n"
27825 msgstr ""
27826
27827 #. type: textblock
27828 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6557 ../src/guestfs-actions.pod:6591
27829 msgid ""
27830 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
27831 "call instead."
27832 msgstr ""
27833
27834 #. type: textblock
27835 #: ../src/guestfs-actions.pod:6540
27836 msgid "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
27837 msgstr ""
27838
27839 #. type: =head2
27840 #: ../src/guestfs-actions.pod:6550
27841 msgid "guestfs_sfdiskM"
27842 msgstr ""
27843
27844 #. type: verbatim
27845 #: ../src/guestfs-actions.pod:6552
27846 #, no-wrap
27847 msgid ""
27848 " int\n"
27849 " guestfs_sfdiskM (guestfs_h *g,\n"
27850 "                  const char *device,\n"
27851 "                  char *const *lines);\n"
27852 "\n"
27853 msgstr ""
27854
27855 #. type: textblock
27856 #: ../src/guestfs-actions.pod:6564
27857 msgid ""
27858 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
27859 "partition sizes are specified in megabytes only (rounded to the nearest "
27860 "cylinder) and you don't need to specify the cyls, heads and sectors "
27861 "parameters which were rarely if ever used anyway."
27862 msgstr ""
27863
27864 #. type: textblock
27865 #: ../src/guestfs-actions.pod:6570
27866 msgid ""
27867 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
27868 "C<guestfs_part_disk>"
27869 msgstr ""
27870
27871 #. type: =head2
27872 #: ../src/guestfs-actions.pod:6580
27873 msgid "guestfs_sfdisk_N"
27874 msgstr ""
27875
27876 #. type: verbatim
27877 #: ../src/guestfs-actions.pod:6582
27878 #, no-wrap
27879 msgid ""
27880 " int\n"
27881 " guestfs_sfdisk_N (guestfs_h *g,\n"
27882 "                   const char *device,\n"
27883 "                   int partnum,\n"
27884 "                   int cyls,\n"
27885 "                   int heads,\n"
27886 "                   int sectors,\n"
27887 "                   const char *line);\n"
27888 "\n"
27889 msgstr ""
27890
27891 #. type: textblock
27892 #: ../src/guestfs-actions.pod:6601
27893 msgid ""
27894 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
27895 "for the cyls/heads/sectors parameters."
27896 msgstr ""
27897
27898 #. type: textblock
27899 #: ../src/guestfs-actions.pod:6604
27900 msgid "See also: C<guestfs_part_add>"
27901 msgstr ""
27902
27903 #. type: =head2
27904 #: ../src/guestfs-actions.pod:6613
27905 msgid "guestfs_sfdisk_disk_geometry"
27906 msgstr ""
27907
27908 #. type: verbatim
27909 #: ../src/guestfs-actions.pod:6615
27910 #, no-wrap
27911 msgid ""
27912 " char *\n"
27913 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
27914 "                               const char *device);\n"
27915 "\n"
27916 msgstr ""
27917
27918 #. type: textblock
27919 #: ../src/guestfs-actions.pod:6619
27920 msgid ""
27921 "This displays the disk geometry of C<device> read from the partition table.  "
27922 "Especially in the case where the underlying block device has been resized, "
27923 "this can be different from the kernel's idea of the geometry (see "
27924 "C<guestfs_sfdisk_kernel_geometry>)."
27925 msgstr ""
27926
27927 #. type: =head2
27928 #: ../src/guestfs-actions.pod:6632
27929 msgid "guestfs_sfdisk_kernel_geometry"
27930 msgstr ""
27931
27932 #. type: verbatim
27933 #: ../src/guestfs-actions.pod:6634
27934 #, no-wrap
27935 msgid ""
27936 " char *\n"
27937 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
27938 "                                 const char *device);\n"
27939 "\n"
27940 msgstr ""
27941
27942 #. type: =head2
27943 #: ../src/guestfs-actions.pod:6648
27944 msgid "guestfs_sfdisk_l"
27945 msgstr ""
27946
27947 #. type: verbatim
27948 #: ../src/guestfs-actions.pod:6650
27949 #, no-wrap
27950 msgid ""
27951 " char *\n"
27952 " guestfs_sfdisk_l (guestfs_h *g,\n"
27953 "                   const char *device);\n"
27954 "\n"
27955 msgstr ""
27956
27957 #. type: textblock
27958 #: ../src/guestfs-actions.pod:6654
27959 msgid ""
27960 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
27961 "call instead."
27962 msgstr ""
27963
27964 #. type: textblock
27965 #: ../src/guestfs-actions.pod:6665
27966 msgid "See also: C<guestfs_part_list>"
27967 msgstr ""
27968
27969 #. type: =head2
27970 #: ../src/guestfs-actions.pod:6672
27971 msgid "guestfs_sh"
27972 msgstr ""
27973
27974 #. type: verbatim
27975 #: ../src/guestfs-actions.pod:6674
27976 #, no-wrap
27977 msgid ""
27978 " char *\n"
27979 " guestfs_sh (guestfs_h *g,\n"
27980 "             const char *command);\n"
27981 "\n"
27982 msgstr ""
27983
27984 #. type: textblock
27985 #: ../src/guestfs-actions.pod:6681
27986 msgid "This is like C<guestfs_command>, but passes the command to:"
27987 msgstr ""
27988
27989 #. type: textblock
27990 #: ../src/guestfs-actions.pod:6689
27991 msgid "All the provisos about C<guestfs_command> apply to this call."
27992 msgstr ""
27993
27994 #. type: =head2
27995 #: ../src/guestfs-actions.pod:6696
27996 msgid "guestfs_sh_lines"
27997 msgstr ""
27998
27999 #. type: verbatim
28000 #: ../src/guestfs-actions.pod:6698
28001 #, no-wrap
28002 msgid ""
28003 " char **\n"
28004 " guestfs_sh_lines (guestfs_h *g,\n"
28005 "                   const char *command);\n"
28006 "\n"
28007 msgstr ""
28008
28009 #. type: textblock
28010 #: ../src/guestfs-actions.pod:6702
28011 msgid ""
28012 "This is the same as C<guestfs_sh>, but splits the result into a list of "
28013 "lines."
28014 msgstr ""
28015
28016 #. type: textblock
28017 #: ../src/guestfs-actions.pod:6705
28018 msgid "See also: C<guestfs_command_lines>"
28019 msgstr ""
28020
28021 #. type: =head2
28022 #: ../src/guestfs-actions.pod:6713
28023 msgid "guestfs_sleep"
28024 msgstr ""
28025
28026 #. type: verbatim
28027 #: ../src/guestfs-actions.pod:6715
28028 #, no-wrap
28029 msgid ""
28030 " int\n"
28031 " guestfs_sleep (guestfs_h *g,\n"
28032 "                int secs);\n"
28033 "\n"
28034 msgstr ""
28035
28036 #. type: textblock
28037 #: ../src/guestfs-actions.pod:6723
28038 msgid "(Added in 1.0.41)"
28039 msgstr ""
28040
28041 #. type: =head2
28042 #: ../src/guestfs-actions.pod:6725 ../src/guestfs-structs.pod:109
28043 msgid "guestfs_stat"
28044 msgstr ""
28045
28046 #. type: verbatim
28047 #: ../src/guestfs-actions.pod:6727
28048 #, no-wrap
28049 msgid ""
28050 " struct guestfs_stat *\n"
28051 " guestfs_stat (guestfs_h *g,\n"
28052 "               const char *path);\n"
28053 "\n"
28054 msgstr ""
28055
28056 #. type: =head2
28057 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-structs.pod:135
28058 msgid "guestfs_statvfs"
28059 msgstr ""
28060
28061 #. type: verbatim
28062 #: ../src/guestfs-actions.pod:6743
28063 #, no-wrap
28064 msgid ""
28065 " struct guestfs_statvfs *\n"
28066 " guestfs_statvfs (guestfs_h *g,\n"
28067 "                  const char *path);\n"
28068 "\n"
28069 msgstr ""
28070
28071 #. type: textblock
28072 #: ../src/guestfs-actions.pod:6753
28073 msgid ""
28074 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
28075 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
28076 msgstr ""
28077
28078 #. type: =head2
28079 #: ../src/guestfs-actions.pod:6759
28080 msgid "guestfs_strings"
28081 msgstr ""
28082
28083 #. type: verbatim
28084 #: ../src/guestfs-actions.pod:6761
28085 #, no-wrap
28086 msgid ""
28087 " char **\n"
28088 " guestfs_strings (guestfs_h *g,\n"
28089 "                  const char *path);\n"
28090 "\n"
28091 msgstr ""
28092
28093 #. type: =head2
28094 #: ../src/guestfs-actions.pod:6777
28095 msgid "guestfs_strings_e"
28096 msgstr ""
28097
28098 #. type: verbatim
28099 #: ../src/guestfs-actions.pod:6779
28100 #, no-wrap
28101 msgid ""
28102 " char **\n"
28103 " guestfs_strings_e (guestfs_h *g,\n"
28104 "                    const char *encoding,\n"
28105 "                    const char *path);\n"
28106 "\n"
28107 msgstr ""
28108
28109 #. type: textblock
28110 #: ../src/guestfs-actions.pod:6784
28111 msgid ""
28112 "This is like the C<guestfs_strings> command, but allows you to specify the "
28113 "encoding of strings that are looked for in the source file C<path>."
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../src/guestfs-actions.pod:6794
28118 msgid ""
28119 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
28120 "ISO-8859-X (this is what C<guestfs_strings> uses)."
28121 msgstr ""
28122
28123 #. type: =head2
28124 #: ../src/guestfs-actions.pod:6832
28125 msgid "guestfs_swapoff_device"
28126 msgstr ""
28127
28128 #. type: verbatim
28129 #: ../src/guestfs-actions.pod:6834
28130 #, no-wrap
28131 msgid ""
28132 " int\n"
28133 " guestfs_swapoff_device (guestfs_h *g,\n"
28134 "                         const char *device);\n"
28135 "\n"
28136 msgstr ""
28137
28138 #. type: textblock
28139 #: ../src/guestfs-actions.pod:6838
28140 msgid ""
28141 "This command disables the libguestfs appliance swap device or partition "
28142 "named C<device>.  See C<guestfs_swapon_device>."
28143 msgstr ""
28144
28145 #. type: =head2
28146 #: ../src/guestfs-actions.pod:6846
28147 msgid "guestfs_swapoff_file"
28148 msgstr ""
28149
28150 #. type: verbatim
28151 #: ../src/guestfs-actions.pod:6848
28152 #, no-wrap
28153 msgid ""
28154 " int\n"
28155 " guestfs_swapoff_file (guestfs_h *g,\n"
28156 "                       const char *file);\n"
28157 "\n"
28158 msgstr ""
28159
28160 #. type: =head2
28161 #: ../src/guestfs-actions.pod:6858
28162 msgid "guestfs_swapoff_label"
28163 msgstr ""
28164
28165 #. type: verbatim
28166 #: ../src/guestfs-actions.pod:6860
28167 #, no-wrap
28168 msgid ""
28169 " int\n"
28170 " guestfs_swapoff_label (guestfs_h *g,\n"
28171 "                        const char *label);\n"
28172 "\n"
28173 msgstr ""
28174
28175 #. type: =head2
28176 #: ../src/guestfs-actions.pod:6871
28177 msgid "guestfs_swapoff_uuid"
28178 msgstr ""
28179
28180 #. type: verbatim
28181 #: ../src/guestfs-actions.pod:6873
28182 #, no-wrap
28183 msgid ""
28184 " int\n"
28185 " guestfs_swapoff_uuid (guestfs_h *g,\n"
28186 "                       const char *uuid);\n"
28187 "\n"
28188 msgstr ""
28189
28190 #. type: =head2
28191 #: ../src/guestfs-actions.pod:6884
28192 msgid "guestfs_swapon_device"
28193 msgstr ""
28194
28195 #. type: verbatim
28196 #: ../src/guestfs-actions.pod:6886
28197 #, no-wrap
28198 msgid ""
28199 " int\n"
28200 " guestfs_swapon_device (guestfs_h *g,\n"
28201 "                        const char *device);\n"
28202 "\n"
28203 msgstr ""
28204
28205 #. type: textblock
28206 #: ../src/guestfs-actions.pod:6890
28207 msgid ""
28208 "This command enables the libguestfs appliance to use the swap device or "
28209 "partition named C<device>.  The increased memory is made available for all "
28210 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
28211 msgstr ""
28212
28213 #. type: =head2
28214 #: ../src/guestfs-actions.pod:6906
28215 msgid "guestfs_swapon_file"
28216 msgstr ""
28217
28218 #. type: verbatim
28219 #: ../src/guestfs-actions.pod:6908
28220 #, no-wrap
28221 msgid ""
28222 " int\n"
28223 " guestfs_swapon_file (guestfs_h *g,\n"
28224 "                      const char *file);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: textblock
28229 #: ../src/guestfs-actions.pod:6912
28230 msgid ""
28231 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
28232 "notes."
28233 msgstr ""
28234
28235 #. type: =head2
28236 #: ../src/guestfs-actions.pod:6919
28237 msgid "guestfs_swapon_label"
28238 msgstr ""
28239
28240 #. type: verbatim
28241 #: ../src/guestfs-actions.pod:6921
28242 #, no-wrap
28243 msgid ""
28244 " int\n"
28245 " guestfs_swapon_label (guestfs_h *g,\n"
28246 "                       const char *label);\n"
28247 "\n"
28248 msgstr ""
28249
28250 #. type: textblock
28251 #: ../src/guestfs-actions.pod:6925
28252 msgid ""
28253 "This command enables swap to a labeled swap partition.  See "
28254 "C<guestfs_swapon_device> for other notes."
28255 msgstr ""
28256
28257 #. type: =head2
28258 #: ../src/guestfs-actions.pod:6932
28259 msgid "guestfs_swapon_uuid"
28260 msgstr ""
28261
28262 #. type: verbatim
28263 #: ../src/guestfs-actions.pod:6934
28264 #, no-wrap
28265 msgid ""
28266 " int\n"
28267 " guestfs_swapon_uuid (guestfs_h *g,\n"
28268 "                      const char *uuid);\n"
28269 "\n"
28270 msgstr ""
28271
28272 #. type: textblock
28273 #: ../src/guestfs-actions.pod:6938
28274 msgid ""
28275 "This command enables swap to a swap partition with the given UUID.  See "
28276 "C<guestfs_swapon_device> for other notes."
28277 msgstr ""
28278
28279 #. type: =head2
28280 #: ../src/guestfs-actions.pod:6945
28281 msgid "guestfs_sync"
28282 msgstr ""
28283
28284 #. type: verbatim
28285 #: ../src/guestfs-actions.pod:6947
28286 #, no-wrap
28287 msgid ""
28288 " int\n"
28289 " guestfs_sync (guestfs_h *g);\n"
28290 "\n"
28291 msgstr ""
28292
28293 #. type: =head2
28294 #: ../src/guestfs-actions.pod:6960
28295 msgid "guestfs_tail"
28296 msgstr ""
28297
28298 #. type: verbatim
28299 #: ../src/guestfs-actions.pod:6962
28300 #, no-wrap
28301 msgid ""
28302 " char **\n"
28303 " guestfs_tail (guestfs_h *g,\n"
28304 "               const char *path);\n"
28305 "\n"
28306 msgstr ""
28307
28308 #. type: =head2
28309 #: ../src/guestfs-actions.pod:6978
28310 msgid "guestfs_tail_n"
28311 msgstr ""
28312
28313 #. type: verbatim
28314 #: ../src/guestfs-actions.pod:6980
28315 #, no-wrap
28316 msgid ""
28317 " char **\n"
28318 " guestfs_tail_n (guestfs_h *g,\n"
28319 "                 int nrlines,\n"
28320 "                 const char *path);\n"
28321 "\n"
28322 msgstr ""
28323
28324 #. type: =head2
28325 #: ../src/guestfs-actions.pod:7002
28326 msgid "guestfs_tar_in"
28327 msgstr ""
28328
28329 #. type: verbatim
28330 #: ../src/guestfs-actions.pod:7004
28331 #, no-wrap
28332 msgid ""
28333 " int\n"
28334 " guestfs_tar_in (guestfs_h *g,\n"
28335 "                 const char *tarfile,\n"
28336 "                 const char *directory);\n"
28337 "\n"
28338 msgstr ""
28339
28340 #. type: textblock
28341 #: ../src/guestfs-actions.pod:7012
28342 msgid "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
28343 msgstr ""
28344
28345 #. type: textblock
28346 #: ../src/guestfs-actions.pod:7017 ../src/guestfs-actions.pod:7034 ../src/guestfs-actions.pod:7050 ../src/guestfs-actions.pod:7066
28347 msgid "(Added in 1.0.3)"
28348 msgstr ""
28349
28350 #. type: =head2
28351 #: ../src/guestfs-actions.pod:7019
28352 msgid "guestfs_tar_out"
28353 msgstr ""
28354
28355 #. type: verbatim
28356 #: ../src/guestfs-actions.pod:7021
28357 #, no-wrap
28358 msgid ""
28359 " int\n"
28360 " guestfs_tar_out (guestfs_h *g,\n"
28361 "                  const char *directory,\n"
28362 "                  const char *tarfile);\n"
28363 "\n"
28364 msgstr ""
28365
28366 #. type: textblock
28367 #: ../src/guestfs-actions.pod:7029
28368 msgid ""
28369 "To download a compressed tarball, use C<guestfs_tgz_out> or "
28370 "C<guestfs_txz_out>."
28371 msgstr ""
28372
28373 #. type: =head2
28374 #: ../src/guestfs-actions.pod:7036
28375 msgid "guestfs_tgz_in"
28376 msgstr ""
28377
28378 #. type: verbatim
28379 #: ../src/guestfs-actions.pod:7038
28380 #, no-wrap
28381 msgid ""
28382 " int\n"
28383 " guestfs_tgz_in (guestfs_h *g,\n"
28384 "                 const char *tarball,\n"
28385 "                 const char *directory);\n"
28386 "\n"
28387 msgstr ""
28388
28389 #. type: textblock
28390 #: ../src/guestfs-actions.pod:7046
28391 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
28392 msgstr ""
28393
28394 #. type: =head2
28395 #: ../src/guestfs-actions.pod:7052
28396 msgid "guestfs_tgz_out"
28397 msgstr ""
28398
28399 #. type: verbatim
28400 #: ../src/guestfs-actions.pod:7054
28401 #, no-wrap
28402 msgid ""
28403 " int\n"
28404 " guestfs_tgz_out (guestfs_h *g,\n"
28405 "                  const char *directory,\n"
28406 "                  const char *tarball);\n"
28407 "\n"
28408 msgstr ""
28409
28410 #. type: textblock
28411 #: ../src/guestfs-actions.pod:7062
28412 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
28413 msgstr ""
28414
28415 #. type: =head2
28416 #: ../src/guestfs-actions.pod:7068
28417 msgid "guestfs_touch"
28418 msgstr ""
28419
28420 #. type: verbatim
28421 #: ../src/guestfs-actions.pod:7070
28422 #, no-wrap
28423 msgid ""
28424 " int\n"
28425 " guestfs_touch (guestfs_h *g,\n"
28426 "                const char *path);\n"
28427 "\n"
28428 msgstr ""
28429
28430 #. type: =head2
28431 #: ../src/guestfs-actions.pod:7085
28432 msgid "guestfs_truncate"
28433 msgstr ""
28434
28435 #. type: verbatim
28436 #: ../src/guestfs-actions.pod:7087
28437 #, no-wrap
28438 msgid ""
28439 " int\n"
28440 " guestfs_truncate (guestfs_h *g,\n"
28441 "                   const char *path);\n"
28442 "\n"
28443 msgstr ""
28444
28445 #. type: =head2
28446 #: ../src/guestfs-actions.pod:7098
28447 msgid "guestfs_truncate_size"
28448 msgstr ""
28449
28450 #. type: verbatim
28451 #: ../src/guestfs-actions.pod:7100
28452 #, no-wrap
28453 msgid ""
28454 " int\n"
28455 " guestfs_truncate_size (guestfs_h *g,\n"
28456 "                        const char *path,\n"
28457 "                        int64_t size);\n"
28458 "\n"
28459 msgstr ""
28460
28461 #. type: textblock
28462 #: ../src/guestfs-actions.pod:7108
28463 msgid ""
28464 "If the current file size is less than C<size> then the file is extended to "
28465 "the required size with zero bytes.  This creates a sparse file (ie. disk "
28466 "blocks are not allocated for the file until you write to it).  To create a "
28467 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
28468 msgstr ""
28469
28470 #. type: =head2
28471 #: ../src/guestfs-actions.pod:7118
28472 msgid "guestfs_tune2fs_l"
28473 msgstr ""
28474
28475 #. type: verbatim
28476 #: ../src/guestfs-actions.pod:7120
28477 #, no-wrap
28478 msgid ""
28479 " char **\n"
28480 " guestfs_tune2fs_l (guestfs_h *g,\n"
28481 "                    const char *device);\n"
28482 "\n"
28483 msgstr ""
28484
28485 #. type: =head2
28486 #: ../src/guestfs-actions.pod:7140
28487 msgid "guestfs_txz_in"
28488 msgstr ""
28489
28490 #. type: verbatim
28491 #: ../src/guestfs-actions.pod:7142
28492 #, no-wrap
28493 msgid ""
28494 " int\n"
28495 " guestfs_txz_in (guestfs_h *g,\n"
28496 "                 const char *tarball,\n"
28497 "                 const char *directory);\n"
28498 "\n"
28499 msgstr ""
28500
28501 #. type: =head2
28502 #: ../src/guestfs-actions.pod:7154
28503 msgid "guestfs_txz_out"
28504 msgstr ""
28505
28506 #. type: verbatim
28507 #: ../src/guestfs-actions.pod:7156
28508 #, no-wrap
28509 msgid ""
28510 " int\n"
28511 " guestfs_txz_out (guestfs_h *g,\n"
28512 "                  const char *directory,\n"
28513 "                  const char *tarball);\n"
28514 "\n"
28515 msgstr ""
28516
28517 #. type: =head2
28518 #: ../src/guestfs-actions.pod:7168
28519 msgid "guestfs_umask"
28520 msgstr ""
28521
28522 #. type: verbatim
28523 #: ../src/guestfs-actions.pod:7170
28524 #, no-wrap
28525 msgid ""
28526 " int\n"
28527 " guestfs_umask (guestfs_h *g,\n"
28528 "                int mask);\n"
28529 "\n"
28530 msgstr ""
28531
28532 #. type: textblock
28533 #: ../src/guestfs-actions.pod:7186
28534 msgid ""
28535 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
28536 "C<guestfs_mkdir>."
28537 msgstr ""
28538
28539 #. type: =head2
28540 #: ../src/guestfs-actions.pod:7195
28541 msgid "guestfs_umount"
28542 msgstr ""
28543
28544 #. type: verbatim
28545 #: ../src/guestfs-actions.pod:7197
28546 #, no-wrap
28547 msgid ""
28548 " int\n"
28549 " guestfs_umount (guestfs_h *g,\n"
28550 "                 const char *pathordevice);\n"
28551 "\n"
28552 msgstr ""
28553
28554 #. type: =head2
28555 #: ../src/guestfs-actions.pod:7209
28556 msgid "guestfs_umount_all"
28557 msgstr ""
28558
28559 #. type: verbatim
28560 #: ../src/guestfs-actions.pod:7211
28561 #, no-wrap
28562 msgid ""
28563 " int\n"
28564 " guestfs_umount_all (guestfs_h *g);\n"
28565 "\n"
28566 msgstr ""
28567
28568 #. type: =head2
28569 #: ../src/guestfs-actions.pod:7222
28570 msgid "guestfs_upload"
28571 msgstr ""
28572
28573 #. type: verbatim
28574 #: ../src/guestfs-actions.pod:7224
28575 #, no-wrap
28576 msgid ""
28577 " int\n"
28578 " guestfs_upload (guestfs_h *g,\n"
28579 "                 const char *filename,\n"
28580 "                 const char *remotefilename);\n"
28581 "\n"
28582 msgstr ""
28583
28584 #. type: textblock
28585 #: ../src/guestfs-actions.pod:7234
28586 msgid "See also C<guestfs_download>."
28587 msgstr ""
28588
28589 #. type: =head2
28590 #: ../src/guestfs-actions.pod:7245
28591 msgid "guestfs_upload_offset"
28592 msgstr ""
28593
28594 #. type: verbatim
28595 #: ../src/guestfs-actions.pod:7247
28596 #, no-wrap
28597 msgid ""
28598 " int\n"
28599 " guestfs_upload_offset (guestfs_h *g,\n"
28600 "                        const char *filename,\n"
28601 "                        const char *remotefilename,\n"
28602 "                        int64_t offset);\n"
28603 "\n"
28604 msgstr ""
28605
28606 #. type: textblock
28607 #: ../src/guestfs-actions.pod:7263
28608 msgid ""
28609 "Note that there is no limit on the amount of data that can be uploaded with "
28610 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
28611 "full amount unless an error occurs."
28612 msgstr ""
28613
28614 #. type: textblock
28615 #: ../src/guestfs-actions.pod:7268
28616 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
28617 msgstr ""
28618
28619 #. type: =head2
28620 #: ../src/guestfs-actions.pod:7279
28621 msgid "guestfs_utimens"
28622 msgstr ""
28623
28624 #. type: verbatim
28625 #: ../src/guestfs-actions.pod:7281
28626 #, no-wrap
28627 msgid ""
28628 " int\n"
28629 " guestfs_utimens (guestfs_h *g,\n"
28630 "                  const char *path,\n"
28631 "                  int64_t atsecs,\n"
28632 "                  int64_t atnsecs,\n"
28633 "                  int64_t mtsecs,\n"
28634 "                  int64_t mtnsecs);\n"
28635 "\n"
28636 msgstr ""
28637
28638 #. type: =head2
28639 #: ../src/guestfs-actions.pod:7310 ../src/guestfs-structs.pod:175
28640 msgid "guestfs_version"
28641 msgstr ""
28642
28643 #. type: verbatim
28644 #: ../src/guestfs-actions.pod:7312
28645 #, no-wrap
28646 msgid ""
28647 " struct guestfs_version *\n"
28648 " guestfs_version (guestfs_h *g);\n"
28649 "\n"
28650 msgstr ""
28651
28652 #. type: textblock
28653 #: ../src/guestfs-actions.pod:7340
28654 msgid ""
28655 "I<Note:> Don't use this call to test for availability of features.  In "
28656 "enterprise distributions we backport features from later versions into "
28657 "earlier versions, making this an unreliable way to test for features.  Use "
28658 "C<guestfs_available> instead."
28659 msgstr ""
28660
28661 #. type: textblock
28662 #: ../src/guestfs-actions.pod:7346
28663 msgid ""
28664 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
28665 "error.  I<The caller must call C<guestfs_free_version> after use>."
28666 msgstr ""
28667
28668 #. type: textblock
28669 #: ../src/guestfs-actions.pod:7350
28670 msgid "(Added in 1.0.58)"
28671 msgstr ""
28672
28673 #. type: =head2
28674 #: ../src/guestfs-actions.pod:7352
28675 msgid "guestfs_vfs_label"
28676 msgstr ""
28677
28678 #. type: verbatim
28679 #: ../src/guestfs-actions.pod:7354
28680 #, no-wrap
28681 msgid ""
28682 " char *\n"
28683 " guestfs_vfs_label (guestfs_h *g,\n"
28684 "                    const char *device);\n"
28685 "\n"
28686 msgstr ""
28687
28688 #. type: textblock
28689 #: ../src/guestfs-actions.pod:7363
28690 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
28691 msgstr ""
28692
28693 #. type: textblock
28694 #: ../src/guestfs-actions.pod:7368 ../src/guestfs-actions.pod:7405
28695 msgid "(Added in 1.3.18)"
28696 msgstr ""
28697
28698 #. type: =head2
28699 #: ../src/guestfs-actions.pod:7370
28700 msgid "guestfs_vfs_type"
28701 msgstr ""
28702
28703 #. type: verbatim
28704 #: ../src/guestfs-actions.pod:7372
28705 #, no-wrap
28706 msgid ""
28707 " char *\n"
28708 " guestfs_vfs_type (guestfs_h *g,\n"
28709 "                   const char *device);\n"
28710 "\n"
28711 msgstr ""
28712
28713 #. type: =head2
28714 #: ../src/guestfs-actions.pod:7389
28715 msgid "guestfs_vfs_uuid"
28716 msgstr ""
28717
28718 #. type: verbatim
28719 #: ../src/guestfs-actions.pod:7391
28720 #, no-wrap
28721 msgid ""
28722 " char *\n"
28723 " guestfs_vfs_uuid (guestfs_h *g,\n"
28724 "                   const char *device);\n"
28725 "\n"
28726 msgstr ""
28727
28728 #. type: textblock
28729 #: ../src/guestfs-actions.pod:7400
28730 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
28731 msgstr ""
28732
28733 #. type: =head2
28734 #: ../src/guestfs-actions.pod:7407
28735 msgid "guestfs_vg_activate"
28736 msgstr ""
28737
28738 #. type: verbatim
28739 #: ../src/guestfs-actions.pod:7409
28740 #, no-wrap
28741 msgid ""
28742 " int\n"
28743 " guestfs_vg_activate (guestfs_h *g,\n"
28744 "                      int activate,\n"
28745 "                      char *const *volgroups);\n"
28746 "\n"
28747 msgstr ""
28748
28749 #. type: =head2
28750 #: ../src/guestfs-actions.pod:7426
28751 msgid "guestfs_vg_activate_all"
28752 msgstr ""
28753
28754 #. type: verbatim
28755 #: ../src/guestfs-actions.pod:7428
28756 #, no-wrap
28757 msgid ""
28758 " int\n"
28759 " guestfs_vg_activate_all (guestfs_h *g,\n"
28760 "                          int activate);\n"
28761 "\n"
28762 msgstr ""
28763
28764 #. type: =head2
28765 #: ../src/guestfs-actions.pod:7441
28766 msgid "guestfs_vgcreate"
28767 msgstr ""
28768
28769 #. type: verbatim
28770 #: ../src/guestfs-actions.pod:7443
28771 #, no-wrap
28772 msgid ""
28773 " int\n"
28774 " guestfs_vgcreate (guestfs_h *g,\n"
28775 "                   const char *volgroup,\n"
28776 "                   char *const *physvols);\n"
28777 "\n"
28778 msgstr ""
28779
28780 #. type: =head2
28781 #: ../src/guestfs-actions.pod:7455
28782 msgid "guestfs_vglvuuids"
28783 msgstr ""
28784
28785 #. type: verbatim
28786 #: ../src/guestfs-actions.pod:7457
28787 #, no-wrap
28788 msgid ""
28789 " char **\n"
28790 " guestfs_vglvuuids (guestfs_h *g,\n"
28791 "                    const char *vgname);\n"
28792 "\n"
28793 msgstr ""
28794
28795 #. type: textblock
28796 #: ../src/guestfs-actions.pod:7464
28797 msgid ""
28798 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
28799 "associate logical volumes and volume groups."
28800 msgstr ""
28801
28802 #. type: textblock
28803 #: ../src/guestfs-actions.pod:7467
28804 msgid "See also C<guestfs_vgpvuuids>."
28805 msgstr ""
28806
28807 #. type: =head2
28808 #: ../src/guestfs-actions.pod:7475
28809 msgid "guestfs_vgpvuuids"
28810 msgstr ""
28811
28812 #. type: verbatim
28813 #: ../src/guestfs-actions.pod:7477
28814 #, no-wrap
28815 msgid ""
28816 " char **\n"
28817 " guestfs_vgpvuuids (guestfs_h *g,\n"
28818 "                    const char *vgname);\n"
28819 "\n"
28820 msgstr ""
28821
28822 #. type: textblock
28823 #: ../src/guestfs-actions.pod:7484
28824 msgid ""
28825 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
28826 "associate physical volumes and volume groups."
28827 msgstr ""
28828
28829 #. type: textblock
28830 #: ../src/guestfs-actions.pod:7487
28831 msgid "See also C<guestfs_vglvuuids>."
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:7495
28836 msgid "guestfs_vgremove"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:7497
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_vgremove (guestfs_h *g,\n"
28845 "                   const char *vgname);\n"
28846 "\n"
28847 msgstr ""
28848
28849 #. type: =head2
28850 #: ../src/guestfs-actions.pod:7510
28851 msgid "guestfs_vgrename"
28852 msgstr ""
28853
28854 #. type: verbatim
28855 #: ../src/guestfs-actions.pod:7512
28856 #, no-wrap
28857 msgid ""
28858 " int\n"
28859 " guestfs_vgrename (guestfs_h *g,\n"
28860 "                   const char *volgroup,\n"
28861 "                   const char *newvolgroup);\n"
28862 "\n"
28863 msgstr ""
28864
28865 #. type: =head2
28866 #: ../src/guestfs-actions.pod:7523
28867 msgid "guestfs_vgs"
28868 msgstr ""
28869
28870 #. type: verbatim
28871 #: ../src/guestfs-actions.pod:7525
28872 #, no-wrap
28873 msgid ""
28874 " char **\n"
28875 " guestfs_vgs (guestfs_h *g);\n"
28876 "\n"
28877 msgstr ""
28878
28879 #. type: textblock
28880 #: ../src/guestfs-actions.pod:7534
28881 msgid "See also C<guestfs_vgs_full>."
28882 msgstr ""
28883
28884 #. type: =head2
28885 #: ../src/guestfs-actions.pod:7542
28886 msgid "guestfs_vgs_full"
28887 msgstr ""
28888
28889 #. type: verbatim
28890 #: ../src/guestfs-actions.pod:7544
28891 #, no-wrap
28892 msgid ""
28893 " struct guestfs_lvm_vg_list *\n"
28894 " guestfs_vgs_full (guestfs_h *g);\n"
28895 "\n"
28896 msgstr ""
28897
28898 #. type: textblock
28899 #: ../src/guestfs-actions.pod:7550
28900 msgid ""
28901 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
28902 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after "
28903 "use>."
28904 msgstr ""
28905
28906 #. type: =head2
28907 #: ../src/guestfs-actions.pod:7556
28908 msgid "guestfs_vgscan"
28909 msgstr ""
28910
28911 #. type: verbatim
28912 #: ../src/guestfs-actions.pod:7558
28913 #, no-wrap
28914 msgid ""
28915 " int\n"
28916 " guestfs_vgscan (guestfs_h *g);\n"
28917 "\n"
28918 msgstr ""
28919
28920 #. type: =head2
28921 #: ../src/guestfs-actions.pod:7568
28922 msgid "guestfs_vguuid"
28923 msgstr ""
28924
28925 #. type: verbatim
28926 #: ../src/guestfs-actions.pod:7570
28927 #, no-wrap
28928 msgid ""
28929 " char *\n"
28930 " guestfs_vguuid (guestfs_h *g,\n"
28931 "                 const char *vgname);\n"
28932 "\n"
28933 msgstr ""
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:7581
28937 msgid "guestfs_wait_ready"
28938 msgstr ""
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:7583
28942 #, no-wrap
28943 msgid ""
28944 " int\n"
28945 " guestfs_wait_ready (guestfs_h *g);\n"
28946 "\n"
28947 msgstr ""
28948
28949 #. type: textblock
28950 #: ../src/guestfs-actions.pod:7586
28951 msgid ""
28952 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
28953 "instead."
28954 msgstr ""
28955
28956 #. type: textblock
28957 #: ../src/guestfs-actions.pod:7593
28958 msgid "This function is a no op."
28959 msgstr ""
28960
28961 #. type: textblock
28962 #: ../src/guestfs-actions.pod:7595
28963 msgid ""
28964 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
28965 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
28966 "is no longer necessary because C<guestfs_launch> now does the waiting."
28967 msgstr ""
28968
28969 #. type: textblock
28970 #: ../src/guestfs-actions.pod:7600
28971 msgid ""
28972 "If you see any calls to this function in code then you can just remove them, "
28973 "unless you want to retain compatibility with older versions of the API."
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:7608
28978 msgid "guestfs_wc_c"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:7610
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_wc_c (guestfs_h *g,\n"
28987 "               const char *path);\n"
28988 "\n"
28989 msgstr ""
28990
28991 #. type: =head2
28992 #: ../src/guestfs-actions.pod:7621
28993 msgid "guestfs_wc_l"
28994 msgstr ""
28995
28996 #. type: verbatim
28997 #: ../src/guestfs-actions.pod:7623
28998 #, no-wrap
28999 msgid ""
29000 " int\n"
29001 " guestfs_wc_l (guestfs_h *g,\n"
29002 "               const char *path);\n"
29003 "\n"
29004 msgstr ""
29005
29006 #. type: =head2
29007 #: ../src/guestfs-actions.pod:7634
29008 msgid "guestfs_wc_w"
29009 msgstr ""
29010
29011 #. type: verbatim
29012 #: ../src/guestfs-actions.pod:7636
29013 #, no-wrap
29014 msgid ""
29015 " int\n"
29016 " guestfs_wc_w (guestfs_h *g,\n"
29017 "               const char *path);\n"
29018 "\n"
29019 msgstr ""
29020
29021 #. type: =head2
29022 #: ../src/guestfs-actions.pod:7647
29023 msgid "guestfs_write"
29024 msgstr ""
29025
29026 #. type: verbatim
29027 #: ../src/guestfs-actions.pod:7649
29028 #, no-wrap
29029 msgid ""
29030 " int\n"
29031 " guestfs_write (guestfs_h *g,\n"
29032 "                const char *path,\n"
29033 "                const char *content,\n"
29034 "                size_t content_size);\n"
29035 "\n"
29036 msgstr ""
29037
29038 #. type: textblock
29039 #: ../src/guestfs-actions.pod:7658
29040 msgid "See also C<guestfs_write_append>."
29041 msgstr ""
29042
29043 #. type: =head2
29044 #: ../src/guestfs-actions.pod:7667
29045 msgid "guestfs_write_append"
29046 msgstr ""
29047
29048 #. type: verbatim
29049 #: ../src/guestfs-actions.pod:7669
29050 #, no-wrap
29051 msgid ""
29052 " int\n"
29053 " guestfs_write_append (guestfs_h *g,\n"
29054 "                       const char *path,\n"
29055 "                       const char *content,\n"
29056 "                       size_t content_size);\n"
29057 "\n"
29058 msgstr ""
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:7678
29062 msgid "See also C<guestfs_write>."
29063 msgstr ""
29064
29065 #. type: =head2
29066 #: ../src/guestfs-actions.pod:7687
29067 msgid "guestfs_write_file"
29068 msgstr ""
29069
29070 #. type: verbatim
29071 #: ../src/guestfs-actions.pod:7689
29072 #, no-wrap
29073 msgid ""
29074 " int\n"
29075 " guestfs_write_file (guestfs_h *g,\n"
29076 "                     const char *path,\n"
29077 "                     const char *content,\n"
29078 "                     int size);\n"
29079 "\n"
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:7695
29084 msgid ""
29085 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
29086 "instead."
29087 msgstr ""
29088
29089 #. type: =head2
29090 #: ../src/guestfs-actions.pod:7720
29091 msgid "guestfs_zegrep"
29092 msgstr ""
29093
29094 #. type: verbatim
29095 #: ../src/guestfs-actions.pod:7722
29096 #, no-wrap
29097 msgid ""
29098 " char **\n"
29099 " guestfs_zegrep (guestfs_h *g,\n"
29100 "                 const char *regex,\n"
29101 "                 const char *path);\n"
29102 "\n"
29103 msgstr ""
29104
29105 #. type: =head2
29106 #: ../src/guestfs-actions.pod:7739
29107 msgid "guestfs_zegrepi"
29108 msgstr ""
29109
29110 #. type: verbatim
29111 #: ../src/guestfs-actions.pod:7741
29112 #, no-wrap
29113 msgid ""
29114 " char **\n"
29115 " guestfs_zegrepi (guestfs_h *g,\n"
29116 "                  const char *regex,\n"
29117 "                  const char *path);\n"
29118 "\n"
29119 msgstr ""
29120
29121 #. type: =head2
29122 #: ../src/guestfs-actions.pod:7758
29123 msgid "guestfs_zero"
29124 msgstr ""
29125
29126 #. type: verbatim
29127 #: ../src/guestfs-actions.pod:7760
29128 #, no-wrap
29129 msgid ""
29130 " int\n"
29131 " guestfs_zero (guestfs_h *g,\n"
29132 "               const char *device);\n"
29133 "\n"
29134 msgstr ""
29135
29136 #. type: textblock
29137 #: ../src/guestfs-actions.pod:7770
29138 msgid ""
29139 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
29140 "C<guestfs_is_zero_device>"
29141 msgstr ""
29142
29143 #. type: =head2
29144 #: ../src/guestfs-actions.pod:7782
29145 msgid "guestfs_zero_device"
29146 msgstr ""
29147
29148 #. type: verbatim
29149 #: ../src/guestfs-actions.pod:7784
29150 #, no-wrap
29151 msgid ""
29152 " int\n"
29153 " guestfs_zero_device (guestfs_h *g,\n"
29154 "                      const char *device);\n"
29155 "\n"
29156 msgstr ""
29157
29158 #. type: textblock
29159 #: ../src/guestfs-actions.pod:7788
29160 msgid ""
29161 "This command writes zeroes over the entire C<device>.  Compare with "
29162 "C<guestfs_zero> which just zeroes the first few blocks of a device."
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:7802
29167 msgid "(Added in 1.3.1)"
29168 msgstr ""
29169
29170 #. type: =head2
29171 #: ../src/guestfs-actions.pod:7804
29172 msgid "guestfs_zerofree"
29173 msgstr ""
29174
29175 #. type: verbatim
29176 #: ../src/guestfs-actions.pod:7806
29177 #, no-wrap
29178 msgid ""
29179 " int\n"
29180 " guestfs_zerofree (guestfs_h *g,\n"
29181 "                   const char *device);\n"
29182 "\n"
29183 msgstr ""
29184
29185 #. type: =head2
29186 #: ../src/guestfs-actions.pod:7825
29187 msgid "guestfs_zfgrep"
29188 msgstr ""
29189
29190 #. type: verbatim
29191 #: ../src/guestfs-actions.pod:7827
29192 #, no-wrap
29193 msgid ""
29194 " char **\n"
29195 " guestfs_zfgrep (guestfs_h *g,\n"
29196 "                 const char *pattern,\n"
29197 "                 const char *path);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: =head2
29202 #: ../src/guestfs-actions.pod:7844
29203 msgid "guestfs_zfgrepi"
29204 msgstr ""
29205
29206 #. type: verbatim
29207 #: ../src/guestfs-actions.pod:7846
29208 #, no-wrap
29209 msgid ""
29210 " char **\n"
29211 " guestfs_zfgrepi (guestfs_h *g,\n"
29212 "                  const char *pattern,\n"
29213 "                  const char *path);\n"
29214 "\n"
29215 msgstr ""
29216
29217 #. type: =head2
29218 #: ../src/guestfs-actions.pod:7863
29219 msgid "guestfs_zfile"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../src/guestfs-actions.pod:7865
29224 #, no-wrap
29225 msgid ""
29226 " char *\n"
29227 " guestfs_zfile (guestfs_h *g,\n"
29228 "                const char *meth,\n"
29229 "                const char *path);\n"
29230 "\n"
29231 msgstr ""
29232
29233 #. type: textblock
29234 #: ../src/guestfs-actions.pod:7870
29235 msgid ""
29236 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
29237 "instead."
29238 msgstr ""
29239
29240 #. type: textblock
29241 #: ../src/guestfs-actions.pod:7882
29242 msgid ""
29243 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
29244 "files."
29245 msgstr ""
29246
29247 #. type: =head2
29248 #: ../src/guestfs-actions.pod:7890
29249 msgid "guestfs_zgrep"
29250 msgstr ""
29251
29252 #. type: verbatim
29253 #: ../src/guestfs-actions.pod:7892
29254 #, no-wrap
29255 msgid ""
29256 " char **\n"
29257 " guestfs_zgrep (guestfs_h *g,\n"
29258 "                const char *regex,\n"
29259 "                const char *path);\n"
29260 "\n"
29261 msgstr ""
29262
29263 #. type: =head2
29264 #: ../src/guestfs-actions.pod:7909
29265 msgid "guestfs_zgrepi"
29266 msgstr ""
29267
29268 #. type: verbatim
29269 #: ../src/guestfs-actions.pod:7911
29270 #, no-wrap
29271 msgid ""
29272 " char **\n"
29273 " guestfs_zgrepi (guestfs_h *g,\n"
29274 "                 const char *regex,\n"
29275 "                 const char *path);\n"
29276 "\n"
29277 msgstr ""
29278
29279 #. type: =item
29280 #: ../src/guestfs-availability.pod:3
29281 msgid "B<augeas>"
29282 msgstr ""
29283
29284 #. type: textblock
29285 #: ../src/guestfs-availability.pod:5
29286 msgid ""
29287 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> "
29288 "L</guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> "
29289 "L</guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> "
29290 "L</guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> "
29291 "L</guestfs_aug_rm> L</guestfs_aug_save> L</guestfs_aug_set>"
29292 msgstr ""
29293
29294 #. type: =item
29295 #: ../src/guestfs-availability.pod:21
29296 msgid "B<btrfs>"
29297 msgstr ""
29298
29299 #. type: textblock
29300 #: ../src/guestfs-availability.pod:23
29301 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
29302 msgstr ""
29303
29304 #. type: =item
29305 #: ../src/guestfs-availability.pod:26
29306 msgid "B<inotify>"
29307 msgstr ""
29308
29309 #. type: textblock
29310 #: ../src/guestfs-availability.pod:28
29311 msgid ""
29312 "The following functions: L</guestfs_inotify_add_watch> "
29313 "L</guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> "
29314 "L</guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
29315 msgstr ""
29316
29317 #. type: =item
29318 #: ../src/guestfs-availability.pod:36
29319 msgid "B<linuxfsuuid>"
29320 msgstr ""
29321
29322 #. type: textblock
29323 #: ../src/guestfs-availability.pod:38
29324 msgid ""
29325 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> "
29326 "L</guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
29327 msgstr ""
29328
29329 #. type: =item
29330 #: ../src/guestfs-availability.pod:45
29331 msgid "B<linuxmodules>"
29332 msgstr ""
29333
29334 #. type: textblock
29335 #: ../src/guestfs-availability.pod:47
29336 msgid "The following functions: L</guestfs_modprobe>"
29337 msgstr ""
29338
29339 #. type: =item
29340 #: ../src/guestfs-availability.pod:50
29341 msgid "B<linuxxattrs>"
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-availability.pod:52
29346 msgid ""
29347 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> "
29348 "L</guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> "
29349 "L</guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> "
29350 "L</guestfs_setxattr>"
29351 msgstr ""
29352
29353 #. type: =item
29354 #: ../src/guestfs-availability.pod:63
29355 msgid "B<luks>"
29356 msgstr ""
29357
29358 #. type: textblock
29359 #: ../src/guestfs-availability.pod:65
29360 msgid ""
29361 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> "
29362 "L</guestfs_luks_format> L</guestfs_luks_format_cipher> "
29363 "L</guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
29364 msgstr ""
29365
29366 #. type: =item
29367 #: ../src/guestfs-availability.pod:74
29368 msgid "B<lvm2>"
29369 msgstr ""
29370
29371 #. type: textblock
29372 #: ../src/guestfs-availability.pod:76
29373 msgid ""
29374 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> "
29375 "L</guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> "
29376 "L</guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> "
29377 "L</guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> "
29378 "L</guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> "
29379 "L</guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> "
29380 "L</guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> "
29381 "L</guestfs_vgs_full>"
29382 msgstr ""
29383
29384 #. type: =item
29385 #: ../src/guestfs-availability.pod:99
29386 msgid "B<mknod>"
29387 msgstr ""
29388
29389 #. type: textblock
29390 #: ../src/guestfs-availability.pod:101
29391 msgid ""
29392 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> "
29393 "L</guestfs_mknod_b> L</guestfs_mknod_c>"
29394 msgstr ""
29395
29396 #. type: =item
29397 #: ../src/guestfs-availability.pod:107
29398 msgid "B<ntfs3g>"
29399 msgstr ""
29400
29401 #. type: textblock
29402 #: ../src/guestfs-availability.pod:109
29403 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
29404 msgstr ""
29405
29406 #. type: =item
29407 #: ../src/guestfs-availability.pod:112
29408 msgid "B<ntfsprogs>"
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-availability.pod:114
29413 msgid ""
29414 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
29415 "L</guestfs_ntfsresize_size>"
29416 msgstr ""
29417
29418 #. type: =item
29419 #: ../src/guestfs-availability.pod:119
29420 msgid "B<realpath>"
29421 msgstr ""
29422
29423 #. type: textblock
29424 #: ../src/guestfs-availability.pod:121
29425 msgid "The following functions: L</guestfs_realpath>"
29426 msgstr ""
29427
29428 #. type: =item
29429 #: ../src/guestfs-availability.pod:124
29430 msgid "B<scrub>"
29431 msgstr ""
29432
29433 #. type: textblock
29434 #: ../src/guestfs-availability.pod:126
29435 msgid ""
29436 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> "
29437 "L</guestfs_scrub_freespace>"
29438 msgstr ""
29439
29440 #. type: =item
29441 #: ../src/guestfs-availability.pod:131
29442 msgid "B<selinux>"
29443 msgstr ""
29444
29445 #. type: textblock
29446 #: ../src/guestfs-availability.pod:133
29447 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
29448 msgstr ""
29449
29450 #. type: =item
29451 #: ../src/guestfs-availability.pod:137
29452 msgid "B<xz>"
29453 msgstr ""
29454
29455 #. type: textblock
29456 #: ../src/guestfs-availability.pod:139
29457 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
29458 msgstr ""
29459
29460 #. type: =item
29461 #: ../src/guestfs-availability.pod:143
29462 msgid "B<zerofree>"
29463 msgstr ""
29464
29465 #. type: textblock
29466 #: ../src/guestfs-availability.pod:145
29467 msgid "The following functions: L</guestfs_zerofree>"
29468 msgstr ""
29469
29470 #. type: =head2
29471 #: ../src/guestfs-structs.pod:1
29472 msgid "guestfs_int_bool"
29473 msgstr ""
29474
29475 #. type: verbatim
29476 #: ../src/guestfs-structs.pod:3
29477 #, no-wrap
29478 msgid ""
29479 " struct guestfs_int_bool {\n"
29480 "   int32_t i;\n"
29481 "   int32_t b;\n"
29482 " };\n"
29483 " \n"
29484 msgstr ""
29485
29486 #. type: verbatim
29487 #: ../src/guestfs-structs.pod:8
29488 #, no-wrap
29489 msgid ""
29490 " struct guestfs_int_bool_list {\n"
29491 "   uint32_t len; /* Number of elements in list. */\n"
29492 "   struct guestfs_int_bool *val; /* Elements. */\n"
29493 " };\n"
29494 " \n"
29495 msgstr ""
29496
29497 #. type: verbatim
29498 #: ../src/guestfs-structs.pod:13
29499 #, no-wrap
29500 msgid ""
29501 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
29502 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
29503 "\n"
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-structs.pod:16
29508 msgid "guestfs_lvm_pv"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-structs.pod:18
29513 #, no-wrap
29514 msgid ""
29515 " struct guestfs_lvm_pv {\n"
29516 "   char *pv_name;\n"
29517 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29518 "*/\n"
29519 "   char pv_uuid[32];\n"
29520 "   char *pv_fmt;\n"
29521 "   uint64_t pv_size;\n"
29522 "   uint64_t dev_size;\n"
29523 "   uint64_t pv_free;\n"
29524 "   uint64_t pv_used;\n"
29525 "   char *pv_attr;\n"
29526 "   int64_t pv_pe_count;\n"
29527 "   int64_t pv_pe_alloc_count;\n"
29528 "   char *pv_tags;\n"
29529 "   uint64_t pe_start;\n"
29530 "   int64_t pv_mda_count;\n"
29531 "   uint64_t pv_mda_free;\n"
29532 " };\n"
29533 " \n"
29534 msgstr ""
29535
29536 #. type: verbatim
29537 #: ../src/guestfs-structs.pod:36
29538 #, no-wrap
29539 msgid ""
29540 " struct guestfs_lvm_pv_list {\n"
29541 "   uint32_t len; /* Number of elements in list. */\n"
29542 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
29543 " };\n"
29544 " \n"
29545 msgstr ""
29546
29547 #. type: verbatim
29548 #: ../src/guestfs-structs.pod:41
29549 #, no-wrap
29550 msgid ""
29551 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
29552 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
29553 "\n"
29554 msgstr ""
29555
29556 #. type: =head2
29557 #: ../src/guestfs-structs.pod:44
29558 msgid "guestfs_lvm_vg"
29559 msgstr ""
29560
29561 #. type: verbatim
29562 #: ../src/guestfs-structs.pod:46
29563 #, no-wrap
29564 msgid ""
29565 " struct guestfs_lvm_vg {\n"
29566 "   char *vg_name;\n"
29567 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29568 "*/\n"
29569 "   char vg_uuid[32];\n"
29570 "   char *vg_fmt;\n"
29571 "   char *vg_attr;\n"
29572 "   uint64_t vg_size;\n"
29573 "   uint64_t vg_free;\n"
29574 "   char *vg_sysid;\n"
29575 "   uint64_t vg_extent_size;\n"
29576 "   int64_t vg_extent_count;\n"
29577 "   int64_t vg_free_count;\n"
29578 "   int64_t max_lv;\n"
29579 "   int64_t max_pv;\n"
29580 "   int64_t pv_count;\n"
29581 "   int64_t lv_count;\n"
29582 "   int64_t snap_count;\n"
29583 "   int64_t vg_seqno;\n"
29584 "   char *vg_tags;\n"
29585 "   int64_t vg_mda_count;\n"
29586 "   uint64_t vg_mda_free;\n"
29587 " };\n"
29588 " \n"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-structs.pod:69
29593 #, no-wrap
29594 msgid ""
29595 " struct guestfs_lvm_vg_list {\n"
29596 "   uint32_t len; /* Number of elements in list. */\n"
29597 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
29598 " };\n"
29599 " \n"
29600 msgstr ""
29601
29602 #. type: verbatim
29603 #: ../src/guestfs-structs.pod:74
29604 #, no-wrap
29605 msgid ""
29606 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
29607 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
29608 "\n"
29609 msgstr ""
29610
29611 #. type: =head2
29612 #: ../src/guestfs-structs.pod:77
29613 msgid "guestfs_lvm_lv"
29614 msgstr ""
29615
29616 #. type: verbatim
29617 #: ../src/guestfs-structs.pod:79
29618 #, no-wrap
29619 msgid ""
29620 " struct guestfs_lvm_lv {\n"
29621 "   char *lv_name;\n"
29622 "   /* The next field is NOT nul-terminated, be careful when printing it: "
29623 "*/\n"
29624 "   char lv_uuid[32];\n"
29625 "   char *lv_attr;\n"
29626 "   int64_t lv_major;\n"
29627 "   int64_t lv_minor;\n"
29628 "   int64_t lv_kernel_major;\n"
29629 "   int64_t lv_kernel_minor;\n"
29630 "   uint64_t lv_size;\n"
29631 "   int64_t seg_count;\n"
29632 "   char *origin;\n"
29633 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29634 "   float snap_percent;\n"
29635 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
29636 "   float copy_percent;\n"
29637 "   char *move_pv;\n"
29638 "   char *lv_tags;\n"
29639 "   char *mirror_log;\n"
29640 "   char *modules;\n"
29641 " };\n"
29642 " \n"
29643 msgstr ""
29644
29645 #. type: verbatim
29646 #: ../src/guestfs-structs.pod:101
29647 #, no-wrap
29648 msgid ""
29649 " struct guestfs_lvm_lv_list {\n"
29650 "   uint32_t len; /* Number of elements in list. */\n"
29651 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
29652 " };\n"
29653 " \n"
29654 msgstr ""
29655
29656 #. type: verbatim
29657 #: ../src/guestfs-structs.pod:106
29658 #, no-wrap
29659 msgid ""
29660 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
29661 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
29662 "\n"
29663 msgstr ""
29664
29665 #. type: verbatim
29666 #: ../src/guestfs-structs.pod:111
29667 #, no-wrap
29668 msgid ""
29669 " struct guestfs_stat {\n"
29670 "   int64_t dev;\n"
29671 "   int64_t ino;\n"
29672 "   int64_t mode;\n"
29673 "   int64_t nlink;\n"
29674 "   int64_t uid;\n"
29675 "   int64_t gid;\n"
29676 "   int64_t rdev;\n"
29677 "   int64_t size;\n"
29678 "   int64_t blksize;\n"
29679 "   int64_t blocks;\n"
29680 "   int64_t atime;\n"
29681 "   int64_t mtime;\n"
29682 "   int64_t ctime;\n"
29683 " };\n"
29684 " \n"
29685 msgstr ""
29686
29687 #. type: verbatim
29688 #: ../src/guestfs-structs.pod:127
29689 #, no-wrap
29690 msgid ""
29691 " struct guestfs_stat_list {\n"
29692 "   uint32_t len; /* Number of elements in list. */\n"
29693 "   struct guestfs_stat *val; /* Elements. */\n"
29694 " };\n"
29695 " \n"
29696 msgstr ""
29697
29698 #. type: verbatim
29699 #: ../src/guestfs-structs.pod:132
29700 #, no-wrap
29701 msgid ""
29702 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
29703 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
29704 "\n"
29705 msgstr ""
29706
29707 #. type: verbatim
29708 #: ../src/guestfs-structs.pod:137
29709 #, no-wrap
29710 msgid ""
29711 " struct guestfs_statvfs {\n"
29712 "   int64_t bsize;\n"
29713 "   int64_t frsize;\n"
29714 "   int64_t blocks;\n"
29715 "   int64_t bfree;\n"
29716 "   int64_t bavail;\n"
29717 "   int64_t files;\n"
29718 "   int64_t ffree;\n"
29719 "   int64_t favail;\n"
29720 "   int64_t fsid;\n"
29721 "   int64_t flag;\n"
29722 "   int64_t namemax;\n"
29723 " };\n"
29724 " \n"
29725 msgstr ""
29726
29727 #. type: verbatim
29728 #: ../src/guestfs-structs.pod:151
29729 #, no-wrap
29730 msgid ""
29731 " struct guestfs_statvfs_list {\n"
29732 "   uint32_t len; /* Number of elements in list. */\n"
29733 "   struct guestfs_statvfs *val; /* Elements. */\n"
29734 " };\n"
29735 " \n"
29736 msgstr ""
29737
29738 #. type: verbatim
29739 #: ../src/guestfs-structs.pod:156
29740 #, no-wrap
29741 msgid ""
29742 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
29743 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
29744 "\n"
29745 msgstr ""
29746
29747 #. type: =head2
29748 #: ../src/guestfs-structs.pod:159
29749 msgid "guestfs_dirent"
29750 msgstr ""
29751
29752 #. type: verbatim
29753 #: ../src/guestfs-structs.pod:161
29754 #, no-wrap
29755 msgid ""
29756 " struct guestfs_dirent {\n"
29757 "   int64_t ino;\n"
29758 "   char ftyp;\n"
29759 "   char *name;\n"
29760 " };\n"
29761 " \n"
29762 msgstr ""
29763
29764 #. type: verbatim
29765 #: ../src/guestfs-structs.pod:167
29766 #, no-wrap
29767 msgid ""
29768 " struct guestfs_dirent_list {\n"
29769 "   uint32_t len; /* Number of elements in list. */\n"
29770 "   struct guestfs_dirent *val; /* Elements. */\n"
29771 " };\n"
29772 " \n"
29773 msgstr ""
29774
29775 #. type: verbatim
29776 #: ../src/guestfs-structs.pod:172
29777 #, no-wrap
29778 msgid ""
29779 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
29780 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
29781 "\n"
29782 msgstr ""
29783
29784 #. type: verbatim
29785 #: ../src/guestfs-structs.pod:177
29786 #, no-wrap
29787 msgid ""
29788 " struct guestfs_version {\n"
29789 "   int64_t major;\n"
29790 "   int64_t minor;\n"
29791 "   int64_t release;\n"
29792 "   char *extra;\n"
29793 " };\n"
29794 " \n"
29795 msgstr ""
29796
29797 #. type: verbatim
29798 #: ../src/guestfs-structs.pod:184
29799 #, no-wrap
29800 msgid ""
29801 " struct guestfs_version_list {\n"
29802 "   uint32_t len; /* Number of elements in list. */\n"
29803 "   struct guestfs_version *val; /* Elements. */\n"
29804 " };\n"
29805 " \n"
29806 msgstr ""
29807
29808 #. type: verbatim
29809 #: ../src/guestfs-structs.pod:189
29810 #, no-wrap
29811 msgid ""
29812 " void guestfs_free_version (struct guestfs_free_version *);\n"
29813 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
29814 "\n"
29815 msgstr ""
29816
29817 #. type: =head2
29818 #: ../src/guestfs-structs.pod:192
29819 msgid "guestfs_xattr"
29820 msgstr ""
29821
29822 #. type: verbatim
29823 #: ../src/guestfs-structs.pod:194
29824 #, no-wrap
29825 msgid ""
29826 " struct guestfs_xattr {\n"
29827 "   char *attrname;\n"
29828 "   /* The next two fields describe a byte array. */\n"
29829 "   uint32_t attrval_len;\n"
29830 "   char *attrval;\n"
29831 " };\n"
29832 " \n"
29833 msgstr ""
29834
29835 #. type: verbatim
29836 #: ../src/guestfs-structs.pod:201
29837 #, no-wrap
29838 msgid ""
29839 " struct guestfs_xattr_list {\n"
29840 "   uint32_t len; /* Number of elements in list. */\n"
29841 "   struct guestfs_xattr *val; /* Elements. */\n"
29842 " };\n"
29843 " \n"
29844 msgstr ""
29845
29846 #. type: verbatim
29847 #: ../src/guestfs-structs.pod:206
29848 #, no-wrap
29849 msgid ""
29850 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
29851 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
29852 "\n"
29853 msgstr ""
29854
29855 #. type: =head2
29856 #: ../src/guestfs-structs.pod:209
29857 msgid "guestfs_inotify_event"
29858 msgstr ""
29859
29860 #. type: verbatim
29861 #: ../src/guestfs-structs.pod:211
29862 #, no-wrap
29863 msgid ""
29864 " struct guestfs_inotify_event {\n"
29865 "   int64_t in_wd;\n"
29866 "   uint32_t in_mask;\n"
29867 "   uint32_t in_cookie;\n"
29868 "   char *in_name;\n"
29869 " };\n"
29870 " \n"
29871 msgstr ""
29872
29873 #. type: verbatim
29874 #: ../src/guestfs-structs.pod:218
29875 #, no-wrap
29876 msgid ""
29877 " struct guestfs_inotify_event_list {\n"
29878 "   uint32_t len; /* Number of elements in list. */\n"
29879 "   struct guestfs_inotify_event *val; /* Elements. */\n"
29880 " };\n"
29881 " \n"
29882 msgstr ""
29883
29884 #. type: verbatim
29885 #: ../src/guestfs-structs.pod:223
29886 #, no-wrap
29887 msgid ""
29888 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
29889 " void guestfs_free_inotify_event_list (struct "
29890 "guestfs_free_inotify_event_list *);\n"
29891 "\n"
29892 msgstr ""
29893
29894 #. type: =head2
29895 #: ../src/guestfs-structs.pod:226
29896 msgid "guestfs_partition"
29897 msgstr ""
29898
29899 #. type: verbatim
29900 #: ../src/guestfs-structs.pod:228
29901 #, no-wrap
29902 msgid ""
29903 " struct guestfs_partition {\n"
29904 "   int32_t part_num;\n"
29905 "   uint64_t part_start;\n"
29906 "   uint64_t part_end;\n"
29907 "   uint64_t part_size;\n"
29908 " };\n"
29909 " \n"
29910 msgstr ""
29911
29912 #. type: verbatim
29913 #: ../src/guestfs-structs.pod:235
29914 #, no-wrap
29915 msgid ""
29916 " struct guestfs_partition_list {\n"
29917 "   uint32_t len; /* Number of elements in list. */\n"
29918 "   struct guestfs_partition *val; /* Elements. */\n"
29919 " };\n"
29920 " \n"
29921 msgstr ""
29922
29923 #. type: verbatim
29924 #: ../src/guestfs-structs.pod:240
29925 #, no-wrap
29926 msgid ""
29927 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
29928 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
29929 "\n"
29930 msgstr ""
29931
29932 #. type: =head2
29933 #: ../src/guestfs-structs.pod:243
29934 msgid "guestfs_application"
29935 msgstr ""
29936
29937 #. type: verbatim
29938 #: ../src/guestfs-structs.pod:245
29939 #, no-wrap
29940 msgid ""
29941 " struct guestfs_application {\n"
29942 "   char *app_name;\n"
29943 "   char *app_display_name;\n"
29944 "   int32_t app_epoch;\n"
29945 "   char *app_version;\n"
29946 "   char *app_release;\n"
29947 "   char *app_install_path;\n"
29948 "   char *app_trans_path;\n"
29949 "   char *app_publisher;\n"
29950 "   char *app_url;\n"
29951 "   char *app_source_package;\n"
29952 "   char *app_summary;\n"
29953 "   char *app_description;\n"
29954 " };\n"
29955 " \n"
29956 msgstr ""
29957
29958 #. type: verbatim
29959 #: ../src/guestfs-structs.pod:260
29960 #, no-wrap
29961 msgid ""
29962 " struct guestfs_application_list {\n"
29963 "   uint32_t len; /* Number of elements in list. */\n"
29964 "   struct guestfs_application *val; /* Elements. */\n"
29965 " };\n"
29966 " \n"
29967 msgstr ""
29968
29969 #. type: verbatim
29970 #: ../src/guestfs-structs.pod:265
29971 #, no-wrap
29972 msgid ""
29973 " void guestfs_free_application (struct guestfs_free_application *);\n"
29974 " void guestfs_free_application_list (struct guestfs_free_application_list "
29975 "*);\n"
29976 "\n"
29977 msgstr ""
29978
29979 #. type: textblock
29980 #: ../src/guestfs.pod:5
29981 msgid "guestfs - Library for accessing and modifying virtual machine images"
29982 msgstr ""
29983
29984 #. type: verbatim
29985 #: ../src/guestfs.pod:11
29986 #, no-wrap
29987 msgid ""
29988 " guestfs_h *g = guestfs_create ();\n"
29989 " guestfs_add_drive (g, \"guest.img\");\n"
29990 " guestfs_launch (g);\n"
29991 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
29992 " guestfs_touch (g, \"/hello\");\n"
29993 " guestfs_umount (g, \"/\");\n"
29994 " guestfs_close (g);\n"
29995 "\n"
29996 msgstr ""
29997
29998 #. type: textblock
29999 #: ../src/guestfs.pod:25
30000 msgid ""
30001 "Libguestfs is a library for accessing and modifying guest disk images.  "
30002 "Amongst the things this is good for: making batch configuration changes to "
30003 "guests, getting disk used/free statistics (see also: virt-df), migrating "
30004 "between virtualization systems (see also: virt-p2v), performing partial "
30005 "backups, performing partial guest clones, cloning guests and changing "
30006 "registry/UUID/hostname info, and much else besides."
30007 msgstr ""
30008
30009 #. type: textblock
30010 #: ../src/guestfs.pod:33
30011 msgid ""
30012 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
30013 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
30014 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
30015 "qcow2, vmdk."
30016 msgstr ""
30017
30018 #. type: textblock
30019 #: ../src/guestfs.pod:38
30020 msgid ""
30021 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
30022 "what filesystem is in each LV, etc.).  It can also run commands in the "
30023 "context of the guest.  Also you can access filesystems over FUSE."
30024 msgstr ""
30025
30026 #. type: textblock
30027 #: ../src/guestfs.pod:43
30028 msgid ""
30029 "Libguestfs is a library that can be linked with C and C++ management "
30030 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
30031 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
30032 "line."
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../src/guestfs.pod:48
30037 msgid ""
30038 "You don't need to be root to use libguestfs, although obviously you do need "
30039 "enough permissions to access the disk images."
30040 msgstr ""
30041
30042 #. type: textblock
30043 #: ../src/guestfs.pod:51
30044 msgid ""
30045 "Libguestfs is a large API because it can do many things.  For a gentle "
30046 "introduction, please read the L</API OVERVIEW> section next."
30047 msgstr ""
30048
30049 #. type: textblock
30050 #: ../src/guestfs.pod:54
30051 msgid ""
30052 "There are also some example programs in the L<guestfs-examples(3)> manual "
30053 "page."
30054 msgstr ""
30055
30056 #. type: =head1
30057 #: ../src/guestfs.pod:57
30058 msgid "API OVERVIEW"
30059 msgstr ""
30060
30061 #. type: textblock
30062 #: ../src/guestfs.pod:59
30063 msgid ""
30064 "This section provides a gentler overview of the libguestfs API.  We also try "
30065 "to group API calls together, where that may not be obvious from reading "
30066 "about the individual calls in the main section of this manual."
30067 msgstr ""
30068
30069 #. type: =head2
30070 #: ../src/guestfs.pod:64
30071 msgid "HANDLES"
30072 msgstr ""
30073
30074 #. type: textblock
30075 #: ../src/guestfs.pod:66
30076 msgid ""
30077 "Before you can use libguestfs calls, you have to create a handle.  Then you "
30078 "must add at least one disk image to the handle, followed by launching the "
30079 "handle, then performing whatever operations you want, and finally closing "
30080 "the handle.  By convention we use the single letter C<g> for the name of the "
30081 "handle variable, although of course you can use any name you want."
30082 msgstr ""
30083
30084 #. type: textblock
30085 #: ../src/guestfs.pod:73
30086 msgid "The general structure of all libguestfs-using programs looks like this:"
30087 msgstr ""
30088
30089 #. type: verbatim
30090 #: ../src/guestfs.pod:76
30091 #, no-wrap
30092 msgid ""
30093 " guestfs_h *g = guestfs_create ();\n"
30094 " \n"
30095 msgstr ""
30096
30097 #. type: verbatim
30098 #: ../src/guestfs.pod:78
30099 #, no-wrap
30100 msgid ""
30101 " /* Call guestfs_add_drive additional times if there are\n"
30102 "  * multiple disk images.\n"
30103 "  */\n"
30104 " guestfs_add_drive (g, \"guest.img\");\n"
30105 " \n"
30106 msgstr ""
30107
30108 #. type: verbatim
30109 #: ../src/guestfs.pod:83
30110 #, no-wrap
30111 msgid ""
30112 " /* Most manipulation calls won't work until you've launched\n"
30113 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
30114 "  * and _before_ other commands.\n"
30115 "  */\n"
30116 " guestfs_launch (g);\n"
30117 " \n"
30118 msgstr ""
30119
30120 #. type: verbatim
30121 #: ../src/guestfs.pod:89
30122 #, no-wrap
30123 msgid ""
30124 " /* Now you can examine what partitions, LVs etc are available.\n"
30125 "  */\n"
30126 " char **partitions = guestfs_list_partitions (g);\n"
30127 " char **logvols = guestfs_lvs (g);\n"
30128 " \n"
30129 msgstr ""
30130
30131 #. type: verbatim
30132 #: ../src/guestfs.pod:94
30133 #, no-wrap
30134 msgid ""
30135 " /* To access a filesystem in the image, you must mount it.\n"
30136 "  */\n"
30137 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
30138 " \n"
30139 msgstr ""
30140
30141 #. type: verbatim
30142 #: ../src/guestfs.pod:98
30143 #, no-wrap
30144 msgid ""
30145 " /* Now you can perform filesystem actions on the guest\n"
30146 "  * disk image.\n"
30147 "  */\n"
30148 " guestfs_touch (g, \"/hello\");\n"
30149 " \n"
30150 msgstr ""
30151
30152 #. type: verbatim
30153 #: ../src/guestfs.pod:103
30154 #, no-wrap
30155 msgid ""
30156 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
30157 "  * it is done automatically when you close the handle.  See\n"
30158 "  * discussion of autosync in this page.\n"
30159 "  */\n"
30160 " guestfs_sync (g);\n"
30161 " \n"
30162 msgstr ""
30163
30164 #. type: verbatim
30165 #: ../src/guestfs.pod:109
30166 #, no-wrap
30167 msgid ""
30168 " /* Close the handle 'g'. */\n"
30169 " guestfs_close (g);\n"
30170 "\n"
30171 msgstr ""
30172
30173 #. type: textblock
30174 #: ../src/guestfs.pod:112
30175 msgid ""
30176 "The code above doesn't include any error checking.  In real code you should "
30177 "check return values carefully for errors.  In general all functions that "
30178 "return integers return C<-1> on error, and all functions that return "
30179 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
30180 "how to handle errors, and consult the documentation for each function call "
30181 "below to see precisely how they return error indications.  See "
30182 "L<guestfs-examples(3)> for fully worked examples."
30183 msgstr ""
30184
30185 #. type: =head2
30186 #: ../src/guestfs.pod:121
30187 msgid "DISK IMAGES"
30188 msgstr ""
30189
30190 #. type: textblock
30191 #: ../src/guestfs.pod:123
30192 msgid ""
30193 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
30194 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
30195 "actual block device, or simply an empty file of zeroes that you have created "
30196 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
30197 "of these."
30198 msgstr ""
30199
30200 #. type: textblock
30201 #: ../src/guestfs.pod:129
30202 msgid ""
30203 "The call you should use in modern code for adding drives is "
30204 "L</guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
30205 "specifying that the format is raw, do:"
30206 msgstr ""
30207
30208 #. type: verbatim
30209 #: ../src/guestfs.pod:133
30210 #, no-wrap
30211 msgid ""
30212 " guestfs_add_drive_opts (g, filename,\n"
30213 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30214 "                         -1);\n"
30215 "\n"
30216 msgstr ""
30217
30218 #. type: textblock
30219 #: ../src/guestfs.pod:137
30220 msgid "You can add a disk read-only using:"
30221 msgstr ""
30222
30223 #. type: verbatim
30224 #: ../src/guestfs.pod:139
30225 #, no-wrap
30226 msgid ""
30227 " guestfs_add_drive_opts (g, filename,\n"
30228 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
30229 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
30230 "                         -1);\n"
30231 "\n"
30232 msgstr ""
30233
30234 #. type: textblock
30235 #: ../src/guestfs.pod:144
30236 msgid ""
30237 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
30238 "libguestfs won't modify the file."
30239 msgstr ""
30240
30241 #. type: textblock
30242 #: ../src/guestfs.pod:147
30243 msgid ""
30244 "Be extremely cautious if the disk image is in use, eg. if it is being used "
30245 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
30246 "corruption, but adding it read-only is safe."
30247 msgstr ""
30248
30249 #. type: textblock
30250 #: ../src/guestfs.pod:151
30251 msgid ""
30252 "You must add at least one disk image, and you may add multiple disk images.  "
30253 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
30254 "first one you added), C</dev/sdb> (for the second one you added), etc."
30255 msgstr ""
30256
30257 #. type: textblock
30258 #: ../src/guestfs.pod:156
30259 msgid ""
30260 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
30261 "can call L</guestfs_list_devices> to get a list of the device names, in the "
30262 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
30263 msgstr ""
30264
30265 #. type: =head2
30266 #: ../src/guestfs.pod:161
30267 msgid "MOUNTING"
30268 msgstr ""
30269
30270 #. type: textblock
30271 #: ../src/guestfs.pod:163
30272 msgid ""
30273 "Before you can read or write files, create directories and so on in a disk "
30274 "image that contains filesystems, you have to mount those filesystems using "
30275 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
30276 "a disk image contains (for example) one partition with a filesystem on that "
30277 "partition, then you can mount it directly:"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs.pod:170
30282 #, no-wrap
30283 msgid ""
30284 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
30285 "\n"
30286 msgstr ""
30287
30288 #. type: textblock
30289 #: ../src/guestfs.pod:172
30290 msgid ""
30291 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
30292 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
30293 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
30294 "that these are libguestfs virtual devices, and are nothing to do with host "
30295 "devices."
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs.pod:178
30300 msgid ""
30301 "If you are given a disk image and you don't know what it contains then you "
30302 "have to find out.  Libguestfs can do that too: use "
30303 "L</guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions "
30304 "and LVs, and either try mounting each to see what is mountable, or else "
30305 "examine them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
30306 "filesystems, use L</guestfs_list_filesystems>."
30307 msgstr ""
30308
30309 #. type: textblock
30310 #: ../src/guestfs.pod:186
30311 msgid ""
30312 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
30313 "L</INSPECTION> below).  But you might find it easier to look at higher level "
30314 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
30315 msgstr ""
30316
30317 #. type: textblock
30318 #: ../src/guestfs.pod:191
30319 msgid ""
30320 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
30321 "several other variations of the C<guestfs_mount_*> call."
30322 msgstr ""
30323
30324 #. type: =head2
30325 #: ../src/guestfs.pod:194
30326 msgid "FILESYSTEM ACCESS AND MODIFICATION"
30327 msgstr ""
30328
30329 #. type: textblock
30330 #: ../src/guestfs.pod:196
30331 msgid ""
30332 "The majority of the libguestfs API consists of fairly low-level calls for "
30333 "accessing and modifying the files, directories, symlinks etc on mounted "
30334 "filesystems.  There are over a hundred such calls which you can find listed "
30335 "in detail below in this man page, and we don't even pretend to cover them "
30336 "all in this overview."
30337 msgstr ""
30338
30339 #. type: textblock
30340 #: ../src/guestfs.pod:202
30341 msgid ""
30342 "Specify filenames as full paths, starting with C<\"/\"> and including the "
30343 "mount point."
30344 msgstr ""
30345
30346 #. type: textblock
30347 #: ../src/guestfs.pod:205
30348 msgid ""
30349 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
30350 "the file called C<\"etc/passwd\"> then you could do:"
30351 msgstr ""
30352
30353 #. type: verbatim
30354 #: ../src/guestfs.pod:208
30355 #, no-wrap
30356 msgid ""
30357 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
30358 "\n"
30359 msgstr ""
30360
30361 #. type: textblock
30362 #: ../src/guestfs.pod:210
30363 msgid ""
30364 "This would return C<data> as a newly allocated buffer containing the full "
30365 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
30366 "or C<NULL> if there was an error."
30367 msgstr ""
30368
30369 #. type: textblock
30370 #: ../src/guestfs.pod:214
30371 msgid ""
30372 "As another example, to create a top-level directory on that filesystem "
30373 "called C<\"var\"> you would do:"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs.pod:217
30378 #, no-wrap
30379 msgid ""
30380 " guestfs_mkdir (g, \"/var\");\n"
30381 "\n"
30382 msgstr ""
30383
30384 #. type: textblock
30385 #: ../src/guestfs.pod:219
30386 msgid "To create a symlink you could do:"
30387 msgstr ""
30388
30389 #. type: verbatim
30390 #: ../src/guestfs.pod:221
30391 #, no-wrap
30392 msgid ""
30393 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
30394 "               \"/etc/rc3.d/S30portmap\");\n"
30395 "\n"
30396 msgstr ""
30397
30398 #. type: textblock
30399 #: ../src/guestfs.pod:224
30400 msgid ""
30401 "Libguestfs will reject attempts to use relative paths and there is no "
30402 "concept of a current working directory."
30403 msgstr ""
30404
30405 #. type: textblock
30406 #: ../src/guestfs.pod:227
30407 msgid ""
30408 "Libguestfs can return errors in many situations: for example if the "
30409 "filesystem isn't writable, or if a file or directory that you requested "
30410 "doesn't exist.  If you are using the C API (documented here)  you have to "
30411 "check for those error conditions after each call.  (Other language bindings "
30412 "turn these errors into exceptions)."
30413 msgstr ""
30414
30415 #. type: textblock
30416 #: ../src/guestfs.pod:233
30417 msgid ""
30418 "File writes are affected by the per-handle umask, set by calling "
30419 "L</guestfs_umask> and defaulting to 022.  See L</UMASK>."
30420 msgstr ""
30421
30422 #. type: =head2
30423 #: ../src/guestfs.pod:236
30424 msgid "PARTITIONING"
30425 msgstr ""
30426
30427 #. type: textblock
30428 #: ../src/guestfs.pod:238
30429 msgid ""
30430 "Libguestfs contains API calls to read, create and modify partition tables on "
30431 "disk images."
30432 msgstr ""
30433
30434 #. type: textblock
30435 #: ../src/guestfs.pod:241
30436 msgid ""
30437 "In the common case where you want to create a single partition covering the "
30438 "whole disk, you should use the L</guestfs_part_disk> call:"
30439 msgstr ""
30440
30441 #. type: verbatim
30442 #: ../src/guestfs.pod:245
30443 #, no-wrap
30444 msgid ""
30445 " const char *parttype = \"mbr\";\n"
30446 " if (disk_is_larger_than_2TB)\n"
30447 "   parttype = \"gpt\";\n"
30448 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
30449 "\n"
30450 msgstr ""
30451
30452 #. type: textblock
30453 #: ../src/guestfs.pod:250
30454 msgid ""
30455 "Obviously this effectively wipes anything that was on that disk image "
30456 "before."
30457 msgstr ""
30458
30459 #. type: =head2
30460 #: ../src/guestfs.pod:253
30461 msgid "LVM2"
30462 msgstr ""
30463
30464 #. type: textblock
30465 #: ../src/guestfs.pod:255
30466 msgid ""
30467 "Libguestfs provides access to a large part of the LVM2 API, such as "
30468 "L</guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense "
30469 "unless you familiarize yourself with the concepts of physical volumes, "
30470 "volume groups and logical volumes."
30471 msgstr ""
30472
30473 #. type: textblock
30474 #: ../src/guestfs.pod:260
30475 msgid ""
30476 "This author strongly recommends reading the LVM HOWTO, online at "
30477 "L<http://tldp.org/HOWTO/LVM-HOWTO/>."
30478 msgstr ""
30479
30480 #. type: =head2
30481 #: ../src/guestfs.pod:263
30482 msgid "DOWNLOADING"
30483 msgstr ""
30484
30485 #. type: textblock
30486 #: ../src/guestfs.pod:265
30487 msgid ""
30488 "Use L</guestfs_cat> to download small, text only files.  This call is "
30489 "limited to files which are less than 2 MB and which cannot contain any ASCII "
30490 "NUL (C<\\0>) characters.  However the API is very simple to use."
30491 msgstr ""
30492
30493 #. type: textblock
30494 #: ../src/guestfs.pod:269
30495 msgid ""
30496 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
30497 "bit data, since it returns a (pointer, size) pair.  However it is still "
30498 "limited to \"small\" files, less than 2 MB."
30499 msgstr ""
30500
30501 #. type: textblock
30502 #: ../src/guestfs.pod:273
30503 msgid ""
30504 "L</guestfs_download> can be used to download any file, with no limits on "
30505 "content or size (even files larger than 4 GB)."
30506 msgstr ""
30507
30508 #. type: textblock
30509 #: ../src/guestfs.pod:276
30510 msgid "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
30511 msgstr ""
30512
30513 #. type: =head2
30514 #: ../src/guestfs.pod:279
30515 msgid "UPLOADING"
30516 msgstr ""
30517
30518 #. type: textblock
30519 #: ../src/guestfs.pod:281
30520 msgid ""
30521 "It's often the case that you want to write a file or files to the disk "
30522 "image."
30523 msgstr ""
30524
30525 #. type: textblock
30526 #: ../src/guestfs.pod:284
30527 msgid ""
30528 "To write a small file with fixed content, use L</guestfs_write>.  To create "
30529 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or "
30530 "L</guestfs_fallocate64> (with all disk blocks allocated).  There are a "
30531 "variety of other functions for creating test files, for example "
30532 "L</guestfs_fill> and L</guestfs_fill_pattern>."
30533 msgstr ""
30534
30535 #. type: textblock
30536 #: ../src/guestfs.pod:290
30537 msgid ""
30538 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
30539 "file content or size (even files larger than 4 GB)."
30540 msgstr ""
30541
30542 #. type: textblock
30543 #: ../src/guestfs.pod:293
30544 msgid "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
30545 msgstr ""
30546
30547 #. type: textblock
30548 #: ../src/guestfs.pod:295
30549 msgid ""
30550 "However the fastest way to upload I<large numbers of arbitrary files> is to "
30551 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and "
30552 "L<mkisofs(8)>), then attach this using L</guestfs_add_drive_ro>.  If you add "
30553 "the drive in a predictable way (eg. adding it last after all other drives) "
30554 "then you can get the device name from L</guestfs_list_devices> and mount it "
30555 "directly using L</guestfs_mount_ro>.  Note that squashfs images are "
30556 "sometimes non-portable between kernel versions, and they don't support "
30557 "labels or UUIDs.  If you want to pre-build an image or you need to mount it "
30558 "using a label or UUID, use an ISO image instead."
30559 msgstr ""
30560
30561 #. type: =head2
30562 #: ../src/guestfs.pod:306
30563 msgid "COPYING"
30564 msgstr ""
30565
30566 #. type: textblock
30567 #: ../src/guestfs.pod:308
30568 msgid ""
30569 "There are various different commands for copying between files and devices "
30570 "and in and out of the guest filesystem.  These are summarised in the table "
30571 "below."
30572 msgstr ""
30573
30574 #. type: =item
30575 #: ../src/guestfs.pod:314
30576 msgid "B<file> to B<file>"
30577 msgstr ""
30578
30579 #. type: textblock
30580 #: ../src/guestfs.pod:316
30581 msgid ""
30582 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
30583 "directories recursively."
30584 msgstr ""
30585
30586 #. type: =item
30587 #: ../src/guestfs.pod:319
30588 msgid "B<file or device> to B<file or device>"
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../src/guestfs.pod:321
30593 msgid ""
30594 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
30595 "devices in the guest."
30596 msgstr ""
30597
30598 #. type: textblock
30599 #: ../src/guestfs.pod:324
30600 msgid "Example: duplicate the contents of an LV:"
30601 msgstr ""
30602
30603 #. type: verbatim
30604 #: ../src/guestfs.pod:326
30605 #, no-wrap
30606 msgid ""
30607 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: textblock
30612 #: ../src/guestfs.pod:328
30613 msgid ""
30614 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
30615 "(C</dev/VG/Original>).  To copy less than the whole source device, use "
30616 "L</guestfs_copy_size>."
30617 msgstr ""
30618
30619 #. type: =item
30620 #: ../src/guestfs.pod:332
30621 msgid "B<file on the host> to B<file or device>"
30622 msgstr ""
30623
30624 #. type: textblock
30625 #: ../src/guestfs.pod:334
30626 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
30627 msgstr ""
30628
30629 #. type: =item
30630 #: ../src/guestfs.pod:336
30631 msgid "B<file or device> to B<file on the host>"
30632 msgstr ""
30633
30634 #. type: textblock
30635 #: ../src/guestfs.pod:338
30636 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
30637 msgstr ""
30638
30639 #. type: =head2
30640 #: ../src/guestfs.pod:342
30641 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
30642 msgstr ""
30643
30644 #. type: textblock
30645 #: ../src/guestfs.pod:344
30646 msgid ""
30647 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, "
30648 "L</guestfs_tar_out> etc appear to only take filenames as arguments, so it "
30649 "appears you can only upload and download to files.  However many Un*x-like "
30650 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, "
30651 "C</dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, "
30652 "stderr, and arbitrary file descriptor N."
30653 msgstr ""
30654
30655 #. type: textblock
30656 #: ../src/guestfs.pod:352
30657 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
30658 msgstr ""
30659
30660 #. type: verbatim
30661 #: ../src/guestfs.pod:355
30662 #, no-wrap
30663 msgid ""
30664 " guestfs_download (g, filename, \"/dev/stdout\");\n"
30665 "\n"
30666 msgstr ""
30667
30668 #. type: textblock
30669 #: ../src/guestfs.pod:357
30670 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
30671 msgstr ""
30672
30673 #. type: verbatim
30674 #: ../src/guestfs.pod:359
30675 #, no-wrap
30676 msgid ""
30677 " char devfd[64];\n"
30678 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
30679 " guestfs_tar_out (g, \"/\", devfd);\n"
30680 "\n"
30681 msgstr ""
30682
30683 #. type: =head2
30684 #: ../src/guestfs.pod:363
30685 msgid "LISTING FILES"
30686 msgstr ""
30687
30688 #. type: textblock
30689 #: ../src/guestfs.pod:365
30690 msgid ""
30691 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
30692 "L<guestfish(1)>-equivalent command C<ll>)."
30693 msgstr ""
30694
30695 #. type: textblock
30696 #: ../src/guestfs.pod:368
30697 msgid ""
30698 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
30699 "programs, as a flat list of strings."
30700 msgstr ""
30701
30702 #. type: textblock
30703 #: ../src/guestfs.pod:371
30704 msgid ""
30705 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
30706 "directory, plus additional information about each one.  It is more "
30707 "equivalent to using the L<readdir(3)> call on a local filesystem."
30708 msgstr ""
30709
30710 #. type: textblock
30711 #: ../src/guestfs.pod:375
30712 msgid ""
30713 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list "
30714 "files."
30715 msgstr ""
30716
30717 #. type: =head2
30718 #: ../src/guestfs.pod:378
30719 msgid "RUNNING COMMANDS"
30720 msgstr ""
30721
30722 #. type: textblock
30723 #: ../src/guestfs.pod:380
30724 msgid ""
30725 "Although libguestfs is primarily an API for manipulating files inside guest "
30726 "images, we also provide some limited facilities for running commands inside "
30727 "guests."
30728 msgstr ""
30729
30730 #. type: textblock
30731 #: ../src/guestfs.pod:384
30732 msgid "There are many limitations to this:"
30733 msgstr ""
30734
30735 #. type: textblock
30736 #: ../src/guestfs.pod:390
30737 msgid ""
30738 "The kernel version that the command runs under will be different from what "
30739 "it expects."
30740 msgstr ""
30741
30742 #. type: textblock
30743 #: ../src/guestfs.pod:395
30744 msgid ""
30745 "If the command needs to communicate with daemons, then most likely they "
30746 "won't be running."
30747 msgstr ""
30748
30749 #. type: textblock
30750 #: ../src/guestfs.pod:400
30751 msgid "The command will be running in limited memory."
30752 msgstr ""
30753
30754 #. type: textblock
30755 #: ../src/guestfs.pod:404
30756 msgid ""
30757 "The network may not be available unless you enable it (see "
30758 "L</guestfs_set_network>)."
30759 msgstr ""
30760
30761 #. type: textblock
30762 #: ../src/guestfs.pod:409
30763 msgid "Only supports Linux guests (not Windows, BSD, etc)."
30764 msgstr ""
30765
30766 #. type: textblock
30767 #: ../src/guestfs.pod:413
30768 msgid "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
30769 msgstr ""
30770
30771 #. type: textblock
30772 #: ../src/guestfs.pod:418
30773 msgid ""
30774 "For SELinux guests, you may need to enable SELinux and load policy first.  "
30775 "See L</SELINUX> in this manpage."
30776 msgstr ""
30777
30778 #. type: textblock
30779 #: ../src/guestfs.pod:423
30780 msgid ""
30781 "I<Security:> It is not safe to run commands from untrusted, possibly "
30782 "malicious guests.  These commands may attempt to exploit your program by "
30783 "sending unexpected output.  They could also try to exploit the Linux kernel "
30784 "or qemu provided by the libguestfs appliance.  They could use the network "
30785 "provided by the libguestfs appliance to bypass ordinary network partitions "
30786 "and firewalls.  They could use the elevated privileges or different SELinux "
30787 "context of your program to their advantage."
30788 msgstr ""
30789
30790 #. type: textblock
30791 #: ../src/guestfs.pod:432
30792 msgid ""
30793 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
30794 "(a script which runs when the guest next boots normally), and to have this "
30795 "script run the commands you want in the normal context of the running guest, "
30796 "network security and so on.  For information about other security issues, "
30797 "see L</SECURITY>."
30798 msgstr ""
30799
30800 #. type: textblock
30801 #: ../src/guestfs.pod:440
30802 msgid ""
30803 "The two main API calls to run commands are L</guestfs_command> and "
30804 "L</guestfs_sh> (there are also variations)."
30805 msgstr ""
30806
30807 #. type: textblock
30808 #: ../src/guestfs.pod:443
30809 msgid ""
30810 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
30811 "shell globs, redirections, etc will work."
30812 msgstr ""
30813
30814 #. type: =head2
30815 #: ../src/guestfs.pod:446
30816 msgid "CONFIGURATION FILES"
30817 msgstr ""
30818
30819 #. type: textblock
30820 #: ../src/guestfs.pod:448
30821 msgid ""
30822 "To read and write configuration files in Linux guest filesystems, we "
30823 "strongly recommend using Augeas.  For example, Augeas understands how to "
30824 "read and write, say, a Linux shadow password file or X.org configuration "
30825 "file, and so avoids you having to write that code."
30826 msgstr ""
30827
30828 #. type: textblock
30829 #: ../src/guestfs.pod:453
30830 msgid ""
30831 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
30832 "document Augeas itself here because there is excellent documentation on the "
30833 "L<http://augeas.net/> website."
30834 msgstr ""
30835
30836 #. type: textblock
30837 #: ../src/guestfs.pod:457
30838 msgid ""
30839 "If you don't want to use Augeas (you fool!) then try calling "
30840 "L</guestfs_read_lines> to get the file as a list of lines which you can "
30841 "iterate over."
30842 msgstr ""
30843
30844 #. type: =head2
30845 #: ../src/guestfs.pod:461
30846 msgid "SELINUX"
30847 msgstr ""
30848
30849 #. type: textblock
30850 #: ../src/guestfs.pod:463
30851 msgid ""
30852 "We support SELinux guests.  To ensure that labeling happens correctly in "
30853 "SELinux guests, you need to enable SELinux and load the guest's policy:"
30854 msgstr ""
30855
30856 #. type: textblock
30857 #: ../src/guestfs.pod:471
30858 msgid "Before launching, do:"
30859 msgstr ""
30860
30861 #. type: verbatim
30862 #: ../src/guestfs.pod:473
30863 #, no-wrap
30864 msgid ""
30865 " guestfs_set_selinux (g, 1);\n"
30866 "\n"
30867 msgstr ""
30868
30869 #. type: textblock
30870 #: ../src/guestfs.pod:477
30871 msgid ""
30872 "After mounting the guest's filesystem(s), load the policy.  This is best "
30873 "done by running the L<load_policy(8)> command in the guest itself:"
30874 msgstr ""
30875
30876 #. type: verbatim
30877 #: ../src/guestfs.pod:481
30878 #, no-wrap
30879 msgid ""
30880 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
30881 "\n"
30882 msgstr ""
30883
30884 #. type: textblock
30885 #: ../src/guestfs.pod:483
30886 msgid ""
30887 "(Older versions of C<load_policy> require you to specify the name of the "
30888 "policy file)."
30889 msgstr ""
30890
30891 #. type: textblock
30892 #: ../src/guestfs.pod:488
30893 msgid ""
30894 "Optionally, set the security context for the API.  The correct security "
30895 "context to use can only be known by inspecting the guest.  As an example:"
30896 msgstr ""
30897
30898 #. type: verbatim
30899 #: ../src/guestfs.pod:492
30900 #, no-wrap
30901 msgid ""
30902 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
30903 "\n"
30904 msgstr ""
30905
30906 #. type: textblock
30907 #: ../src/guestfs.pod:496
30908 msgid "This will work for running commands and editing existing files."
30909 msgstr ""
30910
30911 #. type: textblock
30912 #: ../src/guestfs.pod:498
30913 msgid ""
30914 "When new files are created, you may need to label them explicitly, for "
30915 "example by running the external command C<restorecon pathname>."
30916 msgstr ""
30917
30918 #. type: =head2
30919 #: ../src/guestfs.pod:502
30920 msgid "UMASK"
30921 msgstr ""
30922
30923 #. type: textblock
30924 #: ../src/guestfs.pod:504
30925 msgid ""
30926 "Certain calls are affected by the current file mode creation mask (the "
30927 "\"umask\").  In particular ones which create files or directories, such as "
30928 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
30929 "either the default mode that the file is created with or modifies the mode "
30930 "that you supply."
30931 msgstr ""
30932
30933 #. type: textblock
30934 #: ../src/guestfs.pod:510
30935 msgid ""
30936 "The default umask is C<022>, so files are created with modes such as C<0644> "
30937 "and directories with C<0755>."
30938 msgstr ""
30939
30940 #. type: textblock
30941 #: ../src/guestfs.pod:513
30942 msgid ""
30943 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
30944 "(call C<guestfs_umask (g, 0)> early after launching).  Or call "
30945 "L</guestfs_chmod> after creating each file or directory."
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs.pod:517
30950 msgid "For more information about umask, see L<umask(2)>."
30951 msgstr ""
30952
30953 #. type: textblock
30954 #: ../src/guestfs.pod:521
30955 msgid ""
30956 "Libguestfs allows you to access Linux guests which have been encrypted using "
30957 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
30958 "standard.  This includes nearly all whole disk encryption systems used by "
30959 "modern Linux guests."
30960 msgstr ""
30961
30962 #. type: textblock
30963 #: ../src/guestfs.pod:527
30964 msgid ""
30965 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
30966 "returns the string C<crypto_LUKS>)."
30967 msgstr ""
30968
30969 #. type: textblock
30970 #: ../src/guestfs.pod:530
30971 msgid ""
30972 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
30973 "will require the passphrase!"
30974 msgstr ""
30975
30976 #. type: textblock
30977 #: ../src/guestfs.pod:533
30978 msgid ""
30979 "Opening a LUKS device creates a new device mapper device called "
30980 "C</dev/mapper/mapname> (where C<mapname> is the string you supply to "
30981 "L</guestfs_luks_open>).  Reads and writes to this mapper device are "
30982 "decrypted from and encrypted to the underlying block device respectively."
30983 msgstr ""
30984
30985 #. type: textblock
30986 #: ../src/guestfs.pod:539
30987 msgid ""
30988 "LVM volume groups on the device can be made visible by calling "
30989 "L</guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical "
30990 "volume(s) can now be mounted in the usual way."
30991 msgstr ""
30992
30993 #. type: textblock
30994 #: ../src/guestfs.pod:543
30995 msgid ""
30996 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
30997 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
30998 "[\"/dev/VG\"])>.  Then close the mapper device by calling "
30999 "L</guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
31000 "underlying encrypted block device)."
31001 msgstr ""
31002
31003 #. type: =head2
31004 #: ../src/guestfs.pod:550
31005 msgid "INSPECTION"
31006 msgstr ""
31007
31008 #. type: textblock
31009 #: ../src/guestfs.pod:552
31010 msgid ""
31011 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
31012 "contains operating systems, an install CD or a live CD.  (These APIs used to "
31013 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
31014 "version 1.5.3 the most frequently used part of this library has been "
31015 "rewritten in C and moved into the core code)."
31016 msgstr ""
31017
31018 #. type: textblock
31019 #: ../src/guestfs.pod:559
31020 msgid ""
31021 "Add all disks belonging to the unknown virtual machine and call "
31022 "L</guestfs_launch> in the usual way."
31023 msgstr ""
31024
31025 #. type: textblock
31026 #: ../src/guestfs.pod:562
31027 msgid ""
31028 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
31029 "and certain heuristics, and returns a list of operating systems that were "
31030 "found.  An empty list means none were found.  A single element is the root "
31031 "filesystem of the operating system.  For dual- or multi-boot guests, "
31032 "multiple roots can be returned, each one corresponding to a separate "
31033 "operating system.  (Multi-boot virtual machines are extremely rare in the "
31034 "world of virtualization, but since this scenario can happen, we have built "
31035 "libguestfs to deal with it.)"
31036 msgstr ""
31037
31038 #. type: textblock
31039 #: ../src/guestfs.pod:571
31040 msgid ""
31041 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
31042 "to get additional details about that operating system.  For example, call "
31043 "L</guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
31044 "Windows and Linux-based operating systems respectively."
31045 msgstr ""
31046
31047 #. type: textblock
31048 #: ../src/guestfs.pod:577
31049 msgid ""
31050 "Un*x-like and Linux-based operating systems usually consist of several "
31051 "filesystems which are mounted at boot time (for example, a separate boot "
31052 "partition mounted on C</boot>).  The inspection rules are able to detect how "
31053 "filesystems correspond to mount points.  Call "
31054 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
31055 "hash table like this example:"
31056 msgstr ""
31057
31058 #. type: verbatim
31059 #: ../src/guestfs.pod:584
31060 #, no-wrap
31061 msgid ""
31062 " /boot => /dev/sda1\n"
31063 " /     => /dev/vg_guest/lv_root\n"
31064 " /usr  => /dev/vg_guest/lv_usr\n"
31065 "\n"
31066 msgstr ""
31067
31068 #. type: textblock
31069 #: ../src/guestfs.pod:588
31070 msgid ""
31071 "The caller can then make calls to L</guestfs_mount_options> to mount the "
31072 "filesystems as suggested."
31073 msgstr ""
31074
31075 #. type: textblock
31076 #: ../src/guestfs.pod:591
31077 msgid ""
31078 "Be careful to mount filesystems in the right order (eg. C</> before "
31079 "C</usr>).  Sorting the keys of the hash by length, shortest first, should "
31080 "work."
31081 msgstr ""
31082
31083 #. type: textblock
31084 #: ../src/guestfs.pod:595
31085 msgid ""
31086 "Inspection currently only works for some common operating systems.  "
31087 "Contributors are welcome to send patches for other operating systems that we "
31088 "currently cannot detect."
31089 msgstr ""
31090
31091 #. type: textblock
31092 #: ../src/guestfs.pod:599
31093 msgid ""
31094 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
31095 "for more details.  The L</guestfs_inspect_os> function just ignores any "
31096 "encrypted devices."
31097 msgstr ""
31098
31099 #. type: textblock
31100 #: ../src/guestfs.pod:603
31101 msgid ""
31102 "A note on the implementation: The call L</guestfs_inspect_os> performs "
31103 "inspection and caches the results in the guest handle.  Subsequent calls to "
31104 "C<guestfs_inspect_get_*> return this cached information, but I<do not> "
31105 "re-read the disks.  If you change the content of the guest disks, you can "
31106 "redo inspection by calling L</guestfs_inspect_os> again.  "
31107 "(L</guestfs_inspect_list_applications> works a little differently from the "
31108 "other calls and does read the disks.  See documentation for that function "
31109 "for details)."
31110 msgstr ""
31111
31112 #. type: =head3
31113 #: ../src/guestfs.pod:612
31114 msgid "INSPECTING INSTALL DISKS"
31115 msgstr ""
31116
31117 #. type: textblock
31118 #: ../src/guestfs.pod:614
31119 msgid ""
31120 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
31121 "CDs and more."
31122 msgstr ""
31123
31124 #. type: textblock
31125 #: ../src/guestfs.pod:617
31126 msgid ""
31127 "Call L</guestfs_inspect_get_format> to return the format of the operating "
31128 "system, which currently can be C<installed> (a regular operating system) or "
31129 "C<installer> (some sort of install disk)."
31130 msgstr ""
31131
31132 #. type: textblock
31133 #: ../src/guestfs.pod:621
31134 msgid ""
31135 "Further information is available about the operating system that can be "
31136 "installed using the regular inspection APIs like "
31137 "L</guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> "
31138 "etc."
31139 msgstr ""
31140
31141 #. type: textblock
31142 #: ../src/guestfs.pod:626
31143 msgid ""
31144 "Some additional information specific to installer disks is also available "
31145 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and "
31146 "L</guestfs_inspect_is_multipart> calls."
31147 msgstr ""
31148
31149 #. type: =head2
31150 #: ../src/guestfs.pod:631
31151 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
31152 msgstr ""
31153
31154 #. type: textblock
31155 #: ../src/guestfs.pod:633
31156 msgid ""
31157 "Libguestfs can mount NTFS partitions.  It does this using the "
31158 "L<http://www.ntfs-3g.org/> driver."
31159 msgstr ""
31160
31161 #. type: =head3
31162 #: ../src/guestfs.pod:636
31163 msgid "DRIVE LETTERS AND PATHS"
31164 msgstr ""
31165
31166 #. type: textblock
31167 #: ../src/guestfs.pod:638
31168 msgid ""
31169 "DOS and Windows still use drive letters, and the filesystems are always "
31170 "treated as case insensitive by Windows itself, and therefore you might find "
31171 "a Windows configuration file referring to a path like "
31172 "C<c:\\windows\\system32>.  When the filesystem is mounted in libguestfs, "
31173 "that directory might be referred to as C</WINDOWS/System32>."
31174 msgstr ""
31175
31176 #. type: textblock
31177 #: ../src/guestfs.pod:644
31178 msgid ""
31179 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
31180 "L</guestfs_inspect_get_drive_mappings>)"
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs.pod:647
31185 msgid ""
31186 "Dealing with separator characters (backslash vs forward slash) is outside "
31187 "the scope of libguestfs, but usually a simple character replacement will "
31188 "work."
31189 msgstr ""
31190
31191 #. type: textblock
31192 #: ../src/guestfs.pod:651
31193 msgid ""
31194 "To resolve the case insensitivity of paths, call "
31195 "L</guestfs_case_sensitive_path>."
31196 msgstr ""
31197
31198 #. type: =head3
31199 #: ../src/guestfs.pod:654
31200 msgid "ACCESSING THE WINDOWS REGISTRY"
31201 msgstr ""
31202
31203 #. type: textblock
31204 #: ../src/guestfs.pod:656
31205 msgid ""
31206 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
31207 "files, through the library C<hivex> which is part of the libguestfs project "
31208 "although ships as a separate tarball.  You have to locate and download the "
31209 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
31210 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and "
31211 "L<virt-win-reg(1)> for more help on this issue."
31212 msgstr ""
31213
31214 #. type: =head3
31215 #: ../src/guestfs.pod:664
31216 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
31217 msgstr ""
31218
31219 #. type: textblock
31220 #: ../src/guestfs.pod:666
31221 msgid ""
31222 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
31223 "provide something which looks like a Linux symlink.  The way it tries to do "
31224 "the rewriting is described here:"
31225 msgstr ""
31226
31227 #. type: textblock
31228 #: ../src/guestfs.pod:670
31229 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-symbolic-links/>"
31230 msgstr ""
31231
31232 #. type: textblock
31233 #: ../src/guestfs.pod:672
31234 msgid ""
31235 "The essential problem is that ntfs-3g simply does not have enough "
31236 "information to do a correct job.  NTFS links can contain drive letters and "
31237 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
31238 "It is almost certainly the case that libguestfs callers should ignore what "
31239 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
31240 msgstr ""
31241
31242 #. type: textblock
31243 #: ../src/guestfs.pod:679
31244 msgid ""
31245 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use "
31246 "L</guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
31247 "attribute, and read the raw reparse data from that (you can find the format "
31248 "documented in various places around the web)."
31249 msgstr ""
31250
31251 #. type: =head3
31252 #: ../src/guestfs.pod:684
31253 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
31254 msgstr ""
31255
31256 #. type: textblock
31257 #: ../src/guestfs.pod:686
31258 msgid ""
31259 "There are other useful extended attributes that can be read from ntfs-3g "
31260 "filesystems (using L</guestfs_getxattr>).  See:"
31261 msgstr ""
31262
31263 #. type: textblock
31264 #: ../src/guestfs.pod:689
31265 msgid "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
31266 msgstr ""
31267
31268 #. type: =head2
31269 #: ../src/guestfs.pod:691
31270 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
31271 msgstr ""
31272
31273 #. type: textblock
31274 #: ../src/guestfs.pod:693
31275 msgid ""
31276 "Although we don't want to discourage you from using the C API, we will "
31277 "mention here that the same API is also available in other languages."
31278 msgstr ""
31279
31280 #. type: textblock
31281 #: ../src/guestfs.pod:696
31282 msgid ""
31283 "The API is broadly identical in all supported languages.  This means that "
31284 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
31285 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
31286 "OCaml.  In other words, a straightforward, predictable isomorphism between "
31287 "each language."
31288 msgstr ""
31289
31290 #. type: textblock
31291 #: ../src/guestfs.pod:702
31292 msgid ""
31293 "Error messages are automatically transformed into exceptions if the language "
31294 "supports it."
31295 msgstr ""
31296
31297 #. type: textblock
31298 #: ../src/guestfs.pod:705
31299 msgid ""
31300 "We don't try to \"object orientify\" parts of the API in OO languages, "
31301 "although contributors are welcome to write higher level APIs above what we "
31302 "provide in their favourite languages if they wish."
31303 msgstr ""
31304
31305 #. type: =item
31306 #: ../src/guestfs.pod:711
31307 msgid "B<C++>"
31308 msgstr ""
31309
31310 #. type: textblock
31311 #: ../src/guestfs.pod:713
31312 msgid ""
31313 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
31314 "identical to the C API.  C++ classes and exceptions are not used."
31315 msgstr ""
31316
31317 #. type: =item
31318 #: ../src/guestfs.pod:717
31319 msgid "B<C#>"
31320 msgstr ""
31321
31322 #. type: textblock
31323 #: ../src/guestfs.pod:719
31324 msgid ""
31325 "The C# bindings are highly experimental.  Please read the warnings at the "
31326 "top of C<csharp/Libguestfs.cs>."
31327 msgstr ""
31328
31329 #. type: =item
31330 #: ../src/guestfs.pod:722
31331 msgid "B<Haskell>"
31332 msgstr ""
31333
31334 #. type: textblock
31335 #: ../src/guestfs.pod:724
31336 msgid ""
31337 "This is the only language binding that is working but incomplete.  Only "
31338 "calls which return simple integers have been bound in Haskell, and we are "
31339 "looking for help to complete this binding."
31340 msgstr ""
31341
31342 #. type: =item
31343 #: ../src/guestfs.pod:728
31344 msgid "B<Java>"
31345 msgstr ""
31346
31347 #. type: textblock
31348 #: ../src/guestfs.pod:730
31349 msgid ""
31350 "Full documentation is contained in the Javadoc which is distributed with "
31351 "libguestfs.  For examples, see L<guestfs-java(3)>."
31352 msgstr ""
31353
31354 #. type: =item
31355 #: ../src/guestfs.pod:733
31356 msgid "B<OCaml>"
31357 msgstr ""
31358
31359 #. type: textblock
31360 #: ../src/guestfs.pod:735
31361 msgid "See L<guestfs-ocaml(3)>."
31362 msgstr ""
31363
31364 #. type: =item
31365 #: ../src/guestfs.pod:737
31366 msgid "B<Perl>"
31367 msgstr ""
31368
31369 #. type: textblock
31370 #: ../src/guestfs.pod:739
31371 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
31372 msgstr ""
31373
31374 #. type: =item
31375 #: ../src/guestfs.pod:741
31376 msgid "B<PHP>"
31377 msgstr ""
31378
31379 #. type: textblock
31380 #: ../src/guestfs.pod:743
31381 msgid ""
31382 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
31383 "the php-libguestfs package for your distribution."
31384 msgstr ""
31385
31386 #. type: textblock
31387 #: ../src/guestfs.pod:746
31388 msgid "The PHP binding only works correctly on 64 bit machines."
31389 msgstr ""
31390
31391 #. type: =item
31392 #: ../src/guestfs.pod:748
31393 msgid "B<Python>"
31394 msgstr ""
31395
31396 #. type: textblock
31397 #: ../src/guestfs.pod:750
31398 msgid "See L<guestfs-python(3)>."
31399 msgstr ""
31400
31401 #. type: =item
31402 #: ../src/guestfs.pod:752
31403 msgid "B<Ruby>"
31404 msgstr ""
31405
31406 #. type: textblock
31407 #: ../src/guestfs.pod:754
31408 msgid "See L<guestfs-ruby(3)>."
31409 msgstr ""
31410
31411 #. type: =item
31412 #: ../src/guestfs.pod:756
31413 msgid "B<shell scripts>"
31414 msgstr ""
31415
31416 #. type: textblock
31417 #: ../src/guestfs.pod:758
31418 msgid "See L<guestfish(1)>."
31419 msgstr ""
31420
31421 #. type: =head2
31422 #: ../src/guestfs.pod:762
31423 msgid "LIBGUESTFS GOTCHAS"
31424 msgstr ""
31425
31426 #. type: textblock
31427 #: ../src/guestfs.pod:764
31428 msgid ""
31429 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
31430 "system [...] that works in the way it is documented but is counterintuitive "
31431 "and almost invites mistakes.\""
31432 msgstr ""
31433
31434 #. type: textblock
31435 #: ../src/guestfs.pod:768
31436 msgid ""
31437 "Since we developed libguestfs and the associated tools, there are several "
31438 "things we would have designed differently, but are now stuck with for "
31439 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
31440 "release, you can expect these to change.  Beware of them."
31441 msgstr ""
31442
31443 #. type: =item
31444 #: ../src/guestfs.pod:776
31445 msgid "Autosync / forgetting to sync."
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs.pod:778
31450 msgid ""
31451 "I<Update:> Autosync is enabled by default for all API users starting from "
31452 "libguestfs 1.5.24.  This section only applies to older versions."
31453 msgstr ""
31454
31455 #. type: textblock
31456 #: ../src/guestfs.pod:781
31457 msgid ""
31458 "When modifying a filesystem from C or another language, you B<must> unmount "
31459 "all filesystems and call L</guestfs_sync> explicitly before you close the "
31460 "libguestfs handle.  You can also call:"
31461 msgstr ""
31462
31463 #. type: verbatim
31464 #: ../src/guestfs.pod:785
31465 #, no-wrap
31466 msgid ""
31467 " guestfs_set_autosync (g, 1);\n"
31468 "\n"
31469 msgstr ""
31470
31471 #. type: textblock
31472 #: ../src/guestfs.pod:787
31473 msgid ""
31474 "to have the unmount/sync done automatically for you when the handle 'g' is "
31475 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> "
31476 "q.v.)"
31477 msgstr ""
31478
31479 #. type: textblock
31480 #: ../src/guestfs.pod:791
31481 msgid ""
31482 "If you forget to do this, then it is entirely possible that your changes "
31483 "won't be written out, or will be partially written, or (very rarely) that "
31484 "you'll get disk corruption."
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs.pod:795
31489 msgid ""
31490 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
31491 "guestfish scripts that forget to sync will work just fine, which can make "
31492 "this very puzzling if you are trying to debug a problem."
31493 msgstr ""
31494
31495 #. type: =item
31496 #: ../src/guestfs.pod:799
31497 msgid "Mount option C<-o sync> should not be the default."
31498 msgstr ""
31499
31500 #. type: textblock
31501 #: ../src/guestfs.pod:801
31502 msgid ""
31503 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
31504 "However C<-o sync> does not add any reliability benefit, but does have a "
31505 "very large performance impact."
31506 msgstr ""
31507
31508 #. type: textblock
31509 #: ../src/guestfs.pod:805
31510 msgid ""
31511 "The work around is to use L</guestfs_mount_options> and set the mount "
31512 "options that you actually want to use."
31513 msgstr ""
31514
31515 #. type: =item
31516 #: ../src/guestfs.pod:808
31517 msgid "Read-only should be the default."
31518 msgstr ""
31519
31520 #. type: textblock
31521 #: ../src/guestfs.pod:810
31522 msgid ""
31523 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
31524 "specify I<--rw> if you want to make changes to the image."
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs.pod:813
31529 msgid "This would reduce the potential to corrupt live VM images."
31530 msgstr ""
31531
31532 #. type: textblock
31533 #: ../src/guestfs.pod:815
31534 msgid ""
31535 "Note that many filesystems change the disk when you just mount and unmount, "
31536 "even if you didn't perform any writes.  You need to use "
31537 "L</guestfs_add_drive_ro> to guarantee that the disk is not changed."
31538 msgstr ""
31539
31540 #. type: =item
31541 #: ../src/guestfs.pod:819
31542 msgid "guestfish command line is hard to use."
31543 msgstr ""
31544
31545 #. type: textblock
31546 #: ../src/guestfs.pod:821
31547 msgid ""
31548 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
31549 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
31550 "exist, so it fails.  In earlier versions of guestfish the error message was "
31551 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
31552 "we should have used C<guestfish -c command> to run commands."
31553 msgstr ""
31554
31555 #. type: =item
31556 #: ../src/guestfs.pod:828
31557 msgid "guestfish megabyte modifiers don't work right on all commands"
31558 msgstr ""
31559
31560 #. type: textblock
31561 #: ../src/guestfs.pod:830
31562 msgid ""
31563 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
31564 "other modifiers).  What guestfish actually does is to multiply the number "
31565 "part by the modifier part and pass the result to the C API.  However this "
31566 "doesn't work for a few APIs which aren't expecting bytes, but are already "
31567 "expecting some other unit (eg. megabytes)."
31568 msgstr ""
31569
31570 #. type: textblock
31571 #: ../src/guestfs.pod:837
31572 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
31573 msgstr ""
31574
31575 #. type: verbatim
31576 #: ../src/guestfs.pod:839
31577 #, no-wrap
31578 msgid ""
31579 " lvcreate LV VG 100M\n"
31580 "\n"
31581 msgstr ""
31582
31583 #. type: textblock
31584 #: ../src/guestfs.pod:841
31585 msgid ""
31586 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
31587 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
31588 "megabytes * megabytes) logical volume.  The error message you get from this "
31589 "is also a little obscure."
31590 msgstr ""
31591
31592 #. type: textblock
31593 #: ../src/guestfs.pod:846
31594 msgid ""
31595 "This could be fixed in the generator by specially marking parameters and "
31596 "return values which take bytes or other units."
31597 msgstr ""
31598
31599 #. type: =item
31600 #: ../src/guestfs.pod:849
31601 msgid "Ambiguity between devices and paths"
31602 msgstr ""
31603
31604 #. type: textblock
31605 #: ../src/guestfs.pod:851
31606 msgid ""
31607 "There is a subtle ambiguity in the API between a device name "
31608 "(eg. C</dev/sdb2>) and a similar pathname.  A file might just happen to be "
31609 "called C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
31610 msgstr ""
31611
31612 #. type: textblock
31613 #: ../src/guestfs.pod:856
31614 msgid ""
31615 "In the current API we usually resolve this ambiguity by having two separate "
31616 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
31617 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
31618 "detecting if the path supplied begins with C</dev/>."
31619 msgstr ""
31620
31621 #. type: textblock
31622 #: ../src/guestfs.pod:862
31623 msgid ""
31624 "To avoid both the ambiguity and the need to duplicate some calls, we could "
31625 "make paths/devices into structured names.  One way to do this would be to "
31626 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
31627 "aspect of grub.  Another way would be to use a structured type, equivalent "
31628 "to this OCaml type:"
31629 msgstr ""
31630
31631 #. type: verbatim
31632 #: ../src/guestfs.pod:868
31633 #, no-wrap
31634 msgid ""
31635 " type path = Path of string | Device of int | Partition of int * int\n"
31636 "\n"
31637 msgstr ""
31638
31639 #. type: textblock
31640 #: ../src/guestfs.pod:870
31641 msgid "which would allow you to pass arguments like:"
31642 msgstr ""
31643
31644 #. type: verbatim
31645 #: ../src/guestfs.pod:872
31646 #, no-wrap
31647 msgid ""
31648 " Path \"/foo/bar\"\n"
31649 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
31650 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
31651 " Path \"/dev/sdb2\"    (* not a device *)\n"
31652 "\n"
31653 msgstr ""
31654
31655 #. type: textblock
31656 #: ../src/guestfs.pod:877
31657 msgid ""
31658 "As you can see there are still problems to resolve even with this "
31659 "representation.  Also consider how it might work in guestfish."
31660 msgstr ""
31661
31662 #. type: =head2
31663 #: ../src/guestfs.pod:882
31664 msgid "KEYS AND PASSPHRASES"
31665 msgstr ""
31666
31667 #. type: textblock
31668 #: ../src/guestfs.pod:884
31669 msgid ""
31670 "Certain libguestfs calls take a parameter that contains sensitive key "
31671 "material, passed in as a C string."
31672 msgstr ""
31673
31674 #. type: textblock
31675 #: ../src/guestfs.pod:887
31676 msgid ""
31677 "In the future we would hope to change the libguestfs implementation so that "
31678 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
31679 "swap.  However this is I<not> done at the moment, because of the complexity "
31680 "of such an implementation."
31681 msgstr ""
31682
31683 #. type: textblock
31684 #: ../src/guestfs.pod:892
31685 msgid ""
31686 "Therefore you should be aware that any key parameter you pass to libguestfs "
31687 "might end up being written out to the swap partition.  If this is a concern, "
31688 "scrub the swap partition or don't use libguestfs on encrypted devices."
31689 msgstr ""
31690
31691 #. type: =head2
31692 #: ../src/guestfs.pod:897
31693 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
31694 msgstr ""
31695
31696 #. type: textblock
31697 #: ../src/guestfs.pod:899
31698 msgid ""
31699 "All high-level libguestfs actions are synchronous.  If you want to use "
31700 "libguestfs asynchronously then you must create a thread."
31701 msgstr ""
31702
31703 #. type: textblock
31704 #: ../src/guestfs.pod:902
31705 msgid ""
31706 "Only use the handle from a single thread.  Either use the handle exclusively "
31707 "from one thread, or provide your own mutex so that two threads cannot issue "
31708 "calls on the same handle at the same time."
31709 msgstr ""
31710
31711 #. type: textblock
31712 #: ../src/guestfs.pod:906
31713 msgid ""
31714 "See the graphical program guestfs-browser for one possible architecture for "
31715 "multithreaded programs using libvirt and libguestfs."
31716 msgstr ""
31717
31718 #. type: =head2
31719 #: ../src/guestfs.pod:909
31720 msgid "PATH"
31721 msgstr ""
31722
31723 #. type: textblock
31724 #: ../src/guestfs.pod:911
31725 msgid ""
31726 "Libguestfs needs a supermin appliance, which it finds by looking along an "
31727 "internal path."
31728 msgstr ""
31729
31730 #. type: textblock
31731 #: ../src/guestfs.pod:914
31732 msgid ""
31733 "By default it looks for these in the directory C<$libdir/guestfs> "
31734 "(eg. C</usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
31735 msgstr ""
31736
31737 #. type: textblock
31738 #: ../src/guestfs.pod:917
31739 msgid ""
31740 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
31741 "to change the directories that libguestfs will search in.  The value is a "
31742 "colon-separated list of paths.  The current directory is I<not> searched "
31743 "unless the path contains an empty element or C<.>.  For example "
31744 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
31745 "then C</usr/lib/guestfs>."
31746 msgstr ""
31747
31748 #. type: =head2
31749 #: ../src/guestfs.pod:924
31750 msgid "QEMU WRAPPERS"
31751 msgstr ""
31752
31753 #. type: textblock
31754 #: ../src/guestfs.pod:926
31755 msgid ""
31756 "If you want to compile your own qemu, run qemu from a non-standard location, "
31757 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
31758 "around qemu."
31759 msgstr ""
31760
31761 #. type: textblock
31762 #: ../src/guestfs.pod:930
31763 msgid ""
31764 "There is one important rule to remember: you I<must C<exec qemu>> as the "
31765 "last command in the shell script (so that qemu replaces the shell and "
31766 "becomes the direct child of the libguestfs-using program).  If you don't do "
31767 "this, then the qemu process won't be cleaned up correctly."
31768 msgstr ""
31769
31770 #. type: textblock
31771 #: ../src/guestfs.pod:935
31772 msgid ""
31773 "Here is an example of a wrapper, where I have built my own copy of qemu from "
31774 "source:"
31775 msgstr ""
31776
31777 #. type: verbatim
31778 #: ../src/guestfs.pod:938
31779 #, no-wrap
31780 msgid ""
31781 " #!/bin/sh -\n"
31782 " qemudir=/home/rjones/d/qemu\n"
31783 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios "
31784 "\"$@\"\n"
31785 "\n"
31786 msgstr ""
31787
31788 #. type: textblock
31789 #: ../src/guestfs.pod:942
31790 msgid ""
31791 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
31792 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
31793 "example:"
31794 msgstr ""
31795
31796 #. type: verbatim
31797 #: ../src/guestfs.pod:946
31798 #, no-wrap
31799 msgid ""
31800 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
31801 "\n"
31802 msgstr ""
31803
31804 #. type: textblock
31805 #: ../src/guestfs.pod:948
31806 msgid ""
31807 "Note that libguestfs also calls qemu with the -help and -version options in "
31808 "order to determine features."
31809 msgstr ""
31810
31811 #. type: =head2
31812 #: ../src/guestfs.pod:951
31813 msgid "ATTACHING TO RUNNING DAEMONS"
31814 msgstr ""
31815
31816 #. type: textblock
31817 #: ../src/guestfs.pod:953
31818 msgid ""
31819 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
31820 "babies.  Use with caution."
31821 msgstr ""
31822
31823 #. type: textblock
31824 #: ../src/guestfs.pod:956
31825 msgid ""
31826 "I<Note (2):> This section explains how to attach to a running daemon from a "
31827 "low level perspective.  For most users, simply using virt tools such as "
31828 "L<guestfish(1)> with the I<--live> option will \"just work\"."
31829 msgstr ""
31830
31831 #. type: =head3
31832 #: ../src/guestfs.pod:960
31833 msgid "Using guestfs_set_attach_method"
31834 msgstr ""
31835
31836 #. type: textblock
31837 #: ../src/guestfs.pod:962
31838 msgid ""
31839 "By calling L</guestfs_set_attach_method> you can change how the library "
31840 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read "
31841 "L</ARCHITECTURE> for some background)."
31842 msgstr ""
31843
31844 #. type: textblock
31845 #: ../src/guestfs.pod:966
31846 msgid ""
31847 "The normal attach method is C<appliance>, where a small appliance is created "
31848 "containing the daemon, and then the library connects to this."
31849 msgstr ""
31850
31851 #. type: textblock
31852 #: ../src/guestfs.pod:969
31853 msgid ""
31854 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
31855 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
31856 "daemon over the Unix domain socket."
31857 msgstr ""
31858
31859 #. type: textblock
31860 #: ../src/guestfs.pod:973
31861 msgid ""
31862 "The normal use for this is to connect to a running virtual machine that "
31863 "contains a C<guestfsd> daemon, and send commands so you can read and write "
31864 "files inside the live virtual machine."
31865 msgstr ""
31866
31867 #. type: =head3
31868 #: ../src/guestfs.pod:977
31869 msgid "Using guestfs_add_domain with live flag"
31870 msgstr ""
31871
31872 #. type: textblock
31873 #: ../src/guestfs.pod:979
31874 msgid ""
31875 "L</guestfs_add_domain> provides some help for getting the correct attach "
31876 "method.  If you pass the C<live> option to this function, then (if the "
31877 "virtual machine is running) it will examine the libvirt XML looking for a "
31878 "virtio-serial channel to connect to:"
31879 msgstr ""
31880
31881 #. type: verbatim
31882 #: ../src/guestfs.pod:985
31883 #, no-wrap
31884 msgid ""
31885 " <domain>\n"
31886 "   ...\n"
31887 "   <devices>\n"
31888 "     ...\n"
31889 "     <channel type='unix'>\n"
31890 "       <source mode='bind' path='/path/to/socket'/>\n"
31891 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
31892 "     </channel>\n"
31893 "     ...\n"
31894 "   </devices>\n"
31895 " </domain>\n"
31896 "\n"
31897 msgstr ""
31898
31899 #. type: textblock
31900 #: ../src/guestfs.pod:997
31901 msgid ""
31902 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
31903 "method to C<unix:/path/to/socket>."
31904 msgstr ""
31905
31906 #. type: textblock
31907 #: ../src/guestfs.pod:1000
31908 msgid ""
31909 "Some of the libguestfs tools (including guestfish) support a I<--live> "
31910 "option which is passed through to L</guestfs_add_domain> thus allowing you "
31911 "to attach to and modify live virtual machines."
31912 msgstr ""
31913
31914 #. type: textblock
31915 #: ../src/guestfs.pod:1004
31916 msgid ""
31917 "The virtual machine needs to have been set up beforehand so that it has the "
31918 "virtio-serial channel and so that guestfsd is running inside it."
31919 msgstr ""
31920
31921 #. type: =head2
31922 #: ../src/guestfs.pod:1008
31923 msgid "ABI GUARANTEE"
31924 msgstr ""
31925
31926 #. type: textblock
31927 #: ../src/guestfs.pod:1010
31928 msgid ""
31929 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
31930 "actions as outlined in this section.  Although we will deprecate some "
31931 "actions, for example if they get replaced by newer calls, we will keep the "
31932 "old actions forever.  This allows you the developer to program in confidence "
31933 "against the libguestfs API."
31934 msgstr ""
31935
31936 #. type: =head2
31937 #: ../src/guestfs.pod:1016
31938 msgid "BLOCK DEVICE NAMING"
31939 msgstr ""
31940
31941 #. type: textblock
31942 #: ../src/guestfs.pod:1018
31943 msgid ""
31944 "In the kernel there is now quite a profusion of schemata for naming block "
31945 "devices (in this context, by I<block device> I mean a physical or virtual "
31946 "hard drive).  The original Linux IDE driver used names starting with "
31947 "C</dev/hd*>.  SCSI devices have historically used a different naming scheme, "
31948 "C</dev/sd*>.  When the Linux kernel I<libata> driver became a popular "
31949 "replacement for the old IDE driver (particularly for SATA devices) those "
31950 "devices also used the C</dev/sd*> scheme.  Additionally we now have virtual "
31951 "machines with paravirtualized drivers.  This has created several different "
31952 "naming systems, such as C</dev/vd*> for virtio disks and C</dev/xvd*> for "
31953 "Xen PV disks."
31954 msgstr ""
31955
31956 #. type: textblock
31957 #: ../src/guestfs.pod:1030
31958 msgid ""
31959 "As discussed above, libguestfs uses a qemu appliance running an embedded "
31960 "Linux kernel to access block devices.  We can run a variety of appliances "
31961 "based on a variety of Linux kernels."
31962 msgstr ""
31963
31964 #. type: textblock
31965 #: ../src/guestfs.pod:1034
31966 msgid ""
31967 "This causes a problem for libguestfs because many API calls use device or "
31968 "partition names.  Working scripts and the recipe (example) scripts that we "
31969 "make available over the internet could fail if the naming scheme changes."
31970 msgstr ""
31971
31972 #. type: textblock
31973 #: ../src/guestfs.pod:1039
31974 msgid ""
31975 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
31976 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
31977 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
31978 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
31979 msgstr ""
31980
31981 #. type: textblock
31982 #: ../src/guestfs.pod:1045
31983 msgid ""
31984 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
31985 "L</guestfs_list_partitions> and similar calls return the true names of the "
31986 "devices and partitions as known to the appliance."
31987 msgstr ""
31988
31989 #. type: =head3
31990 #: ../src/guestfs.pod:1050
31991 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
31992 msgstr ""
31993
31994 #. type: textblock
31995 #: ../src/guestfs.pod:1052
31996 msgid ""
31997 "Usually this translation is transparent.  However in some (very rare)  cases "
31998 "you may need to know the exact algorithm.  Such cases include where you use "
31999 "L</guestfs_config> to add a mixture of virtio and IDE devices to the "
32000 "qemu-based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> "
32001 "devices."
32002 msgstr ""
32003
32004 #. type: textblock
32005 #: ../src/guestfs.pod:1058
32006 msgid ""
32007 "The algorithm is applied only to I<parameters> which are known to be either "
32008 "device or partition names.  Return values from functions such as "
32009 "L</guestfs_list_devices> are never changed."
32010 msgstr ""
32011
32012 #. type: textblock
32013 #: ../src/guestfs.pod:1066
32014 msgid "Is the string a parameter which is a device or partition name?"
32015 msgstr ""
32016
32017 #. type: textblock
32018 #: ../src/guestfs.pod:1070
32019 msgid "Does the string begin with C</dev/sd>?"
32020 msgstr ""
32021
32022 #. type: textblock
32023 #: ../src/guestfs.pod:1074
32024 msgid ""
32025 "Does the named device exist? If so, we use that device.  However if I<not> "
32026 "then we continue with this algorithm."
32027 msgstr ""
32028
32029 #. type: textblock
32030 #: ../src/guestfs.pod:1079
32031 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
32032 msgstr ""
32033
32034 #. type: textblock
32035 #: ../src/guestfs.pod:1081
32036 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
32037 msgstr ""
32038
32039 #. type: textblock
32040 #: ../src/guestfs.pod:1083
32041 msgid "If that named device exists, use it.  If not, continue."
32042 msgstr ""
32043
32044 #. type: textblock
32045 #: ../src/guestfs.pod:1087
32046 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
32047 msgstr ""
32048
32049 #. type: textblock
32050 #: ../src/guestfs.pod:1089
32051 msgid "If that named device exists, use it.  If not, return an error."
32052 msgstr ""
32053
32054 #. type: =head3
32055 #: ../src/guestfs.pod:1093
32056 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
32057 msgstr ""
32058
32059 #. type: textblock
32060 #: ../src/guestfs.pod:1095
32061 msgid ""
32062 "Although the standard naming scheme and automatic translation is useful for "
32063 "simple programs and guestfish scripts, for larger programs it is best not to "
32064 "rely on this mechanism."
32065 msgstr ""
32066
32067 #. type: textblock
32068 #: ../src/guestfs.pod:1099
32069 msgid ""
32070 "Where possible for maximum future portability programs using libguestfs "
32071 "should use these future-proof techniques:"
32072 msgstr ""
32073
32074 #. type: textblock
32075 #: ../src/guestfs.pod:1106
32076 msgid ""
32077 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
32078 "device names, and then use those names directly."
32079 msgstr ""
32080
32081 #. type: textblock
32082 #: ../src/guestfs.pod:1109
32083 msgid "Since those device names exist by definition, they will never be translated."
32084 msgstr ""
32085
32086 #. type: textblock
32087 #: ../src/guestfs.pod:1114
32088 msgid ""
32089 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
32090 "filesystem labels."
32091 msgstr ""
32092
32093 #. type: =head1
32094 #: ../src/guestfs.pod:1119
32095 msgid "SECURITY"
32096 msgstr ""
32097
32098 #. type: textblock
32099 #: ../src/guestfs.pod:1121
32100 msgid ""
32101 "This section discusses security implications of using libguestfs, "
32102 "particularly with untrusted or malicious guests or disk images."
32103 msgstr ""
32104
32105 #. type: =head2
32106 #: ../src/guestfs.pod:1124
32107 msgid "GENERAL SECURITY CONSIDERATIONS"
32108 msgstr ""
32109
32110 #. type: textblock
32111 #: ../src/guestfs.pod:1126
32112 msgid ""
32113 "Be careful with any files or data that you download from a guest (by "
32114 "\"download\" we mean not just the L</guestfs_download> command but any "
32115 "command that reads files, filenames, directories or anything else from a "
32116 "disk image).  An attacker could manipulate the data to fool your program "
32117 "into doing the wrong thing.  Consider cases such as:"
32118 msgstr ""
32119
32120 #. type: textblock
32121 #: ../src/guestfs.pod:1136
32122 msgid "the data (file etc) not being present"
32123 msgstr ""
32124
32125 #. type: textblock
32126 #: ../src/guestfs.pod:1140
32127 msgid "being present but empty"
32128 msgstr ""
32129
32130 #. type: textblock
32131 #: ../src/guestfs.pod:1144
32132 msgid "being much larger than normal"
32133 msgstr ""
32134
32135 #. type: textblock
32136 #: ../src/guestfs.pod:1148
32137 msgid "containing arbitrary 8 bit data"
32138 msgstr ""
32139
32140 #. type: textblock
32141 #: ../src/guestfs.pod:1152
32142 msgid "being in an unexpected character encoding"
32143 msgstr ""
32144
32145 #. type: textblock
32146 #: ../src/guestfs.pod:1156
32147 msgid "containing homoglyphs."
32148 msgstr ""
32149
32150 #. type: =head2
32151 #: ../src/guestfs.pod:1160
32152 msgid "SECURITY OF MOUNTING FILESYSTEMS"
32153 msgstr ""
32154
32155 #. type: textblock
32156 #: ../src/guestfs.pod:1162
32157 msgid ""
32158 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
32159 "(VFS) module can sometimes be escalated into exploits by deliberately "
32160 "creating a malicious, malformed filesystem.  These exploits are very severe "
32161 "for two reasons.  Firstly there are very many filesystem drivers in the "
32162 "kernel, and many of them are infrequently used and not much developer "
32163 "attention has been paid to the code.  Linux userspace helps potential "
32164 "crackers by detecting the filesystem type and automatically choosing the "
32165 "right VFS driver, even if that filesystem type is obscure or unexpected for "
32166 "the administrator.  Secondly, a kernel-level exploit is like a local root "
32167 "exploit (worse in some ways), giving immediate and total access to the "
32168 "system right down to the hardware level."
32169 msgstr ""
32170
32171 #. type: textblock
32172 #: ../src/guestfs.pod:1175
32173 msgid ""
32174 "That explains why you should never mount a filesystem from an untrusted "
32175 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
32176 "inside a qemu virtual machine, usually running as a non-root user.  The "
32177 "attacker would need to write a filesystem which first exploited the kernel, "
32178 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
32179 "the libguestfs protocol, and finally to be as serious as the host kernel "
32180 "exploit it would need to escalate its privileges to root.  This multi-step "
32181 "escalation, performed by a static piece of data, is thought to be extremely "
32182 "hard to do, although we never say 'never' about security issues."
32183 msgstr ""
32184
32185 #. type: textblock
32186 #: ../src/guestfs.pod:1186
32187 msgid ""
32188 "In any case callers can reduce the attack surface by forcing the filesystem "
32189 "type when mounting (use L</guestfs_mount_vfs>)."
32190 msgstr ""
32191
32192 #. type: =head2
32193 #: ../src/guestfs.pod:1189
32194 msgid "PROTOCOL SECURITY"
32195 msgstr ""
32196
32197 #. type: textblock
32198 #: ../src/guestfs.pod:1191
32199 msgid ""
32200 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
32201 "defined upper message size.  However a program that uses libguestfs must "
32202 "also take care - for example you can write a program that downloads a binary "
32203 "from a disk image and executes it locally, and no amount of protocol "
32204 "security will save you from the consequences."
32205 msgstr ""
32206
32207 #. type: =head2
32208 #: ../src/guestfs.pod:1197
32209 msgid "INSPECTION SECURITY"
32210 msgstr ""
32211
32212 #. type: textblock
32213 #: ../src/guestfs.pod:1199
32214 msgid ""
32215 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
32216 "directly from the guest, and these could contain any 8 bit data.  Callers "
32217 "should be careful to escape these before printing them to a structured file "
32218 "(for example, use HTML escaping if creating a web page)."
32219 msgstr ""
32220
32221 #. type: textblock
32222 #: ../src/guestfs.pod:1205
32223 msgid ""
32224 "Guest configuration may be altered in unusual ways by the administrator of "
32225 "the virtual machine, and may not reflect reality (particularly for untrusted "
32226 "or actively malicious guests).  For example we parse the hostname from "
32227 "configuration files like C</etc/sysconfig/network> that we find in the "
32228 "guest, but the guest administrator can easily manipulate these files to "
32229 "provide the wrong hostname."
32230 msgstr ""
32231
32232 #. type: textblock
32233 #: ../src/guestfs.pod:1213
32234 msgid ""
32235 "The inspection API parses guest configuration using two external libraries: "
32236 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
32237 "designed to be robust in the face of malicious data, although denial of "
32238 "service attacks are still possible, for example with oversized configuration "
32239 "files."
32240 msgstr ""
32241
32242 #. type: =head2
32243 #: ../src/guestfs.pod:1219
32244 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
32245 msgstr ""
32246
32247 #. type: textblock
32248 #: ../src/guestfs.pod:1221
32249 msgid ""
32250 "Be very cautious about running commands from the guest.  By running a "
32251 "command in the guest, you are giving CPU time to a binary that you do not "
32252 "control, under the same user account as the library, albeit wrapped in qemu "
32253 "virtualization.  More information and alternatives can be found in the "
32254 "section L</RUNNING COMMANDS>."
32255 msgstr ""
32256
32257 #. type: =head2
32258 #: ../src/guestfs.pod:1227
32259 msgid "CVE-2010-3851"
32260 msgstr ""
32261
32262 #. type: textblock
32263 #: ../src/guestfs.pod:1229
32264 msgid "https://bugzilla.redhat.com/642934"
32265 msgstr ""
32266
32267 #. type: textblock
32268 #: ../src/guestfs.pod:1231
32269 msgid ""
32270 "This security bug concerns the automatic disk format detection that qemu "
32271 "does on disk images."
32272 msgstr ""
32273
32274 #. type: textblock
32275 #: ../src/guestfs.pod:1234
32276 msgid ""
32277 "A raw disk image is just the raw bytes, there is no header.  Other disk "
32278 "images like qcow2 contain a special header.  Qemu deals with this by looking "
32279 "for one of the known headers, and if none is found then assuming the disk "
32280 "image must be raw."
32281 msgstr ""
32282
32283 #. type: textblock
32284 #: ../src/guestfs.pod:1239
32285 msgid ""
32286 "This allows a guest which has been given a raw disk image to write some "
32287 "other header.  At next boot (or when the disk image is accessed by "
32288 "libguestfs) qemu would do autodetection and think the disk image format was, "
32289 "say, qcow2 based on the header written by the guest."
32290 msgstr ""
32291
32292 #. type: textblock
32293 #: ../src/guestfs.pod:1244
32294 msgid ""
32295 "This in itself would not be a problem, but qcow2 offers many features, one "
32296 "of which is to allow a disk image to refer to another image (called the "
32297 "\"backing disk\").  It does this by placing the path to the backing disk "
32298 "into the qcow2 header.  This path is not validated and could point to any "
32299 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
32300 "\"holes\" in the qcow2 disk image, which of course is completely under the "
32301 "control of the attacker."
32302 msgstr ""
32303
32304 #. type: textblock
32305 #: ../src/guestfs.pod:1252
32306 msgid "In libguestfs this is rather hard to exploit except under two circumstances:"
32307 msgstr ""
32308
32309 #. type: textblock
32310 #: ../src/guestfs.pod:1259
32311 msgid "You have enabled the network or have opened the disk in write mode."
32312 msgstr ""
32313
32314 #. type: textblock
32315 #: ../src/guestfs.pod:1263
32316 msgid ""
32317 "You are also running untrusted code from the guest (see L</RUNNING "
32318 "COMMANDS>)."
32319 msgstr ""
32320
32321 #. type: textblock
32322 #: ../src/guestfs.pod:1268
32323 msgid ""
32324 "The way to avoid this is to specify the expected disk format when adding "
32325 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
32326 "should always do this if the disk is raw format, and it's a good idea for "
32327 "other cases too."
32328 msgstr ""
32329
32330 #. type: textblock
32331 #: ../src/guestfs.pod:1273
32332 msgid ""
32333 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
32334 "format is fetched from libvirt and passed through."
32335 msgstr ""
32336
32337 #. type: textblock
32338 #: ../src/guestfs.pod:1276
32339 msgid ""
32340 "For libguestfs tools, use the I<--format> command line parameter as "
32341 "appropriate."
32342 msgstr ""
32343
32344 #. type: =head1
32345 #: ../src/guestfs.pod:1279
32346 msgid "CONNECTION MANAGEMENT"
32347 msgstr ""
32348
32349 #. type: =head2
32350 #: ../src/guestfs.pod:1281
32351 msgid "guestfs_h *"
32352 msgstr ""
32353
32354 #. type: textblock
32355 #: ../src/guestfs.pod:1283
32356 msgid ""
32357 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
32358 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
32359 "handle and release all resources used."
32360 msgstr ""
32361
32362 #. type: textblock
32363 #: ../src/guestfs.pod:1287
32364 msgid ""
32365 "For information on using multiple handles and threads, see the section "
32366 "L</MULTIPLE HANDLES AND MULTIPLE THREADS> above."
32367 msgstr ""
32368
32369 #. type: =head2
32370 #: ../src/guestfs.pod:1290
32371 msgid "guestfs_create"
32372 msgstr ""
32373
32374 #. type: verbatim
32375 #: ../src/guestfs.pod:1292
32376 #, no-wrap
32377 msgid ""
32378 " guestfs_h *guestfs_create (void);\n"
32379 "\n"
32380 msgstr ""
32381
32382 #. type: textblock
32383 #: ../src/guestfs.pod:1294
32384 msgid "Create a connection handle."
32385 msgstr ""
32386
32387 #. type: textblock
32388 #: ../src/guestfs.pod:1296
32389 msgid ""
32390 "On success this returns a non-NULL pointer to a handle.  On error it returns "
32391 "NULL."
32392 msgstr ""
32393
32394 #. type: textblock
32395 #: ../src/guestfs.pod:1299
32396 msgid ""
32397 "You have to \"configure\" the handle after creating it.  This includes "
32398 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
32399 "handle at least once."
32400 msgstr ""
32401
32402 #. type: textblock
32403 #: ../src/guestfs.pod:1303
32404 msgid "After configuring the handle, you have to call L</guestfs_launch>."
32405 msgstr ""
32406
32407 #. type: textblock
32408 #: ../src/guestfs.pod:1305
32409 msgid ""
32410 "You may also want to configure error handling for the handle.  See the "
32411 "L</ERROR HANDLING> section below."
32412 msgstr ""
32413
32414 #. type: =head2
32415 #: ../src/guestfs.pod:1308
32416 msgid "guestfs_close"
32417 msgstr ""
32418
32419 #. type: verbatim
32420 #: ../src/guestfs.pod:1310
32421 #, no-wrap
32422 msgid ""
32423 " void guestfs_close (guestfs_h *g);\n"
32424 "\n"
32425 msgstr ""
32426
32427 #. type: textblock
32428 #: ../src/guestfs.pod:1312
32429 msgid "This closes the connection handle and frees up all resources used."
32430 msgstr ""
32431
32432 #. type: textblock
32433 #: ../src/guestfs.pod:1314
32434 msgid ""
32435 "If autosync was set on the handle and the handle was launched, then this "
32436 "implicitly calls various functions to unmount filesystems and sync the "
32437 "disk.  See L</guestfs_set_autosync> for more details."
32438 msgstr ""
32439
32440 #. type: textblock
32441 #: ../src/guestfs.pod:1318
32442 msgid "If a close callback was set on the handle, then it is called."
32443 msgstr ""
32444
32445 #. type: =head1
32446 #: ../src/guestfs.pod:1320
32447 msgid "ERROR HANDLING"
32448 msgstr ""
32449
32450 #. type: textblock
32451 #: ../src/guestfs.pod:1322
32452 msgid ""
32453 "API functions can return errors.  For example, almost all functions that "
32454 "return C<int> will return C<-1> to indicate an error."
32455 msgstr ""
32456
32457 #. type: textblock
32458 #: ../src/guestfs.pod:1325
32459 msgid ""
32460 "Additional information is available for errors: an error message string and "
32461 "optionally an error number (errno) if the thing that failed was a system "
32462 "call."
32463 msgstr ""
32464
32465 #. type: textblock
32466 #: ../src/guestfs.pod:1329
32467 msgid ""
32468 "You can get at the additional information about the last error on the handle "
32469 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
32470 "up an error handler with L</guestfs_set_error_handler>."
32471 msgstr ""
32472
32473 #. type: textblock
32474 #: ../src/guestfs.pod:1334
32475 msgid ""
32476 "When the handle is created, a default error handler is installed which "
32477 "prints the error message string to C<stderr>.  For small short-running "
32478 "command line programs it is sufficient to do:"
32479 msgstr ""
32480
32481 #. type: verbatim
32482 #: ../src/guestfs.pod:1338
32483 #, no-wrap
32484 msgid ""
32485 " if (guestfs_launch (g) == -1)\n"
32486 "   exit (EXIT_FAILURE);\n"
32487 "\n"
32488 msgstr ""
32489
32490 #. type: textblock
32491 #: ../src/guestfs.pod:1341
32492 msgid ""
32493 "since the default error handler will ensure that an error message has been "
32494 "printed to C<stderr> before the program exits."
32495 msgstr ""
32496
32497 #. type: textblock
32498 #: ../src/guestfs.pod:1344
32499 msgid ""
32500 "For other programs the caller will almost certainly want to install an "
32501 "alternate error handler or do error handling in-line like this:"
32502 msgstr ""
32503
32504 #. type: verbatim
32505 #: ../src/guestfs.pod:1347
32506 #, no-wrap
32507 msgid ""
32508 " /* This disables the default behaviour of printing errors\n"
32509 "    on stderr. */\n"
32510 " guestfs_set_error_handler (g, NULL, NULL);\n"
32511 " \n"
32512 msgstr ""
32513
32514 #. type: verbatim
32515 #: ../src/guestfs.pod:1351
32516 #, no-wrap
32517 msgid ""
32518 " if (guestfs_launch (g) == -1) {\n"
32519 "   /* Examine the error message and print it etc. */\n"
32520 "   char *msg = guestfs_last_error (g);\n"
32521 "   int errnum = guestfs_last_errno (g);\n"
32522 "   fprintf (stderr, \"%s\", msg);\n"
32523 "   if (errnum != 0)\n"
32524 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
32525 "   fprintf (stderr, \"\\n\");\n"
32526 "   /* ... */\n"
32527 " }\n"
32528 "\n"
32529 msgstr ""
32530
32531 #. type: textblock
32532 #: ../src/guestfs.pod:1362
32533 msgid ""
32534 "Out of memory errors are handled differently.  The default action is to call "
32535 "L<abort(3)>.  If this is undesirable, then you can set a handler using "
32536 "L</guestfs_set_out_of_memory_handler>."
32537 msgstr ""
32538
32539 #. type: textblock
32540 #: ../src/guestfs.pod:1366
32541 msgid ""
32542 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
32543 "because there is no handle if this happens there is no way to get additional "
32544 "error information.  However L</guestfs_create> is supposed to be a "
32545 "lightweight operation which can only fail because of insufficient memory (it "
32546 "returns NULL in this case)."
32547 msgstr ""
32548
32549 #. type: =head2
32550 #: ../src/guestfs.pod:1372
32551 msgid "guestfs_last_error"
32552 msgstr ""
32553
32554 #. type: verbatim
32555 #: ../src/guestfs.pod:1374
32556 #, no-wrap
32557 msgid ""
32558 " const char *guestfs_last_error (guestfs_h *g);\n"
32559 "\n"
32560 msgstr ""
32561
32562 #. type: textblock
32563 #: ../src/guestfs.pod:1376
32564 msgid ""
32565 "This returns the last error message that happened on C<g>.  If there has not "
32566 "been an error since the handle was created, then this returns C<NULL>."
32567 msgstr ""
32568
32569 #. type: textblock
32570 #: ../src/guestfs.pod:1380
32571 msgid ""
32572 "The lifetime of the returned string is until the next error occurs, or "
32573 "L</guestfs_close> is called."
32574 msgstr ""
32575
32576 #. type: =head2
32577 #: ../src/guestfs.pod:1383
32578 msgid "guestfs_last_errno"
32579 msgstr ""
32580
32581 #. type: verbatim
32582 #: ../src/guestfs.pod:1385
32583 #, no-wrap
32584 msgid ""
32585 " int guestfs_last_errno (guestfs_h *g);\n"
32586 "\n"
32587 msgstr ""
32588
32589 #. type: textblock
32590 #: ../src/guestfs.pod:1387
32591 msgid "This returns the last error number (errno) that happened on C<g>."
32592 msgstr ""
32593
32594 #. type: textblock
32595 #: ../src/guestfs.pod:1389
32596 msgid "If successful, an errno integer not equal to zero is returned."
32597 msgstr ""
32598
32599 #. type: textblock
32600 #: ../src/guestfs.pod:1391
32601 msgid "If no error, this returns 0.  This call can return 0 in three situations:"
32602 msgstr ""
32603
32604 #. type: textblock
32605 #: ../src/guestfs.pod:1398
32606 msgid "There has not been any error on the handle."
32607 msgstr ""
32608
32609 #. type: textblock
32610 #: ../src/guestfs.pod:1402
32611 msgid ""
32612 "There has been an error but the errno was meaningless.  This corresponds to "
32613 "the case where the error did not come from a failed system call, but for "
32614 "some other reason."
32615 msgstr ""
32616
32617 #. type: textblock
32618 #: ../src/guestfs.pod:1408
32619 msgid ""
32620 "There was an error from a failed system call, but for some reason the errno "
32621 "was not captured and returned.  This usually indicates a bug in libguestfs."
32622 msgstr ""
32623
32624 #. type: textblock
32625 #: ../src/guestfs.pod:1414
32626 msgid ""
32627 "Libguestfs tries to convert the errno from inside the applicance into a "
32628 "corresponding errno for the caller (not entirely trivial: the appliance "
32629 "might be running a completely different operating system from the library "
32630 "and error numbers are not standardized across Un*xen).  If this could not be "
32631 "done, then the error is translated to C<EINVAL>.  In practice this should "
32632 "only happen in very rare circumstances."
32633 msgstr ""
32634
32635 #. type: =head2
32636 #: ../src/guestfs.pod:1422
32637 msgid "guestfs_set_error_handler"
32638 msgstr ""
32639
32640 #. type: verbatim
32641 #: ../src/guestfs.pod:1424
32642 #, no-wrap
32643 msgid ""
32644 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
32645 "                                           void *opaque,\n"
32646 "                                           const char *msg);\n"
32647 " void guestfs_set_error_handler (guestfs_h *g,\n"
32648 "                                 guestfs_error_handler_cb cb,\n"
32649 "                                 void *opaque);\n"
32650 "\n"
32651 msgstr ""
32652
32653 #. type: textblock
32654 #: ../src/guestfs.pod:1431
32655 msgid ""
32656 "The callback C<cb> will be called if there is an error.  The parameters "
32657 "passed to the callback are an opaque data pointer and the error message "
32658 "string."
32659 msgstr ""
32660
32661 #. type: textblock
32662 #: ../src/guestfs.pod:1435
32663 msgid ""
32664 "C<errno> is not passed to the callback.  To get that the callback must call "
32665 "L</guestfs_last_errno>."
32666 msgstr ""
32667
32668 #. type: textblock
32669 #: ../src/guestfs.pod:1438
32670 msgid ""
32671 "Note that the message string C<msg> is freed as soon as the callback "
32672 "function returns, so if you want to stash it somewhere you must make your "
32673 "own copy."
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs.pod:1442
32678 msgid "The default handler prints messages on C<stderr>."
32679 msgstr ""
32680
32681 #. type: textblock
32682 #: ../src/guestfs.pod:1444
32683 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
32684 msgstr ""
32685
32686 #. type: =head2
32687 #: ../src/guestfs.pod:1446
32688 msgid "guestfs_get_error_handler"
32689 msgstr ""
32690
32691 #. type: verbatim
32692 #: ../src/guestfs.pod:1448
32693 #, no-wrap
32694 msgid ""
32695 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
32696 "                                                     void **opaque_rtn);\n"
32697 "\n"
32698 msgstr ""
32699
32700 #. type: textblock
32701 #: ../src/guestfs.pod:1451
32702 msgid "Returns the current error handler callback."
32703 msgstr ""
32704
32705 #. type: =head2
32706 #: ../src/guestfs.pod:1453
32707 msgid "guestfs_set_out_of_memory_handler"
32708 msgstr ""
32709
32710 #. type: verbatim
32711 #: ../src/guestfs.pod:1455
32712 #, no-wrap
32713 msgid ""
32714 " typedef void (*guestfs_abort_cb) (void);\n"
32715 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
32716 "                                         guestfs_abort_cb);\n"
32717 "\n"
32718 msgstr ""
32719
32720 #. type: textblock
32721 #: ../src/guestfs.pod:1459
32722 msgid ""
32723 "The callback C<cb> will be called if there is an out of memory situation.  "
32724 "I<Note this callback must not return>."
32725 msgstr ""
32726
32727 #. type: textblock
32728 #: ../src/guestfs.pod:1462
32729 msgid "The default is to call L<abort(3)>."
32730 msgstr ""
32731
32732 #. type: textblock
32733 #: ../src/guestfs.pod:1464
32734 msgid "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
32735 msgstr ""
32736
32737 #. type: =head2
32738 #: ../src/guestfs.pod:1467
32739 msgid "guestfs_get_out_of_memory_handler"
32740 msgstr ""
32741
32742 #. type: verbatim
32743 #: ../src/guestfs.pod:1469
32744 #, no-wrap
32745 msgid ""
32746 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
32747 "\n"
32748 msgstr ""
32749
32750 #. type: textblock
32751 #: ../src/guestfs.pod:1471
32752 msgid "This returns the current out of memory handler."
32753 msgstr ""
32754
32755 #. type: =head1
32756 #: ../src/guestfs.pod:1473
32757 msgid "API CALLS"
32758 msgstr ""
32759
32760 #. type: =head1
32761 #: ../src/guestfs.pod:1477
32762 msgid "STRUCTURES"
32763 msgstr ""
32764
32765 #. type: textblock
32766 #: ../src/guestfs.pod:1479
32767 msgid "@STRUCTS@"
32768 msgstr ""
32769
32770 #. type: =head1
32771 #: ../src/guestfs.pod:1481
32772 msgid "AVAILABILITY"
32773 msgstr ""
32774
32775 #. type: =head2
32776 #: ../src/guestfs.pod:1483
32777 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs.pod:1485
32782 msgid ""
32783 "Using L</guestfs_available> you can test availability of the following "
32784 "groups of functions.  This test queries the appliance to see if the "
32785 "appliance you are currently using supports the functionality."
32786 msgstr ""
32787
32788 #. type: textblock
32789 #: ../src/guestfs.pod:1490
32790 msgid "@AVAILABILITY@"
32791 msgstr ""
32792
32793 #. type: =head2
32794 #: ../src/guestfs.pod:1492
32795 msgid "GUESTFISH supported COMMAND"
32796 msgstr ""
32797
32798 #. type: textblock
32799 #: ../src/guestfs.pod:1494
32800 msgid ""
32801 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
32802 "prints out the available groups and whether they are supported by this build "
32803 "of libguestfs.  Note however that you have to do C<run> first."
32804 msgstr ""
32805
32806 #. type: =head2
32807 #: ../src/guestfs.pod:1499
32808 msgid "SINGLE CALLS AT COMPILE TIME"
32809 msgstr ""
32810
32811 #. type: textblock
32812 #: ../src/guestfs.pod:1501
32813 msgid ""
32814 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
32815 "function, such as:"
32816 msgstr ""
32817
32818 #. type: verbatim
32819 #: ../src/guestfs.pod:1504
32820 #, no-wrap
32821 msgid ""
32822 " #define LIBGUESTFS_HAVE_DD 1\n"
32823 "\n"
32824 msgstr ""
32825
32826 #. type: textblock
32827 #: ../src/guestfs.pod:1506
32828 msgid "if L</guestfs_dd> is available."
32829 msgstr ""
32830
32831 #. type: textblock
32832 #: ../src/guestfs.pod:1508
32833 msgid ""
32834 "Before version 1.5.8, if you needed to test whether a single libguestfs "
32835 "function is available at compile time, we recommended using build tools such "
32836 "as autoconf or cmake.  For example in autotools you could use:"
32837 msgstr ""
32838
32839 #. type: verbatim
32840 #: ../src/guestfs.pod:1513
32841 #, no-wrap
32842 msgid ""
32843 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
32844 " AC_CHECK_FUNCS([guestfs_dd])\n"
32845 "\n"
32846 msgstr ""
32847
32848 #. type: textblock
32849 #: ../src/guestfs.pod:1516
32850 msgid ""
32851 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
32852 "in your program."
32853 msgstr ""
32854
32855 #. type: =head2
32856 #: ../src/guestfs.pod:1519
32857 msgid "SINGLE CALLS AT RUN TIME"
32858 msgstr ""
32859
32860 #. type: textblock
32861 #: ../src/guestfs.pod:1521
32862 msgid ""
32863 "Testing at compile time doesn't guarantee that a function really exists in "
32864 "the library.  The reason is that you might be dynamically linked against a "
32865 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
32866 "This situation unfortunately results in a segmentation fault, which is a "
32867 "shortcoming of the C dynamic linking system itself."
32868 msgstr ""
32869
32870 #. type: textblock
32871 #: ../src/guestfs.pod:1528
32872 msgid ""
32873 "You can use L<dlopen(3)> to test if a function is available at run time, as "
32874 "in this example program (note that you still need the compile time check as "
32875 "well):"
32876 msgstr ""
32877
32878 #. type: verbatim
32879 #: ../src/guestfs.pod:1532
32880 #, no-wrap
32881 msgid ""
32882 " #include <stdio.h>\n"
32883 " #include <stdlib.h>\n"
32884 " #include <unistd.h>\n"
32885 " #include <dlfcn.h>\n"
32886 " #include <guestfs.h>\n"
32887 " \n"
32888 msgstr ""
32889
32890 #. type: verbatim
32891 #: ../src/guestfs.pod:1538
32892 #, no-wrap
32893 msgid ""
32894 " main ()\n"
32895 " {\n"
32896 " #ifdef LIBGUESTFS_HAVE_DD\n"
32897 "   void *dl;\n"
32898 "   int has_function;\n"
32899 " \n"
32900 msgstr ""
32901
32902 #. type: verbatim
32903 #: ../src/guestfs.pod:1544
32904 #, no-wrap
32905 msgid ""
32906 "   /* Test if the function guestfs_dd is really available. */\n"
32907 "   dl = dlopen (NULL, RTLD_LAZY);\n"
32908 "   if (!dl) {\n"
32909 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
32910 "     exit (EXIT_FAILURE);\n"
32911 "   }\n"
32912 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
32913 "   dlclose (dl);\n"
32914 " \n"
32915 msgstr ""
32916
32917 #. type: verbatim
32918 #: ../src/guestfs.pod:1553
32919 #, no-wrap
32920 msgid ""
32921 "   if (!has_function)\n"
32922 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
32923 "   else {\n"
32924 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
32925 "     /* Now it's safe to call\n"
32926 "     guestfs_dd (g, \"foo\", \"bar\");\n"
32927 "     */\n"
32928 "   }\n"
32929 " #else\n"
32930 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
32931 " #endif\n"
32932 "  }\n"
32933 "\n"
32934 msgstr ""
32935
32936 #. type: textblock
32937 #: ../src/guestfs.pod:1566
32938 msgid ""
32939 "You may think the above is an awful lot of hassle, and it is.  There are "
32940 "other ways outside of the C linking system to ensure that this kind of "
32941 "incompatibility never arises, such as using package versioning:"
32942 msgstr ""
32943
32944 #. type: verbatim
32945 #: ../src/guestfs.pod:1571
32946 #, no-wrap
32947 msgid ""
32948 " Requires: libguestfs >= 1.0.80\n"
32949 "\n"
32950 msgstr ""
32951
32952 #. type: =head1
32953 #: ../src/guestfs.pod:1573
32954 msgid "CALLS WITH OPTIONAL ARGUMENTS"
32955 msgstr ""
32956
32957 #. type: textblock
32958 #: ../src/guestfs.pod:1575
32959 msgid ""
32960 "A recent feature of the API is the introduction of calls which take optional "
32961 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
32962 "takes variable arguments (ie. C<...>), as in this example:"
32963 msgstr ""
32964
32965 #. type: verbatim
32966 #: ../src/guestfs.pod:1580
32967 #, no-wrap
32968 msgid ""
32969 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
32970 "\n"
32971 msgstr ""
32972
32973 #. type: textblock
32974 #: ../src/guestfs.pod:1582
32975 msgid ""
32976 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
32977 "call with no optional arguments specified:"
32978 msgstr ""
32979
32980 #. type: verbatim
32981 #: ../src/guestfs.pod:1585
32982 #, no-wrap
32983 msgid ""
32984 " guestfs_add_drive_opts (g, filename, -1);\n"
32985 "\n"
32986 msgstr ""
32987
32988 #. type: textblock
32989 #: ../src/guestfs.pod:1587
32990 msgid "With a single optional argument:"
32991 msgstr ""
32992
32993 #. type: verbatim
32994 #: ../src/guestfs.pod:1589
32995 #, no-wrap
32996 msgid ""
32997 " guestfs_add_drive_opts (g, filename,\n"
32998 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
32999 "                         -1);\n"
33000 "\n"
33001 msgstr ""
33002
33003 #. type: textblock
33004 #: ../src/guestfs.pod:1593
33005 msgid "With two:"
33006 msgstr ""
33007
33008 #. type: verbatim
33009 #: ../src/guestfs.pod:1595
33010 #, no-wrap
33011 msgid ""
33012 " guestfs_add_drive_opts (g, filename,\n"
33013 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
33014 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33015 "                         -1);\n"
33016 "\n"
33017 msgstr ""
33018
33019 #. type: textblock
33020 #: ../src/guestfs.pod:1600
33021 msgid ""
33022 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
33023 "happen!"
33024 msgstr ""
33025
33026 #. type: =head2
33027 #: ../src/guestfs.pod:1603
33028 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
33029 msgstr ""
33030
33031 #. type: textblock
33032 #: ../src/guestfs.pod:1605
33033 msgid ""
33034 "The second variant has the same name with the suffix C<_va>, which works the "
33035 "same way but takes a C<va_list>.  See the C manual for details.  For the "
33036 "example function, this is declared:"
33037 msgstr ""
33038
33039 #. type: verbatim
33040 #: ../src/guestfs.pod:1609
33041 #, no-wrap
33042 msgid ""
33043 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
33044 "                                va_list args);\n"
33045 "\n"
33046 msgstr ""
33047
33048 #. type: =head2
33049 #: ../src/guestfs.pod:1612
33050 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
33051 msgstr ""
33052
33053 #. type: textblock
33054 #: ../src/guestfs.pod:1614
33055 msgid ""
33056 "The third variant is useful where you need to construct these calls.  You "
33057 "pass in a structure where you fill in the optional fields.  The structure "
33058 "has a bitmask as the first element which you must set to indicate which "
33059 "fields you have filled in.  For our example function the structure and call "
33060 "are declared:"
33061 msgstr ""
33062
33063 #. type: verbatim
33064 #: ../src/guestfs.pod:1620
33065 #, no-wrap
33066 msgid ""
33067 " struct guestfs_add_drive_opts_argv {\n"
33068 "   uint64_t bitmask;\n"
33069 "   int readonly;\n"
33070 "   const char *format;\n"
33071 "   /* ... */\n"
33072 " };\n"
33073 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
33074 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
33075 "\n"
33076 msgstr ""
33077
33078 #. type: textblock
33079 #: ../src/guestfs.pod:1629
33080 msgid "You could call it like this:"
33081 msgstr ""
33082
33083 #. type: verbatim
33084 #: ../src/guestfs.pod:1631
33085 #, no-wrap
33086 msgid ""
33087 " struct guestfs_add_drive_opts_argv optargs = {\n"
33088 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
33089 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
33090 "   .readonly = 1,\n"
33091 "   .format = \"qcow2\"\n"
33092 " };\n"
33093 " \n"
33094 msgstr ""
33095
33096 #. type: verbatim
33097 #: ../src/guestfs.pod:1638
33098 #, no-wrap
33099 msgid ""
33100 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
33101 "\n"
33102 msgstr ""
33103
33104 #. type: textblock
33105 #: ../src/guestfs.pod:1646
33106 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
33107 msgstr ""
33108
33109 #. type: textblock
33110 #: ../src/guestfs.pod:1651
33111 msgid "You do not need to fill in all fields of the structure."
33112 msgstr ""
33113
33114 #. type: textblock
33115 #: ../src/guestfs.pod:1655
33116 msgid ""
33117 "There must be a one-to-one correspondence between fields of the structure "
33118 "that are filled in, and bits set in the bitmask."
33119 msgstr ""
33120
33121 #. type: =head2
33122 #: ../src/guestfs.pod:1660
33123 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
33124 msgstr ""
33125
33126 #. type: textblock
33127 #: ../src/guestfs.pod:1662
33128 msgid ""
33129 "In other languages, optional arguments are expressed in the way that is "
33130 "natural for that language.  We refer you to the language-specific "
33131 "documentation for more details on that."
33132 msgstr ""
33133
33134 #. type: textblock
33135 #: ../src/guestfs.pod:1666
33136 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
33137 msgstr ""
33138
33139 #. type: =head2
33140 #: ../src/guestfs.pod:1668
33141 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
33142 msgstr ""
33143
33144 #. type: textblock
33145 #: ../src/guestfs.pod:1670
33146 msgid ""
33147 "B<Note:> This section documents the generic event mechanism introduced in "
33148 "libguestfs 1.10, which you should use in new code if possible.  The old "
33149 "functions C<guestfs_set_log_message_callback>, "
33150 "C<guestfs_set_subprocess_quit_callback>, "
33151 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
33152 "C<guestfs_set_progress_callback> are no longer documented in this manual "
33153 "page.  Because of the ABI guarantee, the old functions continue to work."
33154 msgstr ""
33155
33156 #. type: textblock
33157 #: ../src/guestfs.pod:1679
33158 msgid ""
33159 "Handles generate events when certain things happen, such as log messages "
33160 "being generated, progress messages during long-running operations, or the "
33161 "handle being closed.  The API calls described below let you register a "
33162 "callback to be called when events happen.  You can register multiple "
33163 "callbacks (for the same, different or overlapping sets of events), and "
33164 "individually remove callbacks.  If callbacks are not removed, then they "
33165 "remain in force until the handle is closed."
33166 msgstr ""
33167
33168 #. type: textblock
33169 #: ../src/guestfs.pod:1687
33170 msgid ""
33171 "In the current implementation, events are only generated synchronously: that "
33172 "means that events (and hence callbacks) can only happen while you are in the "
33173 "middle of making another libguestfs call.  The callback is called in the "
33174 "same thread."
33175 msgstr ""
33176
33177 #. type: textblock
33178 #: ../src/guestfs.pod:1692
33179 msgid ""
33180 "Events may contain a payload, usually nothing (void), an array of 64 bit "
33181 "unsigned integers, or a message buffer.  Payloads are discussed later on."
33182 msgstr ""
33183
33184 #. type: =head3
33185 #: ../src/guestfs.pod:1696
33186 msgid "CLASSES OF EVENTS"
33187 msgstr ""
33188
33189 #. type: =item
33190 #: ../src/guestfs.pod:1700
33191 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
33192 msgstr ""
33193
33194 #. type: textblock
33195 #: ../src/guestfs.pod:1703
33196 msgid ""
33197 "The callback function will be called while the handle is being closed "
33198 "(synchronously from L</guestfs_close>)."
33199 msgstr ""
33200
33201 #. type: textblock
33202 #: ../src/guestfs.pod:1706
33203 msgid ""
33204 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
33205 "handles that are open when the program exits.  This means that this callback "
33206 "might be called indirectly from L<exit(3)>, which can cause unexpected "
33207 "problems in higher-level languages (eg. if your HLL interpreter has already "
33208 "been cleaned up by the time this is called, and if your callback then jumps "
33209 "into some HLL function)."
33210 msgstr ""
33211
33212 #. type: textblock
33213 #: ../src/guestfs.pod:1713
33214 msgid ""
33215 "If no callback is registered: the handle is closed without any callback "
33216 "being invoked."
33217 msgstr ""
33218
33219 #. type: =item
33220 #: ../src/guestfs.pod:1716
33221 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
33222 msgstr ""
33223
33224 #. type: textblock
33225 #: ../src/guestfs.pod:1719
33226 msgid ""
33227 "The callback function will be called when the child process quits, either "
33228 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
33229 "corresponds to a transition from any state to the CONFIG state)."
33230 msgstr ""
33231
33232 #. type: textblock
33233 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732
33234 msgid "If no callback is registered: the event is ignored."
33235 msgstr ""
33236
33237 #. type: =item
33238 #: ../src/guestfs.pod:1725
33239 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
33240 msgstr ""
33241
33242 #. type: textblock
33243 #: ../src/guestfs.pod:1728
33244 msgid ""
33245 "The callback function will be called when the child process becomes ready "
33246 "first time after it has been launched.  (This corresponds to a transition "
33247 "from LAUNCHING to the READY state)."
33248 msgstr ""
33249
33250 #. type: =item
33251 #: ../src/guestfs.pod:1734
33252 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
33253 msgstr ""
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:1737
33257 msgid ""
33258 "Some long-running operations can generate progress messages.  If this "
33259 "callback is registered, then it will be called each time a progress message "
33260 "is generated (usually two seconds after the operation started, and three "
33261 "times per second thereafter until it completes, although the frequency may "
33262 "change in future versions)."
33263 msgstr ""
33264
33265 #. type: textblock
33266 #: ../src/guestfs.pod:1743
33267 msgid ""
33268 "The callback receives in the payload four unsigned 64 bit numbers which are "
33269 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
33270 msgstr ""
33271
33272 #. type: textblock
33273 #: ../src/guestfs.pod:1746
33274 msgid ""
33275 "The units of C<total> are not defined, although for some operations C<total> "
33276 "may relate in some way to the amount of data to be transferred (eg. in bytes "
33277 "or megabytes), and C<position> may be the portion which has been "
33278 "transferred."
33279 msgstr ""
33280
33281 #. type: textblock
33282 #: ../src/guestfs.pod:1751
33283 msgid "The only defined and stable parts of the API are:"
33284 msgstr ""
33285
33286 #. type: textblock
33287 #: ../src/guestfs.pod:1757
33288 msgid ""
33289 "The callback can display to the user some type of progress bar or indicator "
33290 "which shows the ratio of C<position>:C<total>."
33291 msgstr ""
33292
33293 #. type: textblock
33294 #: ../src/guestfs.pod:1762
33295 msgid "0 E<lt>= C<position> E<lt>= C<total>"
33296 msgstr ""
33297
33298 #. type: textblock
33299 #: ../src/guestfs.pod:1766
33300 msgid ""
33301 "If any progress notification is sent during a call, then a final progress "
33302 "notification is always sent when C<position> = C<total> (I<unless> the call "
33303 "fails with an error)."
33304 msgstr ""
33305
33306 #. type: textblock
33307 #: ../src/guestfs.pod:1770
33308 msgid ""
33309 "This is to simplify caller code, so callers can easily set the progress "
33310 "indicator to \"100%\" at the end of the operation, without requiring special "
33311 "code to detect this case."
33312 msgstr ""
33313
33314 #. type: textblock
33315 #: ../src/guestfs.pod:1776
33316 msgid ""
33317 "For some calls we are unable to estimate the progress of the call, but we "
33318 "can still generate progress messages to indicate activity.  This is known as "
33319 "\"pulse mode\", and is directly supported by certain progress bar "
33320 "implementations (eg. GtkProgressBar)."
33321 msgstr ""
33322
33323 #. type: textblock
33324 #: ../src/guestfs.pod:1781
33325 msgid ""
33326 "For these calls, zero or more progress messages are generated with "
33327 "C<position = 0> and C<total = 1>, followed by a final message with "
33328 "C<position = total = 1>."
33329 msgstr ""
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:1785
33333 msgid ""
33334 "As noted above, if the call fails with an error then the final message may "
33335 "not be generated."
33336 msgstr ""
33337
33338 #. type: textblock
33339 #: ../src/guestfs.pod:1790
33340 msgid ""
33341 "The callback also receives the procedure number (C<proc_nr>) and serial "
33342 "number (C<serial>) of the call.  These are only useful for debugging "
33343 "protocol issues, and the callback can normally ignore them.  The callback "
33344 "may want to print these numbers in error messages or debugging messages."
33345 msgstr ""
33346
33347 #. type: textblock
33348 #: ../src/guestfs.pod:1796
33349 msgid "If no callback is registered: progress messages are discarded."
33350 msgstr ""
33351
33352 #. type: =item
33353 #: ../src/guestfs.pod:1798
33354 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
33355 msgstr ""
33356
33357 #. type: textblock
33358 #: ../src/guestfs.pod:1801
33359 msgid ""
33360 "The callback function is called whenever a log message is generated by qemu, "
33361 "the appliance kernel, guestfsd (daemon), or utility programs."
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs.pod:1804
33366 msgid ""
33367 "If the verbose flag (L</guestfs_set_verbose>) is set before launch "
33368 "(L</guestfs_launch>) then additional debug messages are generated."
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
33373 msgid ""
33374 "If no callback is registered: the messages are discarded unless the verbose "
33375 "flag is set in which case they are sent to stderr.  You can override the "
33376 "printing of verbose messages to stderr by setting up a callback."
33377 msgstr ""
33378
33379 #. type: =item
33380 #: ../src/guestfs.pod:1812
33381 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
33382 msgstr ""
33383
33384 #. type: textblock
33385 #: ../src/guestfs.pod:1815
33386 msgid ""
33387 "The callback function is called whenever a log message is generated by the "
33388 "library part of libguestfs."
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../src/guestfs.pod:1818
33393 msgid ""
33394 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
33395 "messages are generated."
33396 msgstr ""
33397
33398 #. type: =item
33399 #: ../src/guestfs.pod:1826
33400 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
33401 msgstr ""
33402
33403 #. type: textblock
33404 #: ../src/guestfs.pod:1829
33405 msgid ""
33406 "The callback function is called whenever a trace message is generated.  This "
33407 "only applies if the trace flag (L</guestfs_set_trace>) is set."
33408 msgstr ""
33409
33410 #. type: textblock
33411 #: ../src/guestfs.pod:1832
33412 msgid ""
33413 "If no callback is registered: the messages are sent to stderr.  You can "
33414 "override the printing of trace messages to stderr by setting up a callback."
33415 msgstr ""
33416
33417 #. type: =head3
33418 #: ../src/guestfs.pod:1838
33419 msgid "guestfs_set_event_callback"
33420 msgstr ""
33421
33422 #. type: verbatim
33423 #: ../src/guestfs.pod:1840
33424 #, no-wrap
33425 msgid ""
33426 " int guestfs_set_event_callback (guestfs_h *g,\n"
33427 "                                 guestfs_event_callback cb,\n"
33428 "                                 uint64_t event_bitmask,\n"
33429 "                                 int flags,\n"
33430 "                                 void *opaque);\n"
33431 "\n"
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs.pod:1846
33436 msgid ""
33437 "This function registers a callback (C<cb>) for all event classes in the "
33438 "C<event_bitmask>."
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs.pod:1849
33443 msgid ""
33444 "For example, to register for all log message events, you could call this "
33445 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
33446 "To register a single callback for all possible classes of events, use "
33447 "C<GUESTFS_EVENT_ALL>."
33448 msgstr ""
33449
33450 #. type: textblock
33451 #: ../src/guestfs.pod:1855
33452 msgid "C<flags> should always be passed as 0."
33453 msgstr ""
33454
33455 #. type: textblock
33456 #: ../src/guestfs.pod:1857
33457 msgid ""
33458 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
33459 "it for any purpose."
33460 msgstr ""
33461
33462 #. type: textblock
33463 #: ../src/guestfs.pod:1860
33464 msgid ""
33465 "The return value is the event handle (an integer) which you can use to "
33466 "delete the callback (see below)."
33467 msgstr ""
33468
33469 #. type: textblock
33470 #: ../src/guestfs.pod:1863
33471 msgid ""
33472 "If there is an error, this function returns C<-1>, and sets the error in the "
33473 "handle in the usual way (see L</guestfs_last_error> etc.)"
33474 msgstr ""
33475
33476 #. type: textblock
33477 #: ../src/guestfs.pod:1866
33478 msgid ""
33479 "Callbacks remain in effect until they are deleted, or until the handle is "
33480 "closed."
33481 msgstr ""
33482
33483 #. type: textblock
33484 #: ../src/guestfs.pod:1869
33485 msgid ""
33486 "In the case where multiple callbacks are registered for a particular event "
33487 "class, all of the callbacks are called.  The order in which multiple "
33488 "callbacks are called is not defined."
33489 msgstr ""
33490
33491 #. type: =head3
33492 #: ../src/guestfs.pod:1873
33493 msgid "guestfs_delete_event_callback"
33494 msgstr ""
33495
33496 #. type: verbatim
33497 #: ../src/guestfs.pod:1875
33498 #, no-wrap
33499 msgid ""
33500 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
33501 "\n"
33502 msgstr ""
33503
33504 #. type: textblock
33505 #: ../src/guestfs.pod:1877
33506 msgid ""
33507 "Delete a callback that was previously registered.  C<event_handle> should be "
33508 "the integer that was returned by a previous call to "
33509 "C<guestfs_set_event_callback> on the same handle."
33510 msgstr ""
33511
33512 #. type: =head3
33513 #: ../src/guestfs.pod:1881
33514 msgid "guestfs_event_callback"
33515 msgstr ""
33516
33517 #. type: verbatim
33518 #: ../src/guestfs.pod:1883
33519 #, no-wrap
33520 msgid ""
33521 " typedef void (*guestfs_event_callback) (\n"
33522 "                  guestfs_h *g,\n"
33523 "                  void *opaque,\n"
33524 "                  uint64_t event,\n"
33525 "                  int event_handle,\n"
33526 "                  int flags,\n"
33527 "                  const char *buf, size_t buf_len,\n"
33528 "                  const uint64_t *array, size_t array_len);\n"
33529 "\n"
33530 msgstr ""
33531
33532 #. type: textblock
33533 #: ../src/guestfs.pod:1892
33534 msgid "This is the type of the event callback function that you have to provide."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:1895
33539 msgid ""
33540 "The basic parameters are: the handle (C<g>), the opaque user pointer "
33541 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
33542 "handle, and C<flags> which in the current API you should ignore."
33543 msgstr ""
33544
33545 #. type: textblock
33546 #: ../src/guestfs.pod:1899
33547 msgid ""
33548 "The remaining parameters contain the event payload (if any).  Each event may "
33549 "contain a payload, which usually relates to the event class, but for future "
33550 "proofing your code should be written to handle any payload for any event "
33551 "class."
33552 msgstr ""
33553
33554 #. type: textblock
33555 #: ../src/guestfs.pod:1904
33556 msgid ""
33557 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
33558 "there is no message buffer).  Note that this message buffer can contain "
33559 "arbitrary 8 bit data, including NUL bytes."
33560 msgstr ""
33561
33562 #. type: textblock
33563 #: ../src/guestfs.pod:1908
33564 msgid ""
33565 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
33566 "moment this is only used for progress messages."
33567 msgstr ""
33568
33569 #. type: =head3
33570 #: ../src/guestfs.pod:1911
33571 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
33572 msgstr ""
33573
33574 #. type: textblock
33575 #: ../src/guestfs.pod:1913
33576 msgid ""
33577 "One motivation for the generic event API was to allow GUI programs to "
33578 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
33579 "unconditionally to C<stderr>."
33580 msgstr ""
33581
33582 #. type: textblock
33583 #: ../src/guestfs.pod:1917
33584 msgid ""
33585 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
33586 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
33587 "messages are not events; you must capture error messages separately)."
33588 msgstr ""
33589
33590 #. type: textblock
33591 #: ../src/guestfs.pod:1922
33592 msgid ""
33593 "Programs have to set up a callback to capture the classes of events of "
33594 "interest:"
33595 msgstr ""
33596
33597 #. type: verbatim
33598 #: ../src/guestfs.pod:1925
33599 #, no-wrap
33600 msgid ""
33601 " int eh =\n"
33602 "   guestfs_set_event_callback\n"
33603 "     (g, message_callback,\n"
33604 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
33605 "      GUESTFS_EVENT_TRACE,\n"
33606 "      0, NULL) == -1)\n"
33607 " if (eh == -1) {\n"
33608 "   // handle error in the usual way\n"
33609 " }\n"
33610 "\n"
33611 msgstr ""
33612
33613 #. type: textblock
33614 #: ../src/guestfs.pod:1935
33615 msgid ""
33616 "The callback can then direct messages to the appropriate place.  In this "
33617 "example, messages are directed to syslog:"
33618 msgstr ""
33619
33620 #. type: verbatim
33621 #: ../src/guestfs.pod:1938
33622 #, no-wrap
33623 msgid ""
33624 " static void\n"
33625 " message_callback (\n"
33626 "         guestfs_h *g,\n"
33627 "         void *opaque,\n"
33628 "         uint64_t event,\n"
33629 "         int event_handle,\n"
33630 "         int flags,\n"
33631 "         const char *buf, size_t buf_len,\n"
33632 "         const uint64_t *array, size_t array_len)\n"
33633 " {\n"
33634 "   const int priority = LOG_USER|LOG_INFO;\n"
33635 "   if (buf_len > 0)\n"
33636 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
33637 " }\n"
33638 "\n"
33639 msgstr ""
33640
33641 #. type: =head1
33642 #: ../src/guestfs.pod:1953
33643 msgid "CANCELLING LONG TRANSFERS"
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs.pod:1955
33648 msgid ""
33649 "Some operations can be cancelled by the caller while they are in progress.  "
33650 "Currently only operations that involve uploading or downloading data can be "
33651 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
33652 "parameters in the generator)."
33653 msgstr ""
33654
33655 #. type: =head2
33656 #: ../src/guestfs.pod:1960
33657 msgid "guestfs_user_cancel"
33658 msgstr ""
33659
33660 #. type: verbatim
33661 #: ../src/guestfs.pod:1962
33662 #, no-wrap
33663 msgid ""
33664 " void guestfs_user_cancel (guestfs_h *g);\n"
33665 "\n"
33666 msgstr ""
33667
33668 #. type: textblock
33669 #: ../src/guestfs.pod:1964
33670 msgid "C<guestfs_user_cancel> cancels the current upload or download operation."
33671 msgstr ""
33672
33673 #. type: textblock
33674 #: ../src/guestfs.pod:1967
33675 msgid ""
33676 "Unlike most other libguestfs calls, this function is signal safe and thread "
33677 "safe.  You can call it from a signal handler or from another thread, without "
33678 "needing to do any locking."
33679 msgstr ""
33680
33681 #. type: textblock
33682 #: ../src/guestfs.pod:1971
33683 msgid ""
33684 "The transfer that was in progress (if there is one) will stop shortly "
33685 "afterwards, and will return an error.  The errno (see "
33686 "L</guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
33687 "out if the operation was cancelled or failed because of another error."
33688 msgstr ""
33689
33690 #. type: textblock
33691 #: ../src/guestfs.pod:1977
33692 msgid ""
33693 "No cleanup is performed: for example, if a file was being uploaded then "
33694 "after cancellation there may be a partially uploaded file.  It is the "
33695 "caller's responsibility to clean up if necessary."
33696 msgstr ""
33697
33698 #. type: textblock
33699 #: ../src/guestfs.pod:1981
33700 msgid "There are two common places that you might call C<guestfs_user_cancel>."
33701 msgstr ""
33702
33703 #. type: textblock
33704 #: ../src/guestfs.pod:1983
33705 msgid ""
33706 "In an interactive text-based program, you might call it from a C<SIGINT> "
33707 "signal handler so that pressing C<^C> cancels the current operation.  (You "
33708 "also need to call L</guestfs_set_pgroup> so that child processes don't "
33709 "receive the C<^C> signal)."
33710 msgstr ""
33711
33712 #. type: textblock
33713 #: ../src/guestfs.pod:1988
33714 msgid ""
33715 "In a graphical program, when the main thread is displaying a progress bar "
33716 "with a cancel button, wire up the cancel button to call this function."
33717 msgstr ""
33718
33719 #. type: =head1
33720 #: ../src/guestfs.pod:1992
33721 msgid "PRIVATE DATA AREA"
33722 msgstr ""
33723
33724 #. type: textblock
33725 #: ../src/guestfs.pod:1994
33726 msgid ""
33727 "You can attach named pieces of private data to the libguestfs handle, fetch "
33728 "them by name, and walk over them, for the lifetime of the handle.  This is "
33729 "called the private data area and is only available from the C API."
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:1999
33734 msgid "To attach a named piece of data, use the following call:"
33735 msgstr ""
33736
33737 #. type: verbatim
33738 #: ../src/guestfs.pod:2001
33739 #, no-wrap
33740 msgid ""
33741 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
33742 "\n"
33743 msgstr ""
33744
33745 #. type: textblock
33746 #: ../src/guestfs.pod:2003
33747 msgid ""
33748 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
33749 "pointer (which can be C<NULL>).  Any previous item with the same key is "
33750 "overwritten."
33751 msgstr ""
33752
33753 #. type: textblock
33754 #: ../src/guestfs.pod:2007
33755 msgid ""
33756 "You can use any C<key> you want, but your key should I<not> start with an "
33757 "underscore character.  Keys beginning with an underscore character are "
33758 "reserved for internal libguestfs purposes (eg. for implementing language "
33759 "bindings).  It is recommended that you prefix the key with some unique "
33760 "string to avoid collisions with other users."
33761 msgstr ""
33762
33763 #. type: textblock
33764 #: ../src/guestfs.pod:2013
33765 msgid "To retrieve the pointer, use:"
33766 msgstr ""
33767
33768 #. type: verbatim
33769 #: ../src/guestfs.pod:2015
33770 #, no-wrap
33771 msgid ""
33772 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
33773 "\n"
33774 msgstr ""
33775
33776 #. type: textblock
33777 #: ../src/guestfs.pod:2017
33778 msgid ""
33779 "This function returns C<NULL> if either no data is found associated with "
33780 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
33781 "C<NULL>."
33782 msgstr ""
33783
33784 #. type: textblock
33785 #: ../src/guestfs.pod:2021
33786 msgid ""
33787 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
33788 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
33789 "all.  In particular, libguestfs does I<not> try to free the data when the "
33790 "handle is closed.  If the data must be freed, then the caller must either "
33791 "free it before calling L</guestfs_close> or must set up a close callback to "
33792 "do it (see L</GUESTFS_EVENT_CLOSE>)."
33793 msgstr ""
33794
33795 #. type: textblock
33796 #: ../src/guestfs.pod:2028
33797 msgid "To walk over all entries, use these two functions:"
33798 msgstr ""
33799
33800 #. type: verbatim
33801 #: ../src/guestfs.pod:2030
33802 #, no-wrap
33803 msgid ""
33804 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
33805 "\n"
33806 msgstr ""
33807
33808 #. type: verbatim
33809 #: ../src/guestfs.pod:2032
33810 #, no-wrap
33811 msgid ""
33812 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
33813 "\n"
33814 msgstr ""
33815
33816 #. type: textblock
33817 #: ../src/guestfs.pod:2034
33818 msgid ""
33819 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
33820 "not have any particular meaning -- keys are not returned in any defined "
33821 "order).  A pointer to the key is returned in C<*key_rtn> and the "
33822 "corresponding data pointer is returned from the function.  C<NULL> is "
33823 "returned if there are no keys stored in the handle."
33824 msgstr ""
33825
33826 #. type: textblock
33827 #: ../src/guestfs.pod:2040
33828 msgid ""
33829 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
33830 "value of this function is also C<NULL> is there are no further entries to "
33831 "return."
33832 msgstr ""
33833
33834 #. type: textblock
33835 #: ../src/guestfs.pod:2044
33836 msgid "Notes about walking over entries:"
33837 msgstr ""
33838
33839 #. type: textblock
33840 #: ../src/guestfs.pod:2050
33841 msgid "You must not call C<guestfs_set_private> while walking over the entries."
33842 msgstr ""
33843
33844 #. type: textblock
33845 #: ../src/guestfs.pod:2055
33846 msgid ""
33847 "The handle maintains an internal iterator which is reset when you call "
33848 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
33849 "call C<guestfs_set_private>."
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs.pod:2061
33854 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
33855 msgstr ""
33856
33857 #. type: verbatim
33858 #: ../src/guestfs.pod:2063
33859 #, no-wrap
33860 msgid ""
33861 " guestfs_set_private (g, key, NULL);\n"
33862 "\n"
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:2065
33867 msgid "then that C<key> is not returned when walking."
33868 msgstr ""
33869
33870 #. type: textblock
33871 #: ../src/guestfs.pod:2069
33872 msgid ""
33873 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
33874 "C<guestfs_next_private> or C<guestfs_set_private>."
33875 msgstr ""
33876
33877 #. type: textblock
33878 #: ../src/guestfs.pod:2075
33879 msgid ""
33880 "The following example code shows how to print all keys and data pointers "
33881 "that are associated with the handle C<g>:"
33882 msgstr ""
33883
33884 #. type: verbatim
33885 #: ../src/guestfs.pod:2078
33886 #, no-wrap
33887 msgid ""
33888 " const char *key;\n"
33889 " void *data = guestfs_first_private (g, &key);\n"
33890 " while (data != NULL)\n"
33891 "   {\n"
33892 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
33893 "     data = guestfs_next_private (g, &key);\n"
33894 "   }\n"
33895 "\n"
33896 msgstr ""
33897
33898 #. type: textblock
33899 #: ../src/guestfs.pod:2086
33900 msgid ""
33901 "More commonly you are only interested in keys that begin with an "
33902 "application-specific prefix C<foo_>.  Modify the loop like so:"
33903 msgstr ""
33904
33905 #. type: verbatim
33906 #: ../src/guestfs.pod:2089
33907 #, no-wrap
33908 msgid ""
33909 " const char *key;\n"
33910 " void *data = guestfs_first_private (g, &key);\n"
33911 " while (data != NULL)\n"
33912 "   {\n"
33913 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33914 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
33915 "     data = guestfs_next_private (g, &key);\n"
33916 "   }\n"
33917 "\n"
33918 msgstr ""
33919
33920 #. type: textblock
33921 #: ../src/guestfs.pod:2098
33922 msgid ""
33923 "If you need to modify keys while walking, then you have to jump back to the "
33924 "beginning of the loop.  For example, to delete all keys prefixed with "
33925 "C<foo_>:"
33926 msgstr ""
33927
33928 #. type: verbatim
33929 #: ../src/guestfs.pod:2102
33930 #, no-wrap
33931 msgid ""
33932 "  const char *key;\n"
33933 "  void *data;\n"
33934 " again:\n"
33935 "  data = guestfs_first_private (g, &key);\n"
33936 "  while (data != NULL)\n"
33937 "    {\n"
33938 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
33939 "        {\n"
33940 "          guestfs_set_private (g, key, NULL);\n"
33941 "          /* note that 'key' pointer is now invalid, and so is\n"
33942 "             the internal iterator */\n"
33943 "          goto again;\n"
33944 "        }\n"
33945 "      data = guestfs_next_private (g, &key);\n"
33946 "    }\n"
33947 "\n"
33948 msgstr ""
33949
33950 #. type: textblock
33951 #: ../src/guestfs.pod:2118
33952 msgid ""
33953 "Note that the above loop is guaranteed to terminate because the keys are "
33954 "being deleted, but other manipulations of keys within the loop might not "
33955 "terminate unless you also maintain an indication of which keys have been "
33956 "visited."
33957 msgstr ""
33958
33959 #. type: =end
33960 #: ../src/guestfs.pod:2123 ../src/guestfs.pod:2128
33961 msgid "html"
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs.pod:2125
33966 msgid ""
33967 "<!-- old anchor for the next section --> <a "
33968 "name=\"state_machine_and_low_level_event_api\"/>"
33969 msgstr ""
33970
33971 #. type: =head1
33972 #: ../src/guestfs.pod:2130
33973 msgid "ARCHITECTURE"
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:2132
33978 msgid ""
33979 "Internally, libguestfs is implemented by running an appliance (a special "
33980 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
33981 "process of the main program."
33982 msgstr ""
33983
33984 #. type: verbatim
33985 #: ../src/guestfs.pod:2136
33986 #, no-wrap
33987 msgid ""
33988 "  ___________________\n"
33989 " /                   \\\n"
33990 " | main program      |\n"
33991 " |                   |\n"
33992 " |                   |           child process / appliance\n"
33993 " |                   |           __________________________\n"
33994 " |                   |          / qemu                     \\\n"
33995 " +-------------------+   RPC    |      +-----------------+ |\n"
33996 " | libguestfs     <--------------------> guestfsd        | |\n"
33997 " |                   |          |      +-----------------+ |\n"
33998 " \\___________________/          |      | Linux kernel    | |\n"
33999 "                                |      +--^--------------+ |\n"
34000 "                                \\_________|________________/\n"
34001 "                                          |\n"
34002 "                                   _______v______\n"
34003 "                                  /              \\\n"
34004 "                                  | Device or    |\n"
34005 "                                  | disk image   |\n"
34006 "                                  \\______________/\n"
34007 "\n"
34008 msgstr ""
34009
34010 #. type: textblock
34011 #: ../src/guestfs.pod:2156
34012 msgid ""
34013 "The library, linked to the main program, creates the child process and hence "
34014 "the appliance in the L</guestfs_launch> function."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:2159
34019 msgid ""
34020 "Inside the appliance is a Linux kernel and a complete stack of userspace "
34021 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
34022 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
34023 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
34024 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
34025 "attached to the qemu process which translates device access by the "
34026 "appliance's Linux kernel into accesses to the image."
34027 msgstr ""
34028
34029 #. type: textblock
34030 #: ../src/guestfs.pod:2168
34031 msgid ""
34032 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
34033 "Although the disk image you are attached to might also be used by some "
34034 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
34035 "care if both libguestfs's qemu process and your virtual machine are trying "
34036 "to update the disk image at the same time, since these usually results in "
34037 "massive disk corruption)."
34038 msgstr ""
34039
34040 #. type: =head1
34041 #: ../src/guestfs.pod:2175
34042 msgid "STATE MACHINE"
34043 msgstr ""
34044
34045 #. type: textblock
34046 #: ../src/guestfs.pod:2177
34047 msgid "libguestfs uses a state machine to model the child process:"
34048 msgstr ""
34049
34050 #. type: verbatim
34051 #: ../src/guestfs.pod:2179
34052 #, no-wrap
34053 msgid ""
34054 "                         |\n"
34055 "                    guestfs_create\n"
34056 "                         |\n"
34057 "                         |\n"
34058 "                     ____V_____\n"
34059 "                    /          \\\n"
34060 "                    |  CONFIG  |\n"
34061 "                    \\__________/\n"
34062 "                     ^ ^   ^  \\\n"
34063 "                    /  |    \\  \\ guestfs_launch\n"
34064 "                   /   |    _\\__V______\n"
34065 "                  /    |   /           \\\n"
34066 "                 /     |   | LAUNCHING |\n"
34067 "                /      |   \\___________/\n"
34068 "               /       |       /\n"
34069 "              /        |  guestfs_launch\n"
34070 "             /         |     /\n"
34071 "    ______  /        __|____V\n"
34072 "   /      \\ ------> /        \\\n"
34073 "   | BUSY |         | READY  |\n"
34074 "   \\______/ <------ \\________/\n"
34075 "\n"
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs.pod:2201
34080 msgid ""
34081 "The normal transitions are (1) CONFIG (when the handle is created, but there "
34082 "is no child process), (2) LAUNCHING (when the child process is booting up), "
34083 "(3) alternating between READY and BUSY as commands are issued to, and "
34084 "carried out by, the child process."
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../src/guestfs.pod:2206
34089 msgid ""
34090 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
34091 "asynchronously at any time (eg. due to some internal error), and that causes "
34092 "the state to transition back to CONFIG."
34093 msgstr ""
34094
34095 #. type: textblock
34096 #: ../src/guestfs.pod:2210
34097 msgid ""
34098 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
34099 "issued when in the CONFIG state."
34100 msgstr ""
34101
34102 #. type: textblock
34103 #: ../src/guestfs.pod:2213
34104 msgid ""
34105 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
34106 "L</guestfs_launch> blocks until the child process is READY to accept "
34107 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
34108 "moves the state from CONFIG to LAUNCHING while it is running."
34109 msgstr ""
34110
34111 #. type: textblock
34112 #: ../src/guestfs.pod:2219
34113 msgid ""
34114 "API actions such as L</guestfs_mount> can only be issued when in the READY "
34115 "state.  These API calls block waiting for the command to be carried out "
34116 "(ie. the state to transition to BUSY and then back to READY).  There are no "
34117 "non-blocking versions, and no way to issue more than one command per handle "
34118 "at the same time."
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs.pod:2225
34123 msgid ""
34124 "Finally, the child process sends asynchronous messages back to the main "
34125 "program, such as kernel log messages.  You can register a callback to "
34126 "receive these messages."
34127 msgstr ""
34128
34129 #. type: =head1
34130 #: ../src/guestfs.pod:2229
34131 msgid "INTERNALS"
34132 msgstr ""
34133
34134 #. type: =head2
34135 #: ../src/guestfs.pod:2231
34136 msgid "COMMUNICATION PROTOCOL"
34137 msgstr ""
34138
34139 #. type: textblock
34140 #: ../src/guestfs.pod:2233
34141 msgid ""
34142 "Don't rely on using this protocol directly.  This section documents how it "
34143 "currently works, but it may change at any time."
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:2236
34148 msgid ""
34149 "The protocol used to talk between the library and the daemon running inside "
34150 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
34151 "1014, RFC 1832, RFC 4506)."
34152 msgstr ""
34153
34154 #. type: textblock
34155 #: ../src/guestfs.pod:2240
34156 msgid ""
34157 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
34158 "this file is automatically generated)."
34159 msgstr ""
34160
34161 #. type: textblock
34162 #: ../src/guestfs.pod:2243
34163 msgid ""
34164 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
34165 "and C<FileOut> parameters, which are handled with very simple request/reply "
34166 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
34167 "parameters, which use the same request and reply messages, but they may also "
34168 "be followed by files sent using a chunked encoding."
34169 msgstr ""
34170
34171 #. type: =head3
34172 #: ../src/guestfs.pod:2250
34173 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
34174 msgstr ""
34175
34176 #. type: textblock
34177 #: ../src/guestfs.pod:2252
34178 msgid "For ordinary functions, the request message is:"
34179 msgstr ""
34180
34181 #. type: verbatim
34182 #: ../src/guestfs.pod:2254
34183 #, no-wrap
34184 msgid ""
34185 " total length (header + arguments,\n"
34186 "      but not including the length word itself)\n"
34187 " struct guestfs_message_header (encoded as XDR)\n"
34188 " struct guestfs_<foo>_args (encoded as XDR)\n"
34189 "\n"
34190 msgstr ""
34191
34192 #. type: textblock
34193 #: ../src/guestfs.pod:2259
34194 msgid ""
34195 "The total length field allows the daemon to allocate a fixed size buffer "
34196 "into which it slurps the rest of the message.  As a result, the total length "
34197 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
34198 "effective size of any request is limited to somewhere under this size."
34199 msgstr ""
34200
34201 #. type: textblock
34202 #: ../src/guestfs.pod:2265
34203 msgid ""
34204 "Note also that many functions don't take any arguments, in which case the "
34205 "C<guestfs_I<foo>_args> is completely omitted."
34206 msgstr ""
34207
34208 #. type: textblock
34209 #: ../src/guestfs.pod:2268
34210 msgid ""
34211 "The header contains the procedure number (C<guestfs_proc>) which is how the "
34212 "receiver knows what type of args structure to expect, or none at all."
34213 msgstr ""
34214
34215 #. type: textblock
34216 #: ../src/guestfs.pod:2272
34217 msgid ""
34218 "For functions that take optional arguments, the optional arguments are "
34219 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
34220 "arguments.  A bitmask in the header indicates which optional arguments are "
34221 "meaningful.  The bitmask is also checked to see if it contains bits set "
34222 "which the daemon does not know about (eg. if more optional arguments were "
34223 "added in a later version of the library), and this causes the call to be "
34224 "rejected."
34225 msgstr ""
34226
34227 #. type: textblock
34228 #: ../src/guestfs.pod:2280
34229 msgid "The reply message for ordinary functions is:"
34230 msgstr ""
34231
34232 #. type: verbatim
34233 #: ../src/guestfs.pod:2282
34234 #, no-wrap
34235 msgid ""
34236 " total length (header + ret,\n"
34237 "      but not including the length word itself)\n"
34238 " struct guestfs_message_header (encoded as XDR)\n"
34239 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34240 "\n"
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs.pod:2287
34245 msgid ""
34246 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
34247 "functions that return no formal return values."
34248 msgstr ""
34249
34250 #. type: textblock
34251 #: ../src/guestfs.pod:2290
34252 msgid "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
34253 msgstr ""
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:2293
34257 msgid ""
34258 "In the case of an error, a flag is set in the header, and the reply message "
34259 "is slightly changed:"
34260 msgstr ""
34261
34262 #. type: verbatim
34263 #: ../src/guestfs.pod:2296
34264 #, no-wrap
34265 msgid ""
34266 " total length (header + error,\n"
34267 "      but not including the length word itself)\n"
34268 " struct guestfs_message_header (encoded as XDR)\n"
34269 " struct guestfs_message_error (encoded as XDR)\n"
34270 "\n"
34271 msgstr ""
34272
34273 #. type: textblock
34274 #: ../src/guestfs.pod:2301
34275 msgid ""
34276 "The C<guestfs_message_error> structure contains the error message as a "
34277 "string."
34278 msgstr ""
34279
34280 #. type: =head3
34281 #: ../src/guestfs.pod:2304
34282 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
34283 msgstr ""
34284
34285 #. type: textblock
34286 #: ../src/guestfs.pod:2306
34287 msgid ""
34288 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
34289 "The normal request message is sent (see above).  However this is followed by "
34290 "a sequence of file chunks."
34291 msgstr ""
34292
34293 #. type: verbatim
34294 #: ../src/guestfs.pod:2310
34295 #, no-wrap
34296 msgid ""
34297 " total length (header + arguments,\n"
34298 "      but not including the length word itself,\n"
34299 "      and not including the chunks)\n"
34300 " struct guestfs_message_header (encoded as XDR)\n"
34301 " struct guestfs_<foo>_args (encoded as XDR)\n"
34302 " sequence of chunks for FileIn param #0\n"
34303 " sequence of chunks for FileIn param #1 etc.\n"
34304 "\n"
34305 msgstr ""
34306
34307 #. type: textblock
34308 #: ../src/guestfs.pod:2318
34309 msgid "The \"sequence of chunks\" is:"
34310 msgstr ""
34311
34312 #. type: verbatim
34313 #: ../src/guestfs.pod:2320
34314 #, no-wrap
34315 msgid ""
34316 " length of chunk (not including length word itself)\n"
34317 " struct guestfs_chunk (encoded as XDR)\n"
34318 " length of chunk\n"
34319 " struct guestfs_chunk (encoded as XDR)\n"
34320 "   ...\n"
34321 " length of chunk\n"
34322 " struct guestfs_chunk (with data.data_len == 0)\n"
34323 "\n"
34324 msgstr ""
34325
34326 #. type: textblock
34327 #: ../src/guestfs.pod:2328
34328 msgid ""
34329 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
34330 "is set in the final chunk to indicate either successful completion or early "
34331 "cancellation."
34332 msgstr ""
34333
34334 #. type: textblock
34335 #: ../src/guestfs.pod:2332
34336 msgid ""
34337 "At time of writing there are no functions that have more than one FileIn "
34338 "parameter.  However this is (theoretically) supported, by sending the "
34339 "sequence of chunks for each FileIn parameter one after another (from left to "
34340 "right)."
34341 msgstr ""
34342
34343 #. type: textblock
34344 #: ../src/guestfs.pod:2337
34345 msgid ""
34346 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
34347 "transfer.  The library does this by sending a chunk with a special flag set "
34348 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
34349 "RPC, does I<not> send any reply, and goes back to reading the next request."
34350 msgstr ""
34351
34352 #. type: textblock
34353 #: ../src/guestfs.pod:2343
34354 msgid ""
34355 "The daemon may also cancel.  It does this by writing a special word "
34356 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
34357 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
34358 "cancel chunk).  The special word is chosen so that even if cancellation "
34359 "happens right at the end of the transfer (after the library has finished "
34360 "writing and has started listening for the reply), the \"spurious\" cancel "
34361 "flag will not be confused with the reply message."
34362 msgstr ""
34363
34364 #. type: textblock
34365 #: ../src/guestfs.pod:2352
34366 msgid ""
34367 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
34368 "limit), and also files where the size is not known in advance (eg. from "
34369 "pipes or sockets).  However the chunks are rather small "
34370 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
34371 "to keep much in memory."
34372 msgstr ""
34373
34374 #. type: =head3
34375 #: ../src/guestfs.pod:2358
34376 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs.pod:2360
34381 msgid ""
34382 "The protocol for FileOut parameters is exactly the same as for FileIn "
34383 "parameters, but with the roles of daemon and library reversed."
34384 msgstr ""
34385
34386 #. type: verbatim
34387 #: ../src/guestfs.pod:2363
34388 #, no-wrap
34389 msgid ""
34390 " total length (header + ret,\n"
34391 "      but not including the length word itself,\n"
34392 "      and not including the chunks)\n"
34393 " struct guestfs_message_header (encoded as XDR)\n"
34394 " struct guestfs_<foo>_ret (encoded as XDR)\n"
34395 " sequence of chunks for FileOut param #0\n"
34396 " sequence of chunks for FileOut param #1 etc.\n"
34397 "\n"
34398 msgstr ""
34399
34400 #. type: =head3
34401 #: ../src/guestfs.pod:2371
34402 msgid "INITIAL MESSAGE"
34403 msgstr ""
34404
34405 #. type: textblock
34406 #: ../src/guestfs.pod:2373
34407 msgid ""
34408 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
34409 "which indicates that the guest and daemon is alive.  This is what "
34410 "L</guestfs_launch> waits for."
34411 msgstr ""
34412
34413 #. type: =head3
34414 #: ../src/guestfs.pod:2377
34415 msgid "PROGRESS NOTIFICATION MESSAGES"
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../src/guestfs.pod:2379
34420 msgid ""
34421 "The daemon may send progress notification messages at any time.  These are "
34422 "distinguished by the normal length word being replaced by "
34423 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:2383
34428 msgid ""
34429 "The library turns them into progress callbacks (see "
34430 "L</GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards "
34431 "them if not."
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:2387
34436 msgid ""
34437 "The daemon self-limits the frequency of progress messages it sends (see "
34438 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
34439 "messages."
34440 msgstr ""
34441
34442 #. type: =head1
34443 #: ../src/guestfs.pod:2391
34444 msgid "LIBGUESTFS VERSION NUMBERS"
34445 msgstr ""
34446
34447 #. type: textblock
34448 #: ../src/guestfs.pod:2393
34449 msgid ""
34450 "Since April 2010, libguestfs has started to make separate development and "
34451 "stable releases, along with corresponding branches in our git repository.  "
34452 "These separate releases can be identified by version number:"
34453 msgstr ""
34454
34455 #. type: verbatim
34456 #: ../src/guestfs.pod:2398
34457 #, no-wrap
34458 msgid ""
34459 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
34460 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
34461 "       |\n"
34462 "       v\n"
34463 " 1  .  3  .  5\n"
34464 " ^           ^\n"
34465 " |           |\n"
34466 " |           `-------- sub-version\n"
34467 " |\n"
34468 " `------ always '1' because we don't change the ABI\n"
34469 "\n"
34470 msgstr ""
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:2409
34474 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
34475 msgstr ""
34476
34477 #. type: textblock
34478 #: ../src/guestfs.pod:2411
34479 msgid ""
34480 "As time passes we cherry pick fixes from the development branch and backport "
34481 "those into the stable branch, the effect being that the stable branch should "
34482 "get more stable and less buggy over time.  So the stable releases are ideal "
34483 "for people who don't need new features but would just like the software to "
34484 "work."
34485 msgstr ""
34486
34487 #. type: textblock
34488 #: ../src/guestfs.pod:2417
34489 msgid "Our criteria for backporting changes are:"
34490 msgstr ""
34491
34492 #. type: textblock
34493 #: ../src/guestfs.pod:2423
34494 msgid ""
34495 "Documentation changes which don't affect any code are backported unless the "
34496 "documentation refers to a future feature which is not in stable."
34497 msgstr ""
34498
34499 #. type: textblock
34500 #: ../src/guestfs.pod:2429
34501 msgid ""
34502 "Bug fixes which are not controversial, fix obvious problems, and have been "
34503 "well tested are backported."
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:2434
34508 msgid ""
34509 "Simple rearrangements of code which shouldn't affect how it works get "
34510 "backported.  This is so that the code in the two branches doesn't get too "
34511 "far out of step, allowing us to backport future fixes more easily."
34512 msgstr ""
34513
34514 #. type: textblock
34515 #: ../src/guestfs.pod:2440
34516 msgid ""
34517 "We I<don't> backport new features, new APIs, new tools etc, except in one "
34518 "exceptional case: the new feature is required in order to implement an "
34519 "important bug fix."
34520 msgstr ""
34521
34522 #. type: textblock
34523 #: ../src/guestfs.pod:2446
34524 msgid ""
34525 "A new stable branch starts when we think the new features in development are "
34526 "substantial and compelling enough over the current stable branch to warrant "
34527 "it.  When that happens we create new stable and development versions 1.N.0 "
34528 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
34529 "stable at this point, but by backporting fixes from development, that branch "
34530 "will stabilize over time."
34531 msgstr ""
34532
34533 #. type: =head1
34534 #: ../src/guestfs.pod:2454
34535 msgid "EXTENDING LIBGUESTFS"
34536 msgstr ""
34537
34538 #. type: =head2
34539 #: ../src/guestfs.pod:2456
34540 msgid "ADDING A NEW API ACTION"
34541 msgstr ""
34542
34543 #. type: textblock
34544 #: ../src/guestfs.pod:2458
34545 msgid ""
34546 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
34547 "documentation) are generated, and this makes it easy to extend the "
34548 "libguestfs API."
34549 msgstr ""
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:2462
34553 msgid "To add a new API action there are two changes:"
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:2468
34558 msgid ""
34559 "You need to add a description of the call (name, parameters, return type, "
34560 "tests, documentation) to C<generator/generator_actions.ml>."
34561 msgstr ""
34562
34563 #. type: textblock
34564 #: ../src/guestfs.pod:2471
34565 msgid ""
34566 "There are two sorts of API action, depending on whether the call goes "
34567 "through to the daemon in the appliance, or is serviced entirely by the "
34568 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
34569 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
34570 "an example of the latter, since a trace flag is maintained in the handle and "
34571 "all tracing is done on the library side."
34572 msgstr ""
34573
34574 #. type: textblock
34575 #: ../src/guestfs.pod:2479
34576 msgid ""
34577 "Most new actions are of the first type, and get added to the "
34578 "C<daemon_functions> list.  Each function has a unique procedure number used "
34579 "in the RPC protocol which is assigned to that action when we publish "
34580 "libguestfs and cannot be reused.  Take the latest procedure number and "
34581 "increment it."
34582 msgstr ""
34583
34584 #. type: textblock
34585 #: ../src/guestfs.pod:2485
34586 msgid ""
34587 "For library-only actions of the second type, add to the "
34588 "C<non_daemon_functions> list.  Since these functions are serviced by the "
34589 "library and do not travel over the RPC mechanism to the daemon, these "
34590 "functions do not need a procedure number, and so the procedure number is set "
34591 "to C<-1>."
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs.pod:2493
34596 msgid "Implement the action (in C):"
34597 msgstr ""
34598
34599 #. type: textblock
34600 #: ../src/guestfs.pod:2495
34601 msgid ""
34602 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
34603 "C<daemon/> directory."
34604 msgstr ""
34605
34606 #. type: textblock
34607 #: ../src/guestfs.pod:2498
34608 msgid ""
34609 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
34610 "(note: double underscore) in the C<src/> directory."
34611 msgstr ""
34612
34613 #. type: textblock
34614 #: ../src/guestfs.pod:2501
34615 msgid "In either case, use another function as an example of what to do."
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:2505
34620 msgid "After making these changes, use C<make> to compile."
34621 msgstr ""
34622
34623 #. type: textblock
34624 #: ../src/guestfs.pod:2507
34625 msgid ""
34626 "Note that you don't need to implement the RPC, language bindings, manual "
34627 "pages or anything else.  It's all automatically generated from the OCaml "
34628 "description."
34629 msgstr ""
34630
34631 #. type: =head2
34632 #: ../src/guestfs.pod:2511
34633 msgid "ADDING TESTS FOR AN API ACTION"
34634 msgstr ""
34635
34636 #. type: textblock
34637 #: ../src/guestfs.pod:2513
34638 msgid ""
34639 "You can supply zero or as many tests as you want per API call.  The tests "
34640 "can either be added as part of the API description "
34641 "(C<generator/generator_actions.ml>), or in some rarer cases you may want to "
34642 "drop a script into C<regressions/>.  Note that adding a script to "
34643 "C<regressions/> is slower, so if possible use the first method."
34644 msgstr ""
34645
34646 #. type: textblock
34647 #: ../src/guestfs.pod:2519
34648 msgid ""
34649 "The following describes the test environment used when you add an API test "
34650 "in C<generator_actions.ml>."
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:2522
34655 msgid "The test environment has 4 block devices:"
34656 msgstr ""
34657
34658 #. type: =item
34659 #: ../src/guestfs.pod:2526
34660 msgid "C</dev/sda> 500MB"
34661 msgstr ""
34662
34663 #. type: textblock
34664 #: ../src/guestfs.pod:2528
34665 msgid "General block device for testing."
34666 msgstr ""
34667
34668 #. type: =item
34669 #: ../src/guestfs.pod:2530
34670 msgid "C</dev/sdb> 50MB"
34671 msgstr ""
34672
34673 #. type: textblock
34674 #: ../src/guestfs.pod:2532
34675 msgid ""
34676 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
34677 "operations."
34678 msgstr ""
34679
34680 #. type: =item
34681 #: ../src/guestfs.pod:2535
34682 msgid "C</dev/sdc> 10MB"
34683 msgstr ""
34684
34685 #. type: textblock
34686 #: ../src/guestfs.pod:2537
34687 msgid "Used in a few tests where two block devices are needed."
34688 msgstr ""
34689
34690 #. type: =item
34691 #: ../src/guestfs.pod:2539
34692 msgid "C</dev/sdd>"
34693 msgstr ""
34694
34695 #. type: textblock
34696 #: ../src/guestfs.pod:2541
34697 msgid "ISO with fixed content (see C<images/test.iso>)."
34698 msgstr ""
34699
34700 #. type: textblock
34701 #: ../src/guestfs.pod:2545
34702 msgid ""
34703 "To be able to run the tests in a reasonable amount of time, the libguestfs "
34704 "appliance and block devices are reused between tests.  So don't try testing "
34705 "L</guestfs_kill_subprocess> :-x"
34706 msgstr ""
34707
34708 #. type: textblock
34709 #: ../src/guestfs.pod:2549
34710 msgid ""
34711 "Each test starts with an initial scenario, selected using one of the "
34712 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
34713 "initialize the disks mentioned above in a particular way as documented in "
34714 "C<generator_types.ml>.  You should not assume anything about the previous "
34715 "contents of other disks that are not initialized."
34716 msgstr ""
34717
34718 #. type: textblock
34719 #: ../src/guestfs.pod:2555
34720 msgid ""
34721 "You can add a prerequisite clause to any individual test.  This is a "
34722 "run-time check, which, if it fails, causes the test to be skipped.  Useful "
34723 "if testing a command which might not work on all variations of libguestfs "
34724 "builds.  A test that has prerequisite of C<Always> means to run "
34725 "unconditionally."
34726 msgstr ""
34727
34728 #. type: textblock
34729 #: ../src/guestfs.pod:2561
34730 msgid ""
34731 "In addition, packagers can skip individual tests by setting environment "
34732 "variables before running C<make check>."
34733 msgstr ""
34734
34735 #. type: verbatim
34736 #: ../src/guestfs.pod:2564
34737 #, no-wrap
34738 msgid ""
34739 " SKIP_TEST_<CMD>_<NUM>=1\n"
34740 "\n"
34741 msgstr ""
34742
34743 #. type: textblock
34744 #: ../src/guestfs.pod:2566
34745 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
34746 msgstr ""
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:2568
34750 msgid "or:"
34751 msgstr ""
34752
34753 #. type: verbatim
34754 #: ../src/guestfs.pod:2570
34755 #, no-wrap
34756 msgid ""
34757 " SKIP_TEST_<CMD>=1\n"
34758 "\n"
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:2572
34763 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
34764 msgstr ""
34765
34766 #. type: textblock
34767 #: ../src/guestfs.pod:2574
34768 msgid "Packagers can run only certain tests by setting for example:"
34769 msgstr ""
34770
34771 #. type: verbatim
34772 #: ../src/guestfs.pod:2576
34773 #, no-wrap
34774 msgid ""
34775 " TEST_ONLY=\"vfs_type zerofree\"\n"
34776 "\n"
34777 msgstr ""
34778
34779 #. type: textblock
34780 #: ../src/guestfs.pod:2578
34781 msgid ""
34782 "See C<capitests/tests.c> for more details of how these environment variables "
34783 "work."
34784 msgstr ""
34785
34786 #. type: =head2
34787 #: ../src/guestfs.pod:2581
34788 msgid "DEBUGGING NEW API ACTIONS"
34789 msgstr ""
34790
34791 #. type: textblock
34792 #: ../src/guestfs.pod:2583
34793 msgid "Test new actions work before submitting them."
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs.pod:2585
34798 msgid "You can use guestfish to try out new commands."
34799 msgstr ""
34800
34801 #. type: textblock
34802 #: ../src/guestfs.pod:2587
34803 msgid ""
34804 "Debugging the daemon is a problem because it runs inside a minimal "
34805 "environment.  However you can fprintf messages in the daemon to stderr, and "
34806 "they will show up if you use C<guestfish -v>."
34807 msgstr ""
34808
34809 #. type: =head2
34810 #: ../src/guestfs.pod:2591
34811 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
34812 msgstr ""
34813
34814 #. type: textblock
34815 #: ../src/guestfs.pod:2593
34816 msgid ""
34817 "Our C source code generally adheres to some basic code-formatting "
34818 "conventions.  The existing code base is not totally consistent on this "
34819 "front, but we do prefer that contributed code be formatted similarly.  In "
34820 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
34821 "indentation level, and other than that, follow the K&R style."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:2599
34826 msgid ""
34827 "If you use Emacs, add the following to one of one of your start-up files "
34828 "(e.g., ~/.emacs), to help ensure that you get indentation right:"
34829 msgstr ""
34830
34831 #. type: verbatim
34832 #: ../src/guestfs.pod:2602
34833 #, no-wrap
34834 msgid ""
34835 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
34836 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
34837 " (add-hook 'find-file-hook\n"
34838 "     '(lambda () (if (and buffer-file-name\n"
34839 "                          (string-match \"/libguestfs\\\\>\"\n"
34840 "                              (buffer-file-name))\n"
34841 "                          (not (string-equal mode-name \"Change Log\"))\n"
34842 "                          (not (string-equal mode-name \"Makefile\")))\n"
34843 "                     (setq indent-tabs-mode nil))))\n"
34844 " \n"
34845 msgstr ""
34846
34847 #. type: verbatim
34848 #: ../src/guestfs.pod:2612
34849 #, no-wrap
34850 msgid ""
34851 " ;;; When editing C sources in libguestfs, use this style.\n"
34852 " (defun libguestfs-c-mode ()\n"
34853 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
34854 "   (interactive)\n"
34855 "   (c-set-style \"K&R\")\n"
34856 "   (setq c-indent-level 2)\n"
34857 "   (setq c-basic-offset 2))\n"
34858 " (add-hook 'c-mode-hook\n"
34859 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
34860 "                               (buffer-file-name))\n"
34861 "                           (libguestfs-c-mode))))\n"
34862 "\n"
34863 msgstr ""
34864
34865 #. type: textblock
34866 #: ../src/guestfs.pod:2624
34867 msgid "Enable warnings when compiling (and fix any problems this finds):"
34868 msgstr ""
34869
34870 #. type: verbatim
34871 #: ../src/guestfs.pod:2627
34872 #, no-wrap
34873 msgid ""
34874 " ./configure --enable-gcc-warnings\n"
34875 "\n"
34876 msgstr ""
34877
34878 #. type: textblock
34879 #: ../src/guestfs.pod:2629
34880 msgid "Useful targets are:"
34881 msgstr ""
34882
34883 #. type: verbatim
34884 #: ../src/guestfs.pod:2631
34885 #, no-wrap
34886 msgid ""
34887 " make syntax-check  # checks the syntax of the C code\n"
34888 " make check         # runs the test suite\n"
34889 "\n"
34890 msgstr ""
34891
34892 #. type: =head2
34893 #: ../src/guestfs.pod:2634
34894 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
34895 msgstr ""
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:2636
34899 msgid ""
34900 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
34901 "which are used to do shell quoting."
34902 msgstr ""
34903
34904 #. type: =item
34905 #: ../src/guestfs.pod:2641
34906 msgid "%Q"
34907 msgstr ""
34908
34909 #. type: textblock
34910 #: ../src/guestfs.pod:2643
34911 msgid ""
34912 "Simple shell quoted string.  Any spaces or other shell characters are "
34913 "escaped for you."
34914 msgstr ""
34915
34916 #. type: =item
34917 #: ../src/guestfs.pod:2646
34918 msgid "%R"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs.pod:2648
34923 msgid ""
34924 "Same as C<%Q> except the string is treated as a path which is prefixed by "
34925 "the sysroot."
34926 msgstr ""
34927
34928 #. type: verbatim
34929 #: ../src/guestfs.pod:2655
34930 #, no-wrap
34931 msgid ""
34932 " asprintf (&cmd, \"cat %R\", path);\n"
34933 "\n"
34934 msgstr ""
34935
34936 #. type: textblock
34937 #: ../src/guestfs.pod:2657
34938 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
34939 msgstr ""
34940
34941 #. type: textblock
34942 #: ../src/guestfs.pod:2659
34943 msgid ""
34944 "I<Note:> Do I<not> use these when you are passing parameters to the "
34945 "C<command{,r,v,rv}()> functions.  These parameters do NOT need to be quoted "
34946 "because they are not passed via the shell (instead, straight to exec).  You "
34947 "probably want to use the C<sysroot_path()> function however."
34948 msgstr ""
34949
34950 #. type: =head2
34951 #: ../src/guestfs.pod:2665
34952 msgid "SUBMITTING YOUR NEW API ACTIONS"
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:2667
34957 msgid ""
34958 "Submit patches to the mailing list: "
34959 "L<http://www.redhat.com/mailman/listinfo/libguestfs> and CC to "
34960 "L<rjones@redhat.com>."
34961 msgstr ""
34962
34963 #. type: =head2
34964 #: ../src/guestfs.pod:2671
34965 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
34966 msgstr ""
34967
34968 #. type: textblock
34969 #: ../src/guestfs.pod:2673
34970 msgid "We support i18n (gettext anyhow) in the library."
34971 msgstr ""
34972
34973 #. type: textblock
34974 #: ../src/guestfs.pod:2675
34975 msgid ""
34976 "However many messages come from the daemon, and we don't translate those at "
34977 "the moment.  One reason is that the appliance generally has all locale files "
34978 "removed from it, because they take up a lot of space.  So we'd have to readd "
34979 "some of those, as well as copying our PO files into the appliance."
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:2681
34984 msgid ""
34985 "Debugging messages are never translated, since they are intended for the "
34986 "programmers."
34987 msgstr ""
34988
34989 #. type: =head2
34990 #: ../src/guestfs.pod:2684
34991 msgid "SOURCE CODE SUBDIRECTORIES"
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:2690
34996 msgid "The libguestfs appliance, build scripts and so on."
34997 msgstr ""
34998
34999 #. type: =item
35000 #: ../src/guestfs.pod:2692
35001 msgid "C<capitests>"
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:2694
35006 msgid "Automated tests of the C API."
35007 msgstr ""
35008
35009 #. type: =item
35010 #: ../src/guestfs.pod:2696
35011 msgid "C<cat>"
35012 msgstr ""
35013
35014 #. type: textblock
35015 #: ../src/guestfs.pod:2698
35016 msgid ""
35017 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
35018 "documentation."
35019 msgstr ""
35020
35021 #. type: =item
35022 #: ../src/guestfs.pod:2701
35023 msgid "C<caution>"
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:2703
35028 msgid ""
35029 "Safety and liveness tests of components that libguestfs depends upon (not of "
35030 "libguestfs itself).  Mainly this is for qemu and the kernel."
35031 msgstr ""
35032
35033 #. type: =item
35034 #: ../src/guestfs.pod:2706
35035 msgid "C<contrib>"
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:2708
35040 msgid "Outside contributions, experimental parts."
35041 msgstr ""
35042
35043 #. type: =item
35044 #: ../src/guestfs.pod:2710
35045 msgid "C<daemon>"
35046 msgstr ""
35047
35048 #. type: textblock
35049 #: ../src/guestfs.pod:2712
35050 msgid ""
35051 "The daemon that runs inside the libguestfs appliance and carries out "
35052 "actions."
35053 msgstr ""
35054
35055 #. type: =item
35056 #: ../src/guestfs.pod:2715
35057 msgid "C<df>"
35058 msgstr ""
35059
35060 #. type: textblock
35061 #: ../src/guestfs.pod:2717
35062 msgid "L<virt-df(1)> command and documentation."
35063 msgstr ""
35064
35065 #. type: =item
35066 #: ../src/guestfs.pod:2719
35067 msgid "C<edit>"
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs.pod:2721
35072 msgid "L<virt-edit(1)> command and documentation."
35073 msgstr ""
35074
35075 #. type: =item
35076 #: ../src/guestfs.pod:2723
35077 msgid "C<examples>"
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs.pod:2725
35082 msgid "C API example code."
35083 msgstr ""
35084
35085 #. type: =item
35086 #: ../src/guestfs.pod:2727
35087 msgid "C<fish>"
35088 msgstr ""
35089
35090 #. type: textblock
35091 #: ../src/guestfs.pod:2729
35092 msgid ""
35093 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
35094 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
35095 "L<virt-tar-out(1)>."
35096 msgstr ""
35097
35098 #. type: =item
35099 #: ../src/guestfs.pod:2733
35100 msgid "C<fuse>"
35101 msgstr ""
35102
35103 #. type: textblock
35104 #: ../src/guestfs.pod:2735
35105 msgid "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
35106 msgstr ""
35107
35108 #. type: =item
35109 #: ../src/guestfs.pod:2737
35110 msgid "C<generator>"
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:2739
35115 msgid ""
35116 "The crucially important generator, used to automatically generate large "
35117 "amounts of boilerplate C code for things like RPC and bindings."
35118 msgstr ""
35119
35120 #. type: =item
35121 #: ../src/guestfs.pod:2742
35122 msgid "C<images>"
35123 msgstr ""
35124
35125 #. type: textblock
35126 #: ../src/guestfs.pod:2744
35127 msgid "Files used by the test suite."
35128 msgstr ""
35129
35130 #. type: textblock
35131 #: ../src/guestfs.pod:2746
35132 msgid "Some \"phony\" guest images which we test against."
35133 msgstr ""
35134
35135 #. type: =item
35136 #: ../src/guestfs.pod:2748
35137 msgid "C<inspector>"
35138 msgstr ""
35139
35140 #. type: textblock
35141 #: ../src/guestfs.pod:2750
35142 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
35143 msgstr ""
35144
35145 #. type: =item
35146 #: ../src/guestfs.pod:2752
35147 msgid "C<logo>"
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:2754
35152 msgid "Logo used on the website.  The fish is called Arthur by the way."
35153 msgstr ""
35154
35155 #. type: =item
35156 #: ../src/guestfs.pod:2756
35157 msgid "C<m4>"
35158 msgstr ""
35159
35160 #. type: textblock
35161 #: ../src/guestfs.pod:2758
35162 msgid "M4 macros used by autoconf."
35163 msgstr ""
35164
35165 #. type: =item
35166 #: ../src/guestfs.pod:2760
35167 msgid "C<po>"
35168 msgstr ""
35169
35170 #. type: textblock
35171 #: ../src/guestfs.pod:2762
35172 msgid "Translations of simple gettext strings."
35173 msgstr ""
35174
35175 #. type: =item
35176 #: ../src/guestfs.pod:2764
35177 msgid "C<po-docs>"
35178 msgstr ""
35179
35180 #. type: textblock
35181 #: ../src/guestfs.pod:2766
35182 msgid ""
35183 "The build infrastructure and PO files for translations of manpages and POD "
35184 "files.  Eventually this will be combined with the C<po> directory, but that "
35185 "is rather complicated."
35186 msgstr ""
35187
35188 #. type: =item
35189 #: ../src/guestfs.pod:2770
35190 msgid "C<regressions>"
35191 msgstr ""
35192
35193 #. type: textblock
35194 #: ../src/guestfs.pod:2772
35195 msgid "Regression tests."
35196 msgstr ""
35197
35198 #. type: =item
35199 #: ../src/guestfs.pod:2774
35200 msgid "C<rescue>"
35201 msgstr ""
35202
35203 #. type: textblock
35204 #: ../src/guestfs.pod:2776
35205 msgid "L<virt-rescue(1)> command and documentation."
35206 msgstr ""
35207
35208 #. type: =item
35209 #: ../src/guestfs.pod:2778
35210 msgid "C<src>"
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:2780
35215 msgid "Source code to the C library."
35216 msgstr ""
35217
35218 #. type: =item
35219 #: ../src/guestfs.pod:2782
35220 msgid "C<tools>"
35221 msgstr ""
35222
35223 #. type: textblock
35224 #: ../src/guestfs.pod:2784
35225 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
35226 msgstr ""
35227
35228 #. type: =item
35229 #: ../src/guestfs.pod:2786
35230 msgid "C<test-tool>"
35231 msgstr ""
35232
35233 #. type: textblock
35234 #: ../src/guestfs.pod:2788
35235 msgid ""
35236 "Test tool for end users to test if their qemu/kernel combination will work "
35237 "with libguestfs."
35238 msgstr ""
35239
35240 #. type: =item
35241 #: ../src/guestfs.pod:2791
35242 msgid "C<csharp>"
35243 msgstr ""
35244
35245 #. type: =item
35246 #: ../src/guestfs.pod:2793
35247 msgid "C<haskell>"
35248 msgstr ""
35249
35250 #. type: =item
35251 #: ../src/guestfs.pod:2795
35252 msgid "C<java>"
35253 msgstr ""
35254
35255 #. type: =item
35256 #: ../src/guestfs.pod:2797
35257 msgid "C<ocaml>"
35258 msgstr ""
35259
35260 #. type: =item
35261 #: ../src/guestfs.pod:2799
35262 msgid "C<php>"
35263 msgstr ""
35264
35265 #. type: =item
35266 #: ../src/guestfs.pod:2801
35267 msgid "C<perl>"
35268 msgstr ""
35269
35270 #. type: =item
35271 #: ../src/guestfs.pod:2803
35272 msgid "C<python>"
35273 msgstr ""
35274
35275 #. type: =item
35276 #: ../src/guestfs.pod:2805
35277 msgid "C<ruby>"
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:2807
35282 msgid "Language bindings."
35283 msgstr ""
35284
35285 #. type: =head2
35286 #: ../src/guestfs.pod:2811
35287 msgid "MAKING A STABLE RELEASE"
35288 msgstr ""
35289
35290 #. type: textblock
35291 #: ../src/guestfs.pod:2813
35292 msgid ""
35293 "When we make a stable release, there are several steps documented here.  See "
35294 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
35295 "branch policy."
35296 msgstr ""
35297
35298 #. type: textblock
35299 #: ../src/guestfs.pod:2821
35300 msgid "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
35301 msgstr ""
35302
35303 #. type: textblock
35304 #: ../src/guestfs.pod:2826
35305 msgid "Finalize RELEASE-NOTES."
35306 msgstr ""
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:2830
35310 msgid "Update ROADMAP."
35311 msgstr ""
35312
35313 #. type: textblock
35314 #: ../src/guestfs.pod:2834
35315 msgid "Run C<src/api-support/update-from-tarballs.sh>."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:2838
35320 msgid "Push and pull from Transifex."
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:2840
35325 msgid "Run:"
35326 msgstr ""
35327
35328 #. type: verbatim
35329 #: ../src/guestfs.pod:2842
35330 #, no-wrap
35331 msgid ""
35332 " tx push -s\n"
35333 "\n"
35334 msgstr ""
35335
35336 #. type: textblock
35337 #: ../src/guestfs.pod:2844
35338 msgid "to push the latest POT files to Transifex.  Then run:"
35339 msgstr ""
35340
35341 #. type: verbatim
35342 #: ../src/guestfs.pod:2846
35343 #, no-wrap
35344 msgid ""
35345 " ./tx-pull.sh\n"
35346 "\n"
35347 msgstr ""
35348
35349 #. type: textblock
35350 #: ../src/guestfs.pod:2848
35351 msgid "which is a wrapper to pull the latest translated C<*.po> files."
35352 msgstr ""
35353
35354 #. type: textblock
35355 #: ../src/guestfs.pod:2852
35356 msgid ""
35357 "Create new stable and development directories under "
35358 "L<http://libguestfs.org/download>."
35359 msgstr ""
35360
35361 #. type: textblock
35362 #: ../src/guestfs.pod:2857
35363 msgid "Create the branch in git:"
35364 msgstr ""
35365
35366 #. type: verbatim
35367 #: ../src/guestfs.pod:2859
35368 #, no-wrap
35369 msgid ""
35370 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
35371 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
35372 " git branch stable-1.XX\n"
35373 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
35374 "\n"
35375 msgstr ""
35376
35377 #. type: =head1
35378 #: ../src/guestfs.pod:2866
35379 msgid "LIMITS"
35380 msgstr ""
35381
35382 #. type: =head2
35383 #: ../src/guestfs.pod:2868
35384 msgid "PROTOCOL LIMITS"
35385 msgstr ""
35386
35387 #. type: textblock
35388 #: ../src/guestfs.pod:2870
35389 msgid ""
35390 "Internally libguestfs uses a message-based protocol to pass API calls and "
35391 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
35392 "plenty more detail about this).  The maximum message size used by the "
35393 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
35394 "aware of this limit.  The API calls which may be affected are individually "
35395 "documented, with a link back to this section of the documentation."
35396 msgstr ""
35397
35398 #. type: textblock
35399 #: ../src/guestfs.pod:2878
35400 msgid ""
35401 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
35402 "a simple string.  Because this string is at some point internally encoded as "
35403 "a message, the maximum size that it can return is slightly under 4 MB.  If "
35404 "the requested file is larger than this then you will get an error."
35405 msgstr ""
35406
35407 #. type: textblock
35408 #: ../src/guestfs.pod:2884
35409 msgid ""
35410 "In order to transfer large files into and out of the guest filesystem, you "
35411 "need to use particular calls that support this.  The sections L</UPLOADING> "
35412 "and L</DOWNLOADING> document how to do this."
35413 msgstr ""
35414
35415 #. type: textblock
35416 #: ../src/guestfs.pod:2888
35417 msgid ""
35418 "You might also consider mounting the disk image using our FUSE filesystem "
35419 "support (L<guestmount(1)>)."
35420 msgstr ""
35421
35422 #. type: =head2
35423 #: ../src/guestfs.pod:2891
35424 msgid "MAXIMUM NUMBER OF DISKS"
35425 msgstr ""
35426
35427 #. type: textblock
35428 #: ../src/guestfs.pod:2893
35429 msgid "When using virtio disks (the default) the current limit is B<25> disks."
35430 msgstr ""
35431
35432 #. type: textblock
35433 #: ../src/guestfs.pod:2896
35434 msgid ""
35435 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
35436 "slots.  However febootstrap only understands disks with names C</dev/vda> "
35437 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
35438 "purposes."
35439 msgstr ""
35440
35441 #. type: textblock
35442 #: ../src/guestfs.pod:2901
35443 msgid ""
35444 "We are working to substantially raise this limit in future versions but it "
35445 "requires complex changes to qemu."
35446 msgstr ""
35447
35448 #. type: textblock
35449 #: ../src/guestfs.pod:2904
35450 msgid ""
35451 "In future versions of libguestfs it should also be possible to \"hot plug\" "
35452 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
35453 "requires changes to qemu."
35454 msgstr ""
35455
35456 #. type: =head2
35457 #: ../src/guestfs.pod:2908
35458 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:2910
35463 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:2912
35468 msgid ""
35469 "This is because it reserves 4 bits for the minor device number (thus "
35470 "C</dev/vda>, and C</dev/vda1> through C</dev/vda15>)."
35471 msgstr ""
35472
35473 #. type: textblock
35474 #: ../src/guestfs.pod:2915
35475 msgid ""
35476 "If you attach a disk with more than 15 partitions, the extra partitions are "
35477 "ignored by libguestfs."
35478 msgstr ""
35479
35480 #. type: =head2
35481 #: ../src/guestfs.pod:2918
35482 msgid "MAXIMUM SIZE OF A DISK"
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:2920
35487 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:2922
35492 msgid ""
35493 "We have tested block devices up to 1 exabyte (2**60 or "
35494 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
35495 "filesystem."
35496 msgstr ""
35497
35498 #. type: textblock
35499 #: ../src/guestfs.pod:2926
35500 msgid ""
35501 "Although libguestfs probably does not impose any limit, the underlying host "
35502 "storage will.  If you store disk images on a host ext4 filesystem, then the "
35503 "maximum size will be limited by the maximum ext4 file size (currently 16 "
35504 "TB).  If you store disk images as host logical volumes then you are limited "
35505 "by the maximum size of an LV."
35506 msgstr ""
35507
35508 #. type: textblock
35509 #: ../src/guestfs.pod:2932
35510 msgid ""
35511 "For the hugest disk image files, we recommend using XFS on the host for "
35512 "storage."
35513 msgstr ""
35514
35515 #. type: =head2
35516 #: ../src/guestfs.pod:2935
35517 msgid "MAXIMUM SIZE OF A PARTITION"
35518 msgstr ""
35519
35520 #. type: textblock
35521 #: ../src/guestfs.pod:2937
35522 msgid ""
35523 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
35524 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
35525 "address a partition located beyond 2 TB on the disk."
35526 msgstr ""
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:2941
35530 msgid ""
35531 "It is recommended that you use GPT partitions on disks which are larger than "
35532 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
35533 "which are theoretically larger than the largest disk we could support."
35534 msgstr ""
35535
35536 #. type: =head2
35537 #: ../src/guestfs.pod:2946
35538 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
35539 msgstr ""
35540
35541 #. type: textblock
35542 #: ../src/guestfs.pod:2948
35543 msgid ""
35544 "This depends on the filesystem type.  libguestfs itself does not impose any "
35545 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
35546 "what these limits are."
35547 msgstr ""
35548
35549 #. type: =head2
35550 #: ../src/guestfs.pod:2952
35551 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
35552 msgstr ""
35553
35554 #. type: textblock
35555 #: ../src/guestfs.pod:2954
35556 msgid ""
35557 "The API functions L</guestfs_upload>, L</guestfs_download>, "
35558 "L</guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
35559 "uploads and downloads."
35560 msgstr ""
35561
35562 #. type: =head2
35563 #: ../src/guestfs.pod:2958
35564 msgid "INSPECTION LIMITS"
35565 msgstr ""
35566
35567 #. type: textblock
35568 #: ../src/guestfs.pod:2960
35569 msgid ""
35570 "The inspection code has several arbitrary limits on things like the size of "
35571 "Windows Registry hive it will read, and the length of product name.  These "
35572 "are intended to stop a malicious guest from consuming arbitrary amounts of "
35573 "memory and disk space on the host, and should not be reached in practice.  "
35574 "See the source code for more information."
35575 msgstr ""
35576
35577 #. type: textblock
35578 #: ../src/guestfs.pod:2986
35579 msgid ""
35580 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
35581 "effect as calling C<guestfs_set_verbose (g, 1)>."
35582 msgstr ""
35583
35584 #. type: textblock
35585 #: ../src/guestfs.pod:2998
35586 msgid ""
35587 "Set the path that libguestfs uses to search for a supermin appliance.  See "
35588 "the discussion of paths in section L</PATH> above."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:3007
35593 msgid "See also L</QEMU WRAPPERS> above."
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:3011
35598 msgid ""
35599 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
35600 "effect as calling C<guestfs_set_trace (g, 1)>."
35601 msgstr ""
35602
35603 #. type: textblock
35604 #: ../src/guestfs.pod:3029
35605 msgid ""
35606 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, "
35607 "L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
35608 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
35609 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
35610 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
35611 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, "
35612 "L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
35613 "L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
35614 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
35615 msgstr ""
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:3059
35619 msgid ""
35620 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, "
35621 "L<lvm(8)>, L<disktype(1)>."
35622 msgstr ""
35623
35624 #. type: =head1
35625 #: ../src/guestfs.pod:3066 ../tools/virt-make-fs.pl:553 ../tools/virt-win-reg.pl:761
35626 msgid "BUGS"
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:3068
35631 msgid "To get a list of bugs against libguestfs use this link:"
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:3070
35636 msgid "L<https://bugzilla.redhat.com/buglist.cgi?component=libguestfs&product=Virtualization+Tools>"
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:3072
35641 msgid "To report a new bug against libguestfs use this link:"
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs.pod:3074
35646 msgid "L<https://bugzilla.redhat.com/enter_bug.cgi?component=libguestfs&product=Virtualization+Tools>"
35647 msgstr ""
35648
35649 #. type: textblock
35650 #: ../src/guestfs.pod:3076
35651 msgid "When reporting a bug, please check:"
35652 msgstr ""
35653
35654 #. type: textblock
35655 #: ../src/guestfs.pod:3082
35656 msgid "That the bug hasn't been reported already."
35657 msgstr ""
35658
35659 #. type: textblock
35660 #: ../src/guestfs.pod:3086
35661 msgid "That you are testing a recent version."
35662 msgstr ""
35663
35664 #. type: textblock
35665 #: ../src/guestfs.pod:3090
35666 msgid "Describe the bug accurately, and give a way to reproduce it."
35667 msgstr ""
35668
35669 #. type: textblock
35670 #: ../src/guestfs.pod:3094
35671 msgid ""
35672 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
35673 "bug report."
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../test-tool/libguestfs-test-tool.pod:5
35678 msgid "libguestfs-test-tool - End user tests for libguestfs"
35679 msgstr ""
35680
35681 #. type: verbatim
35682 #: ../test-tool/libguestfs-test-tool.pod:9
35683 #, no-wrap
35684 msgid ""
35685 " libguestfs-test-tool [--options]\n"
35686 "\n"
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../test-tool/libguestfs-test-tool.pod:13
35691 msgid ""
35692 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
35693 "and developers, to allow them to check basic libguestfs functionality is "
35694 "working.  This is needed because libguestfs occasionally breaks for reasons "
35695 "beyond our control: usually because of changes in the underlying qemu or "
35696 "kernel packages, or the host environment."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../test-tool/libguestfs-test-tool.pod:20
35701 msgid "If you suspect a problem in libguestfs, then just run:"
35702 msgstr ""
35703
35704 #. type: verbatim
35705 #: ../test-tool/libguestfs-test-tool.pod:22
35706 #, no-wrap
35707 msgid ""
35708 " libguestfs-test-tool\n"
35709 "\n"
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../test-tool/libguestfs-test-tool.pod:24
35714 msgid "It will print lots of diagnostic messages."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../test-tool/libguestfs-test-tool.pod:26
35719 msgid "If it runs to completion successfully, you will see this near the end:"
35720 msgstr ""
35721
35722 #. type: verbatim
35723 #: ../test-tool/libguestfs-test-tool.pod:28
35724 #, no-wrap
35725 msgid ""
35726 " ===== TEST FINISHED OK =====\n"
35727 "\n"
35728 msgstr ""
35729
35730 #. type: textblock
35731 #: ../test-tool/libguestfs-test-tool.pod:30
35732 msgid "and the test tool will exit with code 0."
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../test-tool/libguestfs-test-tool.pod:32
35737 msgid ""
35738 "If it fails (and/or exits with non-zero error code), please paste the "
35739 "B<complete, unedited> output of the test tool into a bug report.  More "
35740 "information about reporting bugs can be found on the "
35741 "L<http://libguestfs.org/> website."
35742 msgstr ""
35743
35744 #. type: =item
35745 #: ../test-tool/libguestfs-test-tool.pod:41
35746 msgid "I<--help>"
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../test-tool/libguestfs-test-tool.pod:43
35751 msgid "Display short usage information and exit."
35752 msgstr ""
35753
35754 #. type: =item
35755 #: ../test-tool/libguestfs-test-tool.pod:45
35756 msgid "I<--qemu qemu_binary>"
35757 msgstr ""
35758
35759 #. type: textblock
35760 #: ../test-tool/libguestfs-test-tool.pod:47
35761 msgid ""
35762 "If you have downloaded another qemu binary, point this option at the full "
35763 "path of the binary to try it."
35764 msgstr ""
35765
35766 #. type: =item
35767 #: ../test-tool/libguestfs-test-tool.pod:50
35768 msgid "I<--qemudir qemu_source_dir>"
35769 msgstr ""
35770
35771 #. type: textblock
35772 #: ../test-tool/libguestfs-test-tool.pod:52
35773 msgid ""
35774 "If you have compiled qemu from source, point this option at the source "
35775 "directory to try it."
35776 msgstr ""
35777
35778 #. type: =item
35779 #: ../test-tool/libguestfs-test-tool.pod:55
35780 msgid "I<--timeout N>"
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../test-tool/libguestfs-test-tool.pod:57
35785 msgid ""
35786 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
35787 "does not usually need to be adjusted unless your machine is very slow."
35788 msgstr ""
35789
35790 #. type: =head1
35791 #: ../test-tool/libguestfs-test-tool.pod:63
35792 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
35793 msgstr ""
35794
35795 #. type: textblock
35796 #: ../test-tool/libguestfs-test-tool.pod:65
35797 msgid ""
35798 "If you have compiled another version of qemu from source and would like to "
35799 "try that, then you can use the I<--qemudir> option to point to the qemu "
35800 "source directory."
35801 msgstr ""
35802
35803 #. type: textblock
35804 #: ../test-tool/libguestfs-test-tool.pod:69
35805 msgid ""
35806 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
35807 "option to point to the binary."
35808 msgstr ""
35809
35810 #. type: textblock
35811 #: ../test-tool/libguestfs-test-tool.pod:72
35812 msgid ""
35813 "When using an alternate qemu with libguestfs, usually you would need to "
35814 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in "
35815 "L<guestfs(3)>).  libguestfs-test-tool writes a temporary qemu wrapper script "
35816 "when you use either of the I<--qemudir> or I<--qemu> options."
35817 msgstr ""
35818
35819 #. type: textblock
35820 #: ../test-tool/libguestfs-test-tool.pod:79
35821 msgid ""
35822 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
35823 "I<1> if there was an error."
35824 msgstr ""
35825
35826 #. type: textblock
35827 #: ../test-tool/libguestfs-test-tool.pod:84
35828 msgid ""
35829 "For the full list of environment variables which may affect libguestfs, "
35830 "please see the L<guestfs(3)> manual page."
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../test-tool/libguestfs-test-tool.pod:89
35835 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../tools/virt-list-filesystems.pl:32
35840 msgid "virt-list-filesystems - List filesystems in a virtual machine or disk image"
35841 msgstr ""
35842
35843 #. type: verbatim
35844 #: ../tools/virt-list-filesystems.pl:36
35845 #, no-wrap
35846 msgid ""
35847 " virt-list-filesystems [--options] domname\n"
35848 "\n"
35849 msgstr ""
35850
35851 #. type: verbatim
35852 #: ../tools/virt-list-filesystems.pl:38
35853 #, no-wrap
35854 msgid ""
35855 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
35856 "\n"
35857 msgstr ""
35858
35859 #. type: textblock
35860 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
35861 msgid ""
35862 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
35863 "replacement."
35864 msgstr ""
35865
35866 #. type: textblock
35867 #: ../tools/virt-list-filesystems.pl:45
35868 msgid ""
35869 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
35870 "are contained in a virtual machine or disk image."
35871 msgstr ""
35872
35873 #. type: textblock
35874 #: ../tools/virt-list-filesystems.pl:49
35875 msgid ""
35876 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
35877 "functionality.  For more complex cases you should look at the "
35878 "L<guestfish(1)> tool."
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../tools/virt-list-filesystems.pl:112
35883 msgid ""
35884 "With this option, C<virt-list-filesystems> displays the type of each "
35885 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
35886 msgstr ""
35887
35888 #. type: =item
35889 #: ../tools/virt-list-filesystems.pl:119
35890 msgid "B<-a>"
35891 msgstr ""
35892
35893 #. type: textblock
35894 #: ../tools/virt-list-filesystems.pl:123
35895 msgid ""
35896 "Normally we only show mountable filesystems.  If this option is given then "
35897 "swap devices are shown too."
35898 msgstr ""
35899
35900 #. type: textblock
35901 #: ../tools/virt-list-filesystems.pl:197
35902 msgid ""
35903 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, "
35904 "L<virt-filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, "
35905 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35906 msgstr ""
35907
35908 #. type: textblock
35909 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
35910 msgid "Copyright (C) 2009 Red Hat Inc."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../tools/virt-list-partitions.pl:32
35915 msgid "virt-list-partitions - List partitions in a virtual machine or disk image"
35916 msgstr ""
35917
35918 #. type: verbatim
35919 #: ../tools/virt-list-partitions.pl:36
35920 #, no-wrap
35921 msgid ""
35922 " virt-list-partitions [--options] domname\n"
35923 "\n"
35924 msgstr ""
35925
35926 #. type: verbatim
35927 #: ../tools/virt-list-partitions.pl:38
35928 #, no-wrap
35929 msgid ""
35930 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
35931 "\n"
35932 msgstr ""
35933
35934 #. type: textblock
35935 #: ../tools/virt-list-partitions.pl:45
35936 msgid ""
35937 "C<virt-list-partitions> is a command line tool to list the partitions that "
35938 "are contained in a virtual machine or disk image.  It is mainly useful as a "
35939 "first step to using L<virt-resize(1)>."
35940 msgstr ""
35941
35942 #. type: textblock
35943 #: ../tools/virt-list-partitions.pl:50
35944 msgid ""
35945 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
35946 "functionality.  For more complex cases you should look at the "
35947 "L<guestfish(1)> tool."
35948 msgstr ""
35949
35950 #. type: textblock
35951 #: ../tools/virt-list-partitions.pl:113
35952 msgid "Show sizes in human-readable form (eg. \"1G\")."
35953 msgstr ""
35954
35955 #. type: textblock
35956 #: ../tools/virt-list-partitions.pl:123
35957 msgid ""
35958 "With this option, C<virt-list-partitions> displays the type and size of each "
35959 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
35960 msgstr ""
35961
35962 #. type: =item
35963 #: ../tools/virt-list-partitions.pl:130
35964 msgid "B<-t>"
35965 msgstr ""
35966
35967 #. type: =item
35968 #: ../tools/virt-list-partitions.pl:132
35969 msgid "B<--total>"
35970 msgstr ""
35971
35972 #. type: textblock
35973 #: ../tools/virt-list-partitions.pl:134
35974 msgid "Display the total size of each block device (as a separate row or rows)."
35975 msgstr ""
35976
35977 #. type: textblock
35978 #: ../tools/virt-list-partitions.pl:267
35979 msgid ""
35980 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, "
35981 "L<virt-list-filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, "
35982 "L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
35983 msgstr ""
35984
35985 #. type: textblock
35986 #: ../tools/virt-list-partitions.pl:283
35987 msgid "Copyright (C) 2009-2010 Red Hat Inc."
35988 msgstr ""
35989
35990 #. type: textblock
35991 #: ../tools/virt-make-fs.pl:37
35992 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
35993 msgstr ""
35994
35995 #. type: verbatim
35996 #: ../tools/virt-make-fs.pl:41
35997 #, no-wrap
35998 msgid ""
35999 " virt-make-fs [--options] input.tar output.img\n"
36000 "\n"
36001 msgstr ""
36002
36003 #. type: verbatim
36004 #: ../tools/virt-make-fs.pl:43
36005 #, no-wrap
36006 msgid ""
36007 " virt-make-fs [--options] input.tar.gz output.img\n"
36008 "\n"
36009 msgstr ""
36010
36011 #. type: verbatim
36012 #: ../tools/virt-make-fs.pl:45
36013 #, no-wrap
36014 msgid ""
36015 " virt-make-fs [--options] directory output.img\n"
36016 "\n"
36017 msgstr ""
36018
36019 #. type: textblock
36020 #: ../tools/virt-make-fs.pl:49
36021 msgid ""
36022 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
36023 "archive or some files in a directory.  It is similar to tools like "
36024 "L<mkisofs(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, "
36025 "it can create common filesystem types like ext2/3 or NTFS, which can be "
36026 "useful if you want to attach these filesystems to existing virtual machines "
36027 "(eg. to import large amounts of read-only data to a VM)."
36028 msgstr ""
36029
36030 #. type: textblock
36031 #: ../tools/virt-make-fs.pl:57
36032 msgid "Basic usage is:"
36033 msgstr ""
36034
36035 #. type: verbatim
36036 #: ../tools/virt-make-fs.pl:59
36037 #, no-wrap
36038 msgid ""
36039 " virt-make-fs input output\n"
36040 "\n"
36041 msgstr ""
36042
36043 #. type: textblock
36044 #: ../tools/virt-make-fs.pl:61
36045 msgid ""
36046 "where C<input> is either a directory containing files that you want to add, "
36047 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
36048 "C<output> is a disk image.  The input type is detected automatically.  The "
36049 "output disk image defaults to a raw ext2 image unless you specify extra "
36050 "flags (see L</OPTIONS> below)."
36051 msgstr ""
36052
36053 #. type: =head2
36054 #: ../tools/virt-make-fs.pl:67
36055 msgid "EXTRA SPACE"
36056 msgstr ""
36057
36058 #. type: textblock
36059 #: ../tools/virt-make-fs.pl:69
36060 msgid ""
36061 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
36062 "the files that it contains, but might have extra space.  Depending on how "
36063 "you are going to use the output, you might think this extra space is wasted "
36064 "and want to minimize it, or you might want to leave space so that more files "
36065 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
36066 "but you can use the I<--size> flag to leave space in the filesystem if you "
36067 "want it."
36068 msgstr ""
36069
36070 #. type: textblock
36071 #: ../tools/virt-make-fs.pl:77
36072 msgid ""
36073 "An alternative way to leave extra space but not make the output image any "
36074 "bigger is to use an alternative disk image format (instead of the default "
36075 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
36076 "image format (check your hypervisor supports this before using it).  This "
36077 "allows you to choose a large I<--size> but the extra space won't actually be "
36078 "allocated in the image until you try to store something in it."
36079 msgstr ""
36080
36081 #. type: textblock
36082 #: ../tools/virt-make-fs.pl:85
36083 msgid ""
36084 "Don't forget that you can also use local commands including L<resize2fs(8)> "
36085 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
36086 "to build another image from scratch."
36087 msgstr ""
36088
36089 #. type: =head3
36090 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123 ../tools/virt-make-fs.pl:142
36091 msgid "EXAMPLE"
36092 msgstr ""
36093
36094 #. type: verbatim
36095 #: ../tools/virt-make-fs.pl:91
36096 #, no-wrap
36097 msgid ""
36098 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
36099 "\n"
36100 msgstr ""
36101
36102 #. type: =head2
36103 #: ../tools/virt-make-fs.pl:93
36104 msgid "FILESYSTEM TYPE"
36105 msgstr ""
36106
36107 #. type: textblock
36108 #: ../tools/virt-make-fs.pl:95
36109 msgid ""
36110 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
36111 "libguestfs supports can be used (but I<not> read-only formats like "
36112 "ISO9660).  Here are some of the more common choices:"
36113 msgstr ""
36114
36115 #. type: =item
36116 #: ../tools/virt-make-fs.pl:101
36117 msgid "I<ext3>"
36118 msgstr ""
36119
36120 #. type: textblock
36121 #: ../tools/virt-make-fs.pl:103
36122 msgid ""
36123 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
36124 "you are not going to use the filesystem in a way that requires the journal, "
36125 "then this is just wasted overhead."
36126 msgstr ""
36127
36128 #. type: =item
36129 #: ../tools/virt-make-fs.pl:107
36130 msgid "I<ntfs> or I<vfat>"
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../tools/virt-make-fs.pl:109
36135 msgid "Useful if exporting data to a Windows guest."
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../tools/virt-make-fs.pl:111
36140 msgid ""
36141 "I<Note for vfat>: The tar archive or local directory must only contain files "
36142 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
36143 "program running within libguestfs is unable to change the ownership of "
36144 "non-root files, since vfat itself does not support this."
36145 msgstr ""
36146
36147 #. type: =item
36148 #: ../tools/virt-make-fs.pl:116
36149 msgid "I<minix>"
36150 msgstr ""
36151
36152 #. type: textblock
36153 #: ../tools/virt-make-fs.pl:118
36154 msgid ""
36155 "Lower overhead than C<ext2>, but certain limitations on filename length and "
36156 "total filesystem size."
36157 msgstr ""
36158
36159 #. type: verbatim
36160 #: ../tools/virt-make-fs.pl:125
36161 #, no-wrap
36162 msgid ""
36163 " virt-make-fs --type=minix input minixfs.img\n"
36164 "\n"
36165 msgstr ""
36166
36167 #. type: =head2
36168 #: ../tools/virt-make-fs.pl:127
36169 msgid "TO PARTITION OR NOT TO PARTITION"
36170 msgstr ""
36171
36172 #. type: textblock
36173 #: ../tools/virt-make-fs.pl:129
36174 msgid "Optionally virt-make-fs can add a partition table to the output disk."
36175 msgstr ""
36176
36177 #. type: textblock
36178 #: ../tools/virt-make-fs.pl:131
36179 msgid ""
36180 "Adding a partition can make the disk image more compatible with certain "
36181 "virtualized operating systems which don't expect to see a filesystem "
36182 "directly located on a block device (Linux doesn't care and will happily "
36183 "handle both types)."
36184 msgstr ""
36185
36186 #. type: textblock
36187 #: ../tools/virt-make-fs.pl:136
36188 msgid ""
36189 "On the other hand, if you have a partition table then the output image is no "
36190 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
36191 "directly on a partitioned disk image.  (However libguestfs tools such as "
36192 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
36193 msgstr ""
36194
36195 #. type: textblock
36196 #: ../tools/virt-make-fs.pl:144
36197 msgid "Add an MBR partition:"
36198 msgstr ""
36199
36200 #. type: verbatim
36201 #: ../tools/virt-make-fs.pl:146
36202 #, no-wrap
36203 msgid ""
36204 " virt-make-fs --partition -- input disk.img\n"
36205 "\n"
36206 msgstr ""
36207
36208 #. type: textblock
36209 #: ../tools/virt-make-fs.pl:148
36210 msgid ""
36211 "If the output disk image could be terabyte-sized or larger, it's better to "
36212 "use an EFI/GPT-compatible partition table:"
36213 msgstr ""
36214
36215 #. type: verbatim
36216 #: ../tools/virt-make-fs.pl:151
36217 #, no-wrap
36218 msgid ""
36219 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
36220 "\n"
36221 msgstr ""
36222
36223 #. type: textblock
36224 #: ../tools/virt-make-fs.pl:179
36225 msgid "Enable debugging information."
36226 msgstr ""
36227
36228 #. type: =item
36229 #: ../tools/virt-make-fs.pl:185
36230 msgid "B<--size=E<lt>NE<gt>>"
36231 msgstr ""
36232
36233 #. type: =item
36234 #: ../tools/virt-make-fs.pl:187
36235 msgid "B<--size=+E<lt>NE<gt>>"
36236 msgstr ""
36237
36238 #. type: =item
36239 #: ../tools/virt-make-fs.pl:189
36240 msgid "B<-s E<lt>NE<gt>>"
36241 msgstr ""
36242
36243 #. type: =item
36244 #: ../tools/virt-make-fs.pl:191
36245 msgid "B<-s +E<lt>NE<gt>>"
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../tools/virt-make-fs.pl:193
36250 msgid "Use the I<--size> (or I<-s>) option to choose the size of the output image."
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../tools/virt-make-fs.pl:196
36255 msgid ""
36256 "If this option is I<not> given, then the output image will be just large "
36257 "enough to contain all the files, with not much wasted space."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../tools/virt-make-fs.pl:199
36262 msgid ""
36263 "To choose a fixed size output disk, specify an absolute number followed by "
36264 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36265 "Petabytes or Exabytes.  This must be large enough to contain all the input "
36266 "files, else you will get an error."
36267 msgstr ""
36268
36269 #. type: textblock
36270 #: ../tools/virt-make-fs.pl:204
36271 msgid ""
36272 "To leave extra space, specify C<+> (plus sign) and a number followed by "
36273 "b/K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
36274 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
36275 "the input files, and (approximately) an extra 200 MB free space."
36276 msgstr ""
36277
36278 #. type: textblock
36279 #: ../tools/virt-make-fs.pl:210
36280 msgid ""
36281 "Note that virt-make-fs estimates free space, and therefore will not produce "
36282 "filesystems containing precisely the free space requested.  (It is much more "
36283 "expensive and time-consuming to produce a filesystem which has precisely the "
36284 "desired free space)."
36285 msgstr ""
36286
36287 #. type: =item
36288 #: ../tools/virt-make-fs.pl:219
36289 msgid "B<--format=E<lt>fmtE<gt>>"
36290 msgstr ""
36291
36292 #. type: =item
36293 #: ../tools/virt-make-fs.pl:221
36294 msgid "B<-F E<lt>fmtE<gt>>"
36295 msgstr ""
36296
36297 #. type: textblock
36298 #: ../tools/virt-make-fs.pl:223
36299 msgid "Choose the output disk image format."
36300 msgstr ""
36301
36302 #. type: textblock
36303 #: ../tools/virt-make-fs.pl:225
36304 msgid "The default is C<raw> (raw disk image)."
36305 msgstr ""
36306
36307 #. type: textblock
36308 #: ../tools/virt-make-fs.pl:227
36309 msgid ""
36310 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
36311 "that would really make sense here is C<qcow2>."
36312 msgstr ""
36313
36314 #. type: =item
36315 #: ../tools/virt-make-fs.pl:234
36316 msgid "B<--type=E<lt>fsE<gt>>"
36317 msgstr ""
36318
36319 #. type: =item
36320 #: ../tools/virt-make-fs.pl:236
36321 msgid "B<-t E<lt>fsE<gt>>"
36322 msgstr ""
36323
36324 #. type: textblock
36325 #: ../tools/virt-make-fs.pl:238
36326 msgid "Choose the output filesystem type."
36327 msgstr ""
36328
36329 #. type: textblock
36330 #: ../tools/virt-make-fs.pl:240
36331 msgid "The default is C<ext2>."
36332 msgstr ""
36333
36334 #. type: textblock
36335 #: ../tools/virt-make-fs.pl:242
36336 msgid "Any filesystem which is supported read-write by libguestfs can be used here."
36337 msgstr ""
36338
36339 #. type: =item
36340 #: ../tools/virt-make-fs.pl:249
36341 msgid "B<--partition>"
36342 msgstr ""
36343
36344 #. type: =item
36345 #: ../tools/virt-make-fs.pl:251
36346 msgid "B<--partition=E<lt>parttypeE<gt>>"
36347 msgstr ""
36348
36349 #. type: textblock
36350 #: ../tools/virt-make-fs.pl:253
36351 msgid ""
36352 "If specified, this flag adds an MBR partition table to the output disk "
36353 "image."
36354 msgstr ""
36355
36356 #. type: textblock
36357 #: ../tools/virt-make-fs.pl:256
36358 msgid ""
36359 "You can change the partition table type, eg. I<--partition=gpt> for large "
36360 "disks."
36361 msgstr ""
36362
36363 #. type: textblock
36364 #: ../tools/virt-make-fs.pl:259
36365 msgid ""
36366 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
36367 "might consider the next parameter to be the partition type.  For example:"
36368 msgstr ""
36369
36370 #. type: verbatim
36371 #: ../tools/virt-make-fs.pl:263
36372 #, no-wrap
36373 msgid ""
36374 " virt-make-fs --partition input.tar ...\n"
36375 "\n"
36376 msgstr ""
36377
36378 #. type: textblock
36379 #: ../tools/virt-make-fs.pl:265
36380 msgid ""
36381 "would cause virt-make-fs to think you wanted to use a partition type of "
36382 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
36383 "dash) between options and the input file argument:"
36384 msgstr ""
36385
36386 #. type: verbatim
36387 #: ../tools/virt-make-fs.pl:269
36388 #, no-wrap
36389 msgid ""
36390 " virt-make-fs --partition -- input.tar ...\n"
36391 "\n"
36392 msgstr ""
36393
36394 #. type: textblock
36395 #: ../tools/virt-make-fs.pl:541
36396 msgid ""
36397 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
36398 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, "
36399 "L<guestfs(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
36400 msgstr ""
36401
36402 #. type: textblock
36403 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
36404 msgid ""
36405 "When reporting bugs, please enable debugging and capture the I<complete> "
36406 "output:"
36407 msgstr ""
36408
36409 #. type: verbatim
36410 #: ../tools/virt-make-fs.pl:558
36411 #, no-wrap
36412 msgid ""
36413 " export LIBGUESTFS_DEBUG=1\n"
36414 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
36415 "\n"
36416 msgstr ""
36417
36418 #. type: textblock
36419 #: ../tools/virt-make-fs.pl:561
36420 msgid ""
36421 "Attach /tmp/virt-make-fs.log to a new bug report at "
36422 "L<https://bugzilla.redhat.com/>"
36423 msgstr ""
36424
36425 #. type: textblock
36426 #: ../tools/virt-tar.pl:33
36427 msgid "virt-tar - Extract or upload files to a virtual machine"
36428 msgstr ""
36429
36430 #. type: verbatim
36431 #: ../tools/virt-tar.pl:37
36432 #, no-wrap
36433 msgid ""
36434 " virt-tar [--options] -x domname directory tarball\n"
36435 "\n"
36436 msgstr ""
36437
36438 #. type: verbatim
36439 #: ../tools/virt-tar.pl:39
36440 #, no-wrap
36441 msgid ""
36442 " virt-tar [--options] -u domname tarball directory\n"
36443 "\n"
36444 msgstr ""
36445
36446 #. type: verbatim
36447 #: ../tools/virt-tar.pl:41
36448 #, no-wrap
36449 msgid ""
36450 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
36451 "\n"
36452 msgstr ""
36453
36454 #. type: verbatim
36455 #: ../tools/virt-tar.pl:43
36456 #, no-wrap
36457 msgid ""
36458 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
36459 "\n"
36460 msgstr ""
36461
36462 #. type: =head2
36463 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
36464 msgid "NOTE"
36465 msgstr ""
36466
36467 #. type: textblock
36468 #: ../tools/virt-tar.pl:47
36469 msgid ""
36470 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
36471 "L<virt-tar-in(1)>, L<virt-tar-out(1)> as replacements."
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../tools/virt-tar.pl:52
36476 msgid "Download C</home> from the VM into a local tarball:"
36477 msgstr ""
36478
36479 #. type: verbatim
36480 #: ../tools/virt-tar.pl:54
36481 #, no-wrap
36482 msgid ""
36483 " virt-tar -x domname /home home.tar\n"
36484 "\n"
36485 msgstr ""
36486
36487 #. type: verbatim
36488 #: ../tools/virt-tar.pl:56
36489 #, no-wrap
36490 msgid ""
36491 " virt-tar -zx domname /home home.tar.gz\n"
36492 "\n"
36493 msgstr ""
36494
36495 #. type: textblock
36496 #: ../tools/virt-tar.pl:58
36497 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
36498 msgstr ""
36499
36500 #. type: verbatim
36501 #: ../tools/virt-tar.pl:60
36502 #, no-wrap
36503 msgid ""
36504 " virt-tar -u domname uploadstuff.tar /tmp\n"
36505 "\n"
36506 msgstr ""
36507
36508 #. type: verbatim
36509 #: ../tools/virt-tar.pl:62
36510 #, no-wrap
36511 msgid ""
36512 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
36513 "\n"
36514 msgstr ""
36515
36516 #. type: textblock
36517 #: ../tools/virt-tar.pl:66
36518 msgid ""
36519 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
36520 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
36521 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
36522 msgstr ""
36523
36524 #. type: textblock
36525 #: ../tools/virt-tar.pl:71
36526 msgid ""
36527 "You can use I<-x> (extract) on live virtual machines, but you might get "
36528 "inconsistent results or errors if there is filesystem activity inside the "
36529 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
36530 "work, but the only way to guarantee consistent results is if the virtual "
36531 "machine is shut down."
36532 msgstr ""
36533
36534 #. type: textblock
36535 #: ../tools/virt-tar.pl:79
36536 msgid ""
36537 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
36538 "parts of a guest filesystem.  There are many possibilities: making backups, "
36539 "uploading data files, snooping on guest activity, fixing or customizing "
36540 "guests, etc."
36541 msgstr ""
36542
36543 #. type: textblock
36544 #: ../tools/virt-tar.pl:84
36545 msgid ""
36546 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
36547 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
36548 "should look at the L<guestfish(1)> tool."
36549 msgstr ""
36550
36551 #. type: textblock
36552 #: ../tools/virt-tar.pl:88
36553 msgid ""
36554 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
36555 "its contents (recursively) from the virtual machine into a local tarball.  "
36556 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
36557 "virtual machine.  You cannot use these two options together."
36558 msgstr ""
36559
36560 #. type: textblock
36561 #: ../tools/virt-tar.pl:94
36562 msgid ""
36563 "In addition, you may need to use the I<-z> (gZip) option to enable "
36564 "compression.  When uploading, you have to specify I<-z> if the upload file "
36565 "is compressed because virt-tar won't detect this on its own."
36566 msgstr ""
36567
36568 #. type: textblock
36569 #: ../tools/virt-tar.pl:98
36570 msgid ""
36571 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
36572 "example it cannot do PKZip files or bzip2 compression.  If you want that "
36573 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
36574 "the L<libguestfs(3)> API)."
36575 msgstr ""
36576
36577 #. type: =item
36578 #: ../tools/virt-tar.pl:160
36579 msgid "B<--extract>"
36580 msgstr ""
36581
36582 #. type: =item
36583 #: ../tools/virt-tar.pl:162
36584 msgid "B<--download>"
36585 msgstr ""
36586
36587 #. type: =item
36588 #: ../tools/virt-tar.pl:164
36589 msgid "B<-u>"
36590 msgstr ""
36591
36592 #. type: =item
36593 #: ../tools/virt-tar.pl:166
36594 msgid "B<--upload>"
36595 msgstr ""
36596
36597 #. type: textblock
36598 #: ../tools/virt-tar.pl:168
36599 msgid ""
36600 "Use I<-x> to extract (download) a directory from a virtual machine to a "
36601 "local tarball."
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../tools/virt-tar.pl:171
36606 msgid ""
36607 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
36608 "Please read the L</WARNING> section above before using this option."
36609 msgstr ""
36610
36611 #. type: textblock
36612 #: ../tools/virt-tar.pl:175
36613 msgid "You must specify exactly one of these options."
36614 msgstr ""
36615
36616 #. type: =item
36617 #: ../tools/virt-tar.pl:181
36618 msgid "B<-z>"
36619 msgstr ""
36620
36621 #. type: =item
36622 #: ../tools/virt-tar.pl:183
36623 msgid "B<--gzip>"
36624 msgstr ""
36625
36626 #. type: textblock
36627 #: ../tools/virt-tar.pl:185
36628 msgid "Specify that the input or output tarball is gzip-compressed."
36629 msgstr ""
36630
36631 #. type: textblock
36632 #: ../tools/virt-tar.pl:298
36633 msgid ""
36634 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
36635 "L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
36636 "L<virt-tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, "
36637 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../tools/virt-win-reg.pl:37
36642 msgid ""
36643 "virt-win-reg - Export and merge Windows Registry entries from a Windows "
36644 "guest"
36645 msgstr ""
36646
36647 #. type: verbatim
36648 #: ../tools/virt-win-reg.pl:41
36649 #, no-wrap
36650 msgid ""
36651 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
36652 "\n"
36653 msgstr ""
36654
36655 #. type: verbatim
36656 #: ../tools/virt-win-reg.pl:43
36657 #, no-wrap
36658 msgid ""
36659 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
36660 "\n"
36661 msgstr ""
36662
36663 #. type: verbatim
36664 #: ../tools/virt-win-reg.pl:45
36665 #, no-wrap
36666 msgid ""
36667 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
36668 "\n"
36669 msgstr ""
36670
36671 #. type: verbatim
36672 #: ../tools/virt-win-reg.pl:47
36673 #, no-wrap
36674 msgid ""
36675 " virt-win-reg --merge domname [input.reg ...]\n"
36676 "\n"
36677 msgstr ""
36678
36679 #. type: verbatim
36680 #: ../tools/virt-win-reg.pl:49
36681 #, no-wrap
36682 msgid ""
36683 " virt-win-reg [--options] disk.img ... # instead of domname\n"
36684 "\n"
36685 msgstr ""
36686
36687 #. type: textblock
36688 #: ../tools/virt-win-reg.pl:53
36689 msgid ""
36690 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
36691 "virtual machines.  If you do this, you I<will> get irreversible disk "
36692 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
36693 "but doesn't catch all cases."
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../tools/virt-win-reg.pl:58
36698 msgid ""
36699 "Modifying the Windows Registry is an inherently risky operation.  The format "
36700 "is deliberately obscure and undocumented, and Registry changes can leave the "
36701 "system unbootable.  Therefore when using the I<--merge> option, make sure "
36702 "you have a reliable backup first."
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../tools/virt-win-reg.pl:65
36707 msgid ""
36708 "This program can export and merge Windows Registry entries from a Windows "
36709 "guest."
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../tools/virt-win-reg.pl:68
36714 msgid ""
36715 "The first parameter is the libvirt guest name or the raw disk image of a "
36716 "Windows guest."
36717 msgstr ""
36718
36719 #. type: textblock
36720 #: ../tools/virt-win-reg.pl:71
36721 msgid ""
36722 "If I<--merge> is I<not> specified, then the chosen registry key is "
36723 "displayed/exported (recursively).  For example:"
36724 msgstr ""
36725
36726 #. type: verbatim
36727 #: ../tools/virt-win-reg.pl:74
36728 #, no-wrap
36729 msgid ""
36730 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
36731 "\n"
36732 msgstr ""
36733
36734 #. type: textblock
36735 #: ../tools/virt-win-reg.pl:76
36736 msgid "You can also display single values from within registry keys, for example:"
36737 msgstr ""
36738
36739 #. type: verbatim
36740 #: ../tools/virt-win-reg.pl:79
36741 #, no-wrap
36742 msgid ""
36743 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
36744 " $ virt-win-reg Windows7 $cvkey ProductName\n"
36745 " Windows 7 Enterprise\n"
36746 "\n"
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../tools/virt-win-reg.pl:83
36751 msgid ""
36752 "With I<--merge>, you can merge a textual regedit file into the Windows "
36753 "Registry:"
36754 msgstr ""
36755
36756 #. type: verbatim
36757 #: ../tools/virt-win-reg.pl:86
36758 #, no-wrap
36759 msgid ""
36760 " $ virt-win-reg --merge Windows7 changes.reg\n"
36761 "\n"
36762 msgstr ""
36763
36764 #. type: textblock
36765 #: ../tools/virt-win-reg.pl:90
36766 msgid ""
36767 "This program is only meant for simple access to the registry.  If you want "
36768 "to do complicated things with the registry, we suggest you download the "
36769 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
36770 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
36771 "L<hivexregedit(1)>."
36772 msgstr ""
36773
36774 #. type: =item
36775 #: ../tools/virt-win-reg.pl:159
36776 msgid "B<--merge>"
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../tools/virt-win-reg.pl:161
36781 msgid ""
36782 "In merge mode, this merges a textual regedit file into the Windows Registry "
36783 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
36784 "displays or exports Registry entries instead."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../tools/virt-win-reg.pl:165
36789 msgid ""
36790 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
36791 "result in disk corruption.  However exporting (without this flag)  is always "
36792 "safe."
36793 msgstr ""
36794
36795 #. type: =item
36796 #: ../tools/virt-win-reg.pl:173
36797 msgid "B<--encoding> UTF-16LE|ASCII"
36798 msgstr ""
36799
36800 #. type: textblock
36801 #: ../tools/virt-win-reg.pl:175
36802 msgid ""
36803 "When merging (only), you may need to specify the encoding for strings to be "
36804 "used in the hive file.  This is explained in detail in "
36805 "L<Win::Hivex::Regedit(3)/ENCODING STRINGS>."
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../tools/virt-win-reg.pl:179
36810 msgid ""
36811 "The default is to use UTF-16LE, which should work with recent versions of "
36812 "Windows."
36813 msgstr ""
36814
36815 #. type: =item
36816 #: ../tools/virt-win-reg.pl:186
36817 msgid "B<--unsafe-printable-strings>"
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../tools/virt-win-reg.pl:188
36822 msgid ""
36823 "When exporting (only), assume strings are UTF-16LE and print them as strings "
36824 "instead of hex sequences.  Remove the final zero codepoint from strings if "
36825 "present."
36826 msgstr ""
36827
36828 #. type: textblock
36829 #: ../tools/virt-win-reg.pl:192
36830 msgid ""
36831 "This is unsafe and does not preserve the fidelity of strings in the original "
36832 "Registry for various reasons:"
36833 msgstr ""
36834
36835 #. type: textblock
36836 #: ../tools/virt-win-reg.pl:199
36837 msgid ""
36838 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
36839 "other encodings will be corrupted by this transformation."
36840 msgstr ""
36841
36842 #. type: textblock
36843 #: ../tools/virt-win-reg.pl:204
36844 msgid ""
36845 "Assumes that everything which has type 1 or 2 is really a string and that "
36846 "everything else is not a string, but the type field in real Registries is "
36847 "not reliable."
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../tools/virt-win-reg.pl:210
36852 msgid ""
36853 "Loses information about whether a zero codepoint followed the string in the "
36854 "Registry or not."
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../tools/virt-win-reg.pl:215
36859 msgid ""
36860 "This all happens because the Registry itself contains no information about "
36861 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
36862 msgstr ""
36863
36864 #. type: textblock
36865 #: ../tools/virt-win-reg.pl:219
36866 msgid ""
36867 "You should only use this option for quick hacking and debugging of the "
36868 "Registry contents, and I<never> use it if the output is going to be passed "
36869 "into another program or stored in another Registry."
36870 msgstr ""
36871
36872 #. type: =head1
36873 #: ../tools/virt-win-reg.pl:556
36874 msgid "SUPPORTED SYSTEMS"
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../tools/virt-win-reg.pl:558
36879 msgid ""
36880 "The program currently supports Windows NT-derived guests starting with "
36881 "Windows XP through to at least Windows 7."
36882 msgstr ""
36883
36884 #. type: textblock
36885 #: ../tools/virt-win-reg.pl:561
36886 msgid "The following Registry keys are supported:"
36887 msgstr ""
36888
36889 #. type: =item
36890 #: ../tools/virt-win-reg.pl:565
36891 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
36892 msgstr ""
36893
36894 #. type: =item
36895 #: ../tools/virt-win-reg.pl:567
36896 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
36897 msgstr ""
36898
36899 #. type: =item
36900 #: ../tools/virt-win-reg.pl:569
36901 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
36902 msgstr ""
36903
36904 #. type: =item
36905 #: ../tools/virt-win-reg.pl:571
36906 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
36907 msgstr ""
36908
36909 #. type: =item
36910 #: ../tools/virt-win-reg.pl:573
36911 msgid "C<HKEY_USERS\\.DEFAULT>"
36912 msgstr ""
36913
36914 #. type: =item
36915 #: ../tools/virt-win-reg.pl:575
36916 msgid "C<HKEY_USERS\\I<SID>>"
36917 msgstr ""
36918
36919 #. type: textblock
36920 #: ../tools/virt-win-reg.pl:577
36921 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
36922 msgstr ""
36923
36924 #. type: =item
36925 #: ../tools/virt-win-reg.pl:579
36926 msgid "C<HKEY_USERS\\I<username>>"
36927 msgstr ""
36928
36929 #. type: textblock
36930 #: ../tools/virt-win-reg.pl:581
36931 msgid "where I<username> is a local user name (this is a libguestfs extension)."
36932 msgstr ""
36933
36934 #. type: textblock
36935 #: ../tools/virt-win-reg.pl:585
36936 msgid ""
36937 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
36938 "C<HKEY_USERS>."
36939 msgstr ""
36940
36941 #. type: textblock
36942 #: ../tools/virt-win-reg.pl:588
36943 msgid ""
36944 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
36945 "supported (there is no \"current user\")."
36946 msgstr ""
36947
36948 #. type: =head1
36949 #: ../tools/virt-win-reg.pl:591
36950 msgid "ENCODING"
36951 msgstr ""
36952
36953 #. type: textblock
36954 #: ../tools/virt-win-reg.pl:593
36955 msgid ""
36956 "C<virt-win-reg> expects that regedit files have already been reencoded in "
36957 "the local encoding.  Usually on Linux hosts, this means UTF-8 with "
36958 "Unix-style line endings.  Since Windows regedit files are often in UTF-16LE "
36959 "with Windows-style line endings, you may need to reencode the whole file "
36960 "before or after processing."
36961 msgstr ""
36962
36963 #. type: textblock
36964 #: ../tools/virt-win-reg.pl:599
36965 msgid ""
36966 "To reencode a file from Windows format to Linux (before processing it with "
36967 "the I<--merge> option), you would do something like this:"
36968 msgstr ""
36969
36970 #. type: verbatim
36971 #: ../tools/virt-win-reg.pl:602
36972 #, no-wrap
36973 msgid ""
36974 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
36975 "\n"
36976 msgstr ""
36977
36978 #. type: textblock
36979 #: ../tools/virt-win-reg.pl:604
36980 msgid ""
36981 "To go in the opposite direction, after exporting and before sending the file "
36982 "to a Windows user, do something like this:"
36983 msgstr ""
36984
36985 #. type: verbatim
36986 #: ../tools/virt-win-reg.pl:607
36987 #, no-wrap
36988 msgid ""
36989 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
36990 "\n"
36991 msgstr ""
36992
36993 #. type: textblock
36994 #: ../tools/virt-win-reg.pl:609
36995 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../tools/virt-win-reg.pl:611
37000 msgid ""
37001 "If you are unsure about the current encoding, use the L<file(1)> command.  "
37002 "Recent versions of Windows regedit.exe produce a UTF-16LE file with "
37003 "Windows-style (CRLF) line endings, like this:"
37004 msgstr ""
37005
37006 #. type: verbatim
37007 #: ../tools/virt-win-reg.pl:615
37008 #, no-wrap
37009 msgid ""
37010 " $ file software.reg\n"
37011 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
37012 " with CRLF line terminators\n"
37013 "\n"
37014 msgstr ""
37015
37016 #. type: textblock
37017 #: ../tools/virt-win-reg.pl:619
37018 msgid "This file would need conversion before you could I<--merge> it."
37019 msgstr ""
37020
37021 #. type: =head1
37022 #: ../tools/virt-win-reg.pl:621
37023 msgid "CurrentControlSet etc."
37024 msgstr ""
37025
37026 #. type: textblock
37027 #: ../tools/virt-win-reg.pl:623
37028 msgid ""
37029 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
37030 "Registry at the level of the hive file, and therefore you cannot modify "
37031 "these."
37032 msgstr ""
37033
37034 #. type: textblock
37035 #: ../tools/virt-win-reg.pl:627
37036 msgid ""
37037 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
37038 "circumstances it might refer to another control set.  The way to find out is "
37039 "to look at the C<HKLM\\SYSTEM\\Select> key:"
37040 msgstr ""
37041
37042 #. type: verbatim
37043 #: ../tools/virt-win-reg.pl:631
37044 #, no-wrap
37045 msgid ""
37046 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
37047 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
37048 " \"Current\"=dword:00000001\n"
37049 " \"Default\"=dword:00000001\n"
37050 " \"Failed\"=dword:00000000\n"
37051 " \"LastKnownGood\"=dword:00000002\n"
37052 "\n"
37053 msgstr ""
37054
37055 #. type: textblock
37056 #: ../tools/virt-win-reg.pl:638
37057 msgid "\"Current\" is the one which Windows will choose when it boots."
37058 msgstr ""
37059
37060 #. type: textblock
37061 #: ../tools/virt-win-reg.pl:640
37062 msgid "Similarly, other C<Current...> keys in the path may need to be replaced."
37063 msgstr ""
37064
37065 #. type: =head1
37066 #: ../tools/virt-win-reg.pl:643
37067 msgid "WINDOWS TIPS"
37068 msgstr ""
37069
37070 #. type: textblock
37071 #: ../tools/virt-win-reg.pl:645
37072 msgid ""
37073 "Note that some of these tips modify the guest disk image.  The guest I<must> "
37074 "be shut off, else you will get disk corruption."
37075 msgstr ""
37076
37077 #. type: =head2
37078 #: ../tools/virt-win-reg.pl:648
37079 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../tools/virt-win-reg.pl:650
37084 msgid ""
37085 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
37086 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
37087 "is uploaded into C<C:\\>:"
37088 msgstr ""
37089
37090 #. type: verbatim
37091 #: ../tools/virt-win-reg.pl:654
37092 #, no-wrap
37093 msgid ""
37094 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
37095 "\n"
37096 msgstr ""
37097
37098 #. type: textblock
37099 #: ../tools/virt-win-reg.pl:656
37100 msgid "Prepare a regedit file containing the registry change:"
37101 msgstr ""
37102
37103 #. type: verbatim
37104 #: ../tools/virt-win-reg.pl:658
37105 #, no-wrap
37106 msgid ""
37107 " cat > test.reg <<'EOF'\n"
37108 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
37109 " \"Test\"=\"c:\\\\test.bat\"\n"
37110 " EOF\n"
37111 "\n"
37112 msgstr ""
37113
37114 #. type: textblock
37115 #: ../tools/virt-win-reg.pl:663
37116 msgid ""
37117 "In this example we use the key C<RunOnce> which means that the script will "
37118 "run precisely once when the first user logs in.  If you want it to run every "
37119 "time a user logs in, replace C<RunOnce> with C<Run>."
37120 msgstr ""
37121
37122 #. type: textblock
37123 #: ../tools/virt-win-reg.pl:667
37124 msgid "Now update the registry:"
37125 msgstr ""
37126
37127 #. type: verbatim
37128 #: ../tools/virt-win-reg.pl:669
37129 #, no-wrap
37130 msgid ""
37131 " virt-win-reg --merge WindowsGuest test.reg\n"
37132 "\n"
37133 msgstr ""
37134
37135 #. type: =head2
37136 #: ../tools/virt-win-reg.pl:671
37137 msgid "INSTALLING A SERVICE"
37138 msgstr ""
37139
37140 #. type: textblock
37141 #: ../tools/virt-win-reg.pl:673
37142 msgid ""
37143 "This section assumes you are familiar with Windows services, and you either "
37144 "have a program which handles the Windows Service Control Protocol directly "
37145 "or you want to run any program using a service wrapper like SrvAny or the "
37146 "free RHSrvAny."
37147 msgstr ""
37148
37149 #. type: textblock
37150 #: ../tools/virt-win-reg.pl:678
37151 msgid ""
37152 "First upload the program and optionally the service wrapper.  In this case "
37153 "the test program is called C<test.exe> and we are using the RHSrvAny "
37154 "wrapper:"
37155 msgstr ""
37156
37157 #. type: verbatim
37158 #: ../tools/virt-win-reg.pl:682
37159 #, no-wrap
37160 msgid ""
37161 " guestfish -i -d WindowsGuest <<EOF\n"
37162 "   upload rhsrvany.exe /rhsrvany.exe\n"
37163 "   upload test.exe /test.exe\n"
37164 " EOF\n"
37165 "\n"
37166 msgstr ""
37167
37168 #. type: textblock
37169 #: ../tools/virt-win-reg.pl:687
37170 msgid ""
37171 "Prepare a regedit file containing the registry changes.  In this example, "
37172 "the first registry change is needed for the service itself or the service "
37173 "wrapper (if used).  The second registry change is only needed because I am "
37174 "using the RHSrvAny service wrapper."
37175 msgstr ""
37176
37177 #. type: verbatim
37178 #: ../tools/virt-win-reg.pl:692
37179 #, no-wrap
37180 msgid ""
37181 " cat > service.reg <<'EOF'\n"
37182 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
37183 " \"Type\"=dword:00000010\n"
37184 " \"Start\"=dword:00000002\n"
37185 " \"ErrorControl\"=dword:00000001\n"
37186 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
37187 " \"DisplayName\"=\"RHSrvAny\"\n"
37188 " \"ObjectName\"=\"NetworkService\"\n"
37189 " \n"
37190 msgstr ""
37191
37192 #. type: verbatim
37193 #: ../tools/virt-win-reg.pl:701
37194 #, no-wrap
37195 msgid ""
37196 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
37197 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
37198 " \"PWD\"=\"c:\\\\Temp\"\n"
37199 " EOF\n"
37200 "\n"
37201 msgstr ""
37202
37203 #. type: textblock
37204 #: ../tools/virt-win-reg.pl:712
37205 msgid ""
37206 "For use of C<ControlSet001> see the section above in this manual page.  You "
37207 "may need to adjust this according to the control set that is in use by the "
37208 "guest."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../tools/virt-win-reg.pl:718
37213 msgid ""
37214 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
37215 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
37216 "privileged account."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../tools/virt-win-reg.pl:724
37221 msgid ""
37222 "For the meaning of the magic numbers, see this Microsoft KB article: "
37223 "L<http://support.microsoft.com/kb/103000>."
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../tools/virt-win-reg.pl:729
37228 msgid "Update the registry:"
37229 msgstr ""
37230
37231 #. type: verbatim
37232 #: ../tools/virt-win-reg.pl:731
37233 #, no-wrap
37234 msgid ""
37235 " virt-win-reg --merge WindowsGuest service.reg\n"
37236 "\n"
37237 msgstr ""
37238
37239 #. type: textblock
37240 #: ../tools/virt-win-reg.pl:735
37241 msgid ""
37242 "Be careful when passing parameters containing C<\\> (backslash) in the "
37243 "shell.  Usually you will have to use 'single quotes' or double backslashes "
37244 "(but not both) to protect them from the shell."
37245 msgstr ""
37246
37247 #. type: textblock
37248 #: ../tools/virt-win-reg.pl:739
37249 msgid "Paths and value names are case-insensitive."
37250 msgstr ""
37251
37252 #. type: textblock
37253 #: ../tools/virt-win-reg.pl:748
37254 msgid ""
37255 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, "
37256 "L<guestfish(1)>, L<virt-cat(1)>, L<Sys::Guestfs(3)>, "
37257 "L<Sys::Guestfs::Lib(3)>, L<Win::Hivex(3)>, L<Win::Hivex::Regedit(3)>, "
37258 "L<Sys::Virt(3)>, L<http://libguestfs.org/>."
37259 msgstr ""
37260
37261 #. type: verbatim
37262 #: ../tools/virt-win-reg.pl:766
37263 #, no-wrap
37264 msgid ""
37265 " export LIBGUESTFS_DEBUG=1\n"
37266 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
37267 "\n"
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../tools/virt-win-reg.pl:769
37272 msgid ""
37273 "Attach /tmp/virt-win-reg.log to a new bug report at "
37274 "L<https://bugzilla.redhat.com/>"
37275 msgstr ""